Exemplo n.º 1
0
 public RegisterModel PrepareRegisterModel(RegisterModel model)
 {
     model.Gender = "M";
     _baseAdminModelFactory.PrepareTitles(model.AvailableTitles, true, "--ระบุคำนำ--");
     _baseAdminModelFactory.PrepareAgencies(model.AvailableAgencies, true, "--หน่วยงาน--");
     return(model);
 }
Exemplo n.º 2
0
        /// <summary>
        /// Prepare researcher search model
        /// </summary>
        /// <param name="searchModel">Researcher search model</param>
        /// <returns>Researcher search model</returns>
        public virtual ResearcherSearchModel PrepareResearcherSearchModel(ResearcherSearchModel searchModel)
        {
            if (searchModel == null)
            {
                throw new ArgumentNullException(nameof(searchModel));
            }

            //prepare available stores
            _baseAdminModelFactory.PrepareAgencies(searchModel.AvailableAgencies, true, "--รหัสหน่วยงาน--");
            _baseAdminModelFactory.PreparePersonalTypes(searchModel.AvailablePersonTypes, true, "--รหัสประเภทบุคลากร--");
            _baseAdminModelFactory.PrepareActiveStatuses(searchModel.AvailableActiveStatues, true, "--รหัสสถานะเข้าใช้งานระบบ--");
            //prepare page parameters
            searchModel.SetGridPageSize();

            return(searchModel);
        }
 public ProjectSearchModel PrepareProjectSearchModel(ProjectSearchModel searchModel)
 {
     _baseAdminModelFactory.PrepareAgencies(searchModel.AvailableAgencies, true, "--หน่วยงาน--");
     _baseAdminModelFactory.PrepareFiscalYears(searchModel.AvailableFiscalYears, true, "--ปีงบประมาณ--");
     _baseAdminModelFactory.PrepareProjectStatuses(searchModel.AvailableProjectStatuses, true, "--สถานะผลการพิจารณา--");
     _baseAdminModelFactory.PrepareProgressStatuses(searchModel.AvailableProgressStatuses, true, "--สถานะโครงการวิจัย--");
     //prepare page parameters
     searchModel.SetGridPageSize();
     return(searchModel);
 }