From adee7a71ba7ab1b63cab63381dfe1846437853d6 Mon Sep 17 00:00:00 2001
From: wzp <2040239371@qq.com>
Date: 星期四, 02 三月 2023 17:37:05 +0800
Subject: [PATCH] 增加分销商配置

---
 web/web/GwClient.aspx |  155 +++++++++++++++++++++++++--------------------------
 1 files changed, 76 insertions(+), 79 deletions(-)

diff --git a/web/web/GwClient.aspx b/web/web/GwClient.aspx
index e2fac9d..24a6352 100644
--- a/web/web/GwClient.aspx
+++ b/web/web/GwClient.aspx
@@ -83,46 +83,42 @@
                             $("#clientDialog #telephone").val(r.Message.Telephone);
                             $("#clientDialog #chargeType").val(r.Message.ChargeType);
                             $("#clientDialog #smsStatusReport").val(r.Message.SmsStatusReport);
-                            $("#clientDialog #mmsStatusReport").val(r.Message.MmsStatusReport);
-                            $("#clientDialog #customerManager").val(r.Message.CustomerManager);
+                            $("#clientDialog #smsBillType").val(r.Message.SmsBillType);
+                            //$("#clientDialog #mmsStatusReport").val(r.Message.MmsStatusReport);
+                            //$("#clientDialog #customerManager").val(r.Message.CustomerManager);
                             $("#clientDialog #salesman").val(r.Message.Salesman);
                             $("#clientDialog #supportStaff").val(r.Message.SupportStaff);
-                            $("#clientDialog #financialStaff").val(r.Message.FinancialStaff);
+                            //$("#clientDialog #financialStaff").val(r.Message.FinancialStaff);
                             $("#clientDialog #remark").val(r.Message.Remark);
-                            var permissionData = $.evalJSON(r.Message.PermissionData);
-                            $("#clientDialog input[name=permissionData]").iCheck("uncheck");
-                            $.each(permissionData, function (i) {
-                                $("#clientDialog input[name=permissionData][value='" + this + "']").iCheck("check");
-                            });
 
-                            //$("#clientDialog #isEnableWhite").val(r.Message.IsEnableWhite);
+                            $("#clientDialog input[name=isEnableSub]").iCheck("uncheck");
+                            $("#clientDialog input[name=isEnableSub][value='" + r.Message.IsEnableSub + "']").iCheck("check");
+
                             $("#clientDialog input[name=isEnableWhite]").iCheck("uncheck");
                             $("#clientDialog input[name=isEnableWhite][value='" + r.Message.IsEnableWhite + "']").iCheck("check");
-
-                            //$("#clientDialog #isEnableBlack").val(r.Message.IsEnableBlack);
                             $("#clientDialog input[name=isEnableBlack]").iCheck("uncheck");
                             $("#clientDialog input[name=isEnableBlack][value='" + r.Message.IsEnableBlack + "']").iCheck("check");
                             //$("#clientDialog #isRemoteLoginNotice").val(r.Message.IsRemoteLoginNotice);
