blank.aspx
上传用户:xrffrp
上传日期:2022-03-25
资源大小:22155k
文件大小:6k
源码类别:

OA系统

开发平台:

ASP/ASPX

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="blank.aspx.cs" Inherits="web_personnel_curricula_vitae_blank" %>
  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.     <link href="../../../css/style.css" rel="stylesheet" type="text/css" />
  7. </head>
  8. <body>
  9.     <form id="form1" runat="server">
  10.     <div>
  11.         <div>
  12.             &nbsp;<center>
  13.                 <asp:Label ID="LblTitle1" runat="server" Font-Bold="True" Font-Size="Medium" Style="position: relative;
  14.                     top: 0px"></asp:Label>&nbsp;</center>
  15.             <center>
  16.                 <br />
  17.                 <asp:GridView ID="EmployeeList" runat="server" AllowPaging="True" AllowSorting="True"
  18.                     AutoGenerateColumns="False" BackColor="White" BorderColor="#999999" BorderStyle="None"
  19.                     BorderWidth="1px" CellPadding="3" DataSourceID="SqlDataSource1" GridLines="Vertical"
  20.                     OnRowCreated="EmployeeList_RowCreated" OnRowDataBound="EmployeeList_RowDataBound"
  21.                     Style="position: relative" Width="500px">
  22.                     <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
  23.                     <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
  24.                     <Columns>
  25.                         <asp:BoundField DataField="emp_no" HeaderText="員工工號" SortExpression="emp_no" />
  26.                         <asp:BoundField DataField="emp_name" HeaderText="員工姓名" SortExpression="emp_name" />
  27.                         <asp:BoundField DataField="position" HeaderText="職位" SortExpression="position" />
  28.                         <asp:BoundField DataField="active_date" HeaderText="入職日期" SortExpression="active_date" />
  29.                         <asp:TemplateField HeaderText="人在哪里">
  30.                             <ItemTemplate>
  31.                                 <asp:LinkButton ID="LbWhere" runat="server" Style="position: relative"></asp:LinkButton>
  32.                             </ItemTemplate>
  33.                         </asp:TemplateField>
  34.                     
  35.                      
  36.                     </Columns>
  37.                     <PagerStyle BackColor="#999999" Font-Overline="False" Font-Strikeout="False" ForeColor="Black"
  38.                         HorizontalAlign="Center" Wrap="True" />
  39.                     <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
  40.                     <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
  41.                     <AlternatingRowStyle BackColor="Gainsboro" />
  42.                     <PagerSettings FirstPageText="第一頁" LastPageText="最后一頁" Mode="NextPrevious" NextPageText="下一頁"
  43.                         PreviousPageText="上一頁" />
  44.                 </asp:GridView>
  45.                 <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
  46.                     SelectCommand="SELECT e.id, e.emp_no, e.emp_name, e.active_date, p.name AS position FROM dbo.OA_EMPLOYEE AS e INNER JOIN dbo.OA_EMPLOYEE_POSITION AS p ON e.position = p.id WHERE (e.department_id = @department_id) and e.dimission_date='' ORDER BY e.emp_no">
  47.                     <SelectParameters>
  48.                         <asp:SessionParameter DefaultValue="0" Name="department_id" SessionField="p_department_id" />
  49.                     </SelectParameters>
  50.                 </asp:SqlDataSource>
  51.             </center>
  52.            
  53.             <center><br />
  54.                 <asp:Label ID="LblTitle2" runat="server" Font-Bold="True" Font-Size="Medium" Style="position: relative;
  55.                     top: 0px" Visible="False"></asp:Label>&nbsp;</center>
  56.             <center>
  57.                 &nbsp;</center>
  58.             <center>
  59.                 <asp:GridView ID="EmployeeDimissionList" runat="server" AllowPaging="True" AllowSorting="True"
  60.                     AutoGenerateColumns="False" BackColor="White" BorderColor="#999999" BorderStyle="None"
  61.                     BorderWidth="1px" CellPadding="3" DataSourceID="SqlDataSource2" GridLines="Vertical" OnRowDataBound="EmployeeDimissionList_RowDataBound"
  62.                     Style="position: relative" Width="500px" Visible="False">
  63.                 <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
  64.                 <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
  65.                 <Columns>
  66.                     <asp:BoundField DataField="emp_no" HeaderText="員工工號" SortExpression="emp_no" />
  67.                     <asp:BoundField DataField="emp_name" HeaderText="員工姓名" SortExpression="emp_name" />
  68.                     <asp:BoundField DataField="position" HeaderText="職位" SortExpression="position" />
  69.                     <asp:BoundField DataField="active_date" HeaderText="入職日期" SortExpression="active_date" />
  70.                     <asp:BoundField DataField="dimission_date" HeaderText="離職日期" />
  71.                 </Columns>
  72.                 <PagerStyle BackColor="#999999" Font-Overline="False" Font-Strikeout="False" ForeColor="Black"
  73.                         HorizontalAlign="Center" Wrap="True" />
  74.                 <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
  75.                 <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
  76.                 <AlternatingRowStyle BackColor="Gainsboro" />
  77.                 <PagerSettings FirstPageText="第一頁" LastPageText="最后一頁" Mode="NextPrevious" NextPageText="下一頁"
  78.                         PreviousPageText="上一頁" />
  79.             </asp:GridView>
  80.                 <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
  81.                     SelectCommand="SELECT e.id, e.emp_no, e.emp_name, e.active_date, e.dimission_date, p.name AS position FROM dbo.OA_EMPLOYEE AS e INNER JOIN dbo.OA_EMPLOYEE_POSITION AS p ON e.position = p.id WHERE (e.department_id = @department_id) and e.dimission_date<>'' ORDER BY e.emp_no">
  82.                     <SelectParameters>
  83.                         <asp:SessionParameter DefaultValue="0" Name="department_id" SessionField="p_department_id" />
  84.                     </SelectParameters>
  85.                 </asp:SqlDataSource>
  86.                 &nbsp;</center>
  87.         </div>
  88.     
  89.     </div>
  90.     </form>
  91. </body>
  92. </html>