public ActionResult PerformanceCoachingandReview(int taskid, int?id) { PMSPageInfo PI = new PMSPageInfo(); if (id.HasValue) { var temp = PMSModel.GetApprisalByID(id.Value); ViewData["Stage"] = temp.Stage; ViewData["Status"] = temp.Status; PI.ApprisalId = id.Value; PI.TaskId = taskid; PMSHelper.GetSectionInfo(PI, id.Value); } int sectionId = PMSHelper.GetCurrentSectionID(PI.SCList, RouteData.Values["Action"].ToString()); PI.CurSectionId = sectionId; PMSHelper.GetBlockInfo(PI, sectionId); PMSHelper.GetPerformanceCoaching(PI, id.Value); List <PMSCommentsInfo> comments = new List <PMSCommentsInfo>(); PMSCommentsInfo curcomments = new PMSCommentsInfo(); PI.pcInfo.Comments = PMSModel.GetCommentsInfoByPerformanceID(PI.pcInfo.ID, out curcomments); PI.pcInfo.CurComment = curcomments; //foreach() ViewData.Model = PI; return(View()); }
public ActionResult CareerDevelopment(int taskid, int? id) { PMSPageInfo PI = new PMSPageInfo(); if (id.HasValue) { var temp = PMSModel.GetApprisalByID(id.Value); ViewData["Stage"] = temp.Stage; ViewData["Status"] = temp.Status; PI.ApprisalId = id.Value; PI.TaskId = taskid; PMSHelper.GetSectionInfo(PI, id.Value); } int sectionId = PMSHelper.GetCurrentSectionID(PI.SCList, RouteData.Values["Action"].ToString()); PI.CurSectionId = sectionId; PMSHelper.GetBlockInfo(PI, sectionId); PMSHelper.GetCareerDevelopment(PI, id.Value); List<PMSCommentsInfo> comments = new List<PMSCommentsInfo>(); PMSCommentsInfo curcomments = new PMSCommentsInfo(); PI.cdInfo.Comments = PMSModel.GetCommentsInfoByCareerID(PI.cdInfo.ID, out curcomments); PI.cdInfo.CurComment = curcomments; //foreach() ViewData.Model = PI; return View(); }