| | |
| | | <%@ Page Language="C#" MasterPageFile="~/Main.master" AutoEventWireup="true" CodeFile="GwClient.aspx.cs" Inherits="_GwClient" %> |
| | | |
| | | <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server"> |
| | | <script type="text/javascript" src="/web/js/jquery.min.js?v=2.1.4"></script> |
| | | <%--<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 type="text/javascript"> |
| | | $(document).ready(function () { |
| | | $("textarea").numberedtextarea(); |
| | | |
| | | //全选 |
| | | $("#checkAll").click(function () { |
| | | $("input[name='checkbox']").prop("checked", $(this).is(":checked")); |
| | | }); |
| | | |
| | | $(document).on("click", ".action-query", function () { |
| | | loadPageList(); |
| | |
| | | //修改分配个性产品:修改确认 |
| | | $(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()); |
| | | } |
| | | }); |
| | | //mytek.confirm("是否需要修改客户分配个性产品?", "确认分配个性产品,请谨慎操作!", function (b) { |
| | | //if (b) { |
| | | if (confirm("是否需要修改客户分配个性产品?") == true) { |
| | | $("#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); |
| | | } |
| | | //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); |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | //swal.close(); |
| | | } |
| | | }); |
| | | //swal.close(); |
| | | //} |
| | | //}); |
| | | } |
| | | }); |
| | | |
| | | |
| | |
| | | return pwd; |
| | | } |
| | | |
| | | //全选 |
| | | $("#checkAll").click(function () { |
| | | $("input[name='checkbox']").prop("checked", $(this).is(":checked")); |
| | | }); |
| | | |
| | | |
| | | |
| | | |
| | | //批量分配个性产品:打开界面 |
| | | $(document).on("click", ".action-modal-setProduct", function () { |
| | |
| | | document.execCommand('copy'); |
| | | element.remove ? element.remove() : element.removeNode(true); |
| | | } |
| | | mytek.alert("复制成功!", false); |
| | | mytek.alert("复制成功!", true); |
| | | |
| | | }); |
| | | |
| | |
| | | </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"> |
| | |
| | | </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> |
| | | <%--<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> |
| | | </label> |
| | | <div class="col-sm-4"> |
| | | <select name="mmsStatusReport" id="mmsStatusReport" 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"> |
| | | <label class="control-label col-sm-2"> |
| | | 归属客户经理 <span style="color:red">*</span> |
| | |
| | | <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> |
| | |
| | | <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" />  |
| | | |
| | | <% if(IsEnable==1) { %> |
| | | <input class="btn btn-success action-modal-create" value="创建客户" type="button" />  |
| | | <%} %> |
| | | </div> |
| | | |
| | | </div> |
| | |
| | | <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"> |
| | | <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>联系人 |
| | |
| | | |
| | | </table> |
| | | </div> |
| | | <div id="pager"> |
| | | <div id="pager" style="margin:10px 0 0 0;"> |
| | | </div> |
| | | |
| | | <!--批量修改个性产品 --> |
| | |
| | | <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> |