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

.net编程

开发平台:

C#

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddEmployee.aspx.cs" Inherits="AddEmployee" %>
  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.     <link href="style/dialog.css" type="text/css" rel="stylesheet">
  6.     <title>职工</title>
  7. <base target="_self" />
  8. </head>
  9. <body class="whitebody">
  10. <form id="form1" runat="server">
  11.     <div style="font-size:12px; font-family:Arial;" class="Content">
  12.         <div align="left" style="text-indent:2em;height:250px; overflow-x:hidden;overflow-y:auto; width:100%;">
  13.         <table class="Content" border="0" cellpadding="0" id="tb1" width="100%">
  14.         <tr>
  15.             <td style="height: 38px; width: 371px;">
  16.                 <div style="top:1px; font-weight: bolder; vertical-align:middle; color: black; font-size: 14px;">
  17.                     &nbsp;&nbsp;&nbsp;&nbsp;<img src="image/AddEmp.gif" style="width:30px; height:30px;"/>&nbsp; &nbsp;
  18.                     <asp:Label ID="LabTitle" runat="server"></asp:Label></div>
  19.               </td>
  20.         </tr>
  21.         <tr>
  22.             <td style="height:30px; width: 371px;">
  23.             </td>
  24.         </tr>
  25.         <tr>
  26.             <td style="width: 371px">
  27.                 <asp:Label ID="Label1" runat="server" Font-Bold="False" Text="职工姓名:"></asp:Label>&nbsp;
  28.                 <asp:TextBox ID="TxtName" runat="server" MaxLength="20"></asp:TextBox>
  29.                 <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxtName"
  30.                     ErrorMessage="(*)" Font-Bold="True" Font-Size="12px" ValidationGroup="savedata" Display="Dynamic"></asp:RequiredFieldValidator>
  31.             </td>
  32.             <td style="width: 371px">
  33.                 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:CheckBox ID="CheckEmp" runat="server" Text="临时职工" />
  34.             </td>        
  35.                     
  36.         </tr>
  37.         <tr> 
  38.             <td style="width: 371px">
  39.                 <asp:Label ID="Label2" runat="server" Text="电子邮件:"></asp:Label>
  40.                 <asp:TextBox ID="TxtEmail" runat="server" MaxLength="50"></asp:TextBox>
  41.                 <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TxtEmail"
  42.                     ErrorMessage="(*)" Font-Bold="True" Font-Size="12px" ValidationGroup="savedata" ValidationExpression="w+([-+.']w+)*@w+([-.]w+)*.w+([-.]w+)*" Display="Dynamic"></asp:RegularExpressionValidator></td>
  43.             <td style=" width:371px">
  44.                 <asp:Label ID="Label3" runat="server" Text="电话号码:"></asp:Label>
  45.                 <asp:TextBox ID="TxtPNum" runat="server" MaxLength="30"></asp:TextBox>
  46.                 <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="TxtPNum"
  47.                     ErrorMessage="(*)" Font-Bold="True" Font-Size="12px" ValidationGroup="savedata" ValidationExpression="((d{3})|d{3}-)?d{8}" Display="Dynamic"></asp:RegularExpressionValidator></td>
  48.         </tr>
  49.         <tr>
  50.             <td>
  51.                 <asp:Label ID="Label5" runat="server" Text="员工类型:"></asp:Label>
  52.                 <asp:DropDownList ID="DListType" runat="server" Width="155px">
  53.                 </asp:DropDownList>
  54.             </td>
  55.             <td>
  56.                 <asp:Label ID="LbParent" runat="server" Text="部门主管:"></asp:Label>
  57.                 <asp:DropDownList ID="DLstParent" runat="server" Width="155px">
  58.                 </asp:DropDownList>
  59.             </td>
  60.         </tr>
  61.         </table>
  62.         <table class="Content" width="100%">
  63.         <tr>
  64.             <td style="width: 100%">
  65.                 <asp:Label ID="Label4" runat="server" Text="组织机构:"></asp:Label>
  66.                 <asp:TextBox ID="TxtOrgName" runat="server" BorderStyle="None" BorderWidth="0px"
  67.                     ReadOnly="True" Height="15px" Width="361px" CssClass="Content"></asp:TextBox></td>
  68.         </tr>
  69.         <tr>
  70.         <td>关联业务角色:</td>
  71.         </tr>
  72.         <tr>
  73.             <td>
  74.                 <asp:CheckBoxList ID="ChList" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
  75.                 </asp:CheckBoxList></td>
  76.         </tr>
  77.         </table>
  78.         <table class="Content" width="100%" border="0">
  79.             <tr>
  80.                 <td >
  81.                     <img alt="" src="image/header_bg.gif" width="100%" height="2px" /> 
  82.                 </td>
  83.             </tr>
  84.         </table>
  85.         </div>
  86.         <table class="Content" width="100%" style="height:40px;">
  87.             <tr>
  88.                 <td style="height:10px;">
  89.                 </td>
  90.             </tr>
  91.             <tr style="height:10px;">
  92.                 <td style="width:60%;"></td>
  93.                 <td>
  94.                     <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="image/queding.gif" ValidationGroup="savedata" OnClick="ImageButton1_Click" />
  95.                     <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="image/quxiao.gif" /></td>
  96.             </tr>
  97.             <tr style="height:40px;">
  98.             </tr>
  99.         </table>
  100.         </div>
  101.     </form>
  102. </body>
  103. </html>