Ejemplo n.º 1
0
        public JsonResult GetDataForERPT(string viewScore, string EmployeeID, string mullayenerName, string ddlMullaynerKal, string valOfthis)
        {
            objLoginHelper = (LoginHelper)Session["LogInInformation"];
            string    locationCode = objLoginHelper.LocationCode;
            ArrayList arr          = new ArrayList();

            List <ERPValueForAssessment> lstGetDataForERPT = new List <ERPValueForAssessment>();

            lstGetDataForERPT = hrmsData.GetDataForERPT(viewScore, locationCode, EmployeeID, mullayenerName, ddlMullaynerKal, valOfthis);

            foreach (ERPValueForAssessment emp in lstGetDataForERPT)
            {
                arr.Add(new { EmployeeID = emp.EmployeeID, ERPValue = emp.ERPValue, Score = emp.Score });
            }

            return(new JsonResult {
                Data = arr
            });
        }