コード例 #1
0
ファイル: ShopController.cs プロジェクト: 1244952898/MQ_NEW
        // GET: Shop

        public ActionResult List()
        {
            ShopAddEntity entity = new ShopAddEntity();

            entity.areaList = _areaService.List();
            entity.userList = _bgUserService.GetList();
            return(View(entity));
        }
コード例 #2
0
        /// <summary>
        /// 母版页的
        /// </summary>
        /// <returns></returns>
        public ActionResult EmployList()
        {
            UserEmployListEntity entity = new UserEmployListEntity();

            entity.AreaList = _areaService.List();
            long areaId = LoginHelper.AreaId;
            long shopID = LoginHelper.ShopID;

            if (entity.AreaList != null && entity.AreaList.Count > 0)
            {
                entity.ShopList = _bgShopService.List(areaId);
            }
            ViewBag.areaId = areaId;
            ViewBag.shopID = shopID;
            return(View(entity));
        }
コード例 #3
0
        // GET: User
        public ActionResult Add()
        {
            UserAddEntity entity = new UserAddEntity();

            entity.RoleList       = _bgRoleService.List();
            entity.DepartmentList = _bgDepartmentService.GetListDepartment();
            entity.AreaList       = _areaService.List();
            if (entity.AreaList != null && entity.AreaList.Count > 0)
            {
                entity.ShopList = _bgShopService.List(entity.AreaList[0].ID);
            }
            return(View(entity));
        }
コード例 #4
0
        // GET: Area
        public ActionResult List()
        {
            List <T_BG_Area> areas = _areaService.List();

            return(View(areas));
        }