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

OA系统

开发平台:

ASP/ASPX

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="finish_list.aspx.cs" Inherits="web_equipment_finish_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. </head>
  7. <body>
  8.     <center>
  9.     <form id="form1" runat="server">
  10.     <div>
  11.         <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
  12.             <asp:View ID="View1" runat="server">
  13.                 <asp:Label ID="Label2" runat="server" Text="已簽核表單" Width="200px"></asp:Label>
  14.                 <asp:GridView ID="GridView1" runat="server" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" Style="position: relative" AllowPaging="True" AutoGenerateColumns="False" DataSourceID="SqlDataSource2" Width="668px" OnRowDataBound="GridView1_RowDataBound" PageSize="8">
  15.                     <Columns>
  16.                         <asp:BoundField DataField="form_id" HeaderText="申請單號" SortExpression="form_id" />
  17.                         <asp:BoundField DataField="emp_name" HeaderText="申請人" SortExpression="emp_name" />
  18.                         <asp:BoundField DataField="check_date" HeaderText="接收日期" SortExpression="check_date" />
  19.                         <asp:BoundField DataField="stuse" HeaderText="狀態" ReadOnly="True" SortExpression="stuse" />
  20.                     </Columns>
  21.                 </asp:GridView>
  22.                 <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:oa1ConnectionString %>"
  23.                     SelectCommand="SELECT distinct f.form_id,g.emp_name ,f.check_date,case  f.is_agree  when 'N' THEN '不同意' when 'Y' then '已同意' end as stuse FROM oa_equipment_flow as f ,oa_employee as g ,oa_equipment_form as e WHERE (g.id=e.emp_id) and (f.is_check='Y') and (e.form_id=f.form_id)and (f.operator_id = @operator_id) order by f.form_id desc">
  24.                     <SelectParameters>
  25.                         <asp:SessionParameter Name="operator_id" SessionField="user_id" Type="String" />
  26.                     </SelectParameters>
  27.                 </asp:SqlDataSource>
  28.                 &nbsp;
  29.             </asp:View>
  30.         </asp:MultiView>
  31.         &nbsp;
  32.     </div>
  33.         <asp:MultiView ID="MultiView2" runat="server">
  34.             <asp:View ID="View2" runat="server">
  35.                 <br />
  36.                 <asp:Table ID="Table1" runat="server" GridLines="Both" Style="left: -226px;
  37.                     position: relative; top: -14px" Width="218px">
  38.                     <asp:TableRow runat="server">
  39.                         <asp:TableCell runat="server" Width="2cm">申請單號</asp:TableCell>
  40.                         <asp:TableCell runat="server" Width="2cm">
  41.                             <asp:Label ID="Label3" runat="server" Text="Label"></asp:Label></asp:TableCell>
  42.                     </asp:TableRow>
  43.                 </asp:Table>
  44.                 <asp:GridView ID="GridView2" runat="server" AllowPaging="True" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" PageSize="8" Width="677px" >
  45.                     <Columns>
  46.                         <asp:BoundField DataField="equipment_name" HeaderText="用品名稱" SortExpression="equipment_name" />
  47.                         <asp:BoundField DataField="standard" HeaderText="品牌/規格" SortExpression="standard" />
  48.                         <asp:BoundField DataField="equipment_unit" HeaderText="單位" SortExpression="equipment_unit" />
  49.                         <asp:BoundField DataField="equipment_num" HeaderText="數量" SortExpression="equipment_num" />
  50.                         <asp:BoundField DataField="cause" HeaderText="需求原因" SortExpression="cause" />
  51.                         <asp:BoundField DataField="apply_date" HeaderText="需求日期" SortExpression="apply_date" />
  52.                         <asp:BoundField DataField="type" HeaderText="評估說明" SortExpression="type" />
  53.                         <asp:BoundField DataField="charge" HeaderText="評估費用" SortExpression="charge" />
  54.                         <asp:BoundField DataField="remark" HeaderText="備注" SortExpression="remark" />
  55.                     </Columns>
  56.                 </asp:GridView>
  57.                 <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:oa1ConnectionString %>"
  58.                     SelectCommand="SELECT [equipment_name], [standard], [equipment_unit], [equipment_num], [cause], [apply_date], [type], [charge], [remark] FROM [oa_equipment_form_d] WHERE ([form_id] = @form_id2)">
  59.                     <SelectParameters>
  60.                         <asp:QueryStringParameter Name="form_id2" QueryStringField="form_id" Type="String" />
  61.                     </SelectParameters>
  62.                 </asp:SqlDataSource>
  63.                 <asp:Table ID="FlowTable" runat="server" GridLines="Both" Style="width: 680px" Visible="true"
  64.                     Width="636px">
  65.                     <asp:TableRow runat="server">
  66.                         <asp:TableCell runat="server">步驟</asp:TableCell>
  67.                         <asp:TableCell runat="server">辦理人</asp:TableCell>
  68.                         <asp:TableCell runat="server">簽核類別</asp:TableCell>
  69.                         <asp:TableCell runat="server">處理狀態</asp:TableCell>
  70.                         <asp:TableCell runat="server">是否同意</asp:TableCell>
  71.                         <asp:TableCell runat="server">處理意見</asp:TableCell>
  72.                         <asp:TableCell runat="server">辦理日期</asp:TableCell>
  73.                     </asp:TableRow>
  74.                 </asp:Table>
  75.             </asp:View>
  76.         </asp:MultiView>
  77.     </form>
  78.     </center>
  79. </body>
  80. </html>