protected void Page_Load(object sender, EventArgs e) { base.Response.Cache.SetNoStore(); base.Response.Clear(); if (!this.Page.IsPostBack) { this.hdnmyuser.Value = base.UserCode; this.DDL_CorpKind.DataTextField = "CodeName"; this.DDL_CorpKind.DataValueField = "CodeID"; this.DDL_CorpKind.DataSource = CodingAction.getTypebyID("1"); this.DDL_CorpKind.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { base.Response.Cache.SetNoStore(); base.Response.Clear(); if (!base.IsPostBack) { this.DDL_CorpKind.DataTextField = "CodeName"; this.DDL_CorpKind.DataValueField = "CodeID"; this.DDL_CorpKind.DataSource = CodingAction.getTypebyID("1"); this.DDL_CorpKind.DataBind(); if (!string.IsNullOrEmpty(base.Request["cti"]) && !string.IsNullOrEmpty(base.Request["w"])) { if (!string.IsNullOrEmpty(base.Request["Audit"])) { this.isAudit = base.Request["Audit"].ToString().Replace("'", ""); } if (!string.IsNullOrEmpty(base.Request["cti"])) { this.CorpTypeID = Convert.ToInt32(base.Request["cti"]); if (this.CorpTypeID != 4 && this.CorpTypeID != 5 && this.CorpTypeID != 10 && this.CorpTypeID != 19 && this.CorpTypeID != 20) { this.WF1.Type = 0; this.DgrdList.Columns[8].Visible = false; } } if (!string.IsNullOrEmpty(base.Request["w"])) { this.WindowType = base.Request["w"]; } } if (this.WindowType == "1") { this.BtnClose.Visible = true; this.BtnAdd.Attributes["style"] = "visibility:hidden"; this.BtnClose.Attributes["style"] = "visibility:hidden"; this.BtnDel.Attributes["style"] = "visibility:hidden"; this.BtnMod.Attributes["style"] = "visibility:hidden"; } this.HdnTypeID.Value = this.CorpTypeID.ToString(); this.Page_CustomInit(); this.DgrdList_Bind(); } }