| | |
| | | <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server"> |
| | | <%--<link href="css/plugins/bootstrap-fileinput/fileinput.min.css" rel="stylesheet"/> |
| | | <script src="js/plugins/bootstrap-fileinput/fileinput.min.js" type="text/javascript"></script>--%> |
| | | <script> |
| | | <script type="text/javascript"> |
| | | $(function () { |
| | | |
| | | $("#pager").Pager({ |
| | |
| | | var Company = $("#Company").val(); |
| | | var ClientName = $("#ClientName").val(); |
| | | var Telephone = $("#Telephone").val(); |
| | | var Agent = $("#Agent").val(); |
| | | //var Agent = $("#Agent").val(); |
| | | var Agent = ""; |
| | | var Salesman = $("#Salesman").val(); |
| | | var SupportStaff = $("#SupportStaff").val(); |
| | | var ProductId = $("#ProductId").val(); |
| | | var IsEnable = <%=IsEnable%>; |
| | | $.ajax({ |
| | | url: "GwClient.ashx", |
| | | type: "POST", |
| | | data: { action: "loadGwClientPageList", ClientID: ClientID, Company: Company, ClientName: ClientName, Telephone: Telephone, Agent: Agent, Salesman: Salesman, ProductId: ProductId , pageSize: $("#pager").Pager("getPageSize"), pageIndex: $("#pager").Pager("getPageIndex") }, |
| | | data: { action: "loadGwClientPageList", ClientID: ClientID, Company: Company, ClientName: ClientName, Telephone: Telephone, Agent: Agent, Salesman: Salesman, SupportStaff: SupportStaff, ProductId: ProductId, IsEnable: IsEnable , pageSize: $("#pager").Pager("getPageSize"), pageIndex: $("#pager").Pager("getPageIndex") }, |
| | | success: function (result) { |
| | | if (result.OK) { |
| | | $("#gwclientTable tbody").html(result.Message.Table); |
| | |
| | | loadPageList(); |
| | | |
| | | $(document).on("click", ".action-modal-create", function () { |
| | | $("#clientDialog .modal-title").text("创建客户账户"); |
| | | $("#clientDialog .modal-title").text("创建客户信息"); |
| | | $("#clientDialog input").attr("readonly", false); |
| | | $("#clientDialog input[name=action]").val("save"); |
| | | |
| | |
| | | //刷新一次随机密码 |
| | | $("#password").val(randomString(8)); |
| | | |
| | | $(".pwdCss").show(); |
| | | |
| | | }); |
| | | |
| | | $(document).on("click", ".action-generate-password", function () { |
| | | $("#password").val(randomString(8)); |
| | | }); |
| | | |
| | | //编辑 |
| | | $(document).on("click", ".action-modal-edit", function () { |
| | | $("#clientDialog .modal-title").text("修改客户资料"); |
| | | $("#clientDialog input[name=action]").val("update"); |
| | |
| | | $("#clientDialog #id").val(r.Message.Id); |
| | | $("#clientDialog #clientID").val(r.Message.ClientID); |
| | | $("#clientDialog #company").val(r.Message.Company); |
| | | $("#clientDialog #password").val(r.Message.Password); |
| | | //$("#clientDialog #password").val(r.Message.Password); |
| | | $("#clientDialog #password").val(""); |
| | | //编辑时密码框隐藏 |
| | | $(".pwdCss").hide(); |
| | | |
| | | $("#clientDialog #clientName").val(r.Message.ClientName); |
| | | $("#clientDialog #agent").val(r.Message.Agent); |
| | | $("#clientDialog #address").val(r.Message.Address); |
| | |
| | | $.each(permissionData, function (i) { |
| | | $("#clientDialog input[name=permissionData][value='" + this + "']").iCheck("check"); |
| | | }); |
| | | |
| | | //$("#clientDialog #isEnableWhite").val(r.Message.IsEnableWhite); |
| | | $("#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 #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) { |
| | | } |
| | |
| | | }, "json"); |
| | | }); |
| | | |
| | | //免密登录 |
| | | $(document).on("click", ".action-modal-login", function () { |
| | | var url = $(this).data("url"); |
| | | var id = $(this).data("id"); |
| | | |
| | | var milliseconds = new Date().getTime(); //获得当前时间的毫秒值 |
| | | url += "&t=" + milliseconds; |
| | | //console.log(url); |
| | | window.open(url, "_blank"); |
| | | |
| | | |
| | | }); |
| | | |
| | | //黑名单 |
| | | $(document).on("click", ".action-modal-black", function () { |
| | | var id = $(this).data("id"); |
| | | $.get("gwclient.ashx?action=getBlack", { clientID: id }, function (r) { |
| | |
| | | }, "json"); |
| | | }); |
| | | |
| | | //白名单 |
| | | $(document).on("click", ".action-modal-white", function () { |
| | | var id = $(this).data("id"); |
| | | $.get("gwclient.ashx?action=getWhite", { clientID: id }, function (r) { |
| | |
| | | }, "json"); |
| | | }); |
| | | |
| | | //面板页提交:隐藏面板(白名单,黑名单,修改密码) |
| | | $("#blackForm, #whiteForm").ajaxForm({ |
| | | success: function (r) { |
| | | mytek.alert(r.Message, r.OK, function () { |
| | | $("#whiteDialog, #blackDialog").modal("hide"); |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | //面板页提交:重新加载列表 |
| | | $("#clientForm, #updatePwdForm").ajaxForm({ |
| | | success: function (r) { |
| | | mytek.alert(r.Message, r.OK, function () { |
| | | r.OK && (window.location.reload()); |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | //修改密码:打开界面 |
| | | $(document).on("click", ".action-modal-updatePwd", function () { |
| | | //$("#updatePwdDialog .modal-title").text("修改客户资料"); |
| | | $("#updatePwdDialog input[name=action]").val("updatePwd"); |
| | | var id = $(this).data("id"); |
| | | |
| | | $("#updatePwdDialog input[name='clientID']").val(id); |
| | | $("#updatePwdDialog #newPwd").val(""); |
| | | |
| | | $("#updatePwdDialog").modal("show"); |
| | | |
| | | }); |
| | | |
| | | //修改分配个性产品:显示客户对应的分配个性产品 |
| | | $(document).on("click", ".action-modal-updateProduct", function () { |
| | | var clientId = $(this).data("id"); |
| | | $.get("GwClient.ashx", { action: "getPersonalityProduct", clientId: clientId }, function (result) { |
| | | if (!result.OK) { |
| | | mytek.alert(result.Message, result.OK); |
| | | } |
| | | else { |
| | | $("#updateProductDialog input[name='clientID']").val(clientId); |
| | | $("#updateProductDialog #_ProductId").prop("checked", false); |
| | | $.each(result.Message, function (i) { |
| | | $("#updateProductDialog #_ProductId[value='" + this + "']").prop("checked", true); |
| | | }); |
| | | } |
| | | $("#updateProductDialog").modal("show"); |
| | | }, "json"); |
| | | }); |
| | | |
| | | //修改分配个性产品:修改确认 |
| | | $(document).on("click", ".action-updateProduct", function () { |
| | | var productIdArray = []; |
| | | |
| | | mytek.confirm("是否需要修改客户分配个性产品?", "确认分配个性产品,请谨慎操作!", function (b) { |
| | | if (b) { |
| | | $("#updateProductDialog #_ProductId").each(function () { |
| | | if ($(this).is(":checked")) { |
| | | productIdArray.push($(this).val()); |
| | | } |
| | | }); |
| | | |
| | | //var clientId = $("#updateProductDialog").data("id"); |
| | | var clientId = $("#updateProductDialog input[name='clientID']").val(); |
| | | $.ajax({ |
| | | url: "GwClient.ashx", |
| | | type: "POST", |
| | | data: { action: "updateProduct", clientId: clientId, productIdArray: $.toJSON(productIdArray) }, |
| | | success: function (result) { |
| | | if (result.OK) { |
| | | $("#updateProductDialog").modal("hide"); |
| | | loadPageList(); |
| | | } else { |
| | | mytek.alert(result.Message, result.OK); |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | |
| | | //充值 |
| | | $(document).on("click", ".action-modal-orderCreate", function () { |
| | | var clientId = $(this).data("id"); //客户账号 |
| | | //window.open("gwOrderCreate.aspx?spId=" + spID, 'gwOrderCreate'); |
| | | window.location.href = "gwOrderCreate.aspx?clientId=" + clientId; |
| | | }); |
| | | |
| | | //充值日志 |
| | | $(document).on("click", ".action-modal-orderLog", function () { |
| | | var clientId = $(this).data("id"); |
| | | window.location.href = "GwOrderList.aspx?clientId=" + clientId + ""; |
| | | }); |
| | | |
| | | //启用或停用 |
| | | $(document).on("click", ".action-modal-updateStatus", function () { |
| | | //data的属性参数不能含有大写字母。 |
| | | var clientId = $(this).data("id"); |
| | | var isEnable = $(this).data("status"); |
| | | var statusMsg = ""; |
| | | if (isEnable == 0) { |
| | | statusMsg = "【停用】"; |
| | | } |
| | | else { |
| | | statusMsg = "【启用】"; |
| | | } |
| | | mytek.confirm("是否需要" + statusMsg + "该信息?", "确认更新信息状态,请谨慎操作!", function (b) { |
| | | if (b) { |
| | | $.post("gwclient.ashx", { "action": "updateStatus", clientId: clientId, isEnable: isEnable }, function (r) { |
| | | mytek.alert(r.Message, r.OK, function () { |
| | | loadPageList(); |
| | | }); |
| | | }); |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //删除 |
| | | $(document).on("click", ".action-delete", function () { |
| | | var id = $(this).data("id"); |
| | | mytek.confirm("是否需要删除该客户?", "客户删除后将无法恢复,请谨慎操作!", function (b) { |
| | |
| | | }); |
| | | }); |
| | | |
| | | $("#blackForm,#whiteForm").ajaxForm({ |
| | | success: function (r) { |
| | | mytek.alert(r.Message, r.OK, function () { |
| | | $("#whiteDialog,#blackDialog").modal("hide"); |
| | | }); |
| | | } |
| | | /** |
| | | //重置密码 |
| | | $(document).on("click", ".action-modal-resetPwd", function () { |
| | | var id = $(this).data("id"); |
| | | mytek.confirm("重置密码?", "是否重置密码?请谨慎操作!", function (b) { |
| | | if (b) { |
| | | $.post("gwclient.ashx", { action: "resetPwd", clientID: id }, function (r) { |
| | | mytek.alert(r.Message, r.OK, function () { |
| | | window.location.reload(); |
| | | }); |
| | | }); |
| | | } |
| | | }); |
| | | }); |
| | | **/ |
| | | |
| | | $("#clientForm").ajaxForm({ |
| | | success: function (r) { |
| | | mytek.alert(r.Message, r.OK, function () { |
| | | r.OK && (window.location.reload()); |
| | | }); |
| | | } |
| | | }); |
| | | }) |
| | | |
| | | //全选 |
| | |
| | | $("input[name='checkbox']").prop("checked", $(this).is(":checked")); |
| | | }); |
| | | |
| | | //批量分配个性产品 |
| | | //批量分配个性产品:打开界面 |
| | | $(document).on("click", ".action-modal-setProduct", function () { |
| | | var idArray = []; |
| | | |
| | |
| | | }); |
| | | }); |
| | | |
| | | //导出数据 |
| | | $(document).on("click", ".action-export", function () { |
| | | var ClientID = $("#ClientID").val(); |
| | | var Company = $("#Company").val(); |
| | | var ClientName = $("#ClientName").val(); |
| | | var Telephone = $("#Telephone").val(); |
| | | //var Agent = $("#Agent").val(); |
| | | var Agent = ""; |
| | | var Salesman = $("#Salesman").val(); |
| | | var SupportStaff = $("#SupportStaff").val(); |
| | | var ProductId = $("#ProductId").val(); |
| | | var IsEnable = <%=IsEnable%>; |
| | | var url = "ExportDocument.aspx?action=exportGwClient&ClientID=" + ClientID + "&Company=" + Company + "&ClientName=" + ClientName + "&Telephone=" + Telephone + "&Agent=" + Agent + "&Salesman=" + Salesman + "&SupportStaff=" + SupportStaff + "&ProductId=" + ProductId + "&IsEnable=" + IsEnable + ""; |
| | | |
| | | window.location.href = url; |
| | | }); |
| | | |
| | | |
| | | //添加客户:生成密码 |
| | | $(document).on("click", ".action-generate-password", function () { |
| | | $("#password").val(randomString(8)); |
| | | }); |
| | | |
| | | //添加客户:复制密码 |
| | | $(document).on("click", ".action-copyPwd", function () { |
| | | var value = $("#password").val(); |
| | | if (value == "") { |
| | | mytek.alert("请生成密码!"); |
| | | return false; |
| | | } |
| | | // for ie |
| | | if (window.clipboardData) { |
| | | window.clipboardData.clearData(); |
| | | window.clipboardData.setData('text', value); |
| | | } |
| | | // for modern browser |
| | | else if (document.execCommand) { |
| | | var element = document.createElement('SPAN'); |
| | | element.textContent = value; |
| | | document.body.appendChild(element); |
| | | if (document.selection) { |
| | | var range = document.body.createTextRange(); |
| | | range.moveToElementText(element); |
| | | range.select(); |
| | | } else if (window.getSelection) { |
| | | var range = document.createRange(); |
| | | range.selectNode(element); |
| | | window.getSelection().removeAllRanges(); |
| | | window.getSelection().addRange(range); |
| | | } |
| | | document.execCommand('copy'); |
| | | element.remove ? element.remove() : element.removeNode(true); |
| | | } |
| | | mytek.alert("复制成功!", false); |
| | | |
| | | }); |
| | | |
| | | //修改密码:生成密码 |
| | | $(document).on("click", ".action-generate-newPwd", function () { |
| | | $("#newPwd").val(randomString(8)); |
| | | }); |
| | | |
| | | //修改密码:复制密码 |
| | | $(document).on("click", ".action-copyNewPwd", function () { |
| | | var value = $("#newPwd").val(); |
| | | if (value == "") { |
| | | mytek.alert("请生成密码!"); |
| | | return false; |
| | | } |
| | | |
| | | // for ie |
| | | if (window.clipboardData) { |
| | | window.clipboardData.clearData(); |
| | | window.clipboardData.setData('text', value); |
| | | } |
| | | // for modern browser |
| | | else if (document.execCommand) { |
| | | var element = document.createElement('SPAN'); |
| | | element.textContent = value; |
| | | document.body.appendChild(element); |
| | | if (document.selection) { |
| | | var range = document.body.createTextRange(); |
| | | range.moveToElementText(element); |
| | | range.select(); |
| | | } else if (window.getSelection) { |
| | | var range = document.createRange(); |
| | | range.selectNode(element); |
| | | window.getSelection().removeAllRanges(); |
| | | window.getSelection().addRange(range); |
| | | } |
| | | document.execCommand('copy'); |
| | | element.remove ? element.remove() : element.removeNode(true); |
| | | } |
| | | mytek.alert("复制成功!", false); |
| | | |
| | | }); |
| | | |
| | | |
| | | }); |
| | | </script> |
| | | |
| | | |
| | | </asp:Content> |
| | | <asp:Content ID="Content2" ContentPlaceHolderID="title" runat="Server">客户信息</asp:Content> |
| | | <asp:Content ID="Content3" ContentPlaceHolderID="content" runat="Server"> |
| | |
| | | </form> |
| | | </div> |
| | | |
| | | <!--创建客户账户面板 --> |
| | | <!--重置密码或修改密码 --> |
| | | <div class="modal inmodal fade" id="updatePwdDialog" tabindex="-1" role="dialog" aria-hidden="true"> |
| | | <form name="updatePwdForm" method="post" action="gwclient.ashx?action=updatePwd" id="updatePwdForm" |
| | | class="form-horizontal"> |
| | | <div class="modal-dialog modal-lg"> |
| | | <div class="modal-content "> |
| | | <div class="modal-header"> |
| | | <button type="button" class="close" data-dismiss="modal"> |
| | | <span aria-hidden="true">×</span><span class="sr-only">Close</span></button> |
| | | <h4 class="modal-title">客户信息密码修改 |
| | | </h4> |
| | | 请先执行【生成密码】后,再执行【复制密码】。 |
| | | </div> |
| | | <div class="modal-body"> |
| | | <input type="hidden" value="" name="clientID" /> |
| | | <div class="form-group"> |
| | | <label class="control-label col-sm-2"> |
| | | 登录密码 <span style="color:red">*</span> |
| | | </label> |
| | | <div class="col-sm-4"> |
| | | <input type="password" name="newPwd" id="newPwd" value="" class="form-control" /> |
| | | </div> |
| | | <div class="col-sm-6"> |
| | | <a class="btn btn-xs btn-primary action-generate-newPwd ">生成密码</a> |
| | | <a class="btn btn-xs btn-success action-copyNewPwd " >复制密码</a> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="modal-footer"> |
| | | <button class="btn btn-warning" data-dismiss="modal" aria-hidden="true"> |
| | | 取消</button> |
| | | <button class="btn btn-primary action-save"> |
| | | 保存</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </form> |
| | | </div> |
| | | |
| | | |
| | | <!--创建客户信息面板 --> |
| | | <div class="modal inmodal fade" id="clientDialog" tabindex="-1" role="dialog" aria-hidden="true"> |
| | | <form name="clientForm" method="post" action="gwclient.ashx" id="clientForm" class="form-horizontal"> |
| | | <div class="modal-dialog modal-lg"> |
| | |
| | | <div class="modal-header"> |
| | | <button type="button" class="close" data-dismiss="modal"> |
| | | <span aria-hidden="true">×</span><span class="sr-only">Close</span></button> |
| | | <h4 class="modal-title">创建/修改客户 |
| | | <h4 class="modal-title">创建/修改客户信息 |
| | | </h4> |
| | | <input name="action" value="add" type="hidden" /> |
| | | <input name="id" id="id" type="hidden" value="" /> |
| | |
| | | |
| | | <div class="form-group"> |
| | | <label class="control-label col-sm-2"> |
| | | 公司名称(全称) |
| | | 公司名称(全称) <span style="color:red">*</span> |
| | | </label> |
| | | <div class="col-sm-4"> |
| | | <input type="text" name="company" id="company" value="" class="form-control" /> |
| | |
| | | </div> |
| | | |
| | | |
| | | <div class="form-group"> |
| | | <div class="form-group pwdCss"> |
| | | <label class="control-label col-sm-2"> |
| | | 登录密码 <span style="color:red">*</span> |
| | | </label> |
| | | <div class="col-sm-4"> |
| | | <input type="text" name="password" id="password" value="123456" class="form-control" /> |
| | | <input type="password" name="password" id="password" value="123456" class="form-control" /> |
| | | </div> |
| | | <div class="col-sm-6"> |
| | | <a class="btn btn-xs btn-primary action-generate-password ">生成密码</a> |
| | | <a class="btn btn-xs btn-success action-copyPwd " >复制密码</a> |
| | | </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"> |
| | | <input type="text" name="clientName" id="clientName" value="" class="form-control" /> |
| | |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <!-- |
| | | <div class="form-group"> |
| | | <label class="control-label col-sm-2"> |
| | | 彩信是否支持显示状态报告 <span style="color:red">*</span> |
| | |
| | | </select> |
| | | </div> |
| | | </div> |
| | | --> |
| | | <!-- |
| | | <div class="form-group"> |
| | | <label class="control-label col-sm-2"> |
| | |
| | | </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="supportStaff" id="supportStaff" class="form-control"> |
| | |
| | | </select> |
| | | </div> |
| | | </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 class="form-group"> |
| | | <label class="control-label col-sm-2"> |
| | | 权限管理 |
| | | </label> |
| | | <div class="col-sm-10"> |
| | | <input type="checkbox" class="icheck-me" value="GwClientList.aspx" name="permissionData" />代理商管理(*是否支持创建下级代理) |
| | | <!-- |
| | | <!//-- |
| | | <input type="checkbox" class="icheck-me" value="LgSmsDetailReport.aspx" name="permissionData" />查看状态报告 |
| | | <input type="checkbox" class="icheck-me" value="1" name="permissionData" />发送权限 |
| | | <input type="checkbox" class="icheck-me" value="2" name="permissionData" />查看数据权限 |
| | | --> |
| | | --//> |
| | | </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="isEnableWhite" value="0" /><label>禁用</label> |
| | | <input type="radio" class="icheck-me" name="isEnableWhite" value="1" /><label>启用</label> |
| | | </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="isEnableBlack" value="0" checked="checked" /><label>禁用</label> |
| | | <input type="radio" class="icheck-me" name="isEnableBlack" value="1" /><label>启用</label> |
| | | </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="isRemoteLoginNotice" value="0" checked="checked" /><label>禁用</label> |
| | | <input type="radio" class="icheck-me" name="isRemoteLoginNotice" value="1" /><label>启用</label> |
| | | </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="isMobileCaptcha" value="0" checked="checked" /><label>禁用</label> |
| | | <input type="radio" class="icheck-me" name="isMobileCaptcha" value="1" /><label>启用</label> |
| | | </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="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"> |
| | | <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="2" /><label>显示全部状态状态</label> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="control-label col-sm-2"> |
| | | 是否启用登录IP限制 |
| | | </label> |
| | | <div class="col-sm-4"> |
| | | <input type="radio" class="icheck-me" name="isLoginIpRestrict" value="0" checked="checked" /><label>禁用</label> |
| | | <input type="radio" class="icheck-me" name="isLoginIpRestrict" value="1" /><label>启用</label> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="control-label col-sm-2"> |
| | | 登录IP允许集合 |
| | | </label> |
| | | <div class="col-sm-4"> |
| | | <textarea class="form-control" name="isLoginIpAllowGather" id="isLoginIpAllowGather" rows="4" ></textarea> |
| | | <!--<span class="help-block m-b-none">配合是否启用登录IP限制一起使用,多个限制IP时,按半角逗号","分隔。可使用IP段,如:202.203.1.*。</span>--> |
| | | <span class="help-block m-b-none">配合是否启用登录IP限制一起使用,多个限制IP时,每一行为1个IP。可使用IP段,如:202.203.1.*。</span> |
| | | </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="isLoginCityRestrict" value="0" checked="checked" /><label>禁用</label> |
| | | <input type="radio" class="icheck-me" name="isLoginCityRestrict" value="1" /><label>启用</label> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="control-label col-sm-2"> |
| | | 登录地区(城市)允许集合 |
| | | </label> |
| | | <div class="col-sm-4"> |
| | | <textarea class="form-control" name="isLoginCityAllowGather" id="isLoginCityAllowGather" rows="4" ></textarea> |
| | | <!--<span class="help-block m-b-none">配合是否启用登录城市限制一起使用,多个限制地区时,按半角逗号","分隔。 </span>--> |
| | | <span class="help-block m-b-none">配合是否启用登录城市限制一起使用,多个限制地区时,每一行为1个地区(城市)。 </span> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | |
| | | </form> |
| | | </div> |
| | | |
| | | <!-- 条件查询 --> |
| | | <form name="queryForm" method="post" id="queryForm" class="form-inline"> |
| | | <div class="form-group"> |
| | | <div class="input-group m-b"> |
| | |
| | | </div> |
| | | <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="ClientName" id="ClientName" class="form-control" /> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="form-group"> |
| | | <div class="input-group m-b"> |
| | | <span class="input-group-addon">使用产品</span> |
| | | <span class="input-group-addon">归属客服人员</span> |
| | | <select name="SupportStaff" id="SupportStaff" class="form-control"> |
| | | <%=supportStaffOptions(-1)%> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <div class="input-group m-b"> |
| | | <span class="input-group-addon">已分配激活产品</span> |
| | | <select name="ProductId" id="ProductId" class="form-control"> |
| | | <%=GetProductOptions("")%> |
| | | </select> |
| | |
| | | <div class="form-group"> |
| | | <div class="input-group m-b"> |
| | | <input type="button" value="查询" class="btn btn-primary action-query" />  |
| | | <input class="btn btn-success action-modal-create" value="创建客户" type="button" />  |
| | | <input class="btn btn-danger action-modal-setProduct" value="批量分配个性产品" type="button" /> |
| | | <input class="btn btn-success action-modal-create" value="创建客户" type="button" />  |
| | | </div> |
| | | |
| | | </div> |
| | | </form> |
| | | |
| | | <!-- 列表 --> |
| | | <div class="table-responsive"> |
| | | <% if(IsEnable==1) { %> |
| | | <input class="btn btn-danger action-modal-setProduct" value="批量分配个性产品" type="button" /> |
| | | <%} %> |
| | | <input class="btn btn-info action-export" value="导出数据" type="button" /> |
| | | <table class="table table-striped table-bordered table-hover" id="gwclientTable"> |
| | | <thead> |
| | | <tr class="header"> |
| | |
| | | <th>客户账号 |
| | | </th> |
| | | <th>公司名称</th> |
| | | <th>客户名称 |
| | | <th>联系人 |
| | | </th> |
| | | <th>联系电话 |
| | | </th> |
| | | <th>账户余额 |
| | | <th>账户余额(元) |
| | | </th> |
| | | <th>累计充值 |
| | | <th>累计充值(元) |
| | | </th> |
| | | |
| | | <th>业务员 |
| | | </th> |
| | | |
| | | <th>已分配个性产品(多个按“,”分隔) |
| | | </th> |
| | | <!-- |
| | | <th>认证状态 |
| | | </th> |
| | | --> |
| | | |
| | | <th>状态 |
| | | </th> |
| | | <th>操作 |
| | | </th> |
| | |
| | | <div id="pager"> |
| | | </div> |
| | | |
| | | |
| | | <!--批量修改个性产品 --> |
| | | <div class="modal inmodal fade" id="setProductDialog" tabindex="-1" role="dialog" aria-hidden="true"> |
| | | <div class="modal-dialog form-horizontal"> |
| | | <div class="modal-content animated "> |
| | | <div class="modal-header"> |
| | | <h3> |
| | | 批量分配个性产品</h3> |
| | | </span><a class="close" data-dismiss="modal" aria-hidden="true">×</a> <span class="text-muted"> |
| | | <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 /> |
| | | </span> |
| | | </div> |
| | | <div class="modal-body"> |
| | | <div class="form-group"> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <!-- 客户修改个性产品 --> |
| | | <div class="modal inmodal fade" id="updateProductDialog" tabindex="-1" role="dialog" aria-hidden="true"> |
| | | <div class="modal-dialog"> |
| | | <div class="modal-content animated bounceInRight"> |
| | | <input type="hidden" value="" name="clientID" /> |
| | | <div class="modal-header"> |
| | | <span class="title">设置客户个性产品</span><a class="close" data-dismiss="modal" aria-hidden="true">×</a> |
| | | </div> |
| | | <div class="modal-body"> |
| | | <%=ClientProductAll() %> |
| | | </div> |
| | | <div class="modal-footer"> |
| | | <button class="btn-default btn" data-dismiss="modal" aria-hidden="true"> |
| | | 取消</button> |
| | | <a class="btn btn-primary action-updateProduct"> |
| | | 保存</a> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | </asp:Content> |
| | | |