Exemplo n.º 1
0
        public ActionResult Index(LoginUser loginUser)
        {
            List <SYSCode> colist = DataCenterCodeApi.GetCodeById(1035, loginUser.UserName, loginUser.SignName, loginUser.AppList);

            List <FxtApi_SYSArea> areaList = DataCenterAreaApi.GetAreaByCityId(loginUser.NowCityId, loginUser.UserName, loginUser.SignName, loginUser.AppList);

            //获取当前用户在此页面所有的操作权限
            List <int> functionCodes = _unitOfWork.FunctionService.GetAllBy(loginUser.UserName, loginUser.FxtCompanyId, loginUser.NowCityId, WebCommon.Url_AllotFlowInfo_AllotFlowManager).Select(m => m.FunctionCode).ToList();

            ViewBag.AreaList = areaList;

            ViewBag.FunctionCodes = functionCodes;

            return(View());
        }
Exemplo n.º 2
0
        public ActionResult Index(UserCenter_LoginUserInfo loginUser)
        {
            List <SYSCode> colist = DataCenterCodeApi.GetCodeById(1035, loginUser.UserName, loginUser.SignName, loginUser.AppList);

            List <FxtApi_SYSArea> areaList = DataCenterAreaApi.GetAreaByCityId(loginUser.NowCityId, loginUser.UserName, loginUser.SignName, loginUser.AppList);

            ViewBag.AreaList = areaList;

            //获取当前用户在此页面所有的操作权限
            List <int> functionCodes = WebUserHelp.GetNowPageFunctionCodes(loginUser.UserName, loginUser.FxtCompanyId, WebCommon.Url_AllotFlowInfo_AllotFlowManager);

            ViewBag.FunctionCodes = functionCodes;

            return(View());
        }
Exemplo n.º 3
0
        public ActionResult Add(LoginUser loginUserInfo)
        {
            List <FxtApi_SYSArea> areaList = DataCenterAreaApi.GetAreaByCityId(loginUserInfo.NowCityId, loginUserInfo.UserName, loginUserInfo.SignName, loginUserInfo.AppList);

            ViewBag.AreaList = areaList;

            //主用途
            ViewBag.PurposeCode = _unitOfWork.CodeService.PurposeCodeManager();
            //产权形式
            ViewBag.RightCode = _unitOfWork.CodeService.RightCodeManager();
            //物业管理质量
            ViewBag.ManagerQuality = _unitOfWork.CodeService.LevelManager();
            //停车状况
            ViewBag.ParkingStatusCode = _unitOfWork.CodeService.GetAllParkingStatusList();
            //主建筑物类型
            ViewBag.BuildingTypeCode = _unitOfWork.CodeService.BuildingTypeCodeManager();
            //建筑质量
            ViewBag.BuildingQuality = _unitOfWork.CodeService.LevelManager();
            //小区规模
            ViewBag.HousingScale = _unitOfWork.CodeService.HousingScaleCodeManager();
            //配套等级
            ViewBag.AppendageClass = _unitOfWork.CodeService.LevelManager();
            //土地规划用途
            ViewBag.PlanPurpose = _unitOfWork.CodeService.PurposeCodeManager();

            ViewBag.CityId = loginUserInfo.NowCityId;

            var templet = _unitOfWork.TempletRepository.GetBy(m => m.FxtCompanyId == loginUserInfo.FxtCompanyId && m.DatType == SYSCodeManager.DATATYPECODE_1 && m.Vaild == 1 && m.IsCurrent == true);

            if (templet == null)
            {
                throw new Exception("未设置楼盘模板!");
            }

            return(View(templet));
        }
Exemplo n.º 4
0
        public static List <FxtApi_SYSSubArea> GetSubAreaByAreaId(int areaId, string username, string signname, List <UserCenter_Apps> appList)
        {
            List <FxtApi_SYSSubArea> list = DataCenterAreaApi.GetSubAreaByAreaId(areaId, username, signname, appList);

            return(list);
        }
Exemplo n.º 5
0
        public static List <FxtApi_SYSArea> GetAreaByCityId(int cityId, string username, string signname, List <UserCenter_Apps> appList)
        {
            List <FxtApi_SYSArea> list = DataCenterAreaApi.GetAreaByCityId(cityId, username, signname, appList);

            return(list);
        }