form_list.aspx
资源名称:web.rar [点击查看]
上传用户:xrffrp
上传日期:2022-03-25
资源大小:22155k
文件大小:13k
源码类别:
OA系统
开发平台:
ASP/ASPX
- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="form_list.aspx.cs" Inherits="web_new_repair_form_list" %>
- <%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
- Namespace="System.Web.UI" TagPrefix="asp" %>
- <!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();
- history.go(-1);
- }
- </script>
- </head>
- <body style="width: 4%">
- <form id="form1" runat="server">
- <div>
- <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
- <asp:View ID="View1" runat="server">
- <table border="1" style="width: 595px">
- <tr align="left">
- <td style="width: 73px; height: 34px">
- <span>选择门店</span>
- </td>
- <td style="width: 227px">
- <asp:DropDownList ID="dl_department" runat="server" Width="198px">
- </asp:DropDownList>
- </td>
- </tr>
- <tr align="left">
- <td style="width: 73px; height: 30px">
- <span>选择厂商</span></td>
- <td style="width: 227px">
- <asp:DropDownList ID="dl_company" runat="server" AutoPostBack="True" OnSelectedIndexChanged="dl_company_SelectedIndexChanged"
- Width="198px">
- </asp:DropDownList>
- </td>
- </tr>
- <tr>
- <td style="width: 73px; height: 27px">
- <span>
- 设备类型</span></td>
- <td style="width: 227px">
- <asp:DropDownList ID="dl_type" runat="server" AutoPostBack="True" OnSelectedIndexChanged="dl_type_SelectedIndexChanged"
- Width="198px">
- </asp:DropDownList>
- </td>
- <td style="width: 69px; height: 27px">
- <span>
- 设备名称</span>
- </td>
- <td>
- <asp:DropDownList ID="dl_name" runat="server" AutoPostBack="True" Width="194px">
- </asp:DropDownList>
- </td>
- </tr>
- <tr align="left">
- <td style="width: 73px">
- <span>
- 报修时间</span></td>
- <td style="width: 227px">
- <span style="width: 198px">
- <asp:TextBox ID="b_time" runat="server" Width="176px"></asp:TextBox>
- <asp:ImageButton ID="ImageButton1" runat="server" Enabled="true" ImageUrl="~/images/calbtn.gif"
- OnClick="ImageButton1_Click" /><br />
- <asp:Calendar ID="Begindate" runat="server" BackColor="White" BorderColor="#999999"
- CellPadding="4" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt"
- ForeColor="Black" Height="180px" OnSelectionChanged="Begindate_SelectionChanged"
- Visible="False" Width="200px">
- <SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
- <TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
- <OtherMonthDayStyle ForeColor="#808080" />
- <NextPrevStyle VerticalAlign="Bottom" />
- <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
- <TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True" />
- <SelectorStyle BackColor="#CCCCCC" />
- <WeekendDayStyle BackColor="#FFFFCC" />
- </asp:Calendar>
- </span>
- </td>
- <td align="center" style="width: 69px">
- <span class="STYLE1" style="font-size: 30px">
- ~</span></td>
- <td style="width: 207px">
- <span class="STYLE1">
- <asp:TextBox ID="e_time" runat="server" Width="157px"></asp:TextBox>
- <asp:ImageButton ID="ImageButton2" runat="server" Enabled="true" ImageUrl="~/images/calbtn.gif"
- OnClick="ImageButton2_Click" /><br />
- <asp:Calendar ID="Enddate" runat="server" BackColor="White" BorderColor="#999999"
- CellPadding="4" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt"
- ForeColor="Black" Height="180px" OnSelectionChanged="Enddate_SelectionChanged"
- Visible="False" Width="200px">
- <SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
- <TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
- <OtherMonthDayStyle ForeColor="#808080" />
- <NextPrevStyle VerticalAlign="Bottom" />
- <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
- <TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True" />
- <SelectorStyle BackColor="#CCCCCC" />
- <WeekendDayStyle BackColor="#FFFFCC" />
- </asp:Calendar>
- </span>
- </td>
- </tr>
- </table>
- <asp:Panel ID="Panel1" runat="server" Height="23px" Width="362px">
- <asp:Button ID="Button3" runat="server" Height="21px" Style="background-color: #ccccff"
- Text="查询" Width="44px" OnClick="Button1_Click" /><input id="Button4" style="width: 44px; height: 21px; background-color: #ccccff" type="button" value="打印" onclick="preview()" /></asp:Panel>
- <hr style="height: 1px; width: 30cm;" />
- </asp:View>
- </asp:MultiView></div>
- <center>
- <asp:MultiView ID="MultiView2" runat="server">
- <asp:View ID="View2" runat="server">
- <!--startprint-->
- <table style="width: 1110px; border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" rules="none">
- <tr>
- <td align="center" style="height: 23px; width:100%">
- <span style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none">85度C门店维修单</span>
- </td>
- </tr>
- <tr>
- <td>
- <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
- OnRowDataBound="GridView1_RowDataBound"
- PageSize="8" BorderColor="White" BorderStyle="None" BorderWidth="1px" Width="100%">
- <Columns>
- <asp:BoundField DataField="no" ReadOnly="True" >
- <ItemStyle Width="1cm" />
- <HeaderStyle Width="1cm" />
- </asp:BoundField>
- <asp:BoundField DataField="form_id" HeaderText="维修单号" ReadOnly="True">
- <ItemStyle Width="2cm" />
- <HeaderStyle Width="2cm" />
- </asp:BoundField>
- <asp:BoundField DataField="department" HeaderText="店铺名称" ReadOnly="True">
- <ItemStyle Width="2cm" />
- <HeaderStyle Width="2cm" />
- </asp:BoundField>
- <asp:BoundField DataField="tel" HeaderText="店内电话" ReadOnly="True">
- <ItemStyle Width="2cm" />
- <HeaderStyle Width="2cm" />
- </asp:BoundField>
- <asp:BoundField DataField="date" HeaderText="报修时间" ReadOnly="True">
- <ItemStyle Width="2cm" />
- <HeaderStyle Width="2cm" />
- </asp:BoundField>
- <asp:BoundField DataField="bxperson" HeaderText="报修人" ReadOnly="True">
- <ItemStyle Width="1.5cm" />
- <HeaderStyle Width="1.5cm" />
- </asp:BoundField>
- <asp:BoundField DataField="level" HeaderText="报修等级" ReadOnly="True">
- <ItemStyle Width="1cm" />
- <HeaderStyle Width="1cm" />
- </asp:BoundField>
- <asp:BoundField DataField="lbperson" HeaderText="门店主管" ReadOnly="True">
- <ItemStyle Width="1.5cm" />
- <HeaderStyle Width="1.5cm" />
- </asp:BoundField>
- <asp:BoundField DataField="type" HeaderText="设备类型" ReadOnly="True">
- <ItemStyle Width="2cm" />
- <HeaderStyle Width="2cm" />
- </asp:BoundField>
- <asp:BoundField DataField="equipment" HeaderText="设备名称" ReadOnly="True">
- <ItemStyle Width="2cm" />
- <HeaderStyle Width="2cm" />
- </asp:BoundField>
- <asp:BoundField DataField="comment" HeaderText="问题描述" ReadOnly="True">
- <ItemStyle Width="2cm" />
- <HeaderStyle Width="2cm" />
- </asp:BoundField>
- <asp:BoundField DataField="company" HeaderText="厂商">
- <ItemStyle Width="2cm" />
- <HeaderStyle Width="2cm" />
- </asp:BoundField>
- <asp:BoundField DataField="destine_time" HeaderText="预计维修时间">
- <ItemStyle Width="2cm" />
- <HeaderStyle Width="2cm" />
- </asp:BoundField>
- <asp:BoundField DataField="complete_time" HeaderText="实际完成维修时间">
- <ItemStyle Width="2cm" />
- <HeaderStyle Width="2cm" />
- </asp:BoundField>
- <asp:BoundField DataField="confirm" HeaderText="值班经理确认">
- <ItemStyle Width="1.5cm" />
- <HeaderStyle Width="1.5cm" />
- </asp:BoundField>
- <asp:BoundField DataField="remark" HeaderText="备注" >
- <ItemStyle Width="2cm" />
- <HeaderStyle Width="2cm" />
- </asp:BoundField>
- </Columns>
- <RowStyle BorderColor="Gray" BorderStyle="Solid" BorderWidth="1px" />
- </asp:GridView>
- </td>
- </tr>
- </table>
- <!--endprint-->
- <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:oa1ConnectionString %>"
- SelectCommand="SELECT company FROM [OA_company]"></asp:SqlDataSource>
- </asp:View>
- </asp:MultiView></center>
- </form>
- </body>
- </html>