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

OA系统

开发平台:

ASP/ASPX

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="form_list.aspx.cs" Inherits="web_new_repair_form_list" %>
  2. <%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
  3.     Namespace="System.Web.UI" TagPrefix="asp" %>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  5. <html xmlns="http://www.w3.org/1999/xhtml" >
  6. <head runat="server">
  7.     <title>无标题页</title>
  8. <object classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></object>
  9.     <script language="javascript" type="text/javascript">
  10.  function preview()
  11. {
  12.   bdhtml=window.document.body.innerHTML;
  13.   sprnstr="<!--startprint-->";
  14.   eprnstr="<!--endprint-->";
  15.   prnhtml=bdhtml.substr(bdhtml.indexOf(sprnstr)+17);
  16.   prnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr));
  17.   window.document.body.innerHTML=prnhtml;
  18.   window.print();
  19.   history.go(-1);
  20. }
  21.     </script>
  22. </head>
  23. <body style="width: 4%">
  24.     <form id="form1" runat="server">
  25.     <div>
  26.         <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
  27.             <asp:View ID="View1" runat="server">
  28.                 <table border="1" style="width: 595px">
  29.                     <tr align="left">
  30.                         <td style="width: 73px; height: 34px">
  31.                             <span>选择门店</span>
  32.                         </td>
  33.                         <td style="width: 227px">
  34.                             <asp:DropDownList ID="dl_department" runat="server" Width="198px">
  35.                             </asp:DropDownList>&nbsp;
  36.                         </td>
  37.                     </tr>
  38.                     <tr align="left">
  39.                         <td style="width: 73px; height: 30px">
  40.                             <span>选择厂商</span></td>
  41.                         <td style="width: 227px">
  42.                             <asp:DropDownList ID="dl_company" runat="server" AutoPostBack="True" OnSelectedIndexChanged="dl_company_SelectedIndexChanged"
  43.                                 Width="198px">
  44.                             </asp:DropDownList>&nbsp;
  45.                         </td>
  46.                     </tr>
  47.                     <tr>
  48.                         <td style="width: 73px; height: 27px">
  49.                             <span>
  50.                             设备类型</span></td>
  51.                         <td style="width: 227px">
  52.                             <asp:DropDownList ID="dl_type" runat="server" AutoPostBack="True" OnSelectedIndexChanged="dl_type_SelectedIndexChanged"
  53.                                 Width="198px">
  54.                             </asp:DropDownList>&nbsp;
  55.                         </td>
  56.                         <td style="width: 69px; height: 27px">
  57.                             <span>
  58.                             设备名称</span>
  59.                         </td>
  60.                         <td>
  61.                             <asp:DropDownList ID="dl_name" runat="server" AutoPostBack="True" Width="194px">
  62.                             </asp:DropDownList>&nbsp;
  63.                         </td>
  64.                     </tr>
  65.                     <tr align="left">
  66.                         <td style="width: 73px">
  67.                             <span>
  68.                             报修时间</span></td>
  69.                         <td style="width: 227px">
  70.                             <span style="width: 198px">
  71.                                 <asp:TextBox ID="b_time" runat="server" Width="176px"></asp:TextBox>
  72.                                 <asp:ImageButton ID="ImageButton1" runat="server" Enabled="true" ImageUrl="~/images/calbtn.gif"
  73.                                     OnClick="ImageButton1_Click" /><br />
  74.                                 <asp:Calendar ID="Begindate" runat="server" BackColor="White" BorderColor="#999999"
  75.                                     CellPadding="4" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt"
  76.                                     ForeColor="Black" Height="180px" OnSelectionChanged="Begindate_SelectionChanged"
  77.                                     Visible="False" Width="200px">
  78.                                     <SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
  79.                                     <TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
  80.                                     <OtherMonthDayStyle ForeColor="#808080" />
  81.                                     <NextPrevStyle VerticalAlign="Bottom" />
  82.                                     <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
  83.                                     <TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True" />
  84.                                     <SelectorStyle BackColor="#CCCCCC" />
  85.                                     <WeekendDayStyle BackColor="#FFFFCC" />
  86.                                 </asp:Calendar>
  87.                             </span>
  88.                         </td>
  89.                         <td align="center" style="width: 69px">
  90.                             <span class="STYLE1" style="font-size: 30px">
  91.                             ~</span></td>
  92.                         <td style="width: 207px">
  93.                             <span class="STYLE1">
  94.                                 <asp:TextBox ID="e_time" runat="server" Width="157px"></asp:TextBox>
  95.                                 <asp:ImageButton ID="ImageButton2" runat="server" Enabled="true" ImageUrl="~/images/calbtn.gif"
  96.                                     OnClick="ImageButton2_Click" /><br />
  97.                                 <asp:Calendar ID="Enddate" runat="server" BackColor="White" BorderColor="#999999"
  98.                                     CellPadding="4" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt"
  99.                                     ForeColor="Black" Height="180px" OnSelectionChanged="Enddate_SelectionChanged"
  100.                                     Visible="False" Width="200px">
  101.                                     <SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
  102.                                     <TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
  103.                                     <OtherMonthDayStyle ForeColor="#808080" />
  104.                                     <NextPrevStyle VerticalAlign="Bottom" />
  105.                                     <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
  106.                                     <TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True" />
  107.                                     <SelectorStyle BackColor="#CCCCCC" />
  108.                                     <WeekendDayStyle BackColor="#FFFFCC" />
  109.                                 </asp:Calendar>
  110.                             </span>
  111.                         </td>
  112.                     </tr>
  113.                 </table>
  114.                 <asp:Panel ID="Panel1" runat="server" Height="23px" Width="362px">
  115.         <asp:Button ID="Button3" runat="server" Height="21px" Style="background-color: #ccccff"
  116.             Text="查询" Width="44px" OnClick="Button1_Click" /><input id="Button4" style="width: 44px; height: 21px; background-color: #ccccff" type="button" value="打印" onclick="preview()" /></asp:Panel>
  117.         <hr style="height: 1px; width: 30cm;" />
  118.             </asp:View>
  119.         </asp:MultiView></div>
  120.         <center>
  121.         <asp:MultiView ID="MultiView2" runat="server">
  122.             <asp:View ID="View2" runat="server">
  123.              <!--startprint-->
  124.              <table style="width: 1110px; border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" rules="none">
  125.              <tr>
  126.              <td  align="center" style="height: 23px; width:100%">
  127.              <span style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none">85度C门店维修单</span>
  128.              </td>
  129.              </tr>
  130.              <tr>
  131.              <td>
  132.                 <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
  133.                    OnRowDataBound="GridView1_RowDataBound" 
  134.                     PageSize="8" BorderColor="White" BorderStyle="None" BorderWidth="1px" Width="100%">
  135.                     <Columns>
  136.                         <asp:BoundField DataField="no" ReadOnly="True" >
  137.                             <ItemStyle Width="1cm" />
  138.                             <HeaderStyle Width="1cm" />
  139.                         </asp:BoundField>
  140.                         <asp:BoundField DataField="form_id" HeaderText="维修单号" ReadOnly="True">
  141.                             <ItemStyle Width="2cm" />
  142.                             <HeaderStyle Width="2cm" />
  143.                         </asp:BoundField>
  144.                         <asp:BoundField DataField="department" HeaderText="店铺名称" ReadOnly="True">
  145.                             <ItemStyle Width="2cm" />
  146.                             <HeaderStyle Width="2cm" />
  147.                         </asp:BoundField>
  148.                         <asp:BoundField DataField="tel" HeaderText="店内电话" ReadOnly="True">
  149.                             <ItemStyle Width="2cm" />
  150.                             <HeaderStyle Width="2cm" />
  151.                         </asp:BoundField>
  152.                         <asp:BoundField DataField="date" HeaderText="报修时间" ReadOnly="True">
  153.                             <ItemStyle Width="2cm" />
  154.                             <HeaderStyle Width="2cm" />
  155.                         </asp:BoundField>
  156.                         <asp:BoundField DataField="bxperson" HeaderText="报修人" ReadOnly="True">
  157.                             <ItemStyle Width="1.5cm" />
  158.                             <HeaderStyle Width="1.5cm" />
  159.                             </asp:BoundField>
  160.                          <asp:BoundField DataField="level" HeaderText="报修等级" ReadOnly="True">
  161.                             <ItemStyle Width="1cm" />
  162.                              <HeaderStyle Width="1cm" />
  163.                             </asp:BoundField>
  164.                         <asp:BoundField DataField="lbperson" HeaderText="门店主管" ReadOnly="True">
  165.                             <ItemStyle Width="1.5cm" />
  166.                             <HeaderStyle Width="1.5cm" />
  167.                         </asp:BoundField>
  168.                         <asp:BoundField DataField="type" HeaderText="设备类型" ReadOnly="True">
  169.                             <ItemStyle Width="2cm" />
  170.                             <HeaderStyle Width="2cm" />
  171.                         </asp:BoundField>
  172.                         <asp:BoundField DataField="equipment" HeaderText="设备名称" ReadOnly="True">
  173.                             <ItemStyle Width="2cm" />
  174.                             <HeaderStyle Width="2cm" />
  175.                         </asp:BoundField>
  176.                         <asp:BoundField DataField="comment" HeaderText="问题描述" ReadOnly="True">
  177.                             <ItemStyle Width="2cm" />
  178.                             <HeaderStyle Width="2cm" />
  179.                         </asp:BoundField>
  180.                         <asp:BoundField DataField="company" HeaderText="厂商">
  181.                             <ItemStyle Width="2cm" />
  182.                             <HeaderStyle Width="2cm" />
  183.                         </asp:BoundField>
  184.                         <asp:BoundField DataField="destine_time" HeaderText="预计维修时间">
  185.                             <ItemStyle Width="2cm" />
  186.                             <HeaderStyle Width="2cm" />
  187.                         </asp:BoundField>
  188.                         <asp:BoundField DataField="complete_time" HeaderText="实际完成维修时间">
  189.                             <ItemStyle Width="2cm" />
  190.                             <HeaderStyle Width="2cm" />
  191.                         </asp:BoundField>
  192.                         <asp:BoundField DataField="confirm" HeaderText="值班经理确认">
  193.                             <ItemStyle Width="1.5cm" />
  194.                             <HeaderStyle Width="1.5cm" />
  195.                         </asp:BoundField>
  196.                         <asp:BoundField DataField="remark" HeaderText="备注" >
  197.                             <ItemStyle Width="2cm" />
  198.                             <HeaderStyle Width="2cm" />
  199.                         </asp:BoundField>
  200.                     </Columns>
  201.                     <RowStyle BorderColor="Gray" BorderStyle="Solid" BorderWidth="1px" />
  202.                 </asp:GridView>
  203.              
  204.              </td>
  205.              </tr>
  206.              </table>
  207.                <!--endprint-->
  208.                  <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:oa1ConnectionString %>"
  209.                     SelectCommand="SELECT company FROM [OA_company]"></asp:SqlDataSource>
  210.             </asp:View>
  211.         </asp:MultiView></center>
  212.     </form>
  213. </body>
  214. </html>