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

OA系统

开发平台:

ASP/ASPX

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="form_add.aspx.cs" Inherits="web_data_repair_form_add" %>
  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.     <center>
  10.     <div>
  11.         <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
  12.             <asp:View ID="View1" runat="server">
  13.                 <br />
  14.                 <asp:Table ID="Table1" runat="server" GridLines="Both" Height="180px" HorizontalAlign="Center" Width="500px">
  15.                     <asp:TableRow runat="server" HorizontalAlign="Center" VerticalAlign="Middle">
  16.                         <asp:TableCell runat="server" Width="2cm">申请单号</asp:TableCell>
  17.                         <asp:TableCell runat="server" Width="4cm" Font-Bold="True">
  18.                            <asp:Label ID="lb_no" runat="server" Width="3cm" ForeColor="Blue"></asp:Label></asp:TableCell>
  19.                         <asp:TableCell runat="server" Width="2cm">代请人</asp:TableCell>
  20.                         <asp:TableCell runat="server" Width="4cm" Font-Bold="True">
  21.                             <asp:Label runat="server" ForeColor="Blue" ID="lb_person" BorderStyle="None" Width="3cm"></asp:Label></asp:TableCell>
  22.                     </asp:TableRow>
  23.                     <asp:TableRow runat="server" HorizontalAlign="Center" VerticalAlign="Middle">
  24.                         <asp:TableCell runat="server" Width="2cm">报修门店</asp:TableCell>
  25.                         <asp:TableCell runat="server" Width="4cm">
  26.                             <asp:DropDownList ID="dll_department" runat="server" Width="4cm" DataSourceID="SqlDataSource3" DataTextField="name" DataValueField="id" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
  27.                             </asp:DropDownList>                            
  28.                              <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:oa1ConnectionString %>"
  29.                     SelectCommand="SELECT id, name FROM OA_DEPARTMENT WHERE (CHARINDEX('店', name) &gt; 0)">
  30.                 </asp:SqlDataSource></asp:TableCell>
  31.                         <asp:TableCell runat="server" Width="2cm">店内电话</asp:TableCell>
  32.                         <asp:TableCell runat="server" Width="4cm" Font-Bold="True">
  33.                             <asp:Label ID="lb_tel" runat="server" ForeColor="Blue" Width="4cm"></asp:Label>
  34.                         </asp:TableCell>
  35.                     </asp:TableRow>
  36.                     <asp:TableRow runat="server" HorizontalAlign="Center" VerticalAlign="Middle">
  37.                         <asp:TableCell runat="server" Width="2cm">设备类型</asp:TableCell>
  38.                         <asp:TableCell runat="server" Width="4cm">
  39.                         <asp:DropDownList ID="dll_type" runat="server" Width="4cm" DataSourceID="SqlDataSource4" DataTextField="type" DataValueField="type" AutoPostBack="True">
  40.                             </asp:DropDownList>
  41.                         <asp:SqlDataSource ID="SqlDataSource4" runat="server" ConnectionString="<%$ ConnectionStrings:oa1ConnectionString %>" SelectCommand="SELECT [type] FROM [OA_UNIT_TYPE]"></asp:SqlDataSource></asp:TableCell>
  42.                         <asp:TableCell runat="server" Width="2cm">设备名称</asp:TableCell>
  43.                         <asp:TableCell runat="server" Width="4cm">
  44.                         <asp:DropDownList ID="dll_equipment" runat="server" Width="4cm" DataSourceID="SqlDataSource5" DataTextField="eq_name" DataValueField="eq_name" AutoPostBack="True">
  45.                             </asp:DropDownList>
  46.                      <asp:SqlDataSource ID="SqlDataSource5" runat="server" ConnectionString="<%$ ConnectionStrings:oa1ConnectionString %>" SelectCommand="SELECT [eq_name] FROM [OA_UNIT_DETAIL] WHERE ([eq_type] = @eq_type)">
  47.                     <SelectParameters>
  48.                         <asp:ControlParameter ControlID="dll_type" Name="eq_type" PropertyName="SelectedValue"
  49.                             Type="String" />
  50.                     </SelectParameters>
  51.                 </asp:SqlDataSource>
  52.                             </asp:TableCell>
  53.                     </asp:TableRow>
  54.                     <asp:TableRow runat="server" HorizontalAlign="Center" VerticalAlign="Middle">
  55.                         <asp:TableCell runat="server" Width="2cm">维修厂商</asp:TableCell>
  56.                         <asp:TableCell runat="server" ColumnSpan="3" HorizontalAlign="Left">
  57.                          <asp:DropDownList ID="dll_company" runat="server" Width="6cm" DataSourceID="SqlDataSource6" DataTextField="company" DataValueField="id">
  58.                             </asp:DropDownList>
  59.                      <asp:SqlDataSource ID="SqlDataSource6" runat="server" ConnectionString="<%$ ConnectionStrings:oa1ConnectionString %>" SelectCommand="SELECT [id], [company] FROM [oa_company] WHERE ([equipment] = @equipment)">
  60.                     <SelectParameters>
  61.                         <asp:ControlParameter ControlID="dll_type" Name="equipment" PropertyName="SelectedValue"
  62.                             Type="String" />
  63.                     </SelectParameters>
  64.                 </asp:SqlDataSource>
  65.                             </asp:TableCell>
  66.                     </asp:TableRow>
  67.                     <asp:TableRow runat="server" HorizontalAlign="Center" VerticalAlign="Middle">
  68.                         <asp:TableCell runat="server" Width="2cm">问题描述</asp:TableCell>
  69.                         <asp:TableCell runat="server" ColumnSpan="3" HorizontalAlign="Left">
  70.                         <table>
  71.                         <tr>
  72.                         <td>
  73.                          <asp:DropDownList ID="dll_question" runat="server" Width="6cm" DataSourceID="SqlDataSource7" DataTextField="question" DataValueField="question" OnSelectedIndexChanged="dll_question_SelectedIndexChanged1" AutoPostBack="True">
  74.                             </asp:DropDownList></td>
  75.                         </tr>
  76.                         <tr>
  77.                         <td> 
  78.                        <asp:TextBox ID="comment" runat="server" Width="10cm" Rows="5" TextMode="MultiLine"></asp:TextBox>
  79.                         </td>
  80.                         </tr>
  81.                         </table>
  82.                      <asp:SqlDataSource ID="SqlDataSource7" runat="server" ConnectionString="<%$ ConnectionStrings:oa1ConnectionString %>" SelectCommand="SELECT [question] FROM [OA_UNIT_QUESTION] WHERE ([equipment] = @equipment)">
  83.                     <SelectParameters>
  84.                         <asp:ControlParameter ControlID="dll_equipment" Name="equipment" PropertyName="SelectedValue"
  85.                             Type="String" />
  86.                     </SelectParameters>
  87.                 </asp:SqlDataSource>
  88. </asp:TableCell>
  89.                     </asp:TableRow>
  90.                     <asp:TableRow runat="server">
  91.                         <asp:TableCell runat="server" ColumnSpan="4" HorizontalAlign="Center" VerticalAlign="Middle">
  92.                             <asp:Button ID="bovk" runat="server" Text="确定" OnClick="Button1_Click"/></asp:TableCell>
  93.                     </asp:TableRow>
  94.                 </asp:Table>
  95.                 &nbsp;&nbsp;&nbsp;&nbsp;
  96.             </asp:View>
  97.         </asp:MultiView></div>
  98.         </center>
  99.     </form>
  100. </body>
  101. </html>