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

OA系统

开发平台:

ASP/ASPX

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="my_list_d.aspx.cs" Inherits="web_approvel_ch_my_list_d" %>
  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.     <style type="text/css">
  7. <!--
  8. .STYLE1 {font-size: 16px;
  9.    float: none;
  10. height: 10px;
  11. width: 100px;
  12. border-top-style: double;
  13. border-right-style: double;
  14. border-bottom-style: double;
  15. border-left-style: double;
  16. position: relative;}
  17. -->
  18. </style>
  19. </head>
  20. <body>
  21.     <form id="form1" runat="server">
  22.     <div>
  23.         <asp:Panel ID="PnlApprovel" runat="server" Style="left: 0px; position: relative;
  24.             top: 0px" Visible="false">
  25.             <center>
  26.             <asp:Table ID="TblForm" runat="server" Style="position: relative" Width="681px">
  27.                 <asp:TableHeaderRow ID="TableHeaderRow1" runat="server">
  28.                     <asp:TableHeaderCell ID="TableHeaderCell1" runat="server" BackColor="Menu" ColumnSpan="4"
  29.                         Height="20px" HorizontalAlign="Left">流通事業群中幹出差單</asp:TableHeaderCell>
  30.                 </asp:TableHeaderRow>
  31.                 <asp:TableRow runat="server">
  32.                     <asp:TableCell runat="server" BorderWidth="1px">
  33.                         <asp:Label ID="Label221" runat="server" Text="申請單號"></asp:Label></asp:TableCell>
  34.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  35.                         <asp:TextBox ID="TxtFormId" runat="server"  ReadOnly="true"></asp:TextBox></asp:TableCell>
  36.                     <asp:TableCell runat="server" BorderWidth="1px">
  37.                         <asp:Label ID="Label9" runat="server" Style="position: relative" Text="差假別"></asp:Label></asp:TableCell>
  38.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  39.                         <asp:TextBox ID="TxtOffType" runat="server"  ReadOnly="True"  Style="position: relative"
  40.                             Text="出差"></asp:TextBox></asp:TableCell>
  41.                 </asp:TableRow>
  42.                 <asp:TableRow runat="server">
  43.                     <asp:TableCell runat="server" BorderWidth="1px">
  44.                         <asp:Label ID="Label2" runat="server" Style="position: relative" Text="申請人工號"></asp:Label></asp:TableCell>
  45.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  46.                         <asp:TextBox ID="TxtEmpNo" runat="server"  ReadOnly="True" Style="position: relative"></asp:TextBox></asp:TableCell>
  47.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="left">
  48.                         <asp:Label ID="Label10" runat="server" Style="position: relative" Text="出差日期起"></asp:Label></asp:TableCell>
  49.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  50.                         <asp:TextBox ID="TxtBeginTime" runat="server"  ReadOnly="True" Style="position: relative"></asp:TextBox>
  51.                     </asp:TableCell>
  52.                 </asp:TableRow>
  53.                 <asp:TableRow runat="server">
  54.                     <asp:TableCell runat="server" BorderWidth="1px">
  55.                         <asp:Label ID="Label3" runat="server" Style="position: relative" Text="申請人姓名"></asp:Label></asp:TableCell>
  56.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  57.                         <asp:TextBox ID="TxtEmpName" runat="server"  ReadOnly="True" Style="position: relative"></asp:TextBox></asp:TableCell>
  58.                     <asp:TableCell runat="server" BorderWidth="1px">
  59.                         <asp:Label ID="Label11" runat="server" Style="position: relative" Text="出差日期止"></asp:Label></asp:TableCell>
  60.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  61.                         <asp:TextBox ID="TxtEndTime" runat="server"  ReadOnly="True" Style="position: relative"></asp:TextBox></asp:TableCell>
  62.                 </asp:TableRow>
  63.                 <asp:TableRow runat="server">
  64.                     <asp:TableCell runat="server" BorderWidth="1px">
  65.                         <asp:Label ID="Label4" runat="server" Style="position: relative" Text="申請日期"></asp:Label></asp:TableCell>
  66.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  67.                         <asp:TextBox ID="TxtApplyDate" runat="server"  ReadOnly="True" Style="position: relative"></asp:TextBox></asp:TableCell>
  68.                     <asp:TableCell runat="server" BorderWidth="1px">
  69.                         <asp:Label ID="Label12" runat="server" Style="position: relative" Text="去程出發地"></asp:Label></asp:TableCell>
  70.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  71.                         <asp:TextBox ID="TxtDepartPlace" runat="server"  ReadOnly="True"></asp:TextBox>
  72.                     </asp:TableCell>
  73.                 </asp:TableRow>
  74.                 <asp:TableRow runat="server">
  75.                     <asp:TableCell runat="server" BorderWidth="1px">
  76.                         <asp:Label ID="Label5" runat="server" Style="position: relative" Text="申請人部門"></asp:Label></asp:TableCell>
  77.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  78.                         <asp:TextBox ID="TxtDepartment" runat="server"  ReadOnly="True" Style="position: relative"></asp:TextBox></asp:TableCell>
  79.                     <asp:TableCell runat="server" BorderWidth="1px">
  80.                         <asp:Label ID="Label13" runat="server" Style="position: relative" Text="回程終地點"></asp:Label></asp:TableCell>
  81.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  82.                         <asp:TextBox ID="TxtArrivePlace" runat="server"  ReadOnly="True"></asp:TextBox>
  83.                     </asp:TableCell>
  84.                 </asp:TableRow>
  85.                 <asp:TableRow runat="server">
  86.                     <asp:TableCell runat="server" BorderWidth="1px">
  87.                         <asp:Label ID="Label6" runat="server" Style="position: relative" Text="申請人職稱"></asp:Label></asp:TableCell>
  88.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  89.                         <asp:TextBox ID="TxtPosition" runat="server"  ReadOnly="True" Style="position: relative"></asp:TextBox></asp:TableCell>
  90.                     <asp:TableCell runat="server" BorderWidth="1px">
  91.                         <asp:Label ID="Label14" runat="server" Style="position: relative" Text="(去程)起飛時間"></asp:Label></asp:TableCell>
  92.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  93.                         <asp:TextBox ID="TxtDepartTime" runat="server"  ReadOnly="True" Style="position: relative"></asp:TextBox>
  94.                     </asp:TableCell>
  95.                 </asp:TableRow>
  96.                 <asp:TableRow runat="server">
  97.                     <asp:TableCell runat="server" BorderWidth="1px">
  98.                         <asp:Label ID="Label7" runat="server" Style="position: relative" Text="出差天數"></asp:Label></asp:TableCell>
  99.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  100.                         <asp:TextBox ID="TxtDays" runat="server"  ReadOnly="True" Style="position: relative"></asp:TextBox>日</asp:TableCell>
  101.                     <asp:TableCell runat="server" BorderWidth="1px">
  102.                         <asp:Label ID="Label8" runat="server" Style="position: relative;" Text="(回程)起飛時間"></asp:Label></asp:TableCell>
  103.                     <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  104.                         <asp:TextBox ID="TxtArriveTime" runat="server"  ReadOnly="True" Style="position: relative"></asp:TextBox>
  105.                     </asp:TableCell>
  106.                 </asp:TableRow>
  107.             </asp:Table>
  108.             &nbsp;&nbsp;<asp:Table ID="TblDetail" runat="server" BorderStyle="Double" Style="position: relative"
  109.                 Width="828px">
  110.                 <asp:TableHeaderRow runat="server" BackColor="Menu">
  111.                     <asp:TableHeaderCell runat="server">序號</asp:TableHeaderCell>
  112.                     <asp:TableHeaderCell runat="server">出差期間</asp:TableHeaderCell>
  113.                     <asp:TableHeaderCell runat="server">起</asp:TableHeaderCell>
  114.                     <asp:TableHeaderCell runat="server">迄</asp:TableHeaderCell>
  115.                     <asp:TableHeaderCell runat="server">交通工具</asp:TableHeaderCell>
  116.                     <asp:TableHeaderCell runat="server">業務內容(含訪問團體)</asp:TableHeaderCell>
  117.                     <asp:TableHeaderCell runat="server">備註</asp:TableHeaderCell>
  118.                 </asp:TableHeaderRow>
  119.             </asp:Table>
  120.             &nbsp;<br />
  121.             <asp:Table ID="Table3" runat="server" BorderStyle="Double" Height="119px" Style="left: 1px;
  122.                 position: relative; top: 3px" Width="656px">
  123.                 <asp:TableHeaderRow ID="TableHeaderRow2" runat="server" BackColor="Menu">
  124.                     <asp:TableHeaderCell ID="TableHeaderCell2" runat="server">序號</asp:TableHeaderCell>
  125.                     <asp:TableHeaderCell ID="TableHeaderCell4" runat="server">費用內容</asp:TableHeaderCell>
  126.                     <asp:TableHeaderCell ID="TableHeaderCell3" runat="server">申請金額</asp:TableHeaderCell>
  127.                     <asp:TableHeaderCell ID="TableHeaderCell8" runat="server">備註</asp:TableHeaderCell>
  128.                 </asp:TableHeaderRow>
  129.                 <asp:TableRow ID="TableRow5" runat="server">
  130.                     <asp:TableCell ID="TableCell29" runat="server" BorderWidth="1px" HorizontalAlign="Center">
  131.                         <asp:Label ID="LabFNo1" runat="server" BorderStyle="None" Text="1" Width="30px"></asp:Label></asp:TableCell>
  132.                     <asp:TableCell ID="TableCell38" runat="server" BorderWidth="1px" HorizontalAlign="Center">
  133.                         <asp:Label ID="LabFContent1" runat="server" BorderStyle="None" Text="膳食費用" Width="70px"></asp:Label></asp:TableCell>
  134.                     <asp:TableCell ID="TableCell30" runat="server" BorderWidth="1px" HorizontalAlign="Center">
  135.                         <asp:TextBox ID="TxtFAmt1" runat="server"  ReadOnly="True" Width="200px"></asp:TextBox></asp:TableCell>
  136.                     <asp:TableCell ID="TableCell31" runat="server" BorderWidth="1px" HorizontalAlign="Center">
  137.                         <asp:TextBox ID="TxtFRemark1" runat="server"  ReadOnly="True" Width="300px"></asp:TextBox></asp:TableCell>
  138.                 </asp:TableRow>
  139.                 <asp:TableRow ID="TableRow6" runat="server">
  140.                     <asp:TableCell ID="TableCell32" runat="server" BorderWidth="1px" HorizontalAlign="Center">
  141.                         <asp:Label ID="LabFNo2" runat="server" BorderStyle="None" Text="2" Width="30px"></asp:Label></asp:TableCell>
  142.                     <asp:TableCell ID="TableCell33" runat="server" BorderWidth="1px" HorizontalAlign="Center">
  143.                         <asp:Label ID="LabFContent2" runat="server" BorderStyle="None" Text="住宿費用" Width="70px"></asp:Label></asp:TableCell>
  144.                     <asp:TableCell ID="TableCell34" runat="server" BorderWidth="1px" HorizontalAlign="Center">
  145.                         <asp:TextBox ID="TxtFAmt2" runat="server"  ReadOnly="True" Width="200px"></asp:TextBox></asp:TableCell>
  146.                     <asp:TableCell ID="TableCell39" runat="server" BorderWidth="1px" HorizontalAlign="Center">
  147.                         <asp:TextBox ID="TxtFRemark2" runat="server"  ReadOnly="True" Width="300px"></asp:TextBox></asp:TableCell>
  148.                 </asp:TableRow>
  149.                 <asp:TableRow ID="TableRow7" runat="server">
  150.                     <asp:TableCell ID="TableCell35" runat="server" BorderWidth="1px" HorizontalAlign="Center">
  151.                         <asp:Label ID="LabFNo3" runat="server" BorderStyle="None" Text="3" Width="30px"></asp:Label></asp:TableCell>
  152.                     <asp:TableCell ID="TableCell36" runat="server" BorderWidth="1px" HorizontalAlign="Center">
  153.                         <asp:Label ID="LabFContent3" runat="server" BorderStyle="None" Text="交通費用" Width="70px"></asp:Label></asp:TableCell>
  154.                     <asp:TableCell ID="TableCell37" runat="server" BorderWidth="1px" HorizontalAlign="Center">
  155.                         <asp:TextBox ID="TxtFAmt3" runat="server"  ReadOnly="True" Width="200px"></asp:TextBox></asp:TableCell>
  156.                     <asp:TableCell ID="TableCell40" runat="server" BorderWidth="1px" HorizontalAlign="Center">
  157.                         <asp:TextBox ID="TxtFRemark3" runat="server"  ReadOnly="True" Width="300px"></asp:TextBox></asp:TableCell>
  158.                 </asp:TableRow>
  159.                 <asp:TableRow ID="TableRow8" runat="server">
  160.                     <asp:TableCell ID="TableCell41" runat="server" BorderWidth="1px" HorizontalAlign="Center">
  161.                         <asp:Label ID="LabFNo4" runat="server" BorderStyle="None" Text="4" Width="30px"></asp:Label></asp:TableCell>
  162.                     <asp:TableCell ID="TableCell42" runat="server" BorderWidth="1px" HorizontalAlign="Center">
  163.                         <asp:Label ID="LabFContent4" runat="server" BorderStyle="None" Text="其他費用" Width="70px"></asp:Label></asp:TableCell>
  164.                     <asp:TableCell ID="TableCell43" runat="server" BorderWidth="1px" HorizontalAlign="Center">
  165.                         <asp:TextBox ID="TxtFAmt4" runat="server"  ReadOnly="True" Width="200px"></asp:TextBox></asp:TableCell>
  166.                     <asp:TableCell ID="TableCell44" runat="server" BorderWidth="1px" HorizontalAlign="Center">
  167.                         <asp:TextBox ID="TxtFRemark4" runat="server"  ReadOnly="True" Width="300px"></asp:TextBox></asp:TableCell>
  168.                 </asp:TableRow>
  169.                 <asp:TableRow ID="TableRow9" runat="server">
  170.                     <asp:TableCell ID="TableCell45" runat="server" BorderWidth="1px" HorizontalAlign="Center">
  171.                         <asp:Label ID="LabFNo5" runat="server" BorderStyle="None" Text="5" Width="30px"></asp:Label></asp:TableCell>
  172.                     <asp:TableCell ID="TableCell46" runat="server" BorderWidth="1px" HorizontalAlign="Center">
  173.                         <asp:Label ID="LabFContent5" runat="server" BorderStyle="None" Text="合計" Width="70px"></asp:Label></asp:TableCell>
  174.                     <asp:TableCell ID="TableCell47" runat="server" BorderWidth="1px" HorizontalAlign="Center">
  175.                         <asp:TextBox ID="TxtFAmt5" runat="server"  ReadOnly="True" Width="200px"></asp:TextBox></asp:TableCell>
  176.                     <asp:TableCell ID="TableCell48" runat="server" BorderWidth="1px" HorizontalAlign="Center">
  177.                         <asp:TextBox ID="TxtFRemark5" runat="server"  ReadOnly="True" Width="300px"></asp:TextBox></asp:TableCell>
  178.                 </asp:TableRow>
  179.             </asp:Table>
  180.             </center>
  181.             <center>
  182.                 &nbsp;</center>
  183.         </asp:Panel>
  184.         <br />
  185.     
  186.     </div>
  187.     <center>
  188.         <asp:Panel ID="Panel1" runat="server" Style="position: relative" Visible="false">
  189.             <asp:Label ID="LblError" runat="server" ForeColor="Red"></asp:Label>
  190.             <asp:Button ID="BtnOk" runat="server" OnClick="BtnOk_Click" Style="position: relative"
  191.                 Text="送件" />
  192.             <asp:HiddenField ID="State" runat="server" />
  193.             <asp:HiddenField ID="PositionId" runat="server" />
  194.             <asp:HiddenField ID="DepartmentId" runat="server" />
  195.         </asp:Panel>
  196.         &nbsp;</center>
  197.         <center>
  198.             &nbsp;</center>
  199.         <center>
  200.         <asp:Panel ID="PnlFlow" runat="server" Style="left: 0px; position: relative; top: 0px"
  201.             Visible="False" Width="580px">
  202.             <asp:GridView ID="FlowList" runat="server" AutoGenerateColumns="False" BackColor="White"
  203.                 BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" DataSourceID="SqlDataSource2"
  204.                 Style="position: relative" Width="580px" OnRowCreated="FlowList_RowCreated">
  205.                 <FooterStyle BackColor="White" ForeColor="#000066" />
  206.                 <RowStyle ForeColor="Black" />
  207.                 <Columns>
  208.                     <asp:BoundField DataField="step" HeaderText="步驟" SortExpression="step" />
  209.                     <asp:BoundField DataField="emp_name" HeaderText="辦理人" SortExpression="emp_name" />
  210.                     <asp:TemplateField HeaderText="簽核類別">
  211.                         <ItemTemplate>
  212.                             <asp:Label ID="LblApplyType" runat="server" Style="position: relative"></asp:Label>
  213.                         </ItemTemplate>
  214.                     </asp:TemplateField>
  215.                     <asp:TemplateField HeaderText="處理狀態">
  216.                         <ItemTemplate>
  217.                             <asp:Label ID="LblIsCheck" runat="server" Style="position: relative"></asp:Label>
  218.                         </ItemTemplate>
  219.                     </asp:TemplateField>
  220.                     <asp:TemplateField HeaderText="是否同意">
  221.                         <ItemTemplate>
  222.                             <asp:Label ID="LblIsAgree" runat="server" Style="position: relative"></asp:Label>
  223.                         </ItemTemplate>
  224.                     </asp:TemplateField>
  225.                     <asp:TemplateField HeaderText="處理意見">
  226.                         <ItemTemplate>
  227.                             <asp:Label ID="LblComment" runat="server" Style="position: relative"></asp:Label>
  228.                         </ItemTemplate>
  229.                     </asp:TemplateField>
  230.                     <asp:BoundField DataField="check_date" HeaderText="辦理日期" SortExpression="check_date" />
  231.                 </Columns>
  232.                 <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Left" />
  233.                 <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
  234.                 <HeaderStyle BackColor="Menu" Font-Bold="True" ForeColor="Black" />
  235.             </asp:GridView>
  236.             <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
  237.                 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">
  238.                 <SelectParameters>
  239.                     <asp:QueryStringParameter DefaultValue="0" Name="form_id" QueryStringField="a_id" />
  240.                 </SelectParameters>
  241.             </asp:SqlDataSource>
  242.         </asp:Panel>
  243.         </center>
  244.         <center>
  245.             <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="列印" Width="104px" />
  246.         </center>
  247.     </form>
  248. </body>
  249. </html>