📄 commodity_add.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Commodity_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 runat="server">
<title>无标题页</title>
<script language="javascript" type="text/javascript">
// <!CDATA[
function Reset1_onclick() {
}
// ]]>
</script>
</head>
<body>
<form id="form1" runat="server">
<div style="text-align: center">
<span style="font-size: 10pt; color: #990000; font-family: 宋体">基本信息→添加商品信息</span><br />
<table style="border-collapse: collapse">
<tr>
<td colspan="4" style="border-right: #003399 1px solid; border-top: #003399 1px solid;
font-size: small; border-left: #003399 1px solid; color: white; border-bottom: #003399 1px solid;
height: 47px; background-color: #003399; text-align: center">
添加商品信息</td>
</tr>
<tr>
<td style="border-right: #003399 1px solid; border-top: #003399 1px solid; font-size: small;
border-left: #003399 1px solid; width: 100px; border-bottom: #003399 1px solid;
height: 21px; text-align: right">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="CommodityName"
ErrorMessage="商品名称不能为空">*</asp:RequiredFieldValidator>商品名称:</td>
<td colspan="3" style="border-right: #003399 1px solid; border-top: #003399 1px solid;
font-size: small; border-left: #003399 1px solid; border-bottom: #003399 1px solid;
height: 21px; text-align: left">
<asp:TextBox ID="CommodityName" runat="server" ></asp:TextBox>
</td>
</tr>
<tr>
<td style="border-right: #003399 1px solid; border-top: #003399 1px solid; font-size: small;
border-left: #003399 1px solid; width: 100px; border-bottom: #003399 1px solid;
height: 21px; text-align: right">
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="ShortName"
ErrorMessage="商品简称不能为空">*</asp:RequiredFieldValidator>商品简称:</td>
<td colspan="3" style="border-right: #003399 1px solid; border-top: #003399 1px solid;
font-size: small; border-left: #003399 1px solid; border-bottom: #003399 1px solid;
height: 21px; text-align: left">
<asp:TextBox ID="ShortName" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td style="border-right: #003399 1px solid; border-top: #003399 1px solid; font-size: small;
border-left: #003399 1px solid; width: 100px; border-bottom: #003399 1px solid;
height: 21px; text-align: right">
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="ProducePlace"
ErrorMessage="产地不能为空">*</asp:RequiredFieldValidator>产地:</td>
<td colspan="3" style="border-right: #003399 1px solid; border-top: #003399 1px solid;
font-size: small; border-left: #003399 1px solid; border-bottom: #003399 1px solid;
height: 21px; text-align: left">
<asp:TextBox ID="ProducePlace" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td style="border-right: #003399 1px solid; border-top: #003399 1px solid; font-size: small;
border-left: #003399 1px solid; width: 100px; border-bottom: #003399 1px solid;
height: 21px; text-align: right">
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="Unit"
ErrorMessage="单位不能为空">*</asp:RequiredFieldValidator>单位:</td>
<td colspan="3" style="border-right: #003399 1px solid; border-top: #003399 1px solid;
font-size: small; border-left: #003399 1px solid; border-bottom: #003399 1px solid;
height: 21px; text-align: left">
<asp:TextBox ID="Unit" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td style="border-right: #003399 1px solid; border-top: #003399 1px solid; font-size: small;
border-left: #003399 1px solid; width: 100px; border-bottom: #003399 1px solid;
height: 21px; text-align: right">
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="Specs"
ErrorMessage="规格不能为空">*</asp:RequiredFieldValidator>规格:</td>
<td colspan="3" style="border-right: #003399 1px solid; border-top: #003399 1px solid;
font-size: small; border-left: #003399 1px solid; border-bottom: #003399 1px solid;
height: 21px; text-align: left">
<asp:TextBox ID="Specs" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td style="border-right: #003399 1px solid; border-top: #003399 1px solid; font-size: small;
border-left: #003399 1px solid; width: 100px; border-bottom: #003399 1px solid;
height: 21px; text-align: right">
<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="PassList"
ErrorMessage="批号不能为空">*</asp:RequiredFieldValidator>批号:</td>
<td colspan="3" style="border-right: #003399 1px solid; border-top: #003399 1px solid;
font-size: small; border-left: #003399 1px solid; border-bottom: #003399 1px solid;
height: 21px; text-align: left">
<asp:TextBox ID="PassNumber" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td style="border-right: #003399 1px solid; border-top: #003399 1px solid; font-size: small;
border-left: #003399 1px solid; width: 100px; border-bottom: #003399 1px solid;
height: 27px; text-align: right">
<asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="PassList"
ErrorMessage="批准文号不能为空">*</asp:RequiredFieldValidator>批准文号:</td>
<td colspan="3" style="border-right: #003399 1px solid; border-top: #003399 1px solid;
font-size: small; border-left: #003399 1px solid; border-bottom: #003399 1px solid;
height: 27px; text-align: left">
<asp:TextBox ID="PassList" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td style="border-right: #003399 1px solid; border-top: #003399 1px solid; font-size: small;
border-left: #003399 1px solid; width: 100px; border-bottom: #003399 1px solid;
text-align: right; height: 25px;">
供应商:</td>
<td colspan="3" style="border-right: #003399 1px solid; border-top: #003399 1px solid;
border-left: #003399 1px solid; border-bottom: #003399 1px solid; text-align: left; height: 25px;">
<asp:DropDownList ID="CompanyID" runat="server" DataSourceID="SqlDataSource1" DataTextField="CompanyName"
DataValueField="id" OnSelectedIndexChanged="CompanyID_SelectedIndexChanged"
Width="82px">
</asp:DropDownList></td>
</tr>
<tr>
<td rowspan="2" style="border-right: #003399 1px solid; border-top: #003399 1px solid;
font-size: small; border-left: #003399 1px solid; width: 100px; border-bottom: #003399 1px solid;
height: 52px; text-align: right">
备注:</td>
<td colspan="3" rowspan="2" style="border-right: #003399 1px solid; border-top: #003399 1px solid;
border-left: #003399 1px solid; border-bottom: #003399 1px solid; height: 52px">
<asp:TextBox ID="Remark" runat="server" Height="37px" Width="293px" TextMode="MultiLine"></asp:TextBox></td>
</tr>
<tr>
</tr>
<tr>
<td style="width: 100px; height: 1px">
</td>
<td style="width: 100px; height: 1px">
</td>
<td style="width: 100px; height: 1px">
</td>
<td style="width: 100px; height: 1px">
</td>
</tr>
<tr>
<td colspan="2" style="border-top-width: 1px; padding-right: 0px; border-left: #003399 1px solid;
border-top-color: #003399; margin-right: 0px; border-bottom: #003399 1px solid;
height: 26px; text-align: right; border-right-width: 1px; border-right-color: #003399">
<asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
ShowSummary="False" />
<asp:Button ID="btnAdd" runat="server" Height="24px" Text="添加" Width="69px" OnClick="btnAdd_Click" /></td>
<td colspan="2" style="border-top-width: 1px; border-right: #003399 1px solid; padding-left: 0px;
border-left-width: 1px; border-left-color: #003399; margin-left: 0px; border-top-color: #003399;
border-bottom: #003399 1px solid; height: 26px; text-align: left">
<input id="Reset1" style="width: 70px" type="reset" value="重置" /></td>
</tr>
</table>
</div>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:db_sellConnectionString %>"
SelectCommand="SELECT id, CompanyName, CompanyType FROM tb_Company WHERE (CompanyType = '供应商')">
</asp:SqlDataSource>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -