Пример #1
0
        //MAP


        //Init
        protected virtual void initConstructor(DBMAINContext poDB)
        {
            //DBContext
            this.db = poDB;
            //VM
            this.oViewModel = new Transaction_indetailVM();
            //DATA
            this.oData               = new Transaction_indetailVM();
            this.oData_list          = new List <Transaction_indetailVM>();
            this.oDatastudent        = new StudentVM();
            this.oDatastudent.DETAIL = new StudentdetailVM();

            //DS
            this.oDS          = new Transaction_inDS(this.db);
            this.oDSDetail    = new Transaction_indDS(this.db);
            this.oDS_inst     = new Installment_inDS(this.db);
            this.oDSStudent   = new StudentDS(this.db);
            this.oDSClasstype = new ClasstypeDS(this.db);
            this.oDSClassroom = new ClassroomDS(this.db);
            this.oDSYear      = new YearDS(db);
            this.oDSMonth     = new MonthsppDS();
            //CRUD
            this.oCRUD        = new Transaction_inCRUD(this.db);
            this.oCRUD_detail = new Transaction_indCRUD(this.db);
            this.oCRUD_inst   = new Installment_inCRUD(this.db);

            //BL
            oBL = new Transaction_inBL();
            //MAP
            //VIEWBAG
            ViewBag.Controllername = "";
            ViewBag.Viewlocation   = "~/Views/Transaction_in/";
            ViewBag.Viewextention  = ".cshtml";
        } //End initConstructor
Пример #2
0
        //Init
        private void initConstructor(DBMAINContext poDB)
        {
            //DBContext
            this.db = poDB;
            //VM
            this.oVM = new TaskVM();
            //DS
            this.oDS              = new TaskDS(this.db);
            this.oDSDetail        = new TaskdDS(this.db);
            this.oDSDetail_worker = new Taskd_workerDS(this.db);
            this.oDSEmployee      = new EmployeeDS(this.db);
            this.oDSEmployeeuser  = new EmployeeuserDS(this.db);
            this.oDSMonth         = new MonthDS(this.db);
            this.oDSYear          = new YearDS(this.db);
            this.oDSProgresssts   = new ProgressstsDS(this.db);
            this.oDSValidatests   = new ValidatestsDS(this.db);
            this.oDSProject       = new ProjectDS(this.db);
            //CRUD
            this.oCRUD = new Task_workerCRUD(this.db);

            //BL
            //MAP
            //JSON
            JsSerialize = new JavaScriptSerializer();
        } //End initConstructor
Пример #3
0
        } //End private void setProp()

        private void setProp_YearSemester(DateTime?pdDatetime = null)
        {
            YearDS     oDSYear     = new YearDS();
            SemesterDS oDSSemester = new SemesterDS();

            if (pdDatetime == null)
            {
                this.YEAR_ID     = oDSYear.getData_currentYearID();
                this.SEMESTER_ID = oDSSemester.getData_currentSemesterID();
            } //End if (pdDatetime == null)
            else
            {
                this.YEAR_ID     = oDSYear.getData_YearID();
                this.SEMESTER_ID = oDSSemester.getData_SemesterID();
            } //End else (pdDatetime == null)
        }     //End private void setProp()
Пример #4
0
        } //End public static Boolean isValidSYSDATE(ActionExecutedContext context)

        public static void AutocreateYear(ActionExecutedContext context)
        {
            try {
                SysinfoDS oDSSysinfo = new SysinfoDS();
                YearDS    oDSYear    = new YearDS();
                var       oData      = oDSYear.getData_byPeriod(oDSSysinfo.getSYSDATE());



                if (oData == null)
                {
                    YearCRUD oCRUD = new YearCRUD();
                    oCRUD.Create();
                }
                else if (oData.ID == null)
                {
                    YearCRUD oCRUD = new YearCRUD();
                    oCRUD.Create();
                } //End if (oData.ID == null)
            }     //End try
            catch (Exception e) { }
        }         //End public static void AutocreateYear(ActionExecutedContext context)