public JsonResult GetProcessRequestByVendorUserSrNo(ListProcessRequestByVendorUserModel collection) { try { List <ListProcessRequestByVendorUserModel> _objListRequestProcessModel = new List <ListProcessRequestByVendorUserModel>(); var _objAllRequestProcessModel = _DbWorkPermitSystemEntities.tbl_RequestProcess.Where(P => P.VendorSrNo == collection.VendorSrNo).ToList(); foreach (var item in _objAllRequestProcessModel) { ListProcessRequestByVendorUserModel _class = new ListProcessRequestByVendorUserModel(); var _objDepartmentEmployeeRegistration = _DbWorkPermitSystemEntities.tbl_DepartmentEmployeeRegistration.Where(p => p.EmployeeSrNo == item.EmployeeId).FirstOrDefault(); _class.RequestProcessSrNo = item.RequestProcessSrNo; _class.EmployeeTokenNo = _objDepartmentEmployeeRegistration.EmployeeTokenNo; _class.EmployeeName = _objDepartmentEmployeeRegistration.EmployeeName; _class.VisitStartTime = Convert.ToDateTime(item.VisitStartTime); _class.VisitEndTime = Convert.ToDateTime(item.VisitEndTime); _class.VendorVisitResons = item.VendorVisitResons; _objListRequestProcessModel.Add(_class); } return(Json(_objListRequestProcessModel, JsonRequestBehavior.AllowGet)); } catch (Exception ex) { ResultModel _objResult = new ResultModel(); _objResult.success = 0; _objResult.msg = ex.ToString(); return(Json(_objResult, JsonRequestBehavior.AllowGet)); } }
private void MListView_ItemClick(object sender, AdapterView.ItemClickEventArgs e) { RPSRNO = (ResultListProcessRequestByVendorUserModel.ElementAt(e.Position)); StatusModel.RequestProcessSrNo = RPSRNO.RequestProcessSrNo.ToString(); Intent intent = new Intent(this, typeof(CheckVendorRequestDetailsForVendorActivity)); this.StartActivity(intent); }