<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="salestrategy_config_nav.aspx.cs" Inherits="VA.Modules.JDingMember.sale.salestrategy_config_nav" %>

<!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>
    <title></title>
    <!--#include virtual="/include/css/edit.aspx"-->
    <!--#include virtual="/include/js/edit.aspx"-->     
    <script type="text/javascript">
        //只打开窗口；
        function openTopestWindow(winTitle, pageURL) {
            try {
                if (window.top != window.self) {
                    window.parent.addTab(winTitle, pageURL);
                }
                else {
                    window.location.href = pageURL;
                }
            } catch (e) { alert(e); }
        }

        function setDonateAmountRules(keyValue) {
            var ids = keyValue;
            //openTopestWindow("编辑赠送金额营销策略", "/modules/member/sale/salestrategy_config_setdonateamountrule.aspx?strategycode=" + ids);
            openFrameWindow("编辑赠送金额规则",  740, 500, "salestrategy_config_setdonateamountrule.aspx?strategycode=" + ids);
        }

        function setDonatePointRules(keyValue) {
            var ids = keyValue;
            //openTopestWindow("编辑赠送积分营销策略", "/modules/member/sale/salestrategy_config_setdonatepointrule.aspx?strategycode=" + ids);
            openFrameWindow("编辑赠送积分规则",  740, 500, "salestrategy_config_setdonatepointrule.aspx?strategycode=" + ids);
        }
        function setDonateGiftRules(keyValue) {
            var ids = keyValue;
            //openTopestWindow("编辑赠送礼品营销策略", "/modules/member/sale/salestrategy_config_setdonategiftrule.aspx?strategycode=" + ids);
            openFrameWindow("编辑赠送礼品规则",  740, 500, "salestrategy_config_setdonategiftrule.aspx?strategycode=" + ids);
        }
        function setDonateVoucherRules(keyValue) {
            var ids = keyValue;
            //openTopestWindow("编辑赠送代金券营销策略", "/modules/member/sale/salestrategy_config_setdonatevoucherrule.aspx?strategycode=" + ids);
            openFrameWindow("编辑赠送代金券规则",  740, 500, "salestrategy_config_setdonatevoucherrule.aspx?strategycode=" + ids);
        }

        function setDiscountAmountRules(keyValue) {
            var ids = keyValue;
            //openTopestWindow("编辑消费减免营销策略", "/modules/member/sale/salestrategy_config_setdiscountamountrule.aspx?strategycode=" + ids);
            openFrameWindow("编辑消费减免规则",  740, 500, "salestrategy_config_setdiscountamountrule.aspx?strategycode=" + ids);
        }

        //刷新整个页面；
        function refresh() {
            window.location.reload();
        }

    </script>

    <style type="text/css">
        .formEditListTable1 { border:solid 0px #B9CAD3;width:100%; border-collapse:collapse; font-size:12px;}
        .formEditListTable1 thead tr{ background-color:#EDF6FA;font-weight:bold; }    
        .formEditListTable1 td { border:solid 1px #B9CAD3; padding:3px;overflow:hidden;line-height:25px;}
        .formEditListTable1 td input { border:solid 0px #B9CAD3; width:100%;height:25px;margin:0px;padding:0px;text-align:center;}
        .formEditListTable1 td input.error { background-color:#ffcccc;}
        .formEditListTable1 td input:hover { background-color:red;}
        .formEditListTable1 tr { cursor:pointer; }  /*firefox不支持hand，pointer的图形为手*/    
        .formEditListTable1 tr.tr_mouseover { background-color:#f0f9fd; }
        .formEditListTable1 tr.tr_selected { background-color:#EDF6FA; }  
    </style>
</head>
<body>
<form id="Form1" method="post" runat="server">

<div class="editPageWrapper" style="width:700px;">

<div class="centerFormTitle">
   <h1><asp:Label ID="lblFormTitle" runat="server">设置营销规则</asp:Label></h1>
</div>

<table cellspacing="0" cellpadding="3" class="editTable">
<tr id="trEditResult" runat="server" visible="false">
<td colspan="2" style="text-align:center;">
    <div class="editResult">
    <asp:Literal id="litEditResult" runat="server" />
    </div>
</td>
</tr>
<tr>
<td class="th">策略类型：</td>
<td>
    <asp:Label ID="lblBizType" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td class="th">策略名称：</td>
<td>              
    <asp:Label ID="lblStrategyName" runat="server"></asp:Label>
</td>
</tr>
</table>

<table cellspacing="0" cellpadding="3" class="editTable" style="margin-top:-1px;">
<tr>
<td class="th" style="font-weight:bold;text-align:left;">营销规则</td>
</tr>
</table>
<table cellspacing="0" class="formEditListTable1" id="srcTable" style="margin-top:-1px;">
<thead>
<tr>
<td style="width:100px;text-align:center;">规则项</td>
<td style="text-align:center;">规则解释</td>
<td style="width:70px;text-align:center;">编辑规则</td>
</tr>    
</thead> 
<tbody> 
<tr runat="server" id="tr_DonateAmount">
<td style="width:100px;text-align:center;">
    <asp:CheckBox ID="ckbDonateAmount" runat="server"
         Text="赠送金额"
         />    
</td>
<td style="text-align:left;">
    如：可设置充100，送10元，充200，送30等。
</td>
<td>
    <input type="button" id="btnSetDonateAmountRule" class="btn" value="编辑规则" onclick="setDonateAmountRules('<%=Request.QueryString["strategycode"]%>')" />
</td>
</tr>

<tr runat="server" id="tr_DiscountAmount">
<td style="width:100px;text-align:center;">
    <asp:CheckBox ID="ckbDiscountAmount" runat="server"
         Text="减免金额"
         />    
</td>
<td style="text-align:left;">
    如：可设置消费100减免10元等。
</td>
<td>
    <input type="button" id="Button1" class="btn" value="编辑规则" onclick="setDiscountAmountRules('<%=Request.QueryString["strategycode"]%>    ')" />
</td>
</tr>

<tr runat="server" id="tr_DonateVoucher">
<td style="text-align:center;">
    <asp:CheckBox ID="ckbDonateVoucher" runat="server"
         Text="赠送代金券" />
</td>
<td style="text-align:left;">
    如：可设置消费100元送价值10元的代金券。
</td>
<td>
    <input type="button" id="btnSetDonateVoucherRule" class="btn" value="编辑规则" onclick="setDonateVoucherRules('<%=Request.QueryString["strategycode"]%>    ')" />
</td>
</tr> 


<%--<tr runat="server" id="tr_DonatePoint">
<td style="text-align:center;">
    <asp:CheckBox ID="ckbDonatePoint" runat="server"
         Text="赠送积分" />
</td>
<td style="text-align:left;">
    如：可设置按充值金额的一定比例赠送积分。
</td>
<td>
    <input type="button" id="btnSetDonatePointRule" class="btn" value="编辑规则" onclick="setDonatePointRules('<%=Request.QueryString["strategycode"]%>')" />
</td>
</tr> 

<tr runat="server" id="tr_DonateGift">
<td style="text-align:center;">
    <asp:CheckBox ID="ckbDonateGift" runat="server"
         Text="赠送礼品" />
</td>
<td style="text-align:left;">
    如：可设置充值满100元送1个小礼品等。
</td>
<td>
    <input type="button" id="btnSetDonateGiftRule" class="btn" value="编辑规则" onclick="setDonateGiftRules('<%=Request.QueryString["strategycode"]%>')" />
</td>
</tr> --%>


</tbody> 
</table>

</div><!--editPageWrapper.END-->

</form>
</body>
</html>

