DeptInfo.aspx
上传用户:shjujing
上传日期:2022-07-28
资源大小:11244k
文件大小:11k
源码类别:

Email客户端

开发平台:

Visual C++

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="DeptInfo.aspx.cs" Inherits="Module_Employee_ProRes_DeptInfo" %>
  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.     <title>部门信息</title>
  6. </head>
  7. <body style="text-align: center; background-image: url(../../Images/SysSkin/deptinfo.jpg); background-repeat: no-repeat;">
  8.     <form id="form1" runat="server">
  9.     <div>
  10.         <br />
  11.         <br />
  12.         <table style="width: 600px; height: 243px" cellpadding="0" cellspacing="0">
  13.             <tr>
  14.                 <td colspan="3" rowspan="2" style="vertical-align: top; height: 167px; text-align: center">
  15.                     <asp:Panel ID="Panel3" runat="server" Width="125px">
  16.                         <table cellpadding="0" cellspacing="0" style="width: 600px">
  17.                             <tr>
  18.                                 <td colspan="3" style="height: 32px; width: 623px;">
  19.                                     <table cellpadding="0" cellspacing="0" style="width: 600px">
  20.                                         <tr>
  21.                                             <td style="width: 100px; height: 23px">
  22.                                                 <span style="font-size: 9pt">查找类别</span></td>
  23.                                             <td style="width: 120px; height: 23px; text-align: left">
  24.                                                 <asp:DropDownList ID="dropClass" runat="server" Width="120px" Font-Size="9pt">
  25.                                                     <asp:ListItem>部门ID</asp:ListItem>
  26.                                                     <asp:ListItem>部门名称</asp:ListItem>
  27.                                                     <asp:ListItem>部门经理</asp:ListItem>
  28.                                                 </asp:DropDownList></td>
  29.                                             <td style="width: 100px; height: 23px">
  30.                                                 <span style="font-size: 9pt">关键字</span></td>
  31.                                             <td style="width: 120px; height: 23px; text-align: left">
  32.                                                 <asp:TextBox ID="txtKeyWord" runat="server" Font-Size="9pt" Width="120px"></asp:TextBox></td>
  33.                                             <td style="height: 23px; width: 24px;">
  34.                                                 <asp:Button ID="btnFind" runat="server" OnClick="btnFind_Click" Text="查找" Font-Size="9pt" /></td>
  35.                                             <td style="height: 23px; width: 110px;">
  36.                                                 <asp:LinkButton ID="lnkbtnAdd" runat="server" Font-Size="9pt" Font-Underline="False"
  37.                                                     ForeColor="#FF3333" OnClick="lnkbtnAdd_Click1" Visible="False">添加新部门</asp:LinkButton></td>
  38.                                         </tr>
  39.                                     </table>
  40.                                 </td>
  41.                             </tr>
  42.                             <tr>
  43.                                 <td colspan="3" style="height: 19px; width: 623px;">
  44.                     <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
  45.                         Font-Size="9pt" Width="600px" OnPageIndexChanging="GridView1_PageIndexChanging">
  46.                         <Columns>
  47.                             <asp:BoundField DataField="ID" HeaderText="部门ID" />
  48.                             <asp:BoundField DataField="DepName" HeaderText="部门名称" />
  49.                             <asp:BoundField DataField="DepManager" HeaderText="部门经理" />
  50.                             <asp:BoundField DataField="DepPhone" HeaderText="部门电话" />
  51.                             <asp:TemplateField HeaderText="建立时间">
  52.                                 <EditItemTemplate>
  53.                                     <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("DepBasetime") %>'></asp:TextBox>
  54.                                 </EditItemTemplate>
  55.                                 <ItemTemplate>
  56.                                     <asp:Label ID="Label1" runat="server" Text='<%# Bind("DepBasetime","{0:yyyy-M-d}") %>'></asp:Label>
  57.                                 </ItemTemplate>
  58.                             </asp:TemplateField>
  59.                             <asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="DeptAllInfo.aspx?ID={0}"
  60.                                 HeaderText="查看详情" Text="查看" />
  61.                         </Columns>
  62.                         <EmptyDataTemplate>
  63.                             <asp:Label ID="Label1" runat="server" Text='<%# Bind("DepBasetime","{0:yyyy-M-d}") %>'></asp:Label>
  64.                         </EmptyDataTemplate>
  65.                     </asp:GridView>
  66.                                 </td>
  67.                             </tr>
  68.                         </table>
  69.                     </asp:Panel>
  70.                     <asp:Panel ID="Panel1" runat="server" Height="50px" Visible="False" Width="600px">
  71.                         <table cellpadding="0" cellspacing="0" style="width: 600px">
  72.                             <tr>
  73.                                 <td colspan="4" style="height: 15px">
  74.                                 </td>
  75.                             </tr>
  76.                             <tr>
  77.                                 <td colspan="4" style="height: 19px">
  78.                                     <span style="font-size: 16pt"></span></td>
  79.                             </tr>
  80.                             <tr>
  81.                                 <td style="width: 100px; height: 17px">
  82.                                     <span style="font-size: 9pt">部门名称</span></td>
  83.                                 <td style="font-size: 12pt; width: 200px; height: 17px; text-align: left">
  84.                                     <asp:TextBox ID="txtDeptName" runat="server" MaxLength="20"></asp:TextBox>
  85.                                     <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtDeptName"
  86.                                         ErrorMessage="部门名称不能为空">*</asp:RequiredFieldValidator></td>
  87.                                 <td style="font-size: 9pt; width: 100px; color: #000000; height: 17px">
  88.                                     <span>部门经理</span></td>
  89.                                 <td style="font-size: 12pt; width: 203px; height: 17px; text-align: left">
  90.                                     <asp:DropDownList ID="DropDownList1" runat="server" Width="154px">
  91.                                     </asp:DropDownList></td>
  92.                             </tr>
  93.                             <tr style="font-size: 12pt">
  94.                                 <td style="height: 15px">
  95.                                     <span style="font-size: 9pt">部门电话</span></td>
  96.                                 <td style="font-size: 12pt; height: 15px; text-align: left">
  97.                                     <asp:TextBox ID="txtDeptPhone" runat="server" MaxLength="20"></asp:TextBox></td>
  98.                                 <td style="font-size: 12pt; height: 15px">
  99.                                     <span style="font-size: 9pt">部门地址</span></td>
  100.                                 <td style="font-size: 12pt; width: 203px; height: 15px; text-align: left">
  101.                                     <asp:TextBox ID="txtDeptAddress" runat="server" MaxLength="400"></asp:TextBox></td>
  102.                             </tr>
  103.                             <tr style="font-size: 12pt">
  104.                                 <td style="height: 19px">
  105.                                     <span style="font-size: 9pt">部门邮编</span></td>
  106.                                 <td style="font-size: 12pt; height: 19px; text-align: left">
  107.                                     <asp:TextBox ID="txtPostCard" runat="server" MaxLength="20"></asp:TextBox></td>
  108.                                 <td style="font-size: 12pt; height: 19px">
  109.                                     <span style="font-size: 9pt">建立时间</span></td>
  110.                                 <td style="font-size: 12pt; width: 203px; height: 19px; text-align: left">
  111.                                     <asp:TextBox ID="txtBaseTime" runat="server"></asp:TextBox>
  112.                                     <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="txtBaseTime"
  113.                                         ErrorMessage="格式:yyyy-mm-dd" Operator="DataTypeCheck" Type="Date" Width="3px">*</asp:CompareValidator></td>
  114.                             </tr>
  115.                             <tr style="font-size: 12pt">
  116.                                 <td style="height: 20px">
  117.                                     <span style="font-size: 9pt">部门概述</span></td>
  118.                                 <td colspan="3" rowspan="2" style="text-align: left">
  119.                                     <asp:TextBox ID="txtDescript" runat="server" Height="200px" MaxLength="500"
  120.                                         TextMode="MultiLine" Width="448px"></asp:TextBox></td>
  121.                             </tr>
  122.                             <tr>
  123.                                 <td style="height: 180px">
  124.                                 </td>
  125.                             </tr>
  126.                             <tr>
  127.                                 <td colspan="4" rowspan="1" style="text-align: center; height: 16px;">
  128.                                         <asp:Button ID="btnOK" runat="server" Font-Size="9pt" Text="提交" OnClick="btnOK_Click" />
  129.                                         <input id="Reset1" style="font-size: 9pt" type="reset" value="重置" />
  130.                                     <asp:Button ID="btnBack" runat="server" Font-Size="9pt" OnClick="btnBack_Click" Text="返回" CausesValidation="False" /></td>
  131.                             </tr>
  132.                             <tr>
  133.                                 <td colspan="4" rowspan="1" style="height: 15px; text-align: center">
  134.                                     &nbsp;&nbsp;<asp:ValidationSummary ID="ValidationSummary1" runat="server" Font-Size="9pt"
  135.                                         ShowMessageBox="True" ShowSummary="False" />
  136.                                 </td>
  137.                             </tr>
  138.                         </table>
  139.                     </asp:Panel>
  140.                 </td>
  141.             </tr>
  142.             <tr>
  143.             </tr>
  144.         </table>
  145.     
  146.     </div>
  147.     </form>
  148. </body>
  149. </html>