JLChen
2020-12-15 0bd4d1702248641f180345a086e5b3f58e6eb04c
HDL_ON/Entity/DB_ResidenceData.cs
@@ -7,6 +7,7 @@
namespace HDL_ON.Entity
{
    [System.Serializable]
    public class DB_ResidenceData
    {
        public DB_ResidenceData()
@@ -18,7 +19,8 @@
        /// </summary>
        public string MasterToken;
        RegionInfoRes _residecenInfo;
        //RegionInfoRes _residecenInfo;
        RegionInfoRes _residecenInfo = new RegionInfoRes();
        /// <summary>
        /// 住宅基础信息
        /// </summary>
@@ -53,36 +55,6 @@
            }
        }
        ///// <summary>
        ///// 获取网关列表
        ///// </summary>
        //void GetHomeGatewayList()
        //{
        //    new Thread(() =>
        //    {
        //        //切换住宅后,查询一次网关列表
        //        new HttpServerRequest().GetHomeGatewayList();
        //    })
        //    { IsBackground = true }.Start();
        //}
        //string curReginID;
        ///// <summary>
        ///// 当前选择的住宅索引
        ///// </summary>
        //public string CurReginID
        //{
        //    set
        //    {
        //        curReginID = value;
        //        GetHomeGatewayList();
        //    }
        //    get
        //    {
        //        return curReginID;
        //    }
        //}
        /// <summary>
        /// 功能类型列表
        /// </summary>
@@ -267,11 +239,21 @@
            var ssd = System.Text.Encoding.UTF8.GetBytes(Newtonsoft.Json.JsonConvert.SerializeObject(this));
            WirteResidenceInfo(ssd);
        }
        /// <summary>
        /// 当前选择的楼层
        /// </summary>
        public string CurFoor = Language.StringByID(StringId.All);
        /// <summary>
        /// 当前选择的楼层
        /// </summary>
        [Newtonsoft.Json.JsonIgnore]
        public SpatialInfo CurFloor = new SpatialInfo() { roomId = "", roomName = Language.StringByID(StringId.All)};
        /// <summary>
        /// 分类界面显示的楼层
        /// </summary>
        [Newtonsoft.Json.JsonIgnore]
        public SpatialInfo ClassificationChooseFloor = new SpatialInfo() { roomId = "", roomName = Language.StringByID(StringId.All) };
        /// <summary>
        /// 根目录
@@ -283,6 +265,7 @@
        /// <returns></returns>
        static byte[] ReadResidenceInfo()
        {
                MainPage.Log("get file Instance ");
            var fileName = "DB_ResidenceData";
            FileStream fs = null;
            try
@@ -310,6 +293,7 @@
            }
            finally
            {
                MainPage.Log("get file  ");
                try
                {
                    if (fs != null)