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

<%@ Register assembly="ShopNum1.Control" namespace="ShopNum1.Control" tagprefix="cc1" %>
<%@ Register src="UserControl/MessageShow.ascx" tagname="MessageShow" tagprefix="uc1" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="ShopNum1" %>
<%@ 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;">
<link type="text/css" rel="Stylesheet" href="css/index.css" /> 
    <form id="form1" runat="server">
    
<div class="navigator">
    <asp:Label ID="LabelPageTitle" runat="server" Text="【 新增团购活动 】"></asp:Label>
        </div>
    
        <table cellpadding="0" cellspacing="0" border="0" style="width:100%">
            
            <tr>
                <td align="right" style="width:20%;">
                    &nbsp;</td>
                <td align="left" >
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="right" style="width:20%;">
                    <asp:Label ID="LabelProductGuid" runat="server" Text="团购商品："></asp:Label>
                </td>
                <td align="left" >
                <font class="font1">
                    <asp:Label ID="LabelProductGuidValue" runat="server"></asp:Label></font>
                </td>
            </tr>
            <tr>
                <td align="right"style="width:20%;" >
    
                    <asp:Label ID="LabelStartTime" runat="server" Text="团购开始时间："></asp:Label>
                </td>
                <td align="left" >
                    <asp:TextBox ID="TextBoxStartTime" runat="server" cssclass="input2"></asp:TextBox>
                         <img id="imgCalendarStartTime" alt="" src="../images/Calendar.png" 
                                    style="width: 16px; height: 18px;" />
                                    <font color="red">
                            <asp:Label ID="Label1" runat="server" Text="*"></asp:Label></font>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidatorStartTime" 
                            runat="server" ControlToValidate="TextBoxStartTime" Display="Dynamic" 
                            ErrorMessage="时间格式不正确" 
                            
                            ValidationExpression="^\d{4}-(\d{2}|\d{1})-(\d{2}|\d{1})( (\d{2}|\d{1}):(\d{2}|\d{1}):(\d{2}|\d{1}))*"></asp:RegularExpressionValidator>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorStartTime" 
                            runat="server" ControlToValidate="TextBoxStartTime" Display="Dynamic" 
                            ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                            <ShopNum1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" 
                                        EnableScriptGlobalization="True" EnableScriptLocalization="True">
                            </ShopNum1:ToolkitScriptManager>
                            &nbsp;<ShopNum1:CalendarExtender 
                                      ID="CalendarExtender1" runat="server" TargetControlID="TextBoxStartTime" 
                                      PopupButtonID="imgCalendarStartTime" CssClass="ajax__calendar">
                            </ShopNum1:CalendarExtender>
                </td>
            </tr>
            <tr>
                <td align="right"style="width:20%;" >
    
                    <asp:Label ID="LabelEndTime" runat="server" Text="团购结束时间："></asp:Label>
                </td>
                <td align="left" >
                    <asp:TextBox ID="TextBoxEndTime" runat="server" cssclass="input2"></asp:TextBox>
                      <img id="imgCalendarEndTime" alt="" src="../images/Calendar.png" 
                                    style="width: 16px; height: 18px;" />
                                     <font color="red">
                            <asp:Label ID="Label2" runat="server" Text="*"></asp:Label></font>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" 
                            runat="server" ControlToValidate="TextBoxEndTime" Display="Dynamic" 
                            ErrorMessage="时间格式不正确" 
                            
                            ValidationExpression="^\d{4}-(\d{2}|\d{1})-(\d{2}|\d{1})( (\d{2}|\d{1}):(\d{2}|\d{1}):(\d{2}|\d{1}))*"></asp:RegularExpressionValidator>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" 
                            runat="server" ControlToValidate="TextBoxEndTime" Display="Dynamic" 
                            ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                            &nbsp;<ShopNum1:CalendarExtender 
                                      ID="CalendarExtender2" runat="server" TargetControlID="TextBoxEndTime" 
                                      PopupButtonID="imgCalendarEndTime" CssClass="ajax__calendar">
                            </ShopNum1:CalendarExtender>
                </td>
            </tr>
            <tr>
                <td align="right"style="width:20%;" >
    
                    <asp:Label ID="LabelDeposit" runat="server" Text="保证金："></asp:Label>
                </td>
                <td align="left" >
                    <asp:TextBox ID="TextBoxDeposit" runat="server" cssclass="input2"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidatorDeposit" 
                            runat="server" ControlToValidate="TextBoxDeposit" Display="Dynamic" 
                            ErrorMessage="输入格式不正确" 
                            
                            ValidationExpression="^[0-9]+(.[0-9]{1,3})?$"></asp:RegularExpressionValidator>
                </td>
            </tr>
                    <tr>
                <td align="right"style="width:20%;" >
    
                    <asp:Label ID="LabelRestrictCount" runat="server" Text="限购数量："></asp:Label>
                </td>
                <td align="left" >
                    <asp:TextBox ID="TextBoxRestrictCount" runat="server" cssclass="input2"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidatorRestrictCount" 
                            runat="server" ControlToValidate="TextBoxRestrictCount" Display="Dynamic" 
                            ErrorMessage="只能输入数字" 
                            
                            ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator>
                </td>
                    </tr>
            <tr>
                <td align="right"style="width:20%;" >
    
                    <asp:Label ID="LabelPresentScore" runat="server" Text="赠送消费积分数："></asp:Label>
                </td>
                <td align="left" >
                    <asp:TextBox ID="TextBoxPresentScore" runat="server" cssclass="input2"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidatorPresentScore" 
                            runat="server" ControlToValidate="TextBoxPresentScore" Display="Dynamic" 
                            ErrorMessage="只能输入数字" 
                            
                            ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td align="right"style="width:20%;" >
    
                    <asp:Label ID="LabelPresentRankScore" runat="server" Text="赠送等级积分数："></asp:Label>
                </td>
                <td align="left" >
                    <asp:TextBox ID="TextBoxPresentRankScore" runat="server" cssclass="input2"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidatorPresentRankScore" 
                            runat="server" ControlToValidate="TextBoxPresentRankScore" Display="Dynamic" 
                            ErrorMessage="只能输入数字" 
                            
                            ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td colspan="2" >

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>
    <table cellpadding="0" cellspacing="0" width="100%" border="0">
    <tr>
    <td width="20%" align="right"><asp:Label ID="LabelOfficeTel0" runat="server" Text="价格阶梯："></asp:Label></td>
    <td ><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" >
        <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>
            <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" >
            <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
        </Columns>
      </cc1:Num1GridView>
    <div class="vote"><asp:Button ID="ButtonDelete" runat="server" onclick="ButtonDelete_Click" 
                                onclientclick="return DeleteButton()" Text="删除" CausesValidation="False" class="bt2"/>
      </div></td>
  </tr>
  <tr>
    <td colspan="2" style="line-height:40px;height:40px;padding-left:20%">
      
      <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="RegularExpressionValidatorPrice" 
                            runat="server" ControlToValidate="TextBoxPrice" Display="Dynamic" 
                            ErrorMessage="输入格式不正确" 
                            
                            ValidationExpression="^[0-9]+(.[0-9]{1,3})?$"></asp:RegularExpressionValidator>  <asp:Button ID="ButtonAddPrice" runat="server" Text="确定" 
                        onclick="ButtonAddPrice_Click" CssClass="bt2" /></td>
    
 &nbsp;</td></tr>
    
    
    
    
    </table>
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      
    </td>
  </tr>
