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

OA系统

开发平台:

ASP/ASPX

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="deal_list.aspx.cs" Inherits="web_approvel_tw_deal_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.     
  8. </head>
  9. <body>
  10.     <form id="form1" runat="server">
  11.     <div>
  12.     <center>
  13.         <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="Medium" Style="position: relative"
  14.             Text="處理與通知"></asp:Label>&nbsp;</center>
  15.         <center>
  16.             &nbsp;</center>
  17.         <center>
  18.         <asp:Table runat="server" ID="TblFlow" Width="580px" Visible="False">
  19.             <asp:TableHeaderRow BackColor="Menu" runat="server">
  20.                 <asp:TableHeaderCell runat="server">寄件者</asp:TableHeaderCell>
  21.                 <asp:TableHeaderCell runat="server">主旨</asp:TableHeaderCell>
  22.                 <asp:TableHeaderCell runat="server">接收日期</asp:TableHeaderCell>
  23.                 <asp:TableHeaderCell  runat="server">狀態</asp:TableHeaderCell>
  24.                 <asp:TableHeaderCell runat="server"></asp:TableHeaderCell>
  25.             </asp:TableHeaderRow>
  26.         </asp:Table>
  27.             &nbsp;&nbsp;
  28.             <asp:Panel ID="PnlApprovel" runat="server" Style="position: relative" Visible="false">
  29.                 <br />
  30.                 <asp:Table ID="TblForm" runat="server" Style="position: relative" Width="580px">
  31.                     <asp:TableHeaderRow runat="server">
  32.                         <asp:TableHeaderCell runat="server" BackColor="Menu" ColumnSpan="4" Height="20px"
  33.                             HorizontalAlign="Left">流通事業群台幹差假單</asp:TableHeaderCell>
  34.                     </asp:TableHeaderRow>
  35.                     <asp:TableRow runat="server">
  36.                         <asp:TableCell runat="server" BorderWidth="1px">
  37.                             <asp:Label ID="LblFormNo" runat="server" BorderStyle="None" Text="申請單號"></asp:Label>
  38.                         </asp:TableCell>
  39.                         <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  40.                             <asp:TextBox ID="TxtFormNo" runat="server" ReadOnly="true"></asp:TextBox>
  41.                         </asp:TableCell>
  42.                         <asp:TableCell runat="server" BorderWidth="1px">
  43.                             <asp:Label ID="LblVacationBegin" runat="server" BorderStyle="None" Text="休假日期起"></asp:Label>
  44.                         </asp:TableCell>
  45.                         <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  46.                             <asp:TextBox ID="TxtVacationBegin" runat="server" ReadOnly="true"></asp:TextBox>
  47.                         </asp:TableCell>
  48.                     </asp:TableRow>
  49.                     <asp:TableRow runat="server">
  50.                         <asp:TableCell runat="server" BorderWidth="1px">
  51.                             <asp:Label ID="LblEmpNo" runat="server" BorderStyle="None" Text="申請人工號"></asp:Label>
  52.                         </asp:TableCell>
  53.                         <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  54.                             <asp:TextBox ID="TxtEmpNo" runat="server" ReadOnly="true"></asp:TextBox>
  55.                         </asp:TableCell>
  56.                         <asp:TableCell runat="server" BorderWidth="1px">
  57.                             <asp:Label ID="LblVacationEnd" runat="server" BorderStyle="None" Text="休假日期止"></asp:Label>
  58.                         </asp:TableCell>
  59.                         <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  60.                             <asp:TextBox ID="TxtVacationEnd" runat="server" ReadOnly="true"></asp:TextBox>
  61.                         </asp:TableCell>
  62.                     </asp:TableRow>
  63.                     <asp:TableRow runat="server">
  64.                         <asp:TableCell runat="server" BorderWidth="1px">
  65.                             <asp:Label ID="LblApplyDate" runat="server" BorderStyle="None" Text="申請日期"></asp:Label>
  66.                         </asp:TableCell>
  67.                         <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  68.                             <asp:TextBox ID="TxtApplyDate" runat="server" ReadOnly="true"></asp:TextBox>
  69.                         </asp:TableCell>
  70.                         <asp:TableCell runat="server" BorderWidth="1px">
  71.                             <asp:Label ID="LblVacationPlace" runat="server" BorderStyle="None" Text="休假區域"></asp:Label>
  72.                         </asp:TableCell>
  73.                         <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  74.                             <asp:TextBox ID="TxtVacationPlace" runat="server" ReadOnly="true"></asp:TextBox>
  75.                         </asp:TableCell>
  76.                     </asp:TableRow>
  77.                     <asp:TableRow runat="server">
  78.                         <asp:TableCell runat="server" BorderWidth="1px">
  79.                             <asp:Label ID="LblEmpId" runat="server" BorderStyle="None" Text="申請人姓名"></asp:Label>
  80.                         </asp:TableCell>
  81.                         <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  82.                             <asp:TextBox ID="TxtEmpName" runat="server" ReadOnly="true"></asp:TextBox>
  83.                         </asp:TableCell>
  84.                         <asp:TableCell runat="server" BorderWidth="1px">
  85.                             <asp:Label ID="LblFlightGoDepart" runat="server" BorderStyle="None" Text="班機(往)出發地"></asp:Label>
  86.                         </asp:TableCell>
  87.                         <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  88.                             <asp:TextBox ID="TxtFlightGoDepart" runat="server" ReadOnly="true"></asp:TextBox>
  89.                         </asp:TableCell>
  90.                     </asp:TableRow>
  91.                     <asp:TableRow runat="server">
  92.                         <asp:TableCell runat="server" BorderWidth="1px">
  93.                             <asp:Label ID="LblDepartment" runat="server" BorderStyle="None" Text="申請人部門"></asp:Label>
  94.                         </asp:TableCell>
  95.                         <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  96.                             <asp:TextBox ID="TxtDepartment" runat="server" ReadOnly="true"></asp:TextBox>
  97.                         </asp:TableCell>
  98.                         <asp:TableCell runat="server" BorderWidth="1px">
  99.                             <asp:Label ID="LblFlightGoArrive" runat="server" BorderStyle="None" Text="班機(往)終地點"></asp:Label>
  100.                         </asp:TableCell>
  101.                         <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  102.                             <asp:TextBox ID="TxtFlightGoArrive" runat="server" ReadOnly="true"></asp:TextBox>
  103.                         </asp:TableCell>
  104.                     </asp:TableRow>
  105.                     <asp:TableRow runat="server">
  106.                         <asp:TableCell runat="server" BorderWidth="1px">
  107.                             <asp:Label ID="LblPosition" runat="server" BorderStyle="None" Text="申請人職稱"></asp:Label>
  108.                         </asp:TableCell>
  109.                         <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  110.                             <asp:TextBox ID="TxtPosition" runat="server" ReadOnly="true"></asp:TextBox>
  111.                         </asp:TableCell>
  112.                         <asp:TableCell runat="server" BorderWidth="1px">
  113.                             <asp:Label ID="LblFlightGoTime" runat="server" BorderStyle="None" Text="(往)起飛時間"></asp:Label>
  114.                         </asp:TableCell>
  115.                         <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  116.                             <asp:TextBox ID="TxtFlightGoTime" runat="server" ReadOnly="true"></asp:TextBox>
  117.                         </asp:TableCell>
  118.                     </asp:TableRow>
  119.                     <asp:TableRow runat="server">
  120.                         <asp:TableCell runat="server" BorderWidth="1px">
  121.                             <asp:Label ID="LblDelegate" runat="server" BorderStyle="None" Text="代理人"></asp:Label>
  122.                         </asp:TableCell>
  123.                         <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  124.                             <asp:TextBox ID="TxtDelegate" runat="server" ReadOnly="true"></asp:TextBox>
  125.                         </asp:TableCell>
  126.                         <asp:TableCell runat="server" BorderWidth="1px">
  127.                             <asp:Label ID="LblFlightBackTime" runat="server" BorderStyle="None" Text="(返)起飛時間"></asp:Label>
  128.                         </asp:TableCell>
  129.                         <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  130.                             <asp:TextBox ID="TxtFlightBackTime" runat="server" ReadOnly="true"></asp:TextBox>
  131.                         </asp:TableCell>
  132.                     </asp:TableRow>
  133.                     <asp:TableRow runat="server">
  134.                         <asp:TableCell runat="server" BorderWidth="1px">
  135.                             <asp:Label ID="LblOffType" runat="server" BorderStyle="None" Text="假別"></asp:Label>
  136.                         </asp:TableCell>
  137.                         <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  138.                             <asp:TextBox ID="TxtOffType" runat="server" ReadOnly="true"></asp:TextBox>
  139.                         </asp:TableCell>
  140.                         <asp:TableCell runat="server" BorderWidth="1px">
  141.                             <asp:Label ID="LblFlightBackDepart" runat="server" BorderStyle="None" Text="班機(返)出發地"></asp:Label>
  142.                         </asp:TableCell>
  143.                         <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  144.                             <asp:TextBox ID="TxtFlightBackDepart" runat="server" ReadOnly="true"></asp:TextBox>
  145.                         </asp:TableCell>
  146.                     </asp:TableRow>
  147.                     <asp:TableRow runat="server">
  148.                         <asp:TableCell runat="server" BorderWidth="1px">
  149.                             <asp:Label ID="LblParenthesis" runat="server" BorderStyle="None" Text="附帶公務假"></asp:Label>
  150.                         </asp:TableCell>
  151.                         <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  152.                             <asp:TextBox ID="TxtParenthesis" runat="server" ReadOnly="true"></asp:TextBox>
  153.                         </asp:TableCell>
  154.                         <asp:TableCell runat="server" BorderWidth="1px">
  155.                             <asp:Label ID="LblFlightBackArrive" runat="server" BorderStyle="None" Text="班機(返)終地點"></asp:Label>
  156.                         </asp:TableCell>
  157.                         <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  158.                             <asp:TextBox ID="TxtFlightBackArrive" runat="server" ReadOnly="true"></asp:TextBox>
  159.                         </asp:TableCell>
  160.                     </asp:TableRow>
  161.                     <asp:TableRow runat="server">
  162.                         <asp:TableCell runat="server" BorderWidth="1px">
  163.                             <asp:Label ID="LblDays" runat="server" BorderStyle="None" Text="工作日數"></asp:Label>
  164.                         </asp:TableCell>
  165.                         <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  166.                             <asp:TextBox ID="TxtDays" runat="server" ReadOnly="true"></asp:TextBox>
  167.                         </asp:TableCell>
  168.                         <asp:TableCell runat="server" BorderWidth="1px">
  169.                             <asp:Label ID="LblBusinessBegin" runat="server" BorderStyle="None" Text="工作日期起"></asp:Label>
  170.                         </asp:TableCell>
  171.                         <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  172.                             <asp:TextBox ID="TxtBusinessBegin" runat="server" ReadOnly="true"></asp:TextBox>
  173.                         </asp:TableCell>
  174.                     </asp:TableRow>
  175.                     <asp:TableRow runat="server">
  176.                         <asp:TableCell runat="server" BorderWidth="1px">
  177.                             <asp:Label ID="LblBusinessPlace" runat="server" BorderStyle="None" Text="工作地點"></asp:Label>
  178.                         </asp:TableCell>
  179.                         <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  180.                             <asp:TextBox runat="Server" ID="TxtBusinessPlace" ReadOnly="true"></asp:TextBox>
  181.                         </asp:TableCell>
  182.                         <asp:TableCell runat="server" BorderWidth="1px">
  183.                             <asp:Label ID="LblBusinessEnd" runat="server" BorderStyle="None" Text="工作日期止"></asp:Label>
  184.                         </asp:TableCell>
  185.                         <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  186.                             <asp:TextBox ID="TxtBusinessEnd" runat="server" ReadOnly="true"></asp:TextBox>
  187.                         </asp:TableCell>
  188.                     </asp:TableRow>
  189.                     <asp:TableRow runat="server">
  190.                         <asp:TableCell runat="server" BorderWidth="1px">
  191.                             <asp:Label ID="LblReason" runat="server" BorderStyle="None" Text="申請事由"></asp:Label>
  192.                         </asp:TableCell>
  193.                         <asp:TableCell runat="server" BorderWidth="1px" ColumnSpan="3" HorizontalAlign="Left">
  194.                             <asp:TextBox ID="TxtReason" runat="server" ReadOnly="true" Rows="3" TextMode="MultiLine"
  195.                                 Width="450px"></asp:TextBox>
  196.                         </asp:TableCell>
  197.                     </asp:TableRow>
  198.                 </asp:Table>
  199.             </asp:Panel>
  200.             <asp:HiddenField ID="flg" runat="server" />
  201.         </center>
  202.         <center>
  203.             <asp:Panel ID="PnlFlow" runat="server" Style="left: 0px; position: relative; top: 0px"
  204.                 Visible="False" Width="580px">
  205.                 <asp:GridView ID="FlowList" runat="server" AutoGenerateColumns="False" BackColor="White"
  206.                     BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" DataSourceID="SqlDataSource2"
  207.                     OnRowCreated="FlowList_RowCreated" Style="position: relative" Width="580px">
  208.                     <FooterStyle BackColor="White" ForeColor="#000066" />
  209.                     <RowStyle ForeColor="Black" />
  210.                     <Columns>
  211.                         <asp:BoundField DataField="step" HeaderText="步驟" SortExpression="step" />
  212.                         <asp:BoundField DataField="emp_name" HeaderText="辦理人" SortExpression="emp_name" />
  213.                         <asp:TemplateField HeaderText="簽核類別">
  214.                             <ItemTemplate>
  215.                                 <asp:Label ID="LblApplyType" runat="server" Style="position: relative"></asp:Label>
  216.                             </ItemTemplate>
  217.                         </asp:TemplateField>
  218.                         <asp:TemplateField HeaderText="處理狀態">
  219.                             <ItemTemplate>
  220.                                 <asp:Label ID="LblIsCheck" runat="server" Style="position: relative"></asp:Label>
  221.                             </ItemTemplate>
  222.                         </asp:TemplateField>
  223.                         <asp:TemplateField HeaderText="是否同意">
  224.                             <ItemTemplate>
  225.                                 <asp:Label ID="LblIsAgree" runat="server" Style="position: relative"></asp:Label>
  226.                             </ItemTemplate>
  227.                         </asp:TemplateField>
  228.                         <asp:TemplateField HeaderText="處理意見">
  229.                             <ItemTemplate>
  230.                                 <asp:Label ID="LblComment" runat="server" Style="position: relative"></asp:Label>
  231.                             </ItemTemplate>
  232.                         </asp:TemplateField>
  233.                         <asp:BoundField DataField="check_date" HeaderText="辦理日期" SortExpression="check_date" />
  234.                     </Columns>
  235.                     <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Left" />
  236.                     <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
  237.                     <HeaderStyle BackColor="Menu" Font-Bold="True" ForeColor="Black" />
  238.                 </asp:GridView>
  239.                 <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
  240.                     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 f.form_id=@form_id">
  241.                     <SelectParameters>
  242.                         <asp:QueryStringParameter DefaultValue="0" Name="form_id" QueryStringField="f_id1" />
  243.                     </SelectParameters>
  244.                 </asp:SqlDataSource>
  245.             </asp:Panel>
  246.         </center>
  247.         <center>
  248.             &nbsp;
  249.             <br />
  250.             <asp:Panel ID="PnlDeal" runat="server" Style="position: relative" Visible="false">
  251.                 <table style="position: relative" width="580" border="1">
  252.                     <tr>
  253.                         <td style="width: 56px" align="center">
  254.                         </td>
  255.                         <td align="left"><asp:RadioButtonList ID="RbAgree" runat="server" AutoPostBack="True" RepeatDirection="Horizontal"
  256.                             Style="position: relative" Width="163px" OnSelectedIndexChanged="RbAgree_SelectedIndexChanged" BorderStyle="None">
  257.                             <asp:ListItem Selected="True" Value="Y">同意</asp:ListItem>
  258.                             <asp:ListItem Value="N">不同意</asp:ListItem>
  259.                         </asp:RadioButtonList></td>
  260.                     </tr>
  261.                     <tr>
  262.                         <td style="width: 56px" align="center">意見:
  263.                         </td>
  264.                         <td align="left">
  265.                             <asp:TextBox ID="TxtComment" runat="server" Rows="5" Style="position: relative" TextMode="MultiLine"
  266.                                 Width="500px" BorderStyle="None">已同意</asp:TextBox></td>
  267.                     </tr>
  268.                     <tr>
  269.                         <td colspan="2" align="center">
  270.                             <asp:Button ID="BtnOk" runat="server" OnClick="BtnOk_Click" Style="position: relative"
  271.                                 Text="送件" /></td>
  272.                     </tr>
  273.                 </table>
  274.             </asp:Panel>
  275.         </center>
  276.     </div>
  277.     </form>
  278. </body>
  279. </html>