Example #1
0
        public ActionResult SaveGeneralSkill(int Id, int EmployeeId)
        {
            _EmployeeSkillsEndorsementMethod.InsertGeneralSkill(Id, EmployeeId, 0);
            EmployeeSkillsEndorsementViewModel model = returnList(EmployeeId);

            return(PartialView("_PartialSkillsEndorsmentList", model));
        }
Example #2
0
        public EmployeeSkillsEndorsementViewModel returnList(int employeeId)
        {
            List <Employee_Skills>             Technicalsdata = _EmployeeSkillsEndorsementMethod.getTechnicalAllList().Where(x => x.EmployeeId == employeeId).ToList();
            List <Employee_Skills>             Generalsdata   = _EmployeeSkillsEndorsementMethod.getGeneralAllList().Where(x => x.EmployeeId == employeeId).ToList();
            EmployeeSkillsEndorsementViewModel model          = new EmployeeSkillsEndorsementViewModel();

            foreach (var item in Technicalsdata)
            {
                EmployeeSkillsEndorsementViewModel Technical = new EmployeeSkillsEndorsementViewModel();
                Technical.TechnicalSkillsName = _EmployeeSkillsEndorsementMethod.getTechnicalAllList(Convert.ToInt32(item.TechnicalSkillsName));
                Technical.Id = item.Id;

                model.TechnicalSkillsList.Add(Technical);
            }
            foreach (var item in Generalsdata)
            {
                EmployeeSkillsEndorsementViewModel General = new EmployeeSkillsEndorsementViewModel();
                General.GeneralSkillsName = _EmployeeSkillsEndorsementMethod.getTechnicalAllList(Convert.ToInt32(item.GeneralSkillsName));
                General.Id = item.Id;
                model.GeneralSkillsList.Add(General);
            }
            model.TechnicalList = _EmployeeSkillsEndorsementMethod.BindTechnicalDropdown();
            model.GeneralList   = _EmployeeSkillsEndorsementMethod.BindGeneralDropdown();
            return(model);
        }
Example #3
0
        // GET: /EmployeeSkillsEndorsement/
        public ActionResult Index(int EmployeeId)
        {
            EmployeeSkillsEndorsementViewModel model = new EmployeeSkillsEndorsementViewModel();

            model.EmployeeId = EmployeeId;
            return(View(model));
        }
Example #4
0
        public ActionResult DeleteTechnicalSkills(int Id, int EmployeeID)
        {
            int Users = SessionProxy.UserId;

            _EmployeeSkillsEndorsementMethod.DeleteTechnicalskills(0, EmployeeID, Id);
            EmployeeSkillsEndorsementViewModel model = returnList(EmployeeID);

            return(PartialView("_PartialSkillsEndorsmentList", model));
        }
Example #5
0
        public ActionResult SkilListRecord(int EmployeeId)
        {
            EmployeeSkillsEndorsementViewModel model = returnList(EmployeeId);

            return(PartialView("_PartialSkillsEndorsmentList", model));
        }
        public ActionResult Index(string EmployeeId)
        {
            EmployeeSkillsEndorsementViewModel model = new EmployeeSkillsEndorsementViewModel();

            model.EmployeeId = SessionProxy.UserId;
            var BusinessList = _CompanyStructureMethod.getAllBusinessList();

            model.BusinessList.Add(new SelectListItem()
            {
                Text = "All", Value = "0"
            });
            foreach (var itemBussiness in BusinessList)
            {
                model.BusinessList.Add(new SelectListItem()
                {
                    Text = itemBussiness.Name, Value = itemBussiness.Id.ToString()
                });
            }
            var division = _CompanyStructureMethod.getAllDivisionList();

            model.DivisionList.Add(new SelectListItem()
            {
                Text = "All", Value = "0"
            });
            foreach (var itemdivision in division)
            {
                model.DivisionList.Add(new SelectListItem()
                {
                    Text = itemdivision.Name, Value = itemdivision.Id.ToString()
                });
            }
            var Pool = _CompanyStructureMethod.getAllPoolsList();

            model.PoolList.Add(new SelectListItem()
            {
                Text = "All", Value = "0"
            });
            foreach (var itempool in Pool)
            {
                model.PoolList.Add(new SelectListItem()
                {
                    Text = itempool.Name, Value = itempool.Id.ToString()
                });
            }
            var Funcation = _CompanyStructureMethod.getAllPoolsList();

            model.FunctionList.Add(new SelectListItem()
            {
                Text = "All", Value = "0"
            });
            foreach (var itemFuncation in Funcation)
            {
                model.FunctionList.Add(new SelectListItem()
                {
                    Text = itemFuncation.Name, Value = itemFuncation.Id.ToString()
                });
            }
            var SkillsSet = _EmployeeSkillsEndorsementMethod.getSkillsAllList();

            model.AllSkillSetList.Add(new SelectListItem()
            {
                Text = "All", Value = "0"
            });
            foreach (var SkillsSetList in SkillsSet)
            {
                model.AllSkillSetList.Add(new SelectListItem()
                {
                    Text = SkillsSetList.Name, Value = SkillsSetList.Id.ToString()
                });
            }
            List <AspNetUser> data = _AdminPearformanceMethod.getAllUserList().ToList();

            model.AllResourceList.Add(new SelectListItem()
            {
                Text = "All", Value = "0"
            });
            foreach (var item in data)
            {
                string Name = string.Format("{0} {1} - {2}", item.FirstName, item.LastName, item.SSOID);
                model.AllResourceList.Add(new SelectListItem()
                {
                    Text = Name, Value = @item.Id.ToString()
                });
            }
            List <SkillSet> Technicalsdata = _EmployeeSkillsEndorsementMethod.getTechnicalSetAllList().ToList();
            List <SkillSet> Generalsdata   = _EmployeeSkillsEndorsementMethod.getGeneralSetAllList().ToList();

            return(View(model));
        }