public ActionResult WeeklyReport(int?RegNo) { ReportFilterViewModel Model = new ReportFilterViewModel(); Model.GetBatchList = _admissionService.GetBatchList().Where(w => w.BatchName != "Batch 0").ToList(); Model.GetReviewList = _perforamnce.GetReViewList(); Model.MonthList = (from MonthList e in Enum.GetValues(typeof(MonthList)) select new RoleViewModel { Id = (int)e, Name = e.ToString() }).ToList(); Model.YearList = _report.GetYearList(); if (RegNo.HasValue) { var info = _report.GetInfoByRegNo(RegNo.Value); if (info != null) { Model.BatchId = info.BatchId.ToString(); Model.RegNo = info.Id; } } Model.ReviewId = 1; // For Weekly Term Model.WeeklyTermList = _perforamnce.GetWeeklyTermTypeListById(1); return(View(Model)); }
public JsonResult GetWeeklyTermList(int Id) { return(Json(_perforamnce.GetWeeklyTermTypeListById(Id), JsonRequestBehavior.AllowGet)); }