<%@ page language="C#" masterpagefile="MyShopMasterPage.master" autoeventwireup="true" inherits="Member_EditProducts, WebApp_deploy" enableeventvalidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script type="text/javascript" language="javascript" src="../Js/HoWave_ShopClass.js"></script>
<script type="text/javascript" language="javascript" src="../Js/HoWave_ShopSaleProduct.js"></script>
<script type="text/javascript" language="javascript" src="../Js/SaleProduct.js"></script>
<script type="text/javascript" language="javascript" src="../Js/HoWave_Calendar.js"></script>

<script language="javascript" type="text/javascript">
    function checkall() {
    var obj = document.getElementsByTagName('input');
    for (var i = 0; i < obj.length; i++) {
        if (obj[i].type == 'checkbox' && obj[i].name == 'cbselect') {
            obj[i].checked = true;
        }
    }
    
    return false;
}

function notcheck() {
  var obj=document.getElementsByTagName('input');
  for (var i = 0; i < obj.length; i++) {
      if (obj[i].type == 'checkbox' && obj[i].name == 'cbselect') {
          obj[i].checked =!(obj[i].checked);
      }
    }
}

function selectProductPublishTime1()
{
    if(document.getElementById("ctl00_ContentPlaceHolder1_ProductPublishTime_1").checked)
    {
        document.getElementById("PublishStartTr").style.display="";
    }else{
        document.getElementById("PublishStartTr").style.display="none";
    }
}

function showTemplace() {
    var Radio1 = document.getElementById("ctl00_ContentPlaceHolder1_Radio_DeliverPayType_0");
    var Radio2 = document.getElementById("ctl00_ContentPlaceHolder1_Radio_DeliverPayType_1");
    var TemplateDiv = document.getElementById("deliver_template");
    if (Radio1.checked) {
        TemplateDiv.style.display = "block";
    }
    else if (Radio2.checked) {
         TemplateDiv.style.display = "none";
    }
}

function selectTime1() {
    var check7 = document.getElementById("Checkbox7");
    var check12 = document.getElementById("Checkbox12");
    if (check7.checked) {
        check12.checked = true;
    }
}

function selectTime2() {
    var check7 = document.getElementById("Checkbox7");
    var check12 = document.getElementById("Checkbox12");
    if (!check12.checked) {
        check7.checked = false;
    }
}


</script>

<div class="pageTitle">
批量修改商品属性
<br />
<div style="text-align:center;color:Red">
小提示：选中的栏目为批量修改项
</div>
    <asp:Literal ID="TxtOrderFormNum" runat="server" /></div>
