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

OA系统

开发平台:

ASP/ASPX

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="my_list.aspx.cs" Inherits="web_approvel_ch_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.             <br />    
  13.         <asp:Label ID="LblTitle" runat="server" Font-Bold="True" Font-Size="Medium" Style="position: relative"
  14.             Text="我的申請單"></asp:Label>&nbsp;</center>
  15.         <center><br />
  16.         <asp:GridView ID="ApprovelList" runat="server" BackColor="White" BorderColor="#CCCCCC"
  17.             BorderStyle="None" BorderWidth="1px" CellPadding="3" Style="position: relative" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" Width="580px" OnRowDataBound="ApprovelList_RowDataBound" DataSourceID="SqlDataSource1">
  18.             <FooterStyle BackColor="White" ForeColor="#000066" />
  19.             <RowStyle ForeColor="Black" /><Columns>
  20.                 <asp:BoundField DataField="apply_date" SortExpression="apply_date" HeaderText="申請日期" />
  21.                 <asp:BoundField DataField="form_id" SortExpression="form_id" HeaderText="單號" />
  22.                 <asp:TemplateField HeaderText="類別">
  23.                     <ItemTemplate>
  24.                         <asp:Label ID="Label1" runat="server" Style="position: relative" Text="出差"></asp:Label>
  25.                     </ItemTemplate>
  26.                 </asp:TemplateField>
  27.                 <asp:BoundField DataField="total_result" SortExpression="total_result" HeaderText="處理結果" />
  28.                 
  29.             </Columns>
  30.             <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Left" />
  31.             <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
  32.             <HeaderStyle BackColor="Menu" Font-Bold="True" ForeColor="Black" />
  33.         </asp:GridView>
  34.         <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
  35.             SelectCommand="select id, apply_date, form_id, total_result from OA_CH_BUSINESS_FORM where emp_id=@user_id order by apply_date desc">
  36.             <SelectParameters>
  37.                 <asp:SessionParameter DefaultValue="0" Name="user_id" SessionField="user_id" />
  38.             </SelectParameters>
  39.         </asp:SqlDataSource>
  40.             &nbsp;&nbsp;
  41.         </center>
  42.         <center>
  43.         </center>
  44.         <center>
  45.             &nbsp;</center>
  46.         <center>
  47.             <asp:GridView ID="OffList" runat="server" BackColor="White" BorderColor="#CCCCCC"
  48.             BorderStyle="None" BorderWidth="1px" CellPadding="3" Style="position: relative" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" Width="580px" OnRowDataBound="OffList_RowDataBound" DataSourceID="SqlDataSource3">
  49.                 <FooterStyle BackColor="White" ForeColor="#000066" />
  50.                 <RowStyle ForeColor="Black" />
  51.                 <Columns>
  52.                     <asp:BoundField DataField="apply_date" SortExpression="apply_date" HeaderText="申請日期" />
  53.                     <asp:BoundField DataField="form_id" SortExpression="form_id" HeaderText="單號" />
  54.                     <asp:BoundField DataField="type" HeaderText="假別" SortExpression="type" />
  55.                     <asp:BoundField DataField="total_result" SortExpression="total_result" HeaderText="處理結果" />
  56.                 </Columns>
  57.                 <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Left" />
  58.                 <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
  59.                 <HeaderStyle BackColor="Menu" Font-Bold="True" ForeColor="Black" />
  60.             </asp:GridView>
  61.             <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
  62.                 SelectCommand="select o.id, o.form_id, o.apply_date, o.total_result, t.name type from OA_CH_OFF_FORM o inner join OA_CH_OFF_TYPE t on o.off_type=t.id where emp_id=@user_id order by o.apply_date desc">
  63.                 <SelectParameters>
  64.                     <asp:SessionParameter DefaultValue="0" Name="user_id" SessionField="user_id" />
  65.                 </SelectParameters>
  66.             </asp:SqlDataSource>
  67.             <br />
  68.         <asp:Panel ID="PnlApprovel" runat="server" Style="position: relative; left: 0px; top: 0px;" Visible="False">
  69.             <asp:Table ID="TblForm" runat="server" Style="position: relative" Width="580px">
  70.                 <asp:TableHeaderRow ID="TableHeaderRow1" runat="server">
  71.                     <asp:TableHeaderCell ID="TableHeaderCell1" runat="server" BackColor="Menu" ColumnSpan="4"
  72.                         Height="20px" HorizontalAlign="Left">流通事業群中幹出差單</asp:TableHeaderCell>
  73.                 </asp:TableHeaderRow>
  74.                 <asp:TableRow runat="server">
  75.                     <asp:TableCell runat="server" BorderWidth="1px">
  76.                         <asp:Label ID="Label221" runat="server" Text="申請單號"></asp:Label></asp:TableCell>
  77.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  78.                         <asp:TextBox ID="TxtFormId" runat="server"  ReadOnly="True"></asp:TextBox></asp:TableCell>
  79.                     <asp:TableCell runat="server" BorderWidth="1px">
  80.                         <asp:Label ID="Label9" runat="server" Style="position: relative" Text="差假別"></asp:Label></asp:TableCell>
  81.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  82.                         <asp:TextBox ID="TxtOffType" runat="server" ReadOnly="true" Style="position: relative"
  83.                             Text="出差"  ></asp:TextBox></asp:TableCell>
  84.                 </asp:TableRow>
  85.                 <asp:TableRow runat="server">
  86.                     <asp:TableCell runat="server" BorderWidth="1px">
  87.                         <asp:Label ID="Label2" runat="server" Style="position: relative" Text="申請人工號"></asp:Label></asp:TableCell>
  88.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  89.                         <asp:TextBox ID="TxtEmpNo" runat="server"  ReadOnly="True" Style="position: relative"></asp:TextBox></asp:TableCell>
  90.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Center">
  91.                         <asp:Label ID="Label10" runat="server" Style="position: relative" Text="出差日期起"></asp:Label></asp:TableCell>
  92.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  93.                         <asp:TextBox ID="TxtBeginTime" runat="server" Style="position: relative"  ReadOnly="True"></asp:TextBox>
  94.                     </asp:TableCell>
  95.                 </asp:TableRow>
  96.                 <asp:TableRow runat="server">
  97.                     <asp:TableCell runat="server" BorderWidth="1px">
  98.                         <asp:Label ID="Label3" runat="server" Style="position: relative" Text="申請人姓名"></asp:Label></asp:TableCell>
  99.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  100.                         <asp:TextBox ID="TxtEmpName" runat="server"  ReadOnly="True" Style="position: relative"></asp:TextBox></asp:TableCell>
  101.                     <asp:TableCell runat="server" BorderWidth="1px">
  102.                         <asp:Label ID="Label11" runat="server" Style="position: relative" Text="出差日期止"></asp:Label></asp:TableCell>
  103.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  104.                         <asp:TextBox ID="TxtEndTime" runat="server" Style="position: relative"  ReadOnly="True"></asp:TextBox></asp:TableCell>
  105.                 </asp:TableRow>
  106.                 <asp:TableRow runat="server">
  107.                     <asp:TableCell runat="server" BorderWidth="1px">
  108.                         <asp:Label ID="Label4" runat="server" Style="position: relative" Text="申請日期"></asp:Label></asp:TableCell>
  109.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  110.                         <asp:TextBox ID="TxtApplyDate" runat="server"  ReadOnly="True" Style="position: relative"></asp:TextBox></asp:TableCell>
  111.                     <asp:TableCell runat="server" BorderWidth="1px">
  112.                         <asp:Label ID="Label12" runat="server" Style="position: relative" Text="去程出發地"></asp:Label></asp:TableCell>
  113.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  114.                         <asp:TextBox ID="TxtDepartPlace" runat="server"  ReadOnly="True"></asp:TextBox>
  115.                     </asp:TableCell>
  116.                 </asp:TableRow>
  117.                 <asp:TableRow runat="server">
  118.                     <asp:TableCell runat="server" BorderWidth="1px">
  119.                         <asp:Label ID="Label5" runat="server" Style="position: relative" Text="申請人部門"></asp:Label></asp:TableCell>
  120.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  121.                         <asp:TextBox ID="TxtDepartment" runat="server"  ReadOnly="True" Style="position: relative"></asp:TextBox></asp:TableCell>
  122.                     <asp:TableCell runat="server" BorderWidth="1px">
  123.                         <asp:Label ID="Label13" runat="server" Style="position: relative" Text="回程終地點"></asp:Label></asp:TableCell>
  124.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  125.                         <asp:TextBox ID="TxtArrivePlace" runat="server"  ReadOnly="True"></asp:TextBox>
  126.                     </asp:TableCell>
  127.                 </asp:TableRow>
  128.                 <asp:TableRow runat="server">
  129.                     <asp:TableCell runat="server" BorderWidth="1px">
  130.                         <asp:Label ID="Label6" runat="server" Style="position: relative" Text="申請人職稱"></asp:Label></asp:TableCell>
  131.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  132.                         <asp:TextBox ID="TxtPosition" runat="server"  ReadOnly="True" Style="position: relative"></asp:TextBox></asp:TableCell>
  133.                     <asp:TableCell runat="server" BorderWidth="1px">
  134.                         <asp:Label ID="Label14" runat="server" Style="position: relative" Text="(去程)起飛時間"></asp:Label></asp:TableCell>
  135.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  136.                         <asp:TextBox ID="TxtDepartTime" runat="server" Style="position: relative"  ReadOnly="True"></asp:TextBox>
  137.                     </asp:TableCell>
  138.                 </asp:TableRow>
  139.                 <asp:TableRow runat="server">
  140.                     <asp:TableCell runat="server" BorderWidth="1px">
  141.                         <asp:Label ID="Label7" runat="server" Style="position: relative" Text="出差天數"></asp:Label></asp:TableCell>
  142.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  143.                         <asp:TextBox ID="TxtDays" runat="server" Style="position: relative"  ReadOnly="True"></asp:TextBox>日</asp:TableCell>
  144.                     <asp:TableCell runat="server" BorderWidth="1px">
  145.                         <asp:Label ID="Label8" runat="server" Style="position: relative;" Text="(回程)起飛時間"></asp:Label></asp:TableCell>
  146.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  147.                         <asp:TextBox ID="TxtArriveTime" runat="server" Style="position: relative"  ReadOnly="True"></asp:TextBox>
  148.                     </asp:TableCell>
  149.                 </asp:TableRow>
  150.             </asp:Table>
  151.             &nbsp;&nbsp;<asp:Table ID="TblDetail" runat="server" Style="position: relative" Width="828px" BorderStyle="Double">
  152.                 <asp:TableHeaderRow BackColor="Menu" runat="server">
  153.                     <asp:TableHeaderCell runat="server">序號</asp:TableHeaderCell>
  154.                     <asp:TableHeaderCell runat="server">出差期間</asp:TableHeaderCell>
  155.                     <asp:TableHeaderCell runat="server">起</asp:TableHeaderCell>
  156.                     <asp:TableHeaderCell runat="server">迄</asp:TableHeaderCell>
  157.                     <asp:TableHeaderCell runat="server">交通工具</asp:TableHeaderCell>
  158.                     <asp:TableHeaderCell runat="server">業務內容(含訪問團體)</asp:TableHeaderCell>                    
  159.                     <asp:TableHeaderCell runat="server" >備註</asp:TableHeaderCell>
  160.                 </asp:TableHeaderRow>
  161.             </asp:Table>
  162.             &nbsp;<br />
  163.             <asp:Table ID="Table3" runat="server" Height="119px" Style="left: 1px; position: relative;
  164.                 top: 3px" Width="656px" BorderStyle="Double">
  165.                 <asp:TableHeaderRow ID="TableHeaderRow2" runat="server" BackColor="Menu">
  166.                     <asp:TableHeaderCell ID="TableHeaderCell2" runat="server">序號</asp:TableHeaderCell>
  167.                     <asp:TableHeaderCell ID="TableHeaderCell4" runat="server">費用內容</asp:TableHeaderCell>
  168.                     <asp:TableHeaderCell ID="TableHeaderCell3" runat="server">申請金額</asp:TableHeaderCell>
  169.                     <asp:TableHeaderCell ID="TableHeaderCell8" runat="server">備註</asp:TableHeaderCell>
  170.                 </asp:TableHeaderRow>
  171.                 <asp:TableRow ID="TableRow5" runat="server">
  172.                     <asp:TableCell ID="TableCell29" runat="server" BorderWidth="1px" HorizontalAlign="Center">
  173.                         <asp:Label ID="LabFNo1" runat="server" BorderStyle="None" Text="1" Width="30px"></asp:Label></asp:TableCell>
  174.                     <asp:TableCell ID="TableCell38" runat="server" BorderWidth="1px" HorizontalAlign="Center">
  175.                         <asp:Label ID="LabFContent1" runat="server" BorderStyle="None" Text="膳食費用" Width="70px"></asp:Label></asp:TableCell>
  176.                     <asp:TableCell ID="TableCell30" runat="server" BorderWidth="1px" HorizontalAlign="Center">
  177.                         <asp:TextBox ID="TxtFAmt1" runat="server" Width="200px"  ReadOnly="True"></asp:TextBox></asp:TableCell>
  178.                     <asp:TableCell ID="TableCell31" runat="server" BorderWidth="1px" HorizontalAlign="Center">
  179.                         <asp:TextBox ID="TxtFRemark1" runat="server" Width="300px"  ReadOnly="True"></asp:TextBox></asp:TableCell>
  180.                 </asp:TableRow>
  181.                 <asp:TableRow ID="TableRow6" runat="server">
  182.                     <asp:TableCell ID="TableCell32" runat="server" BorderWidth="1px" HorizontalAlign="Center">
  183.                         <asp:Label ID="LabFNo2" runat="server" BorderStyle="None" Text="2" Width="30px"></asp:Label></asp:TableCell>
  184.                     <asp:TableCell ID="TableCell33" runat="server" BorderWidth="1px" HorizontalAlign="Center">
  185.                         <asp:Label ID="LabFContent2" runat="server" BorderStyle="None" Text="住宿費用" Width="70px"></asp:Label></asp:TableCell>
  186.                     <asp:TableCell ID="TableCell34" runat="server" BorderWidth="1px" HorizontalAlign="Center">
  187.                         <asp:TextBox ID="TxtFAmt2" runat="server" Width="200px"  ReadOnly="True"></asp:TextBox></asp:TableCell>
  188.                     <asp:TableCell ID="TableCell39" runat="server" BorderWidth="1px" HorizontalAlign="Center">
  189.                         <asp:TextBox ID="TxtFRemark2" runat="server" Width="300px"  ReadOnly="True"></asp:TextBox></asp:TableCell>
  190.                 </asp:TableRow>
  191.                 <asp:TableRow ID="TableRow7" runat="server">
  192.                     <asp:TableCell ID="TableCell35" runat="server" BorderWidth="1px" HorizontalAlign="Center">
  193.                         <asp:Label ID="LabFNo3" runat="server" BorderStyle="None" Text="3" Width="30px"></asp:Label></asp:TableCell>
  194.                     <asp:TableCell ID="TableCell36" runat="server" BorderWidth="1px" HorizontalAlign="Center">
  195.                         <asp:Label ID="LabFContent3" runat="server" BorderStyle="None" Text="交通費用" Width="70px"></asp:Label></asp:TableCell>
  196.                     <asp:TableCell ID="TableCell37" runat="server" BorderWidth="1px" HorizontalAlign="Center">
  197.                         <asp:TextBox ID="TxtFAmt3" runat="server" Width="200px"  ReadOnly="True"></asp:TextBox></asp:TableCell>
  198.                     <asp:TableCell ID="TableCell40" runat="server" BorderWidth="1px" HorizontalAlign="Center">
  199.                         <asp:TextBox ID="TxtFRemark3" runat="server" Width="300px"  ReadOnly="True"></asp:TextBox></asp:TableCell>
  200.                 </asp:TableRow>
  201.                 <asp:TableRow ID="TableRow8" runat="server">
  202.                     <asp:TableCell ID="TableCell41" runat="server" BorderWidth="1px" HorizontalAlign="Center">
  203.                         <asp:Label ID="LabFNo4" runat="server" BorderStyle="None" Text="4" Width="30px"></asp:Label></asp:TableCell>
  204.                     <asp:TableCell ID="TableCell42" runat="server" BorderWidth="1px" HorizontalAlign="Center">
  205.                         <asp:Label ID="LabFContent4" runat="server" BorderStyle="None" Text="其他費用" Width="70px"></asp:Label></asp:TableCell>
  206.                     <asp:TableCell ID="TableCell43" runat="server" BorderWidth="1px" HorizontalAlign="Center">
  207.                         <asp:TextBox ID="TxtFAmt4" runat="server" Width="200px"  ReadOnly="True"></asp:TextBox></asp:TableCell>
  208.                     <asp:TableCell ID="TableCell44" runat="server" BorderWidth="1px" HorizontalAlign="Center">
  209.                         <asp:TextBox ID="TxtFRemark4" runat="server" Width="300px"  ReadOnly="True"></asp:TextBox></asp:TableCell>
  210.                 </asp:TableRow>
  211.                 <asp:TableRow ID="TableRow9" runat="server">
  212.                     <asp:TableCell ID="TableCell45" runat="server" BorderWidth="1px" HorizontalAlign="Center">
  213.                         <asp:Label ID="LabFNo5" runat="server" BorderStyle="None" Text="5" Width="30px"></asp:Label></asp:TableCell>
  214.                     <asp:TableCell ID="TableCell46" runat="server" BorderWidth="1px" HorizontalAlign="Center">
  215.                         <asp:Label ID="LabFContent5" runat="server" BorderStyle="None" Text="合計" Width="70px"></asp:Label></asp:TableCell>
  216.                     <asp:TableCell ID="TableCell47" runat="server" BorderWidth="1px" HorizontalAlign="Center">
  217.                         <asp:TextBox ID="TxtFAmt5" runat="server" Width="200px"  ReadOnly="True"></asp:TextBox></asp:TableCell>
  218.                     <asp:TableCell ID="TableCell48" runat="server" BorderWidth="1px" HorizontalAlign="Center">
  219.                         <asp:TextBox ID="TxtFRemark5" runat="server" Width="300px"  ReadOnly="True"></asp:TextBox></asp:TableCell>
  220.                 </asp:TableRow>
  221.             </asp:Table>
  222.             
  223.         </asp:Panel>
  224.         <asp:Panel ID="Panel1" runat="server" Style="position: relative" Visible="false">
  225.             <asp:Label ID="LblError" runat="server" ForeColor="Red"></asp:Label>
  226.             <asp:Button ID="BtnOk" runat="server" Style="position: relative" Text="送件" OnClick="BtnOk_Click" />
  227.             <asp:HiddenField ID="State" runat="server" />
  228.             <asp:HiddenField ID="PositionId" runat="server" />
  229.             <asp:HiddenField ID="DepartmentId" runat="server" />
  230.         </asp:Panel>
  231.             &nbsp; &nbsp;<br />
  232.         <asp:Panel style="POSITION: relative; left: 0px; top: 0px;" id="PnlFlow" runat="server" Width="580px" Visible="False">
  233.                 <asp:GridView ID="FlowList" runat="server" BackColor="White" BorderColor="#CCCCCC"
  234.             BorderStyle="None" BorderWidth="1px" CellPadding="3" Style="position: relative" AutoGenerateColumns="False" DataSourceID="SqlDataSource2" Width="580px" OnRowCreated="FlowList_RowCreated">
  235.                     <FooterStyle BackColor="White" ForeColor="#000066"  />
  236.                     <RowStyle ForeColor="Black"  />
  237.                     <Columns>
  238.                         <asp:BoundField DataField="step" HeaderText="步驟" SortExpression="step" ></asp:BoundField>
  239.                         <asp:BoundField DataField="emp_name" HeaderText="辦理人" SortExpression="emp_name" ></asp:BoundField>
  240.                         <asp:TemplateField HeaderText="簽核類別">
  241.                             <ItemTemplate>
  242.                                 <asp:Label ID="LblApplyType" runat="server" Style="position: relative"></asp:Label>
  243.                             </ItemTemplate>
  244.                         </asp:TemplateField>
  245.                         <asp:TemplateField HeaderText="處理狀態">
  246.                             <ItemTemplate>
  247.                                 <asp:Label ID="LblIsCheck" runat="server" Style="position: relative"></asp:Label>
  248.                             </ItemTemplate>
  249.                         </asp:TemplateField>
  250.                         <asp:TemplateField HeaderText="是否同意">
  251.                             <ItemTemplate>
  252.                                 <asp:Label ID="LblIsAgree" runat="server" Style="position: relative"></asp:Label>
  253.                             </ItemTemplate>
  254.                         </asp:TemplateField>
  255.                         <asp:TemplateField HeaderText="處理意見">
  256.                             <ItemTemplate>
  257.                                 <asp:Label ID="LblComment" runat="server" Style="position: relative"></asp:Label>
  258.                             </ItemTemplate>
  259.                         </asp:TemplateField>
  260.                         <asp:BoundField DataField="check_date" HeaderText="辦理日期" SortExpression="check_date" ></asp:BoundField>
  261.                     </Columns>
  262.                     <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Left"  />
  263.                     <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White"  />
  264.                     <HeaderStyle BackColor="Menu" Font-Bold="True" ForeColor="Black"  />
  265.                 </asp:GridView>
  266.                 <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
  267.                     SelectCommand="SELECT f.id, f.step, e.emp_name, f.comment, f.check_date FROM dbo.OA_CH_APPROVEL_FORM_FLOW AS f INNER JOIN dbo.OA_EMPLOYEE AS e ON e.id = f.operator_id WHERE (f.form_id = @form_id) and (is_business='Y') order by f.id">
  268.                     <SelectParameters>
  269.                         <asp:QueryStringParameter DefaultValue="0" Name="form_id" QueryStringField="a_id"  />
  270.                     </SelectParameters>
  271.                 </asp:SqlDataSource>
  272.             </asp:Panel>
  273.         </center>
  274.         <center>
  275.             <asp:Panel ID="PnlOffForm" runat="server" Visible="False">
  276.                 <asp:Table ID="Table1" runat="server" Style="position: relative" Width="580px">
  277.                     <asp:TableHeaderRow runat="server">
  278.                         <asp:TableHeaderCell runat="server" BackColor="Menu" ColumnSpan="4"
  279.                             Height="20px" HorizontalAlign="Left">流通事業群中幹請假單</asp:TableHeaderCell>
  280.                     </asp:TableHeaderRow>
  281.                     <asp:TableRow runat="server">
  282.                         <asp:TableCell runat="server" BorderWidth="1px">
  283.                             <asp:Label ID="Label111" runat="server" Text="申請單號"></asp:Label></asp:TableCell>
  284.                         <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  285.                             <asp:TextBox ID="TxtOffFormId" runat="server"  ReadOnly="True"></asp:TextBox></asp:TableCell>
  286.                         <asp:TableCell runat="server" BorderWidth="1px">
  287.                             <asp:Label ID="Label122" runat="server" Text="假別"></asp:Label></asp:TableCell>
  288.                         <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  289.                             <asp:TextBox ID="TxtOffType2" runat="server"  ReadOnly="True"></asp:TextBox>
  290.                         </asp:TableCell>
  291.                     </asp:TableRow>
  292.                     <asp:TableRow runat="server">
  293.                         <asp:TableCell runat="server" BorderWidth="1px">
  294.                             <asp:Label ID="Label114" runat="server" Style="position: relative" Text="申請人"></asp:Label></asp:TableCell>
  295.                         <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  296.                             <asp:TextBox ID="TxtOffEmpName" runat="server"  ReadOnly="True" Style="position: relative"></asp:TextBox></asp:TableCell>
  297.                         <asp:TableCell runat="server" BorderWidth="1px">
  298.                             <asp:Label ID="Labe1l3" runat="server" Style="position: relative" Text="開始時間"></asp:Label></asp:TableCell>
  299.                         <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  300.                             <asp:TextBox ID="TxtOffBeginTime"  ReadOnly="True" runat="server" Style="position: relative"></asp:TextBox>
  301.                         </asp:TableCell>
  302.                     </asp:TableRow>
  303.                     <asp:TableRow runat="server">
  304.                         <asp:TableCell runat="server" BorderWidth="1px">
  305.                             <asp:Label ID="Label133" runat="server" Style="position: relative" Text="申請日期"></asp:Label></asp:TableCell>
  306.                         <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  307.                             <asp:TextBox ID="TxtOffApplyDate" runat="server"  ReadOnly="True" Style="position: relative"></asp:TextBox></asp:TableCell>
  308.                         <asp:TableCell runat="server" BorderWidth="1px">
  309.                             <asp:Label ID="Labe3l4" runat="server" Style="position: relative" Text="結束時間"></asp:Label></asp:TableCell>
  310.                         <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  311.                             <asp:TextBox ID="TxtOffEndTime" runat="server"  ReadOnly="True" Style="position: relative"></asp:TextBox>
  312.                         </asp:TableCell>
  313.                     </asp:TableRow>
  314.                     <asp:TableRow runat="server">
  315.                         <asp:TableCell runat="server" BorderWidth="1px">
  316.                             <asp:Label ID="Label112" runat="server" Style="position: relative" Text="申請人部門"></asp:Label></asp:TableCell>
  317.                         <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  318.                             <asp:TextBox ID="TxtOffDepartment" runat="server"  ReadOnly="True" Style="position: relative"></asp:TextBox></asp:TableCell>
  319.                         <asp:TableCell runat="server" BorderWidth="1px">
  320.                             <asp:Label ID="Label15" runat="server" Style="position: relative" Text="休假時數"></asp:Label></asp:TableCell>
  321.                         <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  322.                             <asp:TextBox ID="TxtHours" runat="server"  ReadOnly="True" Style="position: relative"></asp:TextBox>小時</asp:TableCell>
  323.                     </asp:TableRow>
  324.                     <asp:TableRow runat="server">
  325.                         <asp:TableCell runat="server" BorderWidth="1px">
  326.                             <asp:Label ID="Label121" runat="server" Style="position: relative" Text="職務代理人"></asp:Label></asp:TableCell>
  327.                         <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  328.                             <asp:TextBox ID="TxtDelegate" runat="server"  ReadOnly="True"></asp:TextBox>
  329.                         </asp:TableCell>
  330.                         <asp:TableCell runat="server" BorderWidth="1px">&nbsp;</asp:TableCell>
  331.                         <asp:TableCell runat="server" BorderWidth="1px">&nbsp;</asp:TableCell>
  332.                     </asp:TableRow>
  333.                     <asp:TableRow runat="server">
  334.                         <asp:TableCell runat="server" BorderWidth="1px">
  335.                             <asp:Label ID="Label110" runat="server" Style="position: relative" Text="申請人職稱"></asp:Label></asp:TableCell>
  336.                         <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  337.                             <asp:TextBox ID="TxtOffPosition" runat="server" Style="position: relative"  ReadOnly="True"></asp:TextBox></asp:TableCell>
  338.                         <asp:TableCell runat="server" BorderWidth="1px">&nbsp;</asp:TableCell>
  339.                         <asp:TableCell runat="server" BorderWidth="1px">&nbsp;</asp:TableCell>
  340.                     </asp:TableRow>
  341.                     <asp:TableRow runat="server">
  342.                         <asp:TableCell runat="server" BorderWidth="1px">
  343.                             <asp:Label ID="Label118" runat="server" Style="position: relative" Text="附帶公務"></asp:Label></asp:TableCell>
  344.                         <asp:TableCell ID="TableCell1" runat="server" BorderWidth="1px" ColumnSpan="3" HorizontalAlign="Left">
  345.                             <asp:TextBox ID="TxtParenthesis" runat="server" Rows="3" Style="position: relative"
  346.                                 TextMode="MultiLine" Width="450px"  ReadOnly="True"></asp:TextBox></asp:TableCell>
  347.                     </asp:TableRow>
  348.                     <asp:TableRow runat="server">
  349.                         <asp:TableCell runat="server" BorderWidth="1px">
  350.                             <asp:Label ID="Label29" runat="server" Style="position: relative" Text="事由"></asp:Label></asp:TableCell>
  351.                         <asp:TableCell ID="TableCell2" runat="server" BorderWidth="1px" ColumnSpan="3" HorizontalAlign="Left">
  352.                             <asp:TextBox ID="TxtReason" runat="server" Rows="3" Style="position: relative" TextMode="MultiLine"
  353.                                 Width="450px"  ReadOnly="True"></asp:TextBox></asp:TableCell>
  354.                     </asp:TableRow>
  355.                 </asp:Table>
  356.             </asp:Panel>
  357.                 <br />            
  358.             <asp:Panel ID="Panel2" runat="server" Style="position: relative" Visible="false">
  359.                 <asp:Label ID="LblError2" runat="server" ForeColor="Red"></asp:Label>
  360.                 <asp:Button ID="BtnOk2" runat="server" Style="position: relative" Text="送件" OnClick="BtnOk2_Click" />
  361.             </asp:Panel>
  362.             <asp:Panel ID="PnlOffFlow" runat="server" style="position: relative" Visible="False"><asp:GridView ID="OffFlowList" runat="server" BackColor="White" BorderColor="#CCCCCC"
  363.             BorderStyle="None" BorderWidth="1px" CellPadding="3" Style="position: relative" AutoGenerateColumns="False" DataSourceID="SqlDataSource4" Width="580px" OnRowCreated="OffFlowList_RowCreated">
  364.                     <FooterStyle BackColor="White" ForeColor="#000066"  />
  365.                     <RowStyle ForeColor="Black"  />
  366.                     <Columns>
  367.                         <asp:BoundField DataField="step" HeaderText="步驟" SortExpression="step" />
  368.                         <asp:BoundField DataField="emp_name" HeaderText="辦理人" SortExpression="emp_name" />
  369.                         <asp:TemplateField HeaderText="簽核類別">
  370.                             <ItemTemplate>
  371.                                 <asp:Label ID="LblApplyType" runat="server" Style="position: relative"></asp:Label>
  372.                             </ItemTemplate>
  373.                         </asp:TemplateField>
  374.                         <asp:TemplateField HeaderText="處理狀態">
  375.                             <ItemTemplate>
  376.                                 <asp:Label ID="LblIsCheck" runat="server" Style="position: relative"></asp:Label>
  377.                             </ItemTemplate>
  378.                         </asp:TemplateField>
  379.                         <asp:TemplateField HeaderText="是否同意">
  380.                             <ItemTemplate>
  381.                                 <asp:Label ID="LblIsAgree" runat="server" Style="position: relative"></asp:Label>
  382.                             </ItemTemplate>
  383.                         </asp:TemplateField>
  384.                         <asp:TemplateField HeaderText="處理意見">
  385.                             <ItemTemplate>
  386.                                 <asp:Label ID="LblComment" runat="server" Style="position: relative"></asp:Label>
  387.                             </ItemTemplate>
  388.                         </asp:TemplateField>
  389.                         <asp:BoundField DataField="check_date" HeaderText="辦理日期" SortExpression="check_date" />
  390.                     </Columns>
  391.                     <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Left"  />
  392.                     <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White"  />
  393.                     <HeaderStyle BackColor="Menu" Font-Bold="True" ForeColor="Black"  />
  394.                 </asp:GridView>
  395.             </asp:Panel>
  396.                 <asp:SqlDataSource ID="SqlDataSource4" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
  397.                     SelectCommand="SELECT f.id, f.step, e.emp_name, f.comment, f.check_date FROM dbo.OA_CH_APPROVEL_FORM_FLOW AS f INNER JOIN dbo.OA_EMPLOYEE AS e ON e.id = f.operator_id WHERE (f.form_id = @form_id) and (is_business='N') order by f.id">
  398.                     <SelectParameters>
  399.                         <asp:QueryStringParameter DefaultValue="0" Name="form_id" QueryStringField="o_id"  />
  400.                     </SelectParameters>
  401.                 </asp:SqlDataSource>
  402.         </center>
  403.     </div>
  404.     </form>
  405. </body>
  406. </html>