Ejemplo n.º 1
0
        public ActionResult Create()
        {
            var teachers = new Teacher();

            ViewBag.DesignationId = new SelectList(designationService.GetAll(), "Id", "DesignationName");
            ViewBag.DeptId        = new SelectList(departmentService.GetAll(), "Id", "DeptName");
            return(View(teachers));
        }
Ejemplo n.º 2
0
        public ActionResult Index(int?id, int view = 0)
        {
            ViewBag.Organizations = organizationService.GetAll().Where(x => x.IsActive).ToList();
            ViewBag.Designations  = designationService.GetAll().Where(x => x.IsActive).ToList();
            ViewBag.Departments   = departmentService.GetAll().Where(x => x.IsActive).ToList();
            ViewBag.Genders       = genderService.GetAll().Where(x => x.IsActive).ToList();
            ViewBag.Divisions     = divisionService.GetAll().Where(x => x.IsActive).ToList();
            ViewBag.Districts     = districtService.GetAll().Where(x => x.IsActive).ToList();
            ViewBag.Thanas        = thanaService.GetAll().Where(x => x.IsActive).ToList();
            ViewBag.Countries     = countryService.GetAll().Where(x => x.IsActive).ToList();
            ViewBag.TeamList      = teamService.GetAll().ToList();
            var executives = officeExecutiveService.GetAll().Where(x => x.IsActive).ToList();

            ViewBag.ExecutiveList = executives;
            var executive = new OfficeExecutive()
            {
                Id = 0
            };

            if (id.HasValue)
            {
                executive = executives.FirstOrDefault(x => x.Id == id);
            }
            ViewBag.Executive  = executive;
            ViewBag.IsViewMode = view;
            return(View());
        }
Ejemplo n.º 3
0
 public ActionResult Employee()
 {
     ViewBag.Organizations = organizationService.GetAll().ToList();
     ViewBag.Departments   = departmentService.GetAll().ToList();
     ViewBag.Designations  = designationService.GetAll().ToList();
     ViewBag.Teams         = teamService.GetAll().ToList();
     return(View());
 }
Ejemplo n.º 4
0
        private void LoadDesignationComboBox()
        {
            Helper.InitializeComboBox(cbxDesignation);

            Cursor                       = Cursors.WaitCursor;
            _designationList             = _designationService.GetAll().Where(w => !w.IsDeleted).ToList();
            Cursor                       = Cursors.Default;
            cbxDesignation.DataSource    = _designationList;
            cbxDesignation.DisplayMember = "Name";
            cbxDesignation.ValueMember   = "Id";
        }
Ejemplo n.º 5
0
        public ActionResult Create()
        {
            EmployeeModel model = new EmployeeModel();

            model.DepartmentList = _departmentService.GetAll().Select(d =>
                                                                      new SelectListItem
            {
                Text  = d.Name,
                Value = d.Id.ToString()
            }).ToList();

            model.DesignationList = _designationService.GetAll().Select(d =>
                                                                        new SelectListItem
            {
                Text  = d.Name,
                Value = d.Id.ToString()
            }).ToList();

            return(View(model));
        }
Ejemplo n.º 6
0
        public ActionResult Index(long?eid)
        {
            var countryList = _countryService.GetAll().ToList();

            Session["CountryList"] = countryList;
            var employeeList = _emplyeeService.GetAll().ToList();

            var employeeView = new EmployeeViewModel
            {
                EmployeeCategoryList = new SelectList(_employeeCategoryService.GetAll(), "Id", "Name"),
                DepartmentList       = new SelectList(_departmentService.GetAll(), "Id", "Name"),
                DesignationList      = new SelectList(_designationService.GetAll(), "Id", "Name"),
                RosterList           = new SelectList(_rosterInformationService.GetAll(), "Id", "Name"),
                SupervisorList       = new SelectList(employeeList, "Id", "EmployeeCode"),
                ApproverList         = new SelectList(employeeList, "Id", "EmployeeCode"),

                TitleList         = new SelectList(_personalInformationService.GetTitleList()),
                GenderList        = new SelectList(_personalInformationService.GetGenderList(), "Value", "Text"),
                MaritalStatusList = new SelectList(_personalInformationService.GetMaritalStatusList(), "Value", "Text")
            };

            return(View(employeeView));
        }
Ejemplo n.º 7
0
        // GET: Department
        public ActionResult Index()
        {
            var designations = designationService.GetAll();

            return(View(designations));
        }
        public ActionResult List([DataSourceRequest] DataSourceRequest request)
        {
            var designationList = _designationService.GetAll().Where(w => !w.IsDeleted).ToList();

            return(Json(designationList.ToDataSourceResult(request)));
        }