public DashboadFm() { InitializeComponent(); SellPoint sellPoint = new SellPoint(); AddUserControl(sellPoint); }
/// <summary> /// 添加/编辑卖点 /// </summary> /// <param name="id">商品id</param> /// <returns></returns> public ActionResult Operate(long id = 0) { SellPoint list = new SellPoint(); ViewBag.sg = new List<Hashtable>(); if (id > 0) { SellPointBll bll = new SellPointBll(); list=bll.GetObjectById(w => w.ID == id && w.EnterpriseID==LoginUser.UserBasic.EnterpriseID); if (list == null) { Response.Redirect("/Login/Index"); return Content("此销售卖点不存在"); } SPJoinGBBll sg = new SPJoinGBBll(); ViewBag.sg = sg.GetSGList(id); } return View(list); }
/// <summary> /// 添加/编辑卖点 /// </summary> /// <param name="id">商品id</param> /// <returns></returns> public ActionResult Operate(long id = 0) { SellPoint list = new SellPoint(); ViewBag.sg = new List <Hashtable>(); if (id > 0) { SellPointBll bll = new SellPointBll(); list = bll.GetObjectById(w => w.ID == id && w.EnterpriseID == LoginUser.UserBasic.EnterpriseID); if (list == null) { Response.Redirect("/Login/Index"); return(Content("此销售卖点不存在")); } SPJoinGBBll sg = new SPJoinGBBll(); ViewBag.sg = sg.GetSGList(id); } return(View(list)); }
public async Task <IActionResult> Index() { SellPoint[] sellPoint = new SellPoint[0]; try { sellPoint = await _ServiceRegistrar.GetSellPointsAsync(
private void BtnHome_Click(object sender, EventArgs e) { SellPoint sellPoint = new SellPoint(); AddUserControl(sellPoint); }