public JsonResult GetStock(string ProductID, string ShadeID, string PackingID) { var responseValue = new { StockData = StockLogic.GetStockReport(null, null, ProductID, ShadeID, PackingID), Factor = PackingLogic.GetPackingByID(Convert.ToInt32(PackingID)) }; return(Json(new ResponseMsg { IsSuccess = true, ResponseValue = responseValue }, JsonRequestBehavior.AllowGet)); }
public PartialViewResult GetGrindingStock(int BatchID) { var grindingStock = StockLogic.GetGrindingStock(BatchID); if (grindingStock != null) { foreach (var item in grindingStock) { var productStock = StockLogic.GetStockReport(null, null, Convert.ToString(item.ProductID), null, null); if (productStock != null && productStock.Count() > 0) { item.StockQty = Convert.ToString(productStock.FirstOrDefault().ClosingQty); } else { item.StockQty = "0"; } } } return(PartialView("_GrindingStock", grindingStock)); }
public PartialViewResult Stock(DateTime?FromDate, DateTime?ToDate, string ProductID, string ShadeID, string PackingID) { return(PartialView("_StockDetail", StockLogic.GetStockReport(FromDate, ToDate, ProductID, ShadeID, PackingID))); }
// // GET: /Report/ public ActionResult Stock() { ViewBag.Products = ProductLogic.GetFinishedProducts(); return(View(StockLogic.GetStockReport(null, null, null, null, null))); }