/// <summary> /// 加载数据 /// </summary> private void BindData() { AccountsAgent agent = FacadeManage.aideAccountsFacade.GetAccountAgentByUserID(IntParam); if (agent.AgentID != 0) { CtrlHelper.SetText(lblAgentID, agent.AgentID.ToString()); CtrlHelper.SetText(lblGameID, GetGameID(IntParam)); CtrlHelper.SetText(lblAccounts, GetAccounts(IntParam)); } CtrlHelper.SetText(lblChildCount, FacadeManage.aideAccountsFacade.GetAgentChildCount(IntParam).ToString()); //获取代理分成详情 DataSet ds = FacadeManage.aideTreasureFacade.GetAgentFinance(IntParam); Int64 agentRevenue = Convert.ToInt64(ds.Tables[0].Rows[0]["AgentRevenue"]); Int64 agentPay = Convert.ToInt64(ds.Tables[0].Rows[0]["AgentPay"]); Int64 agentPayBack = Convert.ToInt64(ds.Tables[0].Rows[0]["AgentPayBack"]); Int64 agentIn = agentRevenue + agentPay + agentPayBack; Int64 agentOut = Convert.ToInt64(ds.Tables[0].Rows[0]["AgentOut"]); Int64 agentRemain = agentIn - agentOut; CtrlHelper.SetText(lblRevenue, agentRevenue.ToString()); CtrlHelper.SetText(lblPay, agentPay.ToString()); CtrlHelper.SetText(lblPayBack, agentPayBack.ToString()); CtrlHelper.SetText(lblIn, agentIn.ToString()); CtrlHelper.SetText(lblOut, agentOut.ToString()); CtrlHelper.SetText(lblRemain, agentRemain.ToString()); }
private void BindData( ) { if (IntParam <= 0) { return; } //获取信息 RecordPasswdExpend pwExpend = FacadeManage.aideRecordFacade.GetRecordPasswdExpendByRid(IntParam); if (pwExpend == null) { MessageBox("密码修改记录不存在"); btnSave.Enabled = false; return; } AccountsInfo account = FacadeManage.aideAccountsFacade.GetAccountInfoByUserID(pwExpend.UserID); if (account == null) { MessageBox("用户不存在"); btnSave.Enabled = false; return; } StrTitle = "玩家-" + account.Accounts + "-确认密码信息"; CtrlHelper.SetText(ltUserID, account.UserID.ToString( )); CtrlHelper.SetText(ltAccounts, account.Accounts.Trim( )); }
/// <summary> /// 绑定数据 /// </summary> private void BindData() { MemberProperty mt = FacadeManage.aideAccountsFacade.GetMemberProperty(IntParam); if (mt == null) { return; } CtrlHelper.SetText(lbCardName, mt.MemberName); CtrlHelper.SetText(txtTaskRate, mt.TaskRate.ToString()); CtrlHelper.SetText(txtShopRate, mt.ShopRate.ToString()); CtrlHelper.SetText(txtInsureRate, mt.InsureRate.ToString()); CtrlHelper.SetText(txtPresentScore, mt.DayPresent.ToString()); ddlDayGiftID.SelectedValue = mt.DayGiftID.ToString(); //用户权限 int intUserRight = mt.UserRight; if (ckbUserRight.Items.Count > 0) { foreach (ListItem item in ckbUserRight.Items) { item.Selected = int.Parse(item.Value) == (intUserRight & int.Parse(item.Value)); } } }
private void BindData( ) { if (StrCmd == "add") { litInfo.Text = "新增"; txtNodeID.Enabled = true; } else { litInfo.Text = "更新"; txtNodeID.Enabled = false; } if (IntParam <= 0) { return; } //获取信息 GameNodeItem gameNodeItem = FacadeManage.aidePlatformFacade.GetGameNodeItemInfo(IntParam); if (gameNodeItem == null) { ShowError("节点信息不存在"); Redirect("GameNodeItemList.aspx"); return; } CtrlHelper.SetText(txtNodeID, gameNodeItem.NodeID.ToString( ).Trim( )); CtrlHelper.SetText(txtNodeName, gameNodeItem.NodeName.Trim( )); ddlGameKind.SelectedValue = gameNodeItem.KindID.ToString( ).Trim( ); ddlJoin.SelectedValue = gameNodeItem.JoinID.ToString( ).Trim( ); CtrlHelper.SetText(txtSortID, gameNodeItem.SortID.ToString( ).Trim( )); rbtnNullity.SelectedValue = gameNodeItem.Nullity.ToString( ).Trim( ); }
/// <summary> /// 数据绑定 /// </summary> private void BindData() { string status = GameRequest.GetQueryString("param"); DataSet ds = FacadeManage.aideAccountsFacade.GetSystemStatusList(); if (ds != null && ds.Tables.Count > 0) { DataTable table = ds.Tables[0]; rptDataList.DataSource = table; rptDataList.DataBind(); status = string.IsNullOrEmpty(status) ? "EnjoinLogon" : status; foreach (DataRow item in table.Rows) { if (item["StatusName"].ToString() == status) { CtrlHelper.SetText(txtStatusName, item["StatusName"].ToString()); CtrlHelper.SetText(txtStatusValue, item["StatusValue"].ToString()); CtrlHelper.SetText(txtStatusTip, item["StatusTip"].ToString()); CtrlHelper.SetText(txtStatusString, item["StatusString"].ToString()); CtrlHelper.SetText(txtStatusDescription, item["StatusDescription"].ToString()); break; } } } }
private void BindData( ) { int typeid = GameRequest.GetQueryInt("type", 0); if (IntParam <= 0) { return; } GameProperty property = FacadeManage.aidePlatformFacade.GetPropertyInfo(IntParam, typeid); if (property == null) { return; } CtrlHelper.SetText(txtName, property.Name); CtrlHelper.SetText(txtBuyResultsGold, property.BuyResultsGold.ToString()); CtrlHelper.SetText(txtUseResultsGold, property.UseResultsGold.ToString()); CtrlHelper.SetText(txtRegulationsInfo, property.RegulationsInfo); CtrlHelper.SetText(txtSortID, property.SortID.ToString()); CtrlHelper.SetText(txtPrice, property.ExchangeRatio.ToString()); ddlType.SelectedValue = property.ExchangeType.ToString(); ddlType.Enabled = false; ddlSate.SelectedValue = property.Nullity.ToString(); //禁止用户操作 NulityInput(property.Kind); }
private void GameIssueDataBind() { if (StrCmd == "add") { litInfo.Text = "新增"; } else { litInfo.Text = "更新"; } if (IntParam <= 0) { return; } //获取问题信息 GameIssueInfo issue = aideNativeWebFacade.GetGameIssueInfo(IntParam); if (issue == null) { ShowError("问题信息不存在"); Redirect("IssueList.aspx"); return; } CtrlHelper.SetText(txtIssueTitle, issue.IssueTitle); rbtnNullity.SelectedValue = issue.Nullity.ToString().Trim(); CtrlHelper.SetText(txtIssueContent, issue.IssueContent); }
private void BindData() { GlobalWebInfo appInfo = FacadeManage.aideTreasureFacade.GetGlobalWebInfo(IntParam); if (appInfo == null) { return; } if (appInfo.ProductType < 800) { DataSet ds = FacadeManage.aideTreasureFacade.GetGlobalCardQuota(appInfo.ProductType); ddlPrice.DataSource = ds; ddlPrice.DataTextField = "CardQuota"; ddlPrice.DataValueField = "CardQuota"; ddlPrice.DataBind(); ddlPrice.Visible = true; txtPrice.Visible = false; ddlPrice.SelectedValue = Convert.ToInt32(appInfo.Price).ToString(); } else { CtrlHelper.SetText(txtPrice, appInfo.Price.ToString()); } ddlProductType.SelectedValue = appInfo.ProductType.ToString(); CtrlHelper.SetText(txtSortID, appInfo.SortID.ToString()); //CtrlHelper.SetText(txtAttachCurrency, appInfo.AttachCurrency.ToString()); CtrlHelper.SetText(txtCurrency, appInfo.PresentCurrency.ToString()); CtrlHelper.SetText(txtProductName, appInfo.ProductName); }
private void GameRoomInfoDataBind() { if (StrCmd == "add") { litInfo.Text = "新增"; } else { litInfo.Text = "更新"; } if (IntParam <= 0) { return; } //获取游戏信息 GameRoomInfo gameRoomInfo = FacadeManage.aidePlatformFacade.GetGameRoomInfoInfo(IntParam); if (gameRoomInfo == null) { ShowError("房间信息不存在"); Redirect("GameRoomInfoList.aspx"); return; } CtrlHelper.SetText(txtServerName, gameRoomInfo.ServerName.Trim()); ddlKindID.SelectedValue = gameRoomInfo.KindID.ToString().Trim(); ddlNode.SelectedValue = gameRoomInfo.NodeID.ToString( ).Trim( ); CtrlHelper.SetText(txtSortID, gameRoomInfo.SortID.ToString().Trim()); ddlGameID.SelectedValue = gameRoomInfo.GameID.ToString().Trim(); CtrlHelper.SetText(txtTableCount, gameRoomInfo.TableCount.ToString().Trim()); ddlServerType.SelectedValue = gameRoomInfo.ServerType.ToString().Trim(); CtrlHelper.SetText(txtServerPort, gameRoomInfo.ServerPort.ToString().Trim()); ddlDataBaseAddr.SelectedValue = gameRoomInfo.DataBaseAddr.Trim(); CtrlHelper.SetText(txtDataBaseName, gameRoomInfo.DataBaseName.Trim()); CtrlHelper.SetText(txtCellScore, gameRoomInfo.CellScore.ToString().Trim()); CtrlHelper.SetText(txtRevenueRatio, gameRoomInfo.RevenueRatio.ToString().Trim()); CtrlHelper.SetText(txtRestrictScore, gameRoomInfo.RestrictScore.ToString().Trim()); CtrlHelper.SetText(txtMinTableScore, gameRoomInfo.MinTableScore.ToString().Trim()); CtrlHelper.SetText(txtMinEnterScore, gameRoomInfo.MinEnterScore.ToString().Trim()); CtrlHelper.SetText(txtMaxEnterScore, gameRoomInfo.MaxEnterScore.ToString().Trim()); CtrlHelper.SetText(txtMinEnterMember, gameRoomInfo.MinEnterMember.ToString().Trim()); CtrlHelper.SetText(txtMaxEnterMember, gameRoomInfo.MaxEnterMember.ToString().Trim()); CtrlHelper.SetText(txtMaxPlayer, gameRoomInfo.MaxPlayer.ToString().Trim()); CtrlHelper.SetText(txtServerRule, gameRoomInfo.ServerRule.ToString().Trim()); CtrlHelper.SetText(txtDistributeRule, gameRoomInfo.DistributeRule.ToString().Trim()); CtrlHelper.SetText(txtMinDistributeUser, gameRoomInfo.MinDistributeUser.ToString().Trim()); //CtrlHelper.SetText(txtMaxDistributeUser, gameRoomInfo.MaxDistributeUser.ToString().Trim()); CtrlHelper.SetText(txtDistributeTimeSpace, gameRoomInfo.DistributeTimeSpace.ToString().Trim()); CtrlHelper.SetText(txtDistributeDrawCount, gameRoomInfo.DistributeDrawCount.ToString().Trim()); //CtrlHelper.SetText(txtDistributeStartDelay, gameRoomInfo.DistributeStartDelay.ToString().Trim()); CtrlHelper.SetText(txtAttachUserRight, gameRoomInfo.AttachUserRight.ToString().Trim()); CtrlHelper.SetText(txtServiceMachine, gameRoomInfo.ServiceMachine.Trim()); CtrlHelper.SetText(txtCustomRule, gameRoomInfo.CustomRule.Trim()); rbtnNullity.SelectedValue = gameRoomInfo.Nullity.ToString().Trim(); CtrlHelper.SetText(txtServerNote, gameRoomInfo.ServerNote.Trim()); CtrlHelper.SetText(lblCreateDateTime, gameRoomInfo.CreateDateTime.ToString()); CtrlHelper.SetText(lblModifyDateTime, gameRoomInfo.ModifyDateTime.ToString()); }
private void GameTypeItemDataBind() { if (StrCmd == "add") { litInfo.Text = "新增"; txtTypeID.Enabled = true; } else { litInfo.Text = "更新"; txtTypeID.Enabled = false; } if (IntParam <= 0) { return; } //获取类型信息 GamePropertyType gamePropertyType = FacadeManage.aidePlatformFacade.GetGamePropertyTypeInfo(IntParam); if (gamePropertyType == null) { ShowError("类型信息不存在"); Redirect("GamePropertyTypeList.aspx"); return; } CtrlHelper.SetText(txtTypeID, gamePropertyType.TypeID.ToString().Trim()); CtrlHelper.SetText(txtTypeName, gamePropertyType.TypeName.Trim()); CtrlHelper.SetText(txtSortID, gamePropertyType.SortID.ToString().Trim()); rbtnNullity.SelectedValue = gamePropertyType.Nullity.ToString().Trim(); hdfTagID.Value = gamePropertyType.TagID.ToString(); CtrlHelper.SetText(lblTagName, gamePropertyType.TagID == 0 ? "大厅" : "手机"); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPageRefresh) { //加载公告内容 GetPopupNotice(); if (Fetch.GetUserCookie() != null) { ezt_members members = aideNewTroyFacade.GetMembersByUserid(userTicket.Pid); memberID = members.Id; MemberName = members.Nickname; CtrlHelper.SetText(ltAccount, members.Id); //登录信息 //CtrlHelper.SetText(ltNickName, members.Nickname);//登录信息 //CtrlHelper.SetText(ltBalanceMoney, members.BalanceMoney.ToString("n0")); //CtrlHelper.SetText(ltCashMoney, members.CashMoney.ToString("n0")); //CtrlHelper.SetText(ltAllGaugeMoeny, members.Gauge_money.ToString("n0")); //CtrlHelper.SetText(ltDayGaugeMoney, members.Gauge_money_Day.ToString("n0")); ratenum = members.RateNum; //ezt_members_dayscore dayscore = aideNewTroyFacade.GetMembersDayScoreByPid(userTicket.Pid); //CtrlHelper.SetText(ltRateMoeny , dayscore.rateMoney.ToString("n0")); } //如果用户未登录则退出?? UserLongout(); //绑定数据?? BindWithDrawData(); //绑定数据?? BindMoneyBackData(); BindNewsData(); } }
private void BindData( ) { if (IntParam <= 0) { return; } //获取信息 IndividualDatum accountDetail = FacadeManage.aideAccountsFacade.GetAccountDetailByUserID(IntParam); AccountsInfo account = FacadeManage.aideAccountsFacade.GetAccountInfoByUserID(IntParam); CtrlHelper.SetText(ltGameID, account.GameID.ToString( )); CtrlHelper.SetText(ltAccounts, account.Accounts.Trim( )); if (account != null) { CtrlHelper.SetText(ltCardNum, account.PassPortID); CtrlHelper.SetText(ltName, account.Compellation.Trim( )); } if (accountDetail != null) { CtrlHelper.SetText(txtQQ, accountDetail.QQ.Trim( )); CtrlHelper.SetText(txtEMail, accountDetail.EMail.Trim( )); CtrlHelper.SetText(txtSeatPhone, accountDetail.SeatPhone.ToString( ).Trim( )); CtrlHelper.SetText(txtMobilePhone, accountDetail.MobilePhone.ToString( ).Trim( )); CtrlHelper.SetText(txtPostalCode, accountDetail.PostalCode.ToString( ).Trim( )); CtrlHelper.SetText(txtDwellingPlace, accountDetail.DwellingPlace.ToString( ).Trim( )); CtrlHelper.SetText(txtUserNote, accountDetail.UserNote.ToString( ).Trim( )); } }
private void BindData() { PagerSet pagerSet = FacadeManage.aideNativeWebFacade.GetList(SinglePage.Tablename, 1, 10000, "", " ORDER BY PageID ASC"); if (pagerSet.PageSet.Tables[0].Rows.Count > 0) { rptDataList.DataSource = pagerSet.PageSet; rptDataList.DataBind(); } SinglePage singlePage; if (IntParam == 0) { singlePage = FacadeManage.aideNativeWebFacade.GetSinglePage(FacadeManage.aideNativeWebFacade.GetSinglePageMinID()); } else { singlePage = FacadeManage.aideNativeWebFacade.GetSinglePage(IntParam); } if (singlePage == null) { return; } CtrlHelper.SetText(lbPageName, singlePage.PageName); CtrlHelper.SetText(txtKeyWords, singlePage.KeyWords); CtrlHelper.SetText(txtDescription, singlePage.Description); CtrlHelper.SetText(txtContents, singlePage.Contents); }
/// <summary> /// 绑定比赛信息 /// </summary> protected void BindMatchInfo() { if (IntParam <= 0) { return; } MatchInfo matchInfo = FacadeManage.aideGameMatchFacade.GetMatchInfo(IntParam); MatchPublic matchPublic = FacadeManage.aideGameMatchFacade.GetMatchPublicInfo(IntParam); // 绑定基础配置 if (matchPublic != null) { lblMatchName.Text = matchPublic.MatchName; lblMatchTypeName.Text = GetMatchTypeName(matchPublic.MatchType); lblMatchStatusName.Text = GetMatchStatusName(matchPublic.MatchStatus); lblKindName.Text = GetGameKindName(matchPublic.KindID); } // 绑定网站展示 if (matchInfo != null) { lblMatchDate.Text = matchInfo.MatchDate; txtMatchSummary.Text = matchInfo.MatchSummary; upSmallImage.FilePath = matchInfo.MatchImage; txtSortID.Text = matchInfo.SortID.ToString(); CtrlHelper.SetText(txtContent, matchInfo.MatchContent); } }
/// <summary> /// 数据绑定 /// </summary> private void BindData() { if (IntParam > 0) { ddlProductType.Enabled = false; AppPayConfig config = FacadeManage.aideTreasureFacade.GetAppPayConfig(IntParam); if (config != null) { CtrlHelper.SetText(txtAppleID, config.AppleID); CtrlHelper.SetText(txtCurrency, config.Score.ToString()); CtrlHelper.SetText(txtPrice, config.PayPrice.ToString(CultureInfo.InvariantCulture)); CtrlHelper.SetText(txtProductName, config.PayName); CtrlHelper.SetText(txtPresentScore, config.PresentScore.ToString()); CtrlHelper.SetText(txtFristPresent, config.FristPresent.ToString()); CtrlHelper.SetText(txtSortID, config.SortID.ToString()); ddlProductType.SelectedValue = config.PayType.ToString(); ddlScoreType.SelectedValue = config.ScoreType.ToString(); rbImage.SelectedValue = config.ImageType.ToString(); DropFirstType.SelectedValue = config.PayIdentity.ToString(); apple.Visible = config.PayType > 0; } } else { apple.Visible = false; } }
/// <summary> /// 数据绑定 /// </summary> private void BindData() { if (IntParam > 0) { ConfigInfo config = FacadeManage.aideNativeWebFacade.GetConfigInfo(IntParam); if (config != null) { CtrlHelper.SetText(txtConfigKey, config.ConfigKey); CtrlHelper.SetText(txtConfigName, config.ConfigName); CtrlHelper.SetText(txtConfigString, config.ConfigString); txtField1.Text = config.Field1; CtrlHelper.SetText(txtField2, config.Field2); CtrlHelper.SetText(txtField3, config.Field3); CtrlHelper.SetText(txtField4, config.Field4); CtrlHelper.SetText(txtField5, config.Field5); CtrlHelper.SetText(txtField6, config.Field6); CtrlHelper.SetText(txtField7, config.Field7); txtField8.Text = config.Field8; CtrlHelper.SetText(txtField9, config.Field9); CtrlHelper.SetText(txtField10, config.Field10); CtrlHelper.SetText(txtField11, config.Field11); CtrlHelper.SetText(txtField12, config.Field12); CtrlHelper.SetText(txtField13, config.Field13); } } }
private void VBDetailDataBind( ) { if (id <= 0) { return; } //获取站点信息 ReturnVBDetailInfo VBDetailInfo = aideTreasureFacade.GetVBDetailInfo(id); if (VBDetailInfo == null) { ShowError("信息不存在"); return; } CtrlHelper.SetText(litOrderID, "<a class='l' href='javascript:void(0)' onclick=\"javascript:openWindowOwn('OnLineOrderInfo.aspx?OrderID=" + VBDetailInfo.OrderID + "','online_" + VBDetailInfo.OrderID + "',600,465)\">" + VBDetailInfo.OrderID + "</a>"); CtrlHelper.SetText(litOrderTime, VBDetailInfo.CollectDate.ToString("yyyy-MM-dd HH:ss:mm")); CtrlHelper.SetText(litOperStationID, VBDetailInfo.OperStationID.ToString( )); CtrlHelper.SetText(litRtflag, VBDetailInfo.Rtflag == 1 ? "正常返回" : "补丁返回"); CtrlHelper.SetText(litRtka, VBDetailInfo.Rtka.ToString( )); CtrlHelper.SetText(litRtlx, VBDetailInfo.Rtlx == 1 ? "正式卡" : VBDetailInfo.Rtlx == 2 ? "测试卡" : "促销卡"); CtrlHelper.SetText(litRtmd5, VBDetailInfo.Rtmd5.ToString( )); CtrlHelper.SetText(LitRtmi, VBDetailInfo.Rtmi); CtrlHelper.SetText(litRtmz, VBDetailInfo.Rtmz.ToString( )); CtrlHelper.SetText(litRtoID, VBDetailInfo.Rtoid); CtrlHelper.SetText(litSignMsg, VBDetailInfo.SignMsg.ToString( )); }
private void GameRoleDataBind() { if (StrCmd == "add") { litInfo.Text = "新增"; } else { litInfo.Text = "更新"; } if (IntParam <= 0) { return; } //获取角色信息 Base_Roles role = FacadeManage.aidePlatformManagerFacade.GetRoleInfo(IntParam); if (role == null) { ShowError("角色信息不存在"); Redirect("BaseRoleInfo.aspx"); return; } CtrlHelper.SetText(txtRoleName, role.RoleName); CtrlHelper.SetText(txtDescription, role.Description); }
//绑定数据 private void ShareInfoDataBind() { PagerSet pagerSet = FacadeManage.aideTreasureFacade.GetShareDetailList(anpNews.CurrentPageIndex, anpNews.PageSize, SearchItems, Orderby); if (pagerSet.PageSet.Tables[0].Rows.Count > 0) { litNoData.Visible = false; } else { litNoData.Visible = true; trPayStat.Visible = false; } rptShareInfo.DataSource = pagerSet.PageSet; rptShareInfo.DataBind(); anpNews.RecordCount = pagerSet.RecordCount; string sqlQuery = "Select Sum(OrderAmount) AS OrderAmount, Sum(PayAmount) AS PayAmount, Sum(Currency) AS Currency From ShareDetailInfo " + SearchItems; DataSet ds = FacadeManage.aideTreasureFacade.GetDataSetBySql(sqlQuery); if (ds.Tables[0].Rows.Count > 0) { DataRow row = ds.Tables[0].Rows[0]; CtrlHelper.SetText(ltGrantCurrency, FormatMoney(row["Currency"].ToString())); CtrlHelper.SetText(ltOrderAmounts, row["OrderAmount"].ToString()); CtrlHelper.SetText(ltPayAmounts, row["PayAmount"].ToString()); } }
private void BindData( ) { if (IntParam <= 0) { return; } GameProperty property = FacadeManage.aidePlatformFacade.GetPropertyInfo(IntParam); if (property == null) { return; } CtrlHelper.SetText(txtName, property.Name); // CtrlHelper.SetText(txtExchangeGoldRaito, property.ExchangeGoldRatio.ToString()); CtrlHelper.SetText(txtExchangeDiamondRaito, property.ExchangeRatio.ToString()); CtrlHelper.SetText(txtBuyResultsGold, property.BuyResultsGold.ToString()); CtrlHelper.SetText(txtUseResultsGold, property.UseResultsGold.ToString()); CtrlHelper.SetText(txtRegulationsInfo, property.RegulationsInfo); CtrlHelper.SetText(txtSortID, property.SortID.ToString()); ckbNullity.Checked = property.Nullity == 0; ckbRecommend.Checked = property.Recommend == 1; //禁止用户操作 NulityInput(property.Kind); }
private void BindData() { if (StrCmd == "add") { litInfo.Text = "新增"; } else { litInfo.Text = "更新"; } if (IntParam <= 0) { return; } GamePropertySub property = FacadeManage.aidePlatformFacade.GetGamePropertySubInfo(IntParam, ownerID); if (property == null) { return; } ddlGameProperty.SelectedValue = property.ID.ToString(); CtrlHelper.SetText(txtCount, property.Count.ToString()); CtrlHelper.SetText(txtSortID, property.SortID.ToString()); }
private void BindData() { ConfigInfo config; if (IntParam == 0) { return; } else { config = FacadeManage.aideNativeWebFacade.GetConfigInfo(IntParam); } if (config == null) { return; } CtrlHelper.SetText(txtConfigKey, config.ConfigKey); CtrlHelper.SetText(txtConfigName, config.ConfigName); CtrlHelper.SetText(txtConfigString, config.ConfigString); CtrlHelper.SetText(txtField1, config.Field1); CtrlHelper.SetText(txtField2, config.Field2); CtrlHelper.SetText(txtField3, config.Field3); CtrlHelper.SetText(txtField4, config.Field4); CtrlHelper.SetText(txtField5, config.Field5); CtrlHelper.SetText(txtField6, config.Field6); CtrlHelper.SetText(txtField7, config.Field7); txtField8.Text = config.Field8; }
private void BindData( ) { LivcardAssociator card = FacadeManage.aideTreasureFacade.GetLivcardAssociatorInfo(StrParam); if (card == null) { return; } CtrlHelper.SetText(ltSerialID, card.SerialID); CtrlHelper.SetText(ltCardTypeName, GetCardTypeName(card.CardTypeID)); CtrlHelper.SetText(ltBuildID, card.BuildID.ToString( )); CtrlHelper.SetText(ltCardPrice, card.CardPrice.ToString( )); CtrlHelper.SetText(ltCurrency, card.Currency.ToString()); CtrlHelper.SetText(ltUseRange, GetUserRange(card.UseRange)); CtrlHelper.SetText(ltValidDate, card.ValidDate.ToString("yyyy-MM-dd HH:mm:ss")); CtrlHelper.SetText(ltBuildDate, card.BuildDate.ToString("yyyy-MM-dd HH:mm:ss")); CtrlHelper.SetText(ltSalesPerson, card.SalesPerson); CtrlHelper.SetText(ltNullity, GetNullityStatus(card.Nullity)); if (card.ApplyDate != null) { ShareDetailInfo detailInfo = FacadeManage.aideTreasureFacade.GetShareDetailInfo(StrParam); if (detailInfo != null) { plPyaCard.Visible = true; lbPayCardMsg.Text = "充值信息"; CtrlHelper.SetText(ltPayDate, detailInfo.ApplyDate.ToString( )); CtrlHelper.SetText(ltPayUser, GetAccounts(detailInfo.UserID) + "(" + GetGameID(detailInfo.UserID) + ")"); CtrlHelper.SetText(ltPayOperUser, GetAccounts(detailInfo.OperUserID)); CtrlHelper.SetText(ltPayBeforeCurrency, detailInfo.BeforeCurrency.ToString()); CtrlHelper.SetText(ltPayAddress, detailInfo.IPAddress + " " + Utils.IPQuery.GetAddressWithIP(detailInfo.IPAddress)); } } }
private void GameNewsDataBind() { if (StrCmd == "add") { litInfo.Text = "新增"; } else { litInfo.Text = "更新"; } if (IntParam <= 0) { return; } //获取类型信息 News news = FacadeManage.aideNativeWebFacade.GetNewsInfo(IntParam); if (news == null) { ShowError("新闻信息不存在"); Redirect("NewsList.aspx"); return; } CtrlHelper.SetText(txtSubject, news.Subject); chkOnTop.Checked = news.OnTop == 1; CtrlHelper.SetText(txtBody, news.Body); upImageUrl.FilePath = news.ImageUrl; }
private void BindData( ) { if (IntParam <= 0) { return; } //获取信息 AccountsInfo model = FacadeManage.aideAccountsFacade.GetAccountInfoByUserID(IntParam); if (model == null) { MessageBox("用户信息不存在"); return; } CtrlHelper.SetText(ltUserID, model.UserID.ToString( )); CtrlHelper.SetText(ltAccounts, model.Accounts.Trim( )); // 读取靓号 DataSet ds = FacadeManage.aideAccountsFacade.GetReserveIdentifierList(); if (ds.Tables[0].Rows.Count <= 0) { return; } ddlGameID.DataSource = ds.Tables[0]; ddlGameID.DataTextField = "GameID"; ddlGameID.DataValueField = "GameID"; ddlGameID.DataBind( ); }
private void GameUserDataBind() { if (StrCmd == "add") { litInfo.Text = "新增"; txtAccounts.Enabled = true; } else { litInfo.Text = "更新"; txtAccounts.Enabled = false; } if (IntParam <= 0) { return; } //获取用户信息 Base_Users user = FacadeManage.aidePlatformManagerFacade.GetUserByUserID(IntParam); if (user == null) { ShowError("用户信息不存在"); Redirect("BaseUserList.aspx"); return; } CtrlHelper.SetText(txtAccounts, user.Username); txtLogonPass.Attributes.Add("value", "********"); txtConfirmPass.Attributes.Add("value", "********"); CtrlHelper.SetText(hidfLogonPass, user.Password); ddlRole.SelectedValue = user.RoleID.ToString().Trim(); rblIsAssist.SelectedValue = user.IsAssist.ToString(); rbtnNullity.SelectedValue = user.Nullity.ToString(); }
/// <summary> /// 数据绑定 /// </summary> private void BindData() { if (IntParam > 0) { GamePackageGoods config = FacadeManage.aidePlatformFacade.GetGamePackageGoods(IntParam); if (config != null) { if (config.TypeID == 0) { CtrlHelper.SetText(txtGoodsNum, (config.GoodsNum / 1000).ToString()); } else { CtrlHelper.SetText(txtGoodsNum, config.GoodsNum.ToString()); } ddlPropertyID.SelectedValue = config.PropertyID.ToString(); ddlTypeID.SelectedValue = config.TypeID.ToString(); ddlPackageID.SelectedValue = config.PackageID.ToString(); if (!string.IsNullOrEmpty(config.ResourceURL)) { upImage.FilePath = "/Upload" + config.ResourceURL; } } } }
private void BindData( ) { GlobalLivcard cardType = aideTreasureFacade.GetGlobalLivcardInfo(IntParam); if (cardType == null) { return; } CtrlHelper.SetText(txtCardTypeName, cardType.CardName); CtrlHelper.SetText(txtCardPrice, cardType.CardPrice.ToString( )); CtrlHelper.SetText(txtCardGold, cardType.CardGold.ToString( )); if (rdoMemberOrder.Items.Count > 0) { foreach (ListItem item in rdoMemberOrder.Items) { item.Selected = item.Value == cardType.MemberOrder.ToString( ); } } //用户权限 int intUserRight = cardType.UserRight; if (ckbUserRight.Items.Count > 0) { foreach (ListItem item in ckbUserRight.Items) { item.Selected = int.Parse(item.Value) == (intUserRight & int.Parse(item.Value)); } } CtrlHelper.SetText(txtMemberDays, cardType.MemberDays.ToString( )); }
/// <summary> /// 查询本周 /// </summary> protected void btnQueryTW_Click(object sender, EventArgs e) { CtrlHelper.SetText(txtStartDate, Convert.ToDateTime(Fetch.GetWeekTime().Split('$')[0]).ToString("yyyy-MM-dd")); CtrlHelper.SetText(txtEndDate, Convert.ToDateTime(Fetch.GetWeekTime().Split('$')[1]).ToString("yyyy-MM-dd")); btnQuery_Click(sender, e); }
/// <summary> /// 数据绑定 /// </summary> private void BindData() { if (IntParam > 0) { Ads ads = FacadeManage.aideNativeWebFacade.GetAds(IntParam); if (ads != null) { CtrlHelper.SetText(txtDescript, ads.Remark); CtrlHelper.SetText(txtSortID, ads.SortID.ToString()); ddlType.SelectedValue = ads.Type.ToString(); ddlType.Enabled = false; if (!string.IsNullOrEmpty(ads.ResourceURL)) { upImage.FilePath = "/Upload" + ads.ResourceURL; } if (ads.Type == 3) { ddlLink.SelectedValue = ads.LinkURL; CtrlHelper.SetText(txtLink, ""); ddlLink.Visible = true; txtLink.Visible = false; } else if (ads.Type == 4) { linkurl.Visible = false; } else { ddlLink.Visible = false; CtrlHelper.SetText(txtLink, ads.LinkURL); } } } }