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

OA系统

开发平台:

ASP/ASPX

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="my_list.aspx.cs" Inherits="web_computer_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.     <form id="form1" runat="server">
  9.     <div>
  10.     <center>
  11.         <asp:Label ID="LblTitle" runat="server" Font-Bold="True" Font-Size="Medium" Text="我的申請單"></asp:Label><asp:GridView
  12.             ID="FairList" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
  13.             BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px"
  14.             CellPadding="3" DataKeyNames="id" DataSourceID="SqlDataSource1" OnRowDataBound="FairList_RowDataBound"
  15.             Style="position: relative" Width="580px">
  16.             <FooterStyle BackColor="White" ForeColor="#000066" />
  17.             <RowStyle ForeColor="Black" />
  18.             <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Left" />
  19.             <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
  20.             <HeaderStyle BackColor="Menu" Font-Bold="True" ForeColor="Black" />
  21.             <Columns>
  22.                 <asp:BoundField DataField="date1" HeaderText="申請日期" SortExpression="date1" />
  23.                 <asp:BoundField DataField="form_id" HeaderText="單號" SortExpression="form_id" />
  24.                 <asp:BoundField DataField="status" HeaderText="處理結果" SortExpression="total_result" />
  25.             </Columns>
  26.         </asp:GridView>
  27.         <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
  28.             SelectCommand="SELECT date1,form_id,id ,status from oa_computer_form  where emp_id=@user_id order by date1 desc">
  29.             <SelectParameters>
  30.                 <asp:SessionParameter Name="user_id" SessionField="user_id" />
  31.             </SelectParameters>
  32.         </asp:SqlDataSource>
  33.            </center>
  34.         <center>
  35.         <br />
  36.             <asp:Panel ID="Panform" runat="server"  Visible="False" Height="221px" Width="589px" >
  37.             
  38.             <table border="1" >
  39.                 <tr align="left">
  40.                     <td colspan="4" style="height: 32px">
  41.                         <span class="STYLE1" style="font-weight: bold">電腦設備報修單</span></td>
  42.                 </tr>
  43.                 <tr align="left">
  44.                     <td >
  45.                         <span class="STYLE1">申請單號</span></td>
  46.                     <td style="width: 140px" >
  47.                         <span class="STYLE1">
  48.                             <asp:TextBox ID="form_no" runat="server" Enabled="false"></asp:TextBox></span></td>
  49.                     <td style="width: 94px" >
  50.                         <span class="STYLE1">申請人工號</span></td>
  51.                     <td style="width: 229px" >
  52.                         <span class="STYLE1">
  53.                             <asp:TextBox ID="emp_no" runat="server" Enabled="false"></asp:TextBox></span></td>
  54.                 </tr>
  55.                 <tr align="left">
  56.                     <td>
  57.                         <span class="STYLE1">申請人姓名</span></td>
  58.                     <td style="width: 140px" >
  59.                         <span class="STYLE1">
  60.                             <asp:TextBox ID="emp_name" runat="server" Enabled="false"></asp:TextBox></span></td>
  61.                     <td style="width: 94px" >
  62.                         <span class="STYLE1">申請日期</span></td>
  63.                     <td style="width: 229px" >
  64.                         <span class="STYLE1">
  65.                             <asp:TextBox ID="date1" runat="server" Enabled="false"></asp:TextBox></span></td>
  66.                 </tr>
  67.                 <tr align="left">
  68.                     <td >
  69.                         <span class="STYLE1">申請人部門</span></td>
  70.                     <td style="width: 140px" >
  71.                         <span class="STYLE1">
  72.                             <asp:TextBox ID="emp_dept" runat="server" Enabled="false"></asp:TextBox></span></td>
  73.                     <td style="width: 94px" >
  74.                         <span class="STYLE1">申請人職稱</span></td>
  75.                     <td style="width: 229px" >
  76.                         <span class="STYLE1">
  77.                             <asp:TextBox ID="emp_position" runat="server" Enabled="false"></asp:TextBox></span></td>
  78.                 </tr>
  79.                 <tr align="left" >
  80.                        <td >
  81.                                 <span >聯繫電話</span></td>
  82.                             <td  >
  83.                                 <span>
  84.                                     <asp:TextBox ID="f_item" runat="server" Width="145px" Enabled="false"></asp:TextBox></span></td>
  85.                     <td style="height: 7px; width: 94px;" >
  86.                         <span class="STYLE1">截止時間</span></td>
  87.                     <td style="width: 229px; height: 7px" >
  88.                         <span class="STYLE1">
  89.                             <asp:TextBox ID="Enddate" runat="server" Enabled="false"></asp:TextBox>
  90.                             <asp:ImageButton ID="ImageButton1" runat="server" Enabled="false" ImageUrl="~/images/calbtn.gif" /><br />
  91.                             &nbsp;</span></td>
  92.                 </tr>
  93.                 <tr align="left">
  94.                     <td >
  95.                         <span class="STYLE1">說明</span></td>
  96.                     <td colspan="3">
  97.                         <span class="STYLE1">
  98.                             <asp:TextBox ID="content" runat="server" Height="87px" Width="469px"  Enabled="false"></asp:TextBox></span></td>
  99.                 </tr>
  100.                 <tr>
  101.                     <td colspan="4" style="height: 28px">
  102.                         &nbsp;<asp:Button ID="btn_ok" runat="server" Enabled="false" Text="提交" />
  103.                         <asp:Button ID="btn_save" runat="server" Enabled="false" Text="存儲" /></td>
  104.                 </tr>
  105.             </table>
  106.             </asp:Panel>
  107.         &nbsp;
  108.         </center>
  109.         </div>
  110.         <center>
  111.         <asp:Panel ID="PnlFlow" runat="server" Style="position: relative" Width="580px" Visible="False">
  112.             <asp:GridView ID="FlowList" runat="server" AutoGenerateColumns="False" BackColor="White"
  113.                 BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" DataSourceID="SqlDataSource2"
  114.                 OnRowCreated="FlowList_RowCreated" Style="position: relative" Width="580px">
  115.                 <FooterStyle BackColor="White" ForeColor="#000066" />
  116.                 <RowStyle ForeColor="Black" />
  117.                 <Columns>
  118.                     <asp:BoundField DataField="step" HeaderText="步驟" SortExpression="step" />
  119.                     <asp:BoundField DataField="emp_name" HeaderText="辦理人" SortExpression="emp_name" />
  120.                     <asp:TemplateField HeaderText="簽核類別">
  121.                         <ItemTemplate>
  122.                             <asp:Label ID="LblApplyType" runat="server" Style="position: relative"></asp:Label>
  123.                         </ItemTemplate>
  124.                     </asp:TemplateField>
  125.                     <asp:TemplateField HeaderText="處理狀態">
  126.                         <ItemTemplate>
  127.                             <asp:Label ID="LblIsCheck" runat="server" Style="position: relative"></asp:Label>
  128.                         </ItemTemplate>
  129.                     </asp:TemplateField>
  130.                     <asp:TemplateField HeaderText="是否同意">
  131.                         <ItemTemplate>
  132.                             <asp:Label ID="LblIsAgree" runat="server" Style="position: relative"></asp:Label>
  133.                         </ItemTemplate>
  134.                     </asp:TemplateField>
  135.                     <asp:TemplateField HeaderText="處理意見">
  136.                         <ItemTemplate>
  137.                             <asp:Label ID="LblComment" runat="server" Style="position: relative"></asp:Label>
  138.                         </ItemTemplate>
  139.                     </asp:TemplateField>
  140.                     <asp:BoundField DataField="check_date" HeaderText="辦理日期" SortExpression="check_date" />
  141.                 </Columns>
  142.                 <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Left" />
  143.                 <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
  144.                 <HeaderStyle BackColor="Menu" Font-Bold="True" ForeColor="Black" />
  145.             </asp:GridView>
  146.             <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
  147.                 SelectCommand="select b.id,b.step,c.emp_name,b.apply_type,a.status,b.is_agree,b.comment,b.check_date,b.form_id from oa_computer_form as a&#13;&#10; left join oa_computer_form_flow as b on a.form_id=b.form_id left join oa_employee as c on b.operator_id=c.id where a.id=@f_id">
  148.                 <SelectParameters>
  149.                     <asp:QueryStringParameter Name="f_id" QueryStringField="f_id" />
  150.                 </SelectParameters>
  151.             </asp:SqlDataSource>
  152.         </asp:Panel>
  153.         </center>
  154.     </form>
  155.  
  156. </body>
  157. </html>