Ejemplo n.º 1
0
        public ActionResult Index(int empCode)
        {
            if (!ViewBag.AllowView)
            {
                ViewBag.Error = "You are not Authorize to use this Page";
                return(PartialView("_partialviewNotFound"));
            }
            ListOfDatas(empCode);
            List <EmployeeJobHistoryDTO> res = _jobHistoryService.GetAllHistoryOfEmployeeForKaaz(empCode);

            foreach (var item in res)
            {
                item.DesignationName   = _designationServices.GetDesignationById((int)item.DesgId).DsgName;
                item.LetterIssueDateNP = (NepEngDate.EngToNep(Convert.ToDateTime(item.LetterIssueDate)));
                item.KajStartDateNP    = (NepEngDate.EngToNep(Convert.ToDateTime(item.KajStartDate)));
                item.KajEndDateNP      = (NepEngDate.EngToNep(Convert.ToDateTime(item.KajEndDate)));
            }

            ViewBag.EmpCode = empCode;
            return(View("../Employee/kajmakhataune/Index", res));
        }