my_list.aspx
资源名称:web.rar [点击查看]
上传用户:xrffrp
上传日期:2022-03-25
资源大小:22155k
文件大小:10k
源码类别:
OA系统
开发平台:
ASP/ASPX
- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="my_list.aspx.cs" Inherits="web_data_repair_my_list" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" >
- <head runat="server">
- <title>无标题页</title>
- <object classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></object>
- <script language="javascript" type="text/javascript">
- function preview()
- {
- bdhtml=window.document.body.innerHTML;
- sprnstr="<!--startprint-->";
- eprnstr="<!--endprint-->";
- prnhtml=bdhtml.substr(bdhtml.indexOf(sprnstr)+17);
- prnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr));
- window.document.body.innerHTML=prnhtml;
- window.print();
- }
- </script>
- </head>
- <body>
- <form id="form1" runat="server">
- <center>
- <div>
- <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
- <asp:View ID="View1" runat="server">
- <asp:Label ID="Label1" runat="server" Text="我的报修单"></asp:Label><br />
- <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">
- <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
- <Columns>
- <asp:BoundField DataField="form_id" HeaderText="报修单号" SortExpression="form_id" />
- <asp:BoundField DataField="apply_time" HeaderText="报修时间" SortExpression="apply_time" />
- <asp:BoundField DataField="finish_time" HeaderText="结束时间" SortExpression="finish_time" />
- <asp:BoundField DataField="total_result" HeaderText="处理结果" SortExpression="total_result" />
- <asp:TemplateField>
- <ItemTemplate>
- <asp:LinkButton ID="LbRevoke" OnClientClick="return confirm('確定要撤銷嗎?')" runat="server" Style="position: relative" ReadOnly="true">撤销</asp:LinkButton>
- </ItemTemplate>
- </asp:TemplateField>
- </Columns>
- <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
- <EditRowStyle BackColor="#999999" />
- <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
- <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
- <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
- <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
- </asp:GridView>
- <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:oa1ConnectionString %>"
- SelectCommand="SELECT [apply_time], [form_id], [finish_time], [total_result] FROM [OA_REPAIR_FORM] WHERE ([emp_id] = @emp_id) order by id desc">
- <SelectParameters>
- <asp:SessionParameter Name="emp_id" SessionField="user_id" Type="Int32" />
- </SelectParameters>
- </asp:SqlDataSource>
- </asp:View>
- </asp:MultiView></div>
- <asp:MultiView ID="MultiView2" runat="server">
- <asp:View ID="View2" runat="server">
- <input type="button" name="print" value="预览并打印" onclick="preview()" id="Button1"/>
- <!--startprint-->
- <asp:Table ID="FormTable" runat="server" GridLines="Both" Height="152px" Width="672px">
- <asp:TableRow runat="server" BackColor="#E0E0E0" HorizontalAlign="Left">
- <asp:TableCell runat="server" ColumnSpan="4" Font-Bold="True">单据明细</asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server" Width="2cm">维修单号</asp:TableCell>
- <asp:TableCell runat="server">
- <asp:Label ID="lb_no" runat="server" ForeColor="Black" Width="4cm"></asp:Label>
- </asp:TableCell>
- <asp:TableCell runat="server" Width="2cm">申请人</asp:TableCell>
- <asp:TableCell runat="server">
- <asp:Label ID="lb_person" runat="server" BorderStyle="None" Width="4cm"></asp:Label>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server" Width="2cm">门店</asp:TableCell>
- <asp:TableCell runat="server">
- <asp:Label ID="lb_department" runat="server" BorderStyle="None" ForeColor="Black"
- Width="4cm"></asp:Label>
- </asp:TableCell>
- <asp:TableCell runat="server" Width="2cm">店内电话</asp:TableCell>
- <asp:TableCell runat="server">
- <asp:Label ID="lb_tel" runat="server" BorderStyle="None" ForeColor="Black" Width="4cm"></asp:Label>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server" Width="2cm">设备类型</asp:TableCell>
- <asp:TableCell runat="server">
- <asp:Label ID="lb_type" runat="server" BorderStyle="None" ForeColor="Black" Width="4cm"></asp:Label>
- </asp:TableCell>
- <asp:TableCell runat="server" Width="2cm">设备名称</asp:TableCell>
- <asp:TableCell runat="server">
- <asp:Label ID="lb_equipment" runat="server" BorderStyle="None" ForeColor="Black"
- Width="4cm"></asp:Label>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server" Width="2cm">反映问题</asp:TableCell>
- <asp:TableCell runat="server" ColumnSpan="3">
- <asp:Label ID="comment" runat="server" Width="10cm"></asp:Label>
- </asp:TableCell>
- </asp:TableRow>
- </asp:Table>
- <asp:Table ID="Table1" runat="server" GridLines="Both" Width="674px">
- <asp:TableRow runat="server" BackColor="#E0E0E0" HorizontalAlign="Left">
- <asp:TableCell runat="server" ColumnSpan="2">维修厂商信息</asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server" Width="2cm">联系人</asp:TableCell>
- <asp:TableCell runat="server" Width="3cm">
- <asp:Label ID="person" runat="server" ForeColor="Blue" Font-Bold="True" Width="3cm"></asp:Label>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server" Width="2cm">固定电话</asp:TableCell>
- <asp:TableCell runat="server" Width="3cm">
- <asp:Label ID="phone" runat="server" ForeColor="Blue" Font-Bold="True" Width="3cm"></asp:Label>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server" Width="2cm">手机</asp:TableCell>
- <asp:TableCell runat="server" Width="3cm">
- <asp:Label ID="tel" runat="server" ForeColor="Blue" Font-Bold="True" Width="3cm"></asp:Label>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server" Width="2cm">传真号码</asp:TableCell>
- <asp:TableCell runat="server" Width="3cm">
- <asp:Label ID="fax" runat="server" ForeColor="Blue" Font-Bold="True" Width="3cm"></asp:Label>
- </asp:TableCell>
- </asp:TableRow>
- </asp:Table>
- <br />
- <!--endprint-->
- <asp:Table ID="FlowTable" runat="server" GridLines="Both" Style="width: 680px" Visible="true"
- Width="636px">
- <asp:TableRow runat="server" BackColor="#E0E0E0" HorizontalAlign="Left">
- <asp:TableCell runat="server" ColumnSpan="7" Font-Bold="True">单据流程</asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server">步驟</asp:TableCell>
- <asp:TableCell runat="server">辦理人</asp:TableCell>
- <asp:TableCell runat="server">簽核類別</asp:TableCell>
- <asp:TableCell runat="server">處理狀態</asp:TableCell>
- <asp:TableCell runat="server">是否完工</asp:TableCell>
- <asp:TableCell runat="server">處理意見</asp:TableCell>
- <asp:TableCell runat="server">辦理日期</asp:TableCell>
- </asp:TableRow>
- </asp:Table>
- </asp:View>
- </asp:MultiView>
- </center>
- </form>
- </body>
- </html>