Exemple #1
0
        /// <summary>
        /// Загрузка реестра для заявок на создание временных вакансий.
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public StaffTemporaryReleaseVacancyRequestListModel SetStaffTemporaryReleaseVacancyRequestListModel(StaffTemporaryReleaseVacancyRequestListModel model)
        {
            model.TemporaryReleaseVacancyList = StaffTemporaryReleaseVacancyRequestDao.GetTemporaryReleaseVacancyList(userDao.Load(AuthenticationService.CurrentUser.Id),
                AuthenticationService.CurrentUser.UserRole,
                model.DepartmentId,
                model.Id.HasValue ? model.Id.Value : 0,
                model.SEPId.HasValue ? model.SEPId.Value : 0,
                model.Surname,
                model.DateBegin,
                model.DateEnd,
                model.AbsencesTypeId,
                model.SortBy,
                model.SortDescending);

            LoadDictionaries(model);
            return model;
        }
Exemple #2
0
 /// <summary>
 /// Загрузка формы реестра для заявок на создание временных вакансий.
 /// </summary>
 /// <returns></returns>
 public StaffTemporaryReleaseVacancyRequestListModel GetStaffTemporaryReleaseVacancyRequestList()
 {
     StaffTemporaryReleaseVacancyRequestListModel model = new StaffTemporaryReleaseVacancyRequestListModel();
     DateTime today = DateTime.Today;
     model.DateBegin = new DateTime(today.Year, today.Month, 1);
     model.DateEnd = today;
     LoadDictionaries(model);
     return model;
 }
Exemple #3
0
 /// <summary>
 /// Загрузка справочников для реестра заявок на создание временных вакансий.
 /// </summary>
 /// <param name="model">Модель заявки.</param>
 public void LoadDictionaries(StaffTemporaryReleaseVacancyRequestListModel model)
 {
     //реквизиты инициатора
     model.AbsencesTypes = StaffLongAbsencesTypesDao.LoadAll().ToList().ConvertAll(x => new IdNameDto { Id = x.Id, Name = x.Name });
     model.AbsencesTypes.Insert(0, new IdNameDto { Id = 0, Name = "" });
 }
 public ActionResult StaffTemporaryReleaseVacancyRequestList(StaffTemporaryReleaseVacancyRequestListModel model)
 {
     string error = string.Empty;
     StaffListBl.SetStaffTemporaryReleaseVacancyRequestListModel(model);
     return View(model);
 }