Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
        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));
        }
Exemplo n.º 3
0
 public PartialViewResult Stock(DateTime?FromDate, DateTime?ToDate, string ProductID, string ShadeID, string PackingID)
 {
     return(PartialView("_StockDetail", StockLogic.GetStockReport(FromDate, ToDate, ProductID, ShadeID, PackingID)));
 }
Exemplo n.º 4
0
        //
        // GET: /Report/

        public ActionResult Stock()
        {
            ViewBag.Products = ProductLogic.GetFinishedProducts();
            return(View(StockLogic.GetStockReport(null, null, null, null, null)));
        }