<%@ Page Language="C#" enableEventValidation="false" viewStateEncryptionMode ="Never" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" Inherits="Kesion.NET.WebSite.Admin_OrderConfig" Title="快递接口设置" Codebehind="KS.OrderConfig.aspx.cs" %>
<%@ Import Namespace="Kesion.Cache" %>
<%@ Import Namespace="Kesion.BLL" %>
<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" Runat="Server">
           <div id="manage_top" class="menu_top_fixed">
        <ul class="titleTab">
          <li><a href="KS.Config.aspx">网站参数设置</a></li>
          <li><a href="KS.Safe.aspx">网站安全配置</a></li>
          <li class="curr"><a href="KS.OrderConfig.aspx">订单相关设置</a></li>
            <%if (BaseFun.CheckModulePower("mall"))
                { %>
          <li><a href="KS.ShopDelivery.aspx">配送管理</a></li>
            <%} %>
          <li><a href="KS.ScoreConfig.aspx">网站积分配置</a></li>
          <li><a href="KS.ContactUS.aspx">联系方式配置</a></li>
             <li><a href="KS.Dirtywords.aspx">过滤脏话配置</a></li>
        </ul>
    </div>  
    <div class="menu_top_fixed_height"></div>  

    <div class="content-area">
    <div class="myTitle">
      订单相关配置
    </div>


   
    <table id="tbs" width="99%" border="0" cellpadding="0" cellspacing="0" class="CTable no-borderTable"> 
       
        <tr>
             <td class="lefttd" height="30" align="right" style="width: 198px"><b>订单编号前缀：</b></td>
                <td class="righttd">
                   订单编号前缀：<asp:TextBox style="text-align:center" CssClass="textbox" ID="TxtOrderPrefix" runat="server" Width="50px"></asp:TextBox>
                   支付订单编号前缀：<asp:TextBox style="text-align:center" CssClass="textbox" ID="TxtPayPrefix" runat="server" Width="50px"></asp:TextBox> <span class="tips">不加前缀请留空</span>
                    <br />订单号生成规则：<br /><asp:RadioButtonList runat="server" ID="RdbOrderIdRule" RepeatLayout="Flow">
                      <asp:ListItem Value="0">前缀+8位随机数</asp:ListItem>
                      <asp:ListItem Value="1">前缀+时间格式（如KS202001241221523）</asp:ListItem>
                      <asp:ListItem Value="2">前缀+年+月+日+6位随机数</asp:ListItem>
                      <asp:ListItem Value="3">前缀+月+日+6位随机数</asp:ListItem>
                      <asp:ListItem Value="4">前缀+年+8位随机数</asp:ListItem>
                      <asp:ListItem Value="5" Selected="True">前缀+月+8位随机数</asp:ListItem>
                　    </asp:RadioButtonList>
                   <br />

                </td>
         </tr>
        <tr>
             <td class="lefttd" height="30" align="right" style="width: 198px"><b>快递查询API接口：</b></td>
                <td class="righttd">
                    <div class="message" style="line-height:40px;">
                          接口类型：
                    <asp:DropDownList ID="RdbKDCXType" runat="server">
                        <asp:ListItem Value="0">快递100免费接口</asp:ListItem>
                        <asp:ListItem Value="1">快递100(企业版实时查询接口）</asp:ListItem>
                    </asp:DropDownList><br />
                    KEY：
                  <asp:TextBox CssClass="textbox" ID="TxtkuaidiKey" runat="server" Width="250px"></asp:TextBox> 
                   <span class="tips">不启用快递跟踪查询请留空。如果还没有授权KEY，可以<a href="http://www.kuaidi100.com/openapi/applyapi.shtml" target="_blank" style="color:red;">点此申请</a>。</span>

                   <br /><div id="ShowCustomer">
                        Customer：  <asp:TextBox CssClass="textbox" ID="TxtkuaidiCustomer" runat="server" Width="250px"></asp:TextBox> 
                        <span class="tips">使用快递100免费版查询接口时，无需填写。</span>
                       </div>
                   </div>
                </td>
         </tr>

    </table>
    
    <KS:Foot runat="server" CancelButtonVisible="false" ID="Foot1" OnSubmit="Foot1_Submit"/>
    <KS:Tips ID="Tips1" runat="server" ImagePath="../../admin/images/tipsico/" />
    
     <script>
          function showKD(){
                  var checkrad = jQuery("#<%=this.RdbKDCXType.ClientID %> >option:selected").val();
                 if (checkrad == 0) {
                     jQuery("#ShowCustomer").hide();
                 } else {
                     jQuery("#ShowCustomer").show();
                 }
             }
             jQuery(document).ready(function() {
                 showKD();
             });
         </script>
   
</div>
</asp:Content>

