Esempio n. 1
0
 public JsonResult GetProdList()
 {
     try
     {
         var model    = new ReqRpt209DataBuilder();
         var data     = model.GetProdList();
         var response = new { success = true, prodList = data };
         return(Json(response));
     }
     catch (Exception ex)
     {
         return(Json(new { success = false, msg = ex.Message }));
     }
 }
Esempio n. 2
0
 public JsonResult ManualQuery(string lot, string startDate, string endDate)
 {
     try
     {
         var model = new ReqRpt209DataBuilder();
         model.GetTableDataByManual(lot, startDate, endDate);
         var data     = model.RowEntities;
         var response = new { success = true, RowEntities = data, model.LotStr, model.StartDate, model.EndDate };
         return(Json(response));
     }
     catch (Exception ex)
     {
         return(Json(new { success = false, msg = ex.Message }));
     }
 }