MatCodeAdd.aspx
上传用户:tiancihang
上传日期:2014-03-12
资源大小:21387k
文件大小:5k
源码类别:

.net编程

开发平台:

C#

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="MatCodeAdd.aspx.cs" Inherits="MatCode_MatCodeAdd" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" >
  4. <head runat="server">
  5. <base target="_self" />
  6.     <title>添加物资代码</title> 
  7.    
  8. </head>
  9. <body  bgcolor="#f7f7f7">
  10.     <form id="form1" runat="server" >
  11.     
  12.      <TABLE width="100%"  border="0" cellPadding="0" cellSpacing="0" >
  13.         <tr valign="middle">
  14.             <td height="25px" width="17%" > 
  15.              &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <img src="../../Images/assignuser.ico" height="30" >
  16.             </td>
  17.             <td  align="left"   width="83%" style="font-size:15px">
  18.                 <strong> 增加物资代码 </strong>
  19.             </td>
  20.         </tr> 
  21.         <tr>
  22.          <td background="../Images/Menu_bg.jpg"  height="20px" colspan="2">
  23.            </td>
  24.         </tr>
  25.          <tr>
  26.          <td colspan="2">
  27.              <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
  28.                  <tr>
  29.                      <td style="width:50%;" valign="top">
  30.                          <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
  31.                              <tr>
  32.                                  <td valign="top" style="width:80px;" align="left"> &nbsp;&nbsp;物 资 代 码:&nbsp;</td>
  33.                                  <td valign="top">&nbsp;<asp:TextBox ID="TB_MatCode" runat="server"></asp:TextBox>  
  34.                                      <br />&nbsp;                
  35.                  <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="必填" ControlToValidate="TB_MatCode" ValidationGroup="SaveButton" Display="Dynamic"></asp:RequiredFieldValidator>    
  36.                 <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TB_MatCode"
  37.                     Display="Dynamic" ErrorMessage="必须是数字" ValidationExpression="^[0-9]{1,20}$"  ValidationGroup="SaveButton"></asp:RegularExpressionValidator></td>
  38.                              </tr>
  39.                          </table>
  40.                      </td>
  41.                      <td  style="width:50%;" >
  42.                          <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
  43.                              <tr>
  44.                                  <td valign="top" >
  45.                                      &nbsp;物 资 描 述:
  46.                                  </td>
  47.                                  <td  valign="top">
  48.                                      &nbsp;<asp:TextBox ID="TB_MatDecs" runat="server" TextMode="MultiLine" ></asp:TextBox></td>
  49.                              </tr>
  50.                          </table>
  51.                      </td>
  52.                  </tr>
  53.                  <tr>
  54.                      <td colspan="2">
  55.                          <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
  56.                              <tr>
  57.                                  <td valign="top" style="width:80px"> 物资代码名称:</td>
  58.                                  <td valign="top" align="left">
  59.                                      &nbsp;<asp:TextBox ID="TB_MatName" runat="server" TextMode="MultiLine" Width="216px"></asp:TextBox>
  60.                                  </td>
  61.                                   <td></td>
  62.                              </tr>
  63.                          </table>
  64.                      </td>
  65.                      
  66.                  </tr>
  67.              </table>
  68.            </td>
  69.         </tr>
  70.         </TABLE>
  71.        <TABLE width="100%"  border="0" cellPadding="0" cellSpacing="0" >          
  72.           <tr height="10px" >
  73.              <td style="height: 10px;" colspan="4">&nbsp;</td>
  74.           </tr>
  75.           
  76.            <tr height="1px" bgcolor="black">
  77.              <td style="height: 1px;" colspan="4">  </td>
  78.           </tr> 
  79.           <tr height="10px" >
  80.              <td style="height: 10px;" colspan="4">&nbsp;</td>
  81.           </tr>    
  82.         
  83.           <tr>            
  84.              <td style="height: 24px;" colspan="4" align="center">  
  85.                  <asp:ImageButton ID="BT_Confirm" runat="server" ImageUrl="~/Images/queding.gif" ToolTip="确定" OnClick="BT_Confirm_Click"
  86.                      ValidationGroup="SaveButton" />
  87.                  <asp:ImageButton ID="BT_Cancel" runat="server"  ImageUrl="~/Images/quxiao.gif" ToolTip="取消" OnClientClick="javascript:if(confirm('确认离开此页面吗?')){window.close();}" /></td>
  88.           </tr> 
  89.           
  90.         </TABLE>
  91.         
  92.       
  93.     </form>
  94. </body>
  95. </html>