Exemplo n.º 1
0
        public JsonResult GetStockLedgerJson(int?ProductId, int?Dim1, int?Dim2, int?Process, string LotNo, int?Godown)
        {
            //return Json(new { data = _StockInHandService.GetStockLedger(ProductId, Dim1, Dim2, Process, LotNo, Godown, User.Identity.Name) }, JsonRequestBehavior.AllowGet);
            var T = Json(new { data = _StockInHandService.GetStockLedger(ProductId, Dim1, Dim2, Process, LotNo, Godown, User.Identity.Name).ToList() }, JsonRequestBehavior.AllowGet);

            T.MaxJsonLength = int.MaxValue;
            return(T);
        }
        public JsonResult GetStockLedgerJson(int?ProductId, int?Dim1, int?Dim2, int?Dim3, int?Dim4, int?Process, string LotNo, int?Godown, int?PersonId)
        {
            string Routeid       = (string)System.Web.HttpContext.Current.Session["Route"];
            int    ProductTypeid = (int)System.Web.HttpContext.Current.Session["ProductTypeId"];

            //return Json(new { data = _StockInHandService.GetStockLedger(ProductId, Dim1, Dim2, Process, LotNo, Godown, User.Identity.Name) }, JsonRequestBehavior.AllowGet);
            var T = Json(new { data = _StockInHandService.GetStockLedger(ProductId, Dim1, Dim2, Dim3, Dim4, Process, LotNo, Godown, PersonId, User.Identity.Name, ProductTypeid, Routeid).ToList() }, JsonRequestBehavior.AllowGet);

            T.MaxJsonLength = int.MaxValue;
            return(T);
        }