| | |
| | | 73d59a519d75fba02045f94dbe09df43d113619d |
| | | 148a124d533dab517de60d4081ee6b355ffb0769 |
| | |
| | | D:\Company\SMGW_NewWeb\web\App_Code\obj\Debug\App_Code.csproj.CopyComplete |
| | | D:\Company\SMGW_NewWeb\web\App_Code\obj\Debug\App_Code.dll |
| | | D:\Company\SMGW_NewWeb\web\App_Code\obj\Debug\App_Code.pdb |
| | | C:\AYZH\work\Git_Rep\SMGW_NewWeb\web\App_Code\bin\Debug\App_Code.dll |
| | | C:\AYZH\work\Git_Rep\SMGW_NewWeb\web\App_Code\bin\Debug\App_Code.pdb |
| | | C:\AYZH\work\Git_Rep\SMGW_NewWeb\web\App_Code\bin\Debug\Aspose.Cells.dll |
| | | C:\AYZH\work\Git_Rep\SMGW_NewWeb\web\App_Code\bin\Debug\Dao.dll |
| | | C:\AYZH\work\Git_Rep\SMGW_NewWeb\web\App_Code\bin\Debug\Ionic.Zip.dll |
| | | C:\AYZH\work\Git_Rep\SMGW_NewWeb\web\App_Code\obj\Debug\App_Code.csproj.AssemblyReference.cache |
| | | C:\AYZH\work\Git_Rep\SMGW_NewWeb\web\App_Code\obj\Debug\App_Code.csproj.CoreCompileInputs.cache |
| | | C:\AYZH\work\Git_Rep\SMGW_NewWeb\web\App_Code\obj\Debug\App_Code.csproj.CopyComplete |
| | | C:\AYZH\work\Git_Rep\SMGW_NewWeb\web\App_Code\obj\Debug\App_Code.dll |
| | | C:\AYZH\work\Git_Rep\SMGW_NewWeb\web\App_Code\obj\Debug\App_Code.pdb |
| | |
| | | /// <param name="agent">业务员</param> |
| | | /// <returns></returns> |
| | | //public List<GwClient> LoadInfoList(out int recordCount, int pageIndex, int pageSizestring, string clientID, string clientName, string telphone, string agent) |
| | | public List<GwClient> LoadInfoList(out int recordCount, int pageIndex, int pageSizestring, string clientID, string clientName, string telphone, string agent, string company, string salesman, string productId) |
| | | public List<GwClient> LoadInfoList(out int recordCount, int pageIndex, int pageSizestring, string clientID, string clientName, string telphone, string agent, string company, string salesman, string productId, string permissionsSQL ) |
| | | { |
| | | |
| | | List<GwClient> list = new List<GwClient>(); |
| | |
| | | { |
| | | StringBuilder stringBuilder = new StringBuilder(); |
| | | stringBuilder.Append("from GW_CLIENT where 1=1"); |
| | | OracleParameter[] oracleParameterArray = new OracleParameter[4]; |
| | | OracleParameter[] oracleParameterArray = new OracleParameter[6]; |
| | | if (clientID != null && clientID != "") |
| | | { |
| | | oracleParameterArray[0] = new OracleParameter(":ClientID", (OracleDbType)126); |
| | |
| | | } |
| | | if (salesman != null && salesman != "") |
| | | { |
| | | oracleParameterArray[4] = new OracleParameter(":Salesman", (OracleDbType)112); |
| | | oracleParameterArray[4] = new OracleParameter(":Salesman", (OracleDbType)126); |
| | | ((DbParameter)oracleParameterArray[4]).Value = (object)( salesman ); |
| | | stringBuilder.Append(" and Salesman = :Salesman"); |
| | | } |
| | |
| | | { |
| | | stringBuilder.Append(" and CLIENT_ID IN ( SELECT distinct CLIENT_ID FROM GW_SP WHERE PRODUCT_ID = '" + productId + "' )"); |
| | | } |
| | | |
| | | //客户权限SQL脚本 |
| | | stringBuilder.Append(permissionsSQL); |
| | | |
| | | stringBuilder.Append(" order by CREATE_TIME DESC,CLIENT_ID DESC"); |
| | | using (OracleDataReader reader = OracleHelper.ExecuteReader("select count(*) as count " + stringBuilder.ToString(), OracleHelper.Connection, oracleParameterArray)) |
| | |
| | | } |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | | * 查询统计功能 |
| | | */ |
| | | public List<GwClient> LoadInfoList(string clientID, string clientName, string company, string agent) |
| | | { |
| | | |
| | |
| | | public bool UpdateClientAmount(int AddBalance, int payAmount, string clientId ) |
| | | { |
| | | return OracleHelper.ExecuteSql("UPDATE GW_CLIENT SET BALANCE=(BALANCE + :BALANCE), TOP_UP_AMOUNT_TOTAL=(TOP_UP_AMOUNT_TOTAL + :TOP_UP_AMOUNT_TOTAL) WHERE CLIENT_ID=:CLIENT_ID", OracleHelper.Connection, new OracleParameter(":BALANCE", (object)AddBalance), new OracleParameter(":TOP_UP_AMOUNT_TOTAL", (object)payAmount), new OracleParameter(":CLIENT_ID", (object)clientId)) > 0; |
| | | } |
| | | |
| | | public bool UpdateClientProduct(string clientId, string productId) |
| | | { |
| | | List<KeyValuePair<string, OracleParameter[]>> list = new List<KeyValuePair<string, OracleParameter[]>>(); |
| | | if (string.IsNullOrEmpty(productId) ) |
| | | { |
| | | string key = "UPDATE GW_CLIENT_PRODUCT SET PRODUCT_ID=:PRODUCT_ID WHERE CLIENT_ID=:CLIENT_ID"; |
| | | OracleParameter[] oracleParameterArray = new OracleParameter[2] |
| | | { |
| | | new OracleParameter(":PRODUCT_ID", (object) productId), |
| | | new OracleParameter(":CLIENT_ID", (object) clientId) |
| | | }; |
| | | list.Add(new KeyValuePair<string, OracleParameter[]>(key, oracleParameterArray)); |
| | | } |
| | | OracleHelper.ExecuteSqlTran(list, OracleHelper.Connection); |
| | | return true; |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 函数描述: 根据系统用户获取有权限客户 |
| | | * userId: 用户ID |
| | | * userType: 用户类型:1-管理员;2-业务员--全员;3-业务主管;4-业务总监;5-客服人员;6-财务人员;99-其他 |
| | | * return: SQL字符串 |
| | | * */ |
| | | public string GetClientPermissions(int userId, int userType, string alias) |
| | | { |
| | | if (!string.IsNullOrEmpty(alias)) |
| | | { |
| | | alias += "."; |
| | | } |
| | | |
| | | string sqlStr = ""; |
| | | //业务员和其他 |
| | | if(userType==2 || userType == 99) |
| | | { |
| | | sqlStr += " AND " + alias + "CLIENT_ID IN (SELECT CLIENT_ID FROM GW_CLIENT WHERE IS_ENABLE=1 AND (SALESMAN='" + userId + "' ) ) "; |
| | | } |
| | | //业务主管 |
| | | else if (userType == 3) |
| | | { |
| | | sqlStr += " AND " + alias + "CLIENT_ID IN (SELECT CLIENT_ID FROM GW_CLIENT WHERE IS_ENABLE=1 AND (SALESMAN='" + userId + "' or CUSTOMER_MANAGER='" + userId + "' ) ) "; |
| | | } |
| | | else |
| | | { |
| | | //sqlStr += " AND CLIENT_ID IN (SELECT CLIENT_ID FROM GW_CLIENT WHERE IS_ENABLE=1 ) "; |
| | | } |
| | | |
| | | return sqlStr ; |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | |
| | | //flag: 0-待审核订单(已提交、审核中);1-已完成订单(审核通过、审核不通过、取消) |
| | | public List<GwOrder> LoadInfoList(string spId, string clientId, string clientName, int flag, DateTime startDate, DateTime endDate, int pageSize, int PageIndex, out int recordcount) |
| | | public List<GwOrder> LoadInfoList(string spId, string clientId, string clientName, int flag, DateTime startDate, DateTime endDate, int pageSize, int PageIndex, string permissionsSQL, out int recordcount) |
| | | { |
| | | |
| | | List<GwOrder> list = new List<GwOrder>(); |
| | |
| | | { |
| | | stringBuilder.Append(" and GWC.CLIENT_NAME like '%" + clientName + "%'"); |
| | | } |
| | | //客户权限SQL脚本 |
| | | stringBuilder.Append(permissionsSQL); |
| | | |
| | | stringBuilder.Append(" ) T "); |
| | | |
| | | OracleParameter[] parameterArray = new OracleParameter[] { new OracleParameter(":START_TIME", startDate), new OracleParameter(":END_TIME", endDate) }; |
| | |
| | | return OracleHelper.ExecuteSql("UPDATE GW_PRODUCT SET IS_ENABLE=:IS_ENABLE where ID=:ID", OracleHelper.Connection, new OracleParameter(":IS_ENABLE", (object)isEnable), new OracleParameter(":ID", (object)id)) > 0; |
| | | } |
| | | |
| | | //更新分配个性产品客户 |
| | | public bool UpdateClientIds(string clientIds, string id) |
| | | { |
| | | if (string.IsNullOrEmpty(id)) |
| | | return false; |
| | | return OracleHelper.ExecuteSql("UPDATE GW_PRODUCT SET CLIENT_IDS=:CLIENT_IDS where ID=:ID", OracleHelper.Connection, new OracleParameter(":CLIENT_IDS", (object)clientIds), new OracleParameter(":ID", (object)id)) > 0; |
| | | } |
| | | |
| | | //更新关联的产品路径PATH |
| | | public bool UpdatePath(string id, string path) |
| | | { |
| | |
| | | o.CtExtParams = oracleReaderWrapper.GetString("CT_EXT_PARAMS", ""); |
| | | o.Price = oracleReaderWrapper.GetInt("PRICE", 0); |
| | | o.GivingNum = oracleReaderWrapper.GetInt("GIVING_NUM", 0); |
| | | o.ClientIds = oracleReaderWrapper.GetString("CLIENT_IDS", ""); |
| | | o.Remark = oracleReaderWrapper.GetString("REMARK", ""); |
| | | o.CreateTime = oracleReaderWrapper.GetDateTime("CREATE_TIME"); |
| | | o.Creator = oracleReaderWrapper.GetString("CREATOR", ""); |
| | |
| | | return list1; |
| | | } |
| | | |
| | | public List<GwSp> LoadInfoList(string spId, string apId, string clientId, string clientName, int routerType, string opID, int chargeType, int pageIndex, int pageSize, string resendStatus, out int recordCount, string productId ) |
| | | public List<GwSp> LoadInfoList(string spId, string apId, string clientId, string clientName, int routerType, string opID, int chargeType, int pageIndex, int pageSize |
| | | , string resendStatus, string productId, string permissionsSQL, out int recordCount ) |
| | | { |
| | | List<GwSp> list1 = new List<GwSp>(); |
| | | recordCount = 0; |
| | |
| | | list2.Add(new OracleParameter(":ProductId", (object)productId)); |
| | | stringBuilder.Append(" and Product_Id=:ProductId"); |
| | | } |
| | | |
| | | //客户权限SQL脚本 |
| | | stringBuilder.Append(permissionsSQL); |
| | | |
| | | stringBuilder.Append(" order by ID DESC"); |
| | | using (OracleDataReader reader = OracleHelper.ExecuteReader("select count(*) as count " + stringBuilder.ToString(), OracleHelper.Connection, list2.ToArray())) |
| | | { |
| | |
| | | |
| | | public int GivingNum { get; set; } |
| | | |
| | | public string ClientIds { get; set; } |
| | | |
| | | public string Remark { get; set; } |
| | | |
| | | public DateTime CreateTime { get; set; } |
| | |
| | | c546f08e5171d2ea11491af4c442ff223c9bb58c |
| | | 27f9b4fb5d36be9c155fb6557fe17e62c41ec4da |
| | |
| | | D:\Company\SMGW_NewWeb\web\UMCLib\obj\Debug\UMCLib.csproj.CopyComplete |
| | | D:\Company\SMGW_NewWeb\web\UMCLib\obj\Debug\UMCLib.dll |
| | | D:\Company\SMGW_NewWeb\web\UMCLib\obj\Debug\UMCLib.pdb |
| | | C:\AYZH\work\Git_Rep\SMGW_NewWeb\web\UMCLib\bin\Debug\UMCLib.dll |
| | | C:\AYZH\work\Git_Rep\SMGW_NewWeb\web\UMCLib\bin\Debug\UMCLib.pdb |
| | | C:\AYZH\work\Git_Rep\SMGW_NewWeb\web\UMCLib\bin\Debug\Newtonsoft.Json.dll |
| | | C:\AYZH\work\Git_Rep\SMGW_NewWeb\web\UMCLib\obj\Debug\UMCLib.csproj.AssemblyReference.cache |
| | | C:\AYZH\work\Git_Rep\SMGW_NewWeb\web\UMCLib\obj\Debug\UMCLib.csproj.CoreCompileInputs.cache |
| | | C:\AYZH\work\Git_Rep\SMGW_NewWeb\web\UMCLib\obj\Debug\UMCLib.csproj.CopyComplete |
| | | C:\AYZH\work\Git_Rep\SMGW_NewWeb\web\UMCLib\obj\Debug\UMCLib.dll |
| | | C:\AYZH\work\Git_Rep\SMGW_NewWeb\web\UMCLib\obj\Debug\UMCLib.pdb |
| | |
| | | WebTool webTool = new WebTool(); |
| | | Dictionary<string, string> dictionary = new Dictionary<string, string>(); |
| | | dictionary["AP消息ID"] = "AP_MID"; |
| | | dictionary["代理商"] = "CLIENT_ID"; |
| | | dictionary["客户ID"] = "CLIENT_ID"; |
| | | dictionary["账号"] = "SP_ID"; |
| | | dictionary["接入点ID"] = "AP_ID"; |
| | | dictionary["通道名"] = "OP_NAME"; |
| | |
| | | <%@ WebHandler Language="C#" Class="GwClientHandler" %> |
| | | using System; |
| | | using System.Linq; |
| | | using System.Web; |
| | | using Dao; |
| | | using Model; |
| | |
| | | using System.Text; |
| | | using System.Text.RegularExpressions; |
| | | using System.IO; |
| | | using Newtonsoft.Json; |
| | | |
| | | |
| | | |
| | |
| | | private UserDao _SysUserDao = new UserDao(); |
| | | private List<SysUser> _SysUserList; |
| | | |
| | | private int _userId = -1; |
| | | private int _userType = -1; |
| | | private string _account = ""; |
| | | |
| | | public override JsonPageResult ProcessRequestInternal(PageContext<Model.SysUser> context) |
| | | { |
| | | string action = context.GetString("action"); |
| | | |
| | | _userId = context.SessionObject.UserID; |
| | | _userType = context.SessionObject.UserType; |
| | | _account = context.SessionObject.Account; |
| | | |
| | | switch (action) |
| | | { |
| | |
| | | |
| | | case "updateBlack": |
| | | return UpdateBlack(context); |
| | | //批量分配客户的个性产品 |
| | | case "batchUpdateClientProduct": |
| | | return BatchUpdateClientProduct(context); |
| | | |
| | | default: |
| | | throw new Exception("Invalid Action=" + action); |
| | |
| | | int pageSize = context.GetInt("pageSize", 20); |
| | | string serverIp = ConfigurationManager.AppSettings["serverIp"]; |
| | | string clientPort = ConfigurationManager.AppSettings["clientPort"]; |
| | | |
| | | string str = ""; |
| | | using (GwClientDao dao = new GwClientDao()) |
| | | { |
| | | var list = dao.LoadInfoList(out recordCount, pageIndex, pageSize, ClientID, ClientName, Telephone, Agent, Company, Salesman, ProductId); |
| | | string permissionsSQL = dao.GetClientPermissions(_userId, _userType, null); |
| | | var list = dao.LoadInfoList(out recordCount, pageIndex, pageSize, ClientID, ClientName, Telephone, Agent, Company, Salesman, ProductId, permissionsSQL); |
| | | |
| | | if (list != null && list.Count > 0) |
| | | { |
| | |
| | | //edit:yangzh by 20220511 |
| | | //str += @"<tr ><td>" + item.ClientID + "</td><td>" + item.Company + "</td><td>" + item.ClientName + "</td><td>" + item.Telephone + "</td><td>" + item.Top_up_Amount_Total + "元</td><td>" + item.Agent + "</td><td>" + Certification_StatusResult + "</td>"; |
| | | //str += @"<tr ><td>" + item.ClientID + "</td><td>" + item.Company + "</td><td>" + item.ClientName + "</td><td>" + item.Telephone + "</td><td>" + item.Balance/1000 + "元</td><td>" + item.Top_up_Amount_Total/1000 + "元</td><td>" + item.Agent + "</td><td>" + Certification_StatusResult + "</td>"; |
| | | str += @"<tr ><td>" + item.ClientID + "</td><td>" + item.Company + "</td><td>" + item.ClientName + "</td><td>" + item.Telephone + "</td><td>" + item.Balance/1000 + "元</td><td>" + item.Top_up_Amount_Total/1000 + "元</td><td>" + SysUserName(string.IsNullOrEmpty(item.Salesman)? 0: int.Parse(item.Salesman) ) + "</td><td>" + Certification_StatusResult + "</td>"; |
| | | str += @"<tr ><td rowspan='1' ><input type='checkbox' name='checkbox' value='" + item.ClientID + "'/></td><td>" + item.ClientID + "</td><td>" + item.Company + "</td><td>" + item.ClientName + "</td><td>" + item.Telephone + "</td><td>" + item.Balance/1000 + "元</td><td>" + item.Top_up_Amount_Total/1000 + "元</td><td>" + SysUserName(string.IsNullOrEmpty(item.Salesman)? 0: int.Parse(item.Salesman) ) + "</td><td>" + Certification_StatusResult + "</td>"; |
| | | |
| | | |
| | | str += @"<td>"; |
| | |
| | | } |
| | | else |
| | | { |
| | | str += @"<tr><td colspan=""9"">暂无信息</td></tr>"; |
| | | str += @"<tr><td colspan=""10"">暂无信息</td></tr>"; |
| | | } |
| | | |
| | | } |
| | |
| | | return new JsonPageResult(true, "创建账户成功!"); |
| | | } |
| | | |
| | | //分配客户的个性产品 |
| | | private JsonPageResult BatchUpdateClientProduct(PageContext<SysUser> context) |
| | | { |
| | | string productId = context.GetString("productId"); |
| | | string idArray = context.GetString("idArray"); |
| | | if (string.IsNullOrEmpty(productId)) |
| | | { |
| | | |
| | | throw new ArgumentException("个性产品不能为空,请选择!"); |
| | | } |
| | | |
| | | Model.GwProduct gwProduct = new GwProductDao().Get(productId); |
| | | if (gwProduct == null) |
| | | { |
| | | throw new ArgumentException("指定的个性产品不存在,请重新选择!"); |
| | | } |
| | | string clientIds = gwProduct.ClientIds; |
| | | |
| | | List<string> tmpList = new List<string>(); |
| | | if(!string.IsNullOrEmpty(clientIds)) |
| | | { //字符串转数组,再数组合并 |
| | | tmpList.AddRange( clientIds.Split(',') ); |
| | | } |
| | | //数组合并 |
| | | tmpList.AddRange( JsonConvert.DeserializeObject<string[]>(context.GetString("idArray")) ); |
| | | |
| | | //数组去重 |
| | | string[] tmpArray = DelRepeatData(tmpList.ToArray() ); |
| | | clientIds = string.Join(",", tmpArray) ; |
| | | |
| | | if (!string.IsNullOrEmpty(clientIds)) |
| | | { |
| | | new GwProductDao().UpdateClientIds(clientIds, productId); |
| | | } |
| | | |
| | | |
| | | return new JsonPageResult(true, (object)"批量分配客户个性产品成功!"); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 移除数组中重复数据 |
| | | /// </summary> |
| | | /// <param name="array">需要除重的数组</param> |
| | | /// <returns>不重复数组</returns> |
| | | public static string[] DelRepeatData(string[] array) |
| | | { |
| | | return array.GroupBy(p => p).Select(p => p.Key).ToArray(); |
| | | } |
| | | |
| | | |
| | | |
| | | //获取管理端账户列表 |
| | |
| | | $("#clientDialog #mmsStatusReport").val(""); |
| | | $("#clientDialog #customerManager").val(""); |
| | | $("#clientDialog #salesman").val(""); |
| | | $("#clientDialog #supportStaff").val(r.Message.SupportStaff); |
| | | $("#clientDialog #financialStaff").val(r.Message.FinancialStaff); |
| | | $("#clientDialog #supportStaff").val(""); |
| | | $("#clientDialog #financialStaff").val(""); |
| | | $("#clientDialog #remark").val(""); |
| | | $("#clientDialog input[name=permissionData]").iCheck("uncheck"); |
| | | |
| | |
| | | } |
| | | }); |
| | | }) |
| | | |
| | | //全选 |
| | | $("#checkAll").click(function () { |
| | | $("input[name='checkbox']").prop("checked", $(this).is(":checked")); |
| | | }); |
| | | |
| | | //批量分配个性产品 |
| | | $(document).on("click", ".action-modal-setProduct", function () { |
| | | var idArray = []; |
| | | |
| | | $("input[name='checkbox']:checkbox:checked").each(function () { |
| | | var id = $(this).val(); |
| | | idArray.push(id); |
| | | }); |
| | | |
| | | if (idArray.length == 0) { |
| | | mytek.alert("请选择要分配个性产品的客户!", false); |
| | | return; |
| | | } |
| | | |
| | | $("#selected-op-box").text(idArray.join(",")); |
| | | |
| | | $("#setProductDialog").modal("show"); |
| | | }); |
| | | |
| | | //批量分配客户个性产品--确认修改 |
| | | $(document).on("click", ".action-update-setProduct", function () { |
| | | var idArray = []; |
| | | |
| | | $("input[name='checkbox']:checkbox:checked").each(function () { |
| | | var id = $(this).val(); |
| | | idArray.push(id); |
| | | }); |
| | | |
| | | if (idArray.length == 0) { |
| | | mytek.alert("请选择要分配个性产品的客户!", false); |
| | | return; |
| | | } |
| | | |
| | | var productId = $("#productId").val(); |
| | | |
| | | $.ajax({ |
| | | url: "GwClient.ashx", |
| | | method: "POST", |
| | | data: { idArray: $.toJSON(idArray), productId: productId, action: "batchUpdateClientProduct" }, |
| | | success: function (result) { |
| | | mytek.alert(result.Message, result.OK, function () { |
| | | $("#setProductDialog #productId").val(""); |
| | | $("#setProductDialog").modal("hide"); |
| | | loadPageList(); |
| | | }); |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | |
| | | |
| | |
| | | <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-success action-modal-create" value="创建客户" type="button" />  |
| | | <input class="btn btn-danger action-modal-setProduct" value="批量分配个性产品" type="button" /> |
| | | </div> |
| | | |
| | | </div> |
| | |
| | | <table class="table table-striped table-bordered table-hover" id="gwclientTable"> |
| | | <thead> |
| | | <tr class="header"> |
| | | <th> |
| | | <input type='checkbox' name='checkAll' id='checkAll' /> |
| | | </th> |
| | | <th>客户账号 |
| | | </th> |
| | | <th>公司名称</th> |
| | |
| | | </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"> |
| | | 批量分配个性产品将会更新所有选中的账号的客户,<br /> |
| | | 确定分配不能取消,请谨慎操作!<br /> |
| | | </div> |
| | | <div class="modal-body"> |
| | | <div class="form-group"> |
| | | <label class="col-sm-2 control-label"> |
| | | 个性产品 |
| | | </label> |
| | | <div class="col-sm-10"> |
| | | <select name="productId" id="productId" class="form-control"> |
| | | <%=GetPersonalityProductOptions("")%> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="modal-footer"> |
| | | <button class="btn-default btn" data-dismiss="modal" aria-hidden="true"> |
| | | 取消</button> |
| | | <input class="btn btn-primary action-update-setProduct" value="确定修改" type="button" /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | </asp:Content> |
| | | |
| | |
| | | { |
| | | GwProduct bean = new GwProduct(); |
| | | bean.Classes = 1; |
| | | bean.IsDefault = -1; |
| | | bean.IsEnable = -1; |
| | | this.GwProductList = gwProductDao.getAllList(bean); |
| | | } |
| | |
| | | { |
| | | StringBuilder stringBuilder = new StringBuilder(); |
| | | if (this.GwProductList.Count == 0) |
| | | return "<option value='0'>无</option>"; |
| | | return "<option value=''>无</option>"; |
| | | stringBuilder.AppendFormat("<option value=\"{0}\" >{1}</option>", (object)"", (object)"无"); |
| | | foreach (GwProduct bean in this.GwProductList) |
| | | { |
| | |
| | | } |
| | | |
| | | |
| | | //获取个性产品信息 |
| | | public string GetPersonalityProductOptions(string productId) |
| | | { |
| | | StringBuilder stringBuilder = new StringBuilder(); |
| | | if (this.GwProductList.Count == 0) |
| | | return "<option value=''>无</option>"; |
| | | stringBuilder.AppendFormat("<option value=\"{0}\" >{1}</option>", (object)"", (object)"无"); |
| | | foreach (GwProduct bean in this.GwProductList) |
| | | { |
| | | //停用的产品分类不再显示 |
| | | if (bean.IsEnable == 0) |
| | | { |
| | | continue; |
| | | } |
| | | //过滤产品类别 |
| | | if (bean.Classes == 0) |
| | | { |
| | | continue; |
| | | } |
| | | //过滤推广方式 |
| | | if (bean.IsDefault == 1) |
| | | { |
| | | continue; |
| | | } |
| | | |
| | | if (productId.Equals(bean.Id)) |
| | | stringBuilder.AppendFormat("<option value=\"{0}\" selected>{0}-{1}</option>", (object)bean.Id, (object)bean.Name); |
| | | else |
| | | stringBuilder.AppendFormat("<option value=\"{0}\">{0}-{1}</option>", (object)bean.Id, (object)bean.Name); |
| | | } |
| | | return stringBuilder.ToString(); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | private List<GwProduct> _ProductList; //产品及产品分类 |
| | | //private List<GwProduct> _ProductClassList; //产品分类 |
| | | |
| | | private int _userId = -1; |
| | | private int _userType = -1; |
| | | private string _account = ""; |
| | | |
| | | public override JsonPageResult ProcessRequestInternal(PageContext<SysUser> context) |
| | | { |
| | | string @string = context.GetString("action"); |
| | | _userId = context.SessionObject.UserID; |
| | | _userType = context.SessionObject.UserType; |
| | | _account = context.SessionObject.Account; |
| | | |
| | | switch (@string) |
| | | { |
| | | case "delete": |
| | |
| | | int pageSize = context.GetInt("pageSize", 50); |
| | | int pageIndex = context.GetInt("pageIndex", 1); |
| | | |
| | | List<GwOrder> list = _Dao.LoadInfoList(spId, clientId, clientName, flag, startDate, endDate, pageSize, pageIndex, out recordCount); |
| | | string permissionsSQL = new GwClientDao().GetClientPermissions(_userId, _userType, "GWC"); |
| | | |
| | | List<GwOrder> list = _Dao.LoadInfoList(spId, clientId, clientName, flag, startDate, endDate, pageSize, pageIndex, permissionsSQL, out recordCount); |
| | | |
| | | string str1 = ""; |
| | | if (list != null && list.Count > 0) |
| | |
| | | int pageSize = context.GetInt("pageSize", 50); |
| | | int pageIndex = context.GetInt("pageIndex", 1); |
| | | |
| | | List<GwOrder> list = _Dao.LoadInfoList(spId, clientId, clientName, flag, startDate, endDate, pageSize, pageIndex, out recordCount); |
| | | string permissionsSQL = new GwClientDao().GetClientPermissions(_userId, _userType, "GWC"); |
| | | |
| | | List<GwOrder> list = _Dao.LoadInfoList(spId, clientId, clientName, flag, startDate, endDate, pageSize, pageIndex, permissionsSQL, out recordCount); |
| | | |
| | | string str1 = ""; |
| | | if (list != null && list.Count > 0) |
| | |
| | | int pageSize = context.GetInt("pageSize", 50); |
| | | int pageIndex = context.GetInt("pageIndex", 1); |
| | | |
| | | string permissionsSQL = new GwClientDao().GetClientPermissions(_userId, _userType, "GWC"); |
| | | |
| | | //List<GwOrder> list = _Dao.LoadInfoList(spId, clientId, clientName, flag, Convert.ToDateTime(startDate), Convert.ToDateTime(endDate).AddDays(1.0), pageSize, pageIndex, out recordCount); |
| | | List<GwOrder> list = _Dao.LoadInfoList(spId, clientId, clientName, flag, startDate, endDate.AddDays(1.0), pageSize, pageIndex, out recordCount); |
| | | List<GwOrder> list = _Dao.LoadInfoList(spId, clientId, clientName, flag, startDate, endDate.AddDays(1.0), pageSize, pageIndex, permissionsSQL, out recordCount); |
| | | |
| | | string str1 = ""; |
| | | if (list != null && list.Count > 0) |
| | |
| | | <div class="m-b"> |
| | | <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 col-md-2" /> |
| | | </div> |
| | | </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 col-md-2" /> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="m-b"> |
| | | <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 col-md-2" /> |
| | | </div> |
| | | </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 col-md-2" /> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="form-group"> |
| | | <div class="input-group m-b"> |
| | | <span class="input-group-addon">代理商</span> |
| | | <span class="input-group-addon">客户ID</span> |
| | | <input type="text" class="form-control" name="ClientID" id="ClientID" /> |
| | | </div> |
| | | </div> |
| | |
| | | AP/OP消息MsgID |
| | | </th> |
| | | <th> |
| | | 代理商-短信账号 |
| | | 客户-短信账号 |
| | | </th> |
| | | <th> |
| | | 客户接入协议-发送通道 |
| | |
| | | </div> |
| | | <div class="form-group"> |
| | | <div class="input-group m-b"> |
| | | <span class="input-group-addon">代理商</span> |
| | | <span class="input-group-addon">客户ID</span> |
| | | <input type="text" class="form-control" name="ClientID" id="ClientID" /> |
| | | </div> |
| | | </div> |
| | |
| | | AP/OP消息MsgID |
| | | </th> |
| | | <th> |
| | | 代理商-短信账号 |
| | | 客户-短信账号 |
| | | </th> |
| | | <th> |
| | | 客户接入协议-发送通道 |
| | |
| | | private List<GwStrategy> _StrategyList; |
| | | private List<GwProduct> _ProductList; |
| | | |
| | | private int _userId = -1; |
| | | private int _userType = -1; |
| | | private string _account = ""; |
| | | |
| | | private List<GwOp> OpList |
| | | { |
| | | get |
| | |
| | | public override JsonPageResult ProcessRequestInternal(PageContext<SysUser> context) |
| | | { |
| | | string @string = context.GetString("action"); |
| | | _userId = context.SessionObject.UserID; |
| | | _userType = context.SessionObject.UserType; |
| | | _account = context.SessionObject.Account; |
| | | |
| | | switch (@string) |
| | | { |
| | | case "updateSpStatus": |
| | |
| | | apId = string1; |
| | | //if (string.IsNullOrEmpty(clientId) && !string.IsNullOrEmpty(string4)) |
| | | // clientId = new GwClientDao().GetClientName(string4).ClientID; |
| | | |
| | | string permissionsSQL = new GwClientDao().GetClientPermissions(_userId, _userType, null); |
| | | |
| | | //加载账号列表信息 |
| | | List<GwSp> list = gwSpDao.LoadInfoList(string2, apId, clientId, string4, int1, string3, int2, int4, int3, int5.ToString(),out recordCount, productId); |
| | | List<GwSp> list = gwSpDao.LoadInfoList(string2, apId, clientId, string4, int1, string3, int2, int4, int3, int5.ToString(), productId, permissionsSQL, out recordCount); |
| | | string str1 = ""; |
| | | if (list != null && list.Count > 0) |
| | | { |
| | |
| | | $("#BlackMoContent").val(setting.BlackMoContent);
|
| | |
|
| | |
|
| | | |
| | | $(".action-save").on("click", function () {
|
| | | smtpProfile.SmtpServer = $("#SmtpServer").val();
|
| | | smtpProfile.SmtpPort = $("#SmtpPort").val();
|
| | |
| | | "ctSegments":$("#CtSegments").val(),
|
| | | "gwName":$("#GwName").val(),
|
| | | "blackMoContent":$("#BlackMoContent").val()
|
| | | |
| | | },
|
| | | success: function (result) {
|
| | | if (result.OK) {
|
| | |
| | |
|
| | |
|
| | |
|
| | | |
| | | <div class="ibox-content">
|
| | | <div class="form-group">
|
| | | <label class="control-label">
|
| | |
| | | { |
| | | GwProduct bean = new GwProduct(); |
| | | bean.Classes = 1; |
| | | bean.IsDefault = -1; |
| | | bean.IsEnable = -1; |
| | | this.GwProductList = gwProductDao.getAllList(bean); |
| | | } |