-                            $("#clientDialog input[name=isRemoteLoginNotice]").iCheck("uncheck");
-                            $("#clientDialog input[name=isRemoteLoginNotice][value='" + r.Message.IsRemoteLoginNotice + "']").iCheck("check");
-                            //$("#clientDialog #isMobileCaptcha").val(r.Message.IsMobileCaptcha);
-                            $("#clientDialog input[name=isMobileCaptcha]").iCheck("uncheck");
-                            $("#clientDialog input[name=isMobileCaptcha][value='" + r.Message.IsMobileCaptcha + "']").iCheck("check");
-                            //$("#clientDialog #isHideMobile").val(r.Message.IsHideMobile);
-                            $("#clientDialog input[name=isHideMobile]").iCheck("uncheck");
-                            $("#clientDialog input[name=isHideMobile][value='" + r.Message.IsHideMobile + "']").iCheck("check");
-                            //$("#clientDialog #isDisplayStatus").val(r.Message.IsDisplayStatus);
-                            $("#clientDialog input[name=isDisplayStatus]").iCheck("uncheck");
-                            $("#clientDialog input[name=isDisplayStatus][value='" + r.Message.IsDisplayStatus + "']").iCheck("check");
-                            //$("#clientDialog #isLoginIpRestrict").val(r.Message.IsLoginIpRestrict);
-                            $("#clientDialog input[name=isLoginIpRestrict]").iCheck("uncheck");
-                            $("#clientDialog input[name=isLoginIpRestrict][value='" + r.Message.IsLoginIpRestrict + "']").iCheck("check");
+                            //$("#clientDialog input[name=isRemoteLoginNotice]").iCheck("uncheck");
+                            //$("#clientDialog input[name=isRemoteLoginNotice][value='" + r.Message.IsRemoteLoginNotice + "']").iCheck("check");
+                            ////$("#clientDialog #isMobileCaptcha").val(r.Message.IsMobileCaptcha);
+                            //$("#clientDialog input[name=isMobileCaptcha]").iCheck("uncheck");
+                            //$("#clientDialog input[name=isMobileCaptcha][value='" + r.Message.IsMobileCaptcha + "']").iCheck("check");
+                            ////$("#clientDialog #isHideMobile").val(r.Message.IsHideMobile);
+                            //$("#clientDialog input[name=isHideMobile]").iCheck("uncheck");
+                            //$("#clientDialog input[name=isHideMobile][value='" + r.Message.IsHideMobile + "']").iCheck("check");
+                            ////$("#clientDialog #isDisplayStatus").val(r.Message.IsDisplayStatus);
+                            //$("#clientDialog input[name=isDisplayStatus]").iCheck("uncheck");
+                            //$("#clientDialog input[name=isDisplayStatus][value='" + r.Message.IsDisplayStatus + "']").iCheck("check");
+                            ////$("#clientDialog #isLoginIpRestrict").val(r.Message.IsLoginIpRestrict);
+                            //$("#clientDialog input[name=isLoginIpRestrict]").iCheck("uncheck");
+                            //$("#clientDialog input[name=isLoginIpRestrict][value='" + r.Message.IsLoginIpRestrict + "']").iCheck("check");
 
-                            $("#clientDialog #isLoginIpAllowGather").val(r.Message.IsLoginIpAllowGather);
-                            //$("#clientDialog #isLoginCityRestrict").val(r.Message.IsLoginCityRestrict);
-                            $("#clientDialog input[name=isLoginCityRestrict]").iCheck("uncheck");
-                            $("#clientDialog input[name=isLoginCityRestrict][value='" + r.Message.IsLoginCityRestrict + "']").iCheck("check");
-                            $("#clientDialog #isLoginCityAllowGather").val(r.Message.IsLoginCityAllowGather);
+                            //$("#clientDialog #isLoginIpAllowGather").val(r.Message.IsLoginIpAllowGather);
+                            ////$("#clientDialog #isLoginCityRestrict").val(r.Message.IsLoginCityRestrict);
+                            //$("#clientDialog input[name=isLoginCityRestrict]").iCheck("uncheck");
+                            //$("#clientDialog input[name=isLoginCityRestrict][value='" + r.Message.IsLoginCityRestrict + "']").iCheck("check");
+                            //$("#clientDialog #isLoginCityAllowGather").val(r.Message.IsLoginCityAllowGather);
                         }
                         catch (e) {
                         }
@@ -254,10 +250,6 @@
                             }
                         }
                     });
-
-                    //swal.close();
-                    //}
-                    //});
                 }
             });
 
@@ -481,7 +473,7 @@
                 document.execCommand('copy');
                 element.remove ? element.remove() : element.removeNode(true);
             }
-            mytek.alert("澶嶅埗鎴愬姛锛�", false);
+            mytek.alert("澶嶅埗鎴愬姛锛�", true);
 
         });
 
