protected void Page_Load(object sender, EventArgs e) { con1 = new Control[] { AStation, BStation, middleStation, trainList, sd }; if (!Page.IsPostBack) { //this.mulLine.Attributes["ReadOnly"] = "true"; WebFrame.Util.JControl.SetLisControlByEnum(typeof(ETrainType), this.trainList); DataRow dr1 = WebFrame.Util.JCookie.GetCookieValues("userFenXiData"); if (dr1 != null) { JControl.SetControlValues(con1, dr1); } else { WebFrame.Util.JControl.SetListControlByValue(this.trainList, "0,1,3,4,7,8"); } this.Button1.Attributes.Add("onclick", "ShowWaiting();"); //显示是分趟标志还是分年标志 if (String.IsNullOrEmpty(Request.QueryString["isYearFlag"]) == false) { this.isYearPage.Value = "1"; } if (this.isYearPage.Value == "0") { this.titleInfo1.Text = "财务数据模型-新增车次 <b>按趟</b> 分析"; this.t1.Text = "趟"; this.t2.Text = "趟"; this.t3.Text = "趟"; this.t4.Text = "趟"; this.t5.Text = "趟"; } else { this.titleInfo1.Text = "财务数据模型-新增车次 <b>按年</b> 分析"; this.t1.Text = "年"; this.t2.Text = "年"; this.t3.Text = "年"; this.t4.Text = "年"; this.t5.Text = "年"; this.labInfo1.Text = "车底数"; } } }
protected void Page_Load(object sender, EventArgs e) { con1 = new Control[] { AStation, BStation, middleStation, trainList, sd }; if (!Page.IsPostBack) { WebFrame.Util.JControl.SetLisControlByEnum(typeof(ETrainType), this.trainList); DataRow dr1 = WebFrame.Util.JCookie.GetCookieValues("userFenXiData"); if (dr1 != null) { JControl.SetControlValues(con1, dr1); } else { WebFrame.Util.JControl.SetListControlByValue(this.trainList, "0,1,3,4,7,8"); } this.Button1.Attributes.Add("onclick", "ShowWaiting();"); } }