/// <summary> /// 弹出新增门店窗口 /// 负责人:谢海荣 /// </summary> /// <returns></returns> public ActionResult Create() { AreasBll abll = new AreasBll(); // ViewBag.Province = new SelectList(abll.GetAll(), "ID", "AName"); return(View()); }
public string Merge(int ID, int ProvinceID = -1, int CityID = -1, int AID = -1) { if (ModelState.IsValid) { } AreasBll bll = new AreasBll(); return(bll.Merge(ID, ProvinceID, CityID, AID)); }
public JsonResult getCon(string Cid) { if (string.IsNullOrEmpty(Cid)) { return(Json("")); } AreasBll abll = new AreasBll(); return(Json(abll.GetArear(Convert.ToInt32(Cid)).Children)); }
/// <summary> /// 代理商门店管理 /// 负责人:代理商列表 /// </summary> /// <returns></returns> public ActionResult Agent_Index(int ID = 0) { AreasBll abll = new AreasBll(); ChannelGroupBll chn = new ChannelGroupBll(); IList <ChannelGroup> modelList = chn.getList(LoginUser.UserBasic.EnterpriseID); ViewBag.ID = ID; ViewBag.ChannelGroupID = new SelectList(modelList, "ID", "GroupName"); ViewBag.ChannelID = new SelectList(modelList, "ID", "GroupName"); ViewBag.ChannelPush = new SelectList(modelList, "ID", "GroupName"); return(View()); }
// GET: ShopInfo /// <summary> /// 直营店视图 /// 负责人:谢海荣 /// </summary> /// <returns></returns> public ActionResult Enterprise_Index(string shopNameValue = "") { AreasBll abll = new AreasBll(); ChannelGroupBll chn = new ChannelGroupBll(); Utility.SelectLists unSel = new Utility.SelectLists(); IList <ChannelGroup> modelList = chn.getList(LoginUser.UserBasic.EnterpriseID); ViewBag.shopName = shopNameValue; ViewBag.ChannelGroupID = new SelectList(modelList, "ID", "GroupName"); ViewBag.ChannelID = new SelectList(modelList, "ID", "GroupName"); ViewBag.ChannelPush = new SelectList(modelList, "ID", "GroupName"); ViewBag.ShopInfoStatus = new SelectList(unSel.GetShopInfo(), "Value", "Text", -1); return(View()); }
// GET: Operate/Areas public ActionResult Index(string type, int PID = -1, string AName = "", int pageIndex = 1, int pageSize = 10, int ProvinceID = -1, int CityID = -1) { AreasBll bll = new AreasBll(); if (Request.IsAjaxRequest()) { if (type.Equals("data")) { return(Json(bll.list(PID, AName, pageIndex, pageSize, ProvinceID, CityID), JsonRequestBehavior.AllowGet)); } else { return(Json(bll.GetCount(PID, AName, pageIndex, pageSize, ProvinceID, CityID), JsonRequestBehavior.AllowGet)); } } else { return(View()); } }
public string Edit(Model.Areas Model) { AreasBll bll = new AreasBll(); return(bll.Edit(Model)); }
public ActionResult Edit(int ID) { AreasBll bll = new AreasBll(); return(View(bll.GetByID(ID))); }
public string Add(Model.Areas Model, int ProvinceID, int CityID) { AreasBll bll = new AreasBll(); return(bll.Add(Model, ProvinceID, CityID)); }