@@ -651,7 +643,6 @@
                             <div class="col-sm-4">
                                 <input type="text" name="clientID" id="clientID" value="" class="form-control" />
                             </div>
-                            <!--<span class="help-block m-b-none"><i class="fa fa-exclamation-triangle"></i>璇疯緭鍏ュ叕鍙稿崟浣嶅悕绉�</span>-->
                         </div>
 
                         <div class="form-group">
@@ -661,7 +652,6 @@
                             <div class="col-sm-4">
                                 <input type="text" name="company" id="company" value="" class="form-control" />
                             </div>
-                            <!--<span class="help-block m-b-none"><i class="fa fa-exclamation-triangle"></i>璇疯緭鍏ュ叕鍙稿崟浣嶅悕绉�</span>-->
                         </div>
 
 
@@ -703,53 +693,45 @@
                         </div>
                         <div class="form-group">
                             <label class="control-label  col-sm-2">
-                                璁¤垂鏂瑰紡 <span style="color:red">*</span>
+                                缁撶畻鏂瑰紡 <span style="color:red">*</span>
                             </label>
                             <div class="col-sm-4">
                                     <select name="chargeType" id="chargeType" class="form-control">
-                                        <option value="" ></option>
                                         <option value="1" >棰勪粯璐�</option>
                                         <option value="2" >鍚庝粯璐�</option>
                                     </select>
                             </div>
                         </div>
+
+                        
                         <div class="form-group">
                             <label class="control-label  col-sm-2">
-                                鐭俊鏄惁鏀寔鏄剧ず鐘舵�佹姤鍛� <span style="color:red">*</span>
+                                璁¤垂鏂瑰紡 <span style="color:red">*</span>
                             </label>
                             <div class="col-sm-4">
-                                    <select name="smsStatusReport" id="smsStatusReport" class="form-control">
-                                        <option value="0" >涓嶆樉绀�</option>
-                                        <option value="1" >鍙樉绀烘彁浜ゅけ璐ヤ负鍙戦�佸け璐ョ姸鎬�</option>
-                                        <option value="2" >鏄剧ず鍏ㄩ儴鐘舵��</option>
+                                    <select name="smsBillType" id="smsBillType" class="form-control">
+                                        <option value="0" >鎻愪氦璁¤垂</option>
+                                        <option value="1" >鎴愬姛+鏈煡璁¤垂</option>
+                                        <option value="2" >鎴愬姛璁¤垂</option>
                                     </select>
                             </div>
                         </div>
-                        <!--
+
+
                         <div class="form-group">
                             <label class="control-label  col-sm-2">
-                                褰╀俊鏄惁鏀寔鏄剧ず鐘舵�佹姤鍛� <span style="color:red">*</span>
+                                鐭俊鐘舵�佸紑鏀� <span style="color:red">*</span>
                             </label>
                             <div class="col-sm-4">
-                                    <select name="mmsStatusReport" id="mmsStatusReport" class="form-control">
-                                        <option value="0" >涓嶆樉绀�</option>
-                                        <option value="1" >鍙樉绀烘彁浜ゅけ璐ヤ负鍙戦�佸け璐ョ姸鎬�</option>
+                                    <select name="smsStatusReport" id="smsStatusReport" class="form-control">
+                                        <option value="0" >涓嶅紑鏀剧姸鎬�</option>
+                                        <option value="1" >鍙樉绀虹郴缁熸嫤鎴け璐ョ姸鎬�</option>
                                         <option value="2" >鏄剧ず鍏ㄩ儴鐘舵�佺姸鎬�</option>
                                     </select>
                             </div>
                         </div>
-                        -->
-                        <!--
-                        <div class="form-group">
-                            <label class="control-label  col-sm-2">
-                                褰掑睘涓氬姟鍛�
-                            </label>
-                            <div class="col-sm-4">
-                                <input type="text" name="agent" id="agent" value="" class="form-control" />
-                            </div>
-                        </div>
-                        -->
-                        <div class="form-group">
+                        
+                        <%--<div class="form-group">
                             <label class="control-label  col-sm-2">
                                 褰掑睘瀹㈡埛缁忕悊 <span style="color:red">*</span>
                             </label>
