Beispiel #1
0
        public ClsLookup(ClsCurrentUser CurrentUser, String TableName, String ViewName, Int64 LookupID)
        {
            this.mLookupID = LookupID;
            if (this.mLookupID != 0)
            {
                TableName = "Lookup_Details";
                ViewName = "";
            }

            base.Setup(CurrentUser, TableName, ViewName);
        }
Beispiel #2
0
        public static void SetupApp(ClsCurrentUser CurrentUser)
        {
            Layer03_Common.Dt_System_Modules = Do_Methods_Query.GetQuery(
                "System_Modules"
                , ""
                , "IsNull(IsHidden,0) <> 1"
                , "Parent_System_ModulesID, OrderIndex");

            Layer03_Common.Dt_System_Modules_Access = Do_Methods_Query.GetQuery("uvw_System_Modules_AccessLib");

            Layer03_Common.CurrentUser = CurrentUser;
        }
Beispiel #3
0
 protected virtual void Setup(ClsCurrentUser CurrentUser, string TableName, string ViewName ="")
 {
     base.Setup(TableName, ViewName);
     this.mCurrentUser = CurrentUser;
 }
Beispiel #4
0
 public ClsRowProperty(ClsCurrentUser pCurrentUser = null)
 {
     this.Setup(pCurrentUser, "RowProperty");
 }
Beispiel #5
0
 protected virtual void Setup(ClsCurrentUser CurrentUser, string TableName, string ViewName = "", QueryCondition Qc_LoadCondition = null, List<string> CustomKeys = null)
 {
     base.Setup(TableName, ViewName, Qc_LoadCondition, CustomKeys);
     this.mCurrentUser = CurrentUser;
 }
Beispiel #6
0
 public ClsDamit(ClsCurrentUser CurrentUser)
 {
     this.Setup(CurrentUser, "Damit", "uvw_Damit");
 }
Beispiel #7
0
 public ClsPinalaba(ClsCurrentUser CurrentUser)
 {
     this.Setup(CurrentUser, "Pinalaba", "uvw_Pinalaba");
     this.Setup_AddTableDetail("Pinalaba_Damit", "uvw_Pinalaba_Damit");
 }
Beispiel #8
0
        void SetupForm()
        {
            Layer03_Common.CurrentUser = FrmMain_Mayari.Show(this);
            this.mCurrentUser = Layer03_Common.CurrentUser;
            if (!this.mCurrentUser.pIsLoggedIn)
            {
                this.Close();
                return;
            }

            //[-]

            Layer03_Common.SetupApp(this.mCurrentUser);

            //[-]

            this.Tv_Modules.Nodes.Clear();
            this.mDt_Modules = Layer03_Common.Dt_System_Modules.Clone();
            this.mCurrentModuleKey = 0;
            this.GetMenus(this.mCurrentModuleKey);

            //[-]

            this.Lbl_Mayari.Text = @"May-Ari: " + Do_Methods.Convert_String(this.mCurrentUser.pDr_Mayari["Name"]);

            //[-]

            this.WindowState = FormWindowState.Maximized;
            this.Visible = true;
        }
Beispiel #9
0
 protected override void Setup(ClsCurrentUser pCurrentUser, string pTableName = "", string pViewName = "")
 {
     base.Setup(pCurrentUser, pTableName, pViewName);
     this.mObj_RowProperty = new ClsRowProperty(this.mCurrentUser);
 }
Beispiel #10
0
 public ClsMayari(ClsCurrentUser CurrentUser)
 {
     this.Setup(CurrentUser, "Mayari", "uvw_Mayari");
 }