<%@ Page language="c#" Inherits="norke.admin.productData" ResponseEncoding="utf-8" CodeFile="productData.aspx.cs" %>
<%@ Register TagPrefix="cc1" Namespace="DevCenter" Assembly="WebPager" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
    <HEAD>
        <title>仓库管理--中国IT产品展销网 (产品展示，产品供应，产品求购，创业加盟，企业单位展示)</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>
        <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" onclick="btnCheck_Click"></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" onclick="btnResetPSellNum_Click"></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>&nbsp;&nbsp;
                        <asp:Button id="btnSelect" runat="server" Text="查询" onclick="btnSelect_Click"></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>&nbsp;&nbsp;
                        <asp:Button id="btnFiltrate" runat="server" Text="筛选" onclick="btnFiltrate_Click"></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="90%" 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:SqlPager id="SqlPager1" runat="server" PagingMode="Cached" PagerStyle="NextPrev" CacheDuration="0"></cc1:SqlPager>
        </form>
        
        <br><br>
        <br><br>
        <br><br>
    </body>
</HTML>
