コード例 #1
0
        public JsonResult GetEmpID(string mullaynNam, string mullaynKal)
        {
            objLoginHelper = (LoginHelper)Session["LogInInformation"];

            ArrayList arl = new ArrayList();
            //string locationCode = objLoginHelper.LocationCode;
            List <PersonEmployeeDetailsInfo> lstPersonEmployeeDetailsInfo = new List <PersonEmployeeDetailsInfo>();

            lstPersonEmployeeDetailsInfo = hrmsData.ReadLocationWiseEmployeeForAssEntry(objLoginHelper.LocationCode, mullaynNam, mullaynKal);

            foreach (PersonEmployeeDetailsInfo li in lstPersonEmployeeDetailsInfo)
            {
                arl.Add(new { Value = li.EmployeeID, Display = li.EmployeeName });
            }

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