public JsonResult GetEODDetail() { GetStoreId(); var listEOD = objDal.GetEODList(StoreId + 100, ""); //JqGridData Result = new JqGridData() // { // page = 1, // records = 0, // rows = new List<clsEODDetails>(), // total = 1 // }; //Result.rows = listEOD; //Result.records = listEOD.Count(); var Result = new { page = 1, records = listEOD.Count(), rows = listEOD, total = 1 }; return(Json(Result, JsonRequestBehavior.AllowGet)); }
public JsonResult GetEODDetail(string MonthYear) { GetStoreId(); var listEOD = objDal.GetEODList(StoreId, MonthYear); decimal lastDayClosingBalance; foreach (clsEODDetails clseodDetails in listEOD) { lastDayClosingBalance = clseodDetails.CounterCash; } var Result = new { page = 1, records = listEOD.Count(), rows = listEOD, total = 1 }; return(Json(Result, JsonRequestBehavior.AllowGet)); }