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

📄 priceform.aspx

📁 ASP.NET 2.0 C# +MYSQL 家电维修管理系统 功能还算齐全
💻 ASPX
字号:
<%--文件名:PriceForm.aspx--%>
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="PriceForm.aspx.cs" Inherits="BaseManage_PriceForm" 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="TextBox6" runat="server" Width="151px">%%</asp:TextBox>
                <asp:Button ID="Button3" runat="server" Text="查询" Width="70px" />
                <asp:Button ID="Button4" runat="server" OnClick="Button4_Click" Text="打印" Width="70px" /></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" Width="58px"></asp:TextBox>
                维修类别:<asp:TextBox ID="TextBox2" runat="server" Width="75px"></asp:TextBox>
                维修项目:<asp:TextBox ID="TextBox3" runat="server" Width="181px"></asp:TextBox><br />
                &nbsp;维修报价(元):<asp:TextBox ID="TextBox4" runat="server" Width="40px">0</asp:TextBox>
                补充说明:<asp:TextBox ID="TextBox5" runat="server" Width="164px">暂无</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" />
            </td>
        </tr>
        <tr>
            <td style="overflow: auto; width: 550px; height: 103px; background-color: gainsboro">
                <asp:Panel ID="Panel1" runat="server" Height="250px" ScrollBars="Auto" Width="555px">
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MyServiceDBConnectionString %>"
                        DeleteCommand="DELETE FROM [维修报价] WHERE [报价编号] = @报价编号" InsertCommand="INSERT INTO [维修报价] ([报价编号], [维修类别], [维修项目], [维修报价], [补充说明]) VALUES (@报价编号, @维修类别, @维修项目, @维修报价, @补充说明)"
                        SelectCommand="SELECT * FROM [维修报价] WHERE ([报价编号] LIKE '%' + @报价编号 + '%')" UpdateCommand="UPDATE [维修报价] SET [维修类别] = @维修类别, [维修项目] = @维修项目, [维修报价] = @维修报价, [补充说明] = @补充说明 WHERE [报价编号] = @报价编号">
                        <DeleteParameters>
                            <asp:Parameter Name="报价编号" Type="String" />
                        </DeleteParameters>
                        <UpdateParameters>
                            <asp:ControlParameter ControlID="TextBox2" Name="维修类别" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox3" Name="维修项目" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox4" Name="维修报价" PropertyName="Text" Type="Double" />
                            <asp:ControlParameter ControlID="TextBox5" Name="补充说明" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox1" Name="报价编号" PropertyName="Text" Type="String" />
                        </UpdateParameters>
                        <SelectParameters>
                            <asp:ControlParameter ControlID="TextBox6" Name="报价编号" PropertyName="Text" Type="String" />
                        </SelectParameters>
                        <InsertParameters>
                            <asp:ControlParameter ControlID="TextBox1" Name="报价编号" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox2" Name="维修类别" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox3" Name="维修项目" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox4" Name="维修报价" PropertyName="Text" Type="Double" />
                            <asp:ControlParameter ControlID="TextBox5" Name="补充说明" PropertyName="Text" Type="String" />
                        </InsertParameters>
                    </asp:SqlDataSource>
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White"
                        BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1"
                        DataKeyNames="报价编号" DataSourceID="SqlDataSource1" Font-Names="宋体" Font-Size="Small"
                        GridLines="None" OnRowCreated="GridView1_RowCreated" OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
                        Width="800px">
                        <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="报价编号" 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:Panel>
            </td>
        </tr>
    </table>
</asp:Content>

⌨️ 快捷键说明

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