Пример #1
0
        public DashboadFm()
        {
            InitializeComponent();
            SellPoint sellPoint = new SellPoint();

            AddUserControl(sellPoint);
        }
Пример #2
0
      /// <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);
 }
Пример #3
0
        /// <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));
        }
Пример #4
0
 public async Task <IActionResult> Index()
 {
     SellPoint[] sellPoint = new SellPoint[0];
     try {
         sellPoint = await _ServiceRegistrar.GetSellPointsAsync(
Пример #5
0
        private void BtnHome_Click(object sender, EventArgs e)
        {
            SellPoint sellPoint = new SellPoint();

            AddUserControl(sellPoint);
        }