<%@ page language="C#" autoeventwireup="true" inherits="Admin_StockReport, ShopNum1Deploy" %>

<%@ Register assembly="ShopNum1.Control" namespace="ShopNum1.Control" tagprefix="cc1" %>

<!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>Untitled Page</title>
     <link type="text/css" rel="Stylesheet" href="css/index.css" /> 
<script type="text/javascript" language="javascript" src="../js/CommonJS.js"></script>
   
</head>
<body style="padding:0; background-image: url(images/Bg_right.gif); background-repeat:repeat;">
    <form id="form1" runat="server">
<%--<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>--%>&nbsp;
     <div class="navigator">【 库存报表 】</div>
     <div class="query">
    <table style="width:100%">
            <tr>
                <td align="right">
                    <asp:Label ID="LabelProductCategoryID" runat="server" Text="商品分类："></asp:Label>
                </td>
                <td>
                    <asp:DropDownList ID="DropDownListProductCategoryID" runat="server" CssClass="select1">
                    </asp:DropDownList>
                </td>
                <td align="right">
                    <asp:Label ID="LabelBrandGuid" runat="server" Text="商品品牌："></asp:Label>
                </td>
                <td>
                    <asp:DropDownList ID="DropDownListBrandGuid" runat="server" CssClass="select1">
                    </asp:DropDownList>
                    </td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td style="width: 42px; height: 25px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="LabelShopPrice" runat="server" Text="本店售价："></asp:Label>
                </td>
                <td colspan="5">
                    <asp:TextBox ID="TextBoxShopPrice1" runat="server" CssClass="input1"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorShopPrice1" 
                            runat="server" ControlToValidate="TextBoxShopPrice1" Display="Dynamic" 
                            ErrorMessage="价格格式不正确" 
                            
                            ValidationExpression="^[0-9]+(.[0-9]{1,3})?$"></asp:RegularExpressionValidator>
                    -<asp:TextBox ID="TextBoxShopPrice2" runat="server" CssClass="input1"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorShopPrice2" 
                            runat="server" ControlToValidate="TextBoxShopPrice2" Display="Dynamic" 
                            ErrorMessage="价格格式不正确" 
                            
                            ValidationExpression="^[0-9]+(.[0-9]{1,3})?$"></asp:RegularExpressionValidator>
                </td>
                <td style="width: 42px; height: 25px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="LabelCostPrice" runat="server" Text="成本价："></asp:Label>
                </td>
                <td colspan="5">
                    <asp:TextBox ID="TextBoxCostPrice1" runat="server" CssClass="input1"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorCostPrice1" 
                            runat="server" ControlToValidate="TextBoxCostPrice1" Display="Dynamic" 
                            ErrorMessage="价格格式不正确" 
                            
                            ValidationExpression="^[0-9]+(.[0-9]{1,3})?$"></asp:RegularExpressionValidator>
                    -<asp:TextBox ID="TextBoxCostPrice2" runat="server" CssClass="input1"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorCostPrice2" 
                            runat="server" ControlToValidate="TextBoxCostPrice2" Display="Dynamic" 
                            ErrorMessage="价格格式不正确" 
                            
                            ValidationExpression="^[0-9]+(.[0-9]{1,3})?$"></asp:RegularExpressionValidator>
                </td>
                <td style="width: 42px; height: 25px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="LabelMarketPrice" runat="server" Text="市场价："></asp:Label>
                </td>
                <td colspan="5">
                    <asp:TextBox ID="TextBoxMarketPrice1" runat="server" CssClass="input1"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorMarketPrice1" 
                            runat="server" ControlToValidate="TextBoxMarketPrice1" Display="Dynamic" 
                            ErrorMessage="价格格式不正确" 
                            
                            ValidationExpression="^[0-9]+(.[0-9]{1,3})?$"></asp:RegularExpressionValidator>
                    -<asp:TextBox ID="TextBoxMarketPrice2" runat="server" CssClass="input1"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorMarketPrice2" 
                            runat="server" ControlToValidate="TextBoxMarketPrice2" Display="Dynamic" 
                            ErrorMessage="价格格式不正确" 
                            
                            ValidationExpression="^[0-9]+(.[0-9]{1,3})?$"></asp:RegularExpressionValidator>
                </td>
                <td style="width: 42px; height: 25px">
                    <asp:Button ID="ButtonSearch" runat="server" 
                        onclick="ButtonSearch_Click" Text="查询" CssClass="bt2" />
                </td>
            </tr>
            </table></div>
        <table  style="width:100%">
        <tr><td style="padding:0 0 5px 5px"><asp:Button ID="ButtonReport" runat="server" onclick="ButtonReport_Click" Text="导出到Excel" 
                                CausesValidation="False" CssClass="bt3" /></td></tr>
                    <tr>
                        <td align="left">
            <cc1:Num1GridView ID="Num1GridViewShow" runat="server" 
                AutoGenerateColumns="False" AllowSorting="True" AscendingImageUrl="~/images/SortAsc.gif" 
                DescendingImageUrl="~/images/SortDesc.gif" Width="100%" AddSequenceColumn="False" 
                                AllowMultiColumnSorting="False" BorderColor="#CCDDEF" BorderStyle="Solid" 
                                BorderWidth="1px" CellPadding="4" Del="False" DeletePromptText="确实要删除指定的记录吗？" 
                                Edit="False" FixHeader="False" GridViewSortDirection="Ascending" 
                                PagingStyle="None" style="margin-left: 2px;" TableName="" 
                                Font-Size="Small" DataSourceID="ObjectDataSourceData">          
