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

OA系统

开发平台:

ASP/ASPX

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