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

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.         </center>
  41.         <center>
  42.         </center>
  43.         <center>
  44.             &nbsp;</center>
  45.         <center>
  46.             <asp:GridView ID="OffList" runat="server" BackColor="White" BorderColor="#CCCCCC"
  47.             BorderStyle="None" BorderWidth="1px" CellPadding="3" Style="position: relative" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" Width="580px" OnRowDataBound="OffList_RowDataBound" DataSourceID="SqlDataSource3">
  48.                 <FooterStyle BackColor="White" ForeColor="#000066" />
  49.                 <RowStyle ForeColor="Black" />
  50.                 <Columns>
  51.                     <asp:BoundField DataField="apply_date" SortExpression="apply_date" HeaderText="申請日期" />
  52.                     <asp:BoundField DataField="form_id" SortExpression="form_id" HeaderText="單號" />
  53.                     <asp:BoundField DataField="type" HeaderText="假別" SortExpression="type" />
  54.                     <asp:BoundField DataField="total_result" SortExpression="total_result" HeaderText="處理結果" />
  55.                 </Columns>
  56.                 <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Left" />
  57.                 <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
  58.                 <HeaderStyle BackColor="Menu" Font-Bold="True" ForeColor="Black" />
  59.             </asp:GridView>
  60.             <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
  61.                 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">
  62.                 <SelectParameters>
  63.                     <asp:SessionParameter DefaultValue="0" Name="user_id" SessionField="user_id" />
  64.                 </SelectParameters>
  65.             </asp:SqlDataSource>
  66.             <br />
  67.         <asp:Panel ID="PnlApprovel" runat="server" Style="position: relative" Visible="False">
  68.             <asp:Table ID="TblForm" runat="server" Style="position: relative" Width="580px">
  69.                 <asp:TableHeaderRow ID="TableHeaderRow1" runat="server">
  70.                     <asp:TableHeaderCell ID="TableHeaderCell1" runat="server" BackColor="Menu" ColumnSpan="4"
  71.                         Height="20px" HorizontalAlign="Left">流通事業群中幹出差單</asp:TableHeaderCell>
  72.                 </asp:TableHeaderRow>
  73.                 <asp:TableRow runat="server">
  74.                     <asp:TableCell runat="server" BorderWidth="1px">
  75.                         <asp:Label ID="Label221" runat="server" Text="申請單號"></asp:Label></asp:TableCell>
  76.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  77.                         <asp:TextBox ID="TxtFormId" runat="server" Enabled="false"></asp:TextBox></asp:TableCell>
  78.                     <asp:TableCell runat="server" BorderWidth="1px">
  79.                         <asp:Label ID="Label9" runat="server" Style="position: relative" Text="差假別"></asp:Label></asp:TableCell>
  80.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  81.                         <asp:TextBox ID="TxtOffType" runat="server" ReadOnly="true" Style="position: relative"
  82.                             Text="出差" Enabled="false"></asp:TextBox></asp:TableCell>
  83.                 </asp:TableRow>
  84.                 <asp:TableRow runat="server">
  85.                     <asp:TableCell runat="server" BorderWidth="1px">
  86.                         <asp:Label ID="Label2" runat="server" Style="position: relative" Text="申請人工號"></asp:Label></asp:TableCell>
  87.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  88.                         <asp:TextBox ID="TxtEmpNo" runat="server" Enabled="false" Style="position: relative"></asp:TextBox></asp:TableCell>
  89.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Center">
  90.                         <asp:Label ID="Label10" runat="server" Style="position: relative" Text="出差日期起"></asp:Label></asp:TableCell>
  91.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  92.                         <asp:TextBox ID="TxtBeginTime" runat="server" Style="position: relative" Enabled="false"></asp:TextBox>
  93.                     </asp:TableCell>
  94.                 </asp:TableRow>
  95.                 <asp:TableRow runat="server">
  96.                     <asp:TableCell runat="server" BorderWidth="1px">
  97.                         <asp:Label ID="Label3" runat="server" Style="position: relative" Text="申請人姓名"></asp:Label></asp:TableCell>
  98.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  99.                         <asp:TextBox ID="TxtEmpName" runat="server" Enabled="false" Style="position: relative"></asp:TextBox></asp:TableCell>
  100.                     <asp:TableCell runat="server" BorderWidth="1px">
  101.                         <asp:Label ID="Label11" runat="server" Style="position: relative" Text="出差日期止"></asp:Label></asp:TableCell>
  102.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  103.                         <asp:TextBox ID="TxtEndTime" runat="server" Style="position: relative" Enabled="false"></asp:TextBox></asp:TableCell>
  104.                 </asp:TableRow>
  105.                 <asp:TableRow runat="server">
  106.                     <asp:TableCell runat="server" BorderWidth="1px">
  107.                         <asp:Label ID="Label4" runat="server" Style="position: relative" Text="申請日期"></asp:Label></asp:TableCell>
  108.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  109.                         <asp:TextBox ID="TxtApplyDate" runat="server" Enabled="false" Style="position: relative"></asp:TextBox></asp:TableCell>
  110.                     <asp:TableCell runat="server" BorderWidth="1px">
  111.                         <asp:Label ID="Label12" runat="server" Style="position: relative" Text="去程出發地"></asp:Label></asp:TableCell>
  112.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  113.                         <asp:TextBox ID="TxtDepartPlace" runat="server" Enabled="false"></asp:TextBox>
  114.                     </asp:TableCell>
  115.                 </asp:TableRow>
  116.                 <asp:TableRow runat="server">
  117.                     <asp:TableCell runat="server" BorderWidth="1px">
  118.                         <asp:Label ID="Label5" runat="server" Style="position: relative" Text="申請人部門"></asp:Label></asp:TableCell>
  119.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  120.                         <asp:TextBox ID="TxtDepartment" runat="server" Enabled="false" Style="position: relative"></asp:TextBox></asp:TableCell>
  121.                     <asp:TableCell runat="server" BorderWidth="1px">
  122.                         <asp:Label ID="Label13" runat="server" Style="position: relative" Text="回程終地點"></asp:Label></asp:TableCell>
  123.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  124.                         <asp:TextBox ID="TxtArrivePlace" runat="server" Enabled="false"></asp:TextBox>
  125.                     </asp:TableCell>
  126.                 </asp:TableRow>
  127.                 <asp:TableRow runat="server">
  128.                     <asp:TableCell runat="server" BorderWidth="1px">
  129.                         <asp:Label ID="Label6" runat="server" Style="position: relative" Text="申請人職稱"></asp:Label></asp:TableCell>
  130.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  131.                         <asp:TextBox ID="TxtPosition" runat="server" Enabled="false" Style="position: relative"></asp:TextBox></asp:TableCell>
  132.                     <asp:TableCell runat="server" BorderWidth="1px">
  133.                         <asp:Label ID="Label14" runat="server" Style="position: relative" Text="(去程)起飛時間"></asp:Label></asp:TableCell>
  134.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  135.                         <asp:TextBox ID="TxtDepartTime" runat="server" Style="position: relative" Enabled="false"></asp:TextBox>
  136.                     </asp:TableCell>
  137.                 </asp:TableRow>
  138.                 <asp:TableRow runat="server">
  139.                     <asp:TableCell runat="server" BorderWidth="1px">
  140.                         <asp:Label ID="Label7" runat="server" Style="position: relative" Text="出差天數"></asp:Label></asp:TableCell>
  141.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  142.                         <asp:TextBox ID="TxtDays" runat="server" Style="position: relative" Enabled="false"></asp:TextBox>日</asp:TableCell>
  143.                     <asp:TableCell runat="server" BorderWidth="1px">
  144.                         <asp:Label ID="Label8" runat="server" Style="position: relative;" Text="(回程)起飛時間"></asp:Label></asp:TableCell>
  145.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  146.                         <asp:TextBox ID="TxtArriveTime" runat="server" Style="position: relative" Enabled="false"></asp:TextBox>
  147.                     </asp:TableCell>
  148.                 </asp:TableRow>
  149.             </asp:Table>
  150.             <br />
  151.             <asp:Table ID="TblDetail" runat="server" Style="position: relative" Width="1000px">
  152.                 <asp:TableHeaderRow BackColor="Menu">
  153.                     <asp:TableHeaderCell>序號</asp:TableHeaderCell>
  154.                     <asp:TableHeaderCell>客戶公司名稱</asp:TableHeaderCell>
  155.                     <asp:TableHeaderCell>會議主題/出差原因</asp:TableHeaderCell>
  156.                     <asp:TableHeaderCell>客戶聯絡人</asp:TableHeaderCell>
  157.                     <asp:TableHeaderCell>聯絡電話</asp:TableHeaderCell>
  158.                     <asp:TableHeaderCell>國家/城市</asp:TableHeaderCell>
  159.                     <asp:TableHeaderCell>簽證日期起</asp:TableHeaderCell>
  160.                     <asp:TableHeaderCell>簽證日期止</asp:TableHeaderCell>
  161.                     <asp:TableHeaderCell>(往)班機起飛時間</asp:TableHeaderCell>
  162.                     <asp:TableHeaderCell>(返)班機起飛時間</asp:TableHeaderCell>
  163.                     <asp:TableHeaderCell>國外</asp:TableHeaderCell>
  164.                     <asp:TableHeaderCell ID="TableHeaderCell2" runat="server">備註</asp:TableHeaderCell>
  165.                 </asp:TableHeaderRow>
  166.             </asp:Table>
  167.         </asp:Panel>
  168.         <br />
  169.         <asp:Panel ID="Panel1" runat="server" Style="position: relative" Visible="false">
  170.             <asp:Label ID="LblError" runat="server" ForeColor="Red"></asp:Label>
  171.             <asp:Button ID="BtnOk" runat="server" Style="position: relative" Text="送件" OnClick="BtnOk_Click" />
  172.             <asp:HiddenField ID="State" runat="server" />
  173.             <asp:HiddenField ID="PositionId" runat="server" />
  174.             <asp:HiddenField ID="DepartmentId" runat="server" />
  175.         </asp:Panel>
  176.         <asp:Panel style="POSITION: relative" id="PnlFlow" runat="server" Width="580px" Visible="False">
  177.                 <asp:GridView ID="FlowList" runat="server" BackColor="White" BorderColor="#CCCCCC"
  178.             BorderStyle="None" BorderWidth="1px" CellPadding="3" Style="position: relative" AutoGenerateColumns="False" DataSourceID="SqlDataSource2" Width="580px" OnRowCreated="FlowList_RowCreated">
  179.                     <FooterStyle BackColor="White" ForeColor="#000066"  />
  180.                     <RowStyle ForeColor="Black"  />
  181.                     <Columns>
  182.                         <asp:BoundField DataField="step" HeaderText="步驟" SortExpression="step" ></asp:BoundField>
  183.                         <asp:BoundField DataField="emp_name" HeaderText="辦理人" SortExpression="emp_name" ></asp:BoundField>
  184.                         <asp:TemplateField HeaderText="簽核類別">
  185.                             <ItemTemplate>
  186.                                 <asp:Label ID="LblApplyType" runat="server" Style="position: relative"></asp:Label>
  187.                             </ItemTemplate>
  188.                         </asp:TemplateField>
  189.                         <asp:TemplateField HeaderText="處理狀態">
  190.                             <ItemTemplate>
  191.                                 <asp:Label ID="LblIsCheck" runat="server" Style="position: relative"></asp:Label>
  192.                             </ItemTemplate>
  193.                         </asp:TemplateField>
  194.                         <asp:TemplateField HeaderText="是否同意">
  195.                             <ItemTemplate>
  196.                                 <asp:Label ID="LblIsAgree" runat="server" Style="position: relative"></asp:Label>
  197.                             </ItemTemplate>
  198.                         </asp:TemplateField>
  199.                         <asp:TemplateField HeaderText="處理意見">
  200.                             <ItemTemplate>
  201.                                 <asp:Label ID="LblComment" runat="server" Style="position: relative"></asp:Label>
  202.                             </ItemTemplate>
  203.                         </asp:TemplateField>
  204.                         <asp:BoundField DataField="check_date" HeaderText="辦理日期" SortExpression="check_date" ></asp:BoundField>
  205.                     </Columns>
  206.                     <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Left"  />
  207.                     <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White"  />
  208.                     <HeaderStyle BackColor="Menu" Font-Bold="True" ForeColor="Black"  />
  209.                 </asp:GridView>
  210.                 <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
  211.                     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')">
  212.                     <SelectParameters>
  213.                         <asp:QueryStringParameter DefaultValue="0" Name="form_id" QueryStringField="a_id"  />
  214.                     </SelectParameters>
  215.                 </asp:SqlDataSource>
  216.             </asp:Panel>
  217.             <asp:Panel ID="PnlOffForm" runat="server" Visible="False">
  218.                 <asp:Table ID="Table1" runat="server" Style="position: relative" Width="580px">
  219.                     <asp:TableHeaderRow runat="server">
  220.                         <asp:TableHeaderCell runat="server" BackColor="Menu" ColumnSpan="4"
  221.                             Height="20px" HorizontalAlign="Left">流通事業群中幹請假單</asp:TableHeaderCell>
  222.                     </asp:TableHeaderRow>
  223.                     <asp:TableRow runat="server">
  224.                         <asp:TableCell runat="server" BorderWidth="1px">
  225.                             <asp:Label ID="Label111" runat="server" Text="申請單號"></asp:Label></asp:TableCell>
  226.                         <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  227.                             <asp:TextBox ID="TxtOffFormId" runat="server" Enabled="False"></asp:TextBox></asp:TableCell>
  228.                         <asp:TableCell runat="server" BorderWidth="1px">
  229.                             <asp:Label ID="Label122" runat="server" Text="假別"></asp:Label></asp:TableCell>
  230.                         <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  231.                             <asp:TextBox ID="TxtOffType2" runat="server" Enabled="false"></asp:TextBox>
  232.                         </asp:TableCell>
  233.                     </asp:TableRow>
  234.                     <asp:TableRow runat="server">
  235.                         <asp:TableCell runat="server" BorderWidth="1px">
  236.                             <asp:Label ID="Label114" runat="server" Style="position: relative" Text="申請人"></asp:Label></asp:TableCell>
  237.                         <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  238.                             <asp:TextBox ID="TxtOffEmpName" runat="server" Enabled="False" Style="position: relative"></asp:TextBox></asp:TableCell>
  239.                         <asp:TableCell runat="server" BorderWidth="1px">
  240.                             <asp:Label ID="Labe1l3" runat="server" Style="position: relative" Text="開始時間"></asp:Label></asp:TableCell>
  241.                         <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  242.                             <asp:TextBox ID="TxtOffBeginTime" Enabled="false" runat="server" Style="position: relative"></asp:TextBox>
  243.                         </asp:TableCell>
  244.                     </asp:TableRow>
  245.                     <asp:TableRow runat="server">
  246.                         <asp:TableCell runat="server" BorderWidth="1px">
  247.                             <asp:Label ID="Label133" runat="server" Style="position: relative" Text="申請日期"></asp:Label></asp:TableCell>
  248.                         <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  249.                             <asp:TextBox ID="TxtOffApplyDate" runat="server" Enabled="False" Style="position: relative"></asp:TextBox></asp:TableCell>
  250.                         <asp:TableCell runat="server" BorderWidth="1px">
  251.                             <asp:Label ID="Labe3l4" runat="server" Style="position: relative" Text="結束時間"></asp:Label></asp:TableCell>
  252.                         <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  253.                             <asp:TextBox ID="TxtOffEndTime" runat="server" Enabled="false" Style="position: relative"></asp:TextBox>
  254.                         </asp:TableCell>
  255.                     </asp:TableRow>
  256.                     <asp:TableRow runat="server">
  257.                         <asp:TableCell runat="server" BorderWidth="1px">
  258.                             <asp:Label ID="Label112" runat="server" Style="position: relative" Text="申請人部門"></asp:Label></asp:TableCell>
  259.                         <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  260.                             <asp:TextBox ID="TxtOffDepartment" runat="server" Enabled="False" Style="position: relative"></asp:TextBox></asp:TableCell>
  261.                         <asp:TableCell runat="server" BorderWidth="1px">
  262.                             <asp:Label ID="Label15" runat="server" Style="position: relative" Text="休假時數"></asp:Label></asp:TableCell>
  263.                         <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  264.                             <asp:TextBox ID="TxtHours" runat="server" Enabled="False" Style="position: relative"></asp:TextBox>小時</asp:TableCell>
  265.                     </asp:TableRow>
  266.                     <asp:TableRow runat="server">
  267.                         <asp:TableCell runat="server" BorderWidth="1px">
  268.                             <asp:Label ID="Label121" runat="server" Style="position: relative" Text="職務代理人"></asp:Label></asp:TableCell>
  269.                         <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  270.                             <asp:TextBox ID="TxtDelegate" runat="server" Enabled="False"></asp:TextBox>
  271.                         </asp:TableCell>
  272.                         <asp:TableCell runat="server" BorderWidth="1px">&nbsp;</asp:TableCell>
  273.                         <asp:TableCell runat="server" BorderWidth="1px">&nbsp;</asp:TableCell>
  274.                     </asp:TableRow>
  275.                     <asp:TableRow runat="server">
  276.                         <asp:TableCell runat="server" BorderWidth="1px">
  277.                             <asp:Label ID="Label110" runat="server" Style="position: relative" Text="申請人職稱"></asp:Label></asp:TableCell>
  278.                         <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  279.                             <asp:TextBox ID="TxtOffPosition" runat="server" Style="position: relative" Enabled="False"></asp:TextBox></asp:TableCell>
  280.                         <asp:TableCell runat="server" BorderWidth="1px">&nbsp;</asp:TableCell>
  281.                         <asp:TableCell runat="server" BorderWidth="1px">&nbsp;</asp:TableCell>
  282.                     </asp:TableRow>
  283.                     <asp:TableRow runat="server">
  284.                         <asp:TableCell runat="server" BorderWidth="1px">
  285.                             <asp:Label ID="Label118" runat="server" Style="position: relative" Text="附帶公務"></asp:Label></asp:TableCell>
  286.                         <asp:TableCell ID="TableCell1" runat="server" BorderWidth="1px" ColumnSpan="3" HorizontalAlign="Left">
  287.                             <asp:TextBox ID="TxtParenthesis" runat="server" Rows="3" Style="position: relative"
  288.                                 TextMode="MultiLine" Width="450px" Enabled="False"></asp:TextBox></asp:TableCell>
  289.                     </asp:TableRow>
  290.                     <asp:TableRow runat="server">
  291.                         <asp:TableCell runat="server" BorderWidth="1px">
  292.                             <asp:Label ID="Label29" runat="server" Style="position: relative" Text="事由"></asp:Label></asp:TableCell>
  293.                         <asp:TableCell ID="TableCell2" runat="server" BorderWidth="1px" ColumnSpan="3" HorizontalAlign="Left">
  294.                             <asp:TextBox ID="TxtReason" runat="server" Rows="3" Style="position: relative" TextMode="MultiLine"
  295.                                 Width="450px" Enabled="False"></asp:TextBox></asp:TableCell>
  296.                     </asp:TableRow>
  297.                 </asp:Table>
  298.             </asp:Panel>
  299.                 <br />            
  300.             <asp:Panel ID="Panel2" runat="server" Style="position: relative" Visible="false">
  301.                 <asp:Label ID="LblError2" runat="server" ForeColor="Red"></asp:Label>
  302.                 <asp:Button ID="BtnOk2" runat="server" Style="position: relative" Text="送件" OnClick="BtnOk2_Click" />
  303.             </asp:Panel>
  304.             <asp:Panel ID="PnlOffFlow" runat="server" style="position: relative" Visible="False"><asp:GridView ID="OffFlowList" runat="server" BackColor="White" BorderColor="#CCCCCC"
  305.             BorderStyle="None" BorderWidth="1px" CellPadding="3" Style="position: relative" AutoGenerateColumns="False" DataSourceID="SqlDataSource4" Width="580px" OnRowCreated="OffFlowList_RowCreated">
  306.                     <FooterStyle BackColor="White" ForeColor="#000066"  />
  307.                     <RowStyle ForeColor="Black"  />
  308.                     <Columns>
  309.                         <asp:BoundField DataField="step" HeaderText="步驟" SortExpression="step" />
  310.                         <asp:BoundField DataField="emp_name" HeaderText="辦理人" SortExpression="emp_name" />
  311.                         <asp:TemplateField HeaderText="簽核類別">
  312.                             <ItemTemplate>
  313.                                 <asp:Label ID="LblApplyType" runat="server" Style="position: relative"></asp:Label>
  314.                             </ItemTemplate>
  315.                         </asp:TemplateField>
  316.                         <asp:TemplateField HeaderText="處理狀態">
  317.                             <ItemTemplate>
  318.                                 <asp:Label ID="LblIsCheck" runat="server" Style="position: relative"></asp:Label>
  319.                             </ItemTemplate>
  320.                         </asp:TemplateField>
  321.                         <asp:TemplateField HeaderText="是否同意">
  322.                             <ItemTemplate>
  323.                                 <asp:Label ID="LblIsAgree" runat="server" Style="position: relative"></asp:Label>
  324.                             </ItemTemplate>
  325.                         </asp:TemplateField>
  326.                         <asp:TemplateField HeaderText="處理意見">
  327.                             <ItemTemplate>
  328.                                 <asp:Label ID="LblComment" runat="server" Style="position: relative"></asp:Label>
  329.                             </ItemTemplate>
  330.                         </asp:TemplateField>
  331.                         <asp:BoundField DataField="check_date" HeaderText="辦理日期" SortExpression="check_date" />
  332.                     </Columns>
  333.                     <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Left"  />
  334.                     <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White"  />
  335.                     <HeaderStyle BackColor="Menu" Font-Bold="True" ForeColor="Black"  />
  336.                 </asp:GridView>
  337.             </asp:Panel>
  338.                 <asp:SqlDataSource ID="SqlDataSource4" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
  339.                     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')">
  340.                     <SelectParameters>
  341.                         <asp:QueryStringParameter DefaultValue="0" Name="form_id" QueryStringField="o_id"  />
  342.                     </SelectParameters>
  343.                 </asp:SqlDataSource>
  344.         </center>
  345.     </div>
  346.     </form>
  347. </body>
  348. </html>