| | |
| | | string serverIp = ConfigurationManager.AppSettings["serverIp"]; |
| | | string clientPort = ConfigurationManager.AppSettings["clientPort"]; |
| | | |
| | | int isSub = context.GetInt("isSub",0); |
| | | |
| | | string str = ""; |
| | | using (GwClientDao dao = new GwClientDao()) |
| | | { |
| | | string permissionsSQL = dao.GetClientPermissions(_userId, _userType, "gwc"); |
| | | var list = dao.LoadInfoList(out recordCount, pageIndex, pageSize, ClientID, ClientName, Telephone, Agent, Company, Salesman, SupportStaff, ProductId, IsEnable, permissionsSQL); |
| | | var list = dao.LoadInfoList(out recordCount, pageIndex, pageSize, ClientID, ClientName, Telephone, Agent, Company, Salesman, SupportStaff, ProductId, IsEnable,isSub, permissionsSQL); |
| | | |
| | | if (list != null && list.Count > 0) |
| | | { |
| | |
| | | string financialStaff = context.GetString("financialStaff"); |
| | | string chargeType = context.GetString("chargeType"); |
| | | string smsStatusReport = context.GetString("smsStatusReport"); |
| | | |
| | | |
| | | |
| | | 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.IsEnableWhite = string.IsNullOrEmpty(isEnableWhite) ? 0 : int.Parse(isEnableWhite); |
| | | client.IsEnableBlack = string.IsNullOrEmpty(isEnableBlack) ? 0 : int.Parse(isEnableBlack); |
| | |
| | | throw new ArgumentException("客户账号不能为空,且必须为公司名称!"); |
| | | } |
| | | |
| | | if (address.Length >= 150) |
| | | { |
| | | throw new ArgumentException("地址长度超出限制!"); |
| | | } |
| | | |
| | | if (string.IsNullOrEmpty(company)) |
| | | { |
| | | throw new AggregateException("公司名称不能为空,且必须是全称"); |