Exemple #1
0
        public JsonResult GetGoodsDocDetail(string docid)
        {
            var model = StockBusiness.GetGoodsDocDetail(docid, CurrentUser.ClientID);

            JsonDictionary.Add("model", model);
            return(new JsonResult
            {
                Data = JsonDictionary,
                JsonRequestBehavior = JsonRequestBehavior.AllowGet
            });
        }
Exemple #2
0
        public ActionResult DocDetail(string id)
        {
            var model = StockBusiness.GetGoodsDocDetail(id, CurrentUser.ClientID);

            if (model == null || string.IsNullOrEmpty(model.DocID))
            {
                return(Redirect("/Orders/Orders"));
            }
            ViewBag.Model = model;
            return(View());
        }