private void GetID() { LotteryID = Shove._Convert.StrToInt(tbLotteryID.Value, -1); PlayTypeID = Shove._Convert.StrToInt(tbPlayTypeID.Value, -1); UserID = Shove._Convert.StrToInt(tbUserID.Value, -1); SLS.Lottery lottery = new SLS.Lottery(); if (!lottery.ValidID(LotteryID)) { PF.GoError(ErrorNumber.Unknow, "参数错误,系统异常。", this.GetType().FullName); return; } if (!lottery[LotteryID].CheckPlayType(PlayTypeID)) { PF.GoError(ErrorNumber.Unknow, "参数错误,系统异常。", this.GetType().FullName); return; } LotteryName = lottery[LotteryID].name; PlayTypeName = lottery.GetPlayTypeName(PlayTypeID); Name = new Users(1)[1, UserID].Name; }
protected void Page_Load(object sender, System.EventArgs e) { if (!this.IsPostBack) { SLS.Lottery lottery = new SLS.Lottery(); int LotteryID = Shove._Convert.StrToInt(Shove._Web.Utility.GetRequest("id"), -1); if (!lottery.ValidID(LotteryID)) { return; } tbLotteryID.Value = LotteryID.ToString(); strLotteryID = LotteryID.ToString(); strIsuse = ""; try { strIsuse = Shove._Web.Utility.GetRequest("Isuse"); } catch { } tbIsuse.Value = strIsuse; int PlayType = Shove._Convert.StrToInt(Shove._Web.Utility.GetRequest("PlayType"), -1); if (PlayType < 0) { return; } bool PlayTypeRight = false; strLotteryName = lottery[LotteryID].name; PlayTypeRight = lottery[LotteryID].CheckPlayType(PlayType); if (!PlayTypeRight) { return; } tbPlayType.Value = PlayType.ToString(); strPlayType = PlayType.ToString(); tbSchemeFileName.Value = "null"; tbLotteryNumber.Value = "null"; strSchemeFileName = "null"; strLotteryNumber = "null"; } }
protected void Page_Load(object sender, System.EventArgs e) { if (!this.IsPostBack) { SLS.Lottery lottery = new SLS.Lottery(); int LotteryID = Shove._Convert.StrToInt(Shove._Web.Utility.GetRequest("id"), -1); if (!lottery.ValidID(LotteryID)) { return; } tbLotteryID.Value = LotteryID.ToString(); strLotteryID = LotteryID.ToString(); strIsuse = ""; try { strIsuse = Shove._Web.Utility.GetRequest("Isuse"); } catch { } tbIsuse.Value = strIsuse; int PlayType = Shove._Convert.StrToInt(Shove._Web.Utility.GetRequest("PlayType"), -1); if (PlayType < 0) return; bool PlayTypeRight = false; strLotteryName = lottery[LotteryID].name; PlayTypeRight = lottery[LotteryID].CheckPlayType(PlayType); if (!PlayTypeRight) return; tbPlayType.Value = PlayType.ToString(); strPlayType = PlayType.ToString(); tbSchemeFileName.Value = "null"; tbLotteryNumber.Value = "null"; strSchemeFileName = "null"; strLotteryNumber = "null"; } }
private void GetID() { this.LotteryID = _Convert.StrToInt(this.tbLotteryID.Value, -1); this.PlayTypeID = _Convert.StrToInt(this.tbPlayTypeID.Value, -1); this.UserID = _Convert.StrToInt(this.tbUserID.Value, -1); Lottery lottery = new Lottery(); if (!lottery.ValidID(this.LotteryID)) { PF.GoError(1, "参数错误,系统异常。", base.GetType().FullName); } else if (!lottery[this.LotteryID].CheckPlayType(this.PlayTypeID)) { PF.GoError(1, "参数错误,系统异常。", base.GetType().FullName); } else { this.LotteryName = lottery[this.LotteryID].name; this.PlayTypeName = lottery.GetPlayTypeName(this.PlayTypeID); this.Name = new Users(1L)[1L, this.UserID].Name; } }
protected void Page_Load(object sender, EventArgs e) { if (!base.IsPostBack) { Lottery lottery = new Lottery(); int lotteryID = _Convert.StrToInt(Utility.GetRequest("id"), -1); if (lottery.ValidID(lotteryID)) { this.tbLotteryID.Value = lotteryID.ToString(); this.strLotteryID = lotteryID.ToString(); this.strIsuse = ""; try { this.strIsuse = Utility.GetRequest("Isuse"); } catch { } this.tbIsuse.Value = this.strIsuse; int num2 = _Convert.StrToInt(Utility.GetRequest("PlayType"), -1); if (num2 >= 0) { this.strLotteryName = lottery[lotteryID].name; if (lottery[lotteryID].CheckPlayType(num2)) { this.tbPlayType.Value = num2.ToString(); this.strPlayType = num2.ToString(); this.tbSchemeFileName.Value = "null"; this.tbLotteryNumber.Value = "null"; this.strSchemeFileName = "null"; this.strLotteryNumber = "null"; } } } } }