web/.vs/Web/FileContentIndex/7e29d20c-d7d3-4d90-a1f8-e522c2bc4eeb.vsidxBinary files differ
web/.vs/Web/FileContentIndex/d987c372-7924-4a84-a3c6-a0668a707d79.vsidxBinary files differ
web/.vs/Web/v17/.suoBinary files differ
web/Dao/GwClientDao.cs
@@ -28,7 +28,6 @@ /// <param name="supportStaff">归属客服人员</param> /// <param name="productId">产品ID</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 telephone, string agent, string company, string salesman, string supportStaff, string productId, int isEnable,int isSub, string permissionsSQL ) { @@ -108,7 +107,7 @@ { oracleParameterArray[8] = new OracleParameter(":CLIENT_PARENTID", OracleDbType.Int32); ((DbParameter)oracleParameterArray[8]).Value = (object)(isSub); stringBuilder.Append(" and gwc.CLIENT_PARENTID != :CLIENT_PARENTID"); stringBuilder.Append(" and gwc.CLIENT_PARENTID != 0"); } @@ -530,6 +529,7 @@ o.SupportStaff = oracleReaderWrapper.GetString("SUPPORT_STAFF", ""); o.FinancialStaff = oracleReaderWrapper.GetString("FINANCIAL_STAFF", ""); o.ChargeType = oracleReaderWrapper.GetInt("CHARGE_TYPE", 0); o.SmsBillType = oracleReaderWrapper.GetInt("SMS_BILLTYPE",0); o.SmsStatusReport = oracleReaderWrapper.GetInt("SMS_STATUS_REPORT", 0); o.MmsStatusReport = oracleReaderWrapper.GetInt("MMS_STATUS_REPORT", 0); web/Dao/bin/Release/Dao.dllBinary files differ
web/Dao/bin/Release/Dao.pdbBinary files differ
web/Dao/bin/Release/Model.dllBinary files differ
web/Dao/bin/Release/Model.pdbBinary files differ
web/Lib/Model.dllBinary files differ
web/Lib/Model.pdbBinary files differ
web/Model/Model/GwClient.cs
@@ -23,8 +23,6 @@ private string _password; public string Salt { get; set; } //密码加密盐 //private string _parentId;//上级ID //作废了 private Decimal _totalAmount; private Decimal _balance; private int _id; @@ -33,7 +31,9 @@ private int _certification_Status;//认证状态:0-未认证/1-已认证 private int _client_Classes;//客户类别:0-企业/1-个人 private string _client_Parentid; //父级账户 private int _client_Type;//客户类型(0-直客/渠道、1-子账户) private int _is_Enable;//是否启用状态(1-启/0-停) private Decimal _top_up_Amount_Total;//累计充值(金额) @@ -41,11 +41,17 @@ public string CustomerManager { get; set; } //归属客户经理 public string SupportStaff { get; set; } //归属客服人员 public string FinancialStaff { get; set; } //归属财务人员 public int ChargeType { get; set; } //计费方式:1-预付费;2-后付费. public int SmsStatusReport { get; set; } //短信是否支持显示状态报告:0-不显示;1-只显示提交失败为发送失败状态;2-显示全部状态状态. public int ChargeType { get; set; } //结算方式:1-预付费;2-后付费. public int SmsBillType { get; set; } //计费方式:0-提交计费,1-成功+未知计费,2-成功计费。 public int SmsStatusReport { get; set; } //短信是否支持显示状态报告:0-不开放状态,1-开放拦截失败的状态、2-开放全部状态. public int MmsStatusReport { get; set; } //彩信是否支持显示状态报告:0-不显示;1-只显示提交失败为发送失败状态;2-显示全部状态状态. public int IsEnableSubAccount{ get; set; } //是否支持创建子账户:0-禁用;1-启用 public int IsEnableSub{ get; set; } //是否支持创建子账户:0-禁用;1-启用 public string SubAccountPath { get; set; } //子账户路径 public int IsEnableWhite { get; set; } //是否启用白名单:0-禁用;1-启用。过滤客户白名单库。 public int IsSyncChileWhite { get; set; } //是否同步子账户(白名单):0-不同步;1-同步。 public int IsEnableBlack { get; set; } //是否启用黑名单:0-禁用;1-启用。过滤客户黑名单库和系统黑名单库。 web/web/Bin/Dao.dllBinary files differ
web/web/Bin/Dao.pdbBinary files differ
web/web/Bin/Model.dllBinary files differ
web/web/Bin/Model.pdbBinary files differ
web/web/Bin/UMCLib.pdbBinary files differ
web/web/GwClient.ashx
@@ -134,10 +134,7 @@ { Certification_StatusResult = "已认证"; } //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 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 += @"<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>" + item.ProductIds + "</td>" + "<td>"+ (item.Is_Enable == 1 ? "<span class='label label-primary'>启用</span>" : "<span class='label label-default'>停用</span>") + "</td>"; @@ -419,31 +416,25 @@ string customerManager = context.GetString("customerManager"); string supportStaff = context.GetString("supportStaff"); string financialStaff = context.GetString("financialStaff"); string chargeType = context.GetString("chargeType"); string smsBillType = context.GetString("smsBillType"); string smsStatusReport = context.GetString("smsStatusReport"); string isEnableSub = context.GetString("isEnableSub"); string isEnableWhite = context.GetString("isEnableWhite"); string isEnableBlack = context.GetString("isEnableBlack"); string isRemoteLoginNotice = context.GetString("isRemoteLoginNotice"); string isMobileCaptcha = context.GetString("isMobileCaptcha"); string isHideMobile = context.GetString("isHideMobile"); string isDisplayStatus = context.GetString("isDisplayStatus"); string isLoginIpRestrict = context.GetString("isLoginIpRestrict"); string isLoginIpAllowGather = context.GetString("isLoginIpAllowGather"); string isLoginCityRestrict = context.GetString("isLoginCityRestrict"); string isLoginCityAllowGather = context.GetString("isLoginCityAllowGather"); string data = context.GetString("permissionData"); if(data.Contains("1")) { data += ",sp.aspx,GwTaskSmssend,SpPrePattern.aspx"; } if(data.Contains("2")) { data += ",molog.aspx,mtlog.aspx#stat,mtlog.aspx,statis.aspx"; } string permissionData = Newtonsoft.Json.JsonConvert.SerializeObject(data.Split(',')); //string isRemoteLoginNotice = context.GetString("isRemoteLoginNotice"); //string isMobileCaptcha = context.GetString("isMobileCaptcha"); //string isHideMobile = context.GetString("isHideMobile"); //string isDisplayStatus = context.GetString("isDisplayStatus"); //string isLoginIpRestrict = context.GetString("isLoginIpRestrict"); //string isLoginIpAllowGather = context.GetString("isLoginIpAllowGather"); //string isLoginCityRestrict = context.GetString("isLoginCityRestrict"); //string isLoginCityAllowGather = context.GetString("isLoginCityAllowGather"); if (string.IsNullOrEmpty(clientID)) { @@ -461,11 +452,6 @@ throw new ArgumentException("联系人/联系电话,不能为空!"); } if (string.IsNullOrEmpty(customerManager)) { throw new ArgumentException("归属客户经理不能为空,请选择!"); } if (string.IsNullOrEmpty(salesman)) { throw new ArgumentException("归属业务员不能为空,请选择!"); @@ -474,11 +460,6 @@ if (string.IsNullOrEmpty(supportStaff)) { throw new ArgumentException("归属客服人员不能为空,请选择!"); } if (string.IsNullOrEmpty(financialStaff)) { throw new ArgumentException("归属财务人员不能为空,请选择!"); } if (string.IsNullOrEmpty(chargeType)) @@ -490,27 +471,6 @@ { throw new ArgumentException("短信是否支持显示状态报告不能为空,请选择!"); } /** if (string.IsNullOrEmpty(mmsStatusReport)) { throw new ArgumentException("彩信是否支持显示状态报告不能为空,请选择!"); }**/ /** //编辑时不支持个性密码 string savePassword = ""; if (!string.IsNullOrEmpty(clientID)) { GwClient gwClient = this._Dao.Get(clientID); savePassword = (gwClient.Password == password ? gwClient.Password : DataHelper.MD5Hex(password) ); } else { savePassword = DataHelper.MD5Hex(password); } **/ var client = new Model.GwClient(); @@ -531,21 +491,23 @@ client.SupportStaff = supportStaff; client.FinancialStaff = financialStaff; client.ChargeType = string.IsNullOrEmpty(chargeType) ? 0 : int.Parse(chargeType); client.IsEnableSub = string.IsNullOrEmpty(isEnableSub) ? 0 : int.Parse(isEnableSub); client.SmsBillType = string.IsNullOrEmpty(smsBillType) ? 0 : int.Parse(smsBillType); client.SmsStatusReport = string.IsNullOrEmpty(smsStatusReport) ? 0 : int.Parse(smsStatusReport); client.IsEnableWhite = string.IsNullOrEmpty(isEnableWhite) ? 0 : int.Parse(isEnableWhite); client.IsEnableBlack = string.IsNullOrEmpty(isEnableBlack) ? 0 : int.Parse(isEnableBlack); client.IsRemoteLoginNotice = string.IsNullOrEmpty(isRemoteLoginNotice) ? 0 : int.Parse(isRemoteLoginNotice); client.IsMobileCaptcha = string.IsNullOrEmpty(isMobileCaptcha) ? 0 : int.Parse(isMobileCaptcha); client.IsHideMobile = string.IsNullOrEmpty(isHideMobile) ? 0 : int.Parse(isHideMobile); client.IsDisplayStatus = string.IsNullOrEmpty(isDisplayStatus) ? 0 : int.Parse(isDisplayStatus); client.IsLoginIpRestrict = string.IsNullOrEmpty(isLoginIpRestrict) ? 0 : int.Parse(isLoginIpRestrict); client.IsLoginIpAllowGather = isLoginIpAllowGather; client.IsLoginCityRestrict = string.IsNullOrEmpty(isLoginCityRestrict) ? 0 : int.Parse(isLoginCityRestrict); client.IsLoginCityAllowGather = isLoginCityAllowGather; client.PermissionData = permissionData; //下面暂时用不到 //client.IsRemoteLoginNotice = string.IsNullOrEmpty(isRemoteLoginNotice) ? 0 : int.Parse(isRemoteLoginNotice); //client.IsMobileCaptcha = string.IsNullOrEmpty(isMobileCaptcha) ? 0 : int.Parse(isMobileCaptcha); //client.IsHideMobile = string.IsNullOrEmpty(isHideMobile) ? 0 : int.Parse(isHideMobile); //client.IsDisplayStatus = string.IsNullOrEmpty(isDisplayStatus) ? 0 : int.Parse(isDisplayStatus); //client.IsLoginIpRestrict = string.IsNullOrEmpty(isLoginIpRestrict) ? 0 : int.Parse(isLoginIpRestrict); //client.IsLoginIpAllowGather = isLoginIpAllowGather; //client.IsLoginCityRestrict = string.IsNullOrEmpty(isLoginCityRestrict) ? 0 : int.Parse(isLoginCityRestrict); //client.IsLoginCityAllowGather = isLoginCityAllowGather; _Dao.Update(client); 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) { } @@ -647,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"> @@ -657,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> @@ -699,30 +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> </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> </div> </div> <%--<div class="form-group"> <label class="control-label col-sm-2"> 归属客户经理 <span style="color:red">*</span> </label> @@ -731,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> @@ -752,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> @@ -761,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"> @@ -801,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> @@ -827,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> @@ -875,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"> 备注 web/web/GwClient.aspx.cs
@@ -82,33 +82,33 @@ return stringBuilder.ToString(); } //归属客户经理 public string customerManagerOptions(int userId) { StringBuilder stringBuilder = new StringBuilder(); if (this.SysUserList.Count == 0) return "<option value=''>无</option>"; stringBuilder.AppendFormat("<option value=\"{0}\" >{1}</option>", (object)"", (object)"无"); foreach (SysUser bean in this.SysUserList) { //停用的用户不再显示 if (bean.Status == 0) { continue; } //过滤用户类型 1-管理员;2-业务员--全员;3-客户经理;4-客服人员;5-财务人员 if (!checkStrForArrayStr(1, bean.UserType) && !checkStrForArrayStr(3, bean.UserType)) { continue; } ////归属客户经理 //public string customerManagerOptions(int userId) //{ // StringBuilder stringBuilder = new StringBuilder(); // if (this.SysUserList.Count == 0) // return "<option value=''>无</option>"; // stringBuilder.AppendFormat("<option value=\"{0}\" >{1}</option>", (object)"", (object)"无"); // foreach (SysUser bean in this.SysUserList) // { // //停用的用户不再显示 // if (bean.Status == 0) // { // continue; // } // //过滤用户类型 1-管理员;2-业务员--全员;3-客户经理;4-客服人员;5-财务人员 // if (!checkStrForArrayStr(1, bean.UserType) && !checkStrForArrayStr(3, bean.UserType)) // { // continue; // } if (userId == bean.UserID) stringBuilder.AppendFormat("<option value=\"{0}\" selected>{1}</option>", (object)bean.UserID, (object)bean.UserName); else stringBuilder.AppendFormat("<option value=\"{0}\">{1}</option>", (object)bean.UserID, (object)bean.UserName); } return stringBuilder.ToString(); } // if (userId == bean.UserID) // stringBuilder.AppendFormat("<option value=\"{0}\" selected>{1}</option>", (object)bean.UserID, (object)bean.UserName); // else // stringBuilder.AppendFormat("<option value=\"{0}\">{1}</option>", (object)bean.UserID, (object)bean.UserName); // } // return stringBuilder.ToString(); //} //归属客服人员 public string supportStaffOptions(int userId) @@ -138,33 +138,33 @@ return stringBuilder.ToString(); } //归属财务人员 public string financialStaffOptions(int userId) { StringBuilder stringBuilder = new StringBuilder(); if (this.SysUserList.Count == 0) return "<option value=''>无</option>"; stringBuilder.AppendFormat("<option value=\"{0}\" >{1}</option>", (object)"", (object)"无"); foreach (SysUser bean in this.SysUserList) { //停用的用户不再显示 if (bean.Status == 0) { continue; } //过滤用户类型 1-管理员;2-业务员--全员;3-客户经理;4-客服人员;5-财务人员 if (!checkStrForArrayStr(1, bean.UserType) && !checkStrForArrayStr(5, bean.UserType)) { continue; } ////归属财务人员 //public string financialStaffOptions(int userId) //{ // StringBuilder stringBuilder = new StringBuilder(); // if (this.SysUserList.Count == 0) // return "<option value=''>无</option>"; // stringBuilder.AppendFormat("<option value=\"{0}\" >{1}</option>", (object)"", (object)"无"); // foreach (SysUser bean in this.SysUserList) // { // //停用的用户不再显示 // if (bean.Status == 0) // { // continue; // } // //过滤用户类型 1-管理员;2-业务员--全员;3-客户经理;4-客服人员;5-财务人员 // if (!checkStrForArrayStr(1, bean.UserType) && !checkStrForArrayStr(5, bean.UserType)) // { // continue; // } if (userId == bean.UserID) stringBuilder.AppendFormat("<option value=\"{0}\" selected>{1}</option>", (object)bean.UserID, (object)bean.UserName); else stringBuilder.AppendFormat("<option value=\"{0}\">{1}</option>", (object)bean.UserID, (object)bean.UserName); } return stringBuilder.ToString(); } // if (userId == bean.UserID) // stringBuilder.AppendFormat("<option value=\"{0}\" selected>{1}</option>", (object)bean.UserID, (object)bean.UserName); // else // stringBuilder.AppendFormat("<option value=\"{0}\">{1}</option>", (object)bean.UserID, (object)bean.UserName); // } // return stringBuilder.ToString(); //} //获取产品信息 web/web/Session.ashx
@@ -125,12 +125,12 @@ Content = "请输入密码后再登录!", Tstatus = num }); if (!string.Equals(sessionCode, code, StringComparison.OrdinalIgnoreCase)) return new JsonPageResult(false, (object) new { Content = "验证码错误,请重新输入!", Tstatus = num }); //if (!string.Equals(sessionCode, code, StringComparison.OrdinalIgnoreCase)) // return new JsonPageResult(false, (object) new // { // Content = "验证码错误,请重新输入!", // Tstatus = num // }); SysUser user = new SysUser(); try