| | |
| | | str += @"白名单"; |
| | | str += @"</a> "; |
| | | |
| | | str += string.Format(@"<a class=""action-modal-black btn btn-xs btn-primary"" href=""javascript:;"" data-id=""{0}"">", item.ClientID); |
| | | str += @"黑名单"; |
| | | str += @"</a> "; |
| | | //str += string.Format(@"<a class=""action-modal-black btn btn-xs btn-primary"" href=""javascript:;"" data-id=""{0}"">", item.ClientID); |
| | | //str += @"黑名单"; |
| | | //str += @"</a> "; |
| | | |
| | | //str += string.Format(@"<a class=""action-modal-resetPwd btn btn-xs btn-primary"" href=""javascript:;"" data-id=""{0}"">", item.ClientID); |
| | | //str += @"重置密码"; |
| | |
| | | string financialStaff = context.GetString("financialStaff"); |
| | | string chargeType = context.GetString("chargeType"); |
| | | string smsStatusReport = context.GetString("smsStatusReport"); |
| | | string mmsStatusReport = context.GetString("mmsStatusReport"); |
| | | |
| | | |
| | | string isEnableWhite = context.GetString("isEnableWhite"); |
| | | string isEnableBlack = context.GetString("isEnableBlack"); |
| | |
| | | client.FinancialStaff = financialStaff; |
| | | client.ChargeType = string.IsNullOrEmpty(chargeType) ? 0 : int.Parse(chargeType); |
| | | client.SmsStatusReport = string.IsNullOrEmpty(smsStatusReport) ? 0 : int.Parse(smsStatusReport); |
| | | client.MmsStatusReport = string.IsNullOrEmpty(mmsStatusReport) ? 0 : int.Parse(mmsStatusReport); |
| | | |
| | | |
| | | client.IsEnableWhite = string.IsNullOrEmpty(isEnableWhite) ? 0 : int.Parse(isEnableWhite); |
| | | client.IsEnableBlack = string.IsNullOrEmpty(isEnableBlack) ? 0 : int.Parse(isEnableBlack); |
| | |
| | | ///创建新客户 |
| | | private JsonPageResult Save(PageContext<Model.SysUser> context) |
| | | { |
| | | |
| | | //测试 |
| | | string clientID = context.GetString("clientID"); |
| | | string password = context.GetString("password"); |
| | | string clientName = context.GetString("clientName"); |
| | |
| | | if (string.IsNullOrEmpty(clientID)) |
| | | { |
| | | throw new ArgumentException("客户账号不能为空,且必须为公司名称!"); |
| | | } |
| | | |
| | | if (address.Length >= 150) |
| | | { |
| | | throw new ArgumentException("地址长度超出限制!"); |
| | | } |
| | | |
| | | if (string.IsNullOrEmpty(company)) |
| | | { |
| | | throw new AggregateException("公司名称不能为空,且必须是全称"); |
| | | } |
| | | |
| | | if (string.IsNullOrEmpty(password) || !System.Text.RegularExpressions.Regex.IsMatch(password, @"[a-zA-Z0-9]{4,10}")) |
| | |
| | | client.Telephone = telephone; |
| | | client.Agent = agent; |
| | | client.PermissionData = permissionData; |
| | | client.ParentId = context.OperatorID; |
| | | client.Client_Parentid = context.OperatorID; |
| | | client.Certification_Status = 1; |
| | | client.Company = company; |
| | | client.CustomerManager = customerManager; |