📄 warehouse.master
字号:
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Warehouse.master.cs" Inherits="Inventory_MasterPage" %>
<!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>
<form id="form1" runat="server">
<table style="width:100%" >
<tr>
<td align="left">
<a><img id="Img1" alt="北京爱丽士家居设计有限责任公司" src="../images/Logo.jpg" runat="server" /></a> <asp:SiteMapPath
ID="SiteMapPath1" runat="server">
</asp:SiteMapPath>
</td>
</tr>
<tr>
<td>
<div>
<!-- the content start -->
<table>
<tr>
<td colspan="6"><font color="red">注意:在录入或修改完成后,务必先要选择“保存”按钮,然后再关闭本页面 </font> </td>
</tr>
<tr>
<td align="center">
<asp:Label ID="LabelListName" runat="server" Text=""></asp:Label>
</td>
</tr>
<tr>
<td>
库:<asp:DropDownList ID="DropDownListWarehouse" runat="server" Width="100px" DataSourceID="SqlDataSourceWarehouses" DataTextField="WarehouseName" DataValueField="WarehouseID"/><span
style="color: #ff0000">*</span>
<asp:Label ID="LabelDate" runat="server" Text="时间:" /><asp:TextBox ID="TextBoxDate" runat="server"/><span
style="color: #ff0000">*</span>
<asp:Label ID="LabelListNumber" runat="server" Text="单号:" /> <asp:TextBox ID="TextBoxListNumber" runat="server"/><span
style="color: #ff0000">*</span>
<asp:Button ID="ButtonAddNew" runat="server" Text="增加一行明细" OnClick="ButtonAddNew_Click" />
<asp:Button ID="ButtonSave" runat="server" Text="保存" OnClick="ButtonSave_Click" />
<asp:Button ID="ButtonClose" runat="server" Text="关闭" OnClick="ButtonClose_Click" />
</td>
</tr>
<tr>
<td><asp:Label ID="LabelError" runat="server" ForeColor="Red"></asp:Label></td>
</tr>
<tr>
<td>
<asp:GridView ID="GridViewDetail" runat="server" AutoGenerateColumns="False" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" GridLines="Vertical" OnRowCommand="GridViewDetail_RowCommand" >
<EmptyDataTemplate>
<table id="ctl00_ContentPlaceHolder1_GridViewDetail" border="1" cellpadding="4" cellspacing="0"
rules="cols" style="border-top-width: 1px; border-left-width: 1px; border-left-color: #dedfde;
border-bottom-width: 1px; border-bottom-color: #dedfde; color: black; border-top-color: #dedfde;
border-collapse: collapse; background-color: white; border-right-width: 1px;
border-right-color: #dedfde">
<tr style="font-weight: bold; color: white; background-color: #6b696b">
<th scope="col">
产品名称</th>
<th scope="col">
产品型号</th>
<th scope="col">
产品颜色</th>
<th scope="col">
产品编码</th>
<th scope="col">
数量</th>
<th scope="col">
</th>
<th scope="col">
</th>
</tr>
<tr style="background-color: #f7f7de">
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
</tr>
</table>
</EmptyDataTemplate>
<FooterStyle BackColor="#CCCC99" />
<Columns>
<asp:BoundField DataField="ProductID" Visible="False" />
<asp:BoundField DataField="ProductName" HeaderText="产品名称" ReadOnly="True" />
<asp:BoundField DataField="ProductModule" HeaderText="产品型号" ReadOnly="True" />
<asp:BoundField DataField="ProductColor" HeaderText="产品颜色" ReadOnly="True" />
<asp:BoundField DataField="ProductCode" HeaderText="产品编码" ReadOnly="True" />
<asp:BoundField DataField="Quantity" HeaderText="数量" ReadOnly="True" />
<asp:ButtonField ButtonType="Button" CommandName="EditItem" Text="修改" />
<asp:ButtonField ButtonType="Button" CommandName="DeleteItem" Text="删除" />
</Columns>
<RowStyle BackColor="#F7F7DE" />
<SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
<HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>
</td>
</tr>
<tr>
<td>
<table>
<tr>
<td colspan="5" align="right">
<asp:Button ID="ButtonSave_AddNew" runat="server" OnClick="ButtonSave_AddNew_Click"
Text="保存并继续新增" />
<asp:Button ID="ButtonSaveItem" runat="server" Text="保存" OnClick="ButtonSaveItem_Click" /><asp:Button ID="ButtonCancle" runat="server" Text="取消" OnClick="ButtonCancle_Click" />
</td>
</tr>
<tr>
<td>
产品名称<asp:TextBox ID="TextBoxProductName" runat="server" Enabled="false"></asp:TextBox>
</td>
<td>
产品型号<asp:TextBox ID="TextBoxProductModule" runat="server" Enabled="false"></asp:TextBox>
</td>
<td>
产品颜色<asp:TextBox ID="TextBoxColor" runat="server" Enabled="false"></asp:TextBox>
</td>
<td>
产品编码(可输入)<asp:TextBox ID="TextBoxProductCode" runat="server"></asp:TextBox>
<span style="color: #ff0000">*</span></td>
<td>
数量(可输入)<asp:TextBox ID="TextBoxQuantity" runat="server"></asp:TextBox>
<span style="color: #ff0000">*</span></td>
</tr>
</table>
<asp:HiddenField ID="HiddenProductID" runat="server" />
</td>
</tr>
</table>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:DBConnectionString %>"
SelectCommand="SELECT [ProductID], [ProductTypeID], [ProductCode], [ProductName], [ProductColor], [ProductModule] FROM [tbl_Products]">
</asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDataSourceWarehouses" runat="server" ConnectionString="<%$ ConnectionStrings:DBConnectionString %>"
SelectCommand="SELECT [WarehouseID], [WarehouseName] FROM [tbl_Warehouse]"></asp:SqlDataSource>
<!-- the content end-->
</div>
</td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -