void Setup( Layer02_Constants.eSystem_Modules System_ModulesID , ClsBindDefinition BindDefinition , eDataSourceType DataSourceType , bool IsSelectDetails = true , bool IsDelete = true) { this.Master.Setup(false, true, System_ModulesID); this.mProperties = new ClsBaseList_Master_Properties(); this.mProperties.BindDefinition = BindDefinition; this.mProperties.DataSourceType = DataSourceType; this.mProperties.IsSelectDetails = IsSelectDetails; this.mProperties.IsDelete = IsDelete; string DetailsPage = ""; QueryCondition Qc = Do_Methods.CreateQueryCondition(); Qc.Add("System_ModulesID", ((long)this.pSystem_ModulesID).ToString(), typeof(Int64).Name); DataTable Dt = Do_Methods_Query.GetQuery("System_Modules", "", Qc); if (Dt.Rows.Count > 0) { DetailsPage = @"~/Page/" + Do_Methods.Convert_String(Dt.Rows[0]["Module_Details"]); } this.mProperties.DetailsPage = DetailsPage; this.ViewState[CnsProperties] = this.mProperties; }
protected virtual void Page_Load(object sender, EventArgs e) { if (!this.mIsPageLoaded) { this.mIsPageLoaded = true; } else { return; } this.Master.Raise_Page_Load(); if (!this.IsPostBack) { this.Raise_SetupPage(); } else { this.mProperties = (ClsBaseList_Master_Properties)this.ViewState[CnsProperties]; switch (this.mProperties.DataSourceType) { case eDataSourceType.FromBase: this.mObj_Base = (Base)this.Session[this.pObjID + CnsBase]; break; case eDataSourceType.FromDataTable: this.mDt_Datasource = (DataTable)this.Session[this.pObjID + CnsDataSource]; break; } } }