📄 sellon.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SellOn.aspx.cs" Inherits="SellMag_SellOn" %>
<!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><link href="../style/css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<div>
<table border="0" cellpadding="0" cellspacing="0" style="width: 681px; height: 256px">
<tr>
<td colspan="2" align="center" style="height: 45px">
销售界面(可用于销售产品)</td>
</tr>
<tr>
<td width="257"> 请选择商品:</td>
<td width="583"> <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource1"
DataTextField="ProducesName" DataValueField="ProducesId" Width="155px">
</asp:DropDownList>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:csmagConnectionString %>"
SelectCommand="SELECT [ProducesId], [ProducesName] FROM [Produces]">
</asp:SqlDataSource>
</td>
</tr>
<tr>
<td style="height: 175px" colspan="2" valign="bottom"> 商品详细信息列表:<asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False"
BackColor="White" BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3"
CellSpacing="1" DataKeyNames="ProducesId" DataSourceID="SqlDataSource2" GridLines="None"
Height="1px" Width="591px" OnDataBound="DetailsView1_DataBound">
<FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
<EditRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
<RowStyle BackColor="#DEDFDE" ForeColor="Black" />
<PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
<Fields>
<asp:BoundField DataField="ProducesKinds" HeaderText="ProducesKinds" SortExpression="ProducesKinds" />
<asp:BoundField DataField="ProducesId" HeaderText="ProducesId" ReadOnly="True" SortExpression="ProducesId" />
<asp:BoundField DataField="ProducesKindId" HeaderText="ProducesKindId" SortExpression="ProducesKindId" />
<asp:BoundField DataField="ProducesName" HeaderText="ProducesName" SortExpression="ProducesName" />
<asp:BoundField DataField="ProducesGG" HeaderText="ProducesGG" SortExpression="ProducesGG" />
<asp:BoundField DataField="Discount" HeaderText="Discount" SortExpression="Discount" />
<asp:BoundField DataField="ProducesPrices" HeaderText="ProducesPrices" SortExpression="ProducesPrices" />
<asp:TemplateField HeaderText="现售价">
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Font-Size="XX-Large" Height="62px" Width="186px" BackColor="#FF8000" BorderColor="#FF8000" ForeColor="Black" ></asp:Label><span style="font-size:xx-large; color:Red">¥</span>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="ProducesCompany" HeaderText="ProducesCompany" SortExpression="ProducesCompany" />
<asp:BoundField DataField="ProducesMoreInfo" HeaderText="ProducesMoreInfo" SortExpression="ProducesMoreInfo" />
<asp:TemplateField HeaderText="现库存量">
<ItemTemplate>
<asp:Label ID="Label2" runat="server" Font-Size="XX-Large" Height="62px" Width="186px" BackColor="#FF8000" BorderColor="#FF8000" ForeColor="Black" ></asp:Label><span style="font-size:xx-large; color:Red">件</span>
</ItemTemplate>
</asp:TemplateField>
</Fields>
<HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
</asp:DetailsView>
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:csmagConnectionString %>"
SelectCommand="SELECT ProducesKind.ProducesKinds, Produces.* FROM Produces INNER JOIN ProducesKind ON Produces.ProducesKindId = ProducesKind.ProducesKindId where ProducesId=@ProducesId">
<SelectParameters>
<asp:ControlParameter ControlID="DropDownList1" Name="ProducesId" PropertyName="SelectedValue" />
</SelectParameters>
</asp:SqlDataSource>
</td>
</tr>
<tr>
<td style="height: 68px">
处理员工:</td>
<td style="height: 68px">
<asp:DropDownList ID="DropDownList2" runat="server" DataSourceID="SqlDataSource3"
DataTextField="WorkerName" DataValueField="WorkersListId" Width="160px">
</asp:DropDownList><asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:csmagConnectionString %>"
SelectCommand="SELECT [WorkersListId], [WorkerName] FROM [WorkersList]"></asp:SqlDataSource>
</td>
</tr>
<tr>
<td> 购买数量:</td>
<td> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> <asp:Button ID="Buy" runat="server" Text=" 购买" OnClick="Buy_Click" />
<a href="javascript:window.close()">取消</a></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -