コード例 #1
0
        //data: { 'Id': item.EMP_EmployeeID, 'Assesment': item.Assesment, 'Name': item.EmployeeName, 'Image': item.EMP_Photo, 'JobTitle': item.JBT_JobTitle },
        public ActionResult userEvaluationView(string Id, string Assesment, string Name, string Image, string JobTitle)
        {
            eTracLoginModel    ObjLoginModel       = null;
            string             Employee_Id         = string.Empty;
            GlobalAdminManager _GlobalAdminManager = new GlobalAdminManager();
            var details = new LocationDetailsModel();

            if (Session["eTrac"] != null)
            {
                ObjLoginModel = (eTracLoginModel)(Session["eTrac"]);
            }
            List <GWCQUestionModel> ListQuestions = new List <GWCQUestionModel>();

            try
            {
                Employee_Id = Cryptography.GetDecryptedData(Id, true);
            }
            catch (Exception e)
            {
                Employee_Id = Id;
            }
            ListQuestions            = _GlobalAdminManager.GetGWCQuestions(Employee_Id, Assesment == "30"?"31":Assesment == "60"?"61":"91");
            ViewData["employeeInfo"] = new GWCQUestionModel()
            {
                EmployeeName = Name, AssessmentType = Assesment, Image = Image, JobTitle = JobTitle
            };
            return(PartialView("userEvaluationView", ListQuestions));
        }
コード例 #2
0
        public ActionResult userExpectationsView(string Id, string Assesment, string FinYear, string FinQuarter)
        {
            eTracLoginModel    ObjLoginModel       = null;
            string             Employee_Id         = string.Empty;
            GlobalAdminManager _GlobalAdminManager = new GlobalAdminManager();
            var details = new LocationDetailsModel();

            if (Session["eTrac"] != null)
            {
                ObjLoginModel = (eTracLoginModel)(Session["eTrac"]);
            }
            List <GWCQUestionModel> ListQuestions = new List <GWCQUestionModel>();

            try
            {
                Employee_Id = Cryptography.GetDecryptedData(Id, true);
            }
            catch (Exception e)
            {
                Employee_Id = Id;
            }

            ListQuestions = _GlobalAdminManager.GetGWCQuestions(Employee_Id, Assesment);
            foreach (var item in ListQuestions)
            {
                item.EEL_FinencialYear = FinYear;
                item.EEL_FinQuarter    = FinQuarter;
                item.AssessmentType    = Assesment;
            }
            return(PartialView("userExpectationsView", ListQuestions));
        }
コード例 #3
0
        public ActionResult userAssessmentView(string Id, string Assesment)
        {
            eTracLoginModel    ObjLoginModel       = null;
            string             Employee_Id         = string.Empty;
            GlobalAdminManager _GlobalAdminManager = new GlobalAdminManager();
            var details = new LocationDetailsModel();

            if (Session["eTrac"] != null)
            {
                ObjLoginModel = (eTracLoginModel)(Session["eTrac"]);
            }
            List <GWCQUestionModel> ListQuestions = new List <GWCQUestionModel>();

            try {
                Employee_Id = Cryptography.GetDecryptedData(Id, true);
            }
            catch (Exception e)
            {
                Employee_Id = Id;
            }

            ListQuestions = _GlobalAdminManager.GetGWCQuestions(Employee_Id, Assesment);
            return(PartialView("userAssessmentView", ListQuestions));
        }