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

📄 transistorform.aspx

📁 ASP.NET 2.0 C# +MYSQL 家电维修管理系统 功能还算齐全
💻 ASPX
字号:
<%--文件名:TransistorForm.aspx--%>
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="TransistorForm.aspx.cs" Inherits="PartManage_TransistorForm" 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: 554px; font-family: 宋体; height: 17px;
                background-color: darkseagreen">
                &nbsp;请输入需要查询晶体管的型号:<asp:TextBox ID="TextBox12" runat="server" Width="278px">%%</asp:TextBox>
                <asp:Button ID="Button3" runat="server" Text="查询" Width="71px" /></td>
        </tr>
        <tr>
            <td align="left" style="font-size: 0.8em; width: 554px; font-family: 宋体; height: 17px;
                background-color: lightseagreen">
                &nbsp;自动编号:<asp:TextBox ID="TextBox1" runat="server" BackColor="Silver" ReadOnly="True"
                    Width="62px"></asp:TextBox>
                型号:<asp:TextBox ID="TextBox2" runat="server" Width="147px"></asp:TextBox>
                结构:<asp:TextBox ID="TextBox3" runat="server" Width="50px"></asp:TextBox>
                CB耐压:<asp:TextBox ID="TextBox4" runat="server" Width="44px"></asp:TextBox><br />
                &nbsp;最大电流:<asp:TextBox ID="TextBox5" runat="server" Width="63px"></asp:TextBox>
                功率一:<asp:TextBox ID="TextBox6" runat="server" Width="73px"></asp:TextBox>
                功率二:<asp:TextBox ID="TextBox7" runat="server" Width="65px"></asp:TextBox>
                HPE最大值:<asp:TextBox ID="TextBox8" runat="server" Width="55px"></asp:TextBox><br />
                &nbsp;频率:<asp:TextBox ID="TextBox9" runat="server" Width="59px"></asp:TextBox>
                外型:<asp:TextBox ID="TextBox10" runat="server" Width="59px"></asp:TextBox>
                排列:<asp:TextBox ID="TextBox11" runat="server" Width="115px"></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" />&nbsp;</td>
        </tr>
        <tr>
            <td style="overflow: auto; width: 554px; 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 [晶体管手册] ([型号], [结构], [CB耐压], [最大电流], [功率一], [功率二], [HPE最大值], [频率], [外型], [排列]) VALUES (@型号, @结构, @CB耐压, @最大电流, @功率一, @功率二, @HPE最大值, @频率, @外型, @排列)" SelectCommand="SELECT * FROM [晶体管手册] WHERE ([型号] LIKE '%' + @型号 + '%')" UpdateCommand="UPDATE [晶体管手册] SET [型号] = @型号, [结构] = @结构, [CB耐压] = @CB耐压, [最大电流] = @最大电流, [功率一] = @功率一, [功率二] = @功率二, [HPE最大值] = @HPE最大值, [频率] = @频率, [外型] = @外型, [排列] = @排列 WHERE [自动编号] = @自动编号">
                        <DeleteParameters>
                            <asp:Parameter Name="自动编号" Type="Int32" />
                        </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="CB耐压" 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="String" />
                            <asp:ControlParameter ControlID="TextBox8" Name="HPE最大值" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox9" Name="频率" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox10" Name="外型" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox11" Name="排列" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox1" Name="自动编号" PropertyName="Text" Type="Int32" />
                        </UpdateParameters>
                        <SelectParameters>
                            <asp:ControlParameter ControlID="TextBox12" Name="型号" PropertyName="Text" Type="String" />
                        </SelectParameters>
                        <InsertParameters>
                            <asp:ControlParameter ControlID="TextBox2" Name="型号" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox3" Name="结构" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox4" Name="CB耐压" 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="String" />
                            <asp:ControlParameter ControlID="TextBox8" Name="HPE最大值" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox9" Name="频率" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox10" Name="外型" PropertyName="Text" Type="String" />
                            <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="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="自动编号" InsertVisible="False" ReadOnly="True"
                                SortExpression="自动编号" />
                            <asp:BoundField DataField="型号" HeaderText="型号" SortExpression="型号" />
                            <asp:BoundField DataField="结构" HeaderText="结构" SortExpression="结构" />
                            <asp:BoundField DataField="CB耐压" HeaderText="CB耐压" SortExpression="CB耐压" />
                            <asp:BoundField DataField="最大电流" HeaderText="最大电流" SortExpression="最大电流" />
                            <asp:BoundField DataField="功率一" HeaderText="功率一" SortExpression="功率一" />
                            <asp:BoundField DataField="功率二" HeaderText="功率二" SortExpression="功率二" />
                            <asp:BoundField DataField="HPE最大值" HeaderText="HPE最大值" SortExpression="HPE最大值" />
                            <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 + -