// 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()); }
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(); }
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()); }
/// <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); }