📄 productdata.aspx
字号:
<%@ Page language="c#" Codebehind="productData.aspx.cs" AutoEventWireup="false" Inherits="SCard.admin.productData" ResponseEncoding="utf-8" %>
<%@ Register TagPrefix="cc1" Namespace="DevCenter" Assembly="WebPager" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>仓库管理</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<LINK href="style.css" type="text/css" rel="stylesheet">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<table align='center' width='100%' cellpadding='4' cellspacing='1' border='1' class='grid fixed'>
<tr>
<td width='140' class='category'>商品名称:</td>
<td class='category' colspan=4>
<asp:Label id="lblPName" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td align=right>库 存:</td>
<td align=center><asp:Label id="lblPStock" runat="server"></asp:Label></td>
<td colspan=3>
<asp:Button id="btnCheck" Text="同步库存" Runat="server"></asp:Button>
<font class='t1'>[定时同步库存信息,可以使系统的运作更加良好]</font>
</td>
</tr>
<tr>
<td align=right>当前售出量:</td>
<td align=center><asp:Label id="lblNowSellNum" runat="server">0</asp:Label></td>
<td align=right>累积售出量:</td>
<td align=center><asp:Label id="lblPSellNum" runat="server"></asp:Label></td>
<td><asp:Button id="btnResetPSellNum" Text="重新累积" Runat="server"></asp:Button></td>
</tr>
<tr>
<td class='category'>条件查询:</td>
<td colspan=4>
<asp:TextBox id="txtSelect" Width=150 runat="server"></asp:TextBox>
<asp:DropDownList id="ddlSelect" Width=75 runat="server">
<asp:ListItem Value="0" Selected="True">编号</asp:ListItem>
<asp:ListItem Value="1">卡号</asp:ListItem>
</asp:DropDownList>
<asp:Button id="btnSelect" runat="server" Text="查询"></asp:Button>
</td>
</tr>
<tr>
<td class='category'>状态筛选:</td>
<td colspan=4>
<asp:DropDownList id="ddlFiltrate" Width=150 runat="server">
<asp:ListItem Value="0" Selected="True">出售中</asp:ListItem>
<asp:ListItem Value="1">已售出</asp:ListItem>
<asp:ListItem Value="2">停止出售</asp:ListItem>
</asp:DropDownList>
<asp:Button id="btnFiltrate" runat="server" Text="筛选"></asp:Button>
</td>
</tr>
<tr>
<td></td>
<td colspan=4><INPUT type="button" onclick="self.close()" value="关闭"></td>
</tr>
</table>
<br>
<div align=right>
<font class='t1'>[注意:修改卡的信息要谨慎,以免引起系统数据冲突,尽量不要修改]</font>
</div>
<asp:DataGrid id="DataGrid1" runat="server" AutoGenerateColumns="False" Width="100%" cellpadding='4'
cellspacing='1' CssClass='grid fixed'>
<HeaderStyle HorizontalAlign="Center" CssClass="category"></HeaderStyle>
<ItemStyle HorizontalAlign=Center></ItemStyle>
<Columns>
<asp:BoundColumn ReadOnly="True" DataField="PLID" HeaderText="编号">
<HeaderStyle ForeColor=#0F83EC Width=120px></HeaderStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="CardNum" HeaderText="卡号">
<HeaderStyle ForeColor=#0F83EC></HeaderStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="CardPassword" HeaderText="密码">
<HeaderStyle ForeColor=#0F83EC Width=170px></HeaderStyle>
</asp:BoundColumn>
<asp:TemplateColumn HeaderText="状态">
<HeaderStyle ForeColor=#0F83EC Width=100></HeaderStyle>
<ItemTemplate>
<asp:DropDownList ID="Dropdownlist1" Enabled=False SelectedIndex='<%#DataBinder.Eval(Container.DataItem,"CardState")%>' Runat="server">
<asp:ListItem Value="0">出售中</asp:ListItem>
<asp:ListItem Value="1">已售出</asp:ListItem>
<asp:ListItem Value="2">停止出售</asp:ListItem>
</asp:DropDownList>
</ItemTemplate>
<EditItemTemplate>
<asp:DropDownList ID="ddlCardState" SelectedIndex='<%#DataBinder.Eval(Container.DataItem,"CardState")%>' Runat="server">
<asp:ListItem Value="0">出售中</asp:ListItem>
<asp:ListItem Value="1">已售出</asp:ListItem>
<asp:ListItem Value="2">停止出售</asp:ListItem>
</asp:DropDownList>
</EditItemTemplate>
</asp:TemplateColumn>
<asp:EditCommandColumn ButtonType="LinkButton" HeaderText="修改" UpdateText="更新" CancelText="取消" EditText="编辑">
<HeaderStyle ForeColor=#0F83EC Width=80px></HeaderStyle>
</asp:EditCommandColumn>
<asp:ButtonColumn Text="删除" CommandName="Delete" HeaderText="删除">
<HeaderStyle ForeColor=#0F83EC Width=40px></HeaderStyle>
</asp:ButtonColumn>
</Columns>
</asp:DataGrid>
<cc1:OleDbPager id="OleDbPager1" runat="server" PagingMode="Cached" PagerStyle="NextPrev" CacheDuration="0"></cc1:OleDbPager>
</form>
<br><br>
<br><br>
<br><br>
</body>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -