示例#1
0
        /// <summary>
        /// 新增代理商
        /// </summary>
        /// <returns></returns>
        public ActionResult Agent_Create() {
            ChannelGroupBll chn = new ChannelGroupBll();

            IList<ChannelGroup> modelList = chn.getList(LoginUser.UserBasic.EnterpriseID);
            ViewBag.ChannelGroupID = new SelectList(modelList, "ID", "GroupName");
            return View();
        }
示例#2
0
        /// <summary>
        /// 直营店编辑页面
        /// 负责人:谢海荣
        /// </summary>
        /// <param name="model">直营店实例</param>
        /// <returns></returns>
        public ActionResult Update(ShopInfoView model)
        {
            ChannelGroupBll chn = new ChannelGroupBll();

            ViewBag.ChannelGroupID = new SelectList(chn.getList(LoginUser.UserBasic.EnterpriseID), "ID", "GroupName");
            return(View(model));
        }
示例#3
0
        /// <summary>
        /// 跳转修改代理商
        /// 负责人:谢海荣
        /// </summary>
        /// <param name="model">修改model实例</param>
        /// <returns></returns>
        public ActionResult Edit(AgentView model)
        {
            ChannelGroupBll      chn       = new ChannelGroupBll();
            IList <ChannelGroup> modelList = chn.getList(LoginUser.UserBasic.EnterpriseID);

            ViewBag.ChannelGroupID = new SelectList(modelList, "ID", "GroupName");
            return(View(model));
        }
示例#4
0
        // GET: Agent
        public ActionResult Index()
        {
            ChannelGroupBll chn = new ChannelGroupBll();
            Utility.SelectLists unSel=new Utility.SelectLists();

            IList<ChannelGroup> modelList = chn.getList(LoginUser.UserBasic.EnterpriseID);
            ViewBag.ChannelGroupID = new SelectList(modelList, "ID", "GroupName");
            ViewBag.ChannelID = new SelectList(modelList, "ID", "GroupName");
            ViewBag.ChannelPush = new SelectList(modelList, "ID", "GroupName");
            ViewBag.AgentStatus = new SelectList(unSel.GetAgent(), "Value", "Text",-1);
            return View();
        }
示例#5
0
        // GET: Agent
        public ActionResult Index()
        {
            ChannelGroupBll chn = new ChannelGroupBll();

            Utility.SelectLists unSel = new Utility.SelectLists();

            IList <ChannelGroup> modelList = chn.getList(LoginUser.UserBasic.EnterpriseID);

            ViewBag.ChannelGroupID = new SelectList(modelList, "ID", "GroupName");
            ViewBag.ChannelID      = new SelectList(modelList, "ID", "GroupName");
            ViewBag.ChannelPush    = new SelectList(modelList, "ID", "GroupName");
            ViewBag.AgentStatus    = new SelectList(unSel.GetAgent(), "Value", "Text", -1);
            return(View());
        }
示例#6
0
        // 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();
        }
示例#7
0
        /// <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());
        }
示例#8
0
        // 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());
        }
示例#9
0
        /// <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();
        }
示例#10
0
 /// <summary>
 /// 直营店编辑页面
 /// 负责人:谢海荣
 /// </summary>
 /// <param name="model">直营店实例</param>
 /// <returns></returns>
 public ActionResult Update(ShopInfoView model)
 {
     ChannelGroupBll chn = new ChannelGroupBll();
     ViewBag.ChannelGroupID = new SelectList(chn.getList(LoginUser.UserBasic.EnterpriseID), "ID", "GroupName");
     return View(model);
 }