public bool CheckAccess(Layer02_Constants.eSystem_Modules System_ModulesID, Layer02_Constants.eAccessLib AccessType)
        {
            if (!this.mIsLoggedIn)
            { return false; }

            if (this.mIsSystemAdmin)
            { return true; }

            return this.mCum.CheckAccess(System_ModulesID, AccessType, this.pUserID);
        }
 public void Setup(
     bool pIsPageLogin = false
     , bool pCheckLogin = true
     , Layer02_Constants.eSystem_Modules pSystem_ModulesID = Layer02_Constants.eSystem_Modules.None
     , bool pIsAdminPage = false
     , bool pIsContributorPage = false
     , bool pIsShowLoginPanel = true)
 {
     this.Master.Setup(
     pIsPageLogin
     , pCheckLogin
     , pSystem_ModulesID
     , pIsAdminPage
     , pIsContributorPage
     , pIsShowLoginPanel);
 }
 public void Setup(Layer02_Constants.eSystem_Modules System_ModulesID, Base Obj_Base, string NoAccessMessage = "")
 {
     this.Master.Setup(System_ModulesID, Obj_Base, NoAccessMessage);
 }
        public void Setup(
            bool pIsPageLogin = false
            , bool pCheckLogin = true
            , Layer02_Constants.eSystem_Modules pSystem_ModulesID = Layer02_Constants.eSystem_Modules.None
            , bool pIsAdminPage = false
            , bool pIsContributorPage = false
            , bool pIsShowLoginPanel = true)
        {
            this.mIsPageLogin = pIsPageLogin;
            this.mCheckLogin = pCheckLogin;
            this.mIsAdminPage = pIsAdminPage;
            this.mIsContributorPage = pIsContributorPage;
            this.mIsShowLoginPanel = pIsShowLoginPanel;

            this.mProperties = new ClsBaseMain_Master_Properties();
            this.mProperties.System_ModulesID = pSystem_ModulesID;
            this.ViewState[CnsProperties] = this.mProperties;
        }
        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;
        }
 public void Setup(
     Layer02_Constants.eSystem_Modules System_ModulesID
     , DataTable Dt_DataSource
     , ClsBindDefinition BindDefinition
     , bool IsSelectDetails = true
     , bool IsDelete = true)
 {
     this.Setup(System_ModulesID, BindDefinition, eDataSourceType.FromDataTable, IsSelectDetails, IsDelete);
     this.mDt_Datasource = Dt_DataSource;
 }
 public void Setup(
     Layer02_Constants.eSystem_Modules System_ModulesID
     , Base Obj_Base
     , ClsBindDefinition BindDefinition
     , bool IsSelectDetails = true
     , bool IsDelete = true
     )
 {
     this.Setup(System_ModulesID, BindDefinition, eDataSourceType.FromBase, IsSelectDetails, IsDelete);
     this.mObj_Base = Obj_Base;
 }
 public void Setup(
     Layer02_Constants.eSystem_Modules System_ModulesID
     , DataTable Dt_DataSource
     , ClsBindDefinition BindDefinition
     , bool IsSelectDetails = true
     , bool IsDelete = true)
 {
     this.Master.Setup(System_ModulesID, Dt_DataSource, BindDefinition, IsSelectDetails, IsDelete);
 }
 public void Setup(
     Layer02_Constants.eSystem_Modules System_ModulesID
     , Base Obj_Base
     , ClsBindDefinition BindDefinition
     , bool IsSelectDetails = true
     , bool IsDelete = true)
 {
     this.Master.Setup(System_ModulesID, Obj_Base, BindDefinition, IsSelectDetails, IsDelete);
 }
        public void Setup(Layer02_Constants.eSystem_Modules System_ModulesID, Base Obj_Base, string NoAccessMessage = "")
        {
            this.Master.Setup(false, true, System_ModulesID);
            this.mObj_Base = Obj_Base;
            this.mProperties = new ClsBaseDetails_Master_Properties();
            this.mProperties.NoAccessMessage = NoAccessMessage == "" ? "Access Denied." : NoAccessMessage;

            DataTable Dt = Do_Methods_Query.GetQuery("System_Modules", "", "System_ModulesID = " + (long)System_ModulesID);
            if (Dt.Rows.Count > 0)
            { this.mProperties.ListPage = Do_Methods.Convert_String(Dt.Rows[0]["Module_List"]); }
        }