Esempio n. 1
0
        public ActionResult CoreValues(int?id)
        {
            PMSPageInfo PI = new PMSPageInfo();

            if (id.HasValue)
            {
                var temp = PMSModel.GetApprisalByID(id.Value);
                ViewData["Stage"]  = temp.Stage;
                ViewData["Status"] = temp.Status;
                PI.StageID         = PMSModel.GetCurrentStageID(id.Value);
                PMSHelper.GetSectionInfo(PI, id.Value);
                PI.ApprisalId = id.Value;
                int sectionId = PMSHelper.GetCurrentSectionID(PI.SCList, RouteData.Values["Action"].ToString());
                PMSHelper.GetBlockInfo(PI, sectionId);
                List <PMSCommentsInfo> comments = new List <PMSCommentsInfo>();
                PMSHelper.GetCoreValuesList(PI, id.Value);
                comments = PMSHelper.GetAllCoreValuesComments(PI.CoreValuesList);
                if (comments.Count > 0)
                {
                    foreach (PMSCoreValuesInfo kpiinfo in PI.CoreValuesList)
                    {
                        PMSHelper.GetEachCoreValuesComments(kpiinfo, comments);
                    }
                }
            }
            ViewData.Model = PI;
            return(View());
        }
Esempio n. 2
0
        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());
        }
Esempio n. 3
0
        //
        // GET: /Stage3/

        public ActionResult KeyPerformanceIndicators(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;
                PMSHelper.GetSectionInfo(PI, id.Value);
                PI.ApprisalId = id.Value;
                PI.TaskId     = taskid;
                int sectionId = PMSHelper.GetCurrentSectionID(PI.SCList, RouteData.Values["Action"].ToString());
                PI.CurSectionId = sectionId;
                PMSHelper.GetBlockInfo(PI, sectionId);
                List <PMSCommentsInfo> comments = new List <PMSCommentsInfo>();
                PMSHelper.GetKPIList(PI, id.Value);
                comments = PMSHelper.GetAllKPIComments(PI.KPIList);
                if (comments.Count > 0)
                {
                    foreach (PMSKPIInfo kpiinfo in PI.KPIList)
                    {
                        PMSHelper.GetEachKPIComments(kpiinfo, comments);
                    }
                }
            }
            ViewData.Model = PI;
            return(View());
        }