old mode 100755
new mode 100644
| | |
| | | using Shared.Common; |
| | | using ZigBee.Device; |
| | | using Shared.Phone.Device.AC; |
| | | using System.Text; |
| | | using Shared.Phone.Device.Account; |
| | | |
| | | namespace Shared.Phone.UserView |
| | | { |
| | |
| | | /// <summary> |
| | | /// 底部按钮文字的Y值 |
| | | /// </summary> |
| | | private static readonly int tabBarEnumName_Y = 104; |
| | | private static readonly int tabBarEnumName_Y = 98; |
| | | #endregion |
| | | |
| | | #region ◆ 接口____________________________ |
| | |
| | | if (attriButeList == null || attriButeList.Count == 0)
|
| | | {
|
| | | return;
|
| | | }
|
| | | } |
| | | //此属性表明室内当前的温度 * 100,实际温度为“LocalTemperature / 100”,单位:℃ |
| | | var curTemp = (attriButeList[0].AttriButeData / 100 < ACControlBase.Temperature_High || attriButeList[0].AttriButeData / 100 > ACControlBase.Temperature_Low) ? attriButeList[0].AttriButeData / 100 : ACControlBase.Temperature_Default; |
| | | switch (attriButeList[0].AttributeId)
|
| | |
| | | case 28:
|
| | | ac.currentSystemMode = attriButeList[0].AttriButeData;
|
| | | ac.LastDateTime = DateTime.Now;
|
| | | break; |
| | | case 4099: |
| | | var value = Convert.ToString(attriButeList[0].AttriButeData, 2).PadLeft(16, '0'); |
| | | var modeStr = value.Substring(value.Length - 5, 5); |
| | | for (int j = 0; j < modeStr.Length; j++) |
| | | { |
| | | ac.listSupportMode[j] = Convert.ToInt32(modeStr[j]) == 49 ? 1 : 0; |
| | | } |
| | | break; |
| | | |
| | | case 4097: |
| | | ac.CleanStatu = attriButeList[0].AttriButeData == 42; |
| | | break;
|
| | | } |
| | | } |
| | | }
|
| | | }
|
| | |
|
| | | if (common.DeviceStatusReport.CluterID == 514) |
| | | { |
| | |
| | | if (attriButeList == null || attriButeList.Count == 0) |
| | | { |
| | | return; |
| | | }
|
| | | } |
| | | ac.DeviceStatusReport = common.DeviceStatusReport; |
| | | switch (attriButeList[0].AttributeId) |
| | | {
|
| | | { |
| | | case 0: |
| | | ac.currentFanMode = attriButeList[0].AttriButeData; |
| | | ac.LastDateTime = DateTime.Now; |
| | |
| | | break; |
| | | } |
| | | }
|
| | | |
| | |
|
| | | //当CluterID=3,就证明该设备在线,直接标记
|
| | | if (common.DeviceStatusReport.CluterID == 3)
|
| | | {
|
| | |
| | | { |
| | | BackgroundColor = Shared.Common.ZigbeeColor.Current.MainColor; |
| | | ZbGateway.StatusList.Add(this); |
| | | Shared.Application.LocationAction += (lat, lon) => |
| | | { |
| | | AccountLogic.Instance.ReceiveAppLatAndLon(lat.ToString(), lon.ToString()); |
| | | }; |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | if (sender == Instance.homePageIMG || sender == Instance.homePageName) |
| | | { |
| | | //主页 |
| | | CommonPage.Instance.IsDrawerLockMode = false; |
| | | Instance.homePageName.IsSelected = true; |
| | | Instance.homePageIMG.IsSelected = true; |
| | | var home = new UserHomeView { }; |
| | | Instance.BodyView.AddChidren(home); |
| | | home.Show(); |
| | | |
| | | } |
| | | else if (sender == Instance.categoryIMG || sender==Instance.categoryName) |
| | | { |
| | | //分类 |
| | | CommonPage.Instance.IsDrawerLockMode = true; |
| | | Instance.categoryName.IsSelected = true; |
| | | Instance.categoryIMG.IsSelected = true; |
| | | var category = new Phone.Device.Category.Category { }; |
| | |
| | | } |
| | | else if (sender == Instance.settingIMG || sender==Instance.settingName) |
| | | { |
| | | //个人中心 |
| | | //个人中心 |
| | | CommonPage.Instance.IsDrawerLockMode = true; |
| | | Instance.settingName.IsSelected = true; |
| | | Instance.settingIMG.IsSelected = true; |
| | | var form = new UserCenter.UserMain.UserMainForm(); |