Esempio n. 1
0
        /// <summary>
        /// 获取配套code
        /// </summary>
        /// <returns></returns>
        public static IList <SYSCode> GetAppendageCodeList()
        {
            //int[] ints = new int[] { APPENDAGECODE_6, APPENDAGECODE_13, APPENDAGECODE_14, APPENDAGECODE_15, APPENDAGECODE_16, APPENDAGECODE_17, APPENDAGECODE_19 };
            List <SYSCode> list = SYSCodeApi.GetSYSCodeById(2008);

            //List<SYSCode> list2 = list.Where(obj => ints.Contains(obj.Code)).ToList();
            return(list);
        }
Esempio n. 2
0
        public ActionResult GetDataBase(string type, string id)
        {
            if (type == "city")
            {
                List <FxtApi_SYSProvince> provinceList = SYSProvinceManager.GetAllProvince();
                List <FxtApi_SYSCity>     cityList     = SYSCityManager.GetAllCity();
                StringBuilder             sb           = new StringBuilder();
                sb.Append("[");
                foreach (FxtApi_SYSProvince pro in provinceList)
                {
                    sb.Append("{provinceid:").Append(pro.ProvinceId).Append(",");
                    sb.Append("provincename:\"").Append(pro.ProvinceName).Append("\",");
                    List <FxtApi_SYSCity> _cityList = cityList.Where(obj => obj.ProvinceId == pro.ProvinceId).ToList();
                    sb.Append("citylist:[");
                    StringBuilder sb2 = new StringBuilder();
                    foreach (FxtApi_SYSCity city in _cityList)
                    {
                        sb2.Append("{cityid:").Append(city.CityId).Append(",");
                        sb2.Append("cityname:\"").Append(city.CityName).Append("\",");
                        sb2.Append("provinceid:").Append(pro.ProvinceId).Append("},");
                    }
                    sb.Append(sb2.ToString().TrimEnd(',')).Append("]");
                    sb.Append("},");
                }
                string result = sb.ToString().TrimEnd(',') + "]";
                ViewBag.DataBase = result;
            }
            else if (type == "allotstatus")
            {
                List <SYSCode> list = SYSCodeApi.GetSYSCodeById(1035);
                ViewBag.DataBase = list.ToJSONjss();
            }
            if (type == "code")
            {
                int            _id  = Convert.ToInt32(id);
                List <SYSCode> list = SYSCodeApi.GetSYSCodeById(_id);
                ViewBag.DataBase = list.ToJSONjss();
            }
            else if (type == "cityandprovince")
            {
                List <FxtApi_SYSProvince> provinceList = SYSProvinceManager.GetAllProvince();
                List <FxtApi_SYSCity>     cityList     = SYSCityManager.GetAllCity();

                string        json     = "{{\"provinceList\":{0}, \"cityList\":{1}}}";
                string        proJson  = "[]";
                string        cityJson = "[]";
                StringBuilder sb       = new StringBuilder();
                sb.Append("[");
                foreach (FxtApi_SYSProvince pro in provinceList)
                {
                    sb.Append("{\"provinceid\":").Append(pro.ProvinceId).Append(",");
                    sb.Append("\"provincename\":\"").Append(pro.ProvinceName).Append("\"");
                    sb.Append("},");
                }
                proJson = sb.ToString().TrimEnd(',') + "]";
                sb      = new StringBuilder();
                sb.Append("[");
                foreach (FxtApi_SYSCity ci in cityList)
                {
                    sb.Append("{\"cityid\":").Append(ci.CityId).Append(",");
                    sb.Append("\"cityname\":\"").Append(ci.CityName).Append("\",");
                    sb.Append("\"provinceid\":").Append(ci.ProvinceId).Append("");
                    sb.Append("},");
                }
                cityJson = sb.ToString().TrimEnd(',') + "]";
                string result = string.Format(json, proJson, cityJson);
                ViewBag.DataBase = result;
            }
            return(View());
        }
Esempio n. 3
0
        /// <summary>
        /// 获取图片类型Code
        /// </summary>
        /// <returns></returns>
        public List <SYSCode> GetPhotoTypeCodeList()
        {
            List <SYSCode> list = SYSCodeApi.GetSYSCodeById(2009).Where(m => m.Code < 2009010).ToList();

            return(list);
        }
Esempio n. 4
0
        /// <summary>
        /// 获取景观code
        /// </summary>
        /// <returns></returns>
        public List <SYSCode> GetSightCodeList()
        {
            List <SYSCode> list = SYSCodeApi.GetSYSCodeById(2006);

            return(list);
        }
Esempio n. 5
0
        /// <summary>
        /// 获取等级code
        /// </summary>
        /// <returns></returns>
        public List <SYSCode> GetClassCodeList()
        {
            List <SYSCode> list = SYSCodeApi.GetSYSCodeById(1012);

            return(list);
        }
Esempio n. 6
0
        /// <summary>
        /// 获取户型code
        /// </summary>
        /// <returns></returns>
        public List <SYSCode> GetHouseTypeCodeList()
        {
            List <SYSCode> list = SYSCodeApi.GetSYSCodeById(4001);

            return(list);
        }
Esempio n. 7
0
        /// <summary>
        /// 获取朝向code
        /// </summary>
        /// <returns></returns>
        public List <SYSCode> GetFrontCodeList()
        {
            List <SYSCode> list = SYSCodeApi.GetSYSCodeById(2004);

            return(list);
        }
Esempio n. 8
0
        /// <summary>
        /// 获取楼栋位置code
        /// </summary>
        /// <returns></returns>
        public List <SYSCode> GetBuildingLocationCodeList()
        {
            List <SYSCode> list = SYSCodeApi.GetSYSCodeById(2011);

            return(list);
        }
Esempio n. 9
0
        /// <summary>
        /// 获取建筑类型(结构)code
        /// </summary>
        /// <returns></returns>
        public List <SYSCode> GetStructureCodeList()
        {
            List <SYSCode> list = SYSCodeApi.GetSYSCodeById(2010);

            return(list);
        }
Esempio n. 10
0
        /// <summary>
        /// 获取配套code
        /// </summary>
        /// <returns></returns>
        public List <SYSCode> GetAppendageCodeList()
        {
            List <SYSCode> list = SYSCodeApi.GetSYSCodeById(2008);

            return(list);
        }
Esempio n. 11
0
        ///<summary>
        /// 用途
        /// </summary>
        /// <returns></returns>
        public List <SYSCode> GetHousePurposeCodeList()
        {
            List <SYSCode> list = SYSCodeApi.GetSYSCodeById(1002);

            return(list);
        }
Esempio n. 12
0
        /// <summary>
        /// 楼栋外墙
        /// </summary>
        /// <returns></returns>
        public List <SYSCode> GetWallCodeList()
        {
            List <SYSCode> list = SYSCodeApi.GetSYSCodeById(6058);

            return(list);
        }
Esempio n. 13
0
        ///<summary>
        /// 户型结构
        /// </summary>
        /// <returns></returns>
        public static IList <SYSCode> GetHouseStructureCodeList()
        {
            List <SYSCode> list = SYSCodeApi.GetSYSCodeById(2005);

            return(list);
        }