</table>








</td>
            </tr>
            <tr>
                <td align="right"style="width:20%;" >
    
                    <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>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorMemo" 
                        runat="server" ControlToValidate="TextBoxMemo" Display="Dynamic" 
                        ErrorMessage="描述最多200个字符" ValidationExpression="^[\s\S]{0,200}$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td align="right"style="width:20%;" >
    
                    &nbsp;</td>
                <td align="left" >
                    &nbsp;</td>
            </tr>
            <tr style="background-color:#EEEEEE;">
             <td align="right"style="width:20%;" >
    
                 &nbsp;</td>
                <td align="left" >
                     <div style="width:100%;">
        <asp:Button ID="ButtonConfirm" runat="server" onclick="ButtonConfirm_Click" Text="确定" 
           ToolTip="Submit" cssclass="bt2" />
                         <input ID="inputReset" runat="server"  type="reset" value="重置"  class="bt2" />
                         <asp:Button 
                             ID="ButtonToIsEnd2" runat="server" Text="结束团购" cssclass="bt3" 
                             onclick="ButtonToIsEnd2_Click" />
                         <asp:Button ID="ButtonToIsEnd3" runat="server" Text="团购成功" cssclass="bt3" 
                             onclick="ButtonToIsEnd3_Click" />
                         <asp:Button ID="ButtonToIsEnd4" runat="server" Text="团购失败" cssclass="bt3" 
                             onclick="ButtonToIsEnd4_Click" />
                         <asp:Button ID="ButtonToEmail" runat="server" Text="发送邮件" cssclass="bt3" 
                             onclick="ButtonToEmail_Click" />
                           <a href="Organiz_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>