예제 #1
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());
        }
예제 #2
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());
        }
예제 #3
0
        //
        // GET: /Review/
        public ActionResult KeyPerformanceIndicators(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.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();
        }
예제 #4
0
        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();
        }
        public ActionResult CoreValues(int taskid, int? id)
        {
            PMSPageInfo PI = new PMSPageInfo();
            int approvallevel = 0;
            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;

                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);
                    }
                }
                approvallevel = PMSModel.GetApprovalLevel(id.Value, UserInfo.userinfo.ID);
            }
            ViewData.Model = PI;
            ViewData["ApprovalLevel"] = id.HasValue ? PMSHelper.GetApprovalLevel(id.Value, UserInfo.userinfo.ID) : 0;
            return View();
        }
예제 #6
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());
        }