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

OA系统

开发平台:

ASP/ASPX

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="my_list.aspx.cs" Inherits="web_equipment_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. </head>
  7. <body>
  8.     <center>
  9.     <form id="form1" runat="server">
  10.     <div>
  11.        <asp:Label ID="Label1" runat="server" Text="我的申請單"></asp:Label>
  12.             <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0" EnableTheming="False">
  13.                 <asp:View ID="View1" runat="server" EnableTheming="True">
  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="SqlDataSource1" Width="661px" OnRowDataBound="GridView1_RowDataBound" >
  15.                         <Columns>
  16.                             <asp:BoundField DataField="form_id" HeaderText="申請單號" SortExpression="form_id" />
  17.                             <asp:BoundField DataField="type" HeaderText="設備類型" SortExpression="type" />
  18.                             <asp:BoundField DataField="apply_date" HeaderText="申請日期" SortExpression="apply_date" />
  19.                             <asp:BoundField DataField="total_result" HeaderText="狀態" SortExpression="total_result" />
  20.                         </Columns>
  21.                         <PagerSettings PageButtonCount="5" />
  22.                     </asp:GridView>
  23.                     <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:oa1ConnectionString %>"
  24.                         SelectCommand="SELECT [form_id], [type], [apply_date], [total_result] FROM [oa_equipment_form] WHERE ([emp_id] = @emp_id) order by form_id desc"
  25.                         >
  26.                         <SelectParameters>
  27.                             <asp:SessionParameter Name="emp_id" SessionField="user_id" Type="String" />
  28.                         </SelectParameters>
  29.                     </asp:SqlDataSource>
  30.                 </asp:View>
  31.             </asp:MultiView>
  32.         <asp:MultiView ID="MultiView2" runat="server">
  33.             <asp:View ID="View2" runat="server">
  34.                 <br />
  35.                 <asp:Table ID="Table1" runat="server" GridLines="Both" Style="left: -236px; position: relative;
  36.                     top: 0px" Width="201px">
  37.                     <asp:TableRow runat="server">
  38.                         <asp:TableCell runat="server" Width="2cm">申請單號</asp:TableCell>
  39.                         <asp:TableCell runat="server" Width="2cm">
  40.                             <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label></asp:TableCell>
  41.                     </asp:TableRow>
  42.                 </asp:Table>
  43.                 &nbsp;
  44.                 <asp:GridView ID="GridView2" runat="server" AllowPaging="True"
  45.                     AutoGenerateColumns="False" DataSourceID="SqlDataSource2" PageSize="5" Width="677px">
  46.                     <Columns>
  47.                         <asp:BoundField DataField="equipment_name" HeaderText="用品名稱" SortExpression="equipment_name" />
  48.                         <asp:BoundField DataField="standard" HeaderText="品牌/規格" SortExpression="standard" />
  49.                         <asp:BoundField DataField="equipment_unit" HeaderText="單位" SortExpression="equipment_unit" />
  50.                         <asp:BoundField DataField="equipment_num" HeaderText="數量" SortExpression="equipment_num" />
  51.                         <asp:BoundField DataField="cause" HeaderText="需求原因" SortExpression="cause" />
  52.                         <asp:BoundField DataField="apply_date" HeaderText="需求日期" SortExpression="apply_date" />
  53.                         <asp:BoundField DataField="type" HeaderText="評估說明" SortExpression="type" />
  54.                         <asp:BoundField DataField="charge" HeaderText="評估費用" SortExpression="charge" />
  55.                         <asp:BoundField DataField="remark" HeaderText="備注" SortExpression="remark" />
  56.                     </Columns>
  57.                 </asp:GridView>
  58.                 <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:oa1ConnectionString %>"
  59.                     SelectCommand="SELECT [equipment_name], [standard], [equipment_unit], [equipment_num], [cause], [apply_date], [type], [charge], [remark] FROM [oa_equipment_form_d] WHERE ([form_id] = @form_id)">
  60.                     <SelectParameters>
  61.                         <asp:ControlParameter ControlID="Label2" Name="form_id" PropertyName="Text" Type="String" />
  62.                     </SelectParameters>
  63.                 </asp:SqlDataSource>
  64.                 <asp:Button ID="Button1" runat="server" Text="送件" Visible="False" OnClick="Button1_Click" />&nbsp;
  65.                 <asp:Table ID="FlowTable" runat="server" GridLines="Both" Style="width: 680px" Visible="true"
  66.                     Width="636px">
  67.                     <asp:TableRow runat="server">
  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:TableCell runat="server">處理意見</asp:TableCell>
  74.                         <asp:TableCell runat="server">辦理日期</asp:TableCell>
  75.                     </asp:TableRow>
  76.                 </asp:Table>
  77.             </asp:View>
  78.         </asp:MultiView></div>
  79.     </form>
  80.     </center>
  81. </body>
  82. </html>