Esempio n. 1
0
        public ActionResult AssignAssessment(AssignAssessmentViewModel obj, FormCollection objf)
        {
            bool flag = false;

            if (ModelState.IsValid)
            {
                AssessmentPaperModel assessmentPaperModel = new AssessmentPaperModel();
                assessmentPaperModel.CourseId  = obj.CourseId;
                assessmentPaperModel.CreatedBy = Convert.ToInt32(Session["EmpID"]);
                assessmentPaperModel.EmpIdAll  = Convert.ToString(objf["SelectedEmp"]);
                flag = _IAssessmentService.SetAssessment(assessmentPaperModel);
            }
            if (flag)
            {
                TempData["Result"] = "Assessment Set successfully";

                obj.ListCourses = LoadTrainingCourses("AssignAssessment", 0);     //Vrp Hard code : for Admin login no neeed to pass empid
                obj.CourseId    = 0;
                obj.CourseName  = "";
                return(View("AssignAssessment", obj));
            }
            else
            {
                return(View("Error"));
            }
        }
Esempio n. 2
0
        public ActionResult AssignAssessment()
        {
            AssignAssessmentViewModel ObjSetAssessmentViewModel = new AssignAssessmentViewModel();

            ObjSetAssessmentViewModel.ListCourses = LoadTrainingCourses("AssignAssessment", 0);//Vrp Hard code : for Admin login no neeed to pass empid
            return(View("AssignAssessment", ObjSetAssessmentViewModel));
        }
Esempio n. 3
0
        public PartialViewResult ViewAssesmentCourse(string pcourseId)
        {
            AssessmentViewModel assessmentViewModel = GetAssessmentPaperByCourseId(Convert.ToInt32(pcourseId));

            assessmentViewModel.AssessmentPaper.AssessmentDataDDMMYYY = assessmentViewModel.AssessmentPaper.AssessmentDate.ToString("dd-MMM-yyyy");

            AssignAssessmentViewModel objAssignAss = new AssignAssessmentViewModel();

            //objAssignAss.AssessmentDate =assessmentViewModel .AssessmentPaper.AssessmentDate.ToString("dd-MMM-yyyy");
            //objAssignAss.TimeDuration  =assessmentViewModel .AssessmentPaper.TimeDuration.ToString("dd-MMM-yyyy");
            objAssignAss.AssessmentDate = assessmentViewModel.AssessmentPaper.AssessmentDate;
            objAssignAss.TimeDuration   = assessmentViewModel.AssessmentPaper.TimeDuration;
            //objAssignAss.dtEmp=assessmentViewModel.

            AssessmentModel assessmentModel = new AssessmentModel();

            objAssignAss.dtEmp = _IAssessmentService.GetNominatedEmployees(Convert.ToInt32(pcourseId));
            //AssessmentViewModel assessmentViewModel = ConvertDomainToViewModel(assessmentModel);


            return(PartialView("_ShowEmployee", objAssignAss));
        }