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

📄 company_add.aspx

📁 该商品销售管理系统是一个基于WEB的适应于小型企业的管理系统!可以实现商品基本信息的查询。添加
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Company_add.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 id="Head1" runat="server">
    <title>无标题页</title>
</head>
<body style="text-align: center">
    <form id="form1" runat="server">
    <div>
        <span style="font-family: 宋体"><span style="font-size: 10pt; color: #990000">基本信息→添加公司信息<br />
        </span></span>
        <table style="border-right: #003399 1px solid; border-top: #003399 1px solid; border-left: #003399 1px solid;
            cursor: auto; border-bottom: #003399 1px solid; border-collapse: collapse; text-align: center;">
            <tr>
                <td colspan="3" style="border-right: #003399 thin solid; border-top: #003399 thin solid;
                    border-left: #003399 thin solid; color: white; border-bottom: #003399 thin solid; height: 47px;
                    background-color: #003399; text-align: center">
                    <span style="font-size: 10pt; font-family: 宋体">添加公司信息</span></td>
            </tr>
            <tr>
                <td style="border-right: #003399 1px solid; border-top: #003399 1px solid; border-left: #003399 1px solid;
                    width: 100px; border-bottom: #003399 1px solid; text-align: right; font-size: small;">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="CompanyName"
                        ErrorMessage="公司名称不能为空">*</asp:RequiredFieldValidator>公司名称:</td>
                <td colspan="2" style="border-right: #003399 1px solid; border-top: #003399 1px solid;
                    border-left: #003399 1px solid; border-bottom: #003399 1px solid; text-align: left;">
                    <asp:TextBox ID="CompanyName" runat="server" Width="231px"></asp:TextBox>&nbsp;
                </td>
            </tr>
            <tr>
                <td style="border-right: #003399 1px solid; border-top: #003399 1px solid; border-left: #003399 1px solid;
                    width: 100px; border-bottom: #003399 1px solid; text-align: right; font-size: small;">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="CompanyShort"
                        ErrorMessage="公司简称不能为空">*</asp:RequiredFieldValidator>公司简称:</td>
                <td colspan="2" style="border-right: #003399 1px solid; border-top: #003399 1px solid;
                    border-left: #003399 1px solid; border-bottom: #003399 1px solid; text-align: left;">
                    <asp:TextBox ID="CompanyShort" runat="server" Width="231px"></asp:TextBox>
                    </td>
            </tr>
            <tr>
                <td style="border-right: #003399 1px solid; border-top: #003399 1px solid; border-left: #003399 1px solid;
                    width: 100px; border-bottom: #003399 1px solid; text-align: right; font-size: small;">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="CompanyAddress"
                        ErrorMessage="地址不能为空">*</asp:RequiredFieldValidator>地址:</td>
                <td colspan="2" style="border-right: #003399 1px solid; border-top: #003399 1px solid;
                    border-left: #003399 1px solid; border-bottom: #003399 1px solid; text-align: left;">
                    <asp:TextBox ID="CompanyAddress" runat="server" Width="231px"></asp:TextBox>
                    </td>
            </tr>
            <tr>
                <td style="border-right: #003399 1px solid; border-top: #003399 1px solid; border-left: #003399 1px solid;
                    width: 100px; border-bottom: #003399 1px solid; height: 21px; text-align: right; font-size: small;">
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="Postalcode"
                        ErrorMessage="请输入正确的邮政编码" ValidationExpression="\d{6}">*</asp:RegularExpressionValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="Postalcode"
                        ErrorMessage="邮政编码不能为空">*</asp:RequiredFieldValidator>邮政编码:</td>
                <td colspan="2" style="border-right: #003399 1px solid; border-top: #003399 1px solid;
                    border-left: #003399 1px solid; border-bottom: #003399 1px solid; height: 21px; text-align: left; font-size: small;">
                    <asp:TextBox ID="Postalcode" runat="server"></asp:TextBox>&nbsp;
                    </td>
            </tr>
            <tr>
                <td style="border-right: #003399 1px solid; border-top: #003399 1px solid; border-left: #003399 1px solid;
                    width: 100px; border-bottom: #003399 1px solid; height: 26px; text-align: right; font-size: small;">
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="Tel"
                        ErrorMessage="请输入正确的电话号码" ValidationExpression="(\d{3}-\d{8}|\d{4}-\d{7})|(^((\(\d{3}\))|(\d{3}\-))?13\d{9}|15[3689]\d{8}$)" style="font-size: small">*</asp:RegularExpressionValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="Tel"
                        ErrorMessage="联系电话不能为空">*</asp:RequiredFieldValidator>联系电话:</td>
                <td colspan="2" style="border-right: #003399 1px solid; border-top: #003399 1px solid;
                    border-left: #003399 1px solid; border-bottom: #003399 1px solid; height: 26px; text-align: left;">
                    <asp:TextBox ID="Tel" runat="server" Width="231px"></asp:TextBox>&nbsp;
                    </td>
            </tr>
            <tr>
                <td style="border-right: #003399 1px solid; border-top: #003399 1px solid; border-left: #003399 1px solid;
                    width: 100px; border-bottom: #003399 1px solid; text-align: right; font-size: small;">
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="Fax"
                        ErrorMessage="请输入正确的传真号码" ValidationExpression="((\(\d{3}\)|\d{3}-)?\d{8})|((\(\d{4}\)|\d{4}-)?\d{7})" style="font-size: small">*</asp:RegularExpressionValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="Fax"
                        ErrorMessage="传真不能为空">*</asp:RequiredFieldValidator>传真:</td>
                <td colspan="2" style="border-right: #003399 1px solid; border-top: #003399 1px solid;
                    border-left: #003399 1px solid; border-bottom: #003399 1px solid; text-align: left;">
                    <asp:TextBox ID="Fax" runat="server" Width="231px"></asp:TextBox>&nbsp;
                    </td>
            </tr>
            <tr>
                <td style="border-right: #003399 1px solid; border-top: #003399 1px solid; border-left: #003399 1px solid;
                    width: 100px; border-bottom: #003399 1px solid; text-align: right; font-size: small;">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="Linkman"
                        ErrorMessage="联系人不能为空">*</asp:RequiredFieldValidator>联系人:</td>
                <td colspan="2" style="border-right: #003399 1px solid; border-top: #003399 1px solid;
                    border-left: #003399 1px solid; border-bottom: #003399 1px solid; text-align: left;">
                    <asp:TextBox ID="Linkman" runat="server" Width="231px"></asp:TextBox>
                    </td>
            </tr>
            <tr>
                <td style="border-right: #003399 1px solid; border-top: #003399 1px solid; border-left: #003399 1px solid;
                    width: 100px; border-bottom: #003399 1px solid; height: 26px; text-align: right; font-size: small;">
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="Email"
                        ErrorMessage="请输入正确的E-mail" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" style="font-size: small">*</asp:RegularExpressionValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="Email"
                        ErrorMessage="E-mail不能为空">*</asp:RequiredFieldValidator>E-mail:</td>
                <td colspan="2" style="border-right: #003399 1px solid; border-top: #003399 1px solid;
                    border-left: #003399 1px solid; border-bottom: #003399 1px solid; height: 26px; text-align: left;">
                    <asp:TextBox ID="Email" runat="server" Width="231px"></asp:TextBox>&nbsp;
                    </td>
            </tr>
            <tr>
                <td style="border-right: #003399 1px solid; border-top: #003399 1px solid; border-left: #003399 1px solid;
                    width: 100px; border-bottom: #003399 1px solid; text-align: right; font-size: small;">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="Bank"
                        ErrorMessage="开户银行不能为空">*</asp:RequiredFieldValidator>开户银行:</td>
                <td colspan="2" style="border-right: #003399 1px solid; border-top: #003399 1px solid;
                    border-left: #003399 1px solid; border-bottom: #003399 1px solid; text-align: left;">
                    <asp:TextBox ID="Bank" runat="server" Width="231px"></asp:TextBox>
                    </td>
            </tr>
            <tr>
                <td style="width: 100px; text-align: right; border-right: #003399 1px solid; border-top: #003399 1px solid; border-left: #003399 1px solid; border-bottom: #003399 1px solid; font-size: small;">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="BankAccount"
                        ErrorMessage="银行帐号不能为空">*</asp:RequiredFieldValidator>银行帐号:</td>
                <td colspan="2" style="border-right: #003399 1px solid; border-top: #003399 1px solid; border-left: #003399 1px solid; border-bottom: #003399 1px solid; text-align: left;">
                    <asp:TextBox ID="BankAccount" runat="server" Width="231px"></asp:TextBox>
                    </td>
            </tr>
            <tr>
                <td style="width: 100px; text-align: right; border-right: #003399 1px solid; border-top: #003399 1px solid; border-left: #003399 1px solid; border-bottom: #003399 1px solid; font-size: small;">
                    所属类型:</td>
                <td colspan="2" style="border-right: #003399 1px solid; border-top: #003399 1px solid; border-left: #003399 1px solid; border-bottom: #003399 1px solid; text-align: left;">
                    <asp:DropDownList ID="CompanyType" runat="server">
                        <asp:ListItem>供应商</asp:ListItem>
                        <asp:ListItem>用户</asp:ListItem>
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td colspan="2" style="height: 31px; text-align: right; border-top: #003399 1px solid; border-left: #003399 1px solid; border-bottom: #003399 1px solid; border-right-width: 1px; border-right-color: #003399;">
                    <asp:Button ID="btnAdd" runat="server" Text="添加" Width="89px" OnClick="btnAdd_Click" style="left: 112px; position: relative; top: -2px" /></td>
                <td style="width: 299px; height: 31px; border-right: #003399 1px solid; border-top: #003399 1px solid; border-bottom: #003399 1px solid; border-left-width: 1px; border-left-color: #003399; text-align: left;">
                    &nbsp; &nbsp;&nbsp; &nbsp;
                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
                        ShowSummary="False" Style="left: -146px; position: relative; top: 0px" Width="139px" />
                    <input id="Reset1" style="width: 89px; left: 103px; position: relative; top: -2px;" type="reset" value="重置" />
                    &nbsp; &nbsp;
                </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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