| | |
| | | } |
| | | }
|
| | | /// <summary>
|
| | | /// 当前楼层ID
|
| | | /// 当前楼层id
|
| | | /// </summary>
|
| | | private string m_CurrentFloorId = string.Empty;
|
| | | /// <summary> |
| | | /// 当前楼层Id |
| | | /// </summary> |
| | | [Newtonsoft.Json.JsonIgnore] |
| | | public string CurrentFloorId = string.Empty; |
| | | public string CurrentFloorId
|
| | | {
|
| | | //来回切换备份,会出现问题,楼层id没清除
|
| | | get
|
| | | {
|
| | | //没有楼层
|
| | | if (this.FloorDics.Count == 0) { return string.Empty; }
|
| | |
|
| | | if (this.FloorDics.ContainsKey(m_CurrentFloorId) == true)
|
| | | {
|
| | | //当前的楼层id没问题
|
| | | return m_CurrentFloorId;
|
| | | }
|
| | | //如果当前设置的楼层id并不存在的话,重新设置
|
| | | m_CurrentFloorId = string.Empty;
|
| | | var dicFloor = HdlRoomLogic.Current.GetFloorSortList();
|
| | | foreach (var floorId in dicFloor.Keys)
|
| | | {
|
| | | //给一个过去即可
|
| | | m_CurrentFloorId = floorId;
|
| | | break;
|
| | | }
|
| | | return m_CurrentFloorId;
|
| | | }
|
| | | set { m_CurrentFloorId = value; }
|
| | | } |
| | | |
| | | #endregion |
| | | |