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

OA系统

开发平台:

ASP/ASPX

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="edit_deal.aspx.cs" Inherits="web_data_repair_select_edit_deal" %>
  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.         <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
  11.             <asp:View ID="View3" runat="server">
  12.                           <table border="1" width="651">
  13.               <tr align="left">
  14.               <td style="background-color: transparent; background-image: none;">
  15.               <span>选择门店</span></td>
  16.               <td style="background-color: transparent; background-image: none;">
  17.                   <asp:DropDownList ID="dl_department" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource1" DataTextField="name" DataValueField="id" Width="198px" AppendDataBoundItems="True">
  18.                       <asp:ListItem Value="-1">所有门店</asp:ListItem>
  19.                   </asp:DropDownList>
  20.                                 <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:oa1ConnectionString %>" SelectCommand="SELECT id, name FROM OA_DEPARTMENT WHERE (CHARINDEX('店', name) > 0)"></asp:SqlDataSource>
  21.               </td>
  22.               </tr>
  23.               <tr align="left">
  24.               <td style="background-color: transparent; background-image: none;">
  25.               <span>选择厂商</span></td>
  26.               <td style="background-color: transparent; background-image: none;">
  27.                   <asp:DropDownList ID="dl_company" runat="server" DataSourceID="SqlDataSource4"
  28.                       DataTextField="company" DataValueField="company" Width="197px" AppendDataBoundItems="True">
  29.                       <asp:ListItem Value="-1">所有厂商</asp:ListItem>
  30.                   </asp:DropDownList>
  31.                   <asp:SqlDataSource ID="SqlDataSource4" runat="server" ConnectionString="<%$ ConnectionStrings:oa1ConnectionString %>"
  32.                       SelectCommand="SELECT [company] FROM [oa_company]"></asp:SqlDataSource>
  33.               
  34.               </td>
  35.               </tr>
  36.               <tr>
  37.               <td style="background-color: transparent; background-image: none;">
  38.               <span>选择设备类型</span></td>
  39.               <td style="background-color: transparent; background-image: none;">
  40.                   <asp:DropDownList ID="dl_type" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource2" DataTextField="type" DataValueField="type" Width="198px" AppendDataBoundItems="True">
  41.                       <asp:ListItem Value="-1">所有类型</asp:ListItem>
  42.                   </asp:DropDownList><br />
  43.                   <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:oa1ConnectionString %>"
  44.                       SelectCommand="SELECT [type] FROM [OA_UNIT_TYPE]">
  45.                   </asp:SqlDataSource>
  46.               </td>
  47.                   <td style="background-color: transparent; background-image: none;">
  48.                   <span>选择设备名称</span>
  49.                   </td>
  50.                   <td style="background-color: transparent; background-image: none;">
  51.                       <asp:DropDownList ID="dl_name" runat="server" DataSourceID="SqlDataSource3" DataTextField="eq_name"
  52.                           DataValueField="eq_name" Width="194px" AppendDataBoundItems="True">
  53.                           <asp:ListItem Value="-1">所有设备</asp:ListItem>
  54.                       </asp:DropDownList>
  55.                       <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:oa1ConnectionString %>"
  56.                           SelectCommand="SELECT [eq_name] FROM [OA_UNIT_DETAIL] WHERE ([eq_type] = @eq_type)">
  57.                           <SelectParameters>
  58.                               <asp:ControlParameter ControlID="dl_type" Name="eq_type" PropertyName="SelectedValue"
  59.                                   Type="String" />
  60.                           </SelectParameters>
  61.                       </asp:SqlDataSource>
  62.                   </td>
  63.               </tr>
  64.                       <tr align="left">
  65.                           <td style="background-color: transparent; background-image: none;">
  66.                               <span>开始时间</span></td>
  67.                           <td style="background-color: transparent; background-image: none;">
  68.                               <span>
  69.                                   <asp:TextBox ID="b_time" runat="server" Width="176px"></asp:TextBox>
  70.                                   <asp:ImageButton ID="ImageButton1" runat="server" Enabled="true" ImageUrl="~/images/calbtn.gif"
  71.                                       OnClick="ImageButton1_Click" /><br />
  72.                                   <asp:Calendar ID="Begindate" runat="server" BackColor="White" BorderColor="#999999"
  73.                                       CellPadding="4" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt"
  74.                                       ForeColor="Black" Height="180px" OnSelectionChanged="Begindate_SelectionChanged"
  75.                                       Visible="False" Width="200px">
  76.                                       <SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
  77.                                       <TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
  78.                                       <OtherMonthDayStyle ForeColor="#808080" />
  79.                                       <NextPrevStyle VerticalAlign="Bottom" />
  80.                                       <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
  81.                                       <TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True" />
  82.                                       <SelectorStyle BackColor="#CCCCCC" />
  83.                                       <WeekendDayStyle BackColor="#FFFFCC" />
  84.                                   </asp:Calendar>
  85.                               </span></td>
  86.                           <td style="background-color: transparent; background-image: none;" >
  87.                               <span class="STYLE1">截止时间</span></td>
  88.                           <td style="background-color: transparent; background-image: none;">
  89.                               <span class="STYLE1">
  90.                                   <asp:TextBox ID="e_time" runat="server" Width="157px"></asp:TextBox>
  91.                                   <asp:ImageButton ID="ImageButton2" runat="server" Enabled="true" ImageUrl="~/images/calbtn.gif"
  92.                                       OnClick="ImageButton2_Click" /><br />
  93.                                   <asp:Calendar ID="Enddate" runat="server" BackColor="White" BorderColor="#999999"
  94.                                       CellPadding="4" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt"
  95.                                       ForeColor="Black" Height="180px" OnSelectionChanged="Enddate_SelectionChanged"
  96.                                       Visible="False" Width="200px">
  97.                                       <SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
  98.                                       <TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
  99.                                       <OtherMonthDayStyle ForeColor="#808080" />
  100.                                       <NextPrevStyle VerticalAlign="Bottom" />
  101.                                       <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
  102.                                       <TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True" />
  103.                                       <SelectorStyle BackColor="#CCCCCC" />
  104.                                       <WeekendDayStyle BackColor="#FFFFCC" />
  105.                                   </asp:Calendar>
  106.                               </span>
  107.                           </td>
  108.                       </tr>
  109.                       <tr>
  110.                           <td colspan="4" style="background-color: transparent; background-image: none; height: 28px;" align="center">
  111.                               &nbsp;<asp:Button ID="btn_ok" runat="server" OnClick="btn_ok_Click" Text="提交" /></td>
  112.                       </tr>
  113.                   </table>
  114.                 <asp:GridView ID="GridView1" runat="server" Width="655px" CellPadding="4" ForeColor="#333333" GridLines="None" AutoGenerateColumns="False" OnRowDataBound="GridView1_RowDataBound" DataKeyNames="form_id" PageSize="20" OnPageIndexChanging="GridView1_PageIndexChanging" AllowPaging="True">
  115.                     <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
  116.                     <RowStyle BackColor="#EFF3FB" />
  117.                     <EditRowStyle BackColor="#2461BF" />
  118.                     <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
  119.                     <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
  120.                     <HeaderStyle BackColor="Silver" Font-Bold="True" ForeColor="White" />
  121.                     <AlternatingRowStyle BackColor="White" />
  122.                     <Columns>
  123.                         <asp:BoundField DataField="form_id" HeaderText="维修单号" />
  124.                         <asp:BoundField DataField="department" HeaderText="门店" />
  125.                         <asp:BoundField DataField="applytime" HeaderText="报修日期" />
  126.                         <asp:BoundField DataField="finish_date" HeaderText="完工日期" />
  127.                         <asp:BoundField DataField="total_result" HeaderText="状态" />
  128.                     </Columns>
  129.                 </asp:GridView>
  130.             </asp:View>
  131.         </asp:MultiView></div>
  132.         &nbsp;
  133.     </form>
  134. </body>
  135. </html>