Ejemplo n.º 1
0
        public async Task <IActionResult> Create([Required] string id)
        {
            ViewBag.Departmental = await _directories.GetDepartmental();

            return(View(new CreatePublicHouseEmployeesViewModel {
                HashIdEmployee = id
            }));
        }
        //------------------------------------------------------------------------------------------------------------------------------------------

        private async Task FillingDropDownLists()
        {
            ViewBag.MainSubdivision = await _dropDownList.GetMainSubdivision();

            ViewBag.Position = await _dropDownList.GetPosition();

            ViewBag.Privilegies = await _dropDownList.GetPrivilegies();

            ViewBag.Hobby = await _dropDownList.GetHobby();

            ViewBag.Dormitory = await _dropDownList.GetDormitory();

            ViewBag.Departmental = await _dropDownList.GetDepartmental();

            ViewBag.Accommodation = new List <ArrayList>
            {
                new ArrayList {
                    "dormitory", 0, "Гуртожиток"
                },
                new ArrayList {
                    "departmental", 1, "Вiдомче житло"
                },
                new ArrayList {
                    "from-university", 2, "Житло надане унiверситетом"
                }
            };

            ViewBag.TypeBirthDate = new List <ArrayList>
            {
                new ArrayList {
                    "employeeBirthDate", 0, "Член профспілки"
                },
                new ArrayList {
                    "childrenBirthDate", 1, "Дiти"
                },
                new ArrayList {
                    "grandChildrenBirthDate", 2, "Онуки"
                }
            };

            ViewBag.TypeHobby = new List <ArrayList>
            {
                new ArrayList {
                    "employeeHobby", 0, "Член профспілки"
                },
                new ArrayList {
                    "childrenHobby", 1, "Дiти"
                },
                new ArrayList {
                    "grandChildrenHobby", 2, "Онуки"
                }
            };
        }
Ejemplo n.º 3
0
        //------------------------------------------------------------------------------------------------------------------------------------------

        private async Task FillingDropDownLists()
        {
            await FillingStudyDropDownLists();

            ViewBag.MainSubdivision = await _dropDownList.GetMainSubdivision();

            ViewBag.Position = await _dropDownList.GetPosition();

            ViewBag.Dormitory = await _dropDownList.GetDormitory();

            ViewBag.Departmental = await _dropDownList.GetDepartmental();
            await FillingScientificDropDownLists();

            ViewBag.SocialActivity = await _dropDownList.GetSocialActivity();

            ViewBag.Privilegies = await _dropDownList.GetPrivilegies();
        }