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

OA系统

开发平台:

ASP/ASPX

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="my_list.aspx.cs" Inherits="web_data_repair_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.         <object classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></object>
  7.     <script language="javascript" type="text/javascript">
  8.  function preview()
  9. {
  10.   bdhtml=window.document.body.innerHTML;
  11.   sprnstr="<!--startprint-->";
  12.   eprnstr="<!--endprint-->";
  13.   prnhtml=bdhtml.substr(bdhtml.indexOf(sprnstr)+17);
  14.   prnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr));
  15.   window.document.body.innerHTML=prnhtml;
  16.   window.print();
  17. }
  18.     </script>
  19. </head>
  20. <body>
  21.     <form id="form1" runat="server">
  22.     <center>
  23.     <div>
  24.         <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
  25.             <asp:View ID="View1" runat="server">
  26.                 <asp:Label ID="Label1" runat="server" Text="我的报修单"></asp:Label><br />
  27.                 <asp:GridView ID="GridView1" runat="server" CellPadding="4" Style="position: relative" AllowPaging="True" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" Width="668px" OnRowDataBound="GridView1_RowDataBound" OnRowCreated="GridView1_RowCreated" PageSize="8" ForeColor="#333333" GridLines="None">
  28.                     <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
  29.                     <Columns>
  30.                         <asp:BoundField DataField="form_id" HeaderText="报修单号" SortExpression="form_id" />
  31.                         <asp:BoundField DataField="apply_time" HeaderText="报修时间" SortExpression="apply_time" />
  32.                         <asp:BoundField DataField="finish_time" HeaderText="结束时间" SortExpression="finish_time" />
  33.                         <asp:BoundField DataField="total_result" HeaderText="处理结果" SortExpression="total_result" />
  34.                         <asp:TemplateField>
  35.                         <ItemTemplate>
  36.                             <asp:LinkButton ID="LbRevoke" OnClientClick="return confirm('確定要撤銷嗎?')" runat="server" Style="position: relative" ReadOnly="true">撤销</asp:LinkButton>
  37.                         </ItemTemplate>
  38.                         </asp:TemplateField>
  39.                         
  40.                     </Columns>
  41.                     <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
  42.                     <EditRowStyle BackColor="#999999" />
  43.                     <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
  44.                     <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
  45.                     <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
  46.                     <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
  47.                 </asp:GridView>
  48.                 <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:oa1ConnectionString %>"
  49.                     SelectCommand="SELECT [apply_time], [form_id], [finish_time], [total_result] FROM [OA_REPAIR_FORM] WHERE ([emp_id] = @emp_id) order by id desc">
  50.                     <SelectParameters>
  51.                         <asp:SessionParameter Name="emp_id" SessionField="user_id" Type="Int32" />
  52.                     </SelectParameters>
  53.                 </asp:SqlDataSource>
  54.             </asp:View>
  55.         </asp:MultiView></div>
  56.         <asp:MultiView ID="MultiView2" runat="server">
  57.             <asp:View ID="View2" runat="server">
  58.              <input type="button" name="print" value="预览并打印" onclick="preview()" id="Button1"/>
  59.                    <!--startprint-->
  60.                 <asp:Table ID="FormTable" runat="server" GridLines="Both" Height="152px" Width="672px">
  61.                     <asp:TableRow runat="server" BackColor="#E0E0E0" HorizontalAlign="Left">
  62.                         <asp:TableCell runat="server" ColumnSpan="4" Font-Bold="True">单据明细</asp:TableCell>
  63.                     </asp:TableRow>
  64.                     <asp:TableRow runat="server">
  65.                         <asp:TableCell runat="server" Width="2cm">维修单号</asp:TableCell>
  66.                         <asp:TableCell runat="server">
  67.                             <asp:Label ID="lb_no" runat="server" ForeColor="Black" Width="4cm"></asp:Label>
  68.                         </asp:TableCell>
  69.                         <asp:TableCell runat="server" Width="2cm">申请人</asp:TableCell>
  70.                         <asp:TableCell runat="server">
  71.                             <asp:Label ID="lb_person" runat="server" BorderStyle="None" Width="4cm"></asp:Label>
  72.                         </asp:TableCell>
  73.                     </asp:TableRow>
  74.                     <asp:TableRow runat="server">
  75.                         <asp:TableCell runat="server" Width="2cm">门店</asp:TableCell>
  76.                         <asp:TableCell runat="server">
  77.                             <asp:Label ID="lb_department" runat="server" BorderStyle="None" ForeColor="Black"
  78.                                 Width="4cm"></asp:Label>
  79.                         </asp:TableCell>
  80.                         <asp:TableCell runat="server" Width="2cm">店内电话</asp:TableCell>
  81.                         <asp:TableCell runat="server">
  82.                             <asp:Label ID="lb_tel" runat="server" BorderStyle="None" ForeColor="Black" Width="4cm"></asp:Label>
  83.                         </asp:TableCell>
  84.                     </asp:TableRow>
  85.                     <asp:TableRow runat="server">
  86.                         <asp:TableCell runat="server" Width="2cm">设备类型</asp:TableCell>
  87.                         <asp:TableCell runat="server">
  88.                             <asp:Label ID="lb_type" runat="server" BorderStyle="None" ForeColor="Black" Width="4cm"></asp:Label>
  89.                         </asp:TableCell>
  90.                         <asp:TableCell runat="server" Width="2cm">设备名称</asp:TableCell>
  91.                         <asp:TableCell runat="server">
  92.                             <asp:Label ID="lb_equipment" runat="server" BorderStyle="None" ForeColor="Black"
  93.                                 Width="4cm"></asp:Label>
  94.                         </asp:TableCell>
  95.                     </asp:TableRow>
  96.                     <asp:TableRow runat="server">
  97.                         <asp:TableCell runat="server" Width="2cm">反映问题</asp:TableCell>
  98.                         <asp:TableCell runat="server" ColumnSpan="3">
  99.                             <asp:Label ID="comment" runat="server" Width="10cm"></asp:Label>
  100.                         </asp:TableCell>
  101.                     </asp:TableRow>
  102.                 </asp:Table>
  103.                 <asp:Table ID="Table1" runat="server" GridLines="Both" Width="674px">
  104.                     <asp:TableRow runat="server" BackColor="#E0E0E0" HorizontalAlign="Left">
  105.                         <asp:TableCell runat="server" ColumnSpan="2">维修厂商信息</asp:TableCell>
  106.                     </asp:TableRow>
  107.                     <asp:TableRow runat="server">
  108.                         <asp:TableCell runat="server" Width="2cm">联系人</asp:TableCell>
  109.                         <asp:TableCell runat="server" Width="3cm">
  110.                             <asp:Label ID="person" runat="server" ForeColor="Blue" Font-Bold="True" Width="3cm"></asp:Label>
  111.                         </asp:TableCell>
  112.                     </asp:TableRow>
  113.                     <asp:TableRow runat="server">
  114.                         <asp:TableCell runat="server" Width="2cm">固定电话</asp:TableCell>
  115.                         <asp:TableCell runat="server" Width="3cm">
  116.                             <asp:Label ID="phone" runat="server" ForeColor="Blue" Font-Bold="True" Width="3cm"></asp:Label>
  117.                         </asp:TableCell>
  118.                     </asp:TableRow>
  119.                     <asp:TableRow runat="server">
  120.                         <asp:TableCell runat="server" Width="2cm">手机</asp:TableCell>
  121.                         <asp:TableCell runat="server" Width="3cm">
  122.                             <asp:Label ID="tel" runat="server" ForeColor="Blue" Font-Bold="True" Width="3cm"></asp:Label>
  123.                         </asp:TableCell>
  124.                     </asp:TableRow>
  125.                     <asp:TableRow runat="server">
  126.                         <asp:TableCell runat="server" Width="2cm">传真号码</asp:TableCell>
  127.                         <asp:TableCell runat="server" Width="3cm">
  128.                         <asp:Label ID="fax" runat="server" ForeColor="Blue" Font-Bold="True" Width="3cm"></asp:Label>
  129.                         </asp:TableCell>
  130.                     </asp:TableRow>
  131.                 </asp:Table>
  132.                 <br />
  133.                <!--endprint-->
  134.                 <asp:Table ID="FlowTable" runat="server" GridLines="Both" Style="width: 680px" Visible="true"
  135.                     Width="636px">
  136.                     <asp:TableRow runat="server" BackColor="#E0E0E0" HorizontalAlign="Left">
  137.                         <asp:TableCell runat="server" ColumnSpan="7" Font-Bold="True">单据流程</asp:TableCell>
  138.                     </asp:TableRow>
  139.                     <asp:TableRow runat="server">
  140.                         <asp:TableCell runat="server">步驟</asp:TableCell>
  141.                         <asp:TableCell runat="server">辦理人</asp:TableCell>
  142.                         <asp:TableCell runat="server">簽核類別</asp:TableCell>
  143.                         <asp:TableCell runat="server">處理狀態</asp:TableCell>
  144.                         <asp:TableCell runat="server">是否完工</asp:TableCell>
  145.                         <asp:TableCell runat="server">處理意見</asp:TableCell>
  146.                         <asp:TableCell runat="server">辦理日期</asp:TableCell>
  147.                     </asp:TableRow>
  148.                 </asp:Table>
  149.             </asp:View>
  150.         </asp:MultiView>
  151.         </center>
  152.     </form>
  153. </body>
  154. </html>