// GET: AgentState/AgentPurchaseGoods
 public ActionResult Index()
 {
     //商品类目(一级)
     GoodsClassBll gcbll = new GoodsClassBll();
     ViewBag.gClass = gcbll.GetGCList(0);
     return View();
 }
        // GET: AgentState/AgentPurchaseGoods
        public ActionResult Index()
        {
            //商品类目(一级)
            GoodsClassBll gcbll = new GoodsClassBll();

            ViewBag.gClass = gcbll.GetGCList(0);
            return(View());
        }
Esempio n. 3
0
 public ActionResult Index(int id = 0)
 {
     //有货状态
     SelectLists sList = new SelectLists();
     ViewBag.isNormal = sList.GetGBISNormal();
     //可视分组
     GoodsGroupBll ggBll = new GoodsGroupBll();
     ViewBag.gGroup = ggBll.GetGGList(LoginUser.UserBasic.EnterpriseID);
     //商品类目(一级)
     GoodsClassBll gcbll = new GoodsClassBll();
     ViewBag.gClass = gcbll.GetGCList(0);
     ViewBag.gIsSales = id;
     return View();
 }
Esempio n. 4
0
        public ActionResult Index(int id = 0)
        {
            //有货状态
            SelectLists sList = new SelectLists();

            ViewBag.isNormal = sList.GetGBISNormal();
            //可视分组
            GoodsGroupBll ggBll = new GoodsGroupBll();

            ViewBag.gGroup = ggBll.GetGGList(LoginUser.UserBasic.EnterpriseID);
            //商品类目(一级)
            GoodsClassBll gcbll = new GoodsClassBll();

            ViewBag.gClass   = gcbll.GetGCList(0);
            ViewBag.gIsSales = id;
            return(View());
        }
Esempio n. 5
0
        /// <summary>
        /// <auth>徐柳</auth>
        /// 根据一级获取二级类目
        /// </summary>
        /// <param name="bid">父id</param>
        /// <returns></returns>
        public JsonResult GetGCList(int pid)
        {
            GoodsClassBll bll = new GoodsClassBll();

            return(Json(bll.GetGCList(pid), JsonRequestBehavior.AllowGet));
        }
 /// <summary>
 /// <auth>徐柳</auth>
 /// 根据一级获取二级类目
 /// </summary>
 /// <param name="bid">父id</param>
 /// <returns></returns>
 public JsonResult GetGCList(int pid)
 {
     GoodsClassBll bll = new GoodsClassBll();
     return Json(bll.GetGCList(pid), JsonRequestBehavior.AllowGet);
 }