@@ -758,7 +740,7 @@
                                         <%=customerManagerOptions(0)%>
                                     </select>
                             </div>
-                        </div>
+                        </div>--%>
                         <div class="form-group">
                             <label class="control-label  col-sm-2">
                                 褰掑睘涓氬姟鍛� <span style="color:red">*</span>
@@ -779,7 +761,19 @@
                                     </select>
                             </div>
                         </div>
+
+
                         <div class="form-group">
+                            <label class="control-label  col-sm-2">
+                                鏄惁鍏佽寮�瀛愯处鎴�
+                            </label>
+                            <div class="col-sm-4">
+                                <input type="radio" class="icheck-me" name="isEnableSub" value="0" checked="checked" /><label>绂佺敤</label>
+                                <input type="radio" class="icheck-me" name="isEnableSub" value="1" /><label>鍚敤</label>
+                            </div>
+                        </div>
+
+                        <%--<div class="form-group">
                             <label class="control-label  col-sm-2">
                                 褰掑睘璐㈠姟浜哄憳 <span style="color:red">*</span>
                             </label>
@@ -788,13 +782,13 @@
                                         <%=financialStaffOptions(0)%>
                                     </select>
                             </div>
-                        </div>
-                        <div class="form-group">
+                        </div>--%>
+                       <%-- <div class="form-group">
                             <label class="control-label col-sm-2">钀ヤ笟鎵х収</label>
                             <div class="col-sm-4">
                                 <input type="file" name="txt_file" id="txt_file" class="file-loading" />
                             </div>
-                        </div>
+                        </div>--%>
                         <!--
                         <div class="form-group">
                             <label class="control-label  col-sm-2">
@@ -828,7 +822,7 @@
                                 <input type="radio" class="icheck-me" name="isEnableBlack" value="1" /><label>鍚敤</label>
                             </div>
                         </div>
-                        <div class="form-group">
+                        <%--<div class="form-group">
                             <label class="control-label  col-sm-2">
                                 鏄惁寮傚湴鐧诲綍閫氱煡
                             </label>
@@ -854,18 +848,18 @@
                                 <input type="radio" class="icheck-me" name="isHideMobile" value="0" checked="checked" /><label>绂佺敤</label>
                                 <input type="radio" class="icheck-me" name="isHideMobile" value="1" /><label>鍚敤</label>
                             </div>
-                        </div>
-                        <div class="form-group">
+                        </div>--%>
+                        <%--<div class="form-group">
                             <label class="control-label  col-sm-2">
                                 鏄惁鏄剧ず鐘舵�佹帴鍙�
                             </label>
                             <div class="col-sm-8">
-                                <input type="radio" class="icheck-me" name="isDisplayStatus" value="0" checked="checked" /><label>涓嶆樉绀�</label>
-                                <input type="radio" class="icheck-me" name="isDisplayStatus" value="1" /><label>鍙樉绀烘彁浜ゅけ璐ヤ负鍙戦�佸け璐ョ姸鎬�</label>
+                                <input type="radio" class="icheck-me" name="isDisplayStatus" value="0" checked="checked" /><label>涓嶅紑鏀剧姸鎬�</label>
+                                <input type="radio" class="icheck-me" name="isDisplayStatus" value="1" /><label>鍙樉绀虹郴缁熸嫤鎴け璐ョ姸鎬�</label>
                                 <input type="radio" class="icheck-me" name="isDisplayStatus" value="2" /><label>鏄剧ず鍏ㄩ儴鐘舵�佺姸鎬�</label>
                             </div>
-                        </div>
-                        <div class="form-group">
+                        </div>--%>
+                        <%--<div class="form-group">
                             <label class="control-label  col-sm-2">
                                 鏄惁鍚敤鐧诲綍IP闄愬埗
                             </label>
