private void AddUser() { LSRequest.qq("userName"); string str = LSRequest.qq("userPassword"); string str2 = LSRequest.qq("userNicker"); string str3 = LSRequest.qq("qx"); string str4 = LSRequest.qq("unlock"); string message = ""; if (!base.ValidParamByUserEdit("child", ref message, null, null, null)) { base.Response.Write(base.ShowDialogBox(message, null, 400)); base.Response.End(); } if (!string.IsNullOrEmpty(str.Trim()) && !Regexlib.IsValidPassword(str.Trim(), base.get_GetPasswordLU())) { if (base.get_GetPasswordLU().Equals("1")) { base.Response.Write(base.ShowDialogBox("密碼要8-20位,且必需包含大寫字母、小寫字母和数字!", null, 400)); } else { base.Response.Write(base.ShowDialogBox("密碼要8-20位,且必需包含字母、和数字!", null, 400)); } base.Response.End(); } cz_users_child _child = new cz_users_child(); _child.set_u_id(this.u_id.ToString().ToUpper()); _child.set_u_nicker(str2.Trim()); if (!string.IsNullOrEmpty(str4) && (str4 == "1")) { _child.set_retry_times(0); } if (!string.IsNullOrEmpty(str)) { string ramSalt = Utils.GetRamSalt(6); _child.set_u_psw(DESEncrypt.EncryptString(str, ramSalt)); _child.set_salt(ramSalt); } _child.set_permissions_name(str3.Trim()); cz_users_child userByUID = CallBLL.cz_users_child_bll.GetUserByUID(_child.get_u_id()); if (CallBLL.cz_users_child_bll.UpdateUser(_child)) { base.user_edit_children_log(userByUID, _child); base.Response.Write(base.ShowDialogBox("修改子帳號成功!", base.UserReturnBackUrl, 0)); base.Response.End(); } else { base.Response.Write(base.ShowDialogBox("修改子帳號失敗!", base.UserReturnBackUrl, 400)); base.Response.End(); } }
private void AddUser() { LSRequest.qq("cloneName"); string str = LSRequest.qq("password"); string str2 = LSRequest.qq("nicker"); string str3 = LSRequest.qq("qx"); string str4 = LSRequest.qq("isLocked"); string message = ""; if (!base.ValidParamByUserEditPhone("child", ref message, null, null, null)) { base.noRightOptMsg(message); } if (!string.IsNullOrEmpty(str.Trim()) && !Regexlib.IsValidPassword(str.Trim(), base.get_GetPasswordLU())) { if (base.get_GetPasswordLU().Equals("1")) { base.noRightOptMsg("密碼要8-20位,且必需包含大寫字母、小寫字母和数字!"); } else { base.noRightOptMsg("密碼要8-20位,且必需包含字母、和数字!"); } } cz_users_child _child = new cz_users_child(); _child.set_u_id(this.u_id.ToString().ToUpper()); _child.set_u_nicker(str2.Trim()); if (!string.IsNullOrEmpty(str4) && (str4 == "1")) { _child.set_retry_times(0); } if (!string.IsNullOrEmpty(str)) { string ramSalt = Utils.GetRamSalt(6); _child.set_u_psw(DESEncrypt.EncryptString(str, ramSalt)); _child.set_salt(ramSalt); } _child.set_permissions_name(str3.Trim()); cz_users_child userByUID = CallBLL.cz_users_child_bll.GetUserByUID(_child.get_u_id()); if (CallBLL.cz_users_child_bll.UpdateUser(_child)) { base.user_edit_children_log(userByUID, _child); base.successOptMsg("修改子帳號成功!"); } else { base.noRightOptMsg("修改子帳號失敗!"); } }