<div id="order_content">
   <table class="ShopOrderStyle">
   <caption>商品基本信息</caption>
   <tr><td style="width:1%" align="right">
       <input id="Checkbox18" name="cbselect" type="checkbox" value="0" /></td><td class="OrderTitle">商品单位：</td><td style="width:30%">
        <asp:TextBox ID="TxtPuint" runat="server" Width="40px" Text="件" MaxLength="2" />
                        <select onchange='document.getElementById("ctl00$ContentPlaceHolder1$TxtPuint").value=this.value' name="selectmsg">
                            <option value="件" selected="selected">件</option>
                            <option value="个">个</option>
                            <option value="台">台</option>
                            <option value="批">批</option>
                            <option value="箱">箱</option>
                            <option value="本">本</option>
                            <option value="双">双</option>
                            <option value="瓶">瓶</option>
                            <option value="">其它</option>
                        </select></td>
       <td align="right">
           <input id="Checkbox1" name="cbselect" type="checkbox" value="1" /></td><td class="OrderTitle">
           新旧程度：</td><td style="width:30%">
               <asp:RadioButtonList ID="ProductStandard" runat="server" RepeatDirection="Horizontal"
                   RepeatLayout="Flow">
                   <asp:ListItem Selected="True" Text="全新" Value="1"></asp:ListItem>
                   <asp:ListItem Text="二手" Value="0"></asp:ListItem>
               </asp:RadioButtonList></td>
       </tr>
       
       <tr><td align="right">
           <input id="Checkbox2" name="cbselect" type="checkbox" value="2" /></td><td class="OrderTitle" style="width:5%">
           商品数量：</td><td style="width:30%">
               <asp:TextBox ID="ProductStock" runat="server" Width="41px">1</asp:TextBox><asp:RequiredFieldValidator
                   ID="rfv3" runat="server" ControlToValidate="ProductStock" Display="Dynamic" ErrorMessage="请输入商品数量"></asp:RequiredFieldValidator><asp:RangeValidator
                       ID="rav_2" runat="server" ControlToValidate="ProductStock" Display="Dynamic"
                       ErrorMessage="输入数量必须为整数" MaximumValue="99999999" MinimumValue="1" Type="Integer"></asp:RangeValidator></td>
           <td align="right">
               <input id="Checkbox8" name="cbselect" type="checkbox" value="3" /></td><td class="OrderTitle" style="width:5%">
           所 在 地：</td><td style="width:30%">
               <asp:ScriptManager ID="ScriptManager1" runat="server">
               </asp:ScriptManager>
               <hl:HoWaveProvinceCity ID="ProvinceCity" runat="server" />
            </td></tr>
       <tr><td align="right">
           <input id="Checkbox3" name="cbselect" type="checkbox" value="4" /></td><td class="OrderTitle" style="width:5%">
            发 票：</td><td style="width:30%">
                <asp:RadioButtonList ID="NeedInvoice" runat="server" RepeatDirection="Horizontal"
                    RepeatLayout="Flow">
                    <asp:ListItem Text="有" Value="1"></asp:ListItem>
                    <asp:ListItem Selected="True" Text="无" Value="0"></asp:ListItem>
                </asp:RadioButtonList></td>
           <td align="right">
               <input id="Checkbox9" name="cbselect" type="checkbox" value="5" /></td><td class="OrderTitle" style="width:5%">
           发票税率：</td><td style="width:30%">
               <asp:TextBox ID="TxtTaxRate" runat="server" MaxLength="3" Width="53px">7</asp:TextBox>%<asp:RequiredFieldValidator
                   ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxtTaxRate" Display="Dynamic"
                   ErrorMessage="发票税率不能空"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeValidator1"
                       runat="server" ControlToValidate="TxtTaxRate" Display="Dynamic" ErrorMessage="必须为非负数"
                       MaximumValue="100" MinimumValue="0" Type="Integer"></asp:RangeValidator></td>
           </tr>
       <tr><td align="right">
           <input id="Checkbox4" name="cbselect" type="checkbox" value="6" /></td><td class="OrderTitle" style="width:5%">
           保修：</td><td style="width:30%">
               <asp:RadioButtonList ID="Guarantee" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                   <asp:ListItem Text="有" Value="1"></asp:ListItem>
                   <asp:ListItem Selected="True" Text="无" Value="0"></asp:ListItem>
               </asp:RadioButtonList></td>
           <td style="width:1%" align="right">
              </td><td class="OrderTitle" style="width:5%">
           </td><td style="width:30%"></td>
           </tr>
    </table>
    <br />
    
    <table class="ShopOrderStyle">
    <caption>销售设置</caption>
    <tr>
    <td style="width:1%" align="right">
        <input id="Checkbox5" name="cbselect" type="checkbox" value="8" /></td>
    <td class="OrderTitle">
        支付方式：</td>
    <td>
        <asp:CheckBoxList ID="CheckBoxList_OnlinePayType" runat="server" RepeatDirection="Horizontal"
            RepeatLayout="Flow">
            <asp:ListItem Value="0">商城帐户支付</asp:ListItem>
        </asp:CheckBoxList></td>
    <td><a href="javascript:void(0)" onclick="OpennewWindow('Index.aspx?mainurl=Shop_PaymentType.aspx?GoUrl=/SaleProduct.aspx');">设置支付方</a></td>
    </tr>
        <tr>
            <td align="right" style="width: 1%">
                <input id="Checkbox6" name="cbselect" type="checkbox" value="9" /></td>
            <td class="OrderTitle">
                送货方式：</td>
            <td>
            
             <asp:RadioButtonList ID="Radio_DeliverPayType" runat="server" RepeatDirection="Horizontal"
                            RepeatLayout="Flow" onclick="showTemplace()">
                            <asp:ListItem Text="买家承担运费" Value="1" Selected="True" />
                            <asp:ListItem Text="卖家承担运费" Value="0" />
                        </asp:RadioButtonList>
                        <div id="deliver_template" style="width: 80%; border: solid 1px gray; background: #eeeeee;
                            clear: both; padding: 5px;">
                            选择运费模板：<br />
                            <asp:RadioButtonList ID="CheckBoxList_DeliverType" runat="server" RepeatLayout="Flow" />
                        </div>
            </td>
            <td>
            <a target="_blank" href="Shop_AddDeliver.aspx?action=add">
                            设置送货方式</a></td>
                            
                <script type="text/javascript">
                function OpennewWindow(url)
                {
                   var win = window.open(url,"mywin", "menubar=no,width=960,height=700,resizeable=yes");

                }
                </script>                
        </tr>
    </table>
    
    <br />
    <table  class="ShopOrderStyle">
    <caption>其它信息</caption>
    <tr>
    <td style="width:1%">
        <input id="Checkbox7" name="cbselect" type="checkbox" value="10" onclick="selectTime1()" /></td>
    <td class="OrderTitle">
        有效期：</td>
    <td style="width:30%"><asp:DropDownList ID="ValidDay" runat="server">
        </asp:DropDownList>天</td>
    
        <td style="width:1%">
            <input id="Checkbox12" name="cbselect" type="checkbox" value="11" onclick="selectTime2()" /></td>
    <td class="OrderTitle">开始时间：</td>
    <td style="width:30%">
    <asp:RadioButtonList ID="ProductPublishTime" onclick="return selectProductPublishTime1()"
                            runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                            <asp:ListItem Text="立即" Value="1" />
                            <asp:ListItem Text="设定时间" Value="2" Selected="True" />
                            <asp:ListItem Text="放入仓库" Value="0" />
                        </asp:RadioButtonList><br />
                        <div id="PublishStartTr" >
                            <asp:TextBox ID="PublishStartDay" runat="server" Width="100px"  Height="16px" />
                            <asp:DropDownList ID="PublishStartHour" runat="server">
                                <asp:ListItem Text="0" Value="0" />
                                <asp:ListItem Text="1" Value="1" />
                                <asp:ListItem Text="2" Value="2" />
                                <asp:ListItem Text="3" Value="3" />
                                <asp:ListItem Text="4" Value="4" />
                                <asp:ListItem Text="5" Value="5" />
                                <asp:ListItem Text="6" Value="6" />
                                <asp:ListItem Text="7" Value="7" />
                                <asp:ListItem Text="8" Value="8" />
                                <asp:ListItem Text="9" Value="9" />
                                <asp:ListItem Text="10" Value="10" />
                                <asp:ListItem Text="11" Value="11" />
                                <asp:ListItem Text="12" Value="12" />
                                <asp:ListItem Text="13" Value="13" />
                                <asp:ListItem Text="14" Value="14" />
                                <asp:ListItem Text="15" Value="15" />
                                <asp:ListItem Text="16" Value="16" />
                                <asp:ListItem Text="17" Value="17" />
                                <asp:ListItem Text="18" Value="18" />
                                <asp:ListItem Text="19" Value="19" />
                                <asp:ListItem Text="20" Value="20" />
                                <asp:ListItem Text="21" Value="21" />
                                <asp:ListItem Text="22" Value="22" />
                                <asp:ListItem Text="23" Value="23" />
                            </asp:DropDownList>时
                            <asp:DropDownList ID="PublishStartMin" runat="server">
                                <asp:ListItem Text="0" Value="0" />
                                <asp:ListItem Text="5" Value="5" />
                                <asp:ListItem Text="10" Value="10" />
                                <asp:ListItem Text="15" Value="15" />
                                <asp:ListItem Text="20" Value="20" />
                                <asp:ListItem Text="25" Value="25" />
                                <asp:ListItem Text="30" Value="30" />
                                <asp:ListItem Text="35" Value="35" />
                                <asp:ListItem Text="40" Value="40" />
                                <asp:ListItem Text="45" Value="45" />
                                <asp:ListItem Text="50" Value="50" />
                                <asp:ListItem Text="55" Value="55" />
                            </asp:DropDownList>分
                            </div>
    </td>
    </tr>
    
    <tr>
    <td>
        <input id="Checkbox11" name="cbselect" type="checkbox" value="12" /></td>
    <td class="OrderTitle">
        自动重发：</td>
    <td>
        <asp:CheckBox ID="AutoPostBack" runat="server" Text="是" />
        系统会帮您自动重发1次商品</td>
    <td>
        <input id="Checkbox13" name="cbselect" type="checkbox" value="13" /></td>
    <td class="OrderTitle">
        橱窗推荐：</td>
    <td>
        <asp:CheckBox ID="IsElite" runat="server" Text="是" /></td>
    
    </tr>
    </table>
    <br /><br />
    <div style="text-align:center">
        <input id="but_selectall" type="button" value=" 全 选 " onclick="return checkall()" />
        <input id="Button1" type="button" value=" 反 选 " onclick="notcheck()" />
        <asp:Button ID="Button3" runat="server" Text=" 提 交 " OnClick="Button3_Click" />
    </div>
    </div>
</asp:Content>

