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

📄 partbaseform.aspx

📁 ASP.NET 2.0 C# +MYSQL 家电维修管理系统 功能还算齐全
💻 ASPX
字号:
<%--文件名:PartBaseForm.aspx--%>
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="PartBaseForm.aspx.cs" Inherits="PartManage_PartBaseForm" 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="TextBox12" runat="server" Width="211px">%%</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="83px"></asp:TextBox>
                配件名称:<asp:TextBox ID="TextBox2" runat="server" Width="119px"></asp:TextBox>
                配件别名:
                <asp:TextBox ID="TextBox3" runat="server" Width="105px">暂无</asp:TextBox><br />
                &nbsp;规格型号:<asp:TextBox ID="TextBox4" runat="server" Width="136px"></asp:TextBox>
                适用机型:<asp:TextBox ID="TextBox5" runat="server" Width="155px">通用</asp:TextBox>
                计量单位:<asp:TextBox ID="TextBox6" runat="server" Width="22px">个</asp:TextBox><br />
                &nbsp;累计入库量:<asp:TextBox ID="TextBox7" runat="server" Width="44px">0</asp:TextBox>
                累计领用量:<asp:TextBox ID="TextBox8" runat="server" Width="48px">0</asp:TextBox>
                建议采购价:<asp:TextBox ID="TextBox9" runat="server" Width="47px">0</asp:TextBox>
                建议销售价:<asp:TextBox ID="TextBox10" runat="server" Width="46px">0</asp:TextBox><br />
                &nbsp;补充说明:<asp:TextBox ID="TextBox11" runat="server" Width="313px">暂无</asp:TextBox>
                <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="String" />
                            <asp:ControlParameter ControlID="TextBox5" Name="适用机型" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox6" Name="计量单位" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox7" Name="累计入库量" PropertyName="Text" Type="Double" />
                            <asp:ControlParameter ControlID="TextBox8" Name="累计领用量" PropertyName="Text" Type="Double" />
                            <asp:ControlParameter ControlID="TextBox9" Name="建议采购价" PropertyName="Text" Type="Double" />
                            <asp:ControlParameter ControlID="TextBox10" Name="建议销售价" PropertyName="Text" Type="Double" />
                            <asp:ControlParameter ControlID="TextBox11" Name="补充说明" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox1" Name="配件编号" PropertyName="Text" Type="String" />
                        </UpdateParameters>
                        <SelectParameters>
                            <asp:ControlParameter ControlID="TextBox12" 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="String" />
                            <asp:ControlParameter ControlID="TextBox5" Name="适用机型" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox6" Name="计量单位" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox7" Name="累计入库量" PropertyName="Text" Type="Double" />
                            <asp:ControlParameter ControlID="TextBox8" Name="累计领用量" PropertyName="Text" Type="Double" />
                            <asp:ControlParameter ControlID="TextBox9" Name="建议采购价" PropertyName="Text" Type="Double" />
                            <asp:ControlParameter ControlID="TextBox10" Name="建议销售价" PropertyName="Text" Type="Double" />
                            <asp:ControlParameter ControlID="TextBox11" 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="1000px">
                        <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="适用机型" />
                            <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:Panel>
            </td>
        </tr>
    </table>
</asp:Content>

⌨️ 快捷键说明

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