⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 repairassignform.aspx

📁 ASP.NET 2.0 C# +MYSQL 家电维修管理系统 功能还算齐全
💻 ASPX
字号:
<%--文件名:RepairAssignForm.aspx--%>
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="RepairAssignForm.aspx.cs" Inherits="RepairManage_RepairAssignForm" Title="当前位置:维修管理->派修登记管理" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width: 558px; height: 1px">
        <tr>
            <td align="left" style="font-size: 0.8em; width: 550px; font-family: 宋体; height: 17px;
                background-color: deepskyblue">
                &nbsp;请输入需要查询的维修编号:<asp:TextBox ID="TextBox21" runat="server" BackColor="White" Width="289px">%%</asp:TextBox>
                <asp:Button ID="Button3" runat="server" Text="查询" Width="70px" />
            </td>
        </tr>
        <tr>
            <td style="overflow: auto; width: 550px; height: 103px; background-color: gainsboro">
                <asp:Panel ID="Panel2" runat="server" Height="150px" ScrollBars="Auto" Width="555px">
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White"
                        BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1"
                        DataKeyNames="维修编号" DataSourceID="SqlDataSource2" Font-Names="宋体" Font-Size="Small"
                        GridLines="None" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" Width="1950px">
                        <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                        <Columns>
                            <asp:CommandField ButtonType="Button" HeaderText="选择" ShowSelectButton="True" />
                            <asp:BoundField DataField="维修编号" HeaderText="维修编号" ReadOnly="True" SortExpression="维修编号" />
                            <asp:BoundField DataField="维修类别" HeaderText="维修类别" SortExpression="维修类别" />
                            <asp:BoundField DataField="维修项目" HeaderText="维修项目" SortExpression="维修项目" />
                            <asp:BoundField DataField="维修费用" HeaderText="维修费用" SortExpression="维修费用" />
                            <asp:BoundField DataField="产品品牌" HeaderText="产品品牌" SortExpression="产品品牌" />
                            <asp:BoundField DataField="产品型号" HeaderText="产品型号" SortExpression="产品型号" />
                            <asp:BoundField DataField="机身号码" HeaderText="机身号码" SortExpression="机身号码" />
                            <asp:BoundField DataField="购买日期" HeaderText="购买日期" SortExpression="购买日期" />
                            <asp:BoundField DataField="商家名称" HeaderText="商家名称" SortExpression="商家名称" />
                            <asp:BoundField DataField="商家电话" HeaderText="商家电话" SortExpression="商家电话" />
                            <asp:BoundField DataField="客户名称" HeaderText="客户名称" SortExpression="客户名称" />
                            <asp:BoundField DataField="客户电话" HeaderText="客户电话" SortExpression="客户电话" />
                            <asp:BoundField DataField="保修情况" HeaderText="保修情况" SortExpression="保修情况" />
                            <asp:BoundField DataField="故障情况" HeaderText="故障情况" SortExpression="故障情况" />
                            <asp:BoundField DataField="附件信息" HeaderText="附件信息" SortExpression="附件信息" />
                            <asp:BoundField DataField="预交订金" HeaderText="预交订金" SortExpression="预交订金" />
                            <asp:BoundField DataField="维修方式" HeaderText="维修方式" SortExpression="维修方式" />
                            <asp:BoundField DataField="补充说明" HeaderText="补充说明" SortExpression="补充说明" />
                            <asp:BoundField DataField="登记日期" HeaderText="登记日期" SortExpression="登记日期" />
                            <asp:BoundField DataField="登记人员" HeaderText="登记人员" SortExpression="登记人员" />
                        </Columns>
                        <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                        <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                        <HeaderStyle BackColor="Navy" Font-Bold="True" ForeColor="#E7E7FF" HorizontalAlign="Center" />
                    </asp:GridView>
                    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:MyServiceDBConnectionString %>"
                        SelectCommand="SELECT * FROM [维修登记] WHERE ([维修编号] LIKE '%' + @维修编号 + '%') AND (维修编号 NOT IN(SELECT 维修编号 FROM 派修登记)) AND (维修编号 NOT IN(SELECT 维修编号 FROM 完修登记))  AND (维修编号 NOT IN(SELECT 维修编号 FROM 签收登记))">
                        <SelectParameters>
                            <asp:ControlParameter ControlID="TextBox21" Name="维修编号" PropertyName="Text" Type="String" />
                        </SelectParameters>
                    </asp:SqlDataSource>
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td align="left" style="font-size: 0.8em; width: 550px; font-family: 宋体; height: 17px;
                background-color: lightseagreen">
                &nbsp;派修编号:<asp:TextBox ID="TextBox1" runat="server" BackColor="LightGray" ReadOnly="True"
                    Width="30px"></asp:TextBox>
                客户名称:<asp:DropDownList ID="DropDownList2" runat="server" DataSourceID="SqlDataSource4"
                    DataTextField="客户名称" DataValueField="客户编号" Width="164px">
                </asp:DropDownList>
                客户电话:<asp:TextBox ID="TextBox10" runat="server" BackColor="LightGray" ReadOnly="True"
                    Width="127px"></asp:TextBox><br />
                &nbsp;维修编号:<asp:TextBox ID="TextBox2" runat="server" BackColor="LightGray" ReadOnly="True"
                    Width="101px"></asp:TextBox>
                维修类别:<asp:TextBox ID="TextBox3" runat="server" BackColor="LightGray" ReadOnly="True"
                    Width="69px"></asp:TextBox>
                维修项目:<asp:TextBox ID="TextBox4" runat="server" BackColor="LightGray" ReadOnly="True"
                    Width="145px"></asp:TextBox><br />
                &nbsp;产品品牌:<asp:TextBox ID="TextBox5" runat="server" BackColor="LightGray" ReadOnly="True"
                    Width="84px"></asp:TextBox>
                产品型号:<asp:TextBox ID="TextBox6" runat="server" BackColor="LightGray" ReadOnly="True"
                    Width="106px"></asp:TextBox>
                机身号码:<asp:TextBox ID="TextBox7" runat="server" BackColor="LightGray" ReadOnly="True"
                    Width="125px"></asp:TextBox><br />
                &nbsp;故障情况:<asp:TextBox ID="TextBox14" runat="server" BackColor="LightGray" ReadOnly="True"
                    Width="470px"></asp:TextBox><br />
                &nbsp;附件信息:<asp:TextBox ID="TextBox15" runat="server" BackColor="LightGray" ReadOnly="True"
                    Width="167px"></asp:TextBox>
                维修方式:<asp:DropDownList ID="DropDownList4" runat="server" Width="80px">
                    <asp:ListItem></asp:ListItem>
                    <asp:ListItem>上门维修</asp:ListItem>
                    <asp:ListItem>送机维修</asp:ListItem>
                </asp:DropDownList>
                派修员工:<asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="SqlDataSource1"
                    DataTextField="员工姓名" DataValueField="员工编号" Width="80px">
                </asp:DropDownList><br />
                &nbsp;派修日期:<asp:TextBox ID="TextBox9" runat="server" BackColor="White" Width="57px">2007-7-3</asp:TextBox>
                补充说明:<asp:TextBox ID="TextBox18" runat="server" BackColor="White" Width="104px">暂无</asp:TextBox>&nbsp;<asp:Button
                    ID="Button1" runat="server" OnClick="Button1_Click" Text="新增" Width="70px" />&nbsp;<asp:Button
                        ID="Button2" runat="server" OnClick="Button2_Click" Text="修改" Width="70px" />
                <asp:Button ID="Button4" runat="server" OnClick="Button4_Click" Text="打印" Width="70px" /></td>
        </tr>
        <tr>
            <td style="overflow: auto; width: 550px; height: 103px; background-color: gainsboro">
                <asp:Panel ID="Panel1" runat="server" Height="200px" ScrollBars="Auto" Width="555px">
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MyServiceDBConnectionString %>"
                        SelectCommand="SELECT DISTINCT * FROM [员工信息]"></asp:SqlDataSource>
                    <asp:SqlDataSource ID="SqlDataSource4" runat="server" ConnectionString="<%$ ConnectionStrings:MyServiceDBConnectionString %>"
                        SelectCommand="SELECT DISTINCT * FROM [客户信息]"></asp:SqlDataSource>
                    <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" BackColor="White"
                        BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1"
                        DataKeyNames="派修编号" DataSourceID="SqlDataSource3" Font-Names="宋体" Font-Size="Small"
                        GridLines="None" OnRowCreated="GridView2_RowCreated" OnSelectedIndexChanged="GridView2_SelectedIndexChanged"
                        Width="650px" OnRowDeleted="GridView2_RowDeleted" OnRowDataBound="GridView2_RowDataBound">
                        <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                        <Columns>
                            <asp:CommandField ButtonType="Button" HeaderText="选择" ShowSelectButton="True" />
                            <asp:TemplateField HeaderText="删除" ShowHeader="False">
                                <ItemTemplate>
                                    <asp:Button ID="Button1" runat="server" CausesValidation="False" CommandName="Delete"
                                        Text="删除" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="派修编号" HeaderText="派修编号" InsertVisible="False" ReadOnly="True"
                                SortExpression="派修编号" />
                            <asp:BoundField DataField="维修编号" HeaderText="维修编号" SortExpression="维修编号" />
                            <asp:BoundField DataField="派修员工" HeaderText="派修员工" SortExpression="派修员工" />
                            <asp:BoundField DataField="派修日期" HeaderText="派修日期" SortExpression="派修日期" />
                            <asp:BoundField DataField="补充说明" HeaderText="补充说明" SortExpression="补充说明" />
                        </Columns>
                        <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                        <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                        <HeaderStyle BackColor="Navy" Font-Bold="True" ForeColor="#E7E7FF" HorizontalAlign="Center" />
                    </asp:GridView>
                    <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:MyServiceDBConnectionString %>"
                        DeleteCommand="DELETE FROM [派修登记] WHERE [派修编号] = @派修编号" InsertCommand="INSERT INTO [派修登记] ([维修编号], [派修员工], [派修日期], [补充说明]) VALUES (@维修编号, @派修员工, @派修日期, @补充说明)"
                        SelectCommand="SELECT * FROM [派修登记] WHERE (维修编号 NOT IN(SELECT 维修编号 FROM 完修登记))  AND (维修编号 NOT IN(SELECT 维修编号 FROM 签收登记))" UpdateCommand="UPDATE [派修登记] SET [维修编号] = @维修编号, [派修员工] = @派修员工, [派修日期] = @派修日期, [补充说明] = @补充说明 WHERE [派修编号] = @派修编号">
                        <DeleteParameters>
                            <asp:Parameter Name="派修编号" Type="Int32" />
                        </DeleteParameters>
                        <UpdateParameters>
                            <asp:ControlParameter ControlID="TextBox2" Name="维修编号" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="DropDownList1" Name="派修员工" PropertyName="SelectedValue"
                                Type="String" />
                            <asp:ControlParameter ControlID="TextBox9" Name="派修日期" PropertyName="Text" Type="DateTime" />
                            <asp:ControlParameter ControlID="TextBox18" Name="补充说明" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox1" Name="派修编号" PropertyName="Text" Type="Int32" />
                        </UpdateParameters>
                        <InsertParameters>
                            <asp:ControlParameter ControlID="TextBox2" Name="维修编号" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="DropDownList1" Name="派修员工" PropertyName="SelectedValue"
                                Type="String" />
                            <asp:ControlParameter ControlID="TextBox9" Name="派修日期" PropertyName="Text" Type="DateTime" />
                            <asp:ControlParameter ControlID="TextBox18" Name="补充说明" PropertyName="Text" Type="String" />
                        </InsertParameters>
                    </asp:SqlDataSource>
                </asp:Panel>
            </td>
        </tr>
    </table>
</asp:Content>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -