private void AddUser() { string str = LSRequest.qq("nicker"); string str2 = LSRequest.qq("userKind"); string message = ""; if (!base.ValidParamByUserEdit("filluser", ref message, null, this.lottrty_six, this.lottrty_kc)) { base.noRightOptMsg(message); } if ((!str2.ToUpper().Equals("A") && !str2.ToUpper().Equals("B")) && !str2.ToUpper().Equals("C")) { base.Response.End(); } cz_saleset_six _six = new cz_saleset_six(); _six.set_u_id(this.uid); _six.set_u_nicker(str.Trim()); _six.set_six_kind(str2.Trim().ToUpper()); if (CallBLL.cz_saleset_six_bll.UpdateUser(_six)) { base.successOptMsg("修改外補會員成功!"); } else { base.noRightOptMsg("修改外補會員失敗!"); } }
private void AddUser() { string str = LSRequest.qq("userNicker"); string str2 = LSRequest.qq("userKind_six"); string message = ""; if (!base.ValidParamByUserEdit("filluser", ref message, null, this.lottrty_six, this.lottrty_kc)) { base.Response.Write(base.ShowDialogBox(message, null, 400)); base.Response.End(); } if ((!str2.ToUpper().Equals("A") && !str2.ToUpper().Equals("B")) && !str2.ToUpper().Equals("C")) { base.Response.End(); } cz_saleset_six _six = new cz_saleset_six(); _six.set_u_id(this.uid); _six.set_u_nicker(str.Trim()); _six.set_six_kind(str2.Trim().ToUpper()); if (CallBLL.cz_saleset_six_bll.UpdateUser(_six)) { 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() { string str = LSRequest.qq("userName").ToLower().Trim(); string str2 = LSRequest.qq("userNicker"); string str3 = LSRequest.qq("userKind_six"); string message = ""; if (!base.ValidParamByUserAdd("filluser", ref message, null, this.lottrty_six, this.lottrty_kc)) { base.noRightOptMsg(message); } if ((!str3.ToUpper().Equals("A") && !str3.ToUpper().Equals("B")) && !str3.ToUpper().Equals("C")) { base.Response.End(); } cz_saleset_six model = new cz_saleset_six(); model.set_u_id(Guid.NewGuid().ToString()); model.set_u_name(str.Trim()); model.set_u_nicker(str2.Trim()); model.set_six_kind(str3.Trim().ToUpper()); model.set_add_date(new DateTime?(DateTime.Now)); string str5 = ""; Dictionary<string, string> data = new Dictionary<string, string>(); if (CallBLL.cz_saleset_six_bll.AddUser(model, ref str5)) { CallBLL.cz_saleset_six_bll.GetSaleSetUser(); string str6 = ""; str6 = str6 + "{" + "\"saleuser\": {"; DataTable saleSetUser = CallBLL.cz_saleset_six_bll.GetSaleSetUser(); if (saleSetUser != null) { for (int i = 0; i < saleSetUser.Rows.Count; i++) { if (i == 0) { str6 = str6 + string.Format("\"{0}\": {1}", saleSetUser.Rows[i]["u_name"], saleSetUser.Rows[i]["flag"]); } else { str6 = str6 + string.Format(",\"{0}\": {1}", saleSetUser.Rows[i]["u_name"], saleSetUser.Rows[i]["flag"]); } } } str6 = str6 + "}}"; base.user_add_fill_log(model); string text1 = "/Account/filluser_drawback.aspx?uid=" + str5 + "&isadd=1"; StringBuilder builder = new StringBuilder(); builder.Append("<script>"); builder.AppendFormat(" top.aAllowSaleUserName = {0};", str6); builder.Append("</script>"); data.Add("uname", model.get_u_name()); data.Add("uid", model.get_u_id()); base.successOptMsg("添加外補會員成功!", data); } else { base.noRightOptMsg("添加外補會員失敗!"); } }