From 94f6f81692eee7567e24be26e63bc30460307cbd Mon Sep 17 00:00:00 2001
From: yzh <snbbt@21cn.com>
Date: 星期一, 23 五月 2022 13:48:20 +0800
Subject: [PATCH] 客户归属权限优化
---
web/web/Setting.aspx | 417 ++++++++++++++++++++++++++++++-----------------------------
1 files changed, 210 insertions(+), 207 deletions(-)
diff --git a/web/web/Setting.aspx b/web/web/Setting.aspx
index 2c3c34a..392c5e9 100644
--- a/web/web/Setting.aspx
+++ b/web/web/Setting.aspx
@@ -1,207 +1,210 @@
-锘�<%@ Page Language="C#" masterpagefile="~/Main.master" AutoEventWireup="true" CodeFile="Setting.aspx.cs" Inherits="SettingPage" %>
-<asp:Content ID="Content3" ContentPlaceHolderID="title" runat="Server">
- 鍛婅鍙傛暟璁剧疆
-</asp:Content>
-<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
- <script>
- $(function () {
- var setting = <%=Newtonsoft.Json.JsonConvert.SerializeObject(this.Setting) %>
-
- var smtpProfile = $.evalJSON(setting.SmtpProfile);
- var wxProfile = $.evalJSON(setting.WxProfile);
- var sms57Profile = $.evalJSON(setting.SmsProfile);
-
- $("#SmtpServer").val(smtpProfile.SmtpServer);
- $("#SmtpPort").val(smtpProfile.SmtpPort);
- $("#SmtpUsername").val(smtpProfile.Username);
- $("#SmtpPassword").val(smtpProfile.Password);
- $("#SmtpSenderAddress").val(smtpProfile.SenderAddress);
- $("#SmtpSSL").iCheck(smtpProfile.SSL ? "check": "uncheck");
-
- $("#WxAppID").val(wxProfile.AppID);
- $("#WxAppSecret").val(wxProfile.AppSecret);
- $("#WxMsgTemplateID").val(wxProfile.MsgTemplateID);
-
- $("#SmsUserID").val( sms57Profile.UserID);
- $("#SmsAccount").val(sms57Profile.Account );
- $("#SmsPassword").val(sms57Profile.Password );
- $("#SmsMTURL").val(sms57Profile.MTURL);
- $("#SmsExtNo").val(sms57Profile.ExtNo);
- $("#CmSegments").val(setting.CmSegments);
- $("#CuSegments").val(setting.CuSegments);
- $("#CtSegments").val(setting.CtSegments);
- $("#GwName").val(setting.GwName);
- $("#BlackMoContent").val(setting.BlackMoContent);
-
-
- $(".action-save").on("click", function () {
- smtpProfile.SmtpServer = $("#SmtpServer").val();
- smtpProfile.SmtpPort = $("#SmtpPort").val();
- smtpProfile.Username = $("#SmtpUsername").val();
- smtpProfile.Password = $("#SmtpPassword").val();
- smtpProfile.SenderAddress = $("#SmtpSenderAddress").val();
- smtpProfile.SSL = $("#SmtpSSL").is(":checked") ? 1 : 0;
-
- wxProfile.AppID = $("#WxAppID").val();
- wxProfile.AppSecret = $("#WxAppSecret").val();
- wxProfile.MsgTemplateID = $("#WxMsgTemplateID").val();
- sms57Profile.UserID = $("#SmsUserID").val();
- sms57Profile.Account = $("#SmsAccount").val();
- sms57Profile.Password = $("#SmsPassword").val();
- sms57Profile.MTURL = $("#SmsMTURL").val();
- sms57Profile.ExtNo = $("#SmsExtNo").val();
-
- $.ajax({
- url: "setting.ashx",
- method: "POST",
- data: { action: "save",
- "smsProfile": $.toJSON(sms57Profile),
- "smtpProfile": $.toJSON(smtpProfile),
- "wxProfile": $.toJSON(wxProfile),
- "cmSegments":$("#CmSegments").val(),
- "cuSegments":$("#CuSegments").val(),
- "ctSegments":$("#CtSegments").val(),
- "gwName":$("#GwName").val(),
- "blackMoContent":$("#BlackMoContent").val()
- },
- success: function (result) {
- if (result.OK) {
- mytek.alert(result.Message,"success");
- } else {
- mytek.alert(result.Message,"warning");
- }
- }
- });
- });
- });
- </script>
-</asp:Content>
-<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="Server">
- <form name="DefaultForm" method="post" action="GwSpUpdate.aspx" id="DefaultForm"
- class="form-horizontal">
- <div class="col-sm-12">
- <div class="ibox float-e-margins">
- <div class="ibox-title">
- 鍩虹璁剧疆
- </div>
-
-
-
- <div class="ibox-content">
- <div class="form-group">
- <label class="control-label">
- 缃戝叧鏄剧ず鍚嶇О
- </label>
- <div>
- <input type="text" name="GwName" id="GwName" value="" class="form-control" />
- </div>
- </div>
- <div class="form-group hide">
- <label class="control-label">
- 鐗堟潈淇℃伅
- </label>
- <div>
- <input type="text" name="CopyRights" id="CopyRights" value="" class="form-control" />
- </div>
- </div>
- <div class="form-group hide">
- <label class="control-label">
- 娆㈣繋淇℃伅
- </label>
- <div>
- <input type="text" name="WelcomeMessage" id="WelcomeMessage" value="" class="form-control" />
- </div>
- </div>
-
- <div class="form-group">
- <label class="control-label">
- 鎵嬫満涓婅鑷姩鍔犻粦锛堝涓笂琛屽唴瀹逛箣闂寸敤鑻辨枃鍒嗗彿" ; "鍒嗗壊锛屽唴瀹逛腑鍙互浣跨敤閫氶厤绗�" * ",姣忎釜 * 鍙蜂唬琛�0-10涓瓧绗︼級
- </label>
- <div>
- <input type="text" value="" maxlength="1000" name="BlackMoContent" id="BlackMoContent" class="form-control" onkeyup="value=value.replace(/[^\a-\z\A-\Z0-9\u4E00-\u9FA5\*\;\ ]/g,'')"
- onpaste="value=value.replace(/[^\a-\z\A-\Z0-9\u4E00-\u9FA5\*\;\ ]/g,'')" oncontextmenu = "value=value.replace(/[^\a-\z\A-\Z0-9\u4E00-\u9FA5\*\;\ ]/g,'')" />
- </div>
- </div>
-
- </div>
- </div>
- </div>
- <div class="col-sm-6 ">
- <div class="ibox float-e-margins">
- <div class="ibox-title">
- 鐭俊鍛婅璁剧疆
- </div>
- <div class="ibox-content">
- <div class="form-group">
- <label class="control-label">
- USERID锛堟帴鏈琒MGW缃戝叧骞冲彴锛岃鍊间负0锛�</label>
- <input type="text" value="" name="SmsUserID" id="SmsUserID" class="form-control" />
- </div>
- <div class="form-group">
- <label class="control-label">
- 璐﹀彿</label>
- <input type="text" value="" name="SmsAccount" id="SmsAccount" class="form-control" />
- </div>
- <div class="form-group">
- <label class="control-label">
- 瀵嗙爜</label>
- <input type="password" value="" name="SmsPassword" id="SmsPassword" class="form-control" />
- </div>
- <div class="form-group">
- <label class="control-label">
- 涓嬪彂鍙风爜锛堟垨鎵╁睍鐮侊級</label>
- <input type="text" value="" name="SmsExtNo" id="SmsExtNo" class="form-control" />
- </div>
- <div class="form-group">
- <label class="control-label">
- 鐭俊鎻愪氦鍦板潃</label>
- <input type="text" value="" name="SmsMTURL" id="SmsMTURL" class="form-control" />
- </div>
- </div>
- </div>
- </div>
- <div class="col-sm-6 ">
- <div class="ibox float-e-margins">
- <div class="ibox-title">
- 閭欢鍛婅璁剧疆
- </div>
- <div class="ibox-content">
- <div class="form-group ">
- <label class="control-label">
- SMTP鏈嶅姟鍣�</label>
- <input type="text" value="" name="SmtpServer" id="SmtpServer" class="form-control" />
- </div>
- <div class="form-group">
- <label class="control-label">
- SMTP绔彛</label>
- <input type="text" value="" name="SmtpPort" id="SmtpPort" class="form-control" />
- </div>
- <div class="form-group">
- <label class="control-label">
- 鍙戦�佹柟閭欢鍦板潃</label><input type="text" value="" name="SmtpSenderAddress" id="SmtpSenderAddress"
- class="form-control" />
- </div>
- <div class="form-group">
- <label class="control-label">
- 鐧诲綍璐﹀彿</label><input type="text" value="" name="SmtpUsername" id="SmtpUsername" class="form-control" />
- </div>
- <div class="form-group ">
- <label class="control-label">
- 鐧诲綍瀵嗙爜</label>
- <input type="password" value="" name="SmtpPassword" id="SmtpPassword" class="form-control" />
- </div>
- <div class="form-group ">
- <label class="control-label">
- 鏄惁鏀寔SSL</label>
- <input type="checkbox" value="" name="SmtpSSL" id="SmtpSSL" class="form-control icheck-me" />
- </div>
- </div>
- </div>
- </div>
- <div class="ibox">
- <div class="ibox-content">
- <input class="action-save btn btn-primary pull-right" value="淇濆瓨" type="button" />
- </div>
- </div>
- </form>
-</asp:Content>
+锘�<%@ Page Language="C#" masterpagefile="~/Main.master" AutoEventWireup="true" CodeFile="Setting.aspx.cs" Inherits="SettingPage" %>
+<asp:Content ID="Content3" ContentPlaceHolderID="title" runat="Server">
+ 鍛婅鍙傛暟璁剧疆
+</asp:Content>
+<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
+ <script>
+ $(function () {
+ var setting = <%=Newtonsoft.Json.JsonConvert.SerializeObject(this.Setting) %>
+
+ var smtpProfile = $.evalJSON(setting.SmtpProfile);
+ var wxProfile = $.evalJSON(setting.WxProfile);
+ var sms57Profile = $.evalJSON(setting.SmsProfile);
+
+ $("#SmtpServer").val(smtpProfile.SmtpServer);
+ $("#SmtpPort").val(smtpProfile.SmtpPort);
+ $("#SmtpUsername").val(smtpProfile.Username);
+ $("#SmtpPassword").val(smtpProfile.Password);
+ $("#SmtpSenderAddress").val(smtpProfile.SenderAddress);
+ $("#SmtpSSL").iCheck(smtpProfile.SSL ? "check": "uncheck");
+
+ $("#WxAppID").val(wxProfile.AppID);
+ $("#WxAppSecret").val(wxProfile.AppSecret);
+ $("#WxMsgTemplateID").val(wxProfile.MsgTemplateID);
+
+ $("#SmsUserID").val( sms57Profile.UserID);
+ $("#SmsAccount").val(sms57Profile.Account );
+ $("#SmsPassword").val(sms57Profile.Password );
+ $("#SmsMTURL").val(sms57Profile.MTURL);
+ $("#SmsExtNo").val(sms57Profile.ExtNo);
+ $("#CmSegments").val(setting.CmSegments);
+ $("#CuSegments").val(setting.CuSegments);
+ $("#CtSegments").val(setting.CtSegments);
+ $("#GwName").val(setting.GwName);
+ $("#BlackMoContent").val(setting.BlackMoContent);
+
+
+
+ $(".action-save").on("click", function () {
+ smtpProfile.SmtpServer = $("#SmtpServer").val();
+ smtpProfile.SmtpPort = $("#SmtpPort").val();
+ smtpProfile.Username = $("#SmtpUsername").val();
+ smtpProfile.Password = $("#SmtpPassword").val();
+ smtpProfile.SenderAddress = $("#SmtpSenderAddress").val();
+ smtpProfile.SSL = $("#SmtpSSL").is(":checked") ? 1 : 0;
+
+ wxProfile.AppID = $("#WxAppID").val();
+ wxProfile.AppSecret = $("#WxAppSecret").val();
+ wxProfile.MsgTemplateID = $("#WxMsgTemplateID").val();
+ sms57Profile.UserID = $("#SmsUserID").val();
+ sms57Profile.Account = $("#SmsAccount").val();
+ sms57Profile.Password = $("#SmsPassword").val();
+ sms57Profile.MTURL = $("#SmsMTURL").val();
+ sms57Profile.ExtNo = $("#SmsExtNo").val();
+
+ $.ajax({
+ url: "setting.ashx",
+ method: "POST",
+ data: { action: "save",
+ "smsProfile": $.toJSON(sms57Profile),
+ "smtpProfile": $.toJSON(smtpProfile),
+ "wxProfile": $.toJSON(wxProfile),
+ "cmSegments":$("#CmSegments").val(),
+ "cuSegments":$("#CuSegments").val(),
+ "ctSegments":$("#CtSegments").val(),
+ "gwName":$("#GwName").val(),
+ "blackMoContent":$("#BlackMoContent").val()
+
+ },
+ success: function (result) {
+ if (result.OK) {
+ mytek.alert(result.Message,"success");
+ } else {
+ mytek.alert(result.Message,"warning");
+ }
+ }
+ });
+ });
+ });
+ </script>
+</asp:Content>
+<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="Server">
+ <form name="DefaultForm" method="post" action="GwSpUpdate.aspx" id="DefaultForm"
+ class="form-horizontal">
+ <div class="col-sm-12">
+ <div class="ibox float-e-margins">
+ <div class="ibox-title">
+ 鍩虹璁剧疆
+ </div>
+
+
+
+
+ <div class="ibox-content">
+ <div class="form-group">
+ <label class="control-label">
+ 缃戝叧鏄剧ず鍚嶇О
+ </label>
+ <div>
+ <input type="text" name="GwName" id="GwName" value="" class="form-control" />
+ </div>
+ </div>
+ <div class="form-group hide">
+ <label class="control-label">
+ 鐗堟潈淇℃伅
+ </label>
+ <div>
+ <input type="text" name="CopyRights" id="CopyRights" value="" class="form-control" />
+ </div>
+ </div>
+ <div class="form-group hide">
+ <label class="control-label">
+ 娆㈣繋淇℃伅
+ </label>
+ <div>
+ <input type="text" name="WelcomeMessage" id="WelcomeMessage" value="" class="form-control" />
+ </div>
+ </div>
+
+ <div class="form-group">
+ <label class="control-label">
+ 鎵嬫満涓婅鑷姩鍔犻粦锛堝涓笂琛屽唴瀹逛箣闂寸敤鑻辨枃鍒嗗彿" ; "鍒嗗壊锛屽唴瀹逛腑鍙互浣跨敤閫氶厤绗�" * ",姣忎釜 * 鍙蜂唬琛�0-10涓瓧绗︼級
+ </label>
+ <div>
+ <input type="text" value="" maxlength="1000" name="BlackMoContent" id="BlackMoContent" class="form-control" onkeyup="value=value.replace(/[^\a-\z\A-\Z0-9\u4E00-\u9FA5\*\;\ ]/g,'')"
+ onpaste="value=value.replace(/[^\a-\z\A-\Z0-9\u4E00-\u9FA5\*\;\ ]/g,'')" oncontextmenu = "value=value.replace(/[^\a-\z\A-\Z0-9\u4E00-\u9FA5\*\;\ ]/g,'')" />
+ </div>
+ </div>
+
+ </div>
+ </div>
+ </div>
+ <div class="col-sm-6 ">
+ <div class="ibox float-e-margins">
+ <div class="ibox-title">
+ 鐭俊鍛婅璁剧疆
+ </div>
+ <div class="ibox-content">
+ <div class="form-group">
+ <label class="control-label">
+ USERID锛堟帴鏈琒MGW缃戝叧骞冲彴锛岃鍊间负0锛�</label>
+ <input type="text" value="" name="SmsUserID" id="SmsUserID" class="form-control" />
+ </div>
+ <div class="form-group">
+ <label class="control-label">
+ 璐﹀彿</label>
+ <input type="text" value="" name="SmsAccount" id="SmsAccount" class="form-control" />
+ </div>
+ <div class="form-group">
+ <label class="control-label">
+ 瀵嗙爜</label>
+ <input type="password" value="" name="SmsPassword" id="SmsPassword" class="form-control" />
+ </div>
+ <div class="form-group">
+ <label class="control-label">
+ 涓嬪彂鍙风爜锛堟垨鎵╁睍鐮侊級</label>
+ <input type="text" value="" name="SmsExtNo" id="SmsExtNo" class="form-control" />
+ </div>
+ <div class="form-group">
+ <label class="control-label">
+ 鐭俊鎻愪氦鍦板潃</label>
+ <input type="text" value="" name="SmsMTURL" id="SmsMTURL" class="form-control" />
+ </div>
+ </div>
+ </div>
+ </div>
+ <div class="col-sm-6 ">
+ <div class="ibox float-e-margins">
+ <div class="ibox-title">
+ 閭欢鍛婅璁剧疆
+ </div>
+ <div class="ibox-content">
+ <div class="form-group ">
+ <label class="control-label">
+ SMTP鏈嶅姟鍣�</label>
+ <input type="text" value="" name="SmtpServer" id="SmtpServer" class="form-control" />
+ </div>
+ <div class="form-group">
+ <label class="control-label">
+ SMTP绔彛</label>
+ <input type="text" value="" name="SmtpPort" id="SmtpPort" class="form-control" />
+ </div>
+ <div class="form-group">
+ <label class="control-label">
+ 鍙戦�佹柟閭欢鍦板潃</label><input type="text" value="" name="SmtpSenderAddress" id="SmtpSenderAddress"
+ class="form-control" />
+ </div>
+ <div class="form-group">
+ <label class="control-label">
+ 鐧诲綍璐﹀彿</label><input type="text" value="" name="SmtpUsername" id="SmtpUsername" class="form-control" />
+ </div>
+ <div class="form-group ">
+ <label class="control-label">
+ 鐧诲綍瀵嗙爜</label>
+ <input type="password" value="" name="SmtpPassword" id="SmtpPassword" class="form-control" />
+ </div>
+ <div class="form-group ">
+ <label class="control-label">
+ 鏄惁鏀寔SSL</label>
+ <input type="checkbox" value="" name="SmtpSSL" id="SmtpSSL" class="form-control icheck-me" />
+ </div>
+ </div>
+ </div>
+ </div>
+ <div class="ibox">
+ <div class="ibox-content">
+ <input class="action-save btn btn-primary pull-right" value="淇濆瓨" type="button" />
+ </div>
+ </div>
+ </form>
+</asp:Content>
--
Gitblit v1.9.1