// GET: Shop public ActionResult List() { ShopAddEntity entity = new ShopAddEntity(); entity.areaList = _areaService.List(); entity.userList = _bgUserService.GetList(); return(View(entity)); }
/// <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)); }
// 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)); }
// GET: Area public ActionResult List() { List <T_BG_Area> areas = _areaService.List(); return(View(areas)); }