예제 #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);
        }
예제 #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;
        }
예제 #3
0
 protected virtual void Setup(ClsCurrentUser CurrentUser, string TableName, string ViewName ="")
 {
     base.Setup(TableName, ViewName);
     this.mCurrentUser = CurrentUser;
 }
예제 #4
0
 public ClsRowProperty(ClsCurrentUser pCurrentUser = null)
 {
     this.Setup(pCurrentUser, "RowProperty");
 }
예제 #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;
 }
예제 #6
0
 public ClsDamit(ClsCurrentUser CurrentUser)
 {
     this.Setup(CurrentUser, "Damit", "uvw_Damit");
 }
예제 #7
0
 public ClsPinalaba(ClsCurrentUser CurrentUser)
 {
     this.Setup(CurrentUser, "Pinalaba", "uvw_Pinalaba");
     this.Setup_AddTableDetail("Pinalaba_Damit", "uvw_Pinalaba_Damit");
 }
예제 #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;
        }
예제 #9
0
 protected override void Setup(ClsCurrentUser pCurrentUser, string pTableName = "", string pViewName = "")
 {
     base.Setup(pCurrentUser, pTableName, pViewName);
     this.mObj_RowProperty = new ClsRowProperty(this.mCurrentUser);
 }
예제 #10
0
 public ClsMayari(ClsCurrentUser CurrentUser)
 {
     this.Setup(CurrentUser, "Mayari", "uvw_Mayari");
 }