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

📄 commodity_open.aspx

📁 该商品销售管理系统是一个基于WEB的适应于小型企业的管理系统!可以实现商品基本信息的查询。添加
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Commodity_open.aspx.cs" Inherits="_Default" %>

<!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>
<script language="javascript" type="text/javascript">
// <!CDATA[

function replaceCommodity_onclick() {

}

// ]]>
</script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div style="text-align: center">
            &nbsp;<table style="border-right: #003399 thin solid; border-top: #003399 thin solid; border-left: #003399 thin solid; border-bottom: #003399 thin solid; border-collapse: collapse; font-size: smaller;">
                <tr>
                    <td colspan="2" style="font: caption; vertical-align: middle; height: 67px; background-color: #003399;
                        text-align: center">
                        <span style="font-size: 10pt; color: white; background-color: #003399">修改商品信息</span></td>
                </tr>
                <tr>
                    <td style="width: 110px; height: 30px; text-align: right; border-right: #003399 thin solid; border-top: #003399 thin solid; border-left: #003399 thin solid; border-bottom: #003399 thin solid; border-collapse: collapse;">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
                            ErrorMessage="商品名称不能为空">*</asp:RequiredFieldValidator>
                        <asp:Label ID="CommodityName" runat="server" Text="商品名称:"></asp:Label></td>
                    <td style="width: 127px; height: 30px; text-align: left; border-right: #003399 thin solid; border-top: #003399 thin solid; border-left: #003399 thin solid; border-bottom: #003399 thin solid; border-collapse: collapse;">
                        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        </td>
                </tr>
                <tr>
                    <td style="width: 110px; height: 30px; text-align: right; border-right: #003399 thin solid; border-top: #003399 thin solid; border-left: #003399 thin solid; border-bottom: #003399 thin solid; border-collapse: collapse;">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox2"
                            ErrorMessage="商品简称不能为空">*</asp:RequiredFieldValidator>
                        <asp:Label ID="ShortName" runat="server" Text="商品简称:"></asp:Label></td>
                    <td style="width: 127px; height: 30px; text-align: left; border-right: #003399 thin solid; border-top: #003399 thin solid; border-left: #003399 thin solid; border-bottom: #003399 thin solid; border-collapse: collapse;">
                        <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                        </td>
                </tr>
                <tr>
                    <td style="width: 110px; height: 30px; text-align: right; border-right: #003399 thin solid; border-top: #003399 thin solid; border-left: #003399 thin solid; border-bottom: #003399 thin solid; border-collapse: collapse;">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBox3"
                            ErrorMessage="产地不能为空">*</asp:RequiredFieldValidator>
                        <asp:Label ID="ProducePlace" runat="server" Text="产地:"></asp:Label></td>
                    <td style="width: 127px; height: 30px; text-align: left; border-right: #003399 thin solid; border-top: #003399 thin solid; border-left: #003399 thin solid; border-bottom: #003399 thin solid; border-collapse: collapse;">
                        <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                        </td>
                </tr>
                <tr>
                    <td style="width: 110px; height: 30px; text-align: right; border-right: #003399 thin solid; border-top: #003399 thin solid; border-left: #003399 thin solid; border-bottom: #003399 thin solid; border-collapse: collapse;">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TextBox4"
                            ErrorMessage="单位不能为空">*</asp:RequiredFieldValidator>
                        <asp:Label ID="Unit" runat="server" Text="单位:"></asp:Label></td>
                    <td style="width: 127px; height: 30px; text-align: left; border-right: #003399 thin solid; border-top: #003399 thin solid; border-left: #003399 thin solid; border-bottom: #003399 thin solid; border-collapse: collapse;">
                        <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
                        </td>
                </tr>
                <tr>
                    <td style="width: 110px; height: 30px; text-align: right; border-right: #003399 thin solid; border-top: #003399 thin solid; border-left: #003399 thin solid; border-bottom: #003399 thin solid; border-collapse: collapse;">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="TextBox5"
                            ErrorMessage="规格不能为空">*</asp:RequiredFieldValidator>
                        <asp:Label ID="Specs" runat="server" Text="规格:"></asp:Label></td>
                    <td style="width: 127px; height: 30px; text-align: left; border-right: #003399 thin solid; border-top: #003399 thin solid; border-left: #003399 thin solid; border-bottom: #003399 thin solid; border-collapse: collapse;">
                        <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
                        </td>
                </tr>
                <tr>
                    <td style="width: 110px; height: 30px; text-align: right; border-right: #003399 thin solid; border-top: #003399 thin solid; border-left: #003399 thin solid; border-bottom: #003399 thin solid; border-collapse: collapse;">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="TextBox6"
                            ErrorMessage="批号不能为空">*</asp:RequiredFieldValidator>
                        <asp:Label ID="PassNumber" runat="server" Text="批号:"></asp:Label></td>
                    <td style="width: 127px; height: 30px; text-align: left; border-right: #003399 thin solid; border-top: #003399 thin solid; border-left: #003399 thin solid; border-bottom: #003399 thin solid; border-collapse: collapse;">
                        <asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
                        </td>
                </tr>
                <tr>
                    <td style="width: 110px; height: 30px; text-align: right; border-right: #003399 thin solid; border-top: #003399 thin solid; border-left: #003399 thin solid; border-bottom: #003399 thin solid; border-collapse: collapse;">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="TextBox7"
                            ErrorMessage="标准批号不能为空">*</asp:RequiredFieldValidator>
                        <asp:Label ID="PassList" runat="server" Text="批准文号:"></asp:Label></td>
                    <td style="width: 127px; height: 30px; text-align: left;">
                        <asp:TextBox ID="TextBox7" runat="server"></asp:TextBox>
                        </td>
                </tr>
                <tr>
                    <td style="width: 110px; height: 30px; text-align: right; border-right: #003399 thin solid; border-top: #003399 thin solid; border-left: #003399 thin solid; border-bottom: #003399 thin solid; border-collapse: collapse;">
                        <asp:Label ID="CompanyID" runat="server" Text="供应商:"></asp:Label></td>
                    <td style="width: 127px; height: 30px; text-align: left; border-right: #003399 thin solid; border-top: #003399 thin solid; border-left: #003399 thin solid; border-bottom: #003399 thin solid; border-collapse: collapse;">
                        <asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="SqlDataSource1"
                            DataTextField="CompanyName" DataValueField="id">
                        </asp:DropDownList><asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:db_sellConnectionString4 %>"
                            SelectCommand="SELECT [id], [CompanyName] FROM [tb_Company] ORDER BY [id]" DeleteCommand="DELETE FROM [tb_Company] WHERE [id] = @original_id" InsertCommand="INSERT INTO [tb_Company] ([CompanyName]) VALUES (@CompanyName)" OldValuesParameterFormatString="original_{0}" UpdateCommand="UPDATE [tb_Company] SET [CompanyName] = @CompanyName WHERE [id] = @original_id">
                            <DeleteParameters>
                                <asp:Parameter Name="original_id" Type="Int32" />
                            </DeleteParameters>
                            <UpdateParameters>
                                <asp:Parameter Name="CompanyName" Type="String" />
                                <asp:Parameter Name="original_id" Type="Int32" />
                            </UpdateParameters>
                            <InsertParameters>
                                <asp:Parameter Name="CompanyName" Type="String" />
                            </InsertParameters>
                        </asp:SqlDataSource>
                        
                    </td>
                </tr>
                <tr>
                    <td style="width: 110px; height: 68px; text-align: right; border-right: #003399 thin solid; border-top: #003399 thin solid; border-left: #003399 thin solid; border-bottom: #003399 thin solid; border-collapse: collapse;">
                        <asp:Label ID="Remark" runat="server" Text="备注:"></asp:Label></td>
                    <td style="width: 127px; height: 68px; border-right: #003399 thin solid; border-top: #003399 thin solid; border-left: #003399 thin solid; border-bottom: #003399 thin solid; border-collapse: collapse;">
                        <asp:TextBox ID="TextBox8" runat="server" Height="55px" TextMode="MultiLine" Width="331px"></asp:TextBox>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td colspan="2" style="height: 40px; vertical-align: middle; text-align: center;">
                        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
                            ShowSummary="False" />
                        <asp:Button ID="AlertCommodity" runat="server" OnClick="AlertCommodity_Click" Text="修改" />
                        &nbsp;
                        <input id="replaceCommodity" type="reset" value="重置" onclick="return replaceCommodity_onclick()" />&nbsp;
                        &nbsp;<asp:Button ID="closeCommodity" runat="server" Text="关闭" OnClick="closeCommodity_Click" /></td>
                </tr>
            </table>
        </div>
    
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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