repair.aspx
资源名称:web.rar [点击查看]
上传用户:xrffrp
上传日期:2022-03-25
资源大小:22155k
文件大小:19k
源码类别:
OA系统
开发平台:
ASP/ASPX
- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="repair.aspx.cs" Inherits="web_data_repair" %>
- <!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>
- </head>
- <body>
- <form id="form1" runat="server">
- <div>
- <asp:DropDownList ID="DropDownList1" runat="server" Width="161px" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
- <asp:ListItem></asp:ListItem>
- <asp:ListItem Value="0">厂商资料</asp:ListItem>
- <asp:ListItem Value="1">设备分类</asp:ListItem>
- <asp:ListItem Value="2">设备名称</asp:ListItem>
- <asp:ListItem Value="3">问题列表</asp:ListItem>
- </asp:DropDownList>
- <asp:Label ID="Label1" runat="server" ForeColor="Black" Text="选择要进行的操作" Width="184px"></asp:Label>
- <asp:MultiView ID="MultiView1" runat="server">
- <asp:View ID="View1" runat="server">
- <asp:GridView ID="GridView1" runat="server" AllowSorting="True" AutoGenerateColumns="False"
- BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px"
- CellPadding="3" GridLines="Vertical" OnRowCancelingEdit="GridView1_RowCancelingEdit"
- OnRowCreated="ApprovelList1_RowCreated" OnRowDataBound="GridView1_RowDataBound"
- OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating"
- PageSize="8" RowHeaderColumn="编号" Width="830px">
- <Columns>
- <asp:BoundField DataField="編號" HeaderText="編號" ReadOnly="True" >
- <ItemStyle Width="1cm" />
- </asp:BoundField>
- <asp:BoundField DataField="公司名稱" HeaderText="公司名稱" >
- <ItemStyle Width="3cm" />
- </asp:BoundField>
- <asp:BoundField DataField="聯絡人" HeaderText="聯絡人" >
- <ItemStyle Width="2cm" />
- </asp:BoundField>
- <asp:BoundField DataField="手機號碼" HeaderText="手機號碼" >
- <ItemStyle Width="3cm" />
- </asp:BoundField>
- <asp:BoundField DataField="固定電話" HeaderText="固定電話" >
- <ItemStyle Width="2cm" />
- </asp:BoundField>
- <asp:BoundField DataField="fax" HeaderText="传真号码">
- <ItemStyle Width="3cm" />
- </asp:BoundField>
- <asp:TemplateField HeaderText="設備類型">
- <ItemTemplate>
- <asp:DropDownList ID="dl" runat="server" DataSourceID="SqlDataSource2" DataTextField="type"
- DataValueField="type" Width="3cm">
- </asp:DropDownList></ItemTemplate>
- </asp:TemplateField>
- <asp:BoundField DataField="ID" HeaderText="ID" Visible="False" />
- <asp:CommandField HeaderText="編輯" ShowEditButton="True" />
- <asp:CommandField HeaderText="刪除" ShowDeleteButton="True" />
- <asp:TemplateField HeaderText="添加">
- <ItemTemplate>
- <asp:LinkButton ID="LbRevoke1" runat="server" Enabled="true" Style="position: relative">添加</asp:LinkButton></ItemTemplate>
- </asp:TemplateField>
- </Columns>
- <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
- <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
- <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
- <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
- <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
- <AlternatingRowStyle BackColor="Gainsboro" />
- </asp:GridView>
-
- <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:oa1ConnectionString %>"
- SelectCommand="SELECT [type] FROM [OA_UNIT_TYPE]"></asp:SqlDataSource>
- <asp:Panel ID="Panel1" runat="server" Height="50px" Visible="False" Width="125px">
- <asp:Table ID="tab" runat="server" CaptionAlign="Bottom" GridLines="Both" Height="183px"
- Width="410px">
- <asp:TableRow runat="server">
- <asp:TableCell runat="server">公司名稱</asp:TableCell>
- <asp:TableCell runat="server" Width="6cm">
- <asp:TextBox ID="company" runat="server" BorderStyle="None" Width="6cm"></asp:TextBox></asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server">聯絡人</asp:TableCell>
- <asp:TableCell runat="server">
- <asp:TextBox ID="person" runat="server" BorderStyle="None" Width="6cm"></asp:TextBox></asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server">手機號碼</asp:TableCell>
- <asp:TableCell runat="server">
- <asp:TextBox ID="mobile" runat="server" BorderStyle="None" Width="6cm"></asp:TextBox></asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server">固定電話</asp:TableCell>
- <asp:TableCell runat="server">
- <asp:TextBox ID="tel" runat="server" BorderStyle="None" Width="6cm"></asp:TextBox></asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server">传真号码</asp:TableCell>
- <asp:TableCell runat="server">
- <asp:TextBox ID="fax" runat="server" BorderStyle="None" Width="6cm"></asp:TextBox></asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server">維修設備類型</asp:TableCell>
- <asp:TableCell runat="server">
- <asp:DropDownList ID="equipment" runat="server" DataSourceID="SqlDataSource1" DataTextField="type"
- DataValueField="type" Width="6cm">
- </asp:DropDownList></asp:TableCell>
- </asp:TableRow>
- </asp:Table>
- <br />
- <asp:Button ID="Btview1" runat="server" OnClick="Btview1_Click" Text="確定" Width="2cm" />
- <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:oa1ConnectionString %>"
- SelectCommand="SELECT [type] FROM [OA_UNIT_TYPE]"></asp:SqlDataSource>
- </asp:Panel>
- </asp:View>
- <asp:View ID="View2" runat="server">
- <asp:GridView ID="GridView2" runat="server" AllowSorting="True" AutoGenerateColumns="False"
- BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px"
- CellPadding="3" GridLines="Vertical" OnRowCancelingEdit="GridView2_RowCancelingEdit"
- OnRowCreated="ApprovelList2_RowCreated" OnRowDataBound="GridView2_RowDataBound"
- OnRowDeleting="GridView2_RowDeleting" OnRowEditing="GridView2_RowEditing" OnRowUpdating="GridView2_RowUpdating"
- PageSize="20" RowHeaderColumn="编号" Width="438px">
- <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
- <Columns>
- <asp:BoundField DataField="no" HeaderText="编号" ReadOnly="True" />
- <asp:BoundField DataField="type" HeaderText="分类名称" />
- <asp:BoundField DataField="id" HeaderText="ID" Visible="False" />
- <asp:CommandField HeaderText="编辑" ShowEditButton="True" />
- <asp:CommandField HeaderText="删除" ShowDeleteButton="True" />
- <asp:TemplateField HeaderText="添加">
- <ItemTemplate>
- <asp:LinkButton ID="LbRevoke2" runat="server" Enabled="true" Style="position: relative">添加</asp:LinkButton></ItemTemplate>
- </asp:TemplateField>
- </Columns>
- <RowStyle BackColor="#EFF3FB" />
- <EditRowStyle BackColor="#2461BF" />
- <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
- <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
- <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
- <AlternatingRowStyle BackColor="White" />
- </asp:GridView>
- <asp:Panel ID="Panel2" runat="server" Height="246px" Visible="False" Width="250px">
- <asp:TextBox ID="txttype" runat="server"></asp:TextBox><br />
- <asp:Button ID="Btview2" runat="server" OnClick="Btview2_Click" Text="确定" Width="1.8cm" /></asp:Panel>
- </asp:View>
- <asp:View ID="View3" runat="server">
- <asp:GridView ID="GridView3" runat="server" AllowSorting="True" AutoGenerateColumns="False"
- BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px"
- CellPadding="3" GridLines="Vertical" OnRowCancelingEdit="GridView3_RowCancelingEdit"
- OnRowCreated="ApprovelList3_RowCreated" OnRowDataBound="GridView3_RowDataBound"
- OnRowDeleting="GridView3_RowDeleting" OnRowEditing="GridView3_RowEditing" OnRowUpdating="GridView3_RowUpdating"
- PageSize="20" RowHeaderColumn="编号" Width="438px">
- <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
- <RowStyle BackColor="#EFF3FB" />
- <EditRowStyle BackColor="#2461BF" />
- <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
- <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
- <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
- <AlternatingRowStyle BackColor="White" />
- <Columns>
- <asp:BoundField DataField="ID" HeaderText="編號" ReadOnly="True" />
- <asp:BoundField DataField="設備名稱" HeaderText="設備名稱" />
- <asp:TemplateField HeaderText="設備類型">
- <ItemTemplate>
- <asp:DropDownList ID="dl" runat="server" DataSourceID="SqlDataSource3" DataTextField="type"
- DataValueField="type" Width="2cm">
- </asp:DropDownList></ItemTemplate>
- </asp:TemplateField>
- <asp:CommandField HeaderText="編輯" ShowEditButton="True" />
- <asp:CommandField HeaderText="刪除" ShowDeleteButton="True" />
- <asp:TemplateField HeaderText="添加">
- <ItemTemplate>
- <asp:LinkButton ID="LbRevoke3" runat="server" Enabled="true" Style="position: relative">添加</asp:LinkButton></ItemTemplate>
- </asp:TemplateField>
- </Columns>
- </asp:GridView>
-
- <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:oa1ConnectionString %>"
- SelectCommand="SELECT [type] FROM [OA_UNIT_TYPE]"></asp:SqlDataSource>
- <asp:Panel ID="Panel3" runat="server" Height="63px" Visible="False" Width="267px">
- <br />
- <br />
- <asp:Table ID="Table1" runat="server" GridLines="Both" Width="265px">
- <asp:TableRow runat="server">
- <asp:TableCell runat="server" Width="3cm">设备名称</asp:TableCell>
- <asp:TableCell runat="server" Width="3cm">
- <asp:TextBox ID="txt" runat="server" BorderStyle="None"></asp:TextBox></asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server" Width="3cm">所属分类</asp:TableCell>
- <asp:TableCell runat="server" Width="3cm">
- <asp:DropDownList ID="dltype" runat="server" DataSourceID="SqlDataSource4" DataTextField="type"
- DataValueField="type" Width="4cm">
- </asp:DropDownList></asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server" ColumnSpan="2">
- <asp:Button ID="Btview3" runat="server" OnClick="Btview3_Click" Text="確定" Width="2cm" /></asp:TableCell>
- </asp:TableRow>
- </asp:Table>
- <asp:SqlDataSource ID="SqlDataSource4" runat="server" ConnectionString="<%$ ConnectionStrings:oa1ConnectionString %>"
- SelectCommand="SELECT [type] FROM [OA_UNIT_TYPE]"></asp:SqlDataSource>
- </asp:Panel>
- </asp:View>
- <asp:View ID="View4" runat="server">
- <asp:GridView ID="GridView4" runat="server" AllowSorting="True" AutoGenerateColumns="False"
- BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px"
- CellPadding="3" GridLines="Vertical" OnRowCancelingEdit="GridView4_RowCancelingEdit"
- OnRowCreated="ApprovelList4_RowCreated" OnRowDataBound="GridView4_RowDataBound"
- OnRowDeleting="GridView4_RowDeleting" OnRowEditing="GridView4_RowEditing" OnRowUpdating="GridView4_RowUpdating"
- PageSize="15" RowHeaderColumn="编号" Width="438px" AllowPaging="True">
- <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
- <RowStyle BackColor="#EFF3FB" />
- <EditRowStyle BackColor="#2461BF" />
- <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
- <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
- <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
- <AlternatingRowStyle BackColor="White" />
- <Columns>
- <asp:BoundField DataField="ID" HeaderText="編號" ReadOnly="True" />
- <asp:BoundField DataField="question" HeaderText="问题描述" >
- <ControlStyle Width="4cm" />
- <ItemStyle Width="4cm" />
- </asp:BoundField>
- <asp:TemplateField HeaderText="设备名称">
- <ItemTemplate>
- <asp:DropDownList ID="dl" runat="server" DataSourceID="SqlDataSource5" DataTextField="eq_name"
- DataValueField="eq_name" Width="2cm">
- </asp:DropDownList></ItemTemplate>
- </asp:TemplateField>
- <asp:CommandField HeaderText="編輯" ShowEditButton="True" />
- <asp:CommandField HeaderText="刪除" ShowDeleteButton="True" />
- <asp:TemplateField HeaderText="添加">
- <ItemTemplate>
- <asp:LinkButton ID="LbRevoke4" runat="server" Enabled="true" Style="position: relative">添加</asp:LinkButton></ItemTemplate>
- </asp:TemplateField>
- </Columns>
- </asp:GridView>
- <asp:Panel ID="Panel4" runat="server" Height="63px" Visible="False" Width="267px">
- <br />
- <br />
- <asp:Table ID="Table2" runat="server" GridLines="Both" Width="265px">
- <asp:TableRow runat="server">
- <asp:TableCell runat="server" Width="3cm">问题描述</asp:TableCell>
- <asp:TableCell runat="server" Width="3cm">
- <asp:TextBox ID="txt1" runat="server" BorderStyle="None"></asp:TextBox></asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server" Width="3cm">相关设备</asp:TableCell>
- <asp:TableCell runat="server" Width="3cm">
- <asp:DropDownList ID="type" runat="server" DataSourceID="SqlDataSource5" DataTextField="eq_name"
- DataValueField="eq_name" Width="4cm">
- </asp:DropDownList></asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell runat="server" ColumnSpan="2">
- <asp:Button ID="Btview4" runat="server" OnClick="Btview4_Click" Text="確定" Width="2cm" /></asp:TableCell>
- </asp:TableRow>
- </asp:Table>
- <asp:SqlDataSource ID="SqlDataSource5" runat="server" ConnectionString="<%$ ConnectionStrings:oa1ConnectionString %>"
- SelectCommand="SELECT [eq_name] FROM [OA_UNIT_DETAIL]"></asp:SqlDataSource>
- </asp:Panel>
- </asp:View>
- </asp:MultiView>
- </div>
- </form>
- </body>
- </html>