protected void btnSave_Click(object sender, EventArgs e) { Activity model; if (IntParam > 0) { model = FacadeManage.aideNativeWebFacade.GetActivity(IntParam); } else { model = new Activity(); } //图片验证 try { if (string.IsNullOrEmpty(upImage.FilePath)) { ShowError("操作失败,请上传图片"); return; } model.ImageUrl = upImage.FilePath; } catch (Exception ex) { ShowError("操作失败,图片上传失败:" + ex.Message); return; } //更新数据 model.Title = CtrlHelper.GetText(txtActivityTitle); model.ImageUrl = upImage.FilePath; model.Describe = CtrlHelper.GetText(txtBody); model.SortID = CtrlHelper.GetInt(txtSortID, 0); model.IsRecommend = rblIsRecommend.SelectedValue == "1" ? true : false; if (IntParam > 0) { try { FacadeManage.aideNativeWebFacade.UpdateActivity(model); ShowInfo("更新成功", "ActivityList.aspx", 1000); } catch { ShowError("更新失败"); } } else { try { FacadeManage.aideNativeWebFacade.AddActivity(model); ShowInfo("新增成功", "ActivityList.aspx", 1000); } catch { ShowError("新增失败"); } } }
//订单查询 protected void btnQueryOrder_Click(object sender, EventArgs e) { int searchType = int.Parse(ddlSearchType.SelectedValue); string queryContent = CtrlHelper.GetText(txtSearch); if (queryContent == "") { ShowError("查询条件不能为空"); return; } StringBuilder condition = new StringBuilder(" WHERE 1=1 "); if (!string.IsNullOrEmpty(queryContent)) { switch (searchType) { case 1: condition.AppendFormat(" AND r6_Order='{0}' ", queryContent); break; case 2: condition.AppendFormat(" AND r2_TrxId='{0}'", queryContent); break; } } ViewState["SearchItems"] = condition.ToString( ); OnLineOrderDataBind( ); }
protected void btnSave_Click(object sender, EventArgs e) { AccountsProtect model = new AccountsProtect( ); model.ProtectID = IntParam; model.Question1 = TextFilter.FilterAll(CtrlHelper.GetSelectValue(ddlQuestion1)); model.Question2 = TextFilter.FilterAll(CtrlHelper.GetSelectValue(ddlQuestion2)); model.Question3 = TextFilter.FilterAll(CtrlHelper.GetSelectValue(ddlQuestion3)); model.Response1 = TextFilter.FilterAll(CtrlHelper.GetText(txtResponse1)); model.Response2 = TextFilter.FilterAll(CtrlHelper.GetText(txtResponse2)); model.Response3 = TextFilter.FilterAll(CtrlHelper.GetText(txtResponse3)); model.SafeEmail = TextFilter.FilterAll(CtrlHelper.GetText(txtSafeEmail)); Message msg = new Message( ); msg = FacadeManage.aideAccountsFacade.UpdateAccountsProtect(model); if (msg.Success) { MessageBox("密保信息修改成功"); } else { MessageBox(msg.Content); } }
private void ProcessData( ) { string nodeID = CtrlHelper.GetText(txtNodeID); string sortID = CtrlHelper.GetText(txtSortID); if (!Utils.Validate.IsPositiveInt(nodeID)) { ShowError("节点标识不规范,节点标识只能为正整数"); return; } if (!Utils.Validate.IsPositiveInt(sortID)) { ShowError("排序不规范,排序只能为0或正整数"); return; } GameNodeItem gameNodeItem = new GameNodeItem( ); gameNodeItem.NodeID = Convert.ToInt32(nodeID); gameNodeItem.NodeName = CtrlHelper.GetText(txtNodeName); gameNodeItem.KindID = int.Parse(ddlGameKind.SelectedValue); gameNodeItem.JoinID = int.Parse(ddlJoin.SelectedValue); gameNodeItem.SortID = Convert.ToInt32(sortID); gameNodeItem.Nullity = Convert.ToByte(rbtnNullity.SelectedValue.Trim( )); Message msg = new Message( ); if (StrCmd == "add") { //判断权限 AuthUserOperationPermission(Permission.Add); if (FacadeManage.aidePlatformFacade.IsExistsNodeID(gameNodeItem.NodeID)) { ShowError("节点标识已经存在"); return; } msg = FacadeManage.aidePlatformFacade.InsertGameNodeItem(gameNodeItem); } else { //判断权限 AuthUserOperationPermission(Permission.Edit); msg = FacadeManage.aidePlatformFacade.UpdateGameNodeItem(gameNodeItem); } if (msg.Success) { if (StrCmd == "add") { ShowInfo("节点信息增加成功", "GameNodeItemList.aspx", 1200); } else { ShowInfo("节点信息修改成功", "GameNodeItemList.aspx", 1200); } } else { ShowError(msg.Content); } }
private void ProcessData() { GameFeedbackInfo feedback = new GameFeedbackInfo(); feedback.RevertContent = CtrlHelper.GetText(txtRevertContent); feedback.RevertUserID = userExt.UserID; feedback.RevertDate = DateTime.Now; feedback.Nullity = Convert.ToByte(rbtnNullity.SelectedValue.Trim()); feedback.IsProcessed = 1; Message msg = new Message(); if (StrCmd == "edit") { feedback.FeedbackID = IntParam; msg = FacadeManage.aideNativeWebFacade.RevertGameFeedback(feedback); } if (msg.Success) { ShowInfo("成功处理反馈", "FeedbackList.aspx", 1200); } else { ShowError(msg.Content); } }
/// <summary> /// 数据保存 /// </summary> protected void btnSave_Click(object sender, EventArgs e) { //判断权限 AuthUserOperationPermission(Permission.Edit); if (IntParam > 0) { ConfigInfo config = FacadeManage.aideNativeWebFacade.GetConfigInfo(IntParam); if (config != null) { config.ConfigString = CtrlHelper.GetText(txtConfigString); config.Field1 = CtrlHelper.GetText(txtField1); config.Field2 = CtrlHelper.GetText(txtField2); config.Field3 = CtrlHelper.GetText(txtField3); config.Field4 = CtrlHelper.GetText(txtField4); config.Field5 = CtrlHelper.GetText(txtField5); config.Field6 = CtrlHelper.GetText(txtField6); config.Field7 = CtrlHelper.GetText(txtField7); config.Field8 = txtField8.Text; int result = FacadeManage.aideNativeWebFacade.UpdateConfigInfo(config); if (result > 0) { ShowInfo("配置修改成功"); } else { ShowInfo("配置修改失败"); } } } }
/// <summary> /// 数据保存 /// </summary> protected void btnSave_Click(object sender, EventArgs e) { if (!AuthUserOperationPermission(Permission.Edit)) { return; } IMGroupOption config = new IMGroupOption(); config.OptionName = CtrlHelper.GetText(txtStatusName); config.OptionValue = CtrlHelper.GetInt(txtStatusValue, 0); config.OptionTip = CtrlHelper.GetText(txtStatusTip); config.OptionDescribe = CtrlHelper.GetText(txtStatusDescription); int result = FacadeManage.aideGroupFacade.UpdateGroupOption(config); if (result > 0) { ShowInfo("修改成功"); } else { ShowError("修改失败"); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { this.txtStartDate.Text = DateTime.Now.ToString("yyyy-MM-01"); this.txtEndDate.Text = DateTime.Now.ToString("yyyy-MM-dd"); BindSpreadRecordData(); } StringBuilder sWhere = new StringBuilder(); sWhere.AppendFormat(" WHERE UserID = {0} AND Score < 0 ", Fetch.GetUserCookie().UserID); if (txtStartDate.Text.Trim() != "") { sWhere.AppendFormat(" AND CollectDate >= '{0}' ", CtrlHelper.GetText(txtStartDate) + " 00:00:00"); } if (txtEndDate.Text.Trim() != "") { sWhere.AppendFormat(" AND CollectDate < '{0}'", Convert.ToDateTime(CtrlHelper.GetText(txtEndDate)).AddDays(1)); } total = (0 - treasureFacade.GetUserSpreaderTotal(sWhere.ToString())).ToString("N"); Themes.Standard.Common_Header sHeader = (Themes.Standard.Common_Header) this.FindControl("sHeader"); sHeader.title = "会员中心"; }
protected void btnSave_Click(object sender, EventArgs e) { //判断权限 AuthUserOperationPermission(Permission.Edit); GameProperty property = new GameProperty { ID = IntParam, Name = CtrlHelper.GetText(txtName), // ExchangeGoldRatio = CtrlHelper.GetInt(txtExchangeGoldRaito, 0), ExchangeRatio = CtrlHelper.GetInt(txtExchangeDiamondRaito, 0), UseResultsGold = CtrlHelper.GetInt(txtUseResultsGold, 0), SortID = CtrlHelper.GetInt(txtSortID, 0), BuyResultsGold = CtrlHelper.GetInt(txtBuyResultsGold, 0), RegulationsInfo = CtrlHelper.GetText(txtRegulationsInfo), Nullity = (byte)(ckbNullity.Checked ? 0 : 1), Recommend = (byte)(ckbRecommend.Checked ? 1 : 0) }; try { FacadeManage.aidePlatformFacade.UpdatePropertyInfo(property); ShowInfo("更新成功"); } catch { ShowInfo("更新失败"); } }
protected void btnUpdate_Click(object sender, EventArgs e) { AccountsProtect protect = new AccountsProtect(); protect.UserID = Fetch.GetUserCookie().UserID; protect.SafeEmail = CtrlHelper.GetText(txtSafeEmail); protect.ModifyIP = GameRequest.GetUserIP(); protect.Question1 = ddlQuestion1.SelectedValue; protect.Question2 = ddlQuestion2.SelectedValue; protect.Question3 = ddlQuestion3.SelectedValue; protect.Response1 = CtrlHelper.GetText(txtMResponse1); protect.Response2 = CtrlHelper.GetText(txtMResponse2); protect.Response3 = CtrlHelper.GetText(txtMResponse3); Message umsg = accountsFacade.ModifyUserSecurity(protect); if (umsg.Success) { this.form2.Visible = false; this.divRight.Visible = true; this.divRight.InnerHtml = "<div class=\"Uright\">您已经成功修改了密码保护!</div>"; } else { Show(umsg.Content); } }
/// <summary> /// 确定兑换 /// </summary> protected void btnExch_Click(object sender, EventArgs e) { //获取兑换数据 int exchCard = CtrlHelper.GetInt(txtCardCount, 0); string password = CtrlHelper.GetText(txtPassword); //数据验证 if (exchCard <= 0) { ShowInfo("抱歉,兑换房卡数需大于或等于零"); return; } if (string.IsNullOrEmpty(password)) { ShowInfo("抱歉,银行密码不能为空"); return; } //执行兑换操作 Message msg = FacadeManage.aideTreasureFacade.ExchRoomCard(userTicket.UserID, TextEncrypt.EncryptPassword(password), exchCard, GameRequest.GetUserIP()); if (msg.Success) { Response.Redirect("/Menu/ExchangeSuccess.aspx"); } else { txtCardCount.Text = "0"; ShowInfo(msg.Content); } }
/// <summary> /// 数据保存 /// </summary> protected void btnSave_Click(object sender, EventArgs e) { Base_Roles role = new Base_Roles(); if (IntParam > 0) { if (!AuthUserOperationPermission(Permission.Edit)) { return; } role = FacadeManage.aidePlatformManagerFacade.GetRoleInfo(IntParam); } else { if (!AuthUserOperationPermission(Permission.Add)) { return; } } role.RoleName = CtrlHelper.GetText(txtRoleName); role.Description = CtrlHelper.GetText(txtDescription); int result = IntParam > 0? FacadeManage.aidePlatformManagerFacade.UpdateRole(role) : FacadeManage.aidePlatformManagerFacade.InsertRole(role); if (result > 0) { ShowInfo("角色信息操作成功", "BaseRoleList.aspx", 1200); } else { ShowError("角色信息操作失败"); } }
/// <summary> /// 数据保存 /// </summary> protected void btnSave_Click(object sender, EventArgs e) { Question quest = new Question() { QuestionTitle = txtQuestion.Text.Trim(), Answer = txtAnswer.Text.Trim(), SortID = Convert.ToInt32(txtSortID.Text) }; if (IntParam > 0) { AuthUserOperationPermission(Permission.Edit); quest.ID = IntParam; } else { AuthUserOperationPermission(Permission.Add); } quest.QuestionTitle = CtrlHelper.GetText(txtQuestion); quest.Answer = CtrlHelper.GetText(txtAnswer); quest.SortID = CtrlHelper.GetInt(txtSortID, 0); int result = FacadeManage.aideNativeWebFacade.SaveQuestionInfo(quest); if (result > 0) { ShowInfo("常见问题操作成功", "QuestionList.aspx", 1000); } else { ShowError("常见问题操作失败"); } }
//保存 protected void btnSave_Click(object sender, EventArgs e) { GlobalAppInfo appInfo; if (IntParam <= 0) { appInfo = new GlobalAppInfo(); } else { appInfo = FacadeManage.aideTreasureFacade.GetGlobalAppInfo(IntParam); } appInfo.ProductID = CtrlHelper.GetText(txtProductID); appInfo.ProductName = CtrlHelper.GetText(txtProductName); appInfo.Description = CtrlHelper.GetText(txtDescription); appInfo.Price = Convert.ToDecimal(CtrlHelper.GetText(txtPrice)); appInfo.AttachCurrency = Convert.ToDecimal(CtrlHelper.GetText(txtAttachCurrency)); if (IntParam <= 0) { FacadeManage.aideTreasureFacade.InsertGlobalAppInfo(appInfo); ShowInfo("新增成功", "OrderAppProductList.aspx", 1200); } else { FacadeManage.aideTreasureFacade.UpdateGlobalAppInfo(appInfo); ShowInfo("更新成功", "OrderAppProductList.aspx", 1200); } }
/// <summary> /// 确定购买 /// </summary> protected void btnSubmit_Click(object sender, EventArgs e) { //获取数据 int num = CtrlHelper.GetInt(txtBuyNum, 0); string password = CtrlHelper.GetText(txtPassword); //数据验证 if (num <= 0) { Show("抱歉,购买数量不正确"); return; } if (string.IsNullOrEmpty(password)) { Show("抱歉,银行密码不正确"); return; } Message msg = FacadeManage.aideTreasureFacade.BuyRoomCardGeneral(userTicket.UserID, TextEncrypt.EncryptPassword(password), num, GameRequest.GetUserIP(), 1); if (msg.Success) { Response.Redirect("/RoomCard/Success.aspx?id=3"); } else { Show(msg.Content); } }
private void ProcessData() { ConfigInfo config; if (IntParam == 0) { return; } else { config = FacadeManage.aideNativeWebFacade.GetConfigInfo(IntParam); } if (config == null) { return; } config.ConfigString = CtrlHelper.GetText(txtConfigString); config.Field1 = CtrlHelper.GetText(txtField1); config.Field2 = CtrlHelper.GetText(txtField2); config.Field3 = CtrlHelper.GetText(txtField3); config.Field4 = CtrlHelper.GetText(txtField4); config.Field5 = CtrlHelper.GetText(txtField5); config.Field6 = CtrlHelper.GetText(txtField6); config.Field7 = CtrlHelper.GetText(txtField7); config.Field8 = txtField8.Text; FacadeManage.aideNativeWebFacade.UpdateConfigInfo(config); ShowInfo("修改成功"); }
protected void btnSave_Click(object sender, EventArgs e) { AuthUserOperationPermission(Permission.Edit); //更新充值卡表 string date = CtrlHelper.GetText(txtEnjoinOverDate); string password = CtrlHelper.GetText(txtPassword); int buildId = Convert.ToInt32(GameRequest.GetString("buildId").Trim( )); if (date == "" && password == "") { MessageBox("请输入密码或者有效期"); return; } StringBuilder sqlQuery = new StringBuilder(); if (date != "" && password != "") { sqlQuery.AppendFormat("update {0} set ValidDate='{1}',PassWord='******' where CardID in ({3})", LivcardAssociator.Tablename, date, Utility.MD5(password), StrParamsList); } else { if (date != "") { sqlQuery.AppendFormat("update {0} set ValidDate='{1}' where CardID in ({2})", LivcardAssociator.Tablename, date, StrParamsList); } else { sqlQuery.AppendFormat("update {0} set PassWord='******' where CardID in ({2})", LivcardAssociator.Tablename, Utility.MD5(password), StrParamsList); } } int results = FacadeManage.aideTreasureFacade.ExecuteSql(sqlQuery.ToString()); LivcardBuildStream LivcardBuild = FacadeManage.aideTreasureFacade.GetLivcardBuildStreamInfo(buildId); //更新批次表 string byteList = UnicodeEncoding.Default.GetString(LivcardBuild.BuildCardPacket); StringBuilder sqlQueryCard = new StringBuilder( ); sqlQueryCard.AppendFormat("SELECT SerialID FROM {0} WHERE CardID in ({1})", LivcardAssociator.Tablename, StrParamsList); DataSet ds = FacadeManage.aideTreasureFacade.GetDataSetBySql(sqlQueryCard.ToString()); foreach (DataRow row in ds.Tables[0].Rows) { string serialID = row["SerialID"].ToString( ); int number1 = byteList.IndexOf(serialID); string prefix = byteList.Substring(0, number1 + serialID.Length + 1); int number2 = byteList.IndexOf("/", number1 + serialID.Length + 1); string profix = byteList.Substring(number2); byteList = prefix + password + profix; } LivcardBuild.BuildCardPacket = UnicodeEncoding.Default.GetBytes(byteList); FacadeManage.aideTreasureFacade.UpdateLivcardBuildStream(LivcardBuild); if (results > 0) { MessageBoxClose("成功更新" + results + "条记录"); } else { MessageBoxClose("没有符合的数据更新"); } }
private void ProcessData( ) { if (string.IsNullOrEmpty(txtStatusName.Text.Trim( ))) { return; } SystemStatusInfo config = new SystemStatusInfo( ); config.StatusName = CtrlHelper.GetText(txtStatusName); config.StatusValue = CtrlHelper.GetInt(txtStatusValue, 0); config.StatusString = CtrlHelper.GetText(txtStatusString); config.StatusTip = CtrlHelper.GetText(txtStatusTip); config.StatusDescription = CtrlHelper.GetText(txtStatusDescription); Message msg = new Message( ); msg = FacadeManage.aideAccountsFacade.UpdateSystemStatusInfo(config); if (msg.Success) { ShowInfo("修改成功"); } else { ShowError(msg.Content); } }
/// <summary> /// 数据保存 /// </summary> protected void btnSave_Click(object sender, EventArgs e) { SystemMessage systemMessage = new SystemMessage(); if (IntParam > 0) { AuthUserOperationPermission(Permission.Edit); systemMessage = FacadeManage.aidePlatformFacade.GetSystemMessageInfo(IntParam); systemMessage.UpdateMasterID = userExt.UserID; systemMessage.UpdateDate = DateTime.Now; } else { AuthUserOperationPermission(Permission.Add); systemMessage.CreateMasterID = userExt.UserID; systemMessage.CreateDate = DateTime.Now; } systemMessage.MessageString = CtrlHelper.GetText(txtMessageString); systemMessage.MessageType = Convert.ToInt32(ddlMessageType.SelectedValue.Trim()); systemMessage.StartTime = Convert.ToDateTime(CtrlHelper.GetText(txtStartTime)); systemMessage.ConcludeTime = Convert.ToDateTime(CtrlHelper.GetText(txtConcludeTime)); systemMessage.TimeRate = CtrlHelper.GetInt(txtTimeRate, 0); systemMessage.CollectNote = CtrlHelper.GetText(txtCollectNote); StringBuilder sb = new StringBuilder(); if (!tvKinds.Nodes[0].Checked) { foreach (TreeNode node in tvKinds.CheckedNodes) { if (node.Value != "") { sb.Append(node.Value.ToString() + ","); } } } else { sb.Length = 0; sb.Append("0"); } if (sb.ToString() == "" || sb.ToString() == null) { ShowError("请选择要控制的房间!"); return; } systemMessage.ServerRange = sb.ToString(); int result = IntParam > 0 ? FacadeManage.aidePlatformFacade.UpdateSystemMessage(systemMessage) : FacadeManage.aidePlatformFacade.InsertSystemMessage(systemMessage); if (result > 0) { ShowInfo("系统消息操作成功", "SystemMessageList.aspx", 1200); } else { ShowError("系统消息操作失败"); } }
/// <summary> /// 数据绑定 /// </summary> private void BindData() { string query = CtrlHelper.GetText(txtSearch); string stime = CtrlHelper.GetText(txtStartDate); string etime = CtrlHelper.GetText(txtEndDate); string where = "WHERE 1=1"; if (!string.IsNullOrEmpty(query)) { if (!Utils.Validate.IsPositiveInt(query)) { ShowError("输入查询格式不正确"); return; } UserInfo info = FacadeManage.aideAccountsFacade.GetUserInfo(0, Convert.ToInt32(query)); where = where + string.Format(" AND SourceUserID={0}", info != null ? info.UserID : -1); } if (!string.IsNullOrEmpty(stime) && !string.IsNullOrEmpty(etime)) { where = where + string.Format(" AND UseDate>='{0}' AND UseDate<='{1}'", stime + " 00:00:00", etime + " 23:59:59"); } PagerSet pagerSet = FacadeManage.aideRecordFacade.GetPageUsePropertyList(where, " ORDER BY UseDate DESC", anpNews.CurrentPageIndex, anpNews.PageSize); anpNews.RecordCount = pagerSet.RecordCount; if (pagerSet.RecordCount > 0) { usertable = pagerSet.PageSet.Tables[1]; rptDataList.DataSource = pagerSet.PageSet.Tables[0]; rptDataList.DataBind(); } rptDataList.Visible = pagerSet.RecordCount > 0; litNoData.Visible = pagerSet.RecordCount <= 0; }
//查询 protected void btnSearch_OnClick(object sender, EventArgs e) { StringBuilder condition = new StringBuilder("WHERE 1=1 "); string strKeyword = CtrlHelper.GetText(txtKeyword); string type = ddlSearchtype.SelectedValue; if (!string.IsNullOrEmpty(strKeyword)) { if (type.Equals("1"))//GAMEID { if (Utils.Validate.IsPositiveInt(strKeyword)) { condition.AppendFormat(" AND UserID={0}", GetUserIDByGameID(Convert.ToInt32(strKeyword))); } else { ShowError("你输入的游戏ID必须为正整数"); return; } } else { condition.AppendFormat(" AND UserID={0}", GetUserIDByAccount(strKeyword)); } } ViewState["SearchItems"] = condition.ToString(); BindData(); }
/// <summary> /// 用户查询 /// </summary> protected void btnUseSearch_Click(object sender, EventArgs e) { StringBuilder where = new StringBuilder("WHERE 1=1"); string text = CtrlHelper.GetText(txtUser); int a = 0; if (!string.IsNullOrEmpty(text)) { int userID; if (ddlType.SelectedValue == "0") { userID = GetUserIDByAccount(text); } else { if (!int.TryParse(text, out a)) { ShowError("游戏ID必须为整数"); return; } userID = GetUserIDByGameID(Convert.ToInt32(text)); } where.AppendFormat(" AND UserID={0}", userID); } SearchItems = where.ToString(); DataMallOrder(); }
/// <summary> /// 数据保存 /// </summary> protected void btnSave_Click(object sender, EventArgs e) { if (!AuthUserOperationPermission(Permission.Edit)) { return; } SystemStatusInfo config = new SystemStatusInfo(); config.StatusName = CtrlHelper.GetText(txtStatusName); config.StatusValue = CtrlHelper.GetInt(txtStatusValue, 0); config.StatusString = CtrlHelper.GetText(txtStatusString); config.StatusTip = CtrlHelper.GetText(txtStatusTip); config.StatusDescription = CtrlHelper.GetText(txtStatusDescription); int result = FacadeManage.aideAccountsFacade.UpdateSystemStatusInfo(config); if (result > 0) { ShowInfo("修改成功"); } else { ShowError("修改失败"); } }
//保存 protected void btnSave_Click(object sender, EventArgs e) { RoomCardConfig config; if (IntParam <= 0) { config = new RoomCardConfig(); } else { config = FacadeManage.aideTreasureFacade.GetRoomCardConfig(IntParam); } config.Amount = Convert.ToDecimal(CtrlHelper.GetText(txtAmount)); config.Currency = Convert.ToDecimal(CtrlHelper.GetText(txtCurrency)); config.RoomCard = CtrlHelper.GetInt(txtRoomCard, 0); config.SortID = CtrlHelper.GetInt(txtSortID, 0); if (IntParam <= 0) { FacadeManage.aideTreasureFacade.InsertRoomCardConfig(config); ShowInfo("新增成功", "RoomCardBuyList.aspx", 1200); } else { FacadeManage.aideTreasureFacade.UpdateRoomCardConfig(config); ShowInfo("更新成功", "RoomCardBuyList.aspx", 1200); } }
protected void btnPublish_Click(object sender, EventArgs e) { if (txtAccounts.Text.Trim() != "") { Message umsg = accountsFacade.IsAccountsExist(CtrlHelper.GetText(txtAccounts)); if (umsg.Success) { Show("您输入的用户名不存在,请重新输入!"); this.txtAccounts.Text = ""; return; } } GameFeedbackInfo info = new GameFeedbackInfo(); info.Accounts = txtAccounts.Text.Trim(); info.FeedbackContent = TextFilter.FilterScript(txtContent.Text.Trim()).Replace("'", "\\'"); info.FeedbackTitle = TextFilter.FilterScript(txtTitle.Text.Trim()); info.ClientIP = GameRequest.GetUserIP(); Message msg = webFacade.PublishFeedback(info); if (msg.Success) { ShowAndRedirect("感谢您的问题反馈,我们将尽快给予回复,敬请留意!", "/Service/FeedbackList.aspx"); } else { Show(msg.Content); } }
/// <summary> /// 数据保存 /// </summary> protected void btnSave_Click(object sender, EventArgs e) { SystemNotice notice = new SystemNotice(); if (IntParam > 0) { AuthUserOperationPermission(Permission.Edit); notice = FacadeManage.aideNativeWebFacade.GetSystemNoticeInfo(IntParam); } else { AuthUserOperationPermission(Permission.Add); notice.PublisherTime = DateTime.Now; } notice.MoblieContent = txtMobile.Text; notice.WebContent = txtWeb.Text; notice.IsHot = cbHot.Checked; notice.IsTop = cbTop.Checked; notice.Nullity = cbNullity.Checked; notice.Publisher = CtrlHelper.GetText(txtPublisher); notice.SortID = CtrlHelper.GetInt(txtSort, 1); notice.NoticeTitle = CtrlHelper.GetText(txtTitle); int result = IntParam > 0 ? FacadeManage.aideNativeWebFacade.UpdateSystemNotice(notice) : FacadeManage.aideNativeWebFacade.InsertSystemNotice(notice); if (result > 0) { ShowInfo("新闻公告操作成功", "SystemNoticeList.aspx", 1000); } else { ShowError("新闻公告操作失败"); } }
/// <summary> /// 数据保存 /// </summary> protected void btnSave_Click(object sender, EventArgs e) { Base_Users user = new Base_Users(); if (IntParam > 0) { AuthUserOperationPermission(Permission.Edit); user = FacadeManage.aidePlatformManagerFacade.GetUserByUserId(IntParam); } else { AuthUserOperationPermission(Permission.Add); } user.Username = CtrlHelper.GetText(txtAccounts); if (hidfLogonPass.Value.Trim() == "********") { user.Password = Utility.MD5(txtLogonPass.Text.Trim()); } else { user.Password = hidfLogonPass.Value.Trim(); } user.RoleID = Convert.ToInt32(ddlRole.SelectedValue.Trim()); int result = IntParam > 0? FacadeManage.aidePlatformManagerFacade.ModifyUserInfo(user): FacadeManage.aidePlatformManagerFacade.RegisterUser(user); if (result > 0) { ShowInfo("用户信息操作成功", "BaseUserList.aspx", 1200); } else { ShowError("用户信息操作失败"); } }
protected void btnSave_Click(object sender, EventArgs e) { //判断权限 if (!AuthUserOperationPermission(Permission.Edit)) { return; } GameProperty property = new GameProperty(); property.ID = IntParam; property.ExchangeType = (byte)GameRequest.GetQueryInt("type", 0); property.BuyResultsGold = CtrlHelper.GetInt(txtBuyResultsGold, 0); property.ExchangeRatio = CtrlHelper.GetInt(txtPrice, 0); property.Name = CtrlHelper.GetText(txtName); property.Nullity = Convert.ToByte(ddlSate.SelectedValue); property.RegulationsInfo = CtrlHelper.GetText(txtRegulationsInfo); property.SortID = CtrlHelper.GetInt(txtSortID, 0); property.UseResultsGold = CtrlHelper.GetInt(txtUseResultsGold, 0); property.BuyResultsGold = CtrlHelper.GetInt(txtBuyResultsGold, 0); int result = FacadeManage.aidePlatformFacade.UpdatePropertyInfo(property); if (result > 0) { ShowInfo("更新成功", "PropertyConfigList.aspx", 500); } else { ShowError("更新失败"); } }
/// <summary> /// 通用设置查询条件 /// </summary> private void SetCondition() { string query = CtrlHelper.GetTextAndFilter(txtSearch); int type = Convert.ToInt32(ddlSearchType.SelectedValue); string startDate = CtrlHelper.GetText(txtStartDate) + " 00:00:00"; string endDate = CtrlHelper.GetText(txtEndDate) + " 23:59:59"; StringBuilder condition = new StringBuilder(); condition.Append("WHERE 1=1"); if (!string.IsNullOrEmpty(query)) { if (!Utils.Validate.IsPositiveInt(query)) { ShowError("输入查询格式不正确"); return; } condition.AppendFormat(" AND UserID={0}", type == 1 ? GetUserIDByGameID(Convert.ToInt32(query)) : Convert.ToInt32(query)); } if (!string.IsNullOrEmpty(startDate)) { condition.AppendFormat(" AND CollectDate >= '{0}' ", startDate); } if (!string.IsNullOrEmpty(endDate)) { condition.AppendFormat(" AND CollectDate <= '{0}' ", endDate); } ViewState["SearchItems"] = condition.ToString(); }
protected void btnConfirm_Click(object sender, EventArgs e) { GameMatchUserInfo userInfo = new GameMatchUserInfo( ); userInfo.Accounts = CtrlHelper.GetText(txtAccounts); userInfo.ClientIP = GameRequest.GetUserIP( ); userInfo.CollectDate = DateTime.Now; userInfo.Compellation = CtrlHelper.GetText(txtCompellation); userInfo.DwellingPlace = CtrlHelper.GetText(txtDwellingPlace); userInfo.EMail = CtrlHelper.GetText(txtEMail); userInfo.Gender = Convert.ToByte(rdoFemale.Checked == true ? 0 : 1); userInfo.MatchID = XID; userInfo.MobilePhone = CtrlHelper.GetText(txtMobilePhone); userInfo.PassportID = CtrlHelper.GetText(txtPassportID); userInfo.PostalCode = CtrlHelper.GetText(txtPostalCode); userInfo.QQ = CtrlHelper.GetText(txtQQ); Message umsg = webFacade.AddGameMatch(userInfo, TextEncrypt.EncryptPassword(CtrlHelper.GetText(txtPwd))); if (umsg.Success) { ShowAndRedirect("报名成功!", "/Match/Index.aspx"); } else { Show(umsg.Content); } }