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

OA系统

开发平台:

ASP/ASPX

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="repair.aspx.cs" Inherits="web_data_repair" %>
  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:DropDownList ID="DropDownList1" runat="server" Width="161px" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
  11.             <asp:ListItem></asp:ListItem>
  12.             <asp:ListItem Value="0">厂商资料</asp:ListItem>
  13.             <asp:ListItem Value="1">设备分类</asp:ListItem>
  14.             <asp:ListItem Value="2">设备名称</asp:ListItem>
  15.             <asp:ListItem Value="3">问题列表</asp:ListItem>
  16.         </asp:DropDownList>
  17.         <asp:Label ID="Label1" runat="server" ForeColor="Black" Text="选择要进行的操作" Width="184px"></asp:Label>
  18.         <asp:MultiView ID="MultiView1" runat="server">
  19.             <asp:View ID="View1" runat="server">
  20.                 <asp:GridView ID="GridView1" runat="server" AllowSorting="True" AutoGenerateColumns="False"
  21.                     BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px"
  22.                     CellPadding="3" GridLines="Vertical" OnRowCancelingEdit="GridView1_RowCancelingEdit"
  23.                     OnRowCreated="ApprovelList1_RowCreated" OnRowDataBound="GridView1_RowDataBound"
  24.                     OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating"
  25.                     PageSize="8" RowHeaderColumn="编号" Width="830px">
  26.                     <Columns>
  27.                         <asp:BoundField DataField="編號" HeaderText="編號" ReadOnly="True" >
  28.                             <ItemStyle Width="1cm" />
  29.                         </asp:BoundField>
  30.                         <asp:BoundField DataField="公司名稱" HeaderText="公司名稱" >
  31.                             <ItemStyle Width="3cm" />
  32.                         </asp:BoundField>
  33.                         <asp:BoundField DataField="聯絡人" HeaderText="聯絡人" >
  34.                             <ItemStyle Width="2cm" />
  35.                         </asp:BoundField>
  36.                         <asp:BoundField DataField="手機號碼" HeaderText="手機號碼" >
  37.                             <ItemStyle Width="3cm" />
  38.                         </asp:BoundField>
  39.                         <asp:BoundField DataField="固定電話" HeaderText="固定電話" >
  40.                             <ItemStyle Width="2cm" />
  41.                         </asp:BoundField>
  42.                         <asp:BoundField DataField="fax" HeaderText="传真号码">
  43.                             <ItemStyle Width="3cm" />
  44.                         </asp:BoundField>
  45.                         <asp:TemplateField HeaderText="設備類型">
  46.                             <ItemTemplate>
  47.                                 <asp:DropDownList ID="dl" runat="server" DataSourceID="SqlDataSource2" DataTextField="type"
  48.                                     DataValueField="type" Width="3cm">
  49.                                 </asp:DropDownList></ItemTemplate>
  50.                         </asp:TemplateField>
  51.                         <asp:BoundField DataField="ID" HeaderText="ID" Visible="False" />
  52.                         <asp:CommandField HeaderText="編輯" ShowEditButton="True" />
  53.                         <asp:CommandField HeaderText="刪除" ShowDeleteButton="True" />
  54.                         <asp:TemplateField HeaderText="添加">
  55.                             <ItemTemplate>
  56.                                 <asp:LinkButton ID="LbRevoke1" runat="server" Enabled="true" Style="position: relative">添加</asp:LinkButton></ItemTemplate>
  57.                         </asp:TemplateField>
  58.                     </Columns>
  59.                     <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
  60.                     <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
  61.                     <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
  62.                     <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
  63.                     <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
  64.                     <AlternatingRowStyle BackColor="Gainsboro" />
  65.                 </asp:GridView>
  66.                 &nbsp; &nbsp;
  67.                 <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:oa1ConnectionString %>"
  68.                     SelectCommand="SELECT [type] FROM [OA_UNIT_TYPE]"></asp:SqlDataSource>
  69.                 <asp:Panel ID="Panel1" runat="server" Height="50px" Visible="False" Width="125px">
  70.                     <asp:Table ID="tab" runat="server" CaptionAlign="Bottom" GridLines="Both" Height="183px"
  71.                         Width="410px">
  72.                         <asp:TableRow runat="server">
  73.                             <asp:TableCell runat="server">公司名稱</asp:TableCell>
  74.                             <asp:TableCell runat="server" Width="6cm">
  75.                                 <asp:TextBox ID="company" runat="server" BorderStyle="None" Width="6cm"></asp:TextBox></asp:TableCell>
  76.                         </asp:TableRow>
  77.                         <asp:TableRow runat="server">
  78.                             <asp:TableCell runat="server">聯絡人</asp:TableCell>
  79.                             <asp:TableCell runat="server">
  80.                                 <asp:TextBox ID="person" runat="server" BorderStyle="None" Width="6cm"></asp:TextBox></asp:TableCell>
  81.                         </asp:TableRow>
  82.                         <asp:TableRow runat="server">
  83.                             <asp:TableCell runat="server">手機號碼</asp:TableCell>
  84.                             <asp:TableCell runat="server">
  85.                                 <asp:TextBox ID="mobile" runat="server" BorderStyle="None" Width="6cm"></asp:TextBox></asp:TableCell>
  86.                         </asp:TableRow>
  87.                         <asp:TableRow runat="server">
  88.                             <asp:TableCell runat="server">固定電話</asp:TableCell>
  89.                             <asp:TableCell runat="server">
  90.                                 <asp:TextBox ID="tel" runat="server" BorderStyle="None" Width="6cm"></asp:TextBox></asp:TableCell>
  91.                         </asp:TableRow>
  92.                         <asp:TableRow runat="server">
  93.                             <asp:TableCell runat="server">传真号码</asp:TableCell>
  94.                             <asp:TableCell runat="server">
  95.                             <asp:TextBox ID="fax" runat="server" BorderStyle="None" Width="6cm"></asp:TextBox></asp:TableCell>
  96.                         </asp:TableRow>
  97.                         <asp:TableRow runat="server">
  98.                             <asp:TableCell runat="server">維修設備類型</asp:TableCell>
  99.                             <asp:TableCell runat="server">
  100.                                 <asp:DropDownList ID="equipment" runat="server" DataSourceID="SqlDataSource1" DataTextField="type"
  101.                                     DataValueField="type" Width="6cm">
  102.                                 </asp:DropDownList></asp:TableCell>
  103.                         </asp:TableRow>
  104.                     </asp:Table>
  105.                     &nbsp;&nbsp;<br />
  106.                     <asp:Button ID="Btview1" runat="server" OnClick="Btview1_Click" Text="確定" Width="2cm" />
  107.                     <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:oa1ConnectionString %>"
  108.                         SelectCommand="SELECT [type] FROM [OA_UNIT_TYPE]"></asp:SqlDataSource>
  109.                 </asp:Panel>
  110.             </asp:View>
  111.             <asp:View ID="View2" runat="server">
  112.                 <asp:GridView ID="GridView2" runat="server" AllowSorting="True" AutoGenerateColumns="False"
  113.                     BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px"
  114.                     CellPadding="3" GridLines="Vertical" OnRowCancelingEdit="GridView2_RowCancelingEdit"
  115.                     OnRowCreated="ApprovelList2_RowCreated" OnRowDataBound="GridView2_RowDataBound"
  116.                     OnRowDeleting="GridView2_RowDeleting" OnRowEditing="GridView2_RowEditing" OnRowUpdating="GridView2_RowUpdating"
  117.                     PageSize="20" RowHeaderColumn="编号" Width="438px">
  118.                     <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
  119.                     <Columns>
  120.                         <asp:BoundField DataField="no" HeaderText="编号" ReadOnly="True" />
  121.                         <asp:BoundField DataField="type" HeaderText="分类名称" />
  122.                         <asp:BoundField DataField="id" HeaderText="ID" Visible="False" />
  123.                         <asp:CommandField HeaderText="编辑" ShowEditButton="True" />
  124.                         <asp:CommandField HeaderText="删除" ShowDeleteButton="True" />
  125.                         <asp:TemplateField HeaderText="添加">
  126.                             <ItemTemplate>
  127.                                 <asp:LinkButton ID="LbRevoke2" runat="server" Enabled="true" Style="position: relative">添加</asp:LinkButton></ItemTemplate>
  128.                         </asp:TemplateField>
  129.                     </Columns>
  130.                     <RowStyle BackColor="#EFF3FB" />
  131.                     <EditRowStyle BackColor="#2461BF" />
  132.                     <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
  133.                     <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
  134.                     <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
  135.                     <AlternatingRowStyle BackColor="White" />
  136.                 </asp:GridView>
  137.                 <asp:Panel ID="Panel2" runat="server" Height="246px" Visible="False" Width="250px">
  138.                     &nbsp;<asp:TextBox ID="txttype" runat="server"></asp:TextBox><br />
  139.                     <asp:Button ID="Btview2" runat="server" OnClick="Btview2_Click" Text="确定" Width="1.8cm" /></asp:Panel>
  140.             </asp:View>
  141.             <asp:View ID="View3" runat="server">
  142.                 <asp:GridView ID="GridView3" runat="server" AllowSorting="True" AutoGenerateColumns="False"
  143.                     BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px"
  144.                     CellPadding="3" GridLines="Vertical" OnRowCancelingEdit="GridView3_RowCancelingEdit"
  145.                     OnRowCreated="ApprovelList3_RowCreated" OnRowDataBound="GridView3_RowDataBound"
  146.                     OnRowDeleting="GridView3_RowDeleting" OnRowEditing="GridView3_RowEditing" OnRowUpdating="GridView3_RowUpdating"
  147.                     PageSize="20" RowHeaderColumn="编号" Width="438px">
  148.                     <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
  149.                     <RowStyle BackColor="#EFF3FB" />
  150.                     <EditRowStyle BackColor="#2461BF" />
  151.                     <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
  152.                     <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
  153.                     <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
  154.                     <AlternatingRowStyle BackColor="White" />
  155.                     <Columns>
  156.                         <asp:BoundField DataField="ID" HeaderText="編號" ReadOnly="True" />
  157.                         <asp:BoundField DataField="設備名稱" HeaderText="設備名稱" />
  158.                         <asp:TemplateField HeaderText="設備類型">
  159.                             <ItemTemplate>
  160.                                 <asp:DropDownList ID="dl" runat="server" DataSourceID="SqlDataSource3" DataTextField="type"
  161.                                     DataValueField="type" Width="2cm">
  162.                                 </asp:DropDownList></ItemTemplate>
  163.                         </asp:TemplateField>
  164.                         <asp:CommandField HeaderText="編輯" ShowEditButton="True" />
  165.                         <asp:CommandField HeaderText="刪除" ShowDeleteButton="True" />
  166.                         <asp:TemplateField HeaderText="添加">
  167.                             <ItemTemplate>
  168.                                 <asp:LinkButton ID="LbRevoke3" runat="server" Enabled="true" Style="position: relative">添加</asp:LinkButton></ItemTemplate>
  169.                         </asp:TemplateField>
  170.                     </Columns>
  171.                 </asp:GridView>
  172.                 &nbsp;
  173.                 <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:oa1ConnectionString %>"
  174.                     SelectCommand="SELECT [type] FROM [OA_UNIT_TYPE]"></asp:SqlDataSource>
  175.                 <asp:Panel ID="Panel3" runat="server" Height="63px" Visible="False" Width="267px">
  176.                     <br />
  177.                     <br />
  178.                     <asp:Table ID="Table1" runat="server" GridLines="Both" Width="265px">
  179.                         <asp:TableRow runat="server">
  180.                             <asp:TableCell runat="server" Width="3cm">设备名称</asp:TableCell>
  181.                             <asp:TableCell runat="server" Width="3cm">
  182.                                 <asp:TextBox ID="txt" runat="server" BorderStyle="None"></asp:TextBox></asp:TableCell>
  183.                         </asp:TableRow>
  184.                         <asp:TableRow runat="server">
  185.                             <asp:TableCell runat="server" Width="3cm">所属分类</asp:TableCell>
  186.                             <asp:TableCell runat="server" Width="3cm">
  187.                                 <asp:DropDownList ID="dltype" runat="server" DataSourceID="SqlDataSource4" DataTextField="type"
  188.                                     DataValueField="type" Width="4cm">
  189.                                 </asp:DropDownList></asp:TableCell>
  190.                         </asp:TableRow>
  191.                         <asp:TableRow runat="server">
  192.                             <asp:TableCell runat="server" ColumnSpan="2">
  193.                                 <asp:Button ID="Btview3" runat="server" OnClick="Btview3_Click" Text="確定" Width="2cm" /></asp:TableCell>
  194.                         </asp:TableRow>
  195.                     </asp:Table>
  196.                     <asp:SqlDataSource ID="SqlDataSource4" runat="server" ConnectionString="<%$ ConnectionStrings:oa1ConnectionString %>"
  197.                         SelectCommand="SELECT [type] FROM [OA_UNIT_TYPE]"></asp:SqlDataSource>
  198.                 </asp:Panel>
  199.             </asp:View>
  200.             <asp:View ID="View4" runat="server">
  201.                 &nbsp;<asp:GridView ID="GridView4" runat="server" AllowSorting="True" AutoGenerateColumns="False"
  202.                     BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px"
  203.                     CellPadding="3" GridLines="Vertical" OnRowCancelingEdit="GridView4_RowCancelingEdit"
  204.                     OnRowCreated="ApprovelList4_RowCreated" OnRowDataBound="GridView4_RowDataBound"
  205.                     OnRowDeleting="GridView4_RowDeleting" OnRowEditing="GridView4_RowEditing" OnRowUpdating="GridView4_RowUpdating"
  206.                     PageSize="15" RowHeaderColumn="编号" Width="438px" AllowPaging="True">
  207.                     <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
  208.                     <RowStyle BackColor="#EFF3FB" />
  209.                     <EditRowStyle BackColor="#2461BF" />
  210.                     <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
  211.                     <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
  212.                     <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
  213.                     <AlternatingRowStyle BackColor="White" />
  214.                     <Columns>
  215.                         <asp:BoundField DataField="ID" HeaderText="編號" ReadOnly="True" />
  216.                         <asp:BoundField DataField="question" HeaderText="问题描述" >
  217.                             <ControlStyle Width="4cm" />
  218.                             <ItemStyle Width="4cm" />
  219.                         </asp:BoundField>
  220.                         <asp:TemplateField HeaderText="设备名称">
  221.                             <ItemTemplate>
  222.                                 <asp:DropDownList ID="dl" runat="server" DataSourceID="SqlDataSource5" DataTextField="eq_name"
  223.                                     DataValueField="eq_name" Width="2cm">
  224.                                 </asp:DropDownList></ItemTemplate>
  225.                         </asp:TemplateField>
  226.                         <asp:CommandField HeaderText="編輯" ShowEditButton="True" />
  227.                         <asp:CommandField HeaderText="刪除" ShowDeleteButton="True" />
  228.                         <asp:TemplateField HeaderText="添加">
  229.                             <ItemTemplate>
  230.                                 <asp:LinkButton ID="LbRevoke4" runat="server" Enabled="true" Style="position: relative">添加</asp:LinkButton></ItemTemplate>
  231.                         </asp:TemplateField>
  232.                     </Columns>
  233.                 </asp:GridView>
  234.                 <asp:Panel ID="Panel4" runat="server" Height="63px" Visible="False" Width="267px">
  235.                     <br />
  236.                     <br />
  237.                     <asp:Table ID="Table2" runat="server" GridLines="Both" Width="265px">
  238.                         <asp:TableRow runat="server">
  239.                             <asp:TableCell runat="server" Width="3cm">问题描述</asp:TableCell>
  240.                             <asp:TableCell runat="server" Width="3cm">
  241.                                 <asp:TextBox ID="txt1" runat="server" BorderStyle="None"></asp:TextBox></asp:TableCell>
  242.                         </asp:TableRow>
  243.                         <asp:TableRow runat="server">
  244.                             <asp:TableCell runat="server" Width="3cm">相关设备</asp:TableCell>
  245.                             <asp:TableCell runat="server" Width="3cm">
  246.                                 <asp:DropDownList ID="type" runat="server" DataSourceID="SqlDataSource5" DataTextField="eq_name"
  247.                                     DataValueField="eq_name" Width="4cm">
  248.                                 </asp:DropDownList></asp:TableCell>
  249.                         </asp:TableRow>
  250.                         <asp:TableRow runat="server">
  251.                             <asp:TableCell runat="server" ColumnSpan="2">
  252.                                 <asp:Button ID="Btview4" runat="server" OnClick="Btview4_Click" Text="確定" Width="2cm" /></asp:TableCell>
  253.                         </asp:TableRow>
  254.                     </asp:Table>
  255.                     <asp:SqlDataSource ID="SqlDataSource5" runat="server" ConnectionString="<%$ ConnectionStrings:oa1ConnectionString %>"
  256.                         SelectCommand="SELECT [eq_name] FROM [OA_UNIT_DETAIL]"></asp:SqlDataSource>
  257.                 </asp:Panel>
  258.             </asp:View>
  259.         </asp:MultiView>
  260.     
  261.     </div>
  262.     </form>
  263. </body>
  264. </html>