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

OA系统

开发平台:

ASP/ASPX

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="my_list.aspx.cs" Inherits="web_approvel_tw_my_list" %>
  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.     <center>
  12.         <asp:Label ID="LblTitle" runat="server" Font-Bold="True" Font-Size="Medium" Style="position: relative"
  13.             Text="我的申請單"></asp:Label>&nbsp;</center>
  14.         <center>
  15.             &nbsp;</center>
  16.         <center>
  17.         <asp:GridView ID="ApprovelList" runat="server" BackColor="White" BorderColor="#CCCCCC"
  18.             BorderStyle="None" BorderWidth="1px" CellPadding="3" Style="position: relative" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" Width="580px" OnRowDataBound="ApprovelList_RowDataBound" OnRowCreated="ApprovelList_RowCreated">
  19.             <FooterStyle BackColor="White" ForeColor="#000066" />
  20.             <RowStyle ForeColor="Black" />
  21.             <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Left" />
  22.             <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
  23.             <HeaderStyle BackColor="Menu" Font-Bold="True" ForeColor="Black" />
  24.             <Columns>
  25.                 <asp:BoundField DataField="apply_date" SortExpression="apply_date" HeaderText="申請日期" />
  26.                 <asp:BoundField DataField="form_id" SortExpression="form_id" HeaderText="單號" />
  27.                 <asp:BoundField DataField="type" HeaderText="類別" SortExpression="type" />
  28.                 <asp:BoundField DataField="total_result" SortExpression="total_result" HeaderText="處理結果" />
  29.                 <asp:TemplateField>
  30.                     <ItemTemplate>
  31.                         <asp:LinkButton ID="LbRevoke" OnClientClick="return confirm('確定要撤銷嗎?')" runat="server" Style="position: relative" Enabled="false">撤销</asp:LinkButton>
  32.                     </ItemTemplate>
  33.                 </asp:TemplateField>
  34.             </Columns>
  35.         </asp:GridView>
  36.         <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
  37.             SelectCommand="select a.id, a.form_id, a.apply_date, t.name type, a.total_result from OA_TW_APPROVEL_FORM a inner join OA_TW_OFF_TYPE t on a.off_type=t.id where a.emp_id=@user_id order by a.apply_date desc">
  38.             <SelectParameters>
  39.                 <asp:SessionParameter DefaultValue="0" Name="user_id" SessionField="user_id" />
  40.             </SelectParameters>
  41.         </asp:SqlDataSource>
  42.         <asp:Panel ID="PnlApprovel" runat="server" Style="position: relative" Visible="False">
  43.             <br />
  44.             &nbsp;<asp:Table ID="TblForm" runat="server" Height="300" Width="574px">
  45.                 <asp:TableHeaderRow runat="server">
  46.                     <asp:TableHeaderCell runat="server" BackColor="Menu" ColumnSpan="4" Height="20px"
  47.                         HorizontalAlign="Left">流通事業群POS來客數統計單</asp:TableHeaderCell>
  48.                 </asp:TableHeaderRow>
  49.                 <asp:TableRow runat="server">
  50.                     <asp:TableCell runat="server" BorderWidth="1px">
  51.                         <asp:Label ID="LblFormNo" runat="server" BorderStyle="None" Text="申請單號"></asp:Label>
  52.                     </asp:TableCell>
  53.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  54.                         <asp:TextBox ID="TxtFormNo" runat="server" Enabled="False"></asp:TextBox>
  55.                     </asp:TableCell>
  56.                     <asp:TableCell ID="TableCell3" runat="server" BorderWidth="1px">
  57.                         <asp:Label ID="Label1" runat="server" BorderStyle="None" Text="申請人工號"></asp:Label>
  58.                     </asp:TableCell>
  59.                     <asp:TableCell ID="TableCell4" runat="server" BorderWidth="1px" HorizontalAlign="Left">
  60.                         <asp:TextBox ID="TxtEmpNo" runat="server" Enabled="False"></asp:TextBox>
  61.                     </asp:TableCell>
  62.                 </asp:TableRow>
  63.                 <asp:TableRow runat="server">
  64.                     <asp:TableCell ID="TableCell5" runat="server" BorderWidth="1px">
  65.                         <asp:Label ID="Label2" runat="server" BorderStyle="None" Text="申請人姓名"></asp:Label>
  66.                     </asp:TableCell>
  67.                     <asp:TableCell ID="TableCell6" runat="server" BorderWidth="1px" HorizontalAlign="Left">
  68.                         <asp:TextBox ID="TxtEmpName" runat="server" Enabled="False"></asp:TextBox>
  69.                     </asp:TableCell>
  70.                     <asp:TableCell ID="TableCell7" runat="server" BorderWidth="1px">
  71.                         <asp:Label ID="Label3" runat="server" BorderStyle="None" Text="申請日期"></asp:Label>
  72.                     </asp:TableCell>
  73.                     <asp:TableCell ID="TableCell8" runat="server" BorderWidth="1px" HorizontalAlign="Left">
  74.                         <asp:TextBox ID="TxtApplyDate" runat="server" Enabled="False"></asp:TextBox>
  75.                     </asp:TableCell>
  76.                 </asp:TableRow>
  77.                 <asp:TableRow runat="server">
  78.                     <asp:TableCell ID="TableCell9" runat="server" BorderWidth="1px">
  79.                         <asp:Label ID="Label4" runat="server" BorderStyle="None" Text="申請人部門"></asp:Label>
  80.                     </asp:TableCell>
  81.                     <asp:TableCell ID="TableCell10" runat="server" BorderWidth="1px" HorizontalAlign="Left">
  82.                         <asp:TextBox ID="TxtDepartment" runat="server" Enabled="False"></asp:TextBox>
  83.                     </asp:TableCell>
  84.                     <asp:TableCell ID="TableCell11" runat="server" BorderWidth="1px">
  85.                         <asp:Label ID="Label5" runat="server" BorderStyle="None" Text="申請人職稱"></asp:Label>
  86.                     </asp:TableCell>
  87.                     <asp:TableCell ID="TableCell12" runat="server" BorderWidth="1px" HorizontalAlign="Left">
  88.                         <asp:TextBox ID="TxtPosition" runat="server" Enabled="False"></asp:TextBox>
  89.                     </asp:TableCell>
  90.                 </asp:TableRow>
  91.                 <asp:TableRow ID="TableRow1" runat="server">
  92.                     <asp:TableCell ID="TableCell1" runat="server" BorderWidth="1px">
  93.                         <asp:Label ID="Label6" runat="server" BorderStyle="None" Text="來客數"></asp:Label>
  94.                     </asp:TableCell>
  95.                     <asp:TableCell ID="TableCell2" runat="server" BorderWidth="1px" HorizontalAlign="Left">
  96.                         <asp:TextBox ID="TextCount" runat="server" Enabled="False"></asp:TextBox>
  97.                     </asp:TableCell>
  98.                     <asp:TableCell ID="TableCell13" runat="server" BorderWidth="1px">
  99.                         <asp:Label ID="Label7" runat="server" BorderStyle="None" Text="提袋數"></asp:Label>
  100.                     </asp:TableCell>
  101.                     <asp:TableCell ID="TableCell14" runat="server" BorderWidth="1px" HorizontalAlign="Left">
  102.                         <asp:TextBox ID="TextCount1" runat="server" Enabled="False"></asp:TextBox>
  103.                     </asp:TableCell>
  104.                 </asp:TableRow>
  105.                 <asp:TableRow ID="TableRow2" runat="server">
  106.                     <asp:TableCell ID="TableCell15" runat="server" BorderWidth="1px">
  107.                         <asp:Label ID="Label8" runat="server" BorderStyle="None" Text="提袋率"></asp:Label>
  108.                     </asp:TableCell>
  109.                     <asp:TableCell ID="TableCell16" runat="server" BorderWidth="1px" HorizontalAlign="Left">
  110.                         <asp:TextBox ID="TextLv" runat="server" Enabled="False"></asp:TextBox>
  111.                     </asp:TableCell>
  112.                     <asp:TableCell ID="TableCell17" runat="server" BorderWidth="1px">
  113.                         <asp:Label ID="Label9" runat="server" BorderStyle="None" Text="提袋日期"></asp:Label>
  114.                     </asp:TableCell>
  115.                     <asp:TableCell ID="TableCell18" runat="server" BorderWidth="1px" HorizontalAlign="Left">
  116.                         <asp:TextBox ID="TextDate" runat="server" Enabled="False"></asp:TextBox>
  117.                     </asp:TableCell>
  118.                 </asp:TableRow>
  119.                 <asp:TableRow ID="TableRow3" runat="server">
  120.                     <asp:TableCell ID="TableCell19" runat="server" BorderWidth="1px">
  121.                         <asp:Label ID="LblReason" runat="server" BorderStyle="None" Text="備注"></asp:Label>
  122.                     </asp:TableCell>
  123.                     <asp:TableCell ID="TableCell20" runat="server" BorderWidth="1px" ColumnSpan="3" HorizontalAlign="Left">
  124.                         <asp:TextBox ID="TxtRemark" runat="server" Enabled="False" Rows="3" TextMode="MultiLine"
  125.                             Width="450px"></asp:TextBox>
  126.                     </asp:TableCell>
  127.                 </asp:TableRow>
  128.                 <asp:TableRow runat="server" BorderWidth="1px">
  129.                     <asp:TableCell runat="server" BorderWidth="1px" ColumnSpan="4">
  130.                         <asp:Button ID="BtnOk" runat="server" OnClick="BtnOk_Click" Text="送件" />&nbsp;
  131.                         <asp:Button ID="BtnSave" runat="server" OnClick="BtnSave_Click" Text="存储" />
  132.                     </asp:TableCell>
  133.                 </asp:TableRow>
  134.             </asp:Table>
  135.         </asp:Panel>
  136.         </center>
  137.         <center>
  138.             &nbsp;<asp:Panel ID="Panel1" runat="server" Style="position: relative" Visible="false">
  139.                 <asp:Label ID="LblError" ForeColor="red" runat="server"></asp:Label>
  140.                 <asp:Button ID="BtnOk" runat="server" Style="position: relative" Text="送件" OnClick="BtnOk_Click" />
  141.                 <asp:HiddenField ID="State" runat="server" />
  142.                 <asp:HiddenField ID="PositionId" runat="server" />
  143.                 <asp:HiddenField ID="DepartmentId" runat="server" />
  144.             </asp:Panel>
  145.             <asp:Panel ID="PnlFlow" runat="server" Style="position: relative; left: 0px; top: 0px;" Width="580px">
  146.                 <asp:GridView ID="FlowList" runat="server" BackColor="White" BorderColor="#CCCCCC"
  147.             BorderStyle="None" BorderWidth="1px" CellPadding="3" Style="position: relative" AutoGenerateColumns="False" DataSourceID="SqlDataSource2" Width="580px" OnRowCreated="FlowList_RowCreated">
  148.                     <FooterStyle BackColor="White" ForeColor="#000066" />
  149.                     <RowStyle ForeColor="Black" />
  150.                     <Columns>
  151.                         <asp:BoundField DataField="step" HeaderText="步驟" SortExpression="step" />
  152.                         <asp:BoundField DataField="emp_name" HeaderText="辦理人" SortExpression="emp_name" />
  153.                         <asp:TemplateField HeaderText="簽核類別">
  154.                             <ItemTemplate>
  155.                                 <asp:Label ID="LblApplyType" runat="server" Style="position: relative"></asp:Label>
  156.                             </ItemTemplate>
  157.                         </asp:TemplateField>
  158.                         <asp:TemplateField HeaderText="處理狀態">
  159.                             <ItemTemplate>
  160.                                 <asp:Label ID="LblIsCheck" runat="server" Style="position: relative"></asp:Label>
  161.                             </ItemTemplate>
  162.                         </asp:TemplateField>
  163.                         <asp:TemplateField HeaderText="是否同意">
  164.                             <ItemTemplate>
  165.                                 <asp:Label ID="LblIsAgree" runat="server" Style="position: relative"></asp:Label>
  166.                             </ItemTemplate>
  167.                         </asp:TemplateField>
  168.                         <asp:TemplateField HeaderText="處理意見">
  169.                             <ItemTemplate>
  170.                                 <asp:Label ID="LblComment" runat="server" Style="position: relative"></asp:Label>
  171.                             </ItemTemplate>
  172.                         </asp:TemplateField>
  173.                         <asp:BoundField DataField="check_date" HeaderText="辦理日期" SortExpression="check_date" />
  174.                     </Columns>
  175.                     <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Left" />
  176.                     <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
  177.                     <HeaderStyle BackColor="Menu" Font-Bold="True" ForeColor="Black" />
  178.                 </asp:GridView>
  179.                 <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
  180.                     SelectCommand="select f.id, f.step,e.emp_name, f.comment, f.check_date from OA_TW_APPROVEL_FORM_FLOW f inner join OA_EMPLOYEE e on e.id=f.operator_id where form_id=@form_id">
  181.                     <SelectParameters>
  182.                         <asp:QueryStringParameter DefaultValue="0" Name="form_id" QueryStringField="a_id" />
  183.                     </SelectParameters>
  184.                 </asp:SqlDataSource>
  185.             </asp:Panel>
  186.         </center>
  187.     </div>
  188.     </form>
  189. </body>
  190. </html>