<HeaderStyle HorizontalAlign="Center" BackColor="#6699CC" Font-Bold="True" ForeColor="#FFFFFF"></HeaderStyle>

<PagerStyle HorizontalAlign="Left" BackColor="#EEEEEE" ForeColor="#6699CC"></PagerStyle>
                <Columns>
                    <asp:BoundField DataField="Name" HeaderText="商品名称" 
                        SortExpression="Name" >
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="RepertoryNumber" HeaderText="货号" 
                        SortExpression="RepertoryNumber">
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="已销售量" DataField="SaleNumber" 
                        SortExpression="SaleNumber">
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="剩余库存量" DataField="RepertoryCount" 
                        SortExpression="RepertoryCount">
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                </Columns>
            </cc1:Num1GridView>
                        </td>
                    </tr>
                       <tr>
                        <td align="left">
                                                   
                &nbsp;&nbsp;</td>                    
                    </tr>
</table>
        <%--                   <input ID="checkboxItem"   onclick="GetItmeValue(this)" type="checkbox" />--%><asp:ObjectDataSource 
            ID="ObjectDataSourceData" runat="server" 
            SelectMethod="Search" 
            TypeName="ShopNum1.BusinessLogic.ShopNum1_Report_Action">
    <SelectParameters>
        <asp:ControlParameter ControlID="DropDownListProductCategoryID" 
            Name="productCategoryID" PropertyName="SelectedValue" Type="Int32" />
        <asp:ControlParameter ControlID="DropDownListBrandGuid" Name="brandGuid" 
            PropertyName="SelectedValue" Type="String" />
        <asp:ControlParameter ControlID="TextBoxShopPrice1" Name="shopPrice1" 
            PropertyName="Text" Type="Decimal" />
        <asp:ControlParameter ControlID="TextBoxShopPrice2" Name="shopPrice2" 
            PropertyName="Text" Type="Decimal" />
        <asp:ControlParameter ControlID="TextBoxCostPrice1" Name="costPrice1" 
            PropertyName="Text" Type="Decimal" />
        <asp:ControlParameter ControlID="TextBoxCostPrice2" Name="costPrice2" 
            PropertyName="Text" Type="Decimal" />
        <asp:ControlParameter ControlID="TextBoxMarketPrice1" Name="marketPrice1" 
            PropertyName="Text" Type="Decimal" />
        <asp:ControlParameter ControlID="TextBoxMarketPrice2" Name="marketPrice2" 
            PropertyName="Text" Type="Decimal" />
    </SelectParameters>
            
        </asp:ObjectDataSource>
    <asp:HiddenField ID="CheckGuidProductCategoryID" runat="server" Value="0" 
          />
    <asp:HiddenField ID="CheckGuidBrandGuid" runat="server" Value="0" 
          />
    <asp:HiddenField ID="CheckGuidShopPrice1" runat="server" Value="0" 
          />
    <asp:HiddenField ID="CheckGuidShopPrice2" runat="server" Value="0" 
          />
    <asp:HiddenField ID="CheckGuidCostPrice1" runat="server" Value="0" 
          />
    <asp:HiddenField ID="CheckGuidCostPrice2" runat="server" Value="0" 
          />
    <asp:HiddenField ID="CheckGuidMarketPrice1" runat="server" Value="0" 
          />
    <asp:HiddenField ID="CheckGuidMarketPrice2" runat="server" Value="0" 
          />
    </form>
</body>
</html>
