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

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

<%@ Register src="UserControl/MessageShow.ascx" tagname="MessageShow" tagprefix="ShopNum1" %>

<!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">
        
        <div class="navigator">【  <asp:Label ID="LabelPageTitle" runat="server" Font-Bold="True" Text="新增批发方案"></asp:Label> 】</div>
        <table cellpadding="0" cellspacing="0" border="0" style="width:100%">
      
            <tr>
                <td width="20%">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="right" >
                    <asp:Label ID="LabelProductGuid" runat="server" Text="批发商品："></asp:Label>
                </td>
                <td align="left" >
                    <asp:Label ID="LabelProductGuidValue" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right" >
                    <asp:Label ID="LabelRankGuids" runat="server" Text="适用会员等级："></asp:Label>
                </td>
                <td align="left" >
                    <asp:CheckBoxList ID="CheckBoxListRankGuids" runat="server">
                    </asp:CheckBoxList>
                </td>
            </tr>
            <tr>
                <td align="right" >
    
                    <asp:Label ID="LabelIsUse" runat="server" Text="是否启用："></asp:Label>
                </td>
                <td align="left" >
                    <asp:DropDownList ID="DropDownListIsUse" runat="server">
                        <asp:ListItem Value="1">是</asp:ListItem>
                        <asp:ListItem Value="0">否</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td align="right" >
    
                    <asp:Label ID="LabelWholesalePrice" runat="server" Text="价格阶梯："></asp:Label>
                </td>
                <td align="left" >
                            &nbsp;<cc1:Num1GridView ID="Num1GridViewShow" runat="server" 
                AutoGenerateColumns="False" 
                AllowPaging="True" AllowSorting="True" AscendingImageUrl="~/images/SortAsc.gif" 
                DescendingImageUrl="~/images/SortDesc.gif" Width="98%" 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" Height="203px">          
<HeaderStyle HorizontalAlign="Center" BackColor="#6699CC" Font-Bold="True" ForeColor="#FFFFFF"></HeaderStyle>

<PagerStyle HorizontalAlign="Left" BackColor="#EEEEEE" ForeColor="#6699CC"></PagerStyle>
                <Columns>
                <asp:TemplateField>
                    <HeaderTemplate>
                       <input id="checkboxAll" onclick="javascript:SelectAllCheckboxes(this);" 
                            type="checkbox"  />
                    </HeaderTemplate>
                    <ItemTemplate>
<%--                   <input ID="checkboxItem"   onclick="GetItmeValue(this)" type="checkbox" />--%>
                        <input id="checkboxItem"   value='<%# Eval("Guid") %>'  type="checkbox" />
               </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                    <ItemStyle HorizontalAlign="Center" Width="30px" />
                </asp:TemplateField>
                    <asp:BoundField DataField="Guid" HeaderText="Guid" >
                        <HeaderStyle CssClass="hidden" />
                        <ItemStyle CssClass="hidden" HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Amount" HeaderText="数量达到" 
                        SortExpression="Amount" >
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Price" HeaderText="享受价格" 
                        SortExpression="Price" />
                </Columns>
            </cc1:Num1GridView>
            <div class="vote">
                            <asp:Button ID="ButtonDelete" runat="server" onclick="ButtonDelete_Click" 
                                onclientclick="return DeleteButton()" Text="删除" CausesValidation="False"  CssClass="bt2"/>  
                                                     
                </div>
                <br />
                    <asp:Label ID="LabelAmount" runat="server" Text="数量达到："></asp:Label>
                    <asp:TextBox ID="TextBoxAmount" runat="server" CssClass="input1"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator6" 
                            runat="server" ControlToValidate="TextBoxAmount" Display="Dynamic" 
                            ErrorMessage="只能输入数字" 
                            
                            ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator>
                    <asp:Label ID="LabelPrice" runat="server" Text="享受价格："></asp:Label>
                    <asp:TextBox ID="TextBoxPrice" runat="server" CssClass="input1"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator7" 
                            runat="server" ControlToValidate="TextBoxPrice" Display="Dynamic" 
                            ErrorMessage="输入格式不正确" 
                            
                            ValidationExpression="^[0-9]+(.[0-9]{1,3})?$"></asp:RegularExpressionValidator>
                    <asp:Button ID="ButtonWholesalePrice" runat="server" Text="确定" 
                        onclick="ButtonWholesalePrice_Click" CssClass="bt2"/>
                </td>
            </tr>
            <tr>
                <td align="right" >
    
                    <asp:Label ID="LabelMemo" runat="server" Text="批发方案描述："></asp:Label>
                </td>
                <td align="left" >
                    <asp:TextBox ID="TextBoxMemo" runat="server" Height="60px" 
                        TextMode="MultiLine" Width="440px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="right" >
    
                    &nbsp;</td>
                <td align="left" >
                    &nbsp;</td>
            </tr>
            <tr style="background-color:#EEEEEE;">
             <td align="right" >
    
                 &nbsp;</td>
                <td align="left" >
                     <div style="width:60%;margin:4px;">
        <asp:Button ID="ButtonConfirm" runat="server" onclick="ButtonConfirm_Click" Text="确定" 
           ToolTip="Submit" CssClass="bt2"/>
                         <input ID="inputReset" runat="server"  type="reset" value="重置"  class="bt2"/>
                           <a href="Wholesale_List.aspx"><img src="images/back.png" border="0" align="top" /></a> 
                         <ShopNum1:MessageShow ID="MessageShow" runat="server" Visible="False" />
    
                     </div>
                </td>  
            </tr>
        </table>
    
    <asp:HiddenField ID="hiddenGuid" runat="server" Value="0" />
        <asp:HiddenField ID="HiddenFieldProductGuid" runat="server" />
    <asp:HiddenField ID="CheckGuid" runat="server" Value="0" />
    </form>
</body>
</html>