old mode 100755
new mode 100644
| | |
| | | var listDevice = new List<CommonDevice> { }; |
| | | listDevice.Add(doorLock); |
| | | var devTemp = Common.LocalDevice.Current.GetMyDeviceEnumInfo(listDevice); |
| | | if (devTemp.ConcreteType == DeviceConcreteType.IntelligentLocks_Sone) |
| | | if (devTemp.ConcreteType == DeviceConcreteType.IntelligentLocks_Sone |
| | | || devTemp.ConcreteType == DeviceConcreteType.IntelligentLocks_AT1TF |
| | | || devTemp.ConcreteType == DeviceConcreteType.IntelligentLocks_AT1F |
| | | || devTemp.ConcreteType == DeviceConcreteType.IntelligentLocks_AT1T |
| | | || devTemp.ConcreteType == DeviceConcreteType.IntelligentLocks_HAT1B |
| | | || devTemp.ConcreteType == DeviceConcreteType.IntelligentLocks_HAT1T |
| | | || devTemp.ConcreteType == DeviceConcreteType.IntelligentLocks_ATFT) |
| | | { |
| | | return true; |
| | | } |
| | |
| | | var listDevice = new List<CommonDevice> { }; |
| | | listDevice.Add(doorLock); |
| | | var devTemp = Common.LocalDevice.Current.GetMyDeviceEnumInfo(listDevice); |
| | | if (devTemp.ConcreteType == DeviceConcreteType.IntelligentLocks_Sone) |
| | | if (devTemp.ConcreteType == DeviceConcreteType.IntelligentLocks_Sone |
| | | || devTemp.ConcreteType == DeviceConcreteType.IntelligentLocks_AT1TF |
| | | || devTemp.ConcreteType == DeviceConcreteType.IntelligentLocks_AT1F |
| | | || devTemp.ConcreteType == DeviceConcreteType.IntelligentLocks_AT1T |
| | | || devTemp.ConcreteType == DeviceConcreteType.IntelligentLocks_HAT1B |
| | | || devTemp.ConcreteType == DeviceConcreteType.IntelligentLocks_HAT1T |
| | | || devTemp.ConcreteType == DeviceConcreteType.IntelligentLocks_ATFT) |
| | | { |
| | | return true; |
| | | } |
| | |
| | | return password; |
| | | } |
| | | |
| | | //// <summary> |
| | | /// 取得某月的最后一天 |
| | | /// </summary> |
| | | /// <param name="datetime">要取得月份最后一天的时间</param> |
| | | /// <returns></returns> |
| | | public static DateTime LastDayOfMonth(DateTime datetime) |
| | | { |
| | | return datetime.AddDays(1 - datetime.Day).AddMonths(1).AddDays(-1); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 将UNIX时间戳转换成系统时间(精确到秒) |
| | | /// <returns></returns> |