@@ -902,7 +896,7 @@
                                 <!--<span class="help-block m-b-none">閰嶅悎鏄惁鍚敤鐧诲綍鍩庡競闄愬埗涓�璧蜂娇鐢紝澶氫釜闄愬埗鍦板尯鏃讹紝鎸夊崐瑙掗�楀彿","鍒嗛殧銆� </span>-->
                                 <span class="help-block m-b-none">閰嶅悎鏄惁鍚敤鐧诲綍鍩庡競闄愬埗涓�璧蜂娇鐢紝澶氫釜闄愬埗鍦板尯鏃讹紝姣忎竴琛屼负1涓湴鍖猴紙鍩庡競锛夈�� </span>
                             </div>
-                        </div>
+                        </div>--%>
                         <div class="form-group">
                             <label class="control-label  col-sm-2">
                                 澶囨敞
@@ -927,7 +921,7 @@
     <form name="queryForm" method="post" id="queryForm" class="form-inline">
         <div class="form-group">
             <div class="input-group m-b">
-                <span class="input-group-addon">瀹㈡埛璐﹀彿</span>
+                <span class="input-group-addon">瀹㈡埛璐︽埛</span>
                 <input type="text" name="ClientID" id="ClientID" class="form-control" />
             </div>
         </div>
@@ -976,7 +970,10 @@
         <div class="form-group">
             <div class="input-group m-b">
                 <input type="button" value="鏌ヨ" class="btn btn-primary action-query" />&nbsp
-                <input class="btn btn-success action-modal-create" value="鍒涘缓瀹㈡埛" type="button" />&nbsp   
+
+                <% if(IsEnable==1) { %>
+                <input class="btn btn-success action-modal-create" value="鍒涘缓瀹㈡埛" type="button" />&nbsp
+                <%} %>
             </div>
 
         </div>
@@ -988,13 +985,13 @@
         <input class="btn btn-danger action-modal-setProduct" value="鎵归噺鍒嗛厤涓�т骇鍝�" type="button" />            
         <%} %>
         <input class="btn btn-info action-export" value="瀵煎嚭鏁版嵁" type="button" />&nbsp;&nbsp;
-        <table class="table table-striped table-bordered table-hover" id="gwclientTable">
+        <table class="table table-striped table-bordered table-hover" id="gwclientTable" style="margin:10px 0 0 0;">
             <thead>
                 <tr class="header">
                     <th>
                         <input type='checkbox' name='checkAll' id='checkAll' />
                     </th>
-                    <th>瀹㈡埛璐﹀彿
+                    <th>瀹㈡埛璐︽埛
                     </th>
                     <th>鍏徃鍚嶇О</th>
                     <th>鑱旂郴浜�
@@ -1027,7 +1024,7 @@
 
         </table>
     </div>
-    <div id="pager">
+    <div id="pager" style="margin:10px 0 0 0;">
     </div>
 
     <!--鎵归噺淇敼涓�т骇鍝� -->
@@ -1037,7 +1034,7 @@
                 <div class="modal-header">                    
                     <span class="title"><h3>鎵归噺鍒嗛厤涓�т骇鍝�</h3></span><a class="close" data-dismiss="modal" aria-hidden="true">脳</a> 
                     <span class="text-muted">
-                        鎵归噺鍒嗛厤涓�т骇鍝佸皢浼氭洿鏂版墍鏈夐�変腑鐨勮处鍙风殑瀹㈡埛锛�<br />
+                        鎵归噺鍒嗛厤涓�т骇鍝佸皢浼氭洿鏂版墍鏈夐�変腑鐨勮处鎴风殑瀹㈡埛锛�<br />
                         纭畾鍒嗛厤涓嶈兘鍙栨秷锛岃璋ㄦ厧鎿嶄綔锛�<br />
                         </span>
                 </div>

--
Gitblit v1.9.1