| | |
| | | /// value:FloorName |
| | | /// </summary> |
| | | public Dictionary<string,string> FloorDics = new Dictionary<string,string> { }; |
| | | /// <summary> |
| | | /// 当前楼层Id |
| | | /// </summary> |
| | | public string CurrentFloorId = string.Empty; |
| | | |
| | | #endregion |
| | | |
| | |
| | | public string GetCurrentFloorName |
| | | { |
| | | get |
| | | { |
| | | {
|
| | | return HdlResidenceLogic.Current.GetFloorNameById(CurrentFloorId); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 设置当前楼层的ID |
| | | }
|
| | | /// <summary>
|
| | | /// 当前楼层ID
|
| | | /// </summary> |
| | | public void SetCurrentFloorId() |
| | | { |
| | | if (Config.Instance.Home.FloorDics.Count > 0 && string.IsNullOrEmpty(CurrentFloorId)) |
| | | { |
| | | foreach (var floor in Config.Instance.Home.FloorDics) |
| | | { |
| | | CurrentFloorId = floor.Key; |
| | | Save(false); |
| | | return; |
| | | } |
| | | } |
| | | } |
| | | [Newtonsoft.Json.JsonIgnore] |
| | | public string CurrentFloorId = string.Empty; |
| | | |
| | | #endregion |
| | | |