| | |
| | | + "<td>"+ (item.Is_Enable == 1 ? "<span class='label label-primary'>启用</span>" : "<span class='label label-default'>停用</span>") + "</td>"; |
| | | |
| | | str += @"<td>"; |
| | | |
| | | |
| | | if (item.Is_Enable == 1) |
| | | { |
| | | //string loginStr = "http://" + serverIp + ":" + clientPort + "/Attachedlogin.aspx?action=Attachedlogin&account=" + item.Account + "&password=" + item.Password; |
| | |
| | | { |
| | | throw new ArgumentException("登录密码不能为空,且必须为4-10位英文或数字字符组合!"); |
| | | } |
| | | GwClient gwClient = _Dao.Get(clientID); |
| | | |
| | | //密码MD5加密, |
| | | newPwd += gwClient.Salt; |
| | | newPwd = DataHelper.MD5Hex(newPwd); |
| | | |
| | | _Dao.UpdatePassword(clientID, newPwd); |
| | |
| | | int id = Int32.Parse(context.GetString("id")); |
| | | string clientID = context.GetString("clientID"); |
| | | string company = context.GetString("company"); |
| | | string password = context.GetString("password"); |
| | | //string password = context.GetString("password"); |
| | | string clientName = context.GetString("clientName"); |
| | | string address = context.GetString("address"); |
| | | string telephone = context.GetString("telephone"); |
| | |
| | | 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"); |
| | | string isRemoteLoginNotice = context.GetString("isRemoteLoginNotice"); |
| | |
| | | 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); |
| | | client.IsRemoteLoginNotice = string.IsNullOrEmpty(isRemoteLoginNotice) ? 0 : int.Parse(isRemoteLoginNotice); |
| | |
| | | client.IsLoginIpAllowGather = isLoginIpAllowGather; |
| | | client.IsLoginCityRestrict = string.IsNullOrEmpty(isLoginCityRestrict) ? 0 : int.Parse(isLoginCityRestrict); |
| | | client.IsLoginCityAllowGather = isLoginCityAllowGather; |
| | | |
| | | |
| | | client.PermissionData = permissionData; |
| | | |
| | | _Dao.Update(client); |
| | |
| | | string financialStaff = context.GetString("financialStaff"); |
| | | string chargeType = context.GetString("chargeType"); |
| | | string smsStatusReport = context.GetString("smsStatusReport"); |
| | | string mmsStatusReport = context.GetString("mmsStatusReport"); |
| | | |
| | | string mmsStatusReport = context.GetString("mmsStatusReport"); |
| | | |
| | | string isEnableWhite = context.GetString("isEnableWhite"); |
| | | string isEnableBlack = context.GetString("isEnableBlack"); |
| | | string isRemoteLoginNotice = context.GetString("isRemoteLoginNotice"); |
| | |
| | | } |
| | | } |
| | | |
| | | string salt = DataConverter.getRandom(6); |
| | | password += salt; |
| | | //密码加密 |
| | | password = DataHelper.MD5Hex(password); |
| | | |
| | | var client = new Model.GwClient(); |
| | | client.ClientID = clientID; |
| | | client.Password = password; |
| | | client.Salt = salt; |
| | | |
| | | client.ClientName = clientName; |
| | | client.Address = address; |
| | |
| | | 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.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); |
| | | client.IsRemoteLoginNotice = string.IsNullOrEmpty(isRemoteLoginNotice) ? 0 : int.Parse(isRemoteLoginNotice); |