public PartialViewResult GetLotDetail(ReqRpt024LotDetailQueryPostViewModel viewModel) { try { lotDetailTableViewModel = new ReqRpt024LotDetailTableViewModel(viewModel); return(PartialView(lotDetailTableViewModel)); } catch (Exception) { return(null); } }
public ActionResult GetLotDetail(ReqRpt024LotDetailQueryPostViewModel viewModel) { try { lotDetailTableViewModel = new ReqRpt024LotDetailTableViewModel(viewModel); var rows = lotDetailTableViewModel.entities.Select(s => new { s.Lot_ID, s.Cast_ID, s.Status, s.Location, s.Ope_Category, strClaim_Time = s.Claim_Time.ToString("yyyy-MM-dd HH:mm:ss"), s.Cur_Wafer_Qty, s.Ope_No, s.ModulePD_ID, s.PD_Name, s.Claim_User_ID, s.Eqp_ID, s.Recipe_ID, s.Reticle_ID, s.Reason_Code, s.Reason_Description, s.ProdSpec_ID }); int total = rows.Count(); return(Json(new { total, rows }, JsonRequestBehavior.DenyGet)); } catch (Exception) { return(null); } }