28个文件已添加
37个文件已删除
105个文件已修改
| | |
| | | MGCD01/M-ZB.10 = 1306 / å¸é¡¶å¼çæ°ä¼ æå¨ / å¸é¡¶å¼çæ°ä¼ æå¨ / 1200 / ä¼ æå¨ / ä¼ æå¨
|
| | | ;PM2.5空æ°è´¨éä¼ æå¨
|
| | | MSPM25/M-ZB.10 = 1307 / PM2.5空æ°è´¨éä¼ æå¨ / PM2.5空æ°è´¨éä¼ æå¨ / 1307 / 空æ°è´¨é / ä¼ æå¨
|
| | | ;æ¸©æ¹¿åº¦ä¼ æå¨(è¿ä¸ªä¸è¥¿å¥½åæä¸¤ä¸ª)
|
| | | MTH01/M-ZB.10 = 1308 / æ¸©æ¹¿åº¦ä¼ æå¨ / æ¸©æ¹¿åº¦ä¼ æå¨ / 1200 / ä¼ æå¨ / ä¼ æå¨
|
| | | MSHIM01/M-ZB.10 = 1308 / æ¸©æ¹¿åº¦ä¼ æå¨ / æ¸©æ¹¿åº¦ä¼ æå¨ / 1200 / ä¼ æå¨ / ä¼ æå¨
|
| | |
|
| | | ;***************************************************************
|
| | | ; ç»§çµå¨è®¾å¤
|
| | |
| | | 16141=ç´§æ¥æé® |
| | | 16142=é¨çªä¼ æå¨ |
| | | 16143=é¥åæ£ |
| | | 16144=è²å¼å·ä¸º6ä½ï¼ç±ä»»ææ°å+忝ç»åï¼ |
| | | 16145=é¿ææ¤æé® |
| | | |
| | | ;â
â
â
â
ä¸é¢è¿äºæ¯æ¥å£çè¿åä¿¡æ¯ç¿»è¯,ä»18000å¼å§â
â
â
â
|
| | | 18004=æå®ç½å
³å·²ç»è¢«ç»å®
|
| | |
| | | <MandroidI18n>CJK</MandroidI18n>
|
| | | <AndroidTlsProvider>btls</AndroidTlsProvider>
|
| | | <AndroidEnableSGenConcurrent>true</AndroidEnableSGenConcurrent>
|
| | | <EmbedAssembliesIntoApk>true</EmbedAssembliesIntoApk>
|
| | | <AndroidSupportedAbis />
|
| | | <AndroidDexTool>d8</AndroidDexTool>
|
| | | <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
|
| | | <AndroidKeyStore>True</AndroidKeyStore>
|
| | | <AndroidSigningKeyStore>/Users/hdl/Desktop/Keystore/HDL Home/HDL Home.keystore</AndroidSigningKeyStore>
|
| | | <EmbedAssembliesIntoApk>true</EmbedAssembliesIntoApk>
|
| | | </PropertyGroup>
|
| | | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
| | | <DebugSymbols>true</DebugSymbols>
|
| | |
| | | <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
|
| | | <AndroidDexTool>d8</AndroidDexTool>
|
| | | <AndroidUseAapt2>false</AndroidUseAapt2>
|
| | | <AndroidKeyStore></AndroidKeyStore>
|
| | | <AndroidSigningKeyStore>/Users/hdl/Desktop/Keystore/HDL\ Home/HDL\ Home.keystore</AndroidSigningKeyStore>
|
| | | </PropertyGroup>
|
| | | <ItemGroup>
|
| | | <Reference Include="BouncyCastle.Crypto, Version=1.8.1.0, Culture=neutral, PublicKeyToken=0e99375e54769942">
|
| | |
| | | </ItemGroup>
|
| | | <ItemGroup>
|
| | | <AndroidAsset Include="Assets\Phone\Item\SynchronizationSelected.png" />
|
| | | </ItemGroup>
|
| | | <ItemGroup>
|
| | | <AndroidAsset Include="Assets\Phone\ZigeeLogic\iconBackgroundColor1.png" />
|
| | | </ItemGroup>
|
| | | <ItemGroup>
|
| | | <AndroidAsset Include="Assets\Phone\ZigeeLogic\iconSelectedBackgroundColor1.png" />
|
| | | </ItemGroup>
|
| | | <Import Project="..\Shared\Shared.projitems" Label="Shared" Condition="Exists('..\Shared\Shared.projitems')" />
|
| | | <Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
|
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.hdl.home" android:versionCode="0120072403" android:installLocation="auto" android:versionName="1.1.0120072403"> |
| | | <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.hdl.home" android:versionCode="0120072401" android:installLocation="auto" android:versionName="1.1.0120072401"> |
| | | <uses-sdk android:minSdkVersion="23" android:targetSdkVersion="26" /> |
| | | <permission android:name="com.hdl.home.permission.JPUSH_MESSAGE" android:protectionLevel="signature" /> |
| | | <uses-permission android:name="android.permission.WAKE_LOCK" /> |
| | |
| | | { |
| | | "orientation": "landscape", |
| | | "extent": "full-screen", |
| | | "filename": "1920_1080-1.png", |
| | | "size": "1920x1080", |
| | | "scale": "1x", |
| | | "idiom": "tv", |
| | |
| | | { |
| | | "orientation": "landscape", |
| | | "extent": "full-screen", |
| | | "filename": "3840_2160-1.png", |
| | | "size": "1920x1080", |
| | | "scale": "2x", |
| | | "idiom": "tv", |
| | |
| | | "minimum-system-version": "12.0", |
| | | "orientation": "portrait", |
| | | "extent": "full-screen", |
| | | "filename": "ææ¬§1242*2688.png", |
| | | "filename": "1242_2688_XS Max-1.png", |
| | | "size": "414x896", |
| | | "subtype": "1792", |
| | | "scale": "3x", |
| | |
| | | "minimum-system-version": "12.0", |
| | | "orientation": "portrait", |
| | | "extent": "full-screen", |
| | | "filename": "ææ¬§828*1792.png", |
| | | "filename": "828_1792_XR-1.png", |
| | | "size": "276x597.3", |
| | | "subtype": "2688", |
| | | "scale": "3x", |
| | |
| | | "minimum-system-version": "12.0", |
| | | "orientation": "landscape", |
| | | "extent": "full-screen", |
| | | "filename": "ææ¬§2688*1242.png", |
| | | "filename": "2688_1242-1.png", |
| | | "size": "896x414", |
| | | "subtype": "1792", |
| | | "scale": "3x", |
| | |
| | | "minimum-system-version": "12.0", |
| | | "orientation": "landscape", |
| | | "extent": "full-screen", |
| | | "filename": "ææ¬§1792*828.png", |
| | | "filename": "1792_828-1.png", |
| | | "size": "597.3x276", |
| | | "subtype": "2688", |
| | | "scale": "3x", |
| | |
| | | "minimum-system-version": "11.0", |
| | | "orientation": "portrait", |
| | | "extent": "full-screen", |
| | | "filename": "ææ¬§1125*2436.png", |
| | | "filename": "1125_2436-1.png", |
| | | "size": "375x812", |
| | | "subtype": "2436h", |
| | | "scale": "3x", |
| | |
| | | "minimum-system-version": "11.0", |
| | | "orientation": "landscape", |
| | | "extent": "full-screen", |
| | | "filename": "ææ¬§2436*1125.png", |
| | | "filename": "2436_1125-1.png", |
| | | "size": "812x375", |
| | | "subtype": "2436h", |
| | | "scale": "3x", |
| | |
| | | "minimum-system-version": "8.0", |
| | | "orientation": "portrait", |
| | | "extent": "full-screen", |
| | | "filename": "ææ¬§1242*2208.png", |
| | | "filename": "1242_2208.png", |
| | | "size": "414x736", |
| | | "subtype": "736h", |
| | | "scale": "3x", |
| | |
| | | "minimum-system-version": "8.0", |
| | | "orientation": "portrait", |
| | | "extent": "full-screen", |
| | | "filename": "ææ¬§750_1334å¤ä»½.png", |
| | | "filename": "750_1334-1.png", |
| | | "size": "375x667", |
| | | "subtype": "667h", |
| | | "scale": "2x", |
| | |
| | | "minimum-system-version": "8.0", |
| | | "orientation": "landscape", |
| | | "extent": "full-screen", |
| | | "filename": "ææ¬§2208*1242.png", |
| | | "filename": "2208_1242-1.png", |
| | | "size": "736x414", |
| | | "subtype": "736h", |
| | | "scale": "3x", |
| | |
| | | "minimum-system-version": "7.0", |
| | | "orientation": "portrait", |
| | | "extent": "full-screen", |
| | | "filename": "ææ¬§2048*2732.png", |
| | | "filename": "2048_2732.png", |
| | | "size": "1024x1366", |
| | | "scale": "2x", |
| | | "idiom": "ipad" |
| | |
| | | "minimum-system-version": "7.0", |
| | | "orientation": "portrait", |
| | | "extent": "full-screen", |
| | | "filename": "ææ¬§640_960å¤ä»½.png", |
| | | "filename": "640_960-2.png", |
| | | "size": "320x480", |
| | | "scale": "2x", |
| | | "idiom": "iphone" |
| | |
| | | "minimum-system-version": "7.0", |
| | | "orientation": "portrait", |
| | | "extent": "full-screen", |
| | | "filename": "ææ¬§640_1136å¤ä»½.png", |
| | | "filename": "640_1136-2.png", |
| | | "size": "320x568", |
| | | "subtype": "retina4", |
| | | "scale": "2x", |
| | |
| | | "minimum-system-version": "7.0", |
| | | "orientation": "portrait", |
| | | "extent": "full-screen", |
| | | "filename": "ææ¬§768*1024.png", |
| | | "filename": "768_1024-2.png", |
| | | "size": "768x1024", |
| | | "scale": "1x", |
| | | "idiom": "ipad" |
| | |
| | | "minimum-system-version": "7.0", |
| | | "orientation": "portrait", |
| | | "extent": "full-screen", |
| | | "filename": "ææ¬§1536*2048.png", |
| | | "filename": "1536_2048-2.png", |
| | | "size": "768x1024", |
| | | "scale": "2x", |
| | | "idiom": "ipad" |
| | |
| | | "minimum-system-version": "7.0", |
| | | "orientation": "landscape", |
| | | "extent": "full-screen", |
| | | "filename": "ææ¬§1024*768.png", |
| | | "filename": "1024_768-2.png", |
| | | "size": "1024x768", |
| | | "scale": "1x", |
| | | "idiom": "ipad" |
| | |
| | | "minimum-system-version": "7.0", |
| | | "orientation": "landscape", |
| | | "extent": "full-screen", |
| | | "filename": "ææ¬§2048*1536.png", |
| | | "filename": "2048_1536-2.png", |
| | | "size": "1024x768", |
| | | "scale": "2x", |
| | | "idiom": "ipad" |
| | |
| | | { |
| | | "orientation": "portrait", |
| | | "extent": "full-screen", |
| | | "filename": "ææ¬§320_480å¤ä»½.png", |
| | | "filename": "320_480-1.png", |
| | | "size": "320x480", |
| | | "scale": "1x", |
| | | "idiom": "iphone" |
| | |
| | | { |
| | | "orientation": "portrait", |
| | | "extent": "full-screen", |
| | | "filename": "ææ¬§640_960å¤ä»½-1.png", |
| | | "filename": "640_960-3.png", |
| | | "size": "320x480", |
| | | "scale": "2x", |
| | | "idiom": "iphone" |
| | |
| | | { |
| | | "orientation": "portrait", |
| | | "extent": "full-screen", |
| | | "filename": "ææ¬§640_1136å¤ä»½-1.png", |
| | | "filename": "640_1136-3.png", |
| | | "size": "320x568", |
| | | "subtype": "retina4", |
| | | "scale": "2x", |
| | |
| | | { |
| | | "orientation": "portrait", |
| | | "extent": "to-status-bar", |
| | | "filename": "ææ¬§768_1004å¤ä»½.png", |
| | | "filename": "768_1004-1.png", |
| | | "size": "768x1004", |
| | | "scale": "1x", |
| | | "idiom": "ipad" |
| | |
| | | { |
| | | "orientation": "portrait", |
| | | "extent": "to-status-bar", |
| | | "filename": "ææ¬§1536_2008å¤ä»½.png", |
| | | "filename": "1536_2008-1.png", |
| | | "size": "768x1004", |
| | | "scale": "2x", |
| | | "idiom": "ipad" |
| | |
| | | { |
| | | "orientation": "portrait", |
| | | "extent": "full-screen", |
| | | "filename": "ææ¬§768_1024å¤ä»½.png", |
| | | "filename": "768_1024-3.png", |
| | | "size": "768x1024", |
| | | "scale": "1x", |
| | | "idiom": "ipad" |
| | |
| | | { |
| | | "orientation": "portrait", |
| | | "extent": "full-screen", |
| | | "filename": "ææ¬§1536_2048å¤ä»½.png", |
| | | "filename": "1536_2048-3.png", |
| | | "size": "768x1024", |
| | | "scale": "2x", |
| | | "idiom": "ipad" |
| | |
| | | { |
| | | "orientation": "landscape", |
| | | "extent": "to-status-bar", |
| | | "filename": "ææ¬§1024_748å¤ä»½.png", |
| | | "filename": "1024_748-1.png", |
| | | "size": "1024x748", |
| | | "scale": "1x", |
| | | "idiom": "ipad" |
| | |
| | | { |
| | | "orientation": "landscape", |
| | | "extent": "to-status-bar", |
| | | "filename": "ææ¬§2048_1496å¤ä»½.png", |
| | | "filename": "2048_1496-1.png", |
| | | "size": "1024x748", |
| | | "scale": "2x", |
| | | "idiom": "ipad" |
| | |
| | | { |
| | | "orientation": "landscape", |
| | | "extent": "full-screen", |
| | | "filename": "ææ¬§1024_768å¤ä»½.png", |
| | | "filename": "1024_768-3.png", |
| | | "size": "1024x768", |
| | | "scale": "1x", |
| | | "idiom": "ipad" |
| | |
| | | { |
| | | "orientation": "landscape", |
| | | "extent": "full-screen", |
| | | "filename": "ææ¬§2048_1536å¤ä»½.png", |
| | | "filename": "2048_1536-3.png", |
| | | "size": "1024x768", |
| | | "scale": "2x", |
| | | "idiom": "ipad" |
| | |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\2048*1536-1.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\1920_1080-1.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\3840_2160-1.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\1242_2688_XS Max-1.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\828_1792_XR-1.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\2688_1242-1.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\1792_828-1.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\1125_2436-1.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\2436_1125-1.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\1242_2208.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\750_1334-1.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\2208_1242-1.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\2048_2732.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\640_960-2.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\640_1136-2.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\768_1024-2.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\1536_2048-2.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\1024_768-2.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\2048_1536-2.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\320_480-1.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\640_960-3.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\640_1136-3.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\768_1004-1.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\1536_2008-1.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\768_1024-3.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\1536_2048-3.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\1024_748-1.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\2048_1496-1.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\1024_768-3.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\2048_1536-3.png" /> |
| | | <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\40_40-3.png" /> |
| | | <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\60_60-1.png" /> |
| | | <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\58_58-2.png" /> |
| | |
| | | <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\87_87-2.png" /> |
| | | <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\80_80-4.png" /> |
| | | <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\1024_1024-2.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\ææ¬§1242*2688.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\ææ¬§828*1792.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\ææ¬§2688*1242.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\ææ¬§1792*828.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\ææ¬§1125*2436.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\ææ¬§2436*1125.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\ææ¬§1242*2208.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\ææ¬§2208*1242.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\ææ¬§2048*2732.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\ææ¬§768*1024.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\ææ¬§1536*2048.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\ææ¬§1024*768.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\ææ¬§2048*1536.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\ææ¬§750_1334å¤ä»½.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\ææ¬§640_960å¤ä»½.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\ææ¬§640_1136å¤ä»½.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\ææ¬§320_480å¤ä»½.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\ææ¬§640_960å¤ä»½-1.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\ææ¬§640_1136å¤ä»½-1.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\ææ¬§768_1004å¤ä»½.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\ææ¬§1536_2008å¤ä»½.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\ææ¬§768_1024å¤ä»½.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\ææ¬§1536_2048å¤ä»½.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\ææ¬§1024_748å¤ä»½.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\ææ¬§2048_1496å¤ä»½.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\ææ¬§1024_768å¤ä»½.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\ææ¬§2048_1536å¤ä»½.png" /> |
| | | </ItemGroup> |
| | | <ItemGroup> |
| | | <BundleResource Include="Resources\Language.ini" /> |
| | | <BundleResource Include="Resources\DeviceName.ini" /> |
| | | <BundleResource Include="Resources\Phone\Guide\RightIcon.png" /> |
| | | <BundleResource Include="Resources\Phone\Guide\LeftIcon.png" /> |
| | | <BundleResource Include="Resources\Phone\Guide\Finger.png" /> |
| | |
| | | <BundleResource Include="Resources\Phone\ZigeeLogic\withdrawal.png" /> |
| | | <BundleResource Include="Resources\Phone\ZigeeLogic\logicaddcolor.png" /> |
| | | <BundleResource Include="Resources\Phone\ZigeeLogic\sensor13.png" /> |
| | | <BundleResource Include="Resources\Phone\ZigeeLogic\iconSelectedBackgroundColor1.png" /> |
| | | <BundleResource Include="Resources\Phone\ZigeeLogic\nightLight.png" /> |
| | | <BundleResource Include="Resources\Phone\ZigeeLogic\logicclose.png" /> |
| | | <BundleResource Include="Resources\Phone\ZigeeLogic\function.png" /> |
| | |
| | | <BundleResource Include="Resources\Phone\ZigeeLogic\sensor21.png" /> |
| | | <BundleResource Include="Resources\Phone\ZigeeLogic\selectedsensor0.png" /> |
| | | <BundleResource Include="Resources\Phone\ZigeeLogic\next.png" /> |
| | | <BundleResource Include="Resources\Phone\ZigeeLogic\iconBackgroundColor1.png" /> |
| | | <BundleResource Include="Resources\Phone\ZigeeLogic\iconSelectedBackgroundColor.png" /> |
| | | <BundleResource Include="Resources\Phone\ZigeeLogic\security.png" /> |
| | | <BundleResource Include="Resources\Phone\ZigeeLogic\sensor44.png" /> |
| | |
| | | <BundleResource Include="Resources\Phone\Gateway\WiredGateway.png" /> |
| | | <BundleResource Include="Resources\Phone\Gateway\WirelessGateway.png" /> |
| | | <BundleResource Include="Resources\Phone\Gateway\AddGatewaySuccess.png" /> |
| | | <BundleResource Include="Resources\DeviceName.ini" /> |
| | | </ItemGroup> |
| | | <Import Project="..\Shared\Shared.projitems" Label="Shared" Condition="Exists('..\Shared\Shared.projitems')" /> |
| | | <Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" /> |
| | |
| | | <key>aps-environment</key> |
| | | <string>development</string> |
| | | <key>CFBundleShortVersionString</key> |
| | | <string>1.1.0120072301</string> |
| | | <string>1.1.012007061</string> |
| | | <key>CFBundleVersion</key> |
| | | <string>2020072301</string> |
| | | <string>202007061</string> |
| | | <key>CFBundleURLTypes</key> |
| | | <array> |
| | | <dict> |
| | |
| | | MGCD01/M-ZB.10 = 1306 / å¸é¡¶å¼çæ°ä¼ æå¨ / å¸é¡¶å¼çæ°ä¼ æå¨ / 1200 / ä¼ æå¨ / ä¼ æå¨
|
| | | ;PM2.5空æ°è´¨éä¼ æå¨
|
| | | MSPM25/M-ZB.10 = 1307 / PM2.5空æ°è´¨éä¼ æå¨ / PM2.5空æ°è´¨éä¼ æå¨ / 1307 / 空æ°è´¨é / ä¼ æå¨
|
| | | ;æ¸©æ¹¿åº¦ä¼ æå¨(è¿ä¸ªä¸è¥¿å¥½åæä¸¤ä¸ª)
|
| | | MTH01/M-ZB.10 = 1308 / æ¸©æ¹¿åº¦ä¼ æå¨ / æ¸©æ¹¿åº¦ä¼ æå¨ / 1200 / ä¼ æå¨ / ä¼ æå¨
|
| | | MSHIM01/M-ZB.10 = 1308 / æ¸©æ¹¿åº¦ä¼ æå¨ / æ¸©æ¹¿åº¦ä¼ æå¨ / 1200 / ä¼ æå¨ / ä¼ æå¨
|
| | |
|
| | | ;***************************************************************
|
| | | ; ç»§çµå¨è®¾å¤
|
| | |
| | | 16141=ç´§æ¥æé® |
| | | 16142=é¨çªä¼ æå¨ |
| | | 16143=é¥åæ£ |
| | | 16144=è²å¼å·ä¸º6ä½ï¼ç±ä»»ææ°å+忝ç»åï¼ |
| | | 16145=é¿ææ¤æé® |
| | | |
| | | ;â
â
â
â
ä¸é¢è¿äºæ¯æ¥å£çè¿åä¿¡æ¯ç¿»è¯,ä»18000å¼å§â
â
â
â
|
| | | 18004=æå®ç½å
³å·²ç»è¢«ç»å®
|
old mode 100755
new mode 100644
| | |
| | | /// <summary> |
| | | /// çæ¬å· |
| | | /// </summary> |
| | | public static string CodeIDString = "1.1.0120072403"; |
| | | public static string CodeIDString = "1.1.0120072401"; |
| | | /// <summary> |
| | | /// æ³¨åæ¥æº(0:HDL On 1:Zigbee) |
| | | /// </summary> |
| | |
| | | DeviceType = deviceType |
| | | }; |
| | | var requestJson = Newtonsoft.Json.JsonConvert.SerializeObject(RegIDObj); |
| | | var reverObj = CommonPage.Instance.RequestHttpsZigbeeAsync("ZigbeeUsers/SignZigbeeNeedPushRegID", System.Text.Encoding.UTF8.GetBytes(requestJson), 4); |
| | | var reverObj = CommonPage.Instance.RequestHttpsZigbeeAsync("ZigbeeUsers/SignZigbeeNeedPushRegID", System.Text.Encoding.UTF8.GetBytes(requestJson)); |
| | | if (reverObj == null) |
| | | {
|
| | | //è°è¯:è®°å½æå
ID
|
| | |
| | | this.dicDeviceEpoint.Clear();
|
| | |
|
| | | //åå§åè®¾å¤æä¸¾
|
| | | this.InitDeviceModelIdEnum();
|
| | | this.InitDeviceModelIdEnum(); |
| | | |
| | | //è·åæ¬å°å
¨é¨çè®¾å¤æä»¶ |
| | | List<string> listFile = this.GetAllDeviceFile(); |
| | |
| | | listDriveDevice.Add(device);
|
| | | }
|
| | | }
|
| | | //设置èæè®¾å¤çé»è®¤åå
|
| | | this.SetDriveDeviceDefultName(listDriveDevice);
|
| | | if (listDriveDevice.Count > 0)
|
| | | {
|
| | | //妿èæè®¾å¤è¿æ²¡æååçè¯
|
| | | HdlThreadLogic.Current.RunThread(() =>
|
| | | {
|
| | | //妿ä¸è¿æ ·æ¾å¨ä¸ä¸ªçº¿ç¨é,æå¯è½å¯¹Dictionary产çå½±å
|
| | | foreach (var myDevice in listDriveDevice)
|
| | | {
|
| | | //æ ¹æ®è®¾å¤ç±»åè·ååç§°
|
| | | var dName = this.GetDeviceObjectText(new List<CommonDevice>() { myDevice }, false);
|
| | | //å¨ç«¯ç¹ååçåé¢éå ãåè·¯ãåæ ·
|
| | | dName += "(" + myDevice.DeviceEpoint + Language.StringByID(R.MyInternationalizationString.uDeviceCircuit) + ")";
|
| | | this.ReName(myDevice, dName, ShowErrorMode.NO);
|
| | | }
|
| | | });
|
| | | }
|
| | |
|
| | | //åªæå®å
¨è·åçæ¶å,æä¼å»å¤çå é¤çé®é¢
|
| | | if (statu != 1)
|
| | |
| | | return true;
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 设置èæè®¾å¤çé»è®¤åå
|
| | | /// </summary>
|
| | | /// <param name="listDriveDevice">èæè®¾å¤å表</param>
|
| | | private void SetDriveDeviceDefultName(List<CommonDevice> listDriveDevice)
|
| | | {
|
| | | if (listDriveDevice.Count == 0)
|
| | | {
|
| | | return;
|
| | | }
|
| | | //妿èæè®¾å¤è¿æ²¡æååçè¯
|
| | | HdlThreadLogic.Current.RunThread(() =>
|
| | | {
|
| | | //妿ä¸è¿æ ·æ¾å¨ä¸ä¸ªçº¿ç¨é,æå¯è½å¯¹Dictionary产çå½±å
|
| | | foreach (var myDevice in listDriveDevice)
|
| | | {
|
| | | string dName = string.Empty;
|
| | | if (this.IsMiniLight(myDevice) == true)
|
| | | {
|
| | | //Miniå¤ç¯
|
| | | dName = Language.StringByID(R.MyInternationalizationString.uMiniNightLight);
|
| | | }
|
| | | else
|
| | | {
|
| | | //æ ¹æ®è®¾å¤ç±»åè·ååç§°
|
| | | dName = this.GetDeviceObjectText(new List<CommonDevice>() { myDevice }, false);
|
| | | //å¨ç«¯ç¹ååçåé¢éå ãåè·¯ãåæ ·
|
| | | dName += "(" + myDevice.DeviceEpoint + Language.StringByID(R.MyInternationalizationString.uDeviceCircuit) + ")";
|
| | | }
|
| | | this.ReName(myDevice, dName, ShowErrorMode.NO);
|
| | |
|
| | | System.Threading.Thread.Sleep(100);
|
| | | }
|
| | | });
|
| | | }
|
| | |
|
| | | ///<summary >
|
| | | /// ä¿®æ¹è®¾å¤macåç§°
|
| | | /// <para>macName:设å¤åç§°</para>
|
| | |
| | | //妿å½åæ¯èæä½å®
|
| | | if (Common.Config.Instance.Home.IsVirtually == true)
|
| | | {
|
| | | return Phone.TemplateData.TemplateDeviceDataLogic.Current.ReDeviceMacName(device, macName);
|
| | | return Phone.ModelData.DeviceModelDataLogic.Current.ReDeviceMacName(device, macName, "MacRename");
|
| | | }
|
| | |
|
| | | //è·åç¼è¾è®¾å¤Macååçå½ä»¤å符
|
| | |
| | | return null;
|
| | | }
|
| | | //å ç¼å
|
| | | Phone.TemplateData.TemplateDeviceDataLogic.Current.ReDeviceMacName(device, macName);
|
| | | Phone.ModelData.DeviceModelDataLogic.Current.ReDeviceMacName(device, macName, "MacRename");
|
| | |
|
| | | var tempData = Newtonsoft.Json.JsonConvert.DeserializeObject<CommonDevice.RenameDeviceMacNameData>(result.ReceiptData);
|
| | | return new CommonDevice.RenameDeviceMacNameAllData { renameDeviceMacNameData = tempData };
|
| | |
| | | //妿å½åæ¯èæä½å®
|
| | | if (Common.Config.Instance.Home.IsVirtually == true)
|
| | | {
|
| | | return Phone.TemplateData.TemplateDeviceDataLogic.Current.ReDeviceEpointName(device, deviceName);
|
| | | return Phone.ModelData.DeviceModelDataLogic.Current.ReDeviceEpointName(device, deviceName, "DeviceRename");
|
| | | }
|
| | | //è·åç¼è¾è®¾å¤ç«¯ç¹ååçå½ä»¤å符
|
| | | var sendData = this.GetReDeviceEpointNameCommandText(device.DeviceAddr, device.DeviceEpoint, deviceName);
|
| | |
| | | return null;
|
| | | }
|
| | | //å ç¼å
|
| | | Phone.TemplateData.TemplateDeviceDataLogic.Current.ReDeviceEpointName(device, deviceName);
|
| | | Phone.ModelData.DeviceModelDataLogic.Current.ReDeviceEpointName(device, deviceName, "DeviceRename");
|
| | |
|
| | | var tempData = Newtonsoft.Json.JsonConvert.DeserializeObject<CommonDevice.DeviceRenameResponseData>(result.ReceiptData);
|
| | | return new CommonDevice.DeviceRenameAllData { deviceRenameData = tempData };
|
| | |
| | | //é¨é没æå®ä½åè½
|
| | | return false;
|
| | | }
|
| | | var myTypeInfo = this.GetMyDeviceEnumInfo(new List<CommonDevice>() { device });
|
| | | if (device.Type == DeviceType.IASZone)
|
| | | {
|
| | | var myTypeInfo = this.GetMyDeviceEnumInfo(new List<CommonDevice>() { device });
|
| | | if (myTypeInfo.ConcreteType == DeviceConcreteType.Sensor_Pir)
|
| | | {
|
| | | //ä¼ æå¨é¤äºPir齿²¡æå®ä½åè½
|
| | |
| | | //çåç§»å¨ä¼ æå¨è½ç¶æ¯çµæ± 设å¤,使¯å®æå®ä½åè½
|
| | | return true;
|
| | | }
|
| | | return false;
|
| | | }
|
| | | //æ¸©æ¹¿åº¦ä¼ æå¨æ²¡æå®ä½åè½
|
| | | if (myTypeInfo.ConcreteType == DeviceConcreteType.Sensor_TemperatureHumidity)
|
| | | {
|
| | | return false;
|
| | | }
|
| | |
|
| | |
| | | //颿¿ç温度æ¢å¤´å« 颿¿åå+温度
|
| | | return deviceInfoType.DeviceDefultName + Language.StringByID(R.MyInternationalizationString.uTemperature);
|
| | | }
|
| | | else if (((TemperatureSensor)device).SensorDiv == 1)
|
| | | {
|
| | | //æ¸©åº¦ä¼ æå¨
|
| | | return Language.StringByID(R.MyInternationalizationString.TemperatureSensor);
|
| | | }
|
| | | else if (((TemperatureSensor)device).SensorDiv == 2)
|
| | | {
|
| | | //æ¹¿åº¦ä¼ æå¨
|
| | | return Language.StringByID(R.MyInternationalizationString.HumiditySensor);
|
| | | }
|
| | | }
|
| | | //å
¶ä»æ
åµ,使ç¨å®çé»è®¤åç§°
|
| | | return deviceInfoType.DeviceDefultName + epointNo;
|
| | |
| | | /// <param name="device">设å¤å¯¹è±¡</param>
|
| | | /// <param name="macName">Macåå</param>
|
| | | /// <returns></returns>
|
| | | public void SetMacName(CommonDevice device, string macName)
|
| | | private void SetMacName(CommonDevice device, string macName)
|
| | | {
|
| | | device.DeviceName = macName;
|
| | | }
|
| | |
| | | /// <param name="device">设å¤å¯¹è±¡</param>
|
| | | /// <param name="epointName">端ç¹åå</param>
|
| | | /// <returns></returns>
|
| | | public void SetEpointName(CommonDevice device, string epointName)
|
| | | private void SetEpointName(CommonDevice device, string epointName)
|
| | | {
|
| | | device.DeviceEpointName = epointName;
|
| | | }
|
| | |
| | | info.ObjectTypeName = this.dicDeviceModelIdEnum["A418"].Aç±»ååå;//è°å
模å
|
| | | }
|
| | | else if (info.BeloneType == DeviceBeloneType.Aä¼ æå¨
|
| | | || device.Type == DeviceType.TemperatureSensor
|
| | | || device.Type == DeviceType.FreshAirHumiditySensor)
|
| | | || device.Type == DeviceType.TemperatureSensor)
|
| | | {
|
| | | //ä¼ æå¨åå¹¶
|
| | | info.ConcreteType = DeviceConcreteType.Sensor;
|
| | |
| | | //é¨çªä¼ æå¨
|
| | | info.ConcreteType = DeviceConcreteType.Sensor_DoorWindow;
|
| | | info.ConcreteText = Language.StringByID(R.MyInternationalizationString.uSensorDoorWindow);
|
| | | }
|
| | | else if (iasZone.IasDeviceType == 541)
|
| | | {
|
| | | //çåç§»å¨ä¼ æå¨
|
| | | info.ConcreteType = DeviceConcreteType.Sensor_SphericalMotion;
|
| | | info.ConcreteText = this.dicDeviceModelIdEnum["MSPIRB-ZB.10"].A宿¹åå;
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | listCheck.Add(mainkeys);
|
| | | //å·æ°ä¸ä¸æ¬å°ç¼å
|
| | | var localDevice = this.GetDevice(mainkeys);
|
| | | var tempDevice = localDevice == null ? device : localDevice;
|
| | |
|
| | | //å·æ°å±æ§
|
| | | this.SetDeviceInfoToMain(tempDevice, device);
|
| | | if (this.RefreshDeviceFunctionType(tempDevice, device, false) == true)
|
| | | if (localDevice != null)
|
| | | {
|
| | | //éè¦åéåè½ç±»åç»ç½å
³
|
| | | listFucDevice.Add(tempDevice);
|
| | | //å·æ°å±æ§
|
| | | this.SetDeviceInfoToMain(localDevice, device);
|
| | | if (this.RefreshDeviceFunctionType(localDevice, device, false) == true)
|
| | | {
|
| | | //éè¦åéåè½ç±»åç»ç½å
³
|
| | | listFucDevice.Add(localDevice);
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | /// <param name="device">设置æºè®¾å¤å¯¹è±¡</param>
|
| | | public void SetDeviceInfoToMain(CommonDevice mainDevice, CommonDevice device)
|
| | | {
|
| | | mainDevice.DeviceName = device.DeviceInfo.MacName;
|
| | | mainDevice.DeviceEpointName = device.DeviceInfo.DeviceName;
|
| | | if (string.IsNullOrEmpty(device.DeviceInfo.MacName) == false)
|
| | | {
|
| | | mainDevice.DeviceName = device.DeviceInfo.MacName;
|
| | | }
|
| | | if (string.IsNullOrEmpty(device.DeviceInfo.DeviceName) == false)
|
| | | {
|
| | | mainDevice.DeviceEpointName = device.DeviceInfo.DeviceName;
|
| | | }
|
| | | mainDevice.CurrentGateWayId = device.CurrentGateWayId;
|
| | | mainDevice.ZigbeeType = device.DeviceInfo.ZigbeeType;
|
| | | mainDevice.IsOnline = device.DeviceInfo.IsOnline;
|
| | |
| | | /// PM2.5空æ°è´¨éä¼ æå¨
|
| | | /// </summary>
|
| | | Sensor_PMTwoPointFive = 1307,
|
| | | /// <summary>
|
| | | /// æ¸©æ¹¿åº¦ä¼ æå¨(è¿ä¸ªåè¯æ¼éäº,使¯éäºå°±éäºå,å°±è¿æ ·äº)
|
| | | /// </summary>
|
| | | Sensor_TemperatureHumidity = 1308,
|
| | |
|
| | | /// <summary>
|
| | | /// è¿å¨ä¼ æå¨
|
| | |
| | | /// </summary>
|
| | | Sensor_Keyfob = -1307,
|
| | | /// <summary>
|
| | | /// æ¸©åº¦ä¼ æå¨(è¿ä¸ªåè¯æ¼éäº,使¯éäºå°±éäºå,å°±è¿æ ·äº)
|
| | | /// æ¸©æ¹¿åº¦ä¼ æå¨
|
| | | /// </summary>
|
| | | Sensor_TemperatureHumidity = -1308,
|
| | | /// <summary>
|
| | | /// æ¸©åº¦ä¼ æå¨
|
| | | /// </summary>
|
| | | Sensor_Temperature = -1309,
|
| | | /// <summary>
|
| | |
| | | /// value:FloorName |
| | | /// </summary> |
| | | public Dictionary<string,string> FloorDics = new Dictionary<string,string> { }; |
| | | /// <summary> |
| | | /// -1:æªé
ç½®(éè¦éæ°éæ©) 1:æ æ¨¡æ¿æè®¾å¤ 2:ææ¨¡æ¿æè®¾å¤ 3:æ æ¨¡æ¿æ 设å¤(请æ è§è¿ä¸ªåé) |
| | | /// </summary> |
| | | public int TemplateMode = -1; |
| | | /// <summary> |
| | | /// 该ä½å®
æ¯å¦æ¯å±ç¤ºæ¨¡æ¿(æ¤åéæ¯ç»æ¥çæ¨¡æ¿æ°æ®æ¶ä½¿ç¨ç,请æ è§è¿ä¸ªåé) |
| | | /// </summary> |
| | | [Newtonsoft.Json.JsonIgnore] |
| | | public bool IsShowTemplate = false; |
| | | /// <summary> |
| | | /// å½åä½å®
éæ©çæ¨¡æ¿åå(请æ è§è¿ä¸ªåé) |
| | | /// </summary> |
| | | public string SelectTemplate = string.Empty; |
| | | /// <summary> |
| | | /// èªå®ä¹åå
çæ é¢åç§°(ä¸ListUintContent个æ°å¹é
,请æ è§è¿ä¸ªåé) |
| | | /// </summary> |
| | | public List<string> ListUintName = new List<string>(); |
| | | /// <summary> |
| | | /// èªå®ä¹åå
çå
容(ä¸ListUintName个æ°å¹é
,请æ è§è¿ä¸ªåé) |
| | | /// </summary> |
| | | public List<string> ListUintContent = new List<string>(); |
| | | /// <summary> |
| | | /// æåç¼è¾çäºä»¶(2020.05.26追å ) 1970/12/31 23:59æ ¼å¼ |
| | | /// </summary> |
| | | public string LastEditorTime = "1970/12/31 23:59"; |
| | | /// <summary> |
| | | /// æ è¯æ¤ä½å®
çæ°æ®æ¯å¦å·²ç»åéè¿æ¨¡æ¿æ°æ®ç»ç½å
³(åªé对TemplateMode=2,请æ è§è¿ä¸ªåé) |
| | | /// </summary> |
| | | public bool SendTemplateSuccess = false; |
| | | /// <summary> |
| | | /// è¿ä¸ªä½å®
ä¸ææ¥æçç½å
³id(2020.05.26追å ,null代表没æå¤çè¿,请æ è§è¿ä¸ªåé) |
| | | /// </summary> |
| | | [Newtonsoft.Json.JsonIgnore] |
| | | public List<string> listGatewayId = null; |
| | | /// <summary> |
| | | /// <para>æ è¯ä½å®
æ°æ®çåºå(æä»¶è¯»åæ¶é
ç½®,请æ è§è¿ä¸ªåé)ï¼</para> |
| | | /// <para>1:æ¬èº«èªå·±çæ°æ®(æä»¶å¤¹åå为ä½å®
id)</para> |
| | | /// <para>2:èªå·±æå¨å建çä¿å卿¬æºçå¤ä»½(æä»¶å¤¹åå以ãBackupResidenceDataãå¼å¤´)</para> |
| | | /// <para>3:æ¤æ°æ®ä»äºç«¯ä¸è½½èæ¥(æä»¶å¤¹åå以ãDownLoadResidenceDataãå¼å¤´)</para> |
| | | /// </summary> |
| | | [Newtonsoft.Json.JsonIgnore] |
| | | public int HouseDataDiv = 1; |
| | | /// <summary> |
| | | /// å½åä½å®
çå¨çº¿ç¶æ -1:èæ 0:离线 1:æ¬å° 2:è¿ç¨ 3:读åä¸(请æ è§è¿ä¸ªåé) |
| | | /// </summary> |
| | | [Newtonsoft.Json.JsonIgnore] |
| | | public string NowHomeOnlineStatu = "3"; |
| | | /// <summary> |
| | | /// å½ååæ¾ä½å®
æ°æ®çæä»¶å¤¹åå(æ¤åéæ¯ç»æ¬æºå¤ä»½,æè
äºç«¯ä¸è½½å¤ä»½ä½¿ç¨ç,请æ è§è¿ä¸ªåé) |
| | | /// </summary> |
| | | [Newtonsoft.Json.JsonIgnore] |
| | | public string SaveDirctoryName = string.Empty; |
| | | |
| | | #endregion |
| | | |
| | |
| | | /// <param name="autoBackup">æ¯å¦å¤ä»½</param> |
| | | public void Save(bool autoBackup = true) |
| | | { |
| | | //ä¿®æ¹æ¶é´ |
| | | this.LastEditorTime = DateTime.Now.ToString("yyyy/MM/dd HH:mm"); |
| | | var path = System.IO.Path.Combine(Shared.IO.FileUtils.RootPath, Config.Instance.Guid, Id); |
| | | //å¦ææ²¡æåå¨ä½å®
ç®å½ï¼å
å建 |
| | | if (!System.IO.Directory.Exists(path)) |
| | |
| | | var result = await HdlSceneLogic.Current.EditorSceneNameFromGateway(this.editorScene, this.cloneScene.Name);
|
| | | if (result == false)
|
| | | {
|
| | | //å
³éè¿åº¦æ¡
|
| | | this.CloseProgressBar();
|
| | | return;
|
| | | }
|
| | | }
|
| | |
| | | {
|
| | | //ä¿®æ¹åºæ¯
|
| | | var result = await HdlSceneLogic.Current.EditorSceneFromGateway(this.editorScene, this.listAdjustTarget);
|
| | | //å
³éè¿åº¦æ¡
|
| | | this.CloseProgressBar();
|
| | | if (result == false)
|
| | | {
|
| | | //å
³éè¿åº¦æ¡
|
| | | this.CloseProgressBar();
|
| | | return;
|
| | | }
|
| | | }
|
| | |
| | |
|
| | | //ç¼è¾åºæ¯,主页éè¦éæ°å·æ°
|
| | | UserView.UserPage.Instance.RefreshAllForm = true;
|
| | |
|
| | | //å
³éè¿åº¦æ¡
|
| | | this.CloseProgressBar();
|
| | |
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | |
| | | this.AddNormalDeviceReportEvent();
|
| | | //æ·»å ä¼ æå¨ç¶æä¸æ¥äºä»¶
|
| | | this.AddSensorDeviceReportEvent();
|
| | | //å¼å¯ä¼ æå¨ç¶æè¿åç线ç¨
|
| | | this.StartRecoverSenorStatuThread();
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | |
| | | {
|
| | | //å
æ¸
空
|
| | | listView.RemoveAll();
|
| | | this.dicDeviceRowControl = new Dictionary<string, Controls.DeviceRowCommon>();
|
| | |
|
| | | var listDevice = new List<CommonDevice>();
|
| | | for (int i = 0; i < rowInfo.listDeviceKeys.Count; i++)
|
| | |
| | | }
|
| | |
|
| | | }, ShowErrorMode.NO);
|
| | | });
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
|
| | | #region â ä¼ æå¨ç¶æè¿å_____________________
|
| | |
|
| | | /// <summary>
|
| | | /// å¼å¯ä¼ æå¨ç¶æè¿åç线ç¨
|
| | | /// </summary>
|
| | | private void StartRecoverSenorStatuThread()
|
| | | {
|
| | | HdlThreadLogic.Current.RunThread(() =>
|
| | | {
|
| | | while (this.Parent != null)
|
| | | {
|
| | | try
|
| | | {
|
| | | var dicControl = this.dicDeviceRowControl;
|
| | | foreach (var contr in dicControl.Values)
|
| | | {
|
| | | //妿æ¯ä¼ æå¨,åå·æ°ç¶æ
|
| | | if (contr.device.Type == DeviceType.IASZone && contr.Parent != null
|
| | | && ((IASZone)contr.device).iASInfo == null)
|
| | | {
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | //设å¤ç¶æå¿
须巿°
|
| | | string statuText = HdlDeviceOtherLogic.Current.GetDeviceStatu(contr.device);
|
| | | contr.SetDeviceStatuText(statuText);
|
| | |
|
| | | }, ShowErrorMode.NO);
|
| | | }
|
| | | }
|
| | | System.Threading.Thread.Sleep(8000);
|
| | | }
|
| | | catch { System.Threading.Thread.Sleep(3000); }
|
| | | }
|
| | | });
|
| | | }
|
| | |
|
| | |
| | | //æå¼
|
| | | this.SetDeviceStatuText(Language.StringByID(R.MyInternationalizationString.uOpen1));
|
| | | i_device.SwitchControl(1);
|
| | | HdlThreadLogic.Current.RunThread(() =>
|
| | | {
|
| | | //è·åç¯å
亮度
|
| | | System.Threading.Thread.Sleep(300);
|
| | | HdlDeviceAttributeLogic.Current.SendLevelStatuComand(i_device);
|
| | | });
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | //æå¼
|
| | | this.SetDeviceStatuText(Language.StringByID(R.MyInternationalizationString.uOpen1));
|
| | | i_device.SwitchControl(1);
|
| | | HdlThreadLogic.Current.RunThread(() =>
|
| | | {
|
| | | //è·åç¯å
亮度
|
| | | System.Threading.Thread.Sleep(300);
|
| | | HdlDeviceAttributeLogic.Current.SendLevelStatuComand(i_device);
|
| | | });
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | public HorizontalScrolViewLayout roomhorizontalScrol = new HorizontalScrolViewLayout |
| | | { |
| | | Width = Application.GetRealWidth(1080 - 58), |
| | | Height = Application.GetRealHeight(204), |
| | | Height = Application.GetRealHeight(200), |
| | | Y = Application.GetRealHeight(184), |
| | | X = Application.GetRealWidth(58), |
| | | }; |
| | | public VerticalScrolViewLayout middle = new VerticalScrolViewLayout |
| | | { |
| | | Width = Application.GetRealWidth(1080), |
| | | Height = Application.GetRealHeight(Method.H - 260 - 204 - 184), |
| | | Height = Application.GetRealHeight(Method.H - 260 - 200 - 184), |
| | | BackgroundColor = ZigbeeColor.Current.LogicMiddleBackgroundColor, |
| | | }; |
| | | |
| | |
| | | for (int i = 0; i < RoomList.Count; i++) |
| | | { |
| | | var room = RoomList[i]; |
| | | var fra = new FrameLayout |
| | | { |
| | | Height = Application.GetRealHeight(200), |
| | | Width = Application.GetRealWidth(255), |
| | | }; |
| | | roomhorizontalScrol.AddChidren(fra); |
| | | |
| | | LogicView.RoomClickView roomClickView = new LogicView.RoomClickView(); |
| | | roomClickView.Show(roomhorizontalScrol); |
| | | roomClickView.roomnameBtn.Text =room.Name; |
| | | var roombjBtn = new Button |
| | | { |
| | | Height = Application.GetRealHeight(158), |
| | | Width = Application.GetRealWidth(255), |
| | | UnSelectedImagePath = "ZigeeLogic/iconBackgroundColor.png", |
| | | SelectedImagePath = "ZigeeLogic/iconSelectedBackgroundColor.png", |
| | | Y = Application.GetRealHeight(21), |
| | | }; |
| | | fra.AddChidren(roombjBtn); |
| | | |
| | | var roomnameBtn = new Button |
| | | { |
| | | |
| | | Height = Application.GetRealHeight(152 - 26 - 20), |
| | | Width = Application.GetRealWidth(255 - 20 - 50), |
| | | Text = room.Name, |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | SelectedTextColor = ZigbeeColor.Current.LogicBlankBackgroundColor, |
| | | Y = Application.GetRealHeight(21 + 13 + 10), |
| | | X = Application.GetRealWidth(10 + 25), |
| | | |
| | | }; |
| | | fra.AddChidren(roomnameBtn); |
| | | |
| | | if (i == 0) |
| | | { |
| | | |
| | | roombjButton.IsSelected = false; |
| | | roomClickView.roombjBtn.Height = Application.GetRealHeight(135); |
| | | roomClickView.roombjBtn.Width = Application.GetRealWidth(245); |
| | | roomClickView.roombjBtn.Y = Application.GetRealHeight(40); |
| | | roomClickView.roombjBtn.X = Application.GetRealWidth(0); |
| | | roombjButton = roomClickView.roombjBtn; |
| | | roomClickView.roombjBtn.IsSelected = true; |
| | | roomTextButton.IsSelected = false; |
| | | roomClickView.roomnameBtn.Width = Application.GetRealWidth(245 - 60 * 2); |
| | | roomClickView.roomnameBtn.X = Application.GetRealWidth(60); |
| | | roomTextButton = roomClickView.roomnameBtn; |
| | | roomClickView.roomnameBtn.IsSelected = true; |
| | | roombjButton = roombjBtn; |
| | | roombjBtn.IsSelected = true; |
| | | |
| | | roomTextButton.IsSelected = false; |
| | | roomTextButton = roomnameBtn; |
| | | roomnameBtn.IsSelected = true; |
| | | SceneView(room.ListSceneId); |
| | | |
| | | } |
| | | |
| | | |
| | | EventHandler<MouseEventArgs> roomclick = (sender, e) => |
| | | { |
| | |
| | | clickbutton = null; |
| | | clickbutton = new Button(); |
| | | |
| | | roombjButton.Height = Application.GetRealHeight(72); |
| | | roombjButton.Width = Application.GetRealWidth(170); |
| | | roombjButton.Y = Application.GetRealHeight(60); |
| | | roombjButton.X = Application.GetRealWidth(26); |
| | | roombjButton.IsSelected = false; |
| | | roombjButton = roombjBtn; |
| | | roombjBtn.IsSelected = true; |
| | | |
| | | roomClickView.roombjBtn.Height = Application.GetRealHeight(135); |
| | | roomClickView.roombjBtn.Width = Application.GetRealWidth(245); |
| | | roomClickView.roombjBtn.Y = Application.GetRealHeight(40); |
| | | roomClickView.roombjBtn.X = Application.GetRealWidth(0); |
| | | roombjButton = roomClickView.roombjBtn; |
| | | roomClickView.roombjBtn.IsSelected = true; |
| | | |
| | | roomTextButton.Width = Application.GetRealWidth(125); |
| | | roomTextButton.X = Application.GetRealWidth(26 + 22); |
| | | roomTextButton.IsSelected = false; |
| | | roomClickView.roomnameBtn.Width = Application.GetRealWidth(245 - 60 * 2); |
| | | roomClickView.roomnameBtn.X = Application.GetRealWidth(60); |
| | | roomTextButton = roomClickView.roomnameBtn; |
| | | roomClickView.roomnameBtn.IsSelected = true; |
| | | |
| | | roomTextButton = roomnameBtn; |
| | | roomnameBtn.IsSelected = true; |
| | | SceneView(room.ListSceneId); |
| | | }; |
| | | roomClickView.roomnameBtn.MouseUpEventHandler += roomclick; |
| | | roomClickView.roombjBtn.MouseUpEventHandler += roomclick; |
| | | roomnameBtn.MouseUpEventHandler += roomclick; |
| | | roombjBtn.MouseUpEventHandler += roomclick; |
| | | |
| | | } |
| | | } |
| | |
| | | completeView.Btntitle.Text = LocalDevice.Current.GetDeviceEpointName(common); |
| | | EventHandler<MouseEventArgs> clickcancel = (sender, e) => |
| | | { |
| | | if (edit) |
| | | if (!edit) |
| | | { |
| | | UserView.HomePage.Instance.ScrollEnabled = true; |
| | | } |
| | |
| | | closeView.titleBtn.TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor; |
| | | openView.selectedIconBtn.Visible = true; |
| | | closeView.selectedIconBtn.Visible = false; |
| | | if (iASZonedevice.IasDeviceType == 13) |
| | | if (iASZonedevice.IasDeviceType == 13||iASZonedevice.IasDeviceType == 541) |
| | | { |
| | | |
| | | closeView.selectedIconBtn.Visible = true; |
| | | } |
| | | Send.dictionary(deviceConditionsInfo, "Range", "5"); |
| | |
| | | { |
| | | case 13: |
| | | { |
| | | |
| | | if (common.ModelIdentifier == "MSPIRB-ZB.10") |
| | | { |
| | | int _height = 3; |
| | | if (edit) |
| | | { |
| | | _height = 2; |
| | | } |
| | | var view = completeView.Show(_height); |
| | | openView.titleBtn.TextID = MyInternationalizationString.someone; |
| | | closeView.titleBtn.TextID = MyInternationalizationString.unattendedtime1; |
| | | closeView.selectedIconBtn.UnSelectedImagePath = "ZigeeLogic/next.png"; |
| | | closeView.selectedIconBtn.Visible = true; |
| | | view.AddChidren(openView.Show()); |
| | | view.AddChidren(closeView.Show()); |
| | | |
| | | takebackView.lineBtn.BackgroundColor = ZigbeeColor.Current.LogicBackgroundColor; |
| | | takebackView.selectedIconBtn.Visible = true; |
| | | takebackView.titleBtn.TextID = MyInternationalizationString.ambientLight; |
| | | takebackView.selectedIconBtn.UnSelectedImagePath = "ZigeeLogic/next.png"; |
| | | if (edit) |
| | | { |
| | | |
| | | if (devices["Cluster_ID"] == "1024") |
| | | { |
| | | flMain.RemoveFromParent(); |
| | | var illumination = new Illumination(); |
| | | UserView.HomePage.Instance.AddChidren(illumination); |
| | | UserView.HomePage.Instance.PageIndex += 1; |
| | | illumination.Show(common, takebackView.titleBtn.Text, int.Parse(devices["AttriButeData1"]), true); |
| | | } |
| | | else |
| | | { |
| | | closeView.lineBtn.BackgroundColor = ZigbeeColor.Current.LogicBackgroundColor; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | view.AddChidren(takebackView.Show()); |
| | | |
| | | } |
| | | |
| | | |
| | | takebackView.clickviewBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | SelectedDeviceStatus = ""; |
| | | openView.titleBtn.TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor; |
| | | openView.selectedIconBtn.Visible = false; |
| | | var illumination = new Illumination(); |
| | | UserView.HomePage.Instance.AddChidren(illumination); |
| | | UserView.HomePage.Instance.PageIndex += 1; |
| | | illumination.Show(common, takebackView.titleBtn.Text, 0, false); |
| | | |
| | | }; |
| | | |
| | | } |
| | | else |
| | | { |
| | | |
| | | openView.titleBtn.TextID = MyInternationalizationString.someone; |
| | | closeView.titleBtn.TextID = MyInternationalizationString.unattendedtime1; |
| | | closeView.lineBtn.BackgroundColor = ZigbeeColor.Current.LogicBackgroundColor; |
| | | closeView.selectedIconBtn.UnSelectedImagePath = "ZigeeLogic/next.png"; |
| | | closeView.selectedIconBtn.Visible = true; |
| | | completeView.Show(2).AddChidren(openView.Show()); |
| | | completeView.Show(2).AddChidren(closeView.Show()); |
| | | |
| | | } |
| | | openView.titleBtn.TextID = MyInternationalizationString.someone; |
| | | closeView.titleBtn.TextID = MyInternationalizationString.unattendedtime1; |
| | | closeView.lineBtn.BackgroundColor = ZigbeeColor.Current.LogicBackgroundColor; |
| | | closeView.selectedIconBtn.UnSelectedImagePath = "ZigeeLogic/next.png"; |
| | | closeView.selectedIconBtn.Visible = true; |
| | | completeView.Show(2).AddChidren(openView.Show()); |
| | | completeView.Show(2).AddChidren(closeView.Show()); |
| | | } |
| | | break; |
| | | case 21: |
| | |
| | | completeView.Show(1).AddChidren(openView.Show()); |
| | | } |
| | | break; |
| | | case 541: |
| | | { |
| | | int _height = 3; |
| | | if (edit) |
| | | { |
| | | _height = 2; |
| | | } |
| | | var view = completeView.Show(_height); |
| | | openView.titleBtn.TextID = MyInternationalizationString.someone; |
| | | closeView.titleBtn.TextID = MyInternationalizationString.unattendedtime1; |
| | | closeView.selectedIconBtn.UnSelectedImagePath = "ZigeeLogic/next.png"; |
| | | closeView.selectedIconBtn.Visible = true; |
| | | view.AddChidren(openView.Show()); |
| | | view.AddChidren(closeView.Show()); |
| | | |
| | | takebackView.lineBtn.BackgroundColor = ZigbeeColor.Current.LogicBackgroundColor; |
| | | takebackView.selectedIconBtn.Visible = true; |
| | | takebackView.titleBtn.TextID = MyInternationalizationString.ambientLight; |
| | | takebackView.selectedIconBtn.UnSelectedImagePath = "ZigeeLogic/next.png"; |
| | | if (edit) |
| | | { |
| | | |
| | | if (devices["Cluster_ID"] == "1024") |
| | | { |
| | | flMain.RemoveFromParent(); |
| | | var illumination = new Illumination(); |
| | | UserView.HomePage.Instance.AddChidren(illumination); |
| | | UserView.HomePage.Instance.PageIndex += 1; |
| | | illumination.Show(common, takebackView.titleBtn.Text, int.Parse(devices["AttriButeData1"]), true); |
| | | } |
| | | else |
| | | { |
| | | closeView.lineBtn.BackgroundColor = ZigbeeColor.Current.LogicBackgroundColor; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | view.AddChidren(takebackView.Show()); |
| | | |
| | | } |
| | | |
| | | |
| | | takebackView.clickviewBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | SelectedDeviceStatus = ""; |
| | | openView.titleBtn.TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor; |
| | | openView.selectedIconBtn.Visible = false; |
| | | var illumination = new Illumination(); |
| | | UserView.HomePage.Instance.AddChidren(illumination); |
| | | UserView.HomePage.Instance.PageIndex += 1; |
| | | illumination.Show(common,takebackView.titleBtn.Text, 0, false); |
| | | |
| | | }; |
| | | } |
| | | break; |
| | | default: |
| | | { |
| | | openView.titleBtn.TextID = MyInternationalizationString.callthepolice; |
| | |
| | | |
| | | completeView.Show(l).AddChidren(openView.Show()); |
| | | openView.titleBtn.Text = LocalDevice.Current.GetDeviceEpointName(common); |
| | | //openView.titleBtn.Text =Language.StringByID(MyInternationalizationString.OnOffSwitch) + common.DeviceEpoint.ToString(); |
| | | openView.lineBtn.BackgroundColor = ZigbeeColor.Current.LogicBackgroundColor; |
| | | openView.clickviewBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | |
| | | { |
| | | case 13: |
| | | { |
| | | if (conditions["Cluster_ID"] == "1024")
|
| | | if (conditions.ContainsKey("IgnoreTime")) |
| | | { |
| | | state = Language.StringByID(MyInternationalizationString.ambientLight) + "<" + conditions["AttriButeData1"] + "lux" + Language.StringByID(MyInternationalizationString.hour1); |
| | | } |
| | | else |
| | | { |
| | | if (conditions.ContainsKey("IgnoreTime")) |
| | | int minute = int.Parse(conditions["IgnoreTime"]) / 60; |
| | | int second = int.Parse(conditions["IgnoreTime"]) % 60; |
| | | if (minute != 0 && second != 0) |
| | | { |
| | | int minute = int.Parse(conditions["IgnoreTime"]) / 60; |
| | | int second = int.Parse(conditions["IgnoreTime"]) % 60; |
| | | if (minute != 0 && second != 0) |
| | | { |
| | | state = minute.ToString() + Language.StringByID(MyInternationalizationString.minute) + second.ToString() + Language.StringByID(MyInternationalizationString.second) + Language.StringByID(MyInternationalizationString.unattendedtime1); |
| | | state = minute.ToString() + Language.StringByID(MyInternationalizationString.minute) + second.ToString() + Language.StringByID(MyInternationalizationString.second) + Language.StringByID(MyInternationalizationString.unattendedtime1); |
| | | |
| | | } |
| | | else |
| | | { |
| | | if (minute == 0 && second != 0) |
| | | { |
| | | state = second.ToString() + Language.StringByID(MyInternationalizationString.second) + Language.StringByID(MyInternationalizationString.unattendedtime1); |
| | | |
| | | } |
| | | if (minute != 0 && second == 0) |
| | | { |
| | | state = minute.ToString() + Language.StringByID(MyInternationalizationString.Minute) + Language.StringByID(MyInternationalizationString.unattendedtime1); |
| | | |
| | | } |
| | | |
| | | } |
| | | } |
| | | else |
| | | { |
| | | state = Language.StringByID(MyInternationalizationString.someone); |
| | | if (minute == 0 && second != 0) |
| | | { |
| | | state = second.ToString() + Language.StringByID(MyInternationalizationString.second) + Language.StringByID(MyInternationalizationString.unattendedtime1); |
| | | |
| | | } |
| | | if (minute != 0 && second == 0) |
| | | { |
| | | state = minute.ToString() + Language.StringByID(MyInternationalizationString.Minute) + Language.StringByID(MyInternationalizationString.unattendedtime1); |
| | | |
| | | } |
| | | |
| | | } |
| | | } |
| | | else |
| | | { |
| | | state = Language.StringByID(MyInternationalizationString.someone); |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | } |
| | | break; |
| | | |
| | | case 541: |
| | | { |
| | | if (conditions["Cluster_ID"] == "1024") { |
| | | state = Language.StringByID(MyInternationalizationString.ambientLight)+"<"+conditions["AttriButeData1"]+"lux"+ Language.StringByID(MyInternationalizationString.hour1); |
| | | } |
| | | else |
| | | { |
| | | if (conditions.ContainsKey("IgnoreTime")) |
| | | { |
| | | int minute = int.Parse(conditions["IgnoreTime"]) / 60; |
| | | int second = int.Parse(conditions["IgnoreTime"]) % 60; |
| | | if (minute != 0 && second != 0) |
| | | { |
| | | state = minute.ToString() + Language.StringByID(MyInternationalizationString.minute) + second.ToString() + Language.StringByID(MyInternationalizationString.second) + Language.StringByID(MyInternationalizationString.unattendedtime1); |
| | | |
| | | } |
| | | else |
| | | { |
| | | if (minute == 0 && second != 0) |
| | | { |
| | | state = second.ToString() + Language.StringByID(MyInternationalizationString.second) + Language.StringByID(MyInternationalizationString.unattendedtime1); |
| | | |
| | | } |
| | | if (minute != 0 && second == 0) |
| | | { |
| | | state = minute.ToString() + Language.StringByID(MyInternationalizationString.Minute) + Language.StringByID(MyInternationalizationString.unattendedtime1); |
| | | |
| | | } |
| | | |
| | | } |
| | | } |
| | | else |
| | | { |
| | | state = Language.StringByID(MyInternationalizationString.someone); |
| | | } |
| | | } |
| | | } |
| | | break; |
| | | default: |
| | | { |
| | | if (intvalue == "1") |
| | |
| | | else if (common.Type == DeviceType.IASZone) |
| | | { |
| | | var iASZonedevice = common as IASZone; |
| | | if (iASZonedevice.ModelIdentifier == "MSPIRB-ZB.10") |
| | | if (iASZonedevice.IasDeviceType == 541) |
| | | {//ç形移å¨ä¼ æå¨ |
| | | if (Common.Logic.CurrentLogic.Conditions[i]["Cluster_ID"] == objecttype["Cluster_ID"]) |
| | | { |
| | |
| | | { |
| | | ///åºååºè¾å
¥æ¡ä»¶åè¾åºç®æ è®¾å¤ |
| | | var listdevicetype = GetDevice(type); |
| | | var listdevice = GetDeviceUIList(listAllRoom[i], listdevicetype, type); |
| | | var listdevice = GetDeviceUIList(listAllRoom[i], listdevicetype); |
| | | if (listdevice.Count == 0) |
| | | { |
| | | ///è¿æ»¤ææ²¡æè®¾å¤çæ¿é´ |
| | |
| | | /// </summary> |
| | | /// <param name="room">å½åæ¿é´</param> |
| | | /// <param name="deviceTypelist">设å¤ç±»å</param> |
| | | /// /// <param name="type">é»è¾ç±»å</param> |
| | | /// <returns></returns> |
| | | public static List<CommonDevice> GetDeviceUIList(Common.Room room, List<DeviceType> deviceTypelist,string type) |
| | | public static List<CommonDevice> GetDeviceUIList(Common.Room room, List<DeviceType> deviceTypelist) |
| | | { |
| | | var deviceUIlist = new List<CommonDevice>(); |
| | | foreach (var deviceKey in room.ListDevice) |
| | |
| | | //ææ¶ä¸æ¯æS-oneé¨é;
|
| | | //è¿æ»¤æä¸æ¯æS-oneé¨é设å¤;
|
| | | continue;
|
| | | } |
| | | } |
| | | if (type == "condition_mould") |
| | | { |
| | | if (device.Type == DeviceType.IASZone) |
| | | { |
| | | if (device.IasDeviceType != 13) |
| | | {//èªå¨å模æ¿åªæ¯æçº¢å¤ä¼ æå¨ |
| | | continue; |
| | | } |
| | | if (device.ModelIdentifier == "MSPIRB-ZB.10") |
| | | { |
| | | //èªå¨å模æ¿ä¸æ¯æå
ç
§åº¦ |
| | | continue; |
| | | } |
| | | |
| | | } |
| | | } |
| | | deviceUIlist.Add(device); |
| | |
| | | { |
| | | break; |
| | | } |
| | | |
| | | if (device.ModelIdentifier == "MSPIRB-ZB.10") |
| | | { |
| | | patm = $"ZigeeLogic/sensor541.png"; |
| | | selectedpatm = $"ZigeeLogic/selectedsensor541.png"; |
| | | } |
| | | else |
| | | { |
| | | patm = $"ZigeeLogic/sensor{iASZonedevice.IasDeviceType}.png"; |
| | | selectedpatm = $"ZigeeLogic/selectedsensor{iASZonedevice.IasDeviceType}.png"; |
| | | } |
| | | patm = $"ZigeeLogic/sensor{iASZonedevice.IasDeviceType}.png"; |
| | | selectedpatm = $"ZigeeLogic/selectedsensor{iASZonedevice.IasDeviceType}.png"; |
| | | } |
| | | break; |
| | | case DeviceType.TemperatureSensor: |
| | |
| | | { |
| | | Tag = "Logic"; |
| | | } |
| | | /// <summary> |
| | | /// è®°å½ç¹å»æ¿é´ |
| | | /// </summary> |
| | | Button roombjButton = new Button(); |
| | | /// <summary> |
| | | /// è®°å½ç¹å»æ¿é´åç§° |
| | | /// </summary> |
| | | Button roomTextButton = new Button(); |
| | | /// <summary> |
| | | /// è®°å½ç¹å»è®¾å¤ |
| | | /// </summary> |
| | | Button deviceTypeBjButton = new Button(); |
| | | /// <summary> |
| | | /// è®°å½ç¹å»è®¾å¤ç±»å |
| | | /// </summary> |
| | | Button deviceTypeTextButton = new Button(); |
| | | Button devicetypeButton = new Button(); |
| | | FrameLayout clickframeLayout = new FrameLayout(); |
| | | Button clickbutton = new Button(); |
| | | Button clicktextcolcrbutton = new Button(); |
| | |
| | | /// </summary> |
| | | public HorizontalScrolViewLayout roomhorizontalScrol = new HorizontalScrolViewLayout |
| | | { |
| | | Width = Application.GetRealWidth(1080 - 29), |
| | | Height = Application.GetRealHeight(204), |
| | | X = Application.GetRealWidth(29), |
| | | Width = Application.GetRealWidth(1080 - 58), |
| | | Height = Application.GetRealHeight(200), |
| | | X = Application.GetRealWidth(58), |
| | | Y = Application.GetRealHeight(184), |
| | | }; |
| | | /// <summary> |
| | | /// åè§17 |
| | | /// </summary> |
| | | public HorizontalScrolViewLayout devicetypehorizontalScrol1 = new HorizontalScrolViewLayout |
| | | { |
| | | Width = Application.GetRealWidth(1080 - 52), |
| | | Height = Application.GetRealHeight(50), |
| | | Y = Application.GetRealHeight(184 + 204), |
| | | BackgroundColor = ZigbeeColor.Current.LogicBackgroundColor, |
| | | X = Application.GetRealWidth(52), |
| | | |
| | | }; |
| | | /// <summary> |
| | | /// 设å¤ç±»åæ»å¨çæ§ä»¶ |
| | | /// </summary> |
| | | public HorizontalScrolViewLayout devicetypehorizontalScrol = new HorizontalScrolViewLayout |
| | | { |
| | | Width = Application.GetRealWidth(1080 - 52), |
| | | Width = Application.GetRealWidth(1080 - 58), |
| | | Height = Application.GetRealHeight(280), |
| | | Y = Application.GetRealHeight(184 + 204), |
| | | Y = Application.GetRealHeight(184 + 200), |
| | | BackgroundColor = ZigbeeColor.Current.LogicBackgroundColor, |
| | | X = Application.GetRealWidth(52), |
| | | X = Application.GetRealWidth(58), |
| | | // Radius = (uint)Application.GetRealHeight(50), |
| | | |
| | | }; |
| | |
| | | public VerticalScrolViewLayout middle = new VerticalScrolViewLayout |
| | | { |
| | | X = Application.GetRealWidth(58), |
| | | Y = Application.GetRealHeight(184 + 204 + 280 + 40), |
| | | Height = Application.GetRealHeight(Method.H - 40 - 184 - 280 - 204), |
| | | Y = Application.GetRealHeight(184 + 200 + 280 + 40), |
| | | Height = Application.GetRealHeight(Method.H - 40 - 184 - 280 - 200), |
| | | BackgroundColor = ZigbeeColor.Current.LogicBackgroundColor, |
| | | }; |
| | | |
| | |
| | | if (roomlists.Count == 0) |
| | | { |
| | | //è¿åæ²¡ææ¿é´éèä¸é¢æ´å; |
| | | devicetypehorizontalScrol1.Height = 0; |
| | | devicetypehorizontalScrol.Height = 0; |
| | | middle.Height = 0; |
| | | } |
| | | /// 设å¤ç±»åå表 |
| | | var deviceTypeList = Method.GetDevice(IfType); |
| | | this.AddChidren(roomhorizontalScrol); |
| | | this.AddChidren(devicetypehorizontalScrol1); |
| | | this.AddChidren(devicetypehorizontalScrol); |
| | | this.AddChidren(middle); |
| | | devicetypehorizontalScrol1.SetCornerWithSameRadius(Application.GetRealHeight(17), HDLUtils.RectCornerTopLeft); |
| | | devicetypehorizontalScrol.SetCornerWithSameRadius(Application.GetRealHeight(50), HDLUtils.RectCornerBottomLeft|HDLUtils.RectCornerTopLeft); |
| | | devicetypehorizontalScrol.SetCornerWithSameRadius(Application.GetRealHeight(50), HDLUtils.RectCornerBottomLeft); |
| | | middle.SetCornerWithSameRadius(Application.GetRealHeight(50), HDLUtils.RectCornerTopLeft); |
| | | ///楼å±ç¹å»äºä»¶ |
| | | view.foolrclickBtn.MouseUpEventHandler += (sender, e) => |
| | |
| | | var list = Method.GetRoomList(IfType, btnfoolrname.Tag.ToString()); |
| | | if (list.Count == 0) |
| | | { |
| | | devicetypehorizontalScrol1.Height = 0; |
| | | devicetypehorizontalScrol.Height = 0; |
| | | middle.Height = 0; |
| | | } |
| | | else |
| | | { |
| | | devicetypehorizontalScrol1.Height = 50; |
| | | devicetypehorizontalScrol.Height = Application.GetRealHeight(280); |
| | | middle.Height = Application.GetRealHeight(1920 - 40 - 184 - 280 - 200); |
| | | } |
| | |
| | | { |
| | | var room = roomlist[i]; |
| | | |
| | | LogicView.RoomClickView roomClickView = new LogicView.RoomClickView(); |
| | | roomClickView.Show(roomhorizontalScrol); |
| | | roomClickView.roomnameBtn.Text = room.Name; |
| | | var fra = new FrameLayout |
| | | { |
| | | Height = Application.GetRealHeight(200), |
| | | Width = Application.GetRealWidth(255), |
| | | }; |
| | | roomhorizontalScrol.AddChidren(fra); |
| | | |
| | | var roombjBtn = new Button |
| | | { |
| | | Height = Application.GetRealHeight(158), |
| | | Width = Application.GetRealWidth(255), |
| | | UnSelectedImagePath = "ZigeeLogic/iconBackgroundColor.png", |
| | | SelectedImagePath = "ZigeeLogic/iconSelectedBackgroundColor.png", |
| | | Y = Application.GetRealHeight(21), |
| | | }; |
| | | fra.AddChidren(roombjBtn); |
| | | |
| | | var roomnameBtn = new Button |
| | | { |
| | | |
| | | Height = Application.GetRealHeight(152 - 26 - 20), |
| | | Width = Application.GetRealWidth(255 - 20 - 50), |
| | | Text = room.Name, |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | SelectedTextColor = ZigbeeColor.Current.LogicBlankBackgroundColor, |
| | | Y = Application.GetRealHeight(21 + 13 + 10), |
| | | X = Application.GetRealWidth(10 + 25), |
| | | |
| | | }; |
| | | fra.AddChidren(roomnameBtn); |
| | | |
| | | if (i == 0)//é»è®¤éä¸ç¬¬ä¸ä¸ªæ¿é´ |
| | | { |
| | | |
| | | roombjButton.IsSelected = false; |
| | | roomClickView.roombjBtn.Height = Application.GetRealHeight(135); |
| | | roomClickView.roombjBtn.Width = Application.GetRealWidth(245); |
| | | roomClickView.roombjBtn.Y = Application.GetRealHeight(40); |
| | | roomClickView.roombjBtn.X = Application.GetRealWidth(0); |
| | | roombjButton = roomClickView.roombjBtn; |
| | | roomClickView.roombjBtn.IsSelected = true; |
| | | roomTextButton.IsSelected = false; |
| | | roomClickView.roomnameBtn.Width = Application.GetRealWidth(245 - 60 * 2); |
| | | roomClickView.roomnameBtn.X = Application.GetRealWidth(60); |
| | | roomTextButton = roomClickView.roomnameBtn; |
| | | roomClickView.roomnameBtn.IsSelected = true; |
| | | roombjButton = roombjBtn; |
| | | roombjBtn.IsSelected = true; |
| | | |
| | | var list = Method.GetDeviceUIList(room, deviceTypeList, IfType); |
| | | roomTextButton.IsSelected = false; |
| | | roomTextButton = roomnameBtn; |
| | | roomnameBtn.IsSelected = true; |
| | | |
| | | roombjBtn.IsSelected = true; |
| | | roomnameBtn.IsSelected = true; |
| | | |
| | | var list = Method.GetDeviceUIList(room, deviceTypeList); |
| | | AllDeviceTypeView(list); |
| | | } |
| | | |
| | | EventHandler<MouseEventArgs> roomclick = (sender, e) => |
| | | { |
| | | roombjButton.Height = Application.GetRealHeight(72); |
| | | roombjButton.Width = Application.GetRealWidth(170); |
| | | roombjButton.Y = Application.GetRealHeight(60); |
| | | roombjButton.X = Application.GetRealWidth(26); |
| | | roombjButton.IsSelected = false; |
| | | roombjButton = roombjBtn; |
| | | roombjBtn.IsSelected = true; |
| | | |
| | | roombjButton.Height = Application.GetRealHeight(72); |
| | | roombjButton.Width = Application.GetRealWidth(170); |
| | | roombjButton.Y = Application.GetRealHeight(60); |
| | | roombjButton.X = Application.GetRealWidth(26); |
| | | roombjButton.IsSelected = false; |
| | | |
| | | roomClickView.roombjBtn.Height = Application.GetRealHeight(135); |
| | | roomClickView.roombjBtn.Width = Application.GetRealWidth(245); |
| | | roomClickView.roombjBtn.Y = Application.GetRealHeight(40); |
| | | roomClickView.roombjBtn.X = Application.GetRealWidth(0); |
| | | roombjButton = roomClickView.roombjBtn; |
| | | roomClickView.roombjBtn.IsSelected = true; |
| | | |
| | | roomTextButton.Width = Application.GetRealWidth(125); |
| | | roomTextButton.X = Application.GetRealWidth(26 + 22); |
| | | roomTextButton.IsSelected = false; |
| | | roomClickView.roomnameBtn.Width = Application.GetRealWidth(245 - 60 * 2); |
| | | roomClickView.roomnameBtn.X = Application.GetRealWidth(60); |
| | | roomTextButton = roomClickView.roomnameBtn; |
| | | roomClickView.roomnameBtn.IsSelected = true; |
| | | roomTextButton = roomnameBtn; |
| | | roomnameBtn.IsSelected = true; |
| | | |
| | | var list = Method.GetDeviceUIList(room, deviceTypeList, IfType); |
| | | |
| | | var list = Method.GetDeviceUIList(room, deviceTypeList); |
| | | AllDeviceTypeView(list); |
| | | }; |
| | | roomClickView.roomnameBtn.MouseUpEventHandler += roomclick; |
| | | roomClickView.roombjBtn.MouseUpEventHandler += roomclick; |
| | | roomnameBtn.MouseUpEventHandler += roomclick; |
| | | roombjBtn.MouseUpEventHandler += roomclick; |
| | | |
| | | } |
| | | } |
| | |
| | | for (int i = 0; i < devicetypelist.Count; i++) |
| | | { |
| | | var devicetype = devicetypelist[i]; |
| | | |
| | | var spaceRowLayout = new FrameLayout(); |
| | | devicetypehorizontalScrol.AddChidren(spaceRowLayout); |
| | | if (i == 0) |
| | | { |
| | | var spaceRowLayout = new FrameLayout(); |
| | | devicetypehorizontalScrol.AddChidren(spaceRowLayout); |
| | | spaceRowLayout.Width = Application.GetRealWidth(37); |
| | | } |
| | | |
| | | else |
| | | { |
| | | spaceRowLayout.Width = Application.GetRealWidth(80); |
| | | } |
| | | |
| | | var deviceRowLayout = new FrameLayout |
| | | { |
| | | Width = Application.GetRealWidth(150+75), |
| | | Height = Application.GetRealHeight(173+52), |
| | | Y = Application.GetRealHeight(35), |
| | | Width = Application.GetRealWidth(156 + 20), |
| | | Height = Application.GetRealHeight(280 - 30), |
| | | Y = Application.GetRealHeight(30), |
| | | }; |
| | | devicetypehorizontalScrol.AddChidren(deviceRowLayout); |
| | | |
| | | var backgroundColor = new Button |
| | | { |
| | | Width = Application.GetMinRealAverage(150), |
| | | Height = Application.GetMinRealAverage(173), |
| | | Width = Application.GetMinRealAverage(156), |
| | | Height = Application.GetMinRealAverage(180), |
| | | X = Application.GetRealWidth(10), |
| | | UnSelectedImagePath = "ZigeeLogic/deviceunselectedbackgroundcolor.png", |
| | | SelectedImagePath = "ZigeeLogic/deviceselectedbackgroundcolor.png", |
| | | }; |
| | |
| | | { |
| | | Width = Application.GetMinRealAverage(84), |
| | | Height = Application.GetMinRealAverage(84), |
| | | X = Application.GetRealWidth(35), |
| | | Y = Application.GetRealHeight(29), |
| | | X = Application.GetRealWidth(46), |
| | | Y = Application.GetRealHeight(30), |
| | | UnSelectedImagePath =Method.GetDeviceTypeIcon(devicetype), |
| | | }; |
| | | deviceRowLayout.AddChidren(devicetypeicon); |
| | | |
| | | var devicetypename = new Button |
| | | { |
| | | Width = Application.GetRealWidth(150), |
| | | Height = Application.GetRealHeight(52), |
| | | Width = Application.GetRealWidth(176), |
| | | Height = Application.GetRealHeight(40), |
| | | Text = devicetype, |
| | | TextAlignment = TextAlignment.Center, |
| | | Y = backgroundColor.Bottom, |
| | | TextColor = ZigbeeColor.Current.LogicAddColor, |
| | | TextSize = 10, |
| | | TextColor =ZigbeeColor.Current.LogicBtnSelectedColor, |
| | | SelectedTextColor =ZigbeeColor.Current.LogicAddColor, |
| | | }; |
| | | deviceRowLayout.AddChidren(devicetypename); |
| | | |
| | |
| | | |
| | | EventHandler<MouseEventArgs> devicetypeclick = (sender13, e13) => |
| | | { |
| | | deviceTypeBjButton.IsSelected = false; |
| | | deviceTypeBjButton = backgroundColor; |
| | | devicetypeButton.IsSelected = false; |
| | | devicetypeButton = backgroundColor; |
| | | backgroundColor.IsSelected = true; |
| | | |
| | | deviceTypeTextButton.IsSelected = false; |
| | | deviceTypeTextButton = devicetypename; |
| | | devicetypename.IsSelected = true; |
| | | |
| | | |
| | | var list = Method.GetDeviceType(devicetypename.Text); |
| | | ConditionDeviceView(list, devicelist); |
| | | }; |
| | | deviceRowLayout.MouseUpEventHandler += devicetypeclick; |
| | | devicetypename.MouseUpEventHandler += devicetypeclick; |
| | | devicetypeicon.MouseUpEventHandler += devicetypeclick; |
| | | backgroundColor.MouseUpEventHandler += devicetypeclick; |
| | |
| | | { |
| | | continue; |
| | | } |
| | | if (IfType == "condition_mould") |
| | | { |
| | | if (common.IasDeviceType != 13) |
| | | {//èªå¨å模æ¿åªæ¯æçº¢å¤ä¼ æå¨ |
| | | continue; |
| | | } |
| | | } |
| | | var deviceFramelayout = new FrameLayout |
| | | { |
| | | Height = Application.GetRealHeight(160), |
| | |
| | | /// 夿åå
¸æ¯å¦åå¨çæ¹æ³ |
| | | /// </summary> |
| | | /// <param name="deviceConditionsInfo"></param> |
| | | /// <param name="Key">é®</param> |
| | | /// <param name="Value">é®å¼</param> |
| | | /// <param name="Key"></param> |
| | | /// <param name="Value"></param> |
| | | public static void dictionary(Dictionary<string, string> deviceConditionsInfo, string Key, string Value) |
| | | { |
| | | if (deviceConditionsInfo.ContainsKey(Key)) |
| | |
| | | deviceConditionsInfo.Add(Key, Value); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| | |
| | | { |
| | | public class SkipView:FrameLayout |
| | | { |
| | | |
| | | /// <summary> |
| | | /// å
¶å®çé¢è·³è¿æ¥çå
¥å£ |
| | | /// </summary> |
| | |
| | | //functionSceneAutoBodyView.BackgroundColor = ZigbeeColor.Current.LogicMiddleBackgroundColor; |
| | | #region ---æ¨è模æ¿çç»ä»¶ |
| | | //æ¨è模æ¿èæ¯æ§ä»¶ |
| | | |
| | | |
| | | var bjFrameLayout1 = new FrameLayout |
| | | { |
| | | Width = Application.GetRealWidth(1080 - 58), |
| | | Height = Application.GetRealHeight(50), |
| | | BackgroundColor = ZigbeeColor.Current.LogicBackgroundColor, |
| | | X = Application.GetRealWidth(58), |
| | | //Radius = (uint)Application.GetRealHeight(50), |
| | | Y = Application.GetRealHeight(30), |
| | | |
| | | }; |
| | | functionSceneAutoBodyView.AddChidren(bjFrameLayout1); |
| | | var bjFrameLayout = new FrameLayout |
| | | { |
| | | Width = Application.GetRealWidth(1080 - 58), |
| | |
| | | X = Application.GetRealWidth(58), |
| | | //Radius = (uint)Application.GetRealHeight(50), |
| | | Y = Application.GetRealHeight(30), |
| | | |
| | | }; |
| | | functionSceneAutoBodyView.AddChidren(bjFrameLayout); |
| | | bjFrameLayout1.SetCornerWithSameRadius(Application.GetRealHeight(17), HDLUtils.RectCornerTopLeft); |
| | | bjFrameLayout.SetCornerWithSameRadius(Application.GetRealHeight(58), HDLUtils.RectCornerTopLeft|HDLUtils.RectCornerBottomLeft); |
| | | bjFrameLayout.SetCornerWithSameRadius(Application.GetRealHeight(58), HDLUtils.RectCornerBottomLeft); |
| | | //徿 æ§ä»¶ |
| | | var sigBtn = new Button |
| | | { |
| | |
| | | {
|
| | | if (!Config.Instance.Home.IsVirtually) |
| | | {//èæçä¸è·åç½å
³é»è¾å表 |
| | | //éæ°å·æ°logicå表 |
| | | //éæ°å·æ°logicå表 |
| | | If_once = true; |
| | | Common.Logic.LogicList.Clear(); |
| | | Read(logicScrolView, no); |
| | |
| | | Common.Logic.LogicList.Add(logic);
|
| | | }
|
| | | }
|
| | | |
| | | } |
| | | } |
| | | } |
| | |
| | | CommonPage.Loading.Hide(); |
| | | } |
| | | static RowLayout selectedRow = new RowLayout() { Tag = "0" };//è®°å½å·¦æ»ç¶æ |
| | | |
| | | /// <summary> |
| | | /// å è½½èªå¨åå表çé¢ |
| | | /// </summary> |
| | |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| | |
| | | /// <summary> |
| | | /// å¤æè´¦å·æ¯å¦æ¯æå¯è§å¯¹è®² |
| | | /// </summary> |
| | | /// <param name="topFrameLayout">å¯è§å¯¹è®²å¾æ çç¶æ§ä»¶</param> |
| | | /// <param name="topFrameLayout"></param> |
| | | public async static void AccountSupportVideo(FrameLayout topFrameLayout) |
| | | { |
| | | var jobject = new JObject(); |
| | |
| | | } |
| | | catch { } |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | /// <summary> |
| | | /// è·åå¯è§å¯¹è®²å表 |
| | |
| | | HomePage.Instance.ShowLoginLoadView();
|
| | | });
|
| | | var resultRegID = Shared.Common.CommonPage.Instance.PushRegID();
|
| | | var homes = HdlResidenceLogic.Current.GetHomeListsFromDb(false);
|
| | | var homes = HdlResidenceLogic.Current.GetHomeListsFromDb();
|
| | | //å·æ°ä¸ªäººä¸å¿çå
åå线ç¨
|
| | | UserCenterLogic.InitUserCenterMenmoryAndThread();
|
| | | //å¯å¨ZigBee
|
| | |
| | | Config.Instance.Save();
|
| | |
|
| | | var resultRegID = CommonPage.Instance.PushRegID();
|
| | | var homes = HdlResidenceLogic.Current.GetHomeListsFromDb(false);
|
| | | var homes = HdlResidenceLogic.Current.GetHomeListsFromDb();
|
| | | //å·æ°ä¸ªäººä¸å¿çå
åå线ç¨
|
| | | UserCenterLogic.InitUserCenterMenmoryAndThread();
|
| | | //å¯å¨ZigBee
|
| | |
| | | //ç»å®ç¬¬ä¸æ¹
|
| | | BindAuthUser(Config.Instance.Guid, OpenID);
|
| | | }
|
| | | var homes = HdlResidenceLogic.Current.GetHomeListsFromDb(false);
|
| | | var homes = HdlResidenceLogic.Current.GetHomeListsFromDb();
|
| | |
|
| | | //å·æ°ä¸ªäººä¸å¿çå
åå线ç¨
|
| | | UserCenterLogic.InitUserCenterMenmoryAndThread();
|
| | |
| | | this.listControl[1].IsSelected = false;
|
| | | this.listControl[2].IsSelected = false;
|
| | | this.listControl[3].IsSelected = false;
|
| | | arcScaleSeekBar.SetProgressBarColors(ZigbeeColor.Current.GXCWaveSeekBarUnSelectedColor, ZigbeeColor.Current.GXCWaveSeekBarUnSelectedColor);
|
| | | }
|
| | | arcScaleSeekBar.SetProgressBarColors(ZigbeeColor.Current.GXCWaveSeekBarUnSelectedColor, ZigbeeColor.Current.GXCWaveSeekBarUnSelectedColor);
|
| | | //è®¾ç½®ç¶ææå å
³é
|
| | | this.SetStatuText(Language.StringByID(R.MyInternationalizationString.Close));
|
| | | return;
|
| | |
| | | this.listControl[1].IsSelected = true;
|
| | | this.listControl[2].IsSelected = true;
|
| | | this.listControl[3].IsSelected = true;
|
| | | arcScaleSeekBar.SetProgressBarColors(ZigbeeColor.Current.GXCArcScaleSeekBarStartColor, ZigbeeColor.Current.GXCArcScaleSeekBarEndColor);
|
| | | }
|
| | | arcScaleSeekBar.SetProgressBarColors(ZigbeeColor.Current.GXCArcScaleSeekBarStartColor, ZigbeeColor.Current.GXCArcScaleSeekBarEndColor);
|
| | | }
|
| | | this.listControl[1].SelectedImagePath = DeviceAcDetailCardMethord.GetModeSelectedImagePathByModeId(deviceAc.currentSystemMode);
|
| | | this.listControl[1].UnSelectedImagePath = DeviceAcDetailCardMethord.GetModeUnSelectedImagePathByModeId(deviceAc.currentSystemMode);
|
| | |
| | | seekBarColor.SeekBarPadding = Application.GetRealWidth(60);
|
| | | seekBarColor.IsProgressTextShow = true;
|
| | | seekBarColor.ProgressBarColor = UserCenterColor.Current.Transparent;
|
| | | seekBarColor.ProgressBarUnEnableColor = UserCenterColor.Current.Transparent;
|
| | | seekBarColor.SeekBarBackgroundColor = UserCenterColor.Current.Transparent;
|
| | | seekBarColor.ProgressTextSize = 14;
|
| | | seekBarColor.ProgressTextColor = UserCenterColor.Current.TextGrayColor2;
|
| | |
| | | this.btnBuzzerSwitch = new IconBigViewControl(81, 81);
|
| | | btnBuzzerSwitch.UnSelectedImagePath = "Item/Switch.png";
|
| | | btnBuzzerSwitch.SelectedImagePath = "Item/SwitchSelected.png";
|
| | | btnBuzzerSwitch.IsSelected = ((ColorTemperatureLight)this.device).IsBuzzerRing;
|
| | | frameWhiteBack.AddChidren(btnBuzzerSwitch);
|
| | | btnBuzzerSwitch.InitControl();
|
| | | btnBuzzerSwitch.UseClickStatu = false;
|
| | |
| | | };
|
| | | btnMiniSwitch.IsSelected = ((LightBase)this.device).OnOffStatus == 1;
|
| | | this.canSetProgressValue = btnMiniSwitch.IsSelected;
|
| | | if (btnMiniSwitch.IsSelected == false)
|
| | | {
|
| | | //卿²¡ææå¼å¤ç¯å¼å
³ä¹å,ä¸å
许æ»å¨
|
| | | seekBarLight.Enable = false;
|
| | | seekBarColor.Enable = false;
|
| | | }
|
| | |
|
| | | //亮度å¼å§æ»å¨çäºä»¶
|
| | | seekBarLight.OnStartTrackingTouchEvent += (sender, e) =>
|
| | |
| | | {
|
| | | //彿¯æå¼ç¶ææ¶,ç½å
³è¯´å®ä¼é»è®¤æäº®åº¦åæ100%
|
| | | //以é²ä¸ä¸,è¿é忬¡è¯»åä¸ä¸
|
| | | HdlThreadLogic.Current.RunThread(() =>
|
| | | {
|
| | | ((ColorTemperatureLight)device).ReadLevel();
|
| | | System.Threading.Thread.Sleep(300);
|
| | | ((ColorTemperatureLight)device).ReadColorTemperature();
|
| | | });
|
| | |
|
| | | ((ColorTemperatureLight)device).ReadLevel();
|
| | | }
|
| | | }
|
| | | });
|
| | |
| | | //妿ä½å®
æ¯èæä½å®
|
| | | if (Common.Config.Instance.Home.IsVirtually == true)
|
| | | {
|
| | | ((ColorTemperatureLight)this.device).IsBuzzerRing = isOpen;
|
| | | //å·æ°å¼å
³ç¶æ
|
| | | this.RefreshSwitchStatu(isOpen);
|
| | | //((LightBase)this.device).OnOffStatus = isOpen == true ? 1 : 0;
|
| | | ////å·æ°å¼å
³ç¶æ
|
| | | //this.RefreshSwitchStatu(isOpen);
|
| | | return;
|
| | | }
|
| | |
|
| | | //æ£æµæ¯å¦è·åç½å
³åé¦çç»æ,妿ç½å
³æ²¡æåå¤,åä¼å¼¹åºæ¶æ¯
|
| | | this.btnBuzzerSwitch.CanClick = false;
|
| | | this.StartCheckResponeResult(new List<ButtonBase>(), (result) =>
|
| | | this.StartCheckResponeResult(new List<ButtonBase> { this.btnBuzzerSwitch.btnIcon }, (result) =>
|
| | | {
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | //æ¥æ¶å°ç½å
³åå¤
|
| | | this.btnBuzzerSwitch.CanClick = true;
|
| | | if (result == true)
|
| | | {
|
| | | this.btnBuzzerSwitch.IsSelected = isOpen;
|
| | | //bool statu = ((LightBase)this.device).OnOffStatus == 1;
|
| | | ////å·æ°å¼å
³ç¶æ
|
| | | //this.RefreshSwitchStatu(statu);
|
| | | }
|
| | | });
|
| | | });
|
| | |
| | | /// <param name="isOpen">æå¼ç¶æ</param>
|
| | | private void RefreshSwitchStatu(bool isOpen)
|
| | | {
|
| | | //å·æ°è鸣å¨å¼å
³ç¶æ
|
| | | bool isBuzzerRing = ((ColorTemperatureLight)this.device).IsBuzzerRing;
|
| | | if (this.btnBuzzerSwitch.IsSelected != isBuzzerRing)
|
| | | if (this.isColorProgressing == true)
|
| | | {
|
| | | this.btnBuzzerSwitch.IsSelected = isBuzzerRing;
|
| | | //妿æ¯è²æ¸©æ»å¨çè¯,ä¸éè¦å·æ°çé¢
|
| | | return;
|
| | | }
|
| | |
|
| | | if (isOpen == true)
|
| | | {
|
| | | //亮度æ¯å¿
é¡»è¦å·æ°ç 亮度 XX
|
| | |
| | | //å½è¿åº¦å¼å¨æå¨åæ´ä¸æ¶,䏿¥æ¶æ¨é
|
| | | seekBarColor.Progress = (int)(((ColorTemperatureLight)this.device).ColorTemperature / 100);
|
| | | }
|
| | | if (this.btnMiniSwitch.IsSelected == false)
|
| | | {
|
| | | this.btnMiniSwitch.IsSelected = true;
|
| | | }
|
| | | //æ»å¨æ¡å¯ä»¥æ»å¨
|
| | | seekBarLight.Enable = true;
|
| | | seekBarColor.Enable = true;
|
| | | this.btnMiniSwitch.IsSelected = true;
|
| | | }
|
| | | else
|
| | | {
|
| | | //åæ´åæ ·:å
³é
|
| | | this.SetStatuText(Language.StringByID(R.MyInternationalizationString.Close));
|
| | | if (this.btnMiniSwitch.IsSelected == true)
|
| | | {
|
| | | this.btnMiniSwitch.IsSelected = false;
|
| | | }
|
| | | //æ»å¨æ¡ä¸å¯ä»¥æ»å¨
|
| | | seekBarLight.Enable = false;
|
| | | seekBarColor.Enable = false;
|
| | | this.btnMiniSwitch.IsSelected = false;
|
| | | }
|
| | |
|
| | | //åå¤çç»æè¯´,å¤äºæå¼ç¶ææè½åé
|
| | |
| | | //æå¼
|
| | | this.SetDeviceStatuText(Language.StringByID(R.MyInternationalizationString.uOpen1));
|
| | | i_device.SwitchControl(1);
|
| | | HdlThreadLogic.Current.RunThread(() =>
|
| | | {
|
| | | //è·åç¯å
亮度
|
| | | System.Threading.Thread.Sleep(300);
|
| | | HdlDeviceAttributeLogic.Current.SendLevelStatuComand(i_device);
|
| | | });
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | //æå¼
|
| | | this.SetDeviceStatuText(Language.StringByID(R.MyInternationalizationString.uOpen1));
|
| | | i_device.SwitchControl(1);
|
| | | HdlThreadLogic.Current.RunThread(() =>
|
| | | {
|
| | | //è·åç¯å
亮度
|
| | | System.Threading.Thread.Sleep(300);
|
| | | HdlDeviceAttributeLogic.Current.SendLevelStatuComand(i_device);
|
| | | });
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | this.AddNormalDeviceReportEvent();
|
| | | //æ·»å ä¼ æå¨ç¶æä¸æ¥äºä»¶
|
| | | this.AddSensorDeviceReportEvent();
|
| | | //å¼å¯ä¼ æå¨ç¶æè¿åç线ç¨
|
| | | this.StartRecoverSenorStatuThread();
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | |
| | | bodyFrameLayout.RemoveAll();
|
| | | bodyFrameLayout.Height = Application.GetRealHeight(750);
|
| | | this.listBodyContr.RecoverTableHeight();
|
| | | this.dicSceneCardControl = new Dictionary<int, Controls.SceneCardControl>();
|
| | | this.dicDeviceCardControl = new Dictionary<string, Controls.DeviceCardCommon>();
|
| | | this.dicSceneCardControl.Clear();
|
| | | this.dicDeviceCardControl.Clear();
|
| | |
|
| | | var listDevice = new List<CommonDevice>();
|
| | | foreach (var mainkeys in HdlRoomLogic.Current.NowMainPageRoom.ListDevice)
|
| | |
| | | bodyFrameLayout.RemoveAll();
|
| | | bodyFrameLayout.Height = Application.GetRealHeight(750);
|
| | | this.listBodyContr.RecoverTableHeight();
|
| | | this.dicSceneCardControl = new Dictionary<int, Controls.SceneCardControl>();
|
| | | this.dicDeviceCardControl = new Dictionary<string, Controls.DeviceCardCommon>();
|
| | | this.dicSceneCardControl.Clear();
|
| | | this.dicDeviceCardControl.Clear();
|
| | |
|
| | | var listScene = new List<SceneUI>();
|
| | | foreach (int sceneId in HdlRoomLogic.Current.NowMainPageRoom.ListSceneId)
|
| | |
| | | }
|
| | |
|
| | | }, ShowErrorMode.NO);
|
| | | });
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
|
| | | #region â ä¼ æå¨ç¶æè¿å_____________________
|
| | |
|
| | | /// <summary>
|
| | | /// å¼å¯ä¼ æå¨ç¶æè¿åç线ç¨
|
| | | /// </summary>
|
| | | private void StartRecoverSenorStatuThread()
|
| | | {
|
| | | HdlThreadLogic.Current.RunThread(() =>
|
| | | {
|
| | | while (this.Parent != null)
|
| | | {
|
| | | try
|
| | | {
|
| | | var dicControl = this.dicDeviceCardControl;
|
| | | foreach (var contr in dicControl.Values)
|
| | | {
|
| | | //妿æ¯ä¼ æå¨,åå·æ°ç¶æ
|
| | | if (contr.device.Type == DeviceType.IASZone && contr.Parent != null
|
| | | && ((IASZone)contr.device).iASInfo == null)
|
| | | {
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | //设å¤ç¶æå¿
须巿°
|
| | | string statuText = HdlDeviceOtherLogic.Current.GetDeviceStatu(contr.device);
|
| | | contr.SetDeviceStatuText(statuText);
|
| | |
|
| | | }, ShowErrorMode.NO);
|
| | | }
|
| | | }
|
| | | System.Threading.Thread.Sleep(8000);
|
| | | }
|
| | | catch { System.Threading.Thread.Sleep(3000); }
|
| | | }
|
| | | });
|
| | | }
|
| | |
|
| | |
| | | else |
| | | { |
| | | tipLayout.Visible = false; |
| | | }
|
| | |
|
| | | if (listView.ChildrenCount > 5) |
| | | { |
| | | TextView textView = new TextView(); |
| | | textView.Height = Application.GetRealHeight(127 * 3); |
| | | listView.AddChidren(textView); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | |
| | | //å¨åçMsg
|
| | | return Language.StringByID(dicMsg[requestName][statuCode]);
|
| | | }
|
| | | return null;
|
| | | return "Error:" + statuCode;
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | /// </summary>
|
| | | public int ErrorMsgDiv = 1;
|
| | | /// <summary>
|
| | | /// æ¥æ¶çDataæ°æ®
|
| | | /// æ¥æ¶çæ°æ®
|
| | | /// </summary>
|
| | | public string ReceiptData = null;
|
| | | /// <summary>
|
| | | /// æ¥æ¶çæ°æ®(å¤ä¸ªè¿å主é¢ä¸ç¨)
|
| | | /// </summary>
|
| | | public string[] listReceiptData = null;
|
| | | /// <summary>
|
| | | /// è¿ä¸ªæ¯ç½å
³åå¤çæ´ä¸ªjsonæ°æ®,个æ°ä¸listReceiptDataä¸è´
|
| | | /// </summary>
|
| | | public string[] JsonData = null;
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
| | | /// </summary>
|
| | | private NormalViewControl btnLineTemp = null;
|
| | | /// <summary>
|
| | | /// èå¨åºçº¿(å
æ è¿æ¥ä¹å,线çé¢è²ä¼å)
|
| | | /// èå¨åºçº¿(å¼è¾å
¥ä¹å,线çé¢è²ä¼å)
|
| | | /// </summary>
|
| | | public NormalViewControl btnLine
|
| | | {
|
| | | set
|
| | | {
|
| | | this.btnLineTemp = value;
|
| | | }
|
| | | }
|
| | | /// <summary>
|
| | | /// èå¨å¤æ¡
|
| | | /// </summary>
|
| | | private NormalFrameLayout frameBorder = null;
|
| | | /// <summary>
|
| | | /// èå¨å¤æ¡(å
æ è¿æ¥ä¹å,夿¡çé¢è²ä¼å)
|
| | | /// </summary>
|
| | | public NormalFrameLayout FrameBorder
|
| | | {
|
| | | set
|
| | | {
|
| | | this.frameBorder = value;
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | btnLineTemp.BackgroundColor = UserCenterColor.Current.ButtomLine;
|
| | | }
|
| | | if (frameBorder != null)
|
| | | {
|
| | | frameBorder.BorderColor = 0xffcccccc;
|
| | | }
|
| | | if (m_UseFocusColor == true)
|
| | | {
|
| | | //ç°è²åä½
|
| | |
| | | if (btnLineTemp != null)
|
| | | {
|
| | | btnLineTemp.BackgroundColor = UserCenterColor.Current.TextFrameSelectColor;
|
| | | }
|
| | | if (frameBorder != null)
|
| | | {
|
| | | frameBorder.BorderColor = UserCenterColor.Current.TextFrameSelectColor;
|
| | | }
|
| | | if (m_UseFocusColor == true)
|
| | | {
|
| | |
| | | {
|
| | | #region â åé声æ___________________________
|
| | |
|
| | | /// <summary>
|
| | | /// è¿åº¦æ¡å¯ç¨æ¶çèæ¯è²
|
| | | /// </summary>
|
| | | private uint ProgressBarEnableColor = 0;
|
| | | /// <summary>
|
| | | /// è¿åº¦æ¡ä¸å¯ç¨æ¶çèæ¯è²(é»è®¤ç°è²)
|
| | | /// </summary>
|
| | | public uint ProgressBarUnEnableColor = 0xffe8e8e8;
|
| | | /// <summary>
|
| | | /// å½åå¯ç¨ç¶æ
|
| | | /// </summary>
|
| | | private bool nowEnable = true;
|
| | | private uint nowProgressBarColor = 0;
|
| | | /// <summary>
|
| | | /// æ§ä»¶è½å¦ä½¿ç¨
|
| | | /// </summary>
|
| | |
| | | {
|
| | | set
|
| | | {
|
| | | //ç¶ææ²¡ææ¹å
|
| | | if (nowEnable == value) { return; }
|
| | | nowEnable = value;
|
| | |
|
| | | this.IsClickable = value;
|
| | | if (value == true)
|
| | | {
|
| | | //忥çé¢è²
|
| | | base.ProgressBarColor = ProgressBarEnableColor;
|
| | | base.ProgressBarColor = nowProgressBarColor;
|
| | | }
|
| | | else
|
| | | {
|
| | | //ç°è²
|
| | | base.ProgressBarColor = ProgressBarUnEnableColor;
|
| | | base.ProgressBarColor = 0xffe8e8e8;
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | {
|
| | | set
|
| | | {
|
| | | ProgressBarEnableColor = value;
|
| | | nowProgressBarColor = value;
|
| | | base.ProgressBarColor = value;
|
| | | }
|
| | | }
|
| | |
| | | var pra = new MessageInfoPra();
|
| | | pra.LoginAccessToken = UserCenterLogic.GetConnectMainToken();
|
| | |
|
| | | var result = UserCenterLogic.GetResponseDataByRequestHttps("MessageCenter/GetMessageCenterPagger", false, pra, new List<string>() { "NotCheck" }, false);
|
| | | var result = UserCenterLogic.GetResponseDataByRequestHttps("MessageCenter/GetMessageCenterPagger", false, pra, new List<string>() { "NotCheck" });
|
| | | if (string.IsNullOrEmpty(result) == true)
|
| | | {
|
| | | //åºéï¼éè¦éæ°è¯»å
|
| | |
| | | string fullDir = string.Empty;
|
| | | if (upPath == string.Empty)
|
| | | {
|
| | | //å°æ¨¡æ¿æ°æ®ä¿åå°å°æå®çæä»¶å¤¹ä¸
|
| | | var templateName = TemplateData.TemplateCommonLogic.Current.GetNewTemplateFileName();
|
| | | var templateFile = TemplateData.TemplateCommonLogic.Current.SaveTemplateDataToFile(templateName, "HomeTemplate");
|
| | |
|
| | | //å°æ¨¡æ¿binæä»¶ç§»å¨å°å¤ä»½æä»¶å¤¹ä¸
|
| | | try { System.IO.File.Move(templateFile, System.IO.Path.Combine(Config.Instance.FullPath, templateName)); }
|
| | | catch (Exception ex) { HdlLogLogic.Current.WriteLog(ex, "ç§»å¨æ¨¡æ¿å¤±è´¥"); }
|
| | |
|
| | | //è·åæ¬å°æä»¶
|
| | | listAllFile = HdlFileLogic.Current.GetRootPathListFile();
|
| | | fullDir = Common.Config.Instance.FullPath;
|
| | |
| | |
|
| | | foreach (string fileName in listAllFile)
|
| | | {
|
| | | //夿æå®æä»¶æ¯å¦éè¦ä¸ä¼ (æ ¹ç®å½çæå¤æ)
|
| | | if (upPath == string.Empty && this.IsNotUpLoadFile(fileName) == true)
|
| | | {
|
| | | continue;
|
| | | }
|
| | | if (fileName.EndsWith(".png") == true
|
| | | || fileName.EndsWith(".bin") == true)
|
| | | {
|
| | |
| | | Shared.Common.CommonPage.BackKeyCanClick = true;
|
| | | UserCenterResourse.AccountOption.AppCanSignout = true;
|
| | | return false;
|
| | | }
|
| | | //夿æ¯å¦æ¯åºè¯¥ä¸ä¼ çæä»¶
|
| | | if (IsNotUpLoadFile(file) == true && upPath == string.Empty)
|
| | | {
|
| | | continue;
|
| | | }
|
| | | //æ´çæ°æ®
|
| | | var datainfo = new FileInfoData();
|
| | |
| | | //å
³éè¿åº¦æ¡
|
| | | ProgressFormBar.Current.Close();
|
| | |
|
| | | //æ¸
空å
¨é¨æ¿é´
|
| | | HdlRoomLogic.Current.DeleteAllRoom();
|
| | | //æ¸
空æ¬å°å
¨é¨çåºæ¯æ°æ®
|
| | | HdlSceneLogic.Current.DeleteAllLocalScene();
|
| | | //å¦æè¯»åå°çæä»¶å®å
¨æ²¡æé®é¢ï¼åæ¸
çæ¬å°çæä»¶
|
| | | HdlFileLogic.Current.DeleteAllLocationFile(false);
|
| | |
|
| | | //æ¸
çæ¬å°çæ¨¡æ¿æä»¶
|
| | | TemplateData.TemplateCommonLogic.Current.DeleteAllLocalFile();
|
| | |
|
| | | //没æé误çè¯ï¼åç§»å¨å°å½åä½å®
æä»¶å¤¹ä¸é¢
|
| | | HdlFileLogic.Current.MoveDirectoryFileToHomeDirectory(tempDirectory, true);
|
| | |
| | | /// </summary>
|
| | | /// <param name="file"></param>
|
| | | /// <returns></returns>
|
| | | private bool IsNotUpLoadFile(string file)
|
| | | public bool IsNotUpLoadFile(string file)
|
| | | {
|
| | | if (file.StartsWith("Device_") == true
|
| | | || file.StartsWith("Gateway_") == true
|
| | | || file.StartsWith("Room_") == true
|
| | | || file.StartsWith("Scene_") == true)
|
| | | if (file == "Config.json")
|
| | | {
|
| | | //设å¤,ç½å
³,æ¿é´,åºæ¯æä»¶ä¸éè¦ä¸ä¼ ,å®å·²ç»ä¿åå¨binæ¨¡æ¿æä»¶ä¸
|
| | | //ä¸è½è¦çConfigæä»¶
|
| | | return true;
|
| | | }
|
| | | return false;
|
| | |
| | | if (Common.Config.Instance.Home.IsVirtually == true)
|
| | | {
|
| | | //ç´æ¥æ·»å ç¼å
|
| | | TemplateData.TemplateDeviceDataLogic.Current.SetAcModeSupport(device, data, null);
|
| | | ModelData.DeviceModelDataLogic.Current.SetAcModeSupport(device, data, "SetWritableValue");
|
| | | return true;
|
| | | }
|
| | | //åéæ°æ®
|
| | |
| | | return false;
|
| | | }
|
| | |
|
| | | //æ·»å ç¼å
|
| | | TemplateData.TemplateDeviceDataLogic.Current.SetAcModeSupport(device, data, result.JsonData[0]);
|
| | |
|
| | | return true;
|
| | | }
|
| | |
|
| | |
| | | if (Common.Config.Instance.Home.IsVirtually == true)
|
| | | {
|
| | | //ç´æ¥æ·»å ç¼å
|
| | | TemplateData.TemplateDeviceDataLogic.Current.SetAcSwingModeSupport(device, data, null);
|
| | | ModelData.DeviceModelDataLogic.Current.SetAcSwingModeSupport(device, data, "SetWritableValue");
|
| | | return true;
|
| | | }
|
| | | //åéæ°æ®
|
| | |
| | | this.ShowTipMsg(msg);
|
| | | return false;
|
| | | }
|
| | |
|
| | | //æ·»å ç¼å
|
| | | TemplateData.TemplateDeviceDataLogic.Current.SetAcSwingModeSupport(device, data, result.JsonData[0]);
|
| | |
|
| | | return true;
|
| | | }
|
| | |
| | | /// åéè·åç¯å
ç¶æå½ä»¤
|
| | | /// </summary>
|
| | | /// <param name="device">çªå¸</param>
|
| | | public void SendLevelStatuComand(CommonDevice device)
|
| | | private void SendLevelStatuComand(CommonDevice device)
|
| | | {
|
| | | if (device == null) |
| | | { |
| | |
| | | colorDevice.ReadLevel();
|
| | | System.Threading.Thread.Sleep(300);
|
| | | colorDevice.ReadColorTemperature(); |
| | | if (LocalDevice.Current.IsMiniLight(device) == true)
|
| | | {
|
| | | //miniå¤ç¯éè¦è¯»åè鸣å¨ç¶æ
|
| | | System.Threading.Thread.Sleep(300);
|
| | | colorDevice.ReadBuzzerStatu();
|
| | | } |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | } |
| | |
| | | //妿å½åä½å®
æ¯èæä½å®
|
| | | if (Common.Config.Instance.Home.IsVirtually == true)
|
| | | {
|
| | | var listBind = TemplateData.TemplateDeviceDataLogic.Current.GetDeviceBindList(device);
|
| | | var listBind = ModelData.DeviceModelDataLogic.Current.GetDeviceBindList(device, "Bind/GetDeviceBind");
|
| | | return new BindObj.GetDeviceBindResponseAllData()
|
| | | {
|
| | | getAllBindResponseData = new BindObj.GetDeviceBindResponseData
|
| | |
| | | //妿å½åä½å®
æ¯èæä½å®
|
| | | if (Common.Config.Instance.Home.IsVirtually == true)
|
| | | {
|
| | | return TemplateData.TemplateDeviceDataLogic.Current.AddDeviceBindList(addBindData, null);
|
| | | return ModelData.DeviceModelDataLogic.Current.AddDeviceBindList(addBindData, "Bind/GetDeviceBind");
|
| | | }
|
| | |
|
| | | var device = Common.LocalDevice.Current.GetDevice(addBindData.DeviceAddr, addBindData.Epoint);
|
| | |
| | | }
|
| | |
|
| | | //ä¿®æ¹ç¼å
|
| | | TemplateData.TemplateDeviceDataLogic.Current.AddDeviceBindList(addBindData, result.JsonData[0]);
|
| | | ModelData.DeviceModelDataLogic.Current.AddDeviceBindList(addBindData, "Bind/GetDeviceBind");
|
| | |
|
| | | var tempData = Newtonsoft.Json.JsonConvert.DeserializeObject<BindObj.AddedDeviceBindResponseData>(result.ReceiptData);
|
| | | return new BindObj.AddedDeviceBindResponseAllData() { addedDeviceBindResponseData = tempData };
|
| | |
| | | //妿å½åä½å®
æ¯èæä½å®
|
| | | if (Common.Config.Instance.Home.IsVirtually == true)
|
| | | {
|
| | | return TemplateData.TemplateDeviceDataLogic.Current.DeleteDeviceBindList(delDeviceBindData);
|
| | | return ModelData.DeviceModelDataLogic.Current.DeleteDeviceBindList(delDeviceBindData);
|
| | | }
|
| | | var device = Common.LocalDevice.Current.GetDevice(delDeviceBindData.DeviceAddr, delDeviceBindData.Epoint);
|
| | | //è·åéè¦åéçæ°æ®
|
| | |
| | | }
|
| | |
|
| | | //ä¿®æ¹ç¼å
|
| | | TemplateData.TemplateDeviceDataLogic.Current.DeleteDeviceBindList(delDeviceBindData);
|
| | | ModelData.DeviceModelDataLogic.Current.DeleteDeviceBindList(delDeviceBindData);
|
| | |
|
| | | return responseData;
|
| | | }
|
| | |
| | | //妿å½åä½å®
æ¯èæä½å®
|
| | | if (Common.Config.Instance.Home.IsVirtually == true)
|
| | | {
|
| | | return TemplateData.TemplateDeviceDataLogic.Current.ClearDeviceAllBind(device);
|
| | | return ModelData.DeviceModelDataLogic.Current.ClearDeviceAllBind(device);
|
| | | }
|
| | |
|
| | | var jObject = new JObject { { "DeviceAddr", device.DeviceAddr }, { "Epoint", device.DeviceEpoint }, { "Cluster_ID", 0 }, { "Command", 5006 } };
|
| | |
| | | }
|
| | |
|
| | | //ä¿®æ¹ç¼å
|
| | | TemplateData.TemplateDeviceDataLogic.Current.ClearDeviceAllBind(device);
|
| | | ModelData.DeviceModelDataLogic.Current.ClearDeviceAllBind(device);
|
| | |
|
| | | var tempData = Newtonsoft.Json.JsonConvert.DeserializeObject<BindObj.ClearBindInfoResponseData>(result.ReceiptData);
|
| | | return new BindObj.ClearBindInfoResponseAllData { clearBindInfoResponseData = tempData };
|
| | |
| | | //妿å½åä½å®
æ¯èæä½å®
|
| | | if (Common.Config.Instance.Home.IsVirtually == true)
|
| | | {
|
| | | return TemplateData.TemplateDeviceDataLogic.Current.ConfigurePanelKeyModel(device, value, clusterID, null);
|
| | | return ModelData.DeviceModelDataLogic.Current.ConfigurePanelKeyModel(device, value, clusterID, "SetWritableValue");
|
| | | }
|
| | | //è·ååéæ°æ®
|
| | | var sendData = this.GetConfigureHdlKeyCommandText(device.DeviceAddr, device.DeviceEpoint, value, clusterID);
|
| | |
| | | }
|
| | |
|
| | | //ä¿®æ¹ç¼å
|
| | | TemplateData.TemplateDeviceDataLogic.Current.ConfigurePanelKeyModel(device, value, clusterID, result.JsonData[0]);
|
| | | ModelData.DeviceModelDataLogic.Current.ConfigurePanelKeyModel(device, value, clusterID, "SetWritableValue");
|
| | |
|
| | | var tempData = Newtonsoft.Json.JsonConvert.DeserializeObject<CommonDevice.SetWritableValueResponData>(result.ReceiptData);
|
| | | return new CommonDevice.SetWritableValueResponAllData { setWritableValueResponData = tempData };
|
| | |
| | | //妿å½åä½å®
æ¯èæä½å®
|
| | | if (Common.Config.Instance.Home.IsVirtually == true)
|
| | | {
|
| | | return TemplateData.TemplateDeviceDataLogic.Current.ReadPanelConfigureKeyModel(device);
|
| | | return ModelData.DeviceModelDataLogic.Current.ReadPanelConfigureKeyModel(device);
|
| | | }
|
| | |
|
| | | var JObject = new JObject {{ "DeviceAddr",device.DeviceAddr },{ "Epoint", device.DeviceEpoint },
|
| | |
| | | {
|
| | | var reResult = new ReceiptGatewayResult();
|
| | | reResult.listReceiptData = new string[listReceiptTopic.Count];
|
| | | reResult.JsonData = new string[listReceiptTopic.Count];
|
| | |
|
| | | var myGateway = device.Gateway;
|
| | | if (myGateway == null) |
| | | { |
| | |
| | | return;
|
| | | }
|
| | | reResult.listReceiptData[i] = jobject["Data"].ToString();
|
| | | if (jobject.Property("Time") != null)
|
| | | {
|
| | | //éè¦ç§»é¤timeè¿ä¸ªå段
|
| | | jobject.Remove("Time");
|
| | | }
|
| | | reResult.JsonData[i] = jobject.ToString();
|
| | | receiptCount++;
|
| | | }
|
| | | }
|
| | |
| | | {
|
| | | //å¦æåªæä¸ä¸ªä¸»é¢,åæ¿æ¢åé
|
| | | reResult.ReceiptData = reResult.listReceiptData[0];
|
| | | reResult.listReceiptData = null;
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | if (command == receiptCommand)
|
| | | {
|
| | | reResult.ReceiptData = responseData.PassData;
|
| | | reResult.JsonData = new string[1];
|
| | | if (jobject.Property("Time") != null)
|
| | | {
|
| | | //éè¦ç§»é¤timeè¿ä¸ªå段
|
| | | jobject.Remove("Time");
|
| | | }
|
| | | reResult.JsonData[0] = jobject.ToString();
|
| | | }
|
| | | }
|
| | | };
|
| | |
| | | using Newtonsoft.Json;
|
| | | using Newtonsoft.Json.Linq;
|
| | | using Shared.Phone.TemplateData;
|
| | | using Shared.Phone.ModelData;
|
| | | using System;
|
| | | using System.Collections.Generic;
|
| | | using System.Text;
|
| | |
| | | if (Common.Config.Instance.Home.IsVirtually == true)
|
| | | {
|
| | | //æ·»å ç¼å
|
| | | TemplateDeviceDataLogic.Current.SetCurtainHandPullControl(device, bolStatu, null);
|
| | | DeviceModelDataLogic.Current.SetCurtainHandPullControl(device, bolStatu, "SetWritableValue");
|
| | | return true;
|
| | | }
|
| | | //è·ååéçå½ä»¤å符
|
| | |
| | | this.ShowTipMsg(msg);
|
| | | return false;
|
| | | }
|
| | | //æ·»å ç¼å
|
| | | TemplateDeviceDataLogic.Current.SetCurtainHandPullControl(device, bolStatu, result.JsonData[0]);
|
| | |
|
| | | return true;
|
| | | }
|
| | |
|
| | |
| | | //妿å½åæ¯èæä½å®
|
| | | if (Common.Config.Instance.Home.IsVirtually == true)
|
| | | {
|
| | | return TemplateDeviceDataLogic.Current.SetCurtainDirection(device, isDirectionReversed, null);
|
| | | return ModelData.DeviceModelDataLogic.Current.SetCurtainDirection(device, isDirectionReversed, "SetWritableValue");
|
| | | }
|
| | | //è·åç¼è¾çªå¸æ¹åçå½ä»¤å符
|
| | | var sendData = this.GetCurtainDirectionCommadText(device.DeviceAddr, device.DeviceEpoint, isDirectionReversed);
|
| | |
| | | {
|
| | | return null;
|
| | | }
|
| | |
|
| | | //æ·»å ç¼å
|
| | | TemplateDeviceDataLogic.Current.SetCurtainDirection(device, isDirectionReversed, result.JsonData[0]);
|
| | |
|
| | | var tempData = JsonConvert.DeserializeObject<CommonDevice.SetWritableValueResponData>(result.ReceiptData);
|
| | | return new CommonDevice.SetWritableValueResponAllData { setWritableValueResponData = tempData };
|
| | |
| | | //妿å½åæ¯èæä½å®
|
| | | if (Common.Config.Instance.Home.IsVirtually == true)
|
| | | {
|
| | | return TemplateData.TemplateDeviceDataLogic.Current.SetCurtainLimitPoint(rollershade, upLimit, downLimit, curtainLength, null);
|
| | | return ModelData.DeviceModelDataLogic.Current.SetCurtainLimitPoint(rollershade, upLimit, downLimit, curtainLength, "SetWritableValue");
|
| | | }
|
| | | //è·åç¼è¾å¼åå¸éä½çå½ä»¤å符
|
| | | var sendData = this.GetAutoOpenCurtainLimitPointCommandText(rollershade.DeviceAddr, rollershade.DeviceEpoint, upLimit, downLimit);
|
| | |
| | | this.ShowTipMsg(msg);
|
| | | return false;
|
| | | }
|
| | |
|
| | | //æ·»å ç¼å
|
| | | TemplateDeviceDataLogic.Current.SetCurtainLimitPoint(rollershade, upLimit, downLimit, curtainLength, result.JsonData[0]);
|
| | |
|
| | | return true;
|
| | | }
|
| | |
| | | //çé¾
|
| | | if (ias.iASInfo?.Alarm1 == 1)
|
| | | {
|
| | | return Language.StringByID(R.MyInternationalizationString.uSmogAlarm);
|
| | | return Language.StringByID(R.MyInternationalizationString.IASZone_Statu_Alarm);
|
| | | }
|
| | | return Language.StringByID(R.MyInternationalizationString.IASZone_Statu_Safe);
|
| | | }
|
| | |
| | | //pir
|
| | | if (ias.iASInfo?.Alarm1 == 1)
|
| | | {
|
| | | return Language.StringByID(R.MyInternationalizationString.IASZone_Statu_HavePerson);
|
| | | return Language.StringByID(R.MyInternationalizationString.IASZone_Statu_Alarm);
|
| | | }
|
| | | return Language.StringByID(R.MyInternationalizationString.IASZone_Statu_NoPerson);
|
| | | return Language.StringByID(R.MyInternationalizationString.IASZone_Statu_Safe);
|
| | | }
|
| | | else if (info.ConcreteType == DeviceConcreteType.Sensor_Keyfob)
|
| | | {
|
| | |
| | | //è¿å¨ä¼ æå¨
|
| | | if (ias.iASInfo?.Alarm1 == 1)
|
| | | {
|
| | | return Language.StringByID(R.MyInternationalizationString.IASZone_Statu_HavePerson);
|
| | | return Language.StringByID(R.MyInternationalizationString.IASZone_Statu_Alarm);
|
| | | }
|
| | | return Language.StringByID(R.MyInternationalizationString.IASZone_Statu_NoPerson);
|
| | | return Language.StringByID(R.MyInternationalizationString.IASZone_Statu_Normal);
|
| | | }
|
| | | else if (info.ConcreteType == DeviceConcreteType.Sensor_EmergencyButton)
|
| | | {
|
| | |
| | | //妿å½åæ¯èæä½å®
|
| | | if (Common.Config.Instance.Home.IsVirtually == true)
|
| | | {
|
| | | return TemplateData.TemplateDeviceDataLogic.Current.GetPanelColorInfo(device, keyNum);
|
| | | return ModelData.DeviceModelDataLogic.Current.GetPanelColorInfo(device, keyNum);
|
| | | }
|
| | | //åéæ°æ® keyNum转为16è¿å¶ èå´ï¼01~10
|
| | | var passData = "0504040101" + Convert.ToString((int)keyNum, 16).ToUpper().PadLeft(2, '0');
|
| | |
| | | //妿å½åæ¯èæä½å®
|
| | | if (Common.Config.Instance.Home.IsVirtually == true)
|
| | | {
|
| | | return TemplateData.TemplateDeviceDataLogic.Current.SetPanelColorInfo(device, keyColorData, keyNumStatus, null);
|
| | | return ModelData.DeviceModelDataLogic.Current.SetPanelColorInfo(device, keyColorData, keyNumStatus, "ZbDataPassthrough");
|
| | | }
|
| | | //è·åé
ç½®æé®æç¤ºç¯é¢è²çå½ä»¤å符
|
| | | var sendData = this.GetPanelColorCommandText(device.DeviceAddr, keyColorData, keyNumStatus);
|
| | |
| | | var tempD = new CommonDevice.ResponseData();
|
| | | tempD.command = data[12].ToString() + data[13].ToString() + data[10].ToString() + data[11].ToString();
|
| | | tempD.status = Convert.ToInt32(data[14].ToString() + data[15].ToString(), 16);
|
| | |
|
| | | //æ·»å ç¼å
|
| | | TemplateData.TemplateDeviceDataLogic.Current.SetPanelColorInfo(device, keyColorData, keyNumStatus, result.JsonData[0]);
|
| | |
|
| | | return new CommonDevice.ResponseAllData { responseData = tempD };
|
| | | }
|
| | |
|
| | |
| | | //妿å½åæ¯èæä½å®
|
| | | if (Common.Config.Instance.Home.IsVirtually == true)
|
| | | {
|
| | | return TemplateData.TemplateDeviceDataLogic.Current.GetDeviceLightSettion(device);
|
| | | return ModelData.DeviceModelDataLogic.Current.GetDeviceLightSettion(device);
|
| | | }
|
| | | //è·ååéçå½ä»¤å符
|
| | | var passData = "050604010101";
|
| | |
| | | //妿å½åæ¯èæä½å®
|
| | | if (Common.Config.Instance.Home.IsVirtually == true)
|
| | | {
|
| | | return TemplateData.TemplateDeviceDataLogic.Current.SetDeviceLightSettion(device, directionsLevel, backlightLevel, null);
|
| | | return ModelData.DeviceModelDataLogic.Current.SetDeviceLightSettion(device, directionsLevel, backlightLevel, "ZbDataPassthrough");
|
| | | }
|
| | | //è·åä¿®æ¹é¢æ¿ç亮度è°èçå½ä»¤å符
|
| | | var sendData = this.GetPanelLevelCommadText(device.DeviceAddr, directionsLevel, backlightLevel);
|
| | |
| | | }
|
| | |
|
| | | //ä¿®æ¹ç¼å
|
| | | TemplateData.TemplateDeviceDataLogic.Current.SetDeviceLightSettion(device, directionsLevel, backlightLevel, result.JsonData[0]);
|
| | | ModelData.DeviceModelDataLogic.Current.SetDeviceLightSettion(device, directionsLevel, backlightLevel, "ZbDataPassthrough");
|
| | |
|
| | | return true;
|
| | | }
|
| | |
| | | //妿å½åä½å®
æ¯èæä½å®
|
| | | if (Common.Config.Instance.Home.IsVirtually == true)
|
| | | {
|
| | | return TemplateData.TemplateDeviceDataLogic.Current.GetDeviceEnergyConservationMode(device);
|
| | | return ModelData.DeviceModelDataLogic.Current.GetDeviceEnergyConservationMode(device);
|
| | | }
|
| | | //åéå½ä»¤
|
| | | string passData = "050804010101";
|
| | |
| | | //妿å½åæ¯èæä½å®
|
| | | if (Common.Config.Instance.Home.IsVirtually == true)
|
| | | {
|
| | | return TemplateData.TemplateDeviceDataLogic.Current.SetDeviceEnergyConservationMode(device, modeEnable, modeTime, level, null);
|
| | | return ModelData.DeviceModelDataLogic.Current.SetDeviceEnergyConservationMode(device, modeEnable, modeTime, level, "ZbDataPassthrough");
|
| | | }
|
| | | //è·å设置设å¤çèè½æ¨¡å¼çå½ä»¤å符
|
| | | var sendData = this.GetDeviceEnergyConservationModeCommandText(device.DeviceAddr, modeEnable, modeTime, level);
|
| | |
| | | }
|
| | |
|
| | | //ä¿®æ¹ç¼å
|
| | | TemplateData.TemplateDeviceDataLogic.Current.SetDeviceEnergyConservationMode(device, modeEnable, modeTime, level, result.JsonData[0]);
|
| | | ModelData.DeviceModelDataLogic.Current.SetDeviceEnergyConservationMode(device, modeEnable, modeTime, level, "ZbDataPassthrough");
|
| | |
|
| | | return true;
|
| | | }
|
| | |
| | | //妿æ¯èæä½å®
|
| | | if (Common.Config.Instance.Home.IsVirtually == true)
|
| | | {
|
| | | return TemplateData.TemplateDeviceDataLogic.Current.GetPanelVibrationInfo(device);
|
| | | return ModelData.DeviceModelDataLogic.Current.GetPanelVibrationInfo(device);
|
| | | }
|
| | | //åéæ°æ®
|
| | | var jObject = new Newtonsoft.Json.Linq.JObject { { "DeviceAddr", device.DeviceAddr }, { "Epoint", 200 }, { "Cluster_ID", 64513 }, { "Command", 0 } };
|
| | |
| | | //妿æ¯èæä½å®
|
| | | if (Common.Config.Instance.Home.IsVirtually == true)
|
| | | {
|
| | | return TemplateData.TemplateDeviceDataLogic.Current.SetPanelVibrationInfo(device, datainfo, null);
|
| | | return ModelData.DeviceModelDataLogic.Current.SetPanelVibrationInfo(device, datainfo, "ClientDataPassthrough");
|
| | | }
|
| | | //è·åç¼è¾é¢æ¿éå¨åè½çå½ä»¤å符
|
| | | var sendData = this.GetPanelVibrationCommandText(device.DeviceAddr, datainfo);
|
| | |
| | | this.ShowTipMsg(errorMsg);
|
| | | return false;
|
| | | }
|
| | | //æ·»å ç¼å
|
| | | TemplateData.TemplateDeviceDataLogic.Current.SetPanelVibrationInfo(device, datainfo, result.JsonData[0]);
|
| | |
|
| | | return true;
|
| | | }
|
| | |
|
| | |
| | | private void LoadDryContactFunctionFromLocaltion()
|
| | | {
|
| | | this.dicDryContactFunction = new Dictionary<string, DryContactFunctionInfo>();
|
| | |
|
| | | byte[] filebyte = HdlFileLogic.Current.ReadFileByteContent(DirNameResourse.DryContactFunctionFile);
|
| | | if (filebyte == null)
|
| | | {
|
| | |
| | | //妿å½åä½å®
æ¯èæä½å®
|
| | | if (Common.Config.Instance.Home.IsVirtually == true)
|
| | | {
|
| | | return TemplateData.TemplateDeviceDataLogic.Current.GetPirSensorLightSettion(device);
|
| | | return ModelData.DeviceModelDataLogic.Current.GetPirSensorLightSettion(device);
|
| | | }
|
| | | var sendData = this.GetPirSensorParamateCommadText(device.DeviceAddr);
|
| | | var result = HdlDeviceCommonLogic.Current.SendJobjectDataToGateway2(device, sendData, "0302", 34, 9);
|
| | |
| | | //妿æ¯èæä½å®
|
| | | if (Common.Config.Instance.Home.IsVirtually == true)
|
| | | {
|
| | | return TemplateData.TemplateDeviceDataLogic.Current.SetPirSensorLightSettion(device, configureParamates, null);
|
| | | return ModelData.DeviceModelDataLogic.Current.SetPirSensorLightSettion(device, configureParamates, "ClientDataPassthrough");
|
| | | }
|
| | | //åéæ°æ®
|
| | | var sendData = this.GetPirSensorSettionCommandText(device.DeviceAddr, configureParamates);
|
| | |
| | | var tempD = new IASZone.ResponseData();
|
| | | tempD.command = data[12].ToString() + data[13].ToString() + data[10].ToString() + data[11].ToString();
|
| | | tempD.status = Convert.ToInt32(data[14].ToString() + data[15].ToString(), 16);
|
| | |
|
| | | //æ·»å ç¼å
|
| | | TemplateData.TemplateDeviceDataLogic.Current.SetPirSensorLightSettion(device, configureParamates, result.JsonData[0]);
|
| | |
|
| | | return new CommonDevice.ResponseAllData { responseData = tempD };
|
| | | }
|
| | |
| | | return jObject.ToString();
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// è·åä¿®æ¹PIRä¼ æå¨é
ç½®çå½ä»¤å符
|
| | | /// </summary>
|
| | | private string GetPIRSensorSettionPassData(IASZone.ConfigureParamates configureParamates)
|
| | | /// <summary>
|
| | | /// è·åä¿®æ¹PIRä¼ æå¨é
ç½®çå½ä»¤å符
|
| | | /// </summary>
|
| | | private string GetPIRSensorSettionPassData(IASZone.ConfigureParamates configureParamates)
|
| | | {
|
| | | string data = "";
|
| | | string dataLength = "10";
|
| | |
| | | //LOGåºåãæä»¶å¤¹ã
|
| | | this.CreateDirectory(DirNameResourse.LogDirectory);
|
| | |
|
| | | //模æ¿ç¼ååæ¾çãæä»¶å¤¹ã
|
| | | this.CreateDirectory(DirNameResourse.LocalTemplateDirectory);
|
| | | this.CreateDirectory(DirNameResourse.AllResidenceTemplateDirectory);
|
| | |
|
| | | //ç¨æ·å¾çç®å½è·¯å¾ãæä»¶å¤¹ã
|
| | | if (UserCenterResourse.AccountOption.UserPictruePath != string.Empty)
|
| | | {
|
| | |
| | | var rootPath = Common.Config.Instance.FullPath;
|
| | | foreach (var file in listFile)
|
| | | {
|
| | | if (file.StartsWith("ModelData_") == true)
|
| | | {
|
| | | //å¤å¶æ¨¡æ¿æ°æ®æä»¶å°æå®æä»¶å¤¹
|
| | | TemplateData.TemplateCommonLogic.Current.CopyTemplateFileToLocalDirectory2(System.IO.Path.Combine(fulldirectory, file));
|
| | | continue;
|
| | | }
|
| | | string oldFile = System.IO.Path.Combine(fulldirectory, file);
|
| | | string newFile = System.IO.Path.Combine(rootPath, file);
|
| | | //ç§»å¨æä»¶
|
| | |
| | | using System;
|
| | | using System.Collections.Generic;
|
| | | using System.Text;
|
| | | using ZigBee.Device;
|
| | |
|
| | | namespace Shared.Phone.UserCenter
|
| | | {
|
| | |
| | | private static int GetFirmwareVersionAndSetToMemmory(FirmwareLevelType levelType, GetFirmwareVersionPra pra)
|
| | | {
|
| | | var listCheck = new List<string> { "NotCheck" };
|
| | | string resultValue = UserCenterLogic.GetResponseDataByRequestHttps("FirmwareMana/DetectionPlatformUploadFirmware", false, pra, listCheck, false);
|
| | | string resultValue = UserCenterLogic.GetResponseDataByRequestHttps("FirmwareMana/DetectionPlatformUploadFirmware", false, pra, listCheck);
|
| | | if (string.IsNullOrEmpty(resultValue) == true)
|
| | | {
|
| | | return -1;
|
| | |
| | |
|
| | | #endregion
|
| | |
|
| | | #region â è·åæå®åºä»¶çæ¬ä¿¡æ¯_______________
|
| | |
|
| | | /// <summary>
|
| | | /// è·åæå®åºä»¶ççæ¬ä¿¡æ¯(妿è¿åNull,å表示没æè¿ä¸ªåºä»¶)
|
| | | /// </summary>
|
| | | /// <param name="levelType">åºä»¶é¶çº§åç±»</param>
|
| | | /// <param name="HardwareVersion">ç¡¬ä»¶çæ¬</param>
|
| | | /// <param name="imgType">éåç±»å</param>
|
| | | /// <param name="nowVersion">ç°å¨ççæ¬</param>
|
| | | /// <returns></returns>
|
| | | public static FirmwareVersionInfo GetFirmwareVersionInfo(FirmwareLevelType levelType, string HardwareVersion, string imgType, int nowVersion)
|
| | | {
|
| | | //éåç±»å
|
| | | var listdata = GetFirmwareVersionListInfo(levelType, HardwareVersion, imgType);
|
| | | foreach (var verInfo in listdata)
|
| | | {
|
| | | if (verInfo.Name.EndsWith(".bin") == true)
|
| | | {
|
| | | //å®ä¸æ¯å级åºä»¶, .binæ¯ç¹æ®ç
|
| | | continue;
|
| | | }
|
| | | int testVersion = Convert.ToInt32(verInfo.FirmwareVersion.ToString().PadLeft(6, '0').Substring(2, 2));
|
| | | if (testVersion % 2 != 0)
|
| | | {
|
| | | //ä¸é´é£ä¸ªbyteä¸ºå¥æ°æ¶ï¼ä»£è¡¨æ¯æµè¯çæ¬,卿¾ç¤ºææ°çæ¬æ¶,ä¸éè¦æ¾ç¤ºï¼ä½æ¯å¨åå²çæ¬é£éå¯ä»¥æ¾ç¤º
|
| | | //ä¸é´é£ä¸ªbyteä¸ºå¶æ°æ¶,ä»£è¡¨æ¯æ£å¼çæ¬
|
| | | continue;
|
| | | }
|
| | |
|
| | | if (verInfo.FirmwareVersion == nowVersion)
|
| | | {
|
| | | return verInfo;
|
| | | }
|
| | | }
|
| | | return null; ;
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
|
| | | #region â åºä»¶å卿£æµ_______________________
|
| | |
|
| | | /// <summary>
|
| | |
| | | return false;
|
| | | }
|
| | | return true;
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// æ£æµè¯¥Ota设å¤çå级åºä»¶æ¯å¦åå¨
|
| | | /// </summary>
|
| | | /// <param name="device">设å¤å¯¹è±¡</param>
|
| | | /// <returns></returns>
|
| | | public static bool IsEsixtDeviceFirmwareFile(OTADevice device)
|
| | | {
|
| | | var fileFullName = GetDeviceFirmwareFile(device);
|
| | | return System.IO.File.Exists(fileFullName);
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// è·åotaæå®çå级åºä»¶åå(å
¨è·¯å¾)
|
| | | /// </summary>
|
| | | /// <param name="device">设å¤å¯¹è±¡</param>
|
| | | /// <returns></returns>
|
| | | public static string GetDeviceFirmwareFile(OTADevice device)
|
| | | {
|
| | | //ç¡¬ä»¶çæ¬_éåID_åºä»¶çæ¬
|
| | | string fileName = device.HwVersion + "_" + device.ImgTypeId + "_" + device.ImgVersion;
|
| | | return System.IO.Path.Combine(DirNameResourse.FirmwareUpdateDirectory, "Device_" + fileName + ".ota");
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// è·åç½å
³Linuxçå级åºä»¶åå(å
¨è·¯å¾)
|
| | | /// </summary>
|
| | | /// <param name="zbGateway">ç½å
³å¯¹è±¡</param>
|
| | | /// <returns></returns>
|
| | | public static string GetGatewayLinuxFirmwareFile(ZbGateway zbGateway)
|
| | | {
|
| | | string fileName = zbGateway.LinuxHardVersion + "_" + zbGateway.LinuxImageType + "_" + zbGateway.LinuxFirmwareVersion;
|
| | | return System.IO.Path.Combine(DirNameResourse.FirmwareUpdateDirectory, "Linux_" + fileName + ".ota");
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// è·åç½å
³åè°å¨çå级åºä»¶åå(å
¨è·¯å¾)
|
| | | /// </summary>
|
| | | /// <param name="zbGateway">ç½å
³å¯¹è±¡</param>
|
| | | /// <returns></returns>
|
| | | public static string GetGatewayCoordinatorFirmwareFile(ZbGateway zbGateway)
|
| | | {
|
| | | string fileName = zbGateway.CoordinatorHardVersion + "_" + zbGateway.CoordinatorImageId + "_" + zbGateway.CoordinatorFirmwareVersion;
|
| | | return System.IO.Path.Combine(DirNameResourse.FirmwareUpdateDirectory, "Coordinator_" + fileName + ".ota");
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// è·åç½å
³èæé©±å¨çå级åºä»¶åå(å
¨è·¯å¾)
|
| | | /// </summary>
|
| | | /// <param name="codeObj">èæé©±å¨æ°æ®</param>
|
| | | /// <returns></returns>
|
| | | public static string GetGatewayDriveCodeFirmwareFile(ZbGatewayData.DriveCodeObj codeObj)
|
| | | {
|
| | | string fileName = codeObj.DriveHwVersion + "_" + codeObj.DriveImageType + "_" + codeObj.DriveFwVersion;
|
| | | return System.IO.Path.Combine(DirNameResourse.FirmwareUpdateDirectory, "DriveCode_" + fileName + ".ota");
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
|
| | | #region â ä¸è½½æ¨¡æ¿åºä»¶_______________________
|
| | |
|
| | | /// <summary>
|
| | | /// ä¸è½½æ¨¡æ¿ä¸ç½å
³å设å¤çåºä»¶
|
| | | /// </summary>
|
| | | /// <param name="fullFileName"></param>
|
| | | /// <param name="i_Msg"></param>
|
| | | public static int DownLoadTemplateDeviceFirmware(string fullFileName, string i_Msg)
|
| | | {
|
| | | //仿¨¡æ¿å½ä¸è·å设å¤åç½å
³å¯¹è±¡
|
| | | var listTempDevice = new List<OTADevice>();
|
| | | var listTempGateway = new List<ZbGateway>();
|
| | | TemplateData.TemplateCommonLogic.Current.GetDeviceObjectFromTemplate(fullFileName, ref listTempDevice, ref listTempGateway);
|
| | |
|
| | | //è·åéè¦ä¸è½½çåºä»¶æ°æ®
|
| | | var listVersion = GetNeedToDownLoadVersionData(listTempDevice, listTempGateway);
|
| | | if (listVersion.Count == 0)
|
| | | {
|
| | | return 0;
|
| | | }
|
| | | //æå¼è¿åº¦æ¡
|
| | | ProgressFormBar.Current.Start();
|
| | | ProgressFormBar.Current.SetMsg(i_Msg);
|
| | | ProgressFormBar.Current.SetValue(0, 1);
|
| | |
|
| | | System.Threading.Thread.Sleep(1000);
|
| | |
|
| | | var dicFirmwareName = new Dictionary<string, string>();
|
| | | var fileData = HdlFileLogic.Current.ReadFileTextContent(DirNameResourse.FirmwareUpdateList);
|
| | | if (fileData != null)
|
| | | {
|
| | | //æ¬å°åæ¾çåºä»¶åæ¥çåå(å 为设å¤å级æ¶,å®éè¦è¯å«æä»¶ååéé¢å
å«çç¹æ®å符)
|
| | | //key:ç¡¬ä»¶çæ¬_éåID_åºä»¶çæ¬ value:åºä»¶åæ¥çåå
|
| | | dicFirmwareName = Newtonsoft.Json.JsonConvert.DeserializeObject<Dictionary<string, string>>(fileData);
|
| | | }
|
| | |
|
| | | //åºä»¶åå¨è·¯å¾
|
| | | string firmwareDir = DirNameResourse.FirmwareUpdateDirectory;
|
| | | int nowCount = 0;
|
| | | foreach (var versionData in listVersion)
|
| | | {
|
| | | nowCount++;
|
| | | //è·åå级åºä»¶ä¿¡æ¯
|
| | | var result = AddFirmwareVersionInfo(versionData.levelType, versionData.HwVersion, versionData.ImageType);
|
| | | if (result == -1)
|
| | | {
|
| | | ProgressFormBar.Current.Close();
|
| | | return -1;
|
| | | }
|
| | | //è·åå½åè¿ä¸ªçæ¬çåºä»¶ä¿¡æ¯
|
| | | var versionFirmware = GetFirmwareVersionInfo(versionData.levelType, versionData.HwVersion, versionData.ImageType, versionData.FirmwareVersion);
|
| | | if (versionFirmware == null)
|
| | | {
|
| | | //äºç«¯æ²¡æè¿ä¸ªçæ¬ è¿åº¦å¼
|
| | | ProgressFormBar.Current.SetValue(nowCount, listVersion.Count);
|
| | | continue;
|
| | | }
|
| | | //å»ä¸è½½è¿ä¸ªåºä»¶
|
| | | var pra = new { RequestVersion = Common.CommonPage.RequestVersion, DistributedMark = versionFirmware.DistributedMark };
|
| | | var byteData = UserCenterLogic.GetByteResponseDataByRequestHttps("FirmwareMana/DownloadPlatformUploadFirmware", false, pra, null, true);
|
| | | if (byteData == null)
|
| | | {
|
| | | ProgressFormBar.Current.Close();
|
| | | return -1;
|
| | | }
|
| | | //ä¿ååºä»¶
|
| | | var saveFile = System.IO.Path.Combine(firmwareDir, versionData.FileDiv + versionData.HwVersion + "_" + versionData.ImageType + "_" + versionData.FirmwareVersion + ".ota");
|
| | | HdlFileLogic.Current.SaveTextToFile(saveFile, Encoding.UTF8.GetString(byteData));
|
| | | dicFirmwareName[saveFile] = versionFirmware.Name;
|
| | |
|
| | | //è¿åº¦å¼
|
| | | ProgressFormBar.Current.SetValue(nowCount, listVersion.Count);
|
| | | }
|
| | | //ä¿åå表åå
|
| | | HdlFileLogic.Current.SaveFileContent(DirNameResourse.FirmwareUpdateList, dicFirmwareName);
|
| | | ProgressFormBar.Current.Close();
|
| | |
|
| | | return 1;
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// è·åéè¦ä¸è½½çåºä»¶æ°æ®
|
| | | /// </summary>
|
| | | /// <param name="listDevice">设å¤å表</param>
|
| | | /// <param name="listGateway">ç½å
³å表</param>
|
| | | /// <returns></returns>
|
| | | private static List<TemplateDeviceVersion> GetNeedToDownLoadVersionData(List<OTADevice> listDevice, List<ZbGateway> listGateway)
|
| | | {
|
| | | //åå¨è·¯å¾
|
| | | string firmwareDir = DirNameResourse.FirmwareUpdateDirectory;
|
| | | HdlFileLogic.Current.CreateDirectory(firmwareDir);
|
| | |
|
| | | var listVersion = new List<TemplateDeviceVersion>();
|
| | | var listCheck = new HashSet<string>();
|
| | | foreach (var device in listDevice)
|
| | | {
|
| | | //设å¤çå级åºä»¶åå
|
| | | var fileFullName = GetDeviceFirmwareFile(device);
|
| | | if (System.IO.File.Exists(fileFullName) == false && listCheck.Contains(fileFullName) == false)
|
| | | {
|
| | | listCheck.Add(fileFullName);
|
| | | //设å¤
|
| | | listVersion.Add(new TemplateDeviceVersion
|
| | | {
|
| | | FileDiv = "Device_",
|
| | | levelType = FirmwareLevelType.ZigbeeDevice,
|
| | | HwVersion = device.HwVersion.ToString(),
|
| | | ImageType = device.ImgTypeId.ToString(),
|
| | | FirmwareVersion = device.ImgVersion
|
| | | });
|
| | | }
|
| | | }
|
| | | foreach (var gateway in listGateway)
|
| | | {
|
| | | //Linuxçå级åºä»¶åå
|
| | | var fileFullName = GetGatewayLinuxFirmwareFile(gateway);
|
| | | if (System.IO.File.Exists(fileFullName) == false && listCheck.Contains(fileFullName) == false)
|
| | | {
|
| | | listCheck.Add(fileFullName);
|
| | | //Linux
|
| | | listVersion.Add(new TemplateDeviceVersion
|
| | | {
|
| | | FileDiv = "Linux_",
|
| | | levelType = FirmwareLevelType.Linux,
|
| | | HwVersion = gateway.LinuxHardVersion.ToString(),
|
| | | ImageType = gateway.LinuxImageType.ToString(),
|
| | | FirmwareVersion = gateway.LinuxFirmwareVersion
|
| | | });
|
| | | }
|
| | | //åè°å¨çå级åºä»¶åå
|
| | | fileFullName = GetGatewayCoordinatorFirmwareFile(gateway);
|
| | | if (System.IO.File.Exists(fileFullName) == false && listCheck.Contains(fileFullName) == false)
|
| | | {
|
| | | listCheck.Add(fileFullName);
|
| | | //åè°å¨
|
| | | listVersion.Add(new TemplateDeviceVersion
|
| | | {
|
| | | FileDiv = "Coordinator_",
|
| | | levelType = FirmwareLevelType.Coordinator,
|
| | | HwVersion = gateway.CoordinatorHardVersion.ToString(),
|
| | | ImageType = gateway.CoordinatorImageId.ToString(),
|
| | | FirmwareVersion = gateway.CoordinatorFirmwareVersion
|
| | | });
|
| | | }
|
| | | //è¿ä¸ªç½å
³éè¦æèæé©±å¨è¿ä¸ªä¸è¥¿æè¡
|
| | | if (gateway.LinuxImageType != 6)
|
| | | {
|
| | | //èæé©±å¨å·
|
| | | foreach (var data in gateway.DriveCodeList)
|
| | | {
|
| | | //èæé©±å¨å·çå级åºä»¶åå
|
| | | fileFullName = GetGatewayDriveCodeFirmwareFile(data);
|
| | | if (System.IO.File.Exists(fileFullName) == false && listCheck.Contains(fileFullName) == false)
|
| | | {
|
| | | listCheck.Add(fileFullName);
|
| | | //èæé©±å¨å·
|
| | | listVersion.Add(new TemplateDeviceVersion
|
| | | {
|
| | | FileDiv = "DriveCode_",
|
| | | levelType = FirmwareLevelType.VirtualDevice,
|
| | | HwVersion = data.DriveHwVersion.ToString(),
|
| | | ImageType = data.DriveImageType.ToString(),
|
| | | FirmwareVersion = data.DriveFwVersion
|
| | | });
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | | return listVersion;
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 模æ¿è®¾å¤ççæ¬ä¿¡æ¯
|
| | | /// </summary>
|
| | | private class TemplateDeviceVersion
|
| | | {
|
| | | /// <summary>
|
| | | /// æä»¶åºå
|
| | | /// </summary>
|
| | | public string FileDiv = string.Empty;
|
| | | /// <summary>
|
| | | /// åºä»¶é¶çº§åºå
|
| | | /// </summary>
|
| | | public FirmwareLevelType levelType;
|
| | | /// <summary>
|
| | | /// ç¡¬ä»¶çæ¬
|
| | | /// </summary>
|
| | | public string HwVersion = string.Empty;
|
| | | /// <summary>
|
| | | /// éåID
|
| | | /// </summary>
|
| | | public string ImageType = string.Empty;
|
| | | /// <summary>
|
| | | /// åºä»¶çæ¬
|
| | | /// </summary>
|
| | | public int FirmwareVersion = 0;
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
| | | /// </summary> |
| | | /// <param name="zbGateway">ç½å
³</param> |
| | | /// <param name="mode">æ¯å¦æ¾ç¤ºé误</param> |
| | | public bool AddNewGateway(ZbGateway zbGateway, ShowErrorMode mode) |
| | | public async Task<bool> AddNewGateway(ZbGateway zbGateway, ShowErrorMode mode) |
| | | {
|
| | | //设置ç½å
³çç»çº¬åº¦
|
| | | bool falge = this.SetGatewaySite(zbGateway, Common.Config.Instance.Home.Longitude, Common.Config.Instance.Home.Latitude, ShowErrorMode.NO); |
| | |
| | | return falge;
|
| | | } |
| | | //æ§è¡æ·»å ç½å
³å°å
å |
| | | var result = this.DoAddGatewayToMemory(zbGateway, mode); |
| | | var result = await this.DoAddGatewayToMemory(zbGateway, mode); |
| | | //åçç½å
³ç»å®å¨äºå½åè´¦å·ä¸çä¸åä½å®
éé¢
|
| | | if (result == 0)
|
| | | {
|
| | |
| | | /// <param name="zbGateway">ç½å
³å¯¹è±¡</param>
|
| | | /// <param name="mode">æ¯å¦æ¾ç¤ºé误</param>
|
| | | /// <returns></returns>
|
| | | private int DoAddGatewayToMemory(ZbGateway zbGateway, ShowErrorMode mode)
|
| | | private async Task<int> DoAddGatewayToMemory(ZbGateway zbGateway, ShowErrorMode mode)
|
| | | {
|
| | | if (zbGateway == null)
|
| | | {
|
| | |
| | | //设置ä½å®
IDå°ç½å
³
|
| | | if (result.HomeId != Common.Config.Instance.HomeId)
|
| | | {
|
| | | bool flage2 = this.SetHomeIdToGateway(zbGateway, Common.Config.Instance.HomeId, mode);
|
| | | bool flage2 = await this.SetHomeIdToGateway(zbGateway, Common.Config.Instance.HomeId, mode);
|
| | | if (flage2 == false)
|
| | | {
|
| | | if (mode == ShowErrorMode.YES)
|
| | |
| | | /// <param name="zbGateway"></param>
|
| | | /// <param name="HomeId"></param>
|
| | | /// <returns></returns> |
| | | public bool SetHomeIdToGateway(ZbGateway zbGateway, string HomeId, ShowErrorMode mode)
|
| | | public async Task<bool> SetHomeIdToGateway(ZbGateway zbGateway, string HomeId, ShowErrorMode mode)
|
| | | {
|
| | | //è´¦å·ID
|
| | | string accountId = string.Empty;
|
| | | if (HomeId != string.Empty)
|
| | | {
|
| | | if (UserCenterResourse.UserInfo.AuthorityNo == 1)
|
| | | {
|
| | | //主账å·
|
| | | accountId = Config.Instance.Guid;
|
| | | }
|
| | | else
|
| | | {
|
| | | accountId = Config.Instance.Home.MainUserDistributedMark;
|
| | | }
|
| | | }
|
| | | var jObject = new Newtonsoft.Json.Linq.JObject { { "Cluster_ID", 0 }, { "Command", 82 } };
|
| | | var data = new Newtonsoft.Json.Linq.JObject { { "HomeId", HomeId }, { "AccountId", accountId } };
|
| | | jObject.Add("Data", data);
|
| | | //ä½å®
IDç设置,åºå®ä½¿ç¨å±åç½,ä¸åå¨è¿ç¨ç说æ³
|
| | | var result = this.SendJobjectDataToGateway(zbGateway, "GwSetHomeId", jObject.ToString(), "GwSetHomeId_Respon", 5, true);
|
| | | if (result.ErrorMsgDiv == -1)
|
| | | ZbGateway realWay = null;
|
| | | if (this.GetRealGateway(ref realWay, zbGateway) == false)
|
| | | {
|
| | | if (mode == ShowErrorMode.YES)
|
| | | {
|
| | |
| | | }
|
| | | return false;
|
| | | }
|
| | | if (result.ErrorMsgDiv == 0)
|
| | |
|
| | | var info = await realWay.GwSetHomeIdAsync(HomeId);
|
| | | if (info != null && info.gwSetHomeIdData != null)
|
| | | {
|
| | | return false;
|
| | | return true;
|
| | | }
|
| | | return true;
|
| | | return false;
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | |
| | | //è·åæ§å¶ä¸»äººè´¦å·çToken
|
| | | bindGateway.LoginAccessToken = UserCenterLogic.GetConnectMainToken(); |
| | | |
| | | var result = UserCenterLogic.GetResultCodeByRequestHttps("App/BindGatewayToHome", true, bindGateway, new List<string> { "NotCheck" }, false); |
| | | var result = UserCenterLogic.GetResultCodeByRequestHttps("App/BindGatewayToHome", true, bindGateway, new List<string> { "NotCheck" }); |
| | | if (result == "Error")
|
| | | {
|
| | | return -1;
|
| | |
| | | /// </summary> |
| | | /// <param name="zbGateway">ç½å
³</param> |
| | | /// <param name="btnMsg">æ¶æ¯æ§ä»¶</param> |
| | | public int ReBindNewGateway(ZbGateway zbGateway, NormalViewControl btnMsg = null) |
| | | public async Task<int> ReBindNewGateway(ZbGateway zbGateway, NormalViewControl btnMsg = null) |
| | | {
|
| | | if (zbGateway == null)
|
| | | {
|
| | |
| | | }
|
| | |
|
| | | //设置ä½å®
IDå°ç½å
³
|
| | | bool flage2 = this.SetHomeIdToGateway(zbGateway, Common.Config.Instance.HomeId, ShowErrorMode.YES);
|
| | | bool flage2 = await this.SetHomeIdToGateway(zbGateway, Common.Config.Instance.HomeId, ShowErrorMode.YES);
|
| | | if (flage2 == false)
|
| | | {
|
| | | //åç½å
³è®¾ç½®ä½å®
ID失败
|
| | |
| | | btnMsg.TextID = R.MyInternationalizationString.uGatewayDataIsChangingPleaseWhait;
|
| | | });
|
| | | }
|
| | | System.Threading.Thread.Sleep(8000);
|
| | | await Task.Delay(8000);
|
| | |
|
| | | //è·åç½å
³çä¿¡æ¯
|
| | | ZbGatewayData.GetGwData result = null;
|
| | |
| | | }
|
| | | count--;
|
| | | //æå¤åç20ç§
|
| | | System.Threading.Thread.Sleep(4000);
|
| | | await Task.Delay(4000);
|
| | | }
|
| | | if (result == null)
|
| | | {
|
| | |
| | | /// æ§è¡åæ¢ç½å
³æä½
|
| | | /// </summary>
|
| | | /// <param name="gatewayId"></param>
|
| | | public bool DoSwitchGateway(string gatewayId)
|
| | | public async Task<bool> DoSwitchGateway(string gatewayId)
|
| | | {
|
| | | var zbGateway = this.GetLocalGateway(gatewayId);
|
| | |
|
| | | //éæ°è·åå¨çº¿ç½å
³çä¿¡æ¯
|
| | | var result = this.GetOnlineGatewayInfo(gatewayId);
|
| | | var result = await this.GetOnlineGatewayInfo(gatewayId);
|
| | | if (result == false)
|
| | | {
|
| | | return false;
|
| | |
| | | /// </summary>
|
| | | /// <param name="gatewayId"></param>
|
| | | /// <returns></returns>
|
| | | private bool GetOnlineGatewayInfo(string gatewayId)
|
| | | private async Task<bool> GetOnlineGatewayInfo(string gatewayId)
|
| | | {
|
| | | //æ¾ç¤ºè¿åº¦æ¡
|
| | | ProgressBar.Show();
|
| | |
| | | //éæ°è®¾ç½®ä½å®
ID(è¿ä¸ªåºè¯¥æ¯ä¸ç»è¿APP,ç´æ¥æç½å
³æ¢å¤äºåºå设置)
|
| | | if (this.HomeIdIsEmpty(realWay.HomeId) == true)
|
| | | {
|
| | | int result2 = this.ReBindNewGateway(realWay);
|
| | | int result2 = await this.ReBindNewGateway(realWay);
|
| | | if (result2 == 0)
|
| | | {
|
| | | //åºç°æªç¥é误,请ç¨ååè¯
|
| | |
| | | ProgressBar.Close();
|
| | | return false;
|
| | | }
|
| | | }
|
| | | //å·æ°å
¨é¨åºæ¯
|
| | | if (this.IsMainGateway(realWay) == 1)
|
| | | {
|
| | | HdlSceneLogic.Current.RefreshSceneUIList(false);
|
| | | }
|
| | |
|
| | | //è·åå
¨é¨è®¾å¤
|
| | |
| | | /// <summary> |
| | | /// å é¤ç½å
³ï¼å
æ¬äºç«¯åæ¬å°(失败æ¶ä¸ä¼æ¾ç¤ºä¿¡æ¯ï¼å¹¶ä¸ä¼è¿åtrue) |
| | | /// </summary> |
| | | /// <param name="zbGateway"></param> |
| | | public async Task<bool> DeleteGateway(ZbGateway zbGateway) |
| | | { |
| | | //ç§»é¤æ¬å°ç½å
³ä¿¡æ¯ |
| | | return await this.DeleteGateway(zbGateway.GwId); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// å é¤ç½å
³ï¼å
æ¬äºç«¯åæ¬å°(失败æ¶ä¸ä¼æ¾ç¤ºä¿¡æ¯ï¼å¹¶ä¸ä¼è¿åtrue) |
| | | /// </summary> |
| | | /// <param name="zbGatewayID"></param> |
| | | public bool DeleteGateway(string zbGatewayID) |
| | | public async Task<bool> DeleteGateway(string zbGatewayID) |
| | | {
|
| | | ZbGateway realWay = null;
|
| | | this.GetRealGateway(ref realWay, zbGatewayID);
|
| | | //æ¸
空ç½å
³çä½å®
ID ç½å
³è§£ç»å¤±è´¥ ä¸çå®,å 为ç½å
³å¯ä»¥ææé®å¼ºå¶æç´¢å¾å°
|
| | | if (realWay != null)
|
| | | {
|
| | | this.SetHomeIdToGateway(realWay, string.Empty, ShowErrorMode.NO);
|
| | | await this.SetHomeIdToGateway(realWay, string.Empty, ShowErrorMode.NO);
|
| | | }
|
| | |
|
| | | //å é¤äºç«¯çç½å
³
|
| | |
| | |
|
| | | #endregion
|
| | |
|
| | | #region â æ¸
空çå®ç½å
³é¾æ¥___________________
|
| | | #region â æ¸
空çå®ç½å
³å表___________________
|
| | |
|
| | | /// <summary>
|
| | | /// æ¸
空å
¨é¨ççå®ç©çç½å
³ç龿¥
|
| | | /// æ¸
空å
¨é¨ççå®ç©çç½å
³å¯¹è±¡
|
| | | /// </summary>
|
| | | /// <param name="roadGateway">æ¯å¦å è½½æ¬å°çç½å
³å¯¹è±¡å°çå®å表ä¸</param>
|
| | | public void ClearAllRealGatewayConection(bool roadGateway)
|
| | | public void ClearAllRealGateway()
|
| | | {
|
| | | //æå¼mqttè¿æ¥(å³ä½¿ä¿åå¨å
åå½ä¸ä¹æ²¡é®é¢,å ä¸ºå¦æå¹¿æä¸å°,åå®ä¸ä¼å»ºç«é¾æ¥)
|
| | | for (int i = 0; i < ZbGateway.GateWayList.Count; i++)
|
| | | //å 为é£ä¸ç¬é´ï¼æå¯è½mqttä¼å 忥,æä»¥å
å ç¼å
|
| | | var list = new List<ZbGateway>();
|
| | | list.AddRange(ZbGateway.GateWayList);
|
| | | //ç¶åæ¸
空æ
|
| | | ZbGateway.GateWayList.Clear();
|
| | | //æååæå¼mqttè¿æ¥
|
| | | for (int i = 0; i < list.Count; i++)
|
| | | {
|
| | | ZbGateway.GateWayList[i].DisConnectLocalMqttClient("G");
|
| | | list[i].DisConnectLocalMqttClient("G");
|
| | | }
|
| | | //å è½½æ¬å°ç½å
³å¯¹è±¡
|
| | | if (roadGateway == true)
|
| | | {
|
| | | List<string> listFile = this.GetAllGatewayFile();
|
| | | //ååºååæ·»å å°ç¼å
|
| | | foreach (string file in listFile)
|
| | | {
|
| | | //仿件ä¸ååºåååºç½å
³å¯¹è±¡
|
| | | var gateway = this.GetGatewayFromFile(file);
|
| | | if (gateway == null)
|
| | | {
|
| | | continue;
|
| | | }
|
| | | var tempWay = ZbGateway.GateWayList.Find(obj => (obj != null) && (obj.GwId == gateway.GwId)); |
| | | if (tempWay == null) |
| | | { |
| | | ZbGateway.GateWayList.Add(tempWay); |
| | | }
|
| | | }
|
| | | }
|
| | | list.Clear();
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
| | | /// <returns></returns>
|
| | | public List<FirmwareVersionInfo> GetGatewayAllNewVersion(ZbGateway zbGateway, ShowErrorMode mode = ShowErrorMode.YES)
|
| | | {
|
| | | //妿æ¯å±ç¤ºæ¨¡æ¿,æè
æ¯èæä½å®
çè¯,没æä»ä¹æ°çæ¬ç说æ³
|
| | | if (Common.Config.Instance.Home.IsVirtually == true || Common.Config.Instance.Home.IsShowTemplate == true)
|
| | | {
|
| | | return new List<FirmwareVersionInfo> { null, null, null };
|
| | | }
|
| | | //è·åç½å
³çæ¬ä¿¡æ¯
|
| | | var result = this.GetGatewayInfo(zbGateway, false, mode);
|
| | | if (result == null)
|
| | |
| | | /// <returns></returns>
|
| | | public List<ZbGatewayData.DriveCodeObj> GetListVDDriveCode(ZbGateway zbGateway)
|
| | | {
|
| | | //妿æ¯å±ç¤ºæ¨¡æ¿,æè
æ¯èæä½å®
çè¯,ç´æ¥åç¼å
|
| | | if (Common.Config.Instance.Home.IsVirtually == true || Common.Config.Instance.Home.IsShowTemplate == true)
|
| | | {
|
| | | //忬å°å¯¹è±¡
|
| | | var localgw = this.GetLocalGateway(zbGateway.GwId);
|
| | | return localgw != null ? zbGateway.DriveCodeList : zbGateway.DriveCodeList;
|
| | | }
|
| | | var jObject = new Newtonsoft.Json.Linq.JObject { { "Cluster_ID", 0 }, { "Command", 505 } };
|
| | | var result = this.SendJobjectDataToGateway(zbGateway, "VirtualDrive/CatDriveCode", jObject.ToString(), "VirtualDrive/CatDriveCode_Respon");
|
| | | if (result.ErrorMsg != null)
|
| | |
| | | /// <returns></returns>
|
| | | public int IsMainGateway(string waiID)
|
| | | {
|
| | | var realWay = ZbGateway.GateWayList.Find((obj) =>
|
| | | {
|
| | | return obj.GwId == waiID;
|
| | | });
|
| | | //èæç½å
³ä¹è¿å 0
|
| | | if (realWay == null || realWay.IsVirtual == true)
|
| | | ZbGateway zbGateway = null;
|
| | | if (this.GetRealGateway(ref zbGateway, waiID) == false)
|
| | | {
|
| | | return 0;
|
| | | }
|
| | | return realWay.IsMainGateWay == true ? 1 : 2;
|
| | | return zbGateway.IsMainGateWay == true ? 1 : 2;
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
| | | //è·åæ§å¶ä¸»äººè´¦å·çToken
|
| | | pra.ReqDto.LoginAccessToken = UserCenterLogic.GetConnectMainToken();
|
| | |
|
| | | var result = UserCenterLogic.GetResponseDataByRequestHttps("App/GetSingleHomeGatewayPagger", true, pra, list, false);
|
| | | var result = UserCenterLogic.GetResponseDataByRequestHttps("App/GetSingleHomeGatewayPagger", true, pra, list);
|
| | | if (string.IsNullOrEmpty(result) == true)
|
| | | {
|
| | | canBreak = true;
|
| | |
| | | this.ShowTipMsg(msg);
|
| | | }
|
| | | return false;
|
| | | }
|
| | | if (((decimal)Longitude) == 0 && ((decimal)Latitude) == 0)
|
| | | {
|
| | | //没æé
ç½®è¿ç»çº¬åº¦
|
| | | return true;
|
| | | }
|
| | |
|
| | | int result = -1;
|
| | |
| | |
|
| | | List<string> listNotShowError = new List<string>() { "NoExist", "NoBind", "NoRecord", "NotCheck" };
|
| | |
|
| | | bool result = UserCenterLogic.GetResultStatuByRequestHttps("App/ReleaseGatewayToHome", true, Pra, listNotShowError, false);
|
| | | bool result = UserCenterLogic.GetResultStatuByRequestHttps("App/ReleaseGatewayToHome", true, Pra, listNotShowError);
|
| | | if (result == false)
|
| | | {
|
| | | return false;
|
| | |
| | | {
|
| | | bindGateway.BindGateways.Clear();
|
| | | bindGateway.BindGateways.Add(gwId);
|
| | | var result = UserCenterLogic.GetResultCodeByRequestHttps("App/BindGatewayToHome", true, bindGateway, new List<string> { "NotCheck" }, false);
|
| | | var result = UserCenterLogic.GetResultCodeByRequestHttps("App/BindGatewayToHome", true, bindGateway, new List<string> { "NotCheck" });
|
| | | if (result == "Success")
|
| | | {
|
| | | this.listBackupGwId.Remove(gwId);
|
| | |
| | |
|
| | | #endregion
|
| | |
|
| | | #region â è鏣卿¨é
|
| | | //è鏣卿°æ®
|
| | | else if (report.DeviceStatusReport.CluterID == 1282)
|
| | | {
|
| | | //miniå¤ç¯
|
| | | if (Common.LocalDevice.Current.IsMiniLight(locadevice) == true)
|
| | | {
|
| | | foreach (var attData in report.DeviceStatusReport.AttriBute)
|
| | | {
|
| | | if (attData.AttributeId == 0)
|
| | | {
|
| | | //è¿ä¸ªæ¯æ¥è¦æç»æ¶é´(大äº2ç§æ¶,æ 记为è¿å¨åç)
|
| | | ((ColorTemperatureLight)locadevice).IsBuzzerRing = attData.AttriButeData > 2 ? true : false;
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | | #endregion
|
| | |
|
| | | #region â çªå¸æ°æ®
|
| | | //çªå¸æ°æ®
|
| | | else if (report.DeviceStatusReport.CluterID == 258)
|
| | |
| | | /// <summary>
|
| | | /// è·åäºç«¯ä½å®
å表
|
| | | /// </summary>
|
| | | /// <param name="checkNetwork">æ¯å¦æ£æµç½ç»,å¦æè®¾ç½®æ£æµçè¯,å½ä¸è½èç½æ¶,ç´æ¥è¿åæ¬å°ä½å®
</param>
|
| | | /// <returns></returns>
|
| | | public List<string> GetHomeListsFromDb(bool checkNetwork)
|
| | | public List<string> GetHomeListsFromDb()
|
| | | {
|
| | | if (checkNetwork == true && HdlWifiLogic.Current.CanAccessHttp == false)
|
| | | if (HdlWifiLogic.Current.CanAccessHttp == false)
|
| | | {
|
| | | //å½åæ æ³èç½
|
| | | return Config.Instance.HomeFilePathList;
|
| | |
| | | Common.LocalDevice.Current.DeleteRealDeviceByRoomId(roomId);
|
| | | if (refreshLeftView == true)
|
| | | {
|
| | | //HdlAutoBackupLogic.DeleteFile(roomFilePath);
|
| | | //å·æ°æ¿é´è§å¾å表
|
| | | this.RefreshRoomListView();
|
| | | }
|
| | |
| | | zoneInfo.ZoneId = allData.ZoneId;
|
| | | zoneInfo.ZoneName = allData.ZoneName;
|
| | |
|
| | | //ä¿¡æ¯æ¨é
|
| | | zoneInfo.InformationPush = allData.IsDisablePushMessage;
|
| | |
|
| | | //å¤ç设å¤
|
| | | foreach (var data2 in allData.DeviceList)
|
| | | {
|
| | |
| | |
|
| | | zoneInfo.dicAlarmDevice.Clear();
|
| | | zoneInfo.dicScenes.Clear();
|
| | |
|
| | | //ä¿¡æ¯æ¨é
|
| | | zoneInfo.InformationPush = resData.IsDisablePushMessage;
|
| | |
|
| | | foreach (var data in resData.Actions)
|
| | | {
|
| | |
| | | {
|
| | | return false;
|
| | | }
|
| | |
|
| | | if (zoneId > 3)
|
| | | {
|
| | | zoneId = 3;
|
| | | }
|
| | | //ç¶æåæ´
|
| | | var result = await Safeguard.DisablePushMessageAsync(zoneId, statu);
|
| | | if (result == null || result.disablePushMessageResponseData == null || result.disablePushMessageResponseData.Result == 1)
|
| | |
| | | /// <returns>0:æ¨é 1:䏿¨é</returns>
|
| | | public int GetGarrisonInformationPushStatu(int zoneId)
|
| | | {
|
| | | if (zoneId > 3)
|
| | | {
|
| | | zoneId = 3;
|
| | | }
|
| | | if (this.dicAllZoneInfo.ContainsKey(zoneId) == false)
|
| | | {
|
| | | return 1;
|
| | |
| | | /// </summary>
|
| | | public string ZoneName;
|
| | | /// <summary>
|
| | | /// ä¿¡æ¯æ¨é 0:æ¨é 1:䏿¨é |
| | | /// ä¿¡æ¯æ¨é 0:æ¨é 1:䏿¨é (åªæé²åºID:1,2,3æä¼æã4,5çé½å½ä¸º3,å ä¸ºå®æ¯ä»¥é²åºæ¨¡å¼ID(ActionType)为åä½ç)
|
| | | /// </summary>
|
| | | public int InformationPush = 1;
|
| | | /// <summary>
|
| | |
| | | if (topic == gatewayID + "/" + "Scene/GetAllInfo_Respon")
|
| | | {
|
| | | var sceneGetAllInfo = Newtonsoft.Json.JsonConvert.DeserializeObject<Scene.GetSceneAllInfo>(jobject["Data"].ToString());
|
| | | if (sceneGetAllInfo.ScenesSum != 0)
|
| | | {
|
| | | //妿ç½å
³é颿²¡æåºæ¯çè¯,å®ä¹ä¼æ¨è¿ä¸ªä¸è¥¿è¿æ¥
|
| | | listScene.Add(sceneGetAllInfo);
|
| | | }
|
| | | listScene.Add(sceneGetAllInfo);
|
| | |
|
| | | //æ´å¤æ¥æ¶å¾å°åºæ¯
|
| | | canReceve = true;
|
| | |
| | | /// <summary>
|
| | | /// è·åæ·»å æ§è¡ç®æ å°åºæ¯çå½ä»¤
|
| | | /// </summary>
|
| | | /// <param name="sceneId">åºæ¯id</param>
|
| | | /// <param name="listAdjustTarget">æ§è¡ç®æ </param>
|
| | | /// <param name="dicChangedMac">交æ¢mac key:listAdjustTargetå½åçMac value:转æ¢çmac</param>
|
| | | /// <param name="sceneName">åºæ¯åç§°(ç¹æ®ç¨é,请å¿è®¾ç½®)</param>
|
| | | /// <param name="sceneId"></param>
|
| | | /// <param name="listAdjustTarget"></param>
|
| | | /// <returns></returns>
|
| | | public List<string> GetAddTargetToSceneCommand(int sceneId, List<Scene.DeviceListData> listAdjustTarget, Dictionary<string, string> dicChangedMac = null, string sceneName = null)
|
| | | public List<string> GetAddTargetToSceneCommand(int sceneId, List<Scene.DeviceListData> listAdjustTarget)
|
| | | {
|
| | | var listCommand = new List<string>();
|
| | | int index = 1;
|
| | | for (int i = 0; i < listAdjustTarget.Count; i++)
|
| | | {
|
| | | var jObject = new Newtonsoft.Json.Linq.JObject { { "Cluster_ID", 0 }, { "Command", 820 } };
|
| | |
| | | //设å¤
|
| | | if (data.Type == 0)
|
| | | {
|
| | | string deviceAddr = data.DeviceAddr;
|
| | | if (dicChangedMac != null)
|
| | | {
|
| | | //妿ä¸å
å«,åä¸ä½ä¸ºå¤ç对象
|
| | | if (dicChangedMac.ContainsKey(deviceAddr) == false)
|
| | | {
|
| | | continue;
|
| | | }
|
| | | deviceAddr = dicChangedMac[deviceAddr];
|
| | | }
|
| | |
|
| | | var taskList = new Newtonsoft.Json.Linq.JArray { };
|
| | | foreach (var taskInfo in data.TaskList)
|
| | | {
|
| | |
| | | { "Data1", taskInfo.Data1},{ "Data2",taskInfo.Data2}};
|
| | | taskList.Add(tInfo);
|
| | | }
|
| | | var data2 = new Newtonsoft.Json.Linq.JObject {{ "ScenesId",sceneId},{ "Type", 0} ,{ "DeviceAddr",deviceAddr} ,
|
| | | { "Epoint", data.Epoint} ,{ "TaskList", taskList },{ "DelayTime", 0} ,{ "MemberNumber",index}};
|
| | | if (sceneName != null)
|
| | | {
|
| | | data2.Add(new Newtonsoft.Json.Linq.JProperty("ScenesName", sceneName));
|
| | | }
|
| | | var data2 = new Newtonsoft.Json.Linq.JObject {{ "ScenesId",sceneId},{ "Type", 0} ,{ "DeviceAddr",data.DeviceAddr} ,
|
| | | { "Epoint", data.Epoint} ,{ "TaskList", taskList },{ "DelayTime", 0} ,{ "MemberNumber",i + 1}};
|
| | | jObject.Add("Data", data2);
|
| | | }
|
| | | //åºæ¯
|
| | | else if (data.Type == 1)
|
| | | {
|
| | | var data2 = new Newtonsoft.Json.Linq.JObject {{ "ScenesId",sceneId},{ "Type", 1} ,
|
| | | { "ElseScenesId", data.ElseScenesId },{ "DelayTime", 0} ,{ "MemberNumber",index} };
|
| | | if (sceneName != null)
|
| | | {
|
| | | data2.Add(new Newtonsoft.Json.Linq.JProperty("ScenesName", sceneName));
|
| | | }
|
| | | { "ElseScenesId", data.ElseScenesId },{ "DelayTime", 0} ,{ "MemberNumber",i + 1} };
|
| | | jObject.Add("Data", data2);
|
| | | }
|
| | | //å»¶æ¶
|
| | | else
|
| | | {
|
| | | var data2 = new Newtonsoft.Json.Linq.JObject {{ "Type", 2} ,{ "ScenesId",sceneId},
|
| | | { "DelayTime", data.DelayTime} ,{ "MemberNumber",index}};
|
| | | if (sceneName != null)
|
| | | {
|
| | | data2.Add(new Newtonsoft.Json.Linq.JProperty("ScenesName", sceneName));
|
| | | }
|
| | | { "DelayTime", data.DelayTime} ,{ "MemberNumber",i + 1}};
|
| | | jObject.Add("Data", data2);
|
| | | }
|
| | | listCommand.Add(jObject.ToString());
|
| | | index++;
|
| | | }
|
| | | return listCommand;
|
| | | }
|
| | |
| | | }
|
| | | //éæ°åå§åSocket
|
| | | ZigBee.Common.Application.FindGateWaySocket.Stop();
|
| | | System.Threading.Thread.Sleep(100);
|
| | |
|
| | | //æææ¬å°è¿æ¥
|
| | | HdlGatewayLogic.Current.ClearAllRealGatewayConection(true);
|
| | | HdlGatewayLogic.Current.ClearAllRealGateway();
|
| | | //ææè¿ç¨
|
| | | ZigBee.Device.ZbGateway.DisConnectRemoteMqttClient();
|
| | |
|
| | | //妿æ¯wifi
|
| | | if (value == 2)
|
| | | {
|
| | | ZigBee.Common.Application.FindGateWaySocket.Start();
|
| | |
| | | /// <param name="checkAuthority">æ¯å¦æ£æµæéï¼è¯¥åæ°ä¸è½çç¥</param>
|
| | | /// <param name="obj">ä¸ä¸ªç±»</param>
|
| | | /// <param name="listNotShowError">ä¸éè¦æ¾ç¤ºé误çé误类å«(æ¥å£è¿åçé误类å«),妿å
å«ï¼åä¼è¿åãtrueã</param>
|
| | | /// <param name="setAgain">å½åé失败æ¶,æ¯å¦éå,é»è®¤éå</param>
|
| | | public static bool GetResultStatuByRequestHttps(string RequestName, bool checkAuthority, object obj, List<string> listNotShowError = null, bool setAgain = true)
|
| | | /// <param name="setAgain">å½åé失败æ¶,æ¯å¦éå,é»è®¤ä¸éå</param>
|
| | | public static bool GetResultStatuByRequestHttps(string RequestName, bool checkAuthority, object obj, List<string> listNotShowError = null, bool setAgain = false)
|
| | | {
|
| | | if (HdlWifiLogic.Current.CanAccessHttp == false && setAgain == false)
|
| | | {
|
| | | //å½åæ æ³è®¿é®ç½ç»(å½éè¦éæ°åéæ¶,è·³è¿è¿ä¸ªå¤æ)
|
| | | ShowNotNetMsg(listNotShowError);
|
| | | return false;
|
| | | }
|
| | | //è·åæ¥å£çè¿æ¥æ¨¡å¼
|
| | | var connectMode = GetHttpConnectMode(checkAuthority);
|
| | | //è·å仿¥å£é£éåå°çæ¯ç¹æ°æ®
|
| | | var byteData = GettByteResponsePack(RequestName, connectMode, obj);
|
| | | if (byteData == null)
|
| | | if (byteData == null && setAgain == true)
|
| | | {
|
| | | if (setAgain == false)
|
| | | {
|
| | | //å½åæ æ³è®¿é®ç½ç»
|
| | | ShowNotNetMsg(RequestName, listNotShowError);
|
| | | //䏿å®éå
|
| | | return false;
|
| | | }
|
| | | byteData = ResetByteRequestHttps(RequestName, checkAuthority, obj);
|
| | |
| | | /// <param name="checkAuthority">æ¯å¦æ£æµæéï¼è¯¥åæ°ä¸è½çç¥</param>
|
| | | /// <param name="obj">ä¸ä¸ªç±»</param>
|
| | | /// <param name="listNotShowError">ä¸éè¦æ¾ç¤ºé误çé误类å«(æ¥å£è¿åçé误类å«),妿å
å«ï¼åä¼è¿åãtrueã</param>
|
| | | /// <param name="setAgain">å½åé失败æ¶,æ¯å¦éå,é»è®¤éå</param>
|
| | | /// <param name="setAgain">å½åé失败æ¶,æ¯å¦éå,é»è®¤ä¸éå</param>
|
| | | /// </param>
|
| | | public static string GetResultCodeByRequestHttps(string RequestName, bool checkAuthority, object obj, List<string> listNotShowError = null, bool setAgain = true)
|
| | | public static string GetResultCodeByRequestHttps(string RequestName, bool checkAuthority, object obj, List<string> listNotShowError = null, bool setAgain = false)
|
| | | {
|
| | | if (HdlWifiLogic.Current.CanAccessHttp == false && setAgain == false)
|
| | | {
|
| | | //å½åæ æ³è®¿é®ç½ç»(å½éè¦éæ°åéæ¶,è·³è¿è¿ä¸ªå¤æ)
|
| | | ShowNotNetMsg(listNotShowError);
|
| | | return "Error";
|
| | | }
|
| | |
|
| | | //è·åæ¥å£çè¿æ¥æ¨¡å¼
|
| | | var connectMode = GetHttpConnectMode(checkAuthority);
|
| | | //è·å仿¥å£é£éåå°çæ¯ç¹æ°æ®
|
| | |
| | | {
|
| | | if (setAgain == false)
|
| | | {
|
| | | //å½åæ æ³è®¿é®ç½ç»
|
| | | ShowNotNetMsg(RequestName, listNotShowError);
|
| | | //䏿å®éå
|
| | | return "Error";
|
| | | }
|
| | | byteData = ResetByteRequestHttps(RequestName, checkAuthority, obj);
|
| | |
| | | /// <param name="checkAuthority">æ¯å¦æ£æµæéï¼è¯¥åæ°ä¸è½çç¥</param>
|
| | | /// <param name="obj">ä¸ä¸ªç±»</param>
|
| | | /// <param name="listNotShowError">ä¸éè¦æ¾ç¤ºé误çé误类å«(æ¥å£è¿åçé误类å«),妿å
å«ï¼åä¼è¿åãtrueã</param>
|
| | | /// <param name="setAgain">å½åé失败æ¶,æ¯å¦éå,é»è®¤éå</param>
|
| | | /// <param name="setAgain">å½åé失败æ¶,æ¯å¦éå,é»è®¤ä¸éå</param>
|
| | | /// </param>
|
| | | public static string GetResponseDataByRequestHttps(string RequestName, bool checkAuthority, object obj, List<string> listNotShowError = null, bool setAgain = true)
|
| | | public static string GetResponseDataByRequestHttps(string RequestName, bool checkAuthority, object obj, List<string> listNotShowError = null, bool setAgain = false)
|
| | | {
|
| | | if (HdlWifiLogic.Current.CanAccessHttp == false && setAgain == false)
|
| | | {
|
| | | //å½åæ æ³è®¿é®ç½ç»(å½éè¦éæ°åéæ¶,è·³è¿è¿ä¸ªå¤æ)
|
| | | ShowNotNetMsg(listNotShowError);
|
| | | return null;
|
| | | }
|
| | | //è·åæ¥å£çè¿æ¥æ¨¡å¼
|
| | | var connectMode = GetHttpConnectMode(checkAuthority);
|
| | | //è·å仿¥å£é£éåå°çæ¯ç¹æ°æ®
|
| | |
| | | {
|
| | | if (setAgain == false)
|
| | | {
|
| | | //å½åæ æ³è®¿é®ç½ç»
|
| | | ShowNotNetMsg(RequestName, listNotShowError);
|
| | | //䏿å®éå
|
| | | return null;
|
| | | }
|
| | | byteData = ResetByteRequestHttps(RequestName, checkAuthority, obj);
|
| | |
| | | /// <param name="checkAuthority">æ¯å¦æ£æµæéï¼è¯¥åæ°ä¸è½çç¥</param>
|
| | | /// <param name="obj">ä¸ä¸ªç±»</param>
|
| | | /// <param name="listNotShowError">ä¸éè¦æ¾ç¤ºé误çé误类å«(æ¥å£è¿åçé误类å«),妿å
å«ï¼åä¼è¿åãtrueã</param>
|
| | | /// <param name="setAgain">å½åé失败æ¶,æ¯å¦éå,é»è®¤éå</param>
|
| | | public static byte[] GetByteResponseDataByRequestHttps(string RequestName, bool checkAuthority, object obj, List<string> listNotShowError = null, bool setAgain = true)
|
| | | /// <param name="setAgain">å½åé失败æ¶,æ¯å¦éå,é»è®¤ä¸éå</param>
|
| | | public static byte[] GetByteResponseDataByRequestHttps(string RequestName, bool checkAuthority, object obj, List<string> listNotShowError = null, bool setAgain = false)
|
| | | {
|
| | | if (HdlWifiLogic.Current.CanAccessHttp == false && setAgain == false)
|
| | | {
|
| | | //å½åæ æ³è®¿é®ç½ç»(å½éè¦éæ°åéæ¶,è·³è¿è¿ä¸ªå¤æ)
|
| | | ShowNotNetMsg(listNotShowError);
|
| | | return null;
|
| | | }
|
| | | //è·åæ¥å£çè¿æ¥æ¨¡å¼
|
| | | var connectMode = GetHttpConnectMode(checkAuthority);
|
| | | //è·å仿¥å£é£éåå°çæ¯ç¹æ°æ®
|
| | |
| | | {
|
| | | if (setAgain == false)
|
| | | {
|
| | | //å½åæ æ³è®¿é®ç½ç»
|
| | | ShowNotNetMsg(RequestName, listNotShowError);
|
| | | //䏿å®éå
|
| | | return null;
|
| | | }
|
| | | revertObj = ResetByteRequestHttps(RequestName, checkAuthority, obj);
|
| | |
| | | if (count == 3)
|
| | | {
|
| | | //æ¾ç¤ºæ²¡æç½ç»çMsg
|
| | | ShowNotNetMsg(RequestName, null);
|
| | | ShowNotNetMsg(null);
|
| | | break;
|
| | | }
|
| | | }
|
| | |
| | | /// <summary>
|
| | | /// æ¾ç¤ºæ²¡æç½ç»çMsg
|
| | | /// </summary>
|
| | | private static void ShowNotNetMsg(string RequestName, List<string> listNotShowError)
|
| | | private static void ShowNotNetMsg(List<string> listNotShowError)
|
| | | {
|
| | | if (listNotShowError != null && listNotShowError.Contains("NotCheck") == true)
|
| | | {
|
| | | //䏿£æµ
|
| | | return;
|
| | | }
|
| | | //HdlLogLogic.Current.WriteLog(-1, "å½åæ ç½ç»è¿æ¥:" + RequestName);
|
| | |
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | // å½åæ ç½ç»è¿æ¥,请确认ç½ç»
|
| | |
| | | #endregion
|
| | |
|
| | | #region â å·æ°æ¬å°ç¼å_______________________
|
| | |
|
| | | /// <summary>
|
| | | /// å·æ°æ¬å°ææç¼å(ç®åæ¤æ¹æ³åªæä¾ç»æ¢å¤å¤ä»½æ°æ®ä½¿ç¨)
|
| | | /// å·æ°æ¬å°ææç¼å
|
| | | /// </summary>
|
| | | public static void RefreshAllMemory()
|
| | | {
|
| | | //å·æ°ä½å®
对象
|
| | | RefreshHomeObject();
|
| | | //æ ¹æ®æ¨¡æ¿æä»¶,æ¢å¤æ°æ®
|
| | | TemplateData.TemplateCommonLogic.Current.RecoverDataByTemplateBinFile();
|
| | | //强å¶çæè®¾å¤åç½å
³æä»¶
|
| | | TemplateData.TemplateCommonLogic.Current.CreatDeviceAndGatewayFileFromMemoryByForce();
|
| | | //å·æ°æ¬å°ç½å
³æä»¶
|
| | | HdlGatewayLogic.Current.ReFreshByLocal();
|
| | | //å·æ°æ¬å°è®¾å¤
|
| | |
| | | //æå¼è¿ç¨Mqttè¿æ¥,éæ°è¿æ¥
|
| | | HdlThreadLogic.Current.RunThread(async () =>
|
| | | {
|
| | | HdlGatewayLogic.Current.ClearAllRealGatewayConection(true);
|
| | | HdlGatewayLogic.Current.ClearAllRealGateway();
|
| | | await ZigBee.Device.ZbGateway.DisConnectRemoteMqttClient();
|
| | | }, ShowErrorMode.NO);
|
| | | }
|
| | |
| | |
|
| | | //æ¸
空å½åä½å®
id
|
| | | Config.Instance.HomeId = string.Empty;
|
| | | HdlGatewayLogic.Current.ClearAllRealGatewayConection(false);
|
| | | HdlGatewayLogic.Current.ClearAllRealGateway();
|
| | |
|
| | | //æå¼è¿ç¨Mqttè¿æ¥
|
| | | HdlThreadLogic.Current.RunThread(async () =>
|
| | |
| | | }
|
| | | else if (view is UserView.UserPage)
|
| | | {
|
| | | //å·æ°ä¸»é¡µ
|
| | | UserView.UserPage.Instance.ReFreshControl();
|
| | | var form = ((UserView.UserPage)view).GetNowActionForm();
|
| | | form?.FormActionAgainEvent();
|
| | | return;
|
| | | }
|
| | | else
|
| | |
| | | //æå¼è¿ç¨Mqttè¿æ¥,éæ°è¿æ¥
|
| | | HdlThreadLogic.Current.RunThread(async () =>
|
| | | {
|
| | | HdlGatewayLogic.Current.ClearAllRealGatewayConection(true);
|
| | | HdlGatewayLogic.Current.ClearAllRealGateway();
|
| | | await ZigBee.Device.ZbGateway.DisConnectRemoteMqttClient();
|
| | | }, ShowErrorMode.NO);
|
| | |
|
| | | //å·æ°APPå䏿¬¡éæ©çç½å
³ID(å¯ä»¥åå¤è°ç¨,éè¦å¨ç½å
³åå§åå®äºä¹åæè½è°ç¨)
|
| | | HdlGatewayLogic.Current.RefreshAppOldSelectGatewayId();
|
| | |
|
| | | //å 载模æ¿ç¼å
|
| | | //TemplateData.TemplateCommonLogic.Current.LoadLocalTemplateMemoryData();
|
| | |
|
| | | //0:å·²ç»åæ¥è¿ï¼ä¸éè¦åæ¥,è¿ä¸ªæ¶åéè¦æç¤ºå¤ä»½
|
| | | if (result == 0 && ShowPrompted == true)
|
| | |
| | | HdlRoomLogic.Current.RefreshAllRoomByLocation();
|
| | | //å·æ°å·¦è¾¹å·æ°æ¿é´è§å¾å表
|
| | | HdlRoomLogic.Current.RefreshRoomListView();
|
| | | //å 载模æ¿ç¼å
|
| | | //TemplateData.TemplateCommonLogic.Current.LoadLocalTemplateMemoryData();
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | |
| | | get { return System.IO.Path.Combine(Common.Config.Instance.FullPath, "020945dd7966a7550090d3c04a04d93cd2278eb4e6aebcf6"); }
|
| | | }
|
| | | /// <summary>
|
| | | /// æ¬å°æ¨¡æ¿ç¼ååæ¾çãæä»¶å¤¹ã
|
| | | /// </summary>
|
| | | public static string LocalTemplateDirectory
|
| | | {
|
| | | get { return System.IO.Path.Combine(LocalMemoryDirectory, "1180648b252f370b18565d54115f2bece19fcc9985dd1f70"); }
|
| | | }
|
| | | /// <summary>
|
| | | /// ææä½å®
çæ¨¡æ¿ç¼ååæ¾çãæä»¶å¤¹ã
|
| | | /// </summary>
|
| | | public static string AllResidenceTemplateDirectory
|
| | | {
|
| | | get { return System.IO.Path.Combine(IO.FileUtils.RootPath, Common.Config.Instance.Guid, "f8e712a42227d8f6a8208b076c7e132fe9869f7f0aff3d37"); }
|
| | | }
|
| | | /// <summary>
|
| | | /// ä¿å设å¤éæ©ç模æ¿çãæä»¶ã
|
| | | /// </summary>
|
| | | public static string DeviceTemplateSelectFile
|
| | | {
|
| | | get { return System.IO.Path.Combine(LocalMemoryDirectory, "76d54eaedfd2124c4629cf8c4b8ae60f423c10556dfe50cb9de193a83c5653ef"); }
|
| | | }
|
| | | /// <summary>
|
| | | /// ä¿åç½å
³éæ©ç模æ¿çãæä»¶ã
|
| | | /// </summary>
|
| | | public static string GatewayTemplateSelectFile
|
| | | {
|
| | | get { return System.IO.Path.Combine(LocalMemoryDirectory, "fdac0d1dd857d946a524feb8ae4e69ecb048333261cb41f5fcc9932b35b09c2f"); }
|
| | | }
|
| | | /// <summary>
|
| | | /// 临æ¶ä¿åå½åæ¬å°å
¨é¨æä»¶çãæä»¶å¤¹ã
|
| | | /// </summary>
|
| | | public static string TemporaryBackupLocalFileDirectory
|
| | | {
|
| | | get { return System.IO.Path.Combine(Common.Config.Instance.FullPath, "eaa527389defe69899beb6df9a83228b281b4e57a63a654de1ad6d01ab956907"); }
|
| | | }
|
| | | /// <summary>
|
| | | /// 临æ¶ä¿åæ¬å°å½åå
¨é¨æ¨¡æ¿æä»¶çãæä»¶å¤¹ã
|
| | | /// </summary>
|
| | | public static string TemporaryBackupTemplateFileDirectory
|
| | | {
|
| | | get { return System.IO.Path.Combine(TemporaryBackupLocalFileDirectory, "f8e712a42227d8f6df0aa223fe0a1eda"); }
|
| | | }
|
| | | /// <summary>
|
| | | /// ä¿åæè§å馿¬¡æ°çãæä»¶ã
|
| | | /// </summary>
|
| | | public static string SuggestionFile
|
| | |
| | | get { return System.IO.Path.Combine(Shared.IO.FileUtils.RootPath, "cad1afb384fb482de753fc37ebe84f9e"); }
|
| | | }
|
| | | /// <summary>
|
| | | /// è°è¯æå
åéIDçãæä»¶ã
|
| | | /// </summary>
|
| | | public static string JiguangFile
|
| | | {
|
| | | get { return System.IO.Path.Combine(Shared.IO.FileUtils.RootPath, "e509ddd21100cb994f509fb28c2e4dd6"); }
|
| | | }
|
| | | /// <summary>
|
| | | /// è®°å½åé忥æ¶çæ°æ®Log
|
| | | /// </summary>
|
| | | public static string SendAndReceveDataLog
|
| | |
| | | public static string SocketReceiveDataLog
|
| | | {
|
| | | get { return System.IO.Path.Combine(Common.Config.Instance.FullPath, LocalMemoryDirectory, "SocketReceiveDataLog.log"); }
|
| | | }
|
| | | /// <summary>
|
| | | /// åæ¾å级åºä»¶çãæä»¶å¤¹ã
|
| | | /// </summary>
|
| | | public static string FirmwareUpdateDirectory
|
| | | {
|
| | | get { return System.IO.Path.Combine(Shared.IO.FileUtils.RootPath, "5b78084db39091e2f9144bc6209e3001e0328e968d16adbc"); }
|
| | | }
|
| | | /// <summary>
|
| | | /// åæ¾å级åºä»¶å表ååçãæä»¶ã
|
| | | /// </summary>
|
| | | public static string FirmwareUpdateList
|
| | | {
|
| | | get { return System.IO.Path.Combine(FirmwareUpdateDirectory, "5b78084db39091e2ee87891aa45d2c1ffc005ce4b9d67f51"); }
|
| | | }
|
| | | /// <summary>
|
| | | /// è°è¯æå
åéIDçãæä»¶ã
|
| | | /// </summary>
|
| | | public static string JiguangFile
|
| | | {
|
| | | get { return System.IO.Path.Combine(Shared.IO.FileUtils.RootPath, "e509ddd21100cb994f509fb28c2e4dd6"); }
|
| | | }
|
| | | /// <summary>
|
| | | /// åæ¾çæåéç»ç½å
³çåç§æ¨¡æ¿æ°æ®çãæä»¶å¤¹ã
|
| | | /// </summary>
|
| | | public static string CreatSendToGwTemplateDirectory
|
| | | {
|
| | | get { return System.IO.Path.Combine(Common.Config.Instance.FullPath, "96048b35f1d3d43725b1b2d7240878f804c003969e26330cd5afe42f509b63c7"); }
|
| | | }
|
| | | /// <summary>
|
| | | /// å享楼å±çãæä»¶åã
|
| | |
| | | /// æä»¶å å¯ç§é¥
|
| | | /// </summary> |
| | | public const string FileEncryptKey = "4^Olh_3f"; |
| | | /// <summary> |
| | | /// åææ ç转ä¹å符 |
| | | /// </summary> |
| | | public const string slash = "\\"; |
| | | /// <summary> |
| | | /// åå¼å·ç转ä¹å符 |
| | | /// </summary> |
| | | public const string douMarks = "\""; |
| | | } |
| | | } |
old mode 100755
new mode 100644
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// è°å
ç¯åç»§çµå¨ç¹æ®å¤çæ¹æ³ |
| | | /// <param name="curBindType">å½åç±»å 0:åºæ¯ 1:å¼å
³ 2:æåº§ 3:ç¯å
4:é®é³ 5:ç©ºè° 6:æ°é£</param> |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public static void UpdateLightCount(int curBindType) |
| | | { |
| | | |
| | | if (curBindType == 1 || curBindType == 2 || curBindType == 3) |
| | | { |
| | | curSwitchCount = 0; |
| | | curSocketCount = 0; |
| | | curLightFromRelayCount = 0; |
| | | curLightCount = 0; |
| | | |
| | | foreach (var key in bindTargetsFromMutilfunctionPanelList.Keys) |
| | | { |
| | | var bList = bindTargetsFromMutilfunctionPanelList[key]; |
| | | foreach (var bDev in bList) |
| | | { |
| | | var device = LocalDevice.Current.GetDevice(bDev.BindMacAddr, bDev.BindEpoint); |
| | | if (device == null) |
| | | { |
| | | continue; |
| | | } |
| | | if (bDev.KeyEpoint >= 52 && bDev.KeyEpoint <= 61) |
| | | { |
| | | if (device != null) |
| | | { |
| | | if (device.DfunctionType == DeviceFunctionType.Aå¼å
³) |
| | | { |
| | | curSwitchCount++; |
| | | } |
| | | else if (device.DfunctionType == DeviceFunctionType.Aæåº§) |
| | | { |
| | | curSocketCount++; |
| | | } |
| | | else if (device.DfunctionType == DeviceFunctionType.Aç¯å
) |
| | | { |
| | | curLightFromRelayCount++; |
| | | } |
| | | } |
| | | } |
| | | |
| | | if (bDev.KeyEpoint >= 22 && bDev.KeyEpoint <= 28) |
| | | { |
| | | if (device != null) |
| | | { |
| | | if (device.Type == DeviceType.DimmableLight && bDev.BindCluster == 8) |
| | | { |
| | | curLightCount++; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// æ¯æå¹é
ç端ç¹ä¸ªæ° |
| | | /// <param name="curBindType">å½åç±»å 0:åºæ¯ 1:å¼å
³ 2:æåº§ 3:ç¯å
4:é®é³ 5:ç©ºè° 6:æ°é£</param> |
| | | /// </summary> |
| | |
| | | btnRight.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | //åè·¯æ°å¤§äº1æå±å¼
|
| | | var listMacDevice = LocalDevice.Current.GetDevicesByMac(deviceMac, false);
|
| | | if (listMacDevice.Count > 1)
|
| | | if (Common.LocalDevice.Current.GetDevicesCountByMac(deviceMac) > 1)
|
| | | {
|
| | | btnRight.IsSelected = !btnRight.IsSelected;
|
| | | //å±å¼æè
æå æç»å表
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | if (LocalDevice.Current.IsMiniLight(listMacDevice[0]) == true)
|
| | | {
|
| | | //miniå¤ç¯çåè½è®¾ç½®çé¢
|
| | | var room = HdlRoomLogic.Current.GetRoomByDevice(listMacDevice[0]);
|
| | | var form = new MainPage.DeviceDetailInfoForm();
|
| | | form.AddForm(listMacDevice[0], room);
|
| | | }
|
| | | else
|
| | | {
|
| | | //设å¤ä¿¡æ¯çé¢
|
| | | var form = new DeviceMacInfoEditorForm();
|
| | | form.AddForm(deviceMac);
|
| | | }
|
| | | btnNew.Visible = false;
|
| | | var form = new DeviceMacInfoEditorForm();
|
| | | form.AddForm(deviceMac);
|
| | | //çé¢è·³è½¬,è®°å½å½åçæ£å¨æä½ç设å¤çMacå°å
|
| | | this.nowActionDeviceMac = deviceMac;
|
| | | }
|
| | |
| | | form2.AddForm(deviceMac);
|
| | | return;
|
| | | }
|
| | | var listMacDevice = LocalDevice.Current.GetDevicesByMac(deviceMac, false);
|
| | | if (LocalDevice.Current.IsMiniLight(listMacDevice[0]) == true)
|
| | | {
|
| | | //miniå¤ç¯çåè½è®¾ç½®çé¢
|
| | | var room = HdlRoomLogic.Current.GetRoomByDevice(listMacDevice[0]);
|
| | | var form = new MainPage.DeviceDetailInfoForm();
|
| | | form.AddForm(listMacDevice[0], room);
|
| | | }
|
| | | else
|
| | | {
|
| | | //设å¤ä¿¡æ¯çé¢
|
| | | var form = new DeviceMacInfoEditorForm();
|
| | | form.AddForm(deviceMac);
|
| | | }
|
| | |
|
| | | btnNew.Visible = false;
|
| | | var form = new DeviceMacInfoEditorForm();
|
| | | form.AddForm(deviceMac);
|
| | | //çé¢è·³è½¬,è®°å½å½åçæ£å¨æä½ç设å¤çMacå°å
|
| | | this.nowActionDeviceMac = deviceMac;
|
| | | };
|
| | |
| | | /// <summary>
|
| | | /// æ»å¨æ§ä»¶ä¸æå·æ°
|
| | | /// </summary>
|
| | | private void ListViewBeginHeaderRefreshing()
|
| | | private async void ListViewBeginHeaderRefreshing()
|
| | | {
|
| | | //妿å½åä½å®
æ¯èæç
|
| | | if (Common.Config.Instance.Home.IsVirtually == true)
|
| | |
| | | {
|
| | | //æ¾ç¤ºè¿åº¦æ¡
|
| | | ProgressBar.Show();
|
| | | int result2 = HdlGatewayLogic.Current.ReBindNewGateway(realWay);
|
| | | int result2 = await HdlGatewayLogic.Current.ReBindNewGateway(realWay);
|
| | | //å
³éè¿åº¦æ¡
|
| | | ProgressBar.Close();
|
| | | if (result2 == -1)
|
| | |
| | | btnGreanLinght.TextID = R.MyInternationalizationString.uPanelBackLightLighting;
|
| | | framePic.AddChidren(btnGreanLinght);
|
| | |
|
| | | //é¿ææ¤æé®
|
| | | string textMsg = Language.StringByID(R.MyInternationalizationString.uLongPressThisButton);
|
| | | //ä»»ææé®é¿æ5ç§
|
| | | string textMsg = Language.StringByID(R.MyInternationalizationString.uLongClickEachPanelSomeSecond);
|
| | | if (textMsg.Contains("{0}") == true)
|
| | | {
|
| | | textMsg = string.Format(textMsg, "5");
|
| | | }
|
| | | var btnSecond = new NormalViewControl(this.GetPictrueRealSize(400), this.GetPictrueRealSize(45), false);
|
| | | btnSecond.X = this.GetPictrueRealSize(441);
|
| | | btnSecond.Y = this.GetPictrueRealSize(526);
|
| | | btnSecond.Y = this.GetPictrueRealSize(583);
|
| | | btnSecond.TextColor = UserCenterColor.Current.TextGrayColor3;
|
| | | btnSecond.TextSize = 10;
|
| | | btnSecond.Text = textMsg;
|
| | |
| | | btnGreanLinght.TextID = R.MyInternationalizationString.uPanelBackLightLighting;
|
| | | framePic.AddChidren(btnGreanLinght);
|
| | |
|
| | | //é¿ææ¤æé®
|
| | | string textMsg = Language.StringByID(R.MyInternationalizationString.uLongPressThisButton);
|
| | | //ä»»ææé®é¿æ5ç§
|
| | | string textMsg = Language.StringByID(R.MyInternationalizationString.uLongClickEachPanelSomeSecond);
|
| | | if (textMsg.Contains("{0}") == true)
|
| | | {
|
| | | textMsg = string.Format(textMsg, "5");
|
| | | }
|
| | | var btnSecond = new NormalViewControl(this.GetPictrueRealSize(400), this.GetPictrueRealSize(45), false);
|
| | | btnSecond.X = this.GetPictrueRealSize(441);
|
| | | btnSecond.Y = this.GetPictrueRealSize(526);
|
| | | btnSecond.Y = this.GetPictrueRealSize(583);
|
| | | btnSecond.TextColor = UserCenterColor.Current.TextGrayColor3;
|
| | | btnSecond.TextSize = 10;
|
| | | btnSecond.Text = textMsg;
|
| | |
| | | btnGreanLinght.TextID = R.MyInternationalizationString.uPanelBackLightLighting;
|
| | | framePic.AddChidren(btnGreanLinght);
|
| | |
|
| | | //é¿ææ¤æé®
|
| | | string textMsg = Language.StringByID(R.MyInternationalizationString.uLongPressThisButton);
|
| | | //ä»»ææé®é¿æ5ç§
|
| | | string textMsg = Language.StringByID(R.MyInternationalizationString.uLongClickEachPanelSomeSecond);
|
| | | if (textMsg.Contains("{0}") == true)
|
| | | {
|
| | | textMsg = string.Format(textMsg, "5");
|
| | | }
|
| | | var btnSecond = new NormalViewControl(this.GetPictrueRealSize(400), this.GetPictrueRealSize(45), false);
|
| | | btnSecond.X = this.GetPictrueRealSize(441);
|
| | | btnSecond.Y = this.GetPictrueRealSize(526);
|
| | | btnSecond.Y = this.GetPictrueRealSize(583);
|
| | | btnSecond.TextColor = UserCenterColor.Current.TextGrayColor3;
|
| | | btnSecond.TextSize = 10;
|
| | | btnSecond.Text = textMsg;
|
| | |
| | | /// åçéæ©çé¢è²æ¾ç¤ºæ§ä»¶(å
æ¡)
|
| | | /// </summary>
|
| | | private IconViewControl wheelSelectIcon2 = null;
|
| | | /// <summary>
|
| | | /// æ¯å¦æ¯é¢è²éæ©
|
| | | /// </summary>
|
| | | private bool isColorSelect = false;
|
| | | /// <summary>
|
| | | /// é¢è²å¼è¾å
¥æ§ä»¶
|
| | | /// </summary>
|
| | | private TextInputControl txtColorInput = null;
|
| | |
|
| | | #endregion
|
| | |
|
| | |
| | | /// <param name="i_R">R</param>
|
| | | /// <param name="i_G">G</param>
|
| | | /// <param name="i_B">B</param>
|
| | | public void ShowForm(int i_R, int i_G, int i_B)
|
| | | public void ShowForm(int i_R,int i_G,int i_B)
|
| | | {
|
| | | this.ScrollEnabled = false;
|
| | |
|
| | |
| | | /// </summary>
|
| | | private void InitColorPictrueControl()
|
| | | {
|
| | | //åå§åé¢è²è¾å
¥æ§ä»¶
|
| | | this.txtColorInput = this.InitColorInputControl();
|
| | | //åçæ§ä»¶çFrameLayout
|
| | | var frameBack = new FrameLayout();
|
| | | frameBack.Y = Application.GetRealHeight(66);
|
| | | frameBack.Height = Application.GetRealHeight(1204);
|
| | | bodyFrameLayout.AddChidren(frameBack);
|
| | |
|
| | | var framePic = new FrameLayout();
|
| | | framePic.Width = this.GetPictrueRealSize(588);
|
| | | framePic.Height = this.GetPictrueRealSize(588);
|
| | | framePic.Gravity = Gravity.CenterHorizontal;
|
| | | framePic.Y = Application.GetRealHeight(192);
|
| | | bodyFrameLayout.AddChidren(framePic);
|
| | | framePic.Gravity = Gravity.Center;
|
| | | frameBack.AddChidren(framePic);
|
| | |
|
| | | //åçæ§ä»¶
|
| | | var colorPic = new ColorPicker();
|
| | |
| | | listRGB.Add(Convert.ToInt32(Convert.ToString(eColor[2])));
|
| | |
|
| | | //æ¾ç¤ºéæ©é¢è²çæ§ä»¶
|
| | | this.ShowNowSelectColorControl(eColor);
|
| | |
|
| | | //è·åé¢è²çç¿»è¯ææ¬
|
| | | isColorSelect = true;
|
| | | this.txtColorInput.Text = this.GetColorTextTranslate(listRGB[0], listRGB[1], listRGB[2]);
|
| | | if (nowSelectIcon1 != null)
|
| | | {
|
| | | nowSelectIcon1.BorderColor = UserCenterColor.Current.White;
|
| | | }
|
| | | wheelSelectIcon2.BackgroundColor = this.GetColorByRGB(eColor[0], eColor[1], eColor[2]);
|
| | | wheelSelectIcon1.BorderColor = 0xffcccccc;
|
| | | wheelSelectIcon1.Name = listRGB[0] + "-" + listRGB[1] + "-" + listRGB[2];
|
| | | nowSelectIcon1 = wheelSelectIcon1;
|
| | | };
|
| | | colorPic.MouseDownEventHandler += (sender, e) =>
|
| | | {
|
| | |
| | | //å½é¼ æ ç¹ä¸äºä»¶å¤ç
|
| | | colorPic.MouseDownEventHandler(sender, e);
|
| | | };
|
| | |
|
| | | //æå¨è¾å
¥å¼æ¹åäºä»¶
|
| | | this.txtColorInput.TextChangeEventHandler += (sender, value) =>
|
| | | {
|
| | | if (isColorSelect == true)
|
| | | {
|
| | | //è¿éæ¯ç±ç¹å»è²çè¿è¡èµå¼è§¦å
|
| | | isColorSelect = false;
|
| | | return;
|
| | | }
|
| | | //æ£æµè¾å
¥çé¢è²å¼
|
| | | var byteColor = this.CheckInputColorValue(value);
|
| | | if (byteColor == null)
|
| | | {
|
| | | return;
|
| | | }
|
| | | if (btnWhiteView.Visible == true)
|
| | | {
|
| | | //ç½ç¹éè
|
| | | btnWhiteView.Visible = false;
|
| | | }
|
| | |
|
| | | //è®°å½ç¼å
|
| | | listRGB = new List<int>();
|
| | | listRGB.Add(Convert.ToInt32(Convert.ToString(byteColor[0])));
|
| | | listRGB.Add(Convert.ToInt32(Convert.ToString(byteColor[1])));
|
| | | listRGB.Add(Convert.ToInt32(Convert.ToString(byteColor[2])));
|
| | |
|
| | | //æ¾ç¤ºéæ©é¢è²çæ§ä»¶
|
| | | this.ShowNowSelectColorControl(byteColor);
|
| | | };
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// åå§åé¢è²è¾å
¥æ§ä»¶
|
| | | /// </summary>
|
| | | /// <returns></returns>
|
| | | private TextInputControl InitColorInputControl()
|
| | | {
|
| | | //èªå®ä¹è²å¼ç夿¡
|
| | | var frameInput = new NormalFrameLayout();
|
| | | frameInput.Width = Application.GetRealWidth(458);
|
| | | frameInput.Height = Application.GetRealHeight(104);
|
| | | frameInput.Y = Application.GetRealHeight(1103);
|
| | | frameInput.Gravity = Gravity.CenterHorizontal;
|
| | | frameInput.BorderColor = 0xffcccccc;
|
| | | frameInput.Radius = (uint)Application.GetRealWidth(17);
|
| | | frameInput.BorderWidth = Application.GetRealWidth(3) == 0 ? 1 : (uint)Application.GetRealWidth(3);
|
| | | bodyFrameLayout.AddChidren(frameInput);
|
| | | var btnMark = new NormalViewControl(100, 58, true);
|
| | | btnMark.X = Application.GetRealWidth(35);
|
| | | btnMark.Gravity = Gravity.CenterVertical;
|
| | | btnMark.IsBold = true;
|
| | | btnMark.Text = "# ";
|
| | | btnMark.Width = btnMark.GetRealWidthByText();
|
| | | btnMark.TextColor = UserCenterColor.Current.TextGrayColor2;
|
| | | frameInput.AddChidren(btnMark);
|
| | | //èªå®ä¹è²å¼è¾å
¥æ¡
|
| | | var txtInput = new TextInputControl(400, 58, true);
|
| | | txtInput.X = btnMark.Right;
|
| | | txtInput.Gravity = Gravity.CenterVertical;
|
| | | txtInput.TextSize = 16;
|
| | | txtInput.FrameBorder = frameInput;
|
| | | frameInput.AddChidren(txtInput);
|
| | | //è²å¼å·ä¸º6ä½ï¼ç±ä»»ææ°å+忝ç»åï¼
|
| | | var btnTipView = new NormalViewControl(bodyFrameLayout.Width, Application.GetRealHeight(55), false);
|
| | | btnTipView.Y = frameInput.Bottom + Application.GetRealHeight(20);
|
| | | btnTipView.IsBold = true;
|
| | | btnTipView.TextAlignment = TextAlignment.Center;
|
| | | btnTipView.TextColor = UserCenterColor.Current.TextGrayColor2;
|
| | | btnTipView.TextSize = 12;
|
| | | btnTipView.TextID = R.MyInternationalizationString.uColorLengthMsg;
|
| | | bodyFrameLayout.AddChidren(btnTipView);
|
| | |
|
| | | return txtInput;
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// æ¾ç¤ºéæ©é¢è²çæ§ä»¶
|
| | | /// </summary>
|
| | | /// <param name="eColor"></param>
|
| | | private void ShowNowSelectColorControl(byte[] eColor)
|
| | | {
|
| | | //æ¾ç¤ºéæ©é¢è²çæ§ä»¶
|
| | | if (nowSelectIcon1 != null)
|
| | | {
|
| | | nowSelectIcon1.BorderColor = UserCenterColor.Current.White;
|
| | | }
|
| | | var uintColor = this.GetColorByRGB(eColor[0], eColor[1], eColor[2]);
|
| | | wheelSelectIcon2.BackgroundColor = uintColor;
|
| | | wheelSelectIcon1.BorderColor = 0xffcccccc;
|
| | | wheelSelectIcon1.Name = listRGB[0] + "-" + listRGB[1] + "-" + listRGB[2];
|
| | | nowSelectIcon1 = wheelSelectIcon1;
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
| | | btnFrame.Width = this.GetPictrueRealSize(80);
|
| | | btnFrame.Radius = (uint)this.GetPictrueRealSize(80) / 2;
|
| | | btnFrame.X = Xdefult + i * this.GetPictrueRealSize(80 + 24);
|
| | | btnFrame.Y = Application.GetRealHeight(880);
|
| | | btnFrame.Y = Application.GetRealHeight(1054);
|
| | | btnFrame.BackgroundColor = UserCenterColor.Current.White;
|
| | | btnFrame.BorderWidth = 1;
|
| | | btnFrame.BorderColor = UserCenterColor.Current.White;
|
| | |
| | | wheelSelectIcon1 = btnFrame;
|
| | | wheelSelectIcon2 = btnIcon;
|
| | | nowSelectIcon1 = btnFrame;
|
| | |
|
| | | //è·åé¢è²çç¿»è¯ææ¬
|
| | | isColorSelect = true;
|
| | | this.txtColorInput.Text = this.GetColorTextTranslate(i_R, i_G, i_B);
|
| | | }
|
| | |
|
| | | btnFrame.ButtonClickEvent += (sender, e) =>
|
| | |
| | | listRGB.Add(Convert.ToInt32(Convert.ToString(Arry[1])));
|
| | | listRGB.Add(Convert.ToInt32(Convert.ToString(Arry[2])));
|
| | | }
|
| | | //è·åé¢è²çç¿»è¯ææ¬
|
| | | isColorSelect = true;
|
| | | this.txtColorInput.Text = this.GetColorTextTranslate(listRGB[0], listRGB[1], listRGB[2]);
|
| | | };
|
| | | }
|
| | | }
|
| | |
| | | list.Add(new List<int>() { 255, 117, 67 });
|
| | |
|
| | | return list;
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// æ£æµè¾å
¥çé¢è²å¼
|
| | | /// </summary>
|
| | | /// <param name="colorText"></param>
|
| | | /// <returns></returns>
|
| | | private byte[] CheckInputColorValue(string colorText)
|
| | | {
|
| | | //åªæé¿åº¦ä¸º6æå¤ç
|
| | | if (colorText.Length != 6) { return null; }
|
| | |
|
| | | colorText = colorText.ToUpper();
|
| | | foreach (var c in colorText)
|
| | | {
|
| | | if (char.IsNumber(c) == true)
|
| | | {
|
| | | //æ°åçè¯,OK
|
| | | continue;
|
| | | }
|
| | | if ('A' <= c && c <= 'F')
|
| | | {
|
| | | //A-Fçè¯,OK
|
| | | continue;
|
| | | }
|
| | | return null;
|
| | | }
|
| | | int R = Convert.ToInt32(colorText.Substring(0, 2), 16);
|
| | | int G = Convert.ToInt32(colorText.Substring(2, 2), 16);
|
| | | int B = Convert.ToInt32(colorText.Substring(4, 2), 16);
|
| | | return new byte[] { (byte)R, (byte)G, (byte)B };
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// è·åé¢è²çç¿»è¯ææ¬
|
| | | /// </summary>
|
| | | /// <param name="i_R"></param>
|
| | | /// <param name="i_G"></param>
|
| | | /// <param name="i_B"></param>
|
| | | /// <returns></returns>
|
| | | private string GetColorTextTranslate(int i_R, int i_G, int i_B)
|
| | | {
|
| | | return Convert.ToString(i_R, 16).ToUpper().PadLeft(2, '0')
|
| | | + Convert.ToString(i_G, 16).ToUpper().PadLeft(2, '0')
|
| | | + Convert.ToString(i_B, 16).ToUpper().PadLeft(2, '0');
|
| | | }
|
| | |
|
| | | /// <summary>
|
old mode 100755
new mode 100644
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | if (!btnChoose.IsSelected) |
| | | { |
| | | targetList.Remove(device); |
| | |
| | | |
| | | EventHandler<MouseEventArgs> hander = (sender, e) => |
| | | { |
| | | if (curSupportBindEpointList.Count == 0 || curSupportBindEpointList.Count == targetScList.Count) |
| | | btnChoose.IsSelected = !btnChoose.IsSelected; |
| | | |
| | | if (curSupportBindEpointList.Count == 0) |
| | | { |
| | | new Tip() { MaxWidth = 150, Text = Language.StringByID(R.MyInternationalizationString.BindFull), Direction = AMPopTipDirection.None, CloseTime = 1 }.Show(Common.CommonPage.Instance); |
| | | return; |
| | | } |
| | | |
| | | btnChoose.IsSelected = !btnChoose.IsSelected; |
| | | if (!btnChoose.IsSelected) |
| | | { |
| | | targetScList.Remove(scene); |
| | |
| | | |
| | | //è·åæ¿é´å表 |
| | | supportRoomList = BindInfo.GetSupportRoomList(); |
| | | |
| | | //è·å颿¿å·²ç»ç»å®çå¹é
ç±»åçå表 |
| | | curBindTypeList = MutilfunctionPanelMethod.GetMatchBindList(curBindType); |
| | | |
old mode 100755
new mode 100644
| | |
| | | { |
| | | midVerticalScrolViewLayout.RemoveAll(); |
| | | curBindTypeList = MutilfunctionPanelMethod.GetMatchBindList(curBindType); |
| | | //注æï¼å个æé®ç«¯ç¹å¦ææ¯æç»å®å¤ç§åè½ç±»åï¼éè¦æ³¨æå¦ä¸å¤ç |
| | | //彿´æ¢è®¾å¤åè½ç±»åå |
| | | // ç»å®çå¼å
³ãæåº§ãç¯å
æç¨çæé®åè·¯äºç¸å
³èï¼æä»¥è¿ééæ°è·åå°è¿ä¸ç§ç±»åçå
¶ä»2ç§ï¼ä¸ºäºè·åæ£ç¡®çå¼å
³ãæåº§ãç¯å
ç»å®çä¸ªæ° |
| | | switch (curBindType) |
| | | { |
| | | case 1: |
| | | MutilfunctionPanelMethod.GetMatchBindList(2); |
| | | MutilfunctionPanelMethod.GetMatchBindList(3); |
| | | break; |
| | | case 2: |
| | | MutilfunctionPanelMethod.GetMatchBindList(1); |
| | | MutilfunctionPanelMethod.GetMatchBindList(3); |
| | | break; |
| | | case 3: |
| | | MutilfunctionPanelMethod.GetMatchBindList(1); |
| | | MutilfunctionPanelMethod.GetMatchBindList(2); |
| | | break; |
| | | } |
| | | int curIndex = 0; |
| | | for (int i = 0; i < curBindTypeList.Count; i++) |
| | | { |
| | |
| | | HdlThreadLogic.Current.RunThread(() =>
|
| | | {
|
| | | //æ¸
空å
¨é¨å表
|
| | | HdlGatewayLogic.Current.ClearAllRealGatewayConection(true);
|
| | | HdlGatewayLogic.Current.ClearAllRealGateway();
|
| | | ZigBee.Common.Application.IsSearchingGateway = true;
|
| | |
|
| | | int index = 1;
|
| | |
| | | if (timeCount == 10)
|
| | | {
|
| | | //5ç§åæ¸
空ç½å
³å表
|
| | | HdlGatewayLogic.Current.ClearAllRealGatewayConection(true);
|
| | | HdlGatewayLogic.Current.ClearAllRealGateway();
|
| | | ZigBee.Common.Application.IsSearchingGateway = true;
|
| | | }
|
| | | if (timeCount % 2 == 0)
|
| | |
| | | private void StartCheckGatewayThread()
|
| | | {
|
| | | this.isGatewaySearching = true;
|
| | | HdlThreadLogic.Current.RunThread(() =>
|
| | | HdlThreadLogic.Current.RunThread(async () =>
|
| | | {
|
| | | int count = 0;
|
| | | while (this.Parent != null && this.isGatewaySearching == true)
|
| | |
| | | }
|
| | | count = 0;
|
| | |
|
| | | this.CheckZbGatewayAndSetRow();
|
| | | await this.CheckZbGatewayAndSetRow();
|
| | |
|
| | | if (this.newGatewayGetting == true)
|
| | | {
|
| | |
| | | /// <summary>
|
| | | /// æ£æµæç´¢å°çç½å
³
|
| | | /// </summary>
|
| | | private bool CheckZbGatewayAndSetRow()
|
| | | private async Task<bool> CheckZbGatewayAndSetRow()
|
| | | {
|
| | | for (int i = 0; i < ZbGateway.GateWayList.Count; i++)
|
| | | {
|
| | |
| | | if (mode == GatewayBindMode.First || mode == GatewayBindMode.Binded)
|
| | | {
|
| | | //æ·»å æç´¢å°çç½å
³å°ç¼å(æ§è¡ç½å
³ä¿åæä½)
|
| | | var result = HdlGatewayLogic.Current.AddNewGateway(way, ShowErrorMode.NO);
|
| | | var result = await HdlGatewayLogic.Current.AddNewGateway(way, ShowErrorMode.NO);
|
| | | if (result == false)
|
| | | {
|
| | | continue;
|
| | |
| | | rowWifi.InitControl();
|
| | | rowWifi.AddBottomLine();
|
| | | rowWifi.txtInput.PlaceholderText = Language.StringByID(R.MyInternationalizationString.uPleaseInputHomeWifiAccount);
|
| | | //䏿徿 æ¯åå³ç
|
| | | rowWifi.RightOffset = -Application.GetRealWidth(18);
|
| | | var btnDrop = rowWifi.AddMostRightEmptyIcon(58, 58);
|
| | | btnDrop.UnSelectedImagePath = "Item/Down.png";
|
| | | rowWifi.ChangedChidrenBindMode(btnDrop, ChidrenBindMode.NotBind);
|
| | | btnDrop.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | //æ¾ç¤ºWifi䏿å表
|
| | | this.ShowWifiListView(rowWifi);
|
| | | };
|
| | |
|
| | | //å¯ç
|
| | | var rowPsw = new FrameCaptionInputControl(Language.StringByID(R.MyInternationalizationString.uPassword), string.Empty);
|
| | | rowPsw.Y = rowWifi.Bottom + Application.GetRealHeight(9);
|
| | | frameBack.AddChidren(rowPsw);
|
| | | rowPsw.InitControl();
|
| | | rowPsw.txtInput.SecureTextEntry = true;
|
| | | rowPsw.txtInput.PlaceholderText = Language.StringByID(R.MyInternationalizationString.uPleaseInputWifiPassword);
|
| | | var btnView = rowPsw.AddMostRightEmptyIcon(81, 81);
|
| | | var btnPsw = new FrameCaptionInputControl(Language.StringByID(R.MyInternationalizationString.uPassword), string.Empty);
|
| | | btnPsw.Y = rowWifi.Bottom + Application.GetRealHeight(9);
|
| | | frameBack.AddChidren(btnPsw);
|
| | | btnPsw.InitControl();
|
| | | btnPsw.txtInput.SecureTextEntry = true;
|
| | | btnPsw.txtInput.PlaceholderText = Language.StringByID(R.MyInternationalizationString.uPleaseInputWifiPassword);
|
| | | var btnView = btnPsw.AddMostRightEmptyIcon(81, 81);
|
| | | btnView.UnSelectedImagePath = "Item/HidenPWD.png";
|
| | | btnView.SelectedImagePath = "Item/UnHidenPWD.png";
|
| | | rowPsw.ChangedChidrenBindMode(btnView, ChidrenBindMode.NotBind);
|
| | | btnPsw.ChangedChidrenBindMode(btnView, ChidrenBindMode.NotBind);
|
| | | btnView.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | btnView.IsSelected = !btnView.IsSelected;
|
| | | rowPsw.txtInput.SecureTextEntry = !rowPsw.txtInput.SecureTextEntry;
|
| | | btnPsw.txtInput.SecureTextEntry = !btnPsw.txtInput.SecureTextEntry;
|
| | | };
|
| | |
|
| | | var btnMsg = new NormalViewControl(rowPsw.txtInput.Width, false);
|
| | | var btnMsg = new NormalViewControl(btnPsw.txtInput.Width, false);
|
| | | btnMsg.X = ControlCommonResourse.XXLeft;
|
| | | btnMsg.Y = frameBack.Bottom + Application.GetRealHeight(23);
|
| | | btnMsg.TextSize = 12;
|
| | |
| | | btnMsg.Text = Language.StringByID(R.MyInternationalizationString.uPleaseInputHomeWifiAccount);
|
| | | return;
|
| | | }
|
| | | if (rowPsw.Text == string.Empty)
|
| | | if (btnPsw.Text == string.Empty)
|
| | | {
|
| | | //请è¾å
¥Wifiå¯ç
|
| | | btnMsg.Text = Language.StringByID(R.MyInternationalizationString.uPleaseInputWifiPassword);
|
| | | return;
|
| | | }
|
| | | //åéå¯ç
|
| | | var result = HdlWifiLogic.Current.SendApHomeWifiPassword(rowWifi.Text, rowPsw.Text);
|
| | | var result = HdlWifiLogic.Current.SendApHomeWifiPassword(rowWifi.Text, btnPsw.Text);
|
| | | if (result == false)
|
| | | {
|
| | | //å¯ç åé失败
|
| | |
| | | };
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
|
| | | #region â æ¾ç¤ºWifi䏿å表___________________
|
| | |
|
| | | /// <summary>
|
| | | /// æ¾ç¤ºWifi䏿å表
|
| | | /// </summary>
|
| | | /// <param name="rowWifi"></param>
|
| | | private void ShowWifiListView(FrameCaptionInputControl rowWifi)
|
| | | {
|
| | | //ä¸ä¸ªå¯ä»¥é®ä½Bodyçä¸è¥¿
|
| | | var frameTran = new NormalFrameLayout();
|
| | | frameTran.Height = bodyFrameLayout.Height;
|
| | | frameTran.BackgroundColor = UserCenterColor.Current.DialogBackColor;
|
| | | bodyFrameLayout.AddChidren(frameTran);
|
| | | frameTran.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | frameTran.RemoveFromParent();
|
| | | };
|
| | | //ç½è²èæ¯æ¡
|
| | | var frameList = new NormalFrameLayout();
|
| | | frameList.Y = rowWifi.Bottom;
|
| | | frameList.Gravity = Gravity.CenterHorizontal;
|
| | | frameList.Width = frameTran.Width - ControlCommonResourse.XXLeft * 2;
|
| | | frameList.Height = this.GetPictrueRealSize(1200);
|
| | | frameList.Radius = (uint)Application.GetRealWidth(17);
|
| | | frameList.BackgroundColor = UserCenterColor.Current.White;
|
| | | frameTran.AddChidren(frameList);
|
| | | //å表æ§ä»¶
|
| | | var listView = new VerticalListControl();
|
| | | listView.Height = frameList.Height;
|
| | | frameList.AddChidren(listView);
|
| | |
|
| | | for (int i = 1; i <= 10; i++)
|
| | | {
|
| | | var frameRow = new FrameRowControl();
|
| | | listView.AddChidren(frameRow);
|
| | | //wifiåå
|
| | | var btnWifi = new NormalViewControl(frameRow.Width, frameRow.Height - ControlCommonResourse.BottomLineHeight, false);
|
| | | btnWifi.X = ControlCommonResourse.XXLeft;
|
| | | btnWifi.Text = "Application Software" + i;
|
| | | frameRow.AddChidren(btnWifi, ChidrenBindMode.BindEvent);
|
| | | //åºçº¿
|
| | | var btnLine = new NormalViewControl(frameRow.Width, ControlCommonResourse.BottomLineHeight, false);
|
| | | btnLine.BackgroundColor = UserCenterColor.Current.ButtomLine;
|
| | | btnLine.Y = btnWifi.Bottom;
|
| | | frameRow.AddChidren(btnLine, ChidrenBindMode.BindEvent);
|
| | | frameRow.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | rowWifi.Text = btnWifi.Text;
|
| | | frameTran.RemoveFromParent();
|
| | | };
|
| | | }
|
| | | }
|
| | | #endregion
|
| | |
|
| | | #region â çé¢å
³é___________________________
|
| | |
| | | private void StartCheckGatewayThread()
|
| | | {
|
| | | this.isGatewaySearching = true;
|
| | | HdlThreadLogic.Current.RunThread(() =>
|
| | | HdlThreadLogic.Current.RunThread(async () =>
|
| | | {
|
| | | //æ¸
空å
¨é¨å表
|
| | | HdlGatewayLogic.Current.ClearAllRealGatewayConection(true);
|
| | | HdlGatewayLogic.Current.ClearAllRealGateway();
|
| | | ZigBee.Common.Application.IsSearchingGateway = true;
|
| | |
|
| | | int count = 0;
|
| | |
| | | }
|
| | | count = 0;
|
| | |
|
| | | this.CheckZbGatewayAndSetRow();
|
| | | await this.CheckZbGatewayAndSetRow();
|
| | |
|
| | | if (this.newGatewayGetting == true)
|
| | | {
|
| | |
| | | /// <summary>
|
| | | /// æ£æµæç´¢å°çç½å
³ï¼ç¶åæ·»å å°ç»é¢çè¡éé¢
|
| | | /// </summary>
|
| | | private bool CheckZbGatewayAndSetRow()
|
| | | private async Task<bool> CheckZbGatewayAndSetRow()
|
| | | {
|
| | | List<string> listId = new List<string>();
|
| | | for (int i = 0; i < ZbGateway.GateWayList.Count; i++)
|
| | |
| | | if (mode == GatewayBindMode.First || mode == GatewayBindMode.Binded)
|
| | | {
|
| | | //æ·»å æç´¢å°çç½å
³å°ç¼å(æ§è¡ç½å
³ä¿åæä½)
|
| | | var result = HdlGatewayLogic.Current.AddNewGateway(way, ShowErrorMode.NO);
|
| | | var result = await HdlGatewayLogic.Current.AddNewGateway(way, ShowErrorMode.NO);
|
| | | if (result == false)
|
| | | {
|
| | | continue;
|
| | |
| | | if (timeCount == 10)
|
| | | {
|
| | | //5ç§åæ¸
空ç½å
³å表
|
| | | HdlGatewayLogic.Current.ClearAllRealGatewayConection(true);
|
| | | HdlGatewayLogic.Current.ClearAllRealGateway();
|
| | | ZigBee.Common.Application.IsSearchingGateway = true;
|
| | | }
|
| | | if (timeCount % 2 == 0)
|
| | |
| | | private void StartCheckGatewayThread()
|
| | | {
|
| | | this.isGatewaySearching = true;
|
| | | HdlThreadLogic.Current.RunThread(() =>
|
| | | HdlThreadLogic.Current.RunThread(async () =>
|
| | | {
|
| | | int count = 0;
|
| | | while (this.Parent != null && this.isGatewaySearching == true)
|
| | |
| | | }
|
| | | count = 0;
|
| | |
|
| | | this.CheckZbGatewayAndSetRow();
|
| | | await this.CheckZbGatewayAndSetRow();
|
| | |
|
| | | if (this.newGatewayGetting == true)
|
| | | {
|
| | |
| | | /// <summary>
|
| | | /// æ£æµæç´¢å°çç½å
³
|
| | | /// </summary>
|
| | | private bool CheckZbGatewayAndSetRow()
|
| | | private async Task<bool> CheckZbGatewayAndSetRow()
|
| | | {
|
| | | for (int i = 0; i < ZbGateway.GateWayList.Count; i++)
|
| | | {
|
| | |
| | | if (mode == GatewayBindMode.First || mode == GatewayBindMode.Binded)
|
| | | {
|
| | | //æ·»å æç´¢å°çç½å
³å°ç¼å(æ§è¡ç½å
³ä¿åæä½)
|
| | | var result = HdlGatewayLogic.Current.AddNewGateway(way, ShowErrorMode.NO);
|
| | | var result = await HdlGatewayLogic.Current.AddNewGateway(way, ShowErrorMode.NO);
|
| | | if (result == false)
|
| | | {
|
| | | continue;
|
| | |
| | | using System;
|
| | | using System.Collections.Generic;
|
| | | using System.Security.Cryptography;
|
| | | using System.Text;
|
| | |
|
| | | namespace Shared.Phone.UserCenter.GatewayAdd
|
| | |
| | | rowWifi.InitControl();
|
| | | rowWifi.AddBottomLine();
|
| | | rowWifi.txtInput.PlaceholderText = Language.StringByID(R.MyInternationalizationString.uPleaseInputHomeWifiAccount);
|
| | | //䏿徿 æ¯åå³ç
|
| | | rowWifi.RightOffset = -Application.GetRealWidth(18);
|
| | | var btnDrop = rowWifi.AddMostRightEmptyIcon(58, 58);
|
| | | btnDrop.UnSelectedImagePath = "Item/Down.png";
|
| | | rowWifi.ChangedChidrenBindMode(btnDrop, ChidrenBindMode.NotBind);
|
| | | btnDrop.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | //æ¾ç¤ºWifi䏿å表
|
| | | this.ShowWifiListView(rowWifi);
|
| | | };
|
| | |
|
| | | //å¯ç
|
| | | var rowPsw = new FrameCaptionInputControl(Language.StringByID(R.MyInternationalizationString.uPassword), string.Empty);
|
| | | rowPsw.Y = rowWifi.Bottom + Application.GetRealHeight(9);
|
| | | frameBack.AddChidren(rowPsw);
|
| | | rowPsw.InitControl();
|
| | | rowPsw.txtInput.SecureTextEntry = true;
|
| | | rowPsw.txtInput.PlaceholderText = Language.StringByID(R.MyInternationalizationString.uPleaseInputWifiPassword);
|
| | | var btnView = rowPsw.AddMostRightEmptyIcon(81, 81);
|
| | | var btnPsw = new FrameCaptionInputControl(Language.StringByID(R.MyInternationalizationString.uPassword), string.Empty);
|
| | | btnPsw.Y = rowWifi.Bottom + Application.GetRealHeight(9);
|
| | | frameBack.AddChidren(btnPsw);
|
| | | btnPsw.InitControl();
|
| | | btnPsw.txtInput.SecureTextEntry = true;
|
| | | btnPsw.txtInput.PlaceholderText = Language.StringByID(R.MyInternationalizationString.uPleaseInputWifiPassword);
|
| | | var btnView = btnPsw.AddMostRightEmptyIcon(81, 81);
|
| | | btnView.UnSelectedImagePath = "Item/HidenPWD.png";
|
| | | btnView.SelectedImagePath = "Item/UnHidenPWD.png";
|
| | | rowPsw.ChangedChidrenBindMode(btnView, ChidrenBindMode.NotBind);
|
| | | btnPsw.ChangedChidrenBindMode(btnView, ChidrenBindMode.NotBind);
|
| | | btnView.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | btnView.IsSelected = !btnView.IsSelected;
|
| | | rowPsw.txtInput.SecureTextEntry = !rowPsw.txtInput.SecureTextEntry;
|
| | | btnPsw.txtInput.SecureTextEntry = !btnPsw.txtInput.SecureTextEntry;
|
| | | };
|
| | |
|
| | | var btnMsg = new NormalViewControl(rowPsw.txtInput.Width, false);
|
| | | var btnMsg = new NormalViewControl(btnPsw.txtInput.Width, false);
|
| | | btnMsg.X = ControlCommonResourse.XXLeft;
|
| | | btnMsg.Y = frameBack.Bottom + Application.GetRealHeight(23);
|
| | | btnMsg.TextSize = 12;
|
| | |
| | | btnMsg.Text = Language.StringByID(R.MyInternationalizationString.uPleaseInputHomeWifiAccount);
|
| | | return;
|
| | | }
|
| | | if (rowPsw.Text == string.Empty)
|
| | | if (btnPsw.Text == string.Empty)
|
| | | {
|
| | | //请è¾å
¥Wifiå¯ç
|
| | | btnMsg.Text = Language.StringByID(R.MyInternationalizationString.uPleaseInputWifiPassword);
|
| | | return;
|
| | | }
|
| | | //åéå¯ç
|
| | | var result = HdlWifiLogic.Current.SendApHomeWifiPassword(rowWifi.Text, rowPsw.Text);
|
| | | var result = HdlWifiLogic.Current.SendApHomeWifiPassword(rowWifi.Text, btnPsw.Text);
|
| | | if (result == false)
|
| | | {
|
| | | //å¯ç åé失败
|
| | |
| | | return;
|
| | | }
|
| | |
|
| | | this.CloseForm();
|
| | | var form = new MiniGatewayDirection3Form();
|
| | | form.AddForm();
|
| | | var form = new WirelessApDirection3Form();
|
| | | this.AddFromAndRemoveNowForm(form);
|
| | | };
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
|
| | | #region â æ¾ç¤ºWifi䏿å表___________________
|
| | |
|
| | | /// <summary>
|
| | | /// æ¾ç¤ºWifi䏿å表
|
| | | /// </summary>
|
| | | /// <param name="rowWifi"></param>
|
| | | private void ShowWifiListView(FrameCaptionInputControl rowWifi)
|
| | | {
|
| | | //ä¸ä¸ªå¯ä»¥é®ä½Bodyçä¸è¥¿
|
| | | var frameTran = new NormalFrameLayout();
|
| | | frameTran.Height = bodyFrameLayout.Height;
|
| | | frameTran.BackgroundColor = UserCenterColor.Current.DialogBackColor;
|
| | | bodyFrameLayout.AddChidren(frameTran);
|
| | | frameTran.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | frameTran.RemoveFromParent();
|
| | | };
|
| | | //ç½è²èæ¯æ¡
|
| | | var frameList = new NormalFrameLayout();
|
| | | frameList.Y = rowWifi.Bottom;
|
| | | frameList.Gravity = Gravity.CenterHorizontal;
|
| | | frameList.Width = frameTran.Width - ControlCommonResourse.XXLeft * 2;
|
| | | frameList.Height = this.GetPictrueRealSize(1200);
|
| | | frameList.Radius = (uint)Application.GetRealWidth(17);
|
| | | frameList.BackgroundColor = UserCenterColor.Current.White;
|
| | | frameTran.AddChidren(frameList);
|
| | | //å表æ§ä»¶
|
| | | var listView = new VerticalListControl();
|
| | | listView.Height = frameList.Height;
|
| | | frameList.AddChidren(listView);
|
| | |
|
| | | for (int i = 1; i <= 10; i++)
|
| | | {
|
| | | var frameRow = new FrameRowControl();
|
| | | listView.AddChidren(frameRow);
|
| | | //wifiåå
|
| | | var btnWifi = new NormalViewControl(frameRow.Width, frameRow.Height - ControlCommonResourse.BottomLineHeight, false);
|
| | | btnWifi.X = ControlCommonResourse.XXLeft;
|
| | | btnWifi.Text = "Application Software" + i;
|
| | | frameRow.AddChidren(btnWifi, ChidrenBindMode.BindEvent);
|
| | | //åºçº¿
|
| | | var btnLine = new NormalViewControl(frameRow.Width, ControlCommonResourse.BottomLineHeight, false);
|
| | | btnLine.BackgroundColor = UserCenterColor.Current.ButtomLine;
|
| | | btnLine.Y = btnWifi.Bottom;
|
| | | frameRow.AddChidren(btnLine, ChidrenBindMode.BindEvent);
|
| | | frameRow.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | rowWifi.Text = btnWifi.Text;
|
| | | frameTran.RemoveFromParent();
|
| | | };
|
| | | }
|
| | | }
|
| | | #endregion
|
| | |
|
| | | #region â çé¢å
³é___________________________
|
| | |
| | | if (timeCount == 10)
|
| | | {
|
| | | //5ç§åæ¸
空ç½å
³å表
|
| | | HdlGatewayLogic.Current.ClearAllRealGatewayConection(true);
|
| | | HdlGatewayLogic.Current.ClearAllRealGateway();
|
| | | ZigBee.Common.Application.IsSearchingGateway = true;
|
| | | }
|
| | | if (timeCount % 2 == 0)
|
| | |
| | | private void StartCheckGatewayThread()
|
| | | {
|
| | | this.isGatewaySearching = true;
|
| | | HdlThreadLogic.Current.RunThread(() =>
|
| | | HdlThreadLogic.Current.RunThread(async () =>
|
| | | {
|
| | | int count = 0;
|
| | | while (this.Parent != null && this.isGatewaySearching == true)
|
| | |
| | | }
|
| | | count = 0;
|
| | |
|
| | | this.CheckZbGatewayAndSetRow();
|
| | | await this.CheckZbGatewayAndSetRow();
|
| | |
|
| | | if (this.newGatewayGetting == true)
|
| | | {
|
| | |
| | | /// <summary>
|
| | | /// æ£æµæç´¢å°çç½å
³
|
| | | /// </summary>
|
| | | private bool CheckZbGatewayAndSetRow()
|
| | | private async Task<bool> CheckZbGatewayAndSetRow()
|
| | | {
|
| | | for (int i = 0; i < ZbGateway.GateWayList.Count; i++)
|
| | | {
|
| | |
| | | if (mode == GatewayBindMode.First || mode == GatewayBindMode.Binded)
|
| | | {
|
| | | //æ·»å æç´¢å°çç½å
³å°ç¼å(æ§è¡ç½å
³ä¿åæä½)
|
| | | var result = HdlGatewayLogic.Current.AddNewGateway(way, ShowErrorMode.NO);
|
| | | var result = await HdlGatewayLogic.Current.AddNewGateway(way, ShowErrorMode.NO);
|
| | | if (result == false)
|
| | | {
|
| | | continue;
|
| | |
| | | private void CheckNewVersion(PicViewControl btnNewVersion)
|
| | | {
|
| | | //è·åç½å
³çæ¬ä¿¡æ¯
|
| | | var result = HdlGatewayLogic.Current.GetGatewayAllNewVersion(this.zbGateway, ShowErrorMode.NO);
|
| | | var result = HdlGatewayLogic.Current.GetGatewayAllNewVersion(this.zbGateway);
|
| | | if (result == null)
|
| | | {
|
| | | return;
|
| | |
| | | /// </summary>
|
| | | /// <param name="gatewayId"></param>
|
| | | /// <param name="online"></param>
|
| | | private void DoSwitchGateway()
|
| | | private async void DoSwitchGateway()
|
| | | {
|
| | | var result = HdlGatewayLogic.Current.DoSwitchGateway(zbGateway.GwId);
|
| | | var result = await HdlGatewayLogic.Current.DoSwitchGateway(zbGateway.GwId);
|
| | | if (result == false)
|
| | | {
|
| | | return;
|
| | |
| | | /// <param name="row"></param>
|
| | | private void DeleteGateway(string strWayId)
|
| | | {
|
| | | HdlThreadLogic.Current.RunThread(() =>
|
| | | HdlThreadLogic.Current.RunThread(async () =>
|
| | | {
|
| | | //æå¼è¿åº¦æ¡
|
| | | this.ShowProgressBar();
|
| | |
|
| | | //å é¤äºç«¯ç½å
³
|
| | | bool result = HdlGatewayLogic.Current.DeleteGateway(strWayId);
|
| | | bool result = await HdlGatewayLogic.Current.DeleteGateway(strWayId);
|
| | | //å
³éè¿åº¦æ¡
|
| | | this.CloseProgressBar();
|
| | | if (result == false)
|
| | |
| | | /// </summary>
|
| | | /// <param name="strWayId"></param>
|
| | | /// <param name="row"></param>
|
| | | private void DeleteGateway(string strWayId)
|
| | | private async void DeleteGateway(string strWayId)
|
| | | {
|
| | | //æå¼è¿åº¦æ¡
|
| | | this.ShowProgressBar();
|
| | | //å é¤äºç«¯ç½å
³
|
| | | bool result = HdlGatewayLogic.Current.DeleteGateway(strWayId);
|
| | | bool result = await HdlGatewayLogic.Current.DeleteGateway(strWayId);
|
| | | //å
³éè¿åº¦æ¡
|
| | | this.CloseProgressBar();
|
| | | if (result == false)
|
| | |
| | | /// </summary>
|
| | | /// <param name="gatewayId"></param>
|
| | | /// <param name="online"></param>
|
| | | private void DoSwitchGateway(string gatewayId)
|
| | | private async void DoSwitchGateway(string gatewayId)
|
| | | {
|
| | | var result = HdlGatewayLogic.Current.DoSwitchGateway(gatewayId);
|
| | | var result = await HdlGatewayLogic.Current.DoSwitchGateway(gatewayId);
|
| | | if (result == false)
|
| | | {
|
| | | return;
|
| | |
| | | btnMsg.TextID = R.MyInternationalizationString.uIsReBindingPleaseWaiting;
|
| | | bodyFrameLayout.AddChidren(btnMsg);
|
| | |
|
| | | HdlThreadLogic.Current.RunThread(() =>
|
| | | HdlThreadLogic.Current.RunThread(async () =>
|
| | | {
|
| | | System.Threading.Thread.Sleep(1000);
|
| | | int value = HdlGatewayLogic.Current.ReBindNewGateway(i_gateway, btnMsg);
|
| | | await System.Threading.Tasks.Task.Delay(1000);
|
| | | int value = await HdlGatewayLogic.Current.ReBindNewGateway(i_gateway, btnMsg);
|
| | | if (value == 1)
|
| | | {
|
| | | //æå
|
| | | i_dicZbGatewayDiv[i_gateway.GwId] = 1;
|
| | | //æè§å¾è¿ééè¦è·åä¸ä¸æ°ç½å
³ç设å¤å表
|
| | | Common.LocalDevice.Current.SetDeviceToMemmoryByGateway(i_gateway, true);
|
| | | if (i_gateway.IsMainGateWay == true)
|
| | | {
|
| | | //妿宿¯ä¸»ç½å
³,åå·æ°åºæ¯å表
|
| | | HdlSceneLogic.Current.RefreshSceneUIList(true);
|
| | | }
|
| | | }
|
| | | else if (value == 0)
|
| | | {
|
| | |
| | | /// </summary>
|
| | | public override void CloseFormBefore()
|
| | | {
|
| | | //å·æ°ä¸»é¡µ
|
| | | UserView.UserPage.Instance.ReFreshControl();
|
| | |
|
| | | var userPageForm = UserView.UserPage.Instance.GetNowActionForm();
|
| | | if (userPageForm != null && userPageForm.FormID == "UserMainForm")
|
| | | {
|
| | | //å·æ°ä¸»é¡µ
|
| | | UserView.UserPage.Instance.ReFreshControl();
|
| | | }
|
| | | base.CloseFormBefore();
|
| | | }
|
| | |
|
| | |
| | | row1.AddBottomLine();
|
| | | row1.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | var form = new HideOptionSearchAllFile();
|
| | | var form = new HideOptionFileListForm();
|
| | | form.AddForm(Common.Config.Instance.FullPath);
|
| | | };
|
| | |
|
| | |
| | |
|
| | | row1.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | var form = new HideOptionSearchAllFile();
|
| | | var form = new HideOptionFileListForm();
|
| | | form.AddForm(directoryValue);
|
| | | };
|
| | | }
|
| | |
| | | textValue += value + "\r\n";
|
| | | }
|
| | | }
|
| | | textValue = textValue.Replace(",", "\r\n");
|
| | | if (textValue.StartsWith("{") == true)
|
| | | {
|
| | | textValue = "{\r\n" + textValue.Substring(1);
|
New file |
| | |
| | | using System;
|
| | | using System.Collections.Generic;
|
| | | using System.Text;
|
| | |
|
| | | namespace Shared.Phone.UserCenter.HideOption
|
| | | {
|
| | | /// <summary>
|
| | | /// æ¬å°ç¼åæä»¶å表ççé¢
|
| | | /// </summary>
|
| | | public class HideOptionFileListForm : EditorCommonForm
|
| | | {
|
| | | #region â åé声æ___________________________
|
| | |
|
| | | /// <summary>
|
| | | /// è§£å¯
|
| | | /// </summary>
|
| | | private bool decryptPassword = false;
|
| | |
|
| | | #endregion
|
| | |
|
| | | #region â åå§å_____________________________
|
| | |
|
| | | /// <summary>
|
| | | /// ç»é¢æ¾ç¤º(åºå±ä¼åºå®è°ç¨æ¤æ¹æ³ï¼å以宿ç»é¢å建)
|
| | | /// </summary>
|
| | | public void ShowForm(string directory)
|
| | | {
|
| | | //设置头é¨ä¿¡æ¯
|
| | | base.SetTitleText("æä»¶å表");
|
| | |
|
| | | var btnButton = new NormalViewControl(200, 69, true);
|
| | | btnButton.Gravity = Gravity.CenterVertical;
|
| | | btnButton.X = bodyFrameLayout.Width - Application.GetRealWidth(200) - ControlCommonResourse.XXLeft;
|
| | | btnButton.TextColor = UserCenterColor.Current.TopLayoutTitleText;
|
| | | btnButton.TextAlignment = TextAlignment.BottomRight;
|
| | | btnButton.TextSize = 17;
|
| | | btnButton.Text = "ç¿»è¯";
|
| | | topFrameLayout.AddChidren(btnButton);
|
| | | btnButton.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | if (this.decryptPassword == false)
|
| | | {
|
| | | this.decryptPassword = true;
|
| | | //åå§åä¸é¨ä¿¡æ¯
|
| | | this.InitMiddleFrame(directory);
|
| | | }
|
| | | };
|
| | |
|
| | | //åå§åä¸é¨ä¿¡æ¯
|
| | | this.InitMiddleFrame(directory);
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// åå§åä¸é¨ä¿¡æ¯
|
| | | /// </summary>
|
| | | private void InitMiddleFrame(string directory)
|
| | | {
|
| | | this.ClearBodyFrame();
|
| | |
|
| | | var listAllFile = HdlFileLogic.Current.GetFileFromDirectory(directory);
|
| | | listAllFile.Sort();
|
| | |
|
| | | var listView = new VerticalListControl(23);
|
| | | listView.BackgroundColor = UserCenterColor.Current.White;
|
| | | listView.Height = bodyFrameLayout.Height;
|
| | | bodyFrameLayout.AddChidren(listView);
|
| | |
|
| | | for (int i = 0; i < listAllFile.Count; i++)
|
| | | {
|
| | | this.AddRowControl(listView, listAllFile[i], directory, i != listAllFile.Count - 1);
|
| | | }
|
| | | listView.AdjustRealHeightByBottomButton(Application.GetRealHeight(50));
|
| | |
|
| | | var btnButon = new BottomClickButton();
|
| | | btnButon.Text = "å 餿件夹";
|
| | | bodyFrameLayout.AddChidren(btnButon);
|
| | | btnButon.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | this.ShowMassage(ShowMsgType.Confirm, "æ¯å¦æ¸
é¤è¯¥æä»¶å¤¹", () =>
|
| | | {
|
| | | try
|
| | | {
|
| | | System.IO.Directory.Delete(directory, true);
|
| | | this.CloseForm();
|
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | this.ShowMassage(ShowMsgType.Error, "æ¸
é¤ç¼åæä»¶å¤¹å¼å¸¸");
|
| | | HdlLogLogic.Current.WriteLog(ex, "æ¸
é¤ç¼åæä»¶å¤¹å¼å¸¸");
|
| | | }
|
| | | });
|
| | | };
|
| | | if (directory == Common.Config.Instance.FullPath)
|
| | | {
|
| | | btnButon.CanClick = false;
|
| | | }
|
| | | }
|
| | |
|
| | | private void AddRowControl(VerticalListControl listView, string fileName, string directory, bool addLine)
|
| | | {
|
| | | string fileNewName = fileName;
|
| | | if (decryptPassword == true && fileName.StartsWith("Device_") == false)
|
| | | {
|
| | | try
|
| | | {
|
| | | fileNewName = UserCenterLogic.DecryptPassword(UserCenterResourse.FileEncryptKey, fileName);
|
| | | }
|
| | | catch { fileNewName = fileName; }
|
| | | }
|
| | |
|
| | | var row1 = new RowLayoutControl(listView.rowSpace / 2);
|
| | | listView.AddChidren(row1);
|
| | | var btnName = row1.frameTable.AddLeftCaption(fileNewName, 800);
|
| | | btnName.IsMoreLines = true;
|
| | | if (addLine == true)
|
| | | {
|
| | | row1.frameTable.AddBottomLine();
|
| | | }
|
| | | row1.frameTable.AddRightArrow();
|
| | |
|
| | | var btnUpLoad = row1.AddEditorControl();
|
| | | btnUpLoad.Text = "ä¸ä¼ ";
|
| | | btnUpLoad.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | this.ShowMassage(ShowMsgType.Confirm, "æ¯å¦ä¸ä¼ 该æä»¶(æµè¯)?", () =>
|
| | | {
|
| | | HdlThreadLogic.Current.RunThread(() =>
|
| | | {
|
| | | string tagrtFile = System.IO.Path.Combine(directory, fileName);
|
| | | HdlBackupLogic.Current.UpLoadByteDataToOptionBackup(fileName, HdlFileLogic.Current.ReadFileByteContent(tagrtFile));
|
| | | });
|
| | | });
|
| | | };
|
| | |
|
| | | var btnDelete = row1.AddDeleteControl();
|
| | | btnDelete.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | this.ShowMassage(ShowMsgType.Confirm, "æ¯å¦æ¸
é¤è¯¥ç¼åæä»¶", () =>
|
| | | {
|
| | | var myFile = System.IO.Path.Combine(Common.Config.Instance.FullPath, directory, fileName);
|
| | | try
|
| | | {
|
| | | System.IO.File.Delete(myFile);
|
| | | row1.RemoveFromParent();
|
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | this.ShowMassage(ShowMsgType.Error, "æ¸
é¤ç¼åæä»¶å¼å¸¸");
|
| | | HdlLogLogic.Current.WriteLog(ex, "æ¸
é¤ç¼åæä»¶å¼å¸¸");
|
| | | }
|
| | | });
|
| | | };
|
| | |
|
| | | row1.frameTable.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | var form = new HideOptionFileContentForm();
|
| | | form.AddForm(System.IO.Path.Combine(Common.Config.Instance.FullPath, directory, fileName));
|
| | | };
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
|
| | | #region â ä¸è¬æ¹æ³___________________________
|
| | |
|
| | | #endregion
|
| | | }
|
| | | }
|
| | |
| | | };
|
| | | gatewayRow.frameTable.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | var form = new HideOptionGatewayInfoMenuForm();
|
| | | var form = new GatewayManage.GatewayInfoEditorForm();
|
| | | form.AddForm(i_gateway);
|
| | | };
|
| | | }
|
| | |
| | | {
|
| | | listView.RemoveAll();
|
| | |
|
| | | var rowTemp = this.AddNormalRowControl(string.Empty, 400, string.Empty, 400);
|
| | | var btnTemp = new NormalViewControl(600, 100, true);
|
| | | btnTemp.Text = "ä¸è¬ä¿¡æ¯é¨å";
|
| | | btnTemp.Gravity = Gravity.Center;
|
| | | btnTemp.TextSize = 16;
|
| | | btnTemp.IsBold = true;
|
| | | btnTemp.TextAlignment = TextAlignment.Center;
|
| | | rowTemp.AddChidren(btnTemp);
|
| | |
|
| | | this.AddNormalRowControl("å½å身份", 400, UserCenterResourse.UserInfo.AuthorityText, 400);
|
| | |
|
| | | this.AddTopButtomRowControl("ä½å®
ID", 400, Common.Config.Instance.Home.Id, 900);
|
| | |
| | |
|
| | | this.AddNormalRowControl("WIFIåé", 400, Shared.Application.IsWifi == true ? "true" : "false", 400);
|
| | |
|
| | | rowTemp = this.AddNormalRowControl(string.Empty, 400, string.Empty, 400);
|
| | | btnTemp = new NormalViewControl(600, 100, true);
|
| | | btnTemp.Text = "龿¥è°è¯é¨å";
|
| | | btnTemp.Gravity = Gravity.Center;
|
| | | btnTemp.TextSize = 16;
|
| | | btnTemp.IsBold = true;
|
| | | btnTemp.TextAlignment = TextAlignment.Center;
|
| | | rowTemp.AddChidren(btnTemp);
|
| | |
|
| | | this.AddNormalRowControl("ææºè·åçIP", 600, new Shared.Net.NetWiFi().BroadcastIpAddress.ToString(), 600);
|
| | |
|
| | | if (ZigBee.Common.Application.FindGateWaySocket.udpClient == null)
|
| | | if (ZigBee.Common.Application.FindGateWaySocket.busSocket == null)
|
| | | {
|
| | | this.AddNormalRowControl("Socket龿¥", 400, "æªåå§å", 400);
|
| | | }
|
| | | else
|
| | | {
|
| | | this.AddNormalRowControl("Socket龿¥", 400, "å·²åå§å", 400);
|
| | | this.AddNormalRowControl("Socket龿¥", 400, ZigBee.Common.Application.FindGateWaySocket.busSocket.Connected == true ? "true" : "false", 400);
|
| | | }
|
| | |
|
| | | int count = ZbGateway.GateWayList.Count;
|
| | |
| | |
|
| | | //æ£æµè½å¦å¹¿æå¾å°ç½å
³
|
| | | this.AddCheckReceviceGatewayRow();
|
| | |
|
| | | row1 = new FrameRowControl(listView.rowSpace / 2);
|
| | | listView.AddChidren(row1);
|
| | | row1.AddLeftCaption("æ¥çç¼åæä»¶", 500);
|
| | | row1.AddRightArrow();
|
| | | row1.AddBottomLine();
|
| | | row1.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | var form = new HideOptionDirectoryListForm();
|
| | | form.AddForm();
|
| | | };
|
| | |
|
| | | row1 = new FrameRowControl(listView.rowSpace / 2);
|
| | | listView.AddChidren(row1);
|
| | | row1.AddLeftCaption("设å¤ç¼ååé", 500);
|
| | | row1.AddRightArrow();
|
| | | row1.AddBottomLine();
|
| | | row1.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | var form = new HideOptionMemoryListDeviceForm();
|
| | | form.AddForm();
|
| | | };
|
| | |
|
| | | row1 = new FrameRowControl(listView.rowSpace / 2);
|
| | | listView.AddChidren(row1);
|
| | |
| | | ZigBee.Common.Application.FindGateWaySocket.Stop();
|
| | | ZigBee.Common.Application.FindGateWaySocket.Start();
|
| | | this.ShowMassage(ShowMsgType.Tip, "åå§å宿");
|
| | | });
|
| | | };
|
| | |
|
| | | rowTemp = this.AddNormalRowControl(string.Empty, 400, string.Empty, 400);
|
| | | btnTemp = new NormalViewControl(600, 100, true);
|
| | | btnTemp.Text = "æ¥çç¼åé¨å";
|
| | | btnTemp.Gravity = Gravity.Center;
|
| | | btnTemp.TextSize = 16;
|
| | | btnTemp.IsBold = true;
|
| | | btnTemp.TextAlignment = TextAlignment.Center;
|
| | | rowTemp.AddChidren(btnTemp);
|
| | |
|
| | | row1 = new FrameRowControl(listView.rowSpace / 2);
|
| | | listView.AddChidren(row1);
|
| | | row1.AddLeftCaption("æ¥çç¼åæä»¶", 500);
|
| | | row1.AddRightArrow();
|
| | | row1.AddBottomLine();
|
| | | row1.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | var form = new HideOptionDirectoryListForm();
|
| | | form.AddForm();
|
| | | };
|
| | |
|
| | | row1 = new FrameRowControl(listView.rowSpace / 2);
|
| | | listView.AddChidren(row1);
|
| | | row1.AddLeftCaption("设å¤ç¼ååé", 500);
|
| | | row1.AddRightArrow();
|
| | | row1.AddBottomLine();
|
| | | row1.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | var form = new HideOptionMemoryListDeviceForm();
|
| | | form.AddForm();
|
| | | };
|
| | |
|
| | | rowTemp = this.AddNormalRowControl(string.Empty, 400, string.Empty, 400);
|
| | | btnTemp = new NormalViewControl(600, 100, true);
|
| | | btnTemp.Text = "å
¶ä»é¨å";
|
| | | btnTemp.Gravity = Gravity.Center;
|
| | | btnTemp.TextSize = 16;
|
| | | btnTemp.IsBold = true;
|
| | | btnTemp.TextAlignment = TextAlignment.Center;
|
| | | rowTemp.AddChidren(btnTemp);
|
| | |
|
| | | row1 = new FrameRowControl(listView.rowSpace / 2);
|
| | | listView.AddChidren(row1);
|
| | | row1.AddLeftCaption("é置导å
¥æ è¯", 500);
|
| | | row1.AddRightArrow();
|
| | | row1.AddBottomLine();
|
| | | row1.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | this.ShowMassage(ShowMsgType.Confirm, "æ¯å¦éç½®è¿ä¸ªä½å®
ç导å
¥æ è¯?\r\néç½®ä¹åå¯ä»¥å次导å
¥ç½å
³", () =>
|
| | | {
|
| | | Common.Config.Instance.Home.SendTemplateSuccess = false;
|
| | | Common.Config.Instance.Home.Save();
|
| | | this.ShowMassage(ShowMsgType.Tip, "éç½®å®æ");
|
| | | });
|
| | | };
|
| | |
|
| | |
| | | }
|
| | | }
|
| | | listView.AdjustRealHeightByBottomButton(Application.GetRealHeight(50));
|
| | |
|
| | | var btnButon = new BottomClickButton();
|
| | | btnButon.Text = "å 餿件夹";
|
| | | bodyFrameLayout.AddChidren(btnButon);
|
| | | btnButon.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | this.ShowMassage(ShowMsgType.Confirm, "æ¯å¦æ¸
é¤è¯¥æä»¶å¤¹", () =>
|
| | | {
|
| | | try
|
| | | {
|
| | | System.IO.Directory.Delete(directory, true);
|
| | | this.CloseForm();
|
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | this.ShowMassage(ShowMsgType.Error, "æ¸
é¤ç¼åæä»¶å¤¹å¼å¸¸");
|
| | | HdlLogLogic.Current.WriteLog(ex, "æ¸
é¤ç¼åæä»¶å¤¹å¼å¸¸");
|
| | | }
|
| | | });
|
| | | };
|
| | | if (directory == Common.Config.Instance.FullPath)
|
| | | {
|
| | | btnButon.CanClick = false;
|
| | | }
|
| | | }
|
| | |
|
| | | private void AddDirectoryRowControl(VerticalListControl listView, string directoryName, string directory, bool addLine)
|
| | |
| | | return;
|
| | | }
|
| | | pra.Account = dicMemberAccount[keys];
|
| | | var result = UserCenterLogic.GetByteResponseDataByRequestHttps("ZigbeeUsers/GetSubAccountInfo", false, pra, new List<string> { "NotCheck" }, false);
|
| | | var result = UserCenterLogic.GetByteResponseDataByRequestHttps("ZigbeeUsers/GetSubAccountInfo", false, pra, new List<string> { "NotCheck" });
|
| | | if (result == null)
|
| | | {
|
| | | continue;
|
| | |
| | | {
|
| | | var pra = new AccountInfoPra();
|
| | | pra.Account = memberInfo.Account;
|
| | | var result = UserCenterLogic.GetByteResponseDataByRequestHttps("ZigbeeUsers/GetSubAccountInfo", false, pra, new List<string> { "NotCheck" }, false);
|
| | | var result = UserCenterLogic.GetByteResponseDataByRequestHttps("ZigbeeUsers/GetSubAccountInfo", false, pra, new List<string> { "NotCheck" });
|
| | | if (result == null)
|
| | | {
|
| | | return;
|
| | |
| | | {
|
| | | //è·åä½å®
ä¿¡æ¯
|
| | | var Pra = new GetResidenceInfoPra();
|
| | | string resultData = UserCenterLogic.GetResponseDataByRequestHttps("App/GetHomePager", false, Pra, new List<string> { "NotCheck" }, false);
|
| | | string resultData = UserCenterLogic.GetResponseDataByRequestHttps("App/GetHomePager", false, Pra, new List<string> { "NotCheck" });
|
| | | if (string.IsNullOrEmpty(resultData) == true)
|
| | | {
|
| | | return false;
|
| | |
| | | var myHouse = HdlResidenceLogic.Current.GetHouseByFilePath(Common.Config.Instance.HomeFilePathList[index]);
|
| | | //忢ä½å®
|
| | | Common.Config.Instance.HomeId = myHouse.Id;
|
| | | Common.Config.Instance.Home = HdlResidenceLogic.Current.GetHouseByHouseId(myHouse.Id);
|
| | | Common.Global.CreateHomeDirectory(myHouse.Id);
|
| | | Common.Config.Instance.Save();
|
| | |
|
| | |
| | | /// <param name="btnswich"></param>
|
| | | private async void SetInformationPush(MostRightIconControl btnswich)
|
| | | {
|
| | | //è·åç¶æ(åå)
|
| | | int statu = btnswich.IsSelected == true ? 1 : 0;
|
| | | //è·åç¶æ
|
| | | int statu = HdlSafeguardLogic.Current.GetGarrisonInformationPushStatu(this.zoonID) == 0 ? 1 : 0;
|
| | |
|
| | | //æ§è¡ä¿®æ¹
|
| | | var result = await HdlSafeguardLogic.Current.SetGarrisonInformationPushStatu(this.zoonID, statu);
|
| | |
| | | //ç»å½æå,æè
没æç½ç»é½å¯ä»¥ç»å½
|
| | | if (loginSuccess == 1 || loginSuccess == 2)
|
| | | {
|
| | | var homes = UserCenter.HdlResidenceLogic.Current.GetHomeListsFromDb(true);
|
| | | var homes = UserCenter.HdlResidenceLogic.Current.GetHomeListsFromDb();
|
| | | //å·æ°ä¸ªäººä¸å¿çå
åå线ç¨
|
| | | UserCenter.UserCenterLogic.InitUserCenterMenmoryAndThread();
|
| | | //å¯å¨ZigBee
|
| | |
| | | { |
| | | try |
| | | { |
| | | if (FindGateWaySocket.udpClient == null || FindGateWaySocket.udpClient.Available <= 0) |
| | | if (FindGateWaySocket.busSocket == null || FindGateWaySocket.busSocket.Available <= 0) |
| | | { |
| | | System.Threading.Thread.Sleep(500); |
| | | continue; |
| | | }
|
| | | var ipEndPoint = new System.Net.IPEndPoint(0, 0); |
| | | var bytes = FindGateWaySocket.udpClient.Receive(ref ipEndPoint); |
| | | } |
| | | var bytes = new byte[1024]; |
| | | var len = FindGateWaySocket.busSocket.Receive(bytes, bytes.Length, System.Net.Sockets.SocketFlags.None); |
| | | if (bytes[43] == 0xA2) |
| | | { |
| | | //广æåå¤ç½å
³çåºæ¬ä¿¡æ¯å¤ç |
| | |
| | | } |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | {
|
| | | //è°è¯ç¨
|
| | | if (Shared.Phone.UserCenter.UserCenterResourse.HideOption.WriteSocketReceiveDataToFile == 1)
|
| | | {
|
| | | Shared.Phone.UserCenter.HdlLogLogic.Current.WriteLog(3, "Receiveå¼å¸¸\r\n" + ex.Message);
|
| | | } |
| | | } |
| | | catch { } |
| | | } |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | |
| | | public static class FindGateWaySocket |
| | | { |
| | | //æ¬å°Socket |
| | | public static UdpClient udpClient; |
| | | public static Socket busSocket; |
| | | |
| | | /// <summary> |
| | | /// å¯å¨Socketæ¥æ¶ååéåè½ |
| | | /// </summary> |
| | | /// <param name="port"></param> |
| | | public static void Start() |
| | | public static void Start(int port = 7624) |
| | | { |
| | | if (udpClient!=null) |
| | | if (IsRunning) |
| | | { |
| | | return; |
| | | } |
| | | udpClient = new UdpClient { EnableBroadcast = true }; |
| | | //å®ä¹ç½ç»ç±»åï¼æ°æ®è¿æ¥ç±»ååç½ç»åè®®UDP |
| | | busSocket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); |
| | | busSocket.EnableBroadcast = true; |
| | | busSocket.ReceiveTimeout = 1000; |
| | | busSocket.SendTimeout = 1000; |
| | | busSocket.Bind(new IPEndPoint(IPAddress.Any, port)); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | { |
| | | try |
| | | { |
| | | udpClient?.Close(); |
| | | busSocket?.Close(); |
| | | } |
| | | catch { } |
| | | udpClient = null; |
| | | busSocket = null; |
| | | |
| | | Console.WriteLine("BusSocketå
³éæå!"); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// å½åçSocketæ¯å¦è¿è¡ |
| | | /// </summary> |
| | | public static bool IsRunning |
| | | { |
| | | get |
| | | { |
| | | return busSocket == null ? false : true; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | { |
| | | try |
| | | { |
| | | if (udpClient == null)
|
| | | if (IsRunning)
|
| | | {
|
| | | return;
|
| | | busSocket.BeginSendTo(bytes, 0, bytes.Length, SocketFlags.None, iPEndPoint, new AsyncCallback(asyncEndSend), null);
|
| | | }
|
| | | udpClient.Send(bytes, bytes.Length, iPEndPoint);
|
| | |
|
| | | } |
| | | catch (Exception ex) |
| | | {
|
| | |
| | | }
|
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 弿¥åéæ°æ®ç»æ |
| | | /// </summary> |
| | | /// <param name="iar"></param> |
| | | private static void asyncEndSend(IAsyncResult iar) |
| | | { |
| | | try |
| | | { |
| | | int bytesSent = busSocket.EndSendTo(iar); |
| | | } |
| | | catch (Exception ex)
|
| | | {
|
| | | //è°è¯ç¨
|
| | | if (Shared.Phone.UserCenter.UserCenterResourse.HideOption.WriteSocketReceiveDataToFile == 1)
|
| | | {
|
| | | Shared.Phone.UserCenter.HdlLogLogic.Current.WriteLog(3, "弿¥åéç»æå¼å¸¸(asyncEndSend)\r\n" + ex.Message);
|
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | #endregion |
| | | } |
| | | } |
| | | } |
| | |
| | | public int ColorTemperature = 0;
|
| | |
|
| | | /// <summary>
|
| | | ///è鏣卿¯å¦å¨åç(true:åç false:ä¸å)
|
| | | /// </summary>
|
| | | [Newtonsoft.Json.JsonIgnore]
|
| | | public bool IsBuzzerRing = false;
|
| | |
|
| | | /// <summary>
|
| | | /// 读å亮度
|
| | | /// </summary>
|
| | | public void ReadLevel()
|
| | |
| | | public void ReadColorTemperature()
|
| | | {
|
| | | ReadAttri(Device.Cluster_ID.ColorControl, AttriButeId.LevelControl);
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 读åè鸣å¨ç¶æ(å°å¤ç¯ä¸ç¨)
|
| | | /// </summary>
|
| | | public void ReadBuzzerStatu()
|
| | | {
|
| | | ReadAttri((Cluster_ID)1282, 0);
|
| | | }
|
| | |
|
| | | ///<summary >
|
| | |
| | | /// <para>æç»æ°æ®ä¸æ¥(MomentStatus=0 TriggerZoneStatus>=1ï¼æ¥è¦ï¼ TriggerZoneStatus=0ï¼åæ¶æ¥è¦ï¼)</para> |
| | | /// <para>21: Door/Window é¨çªä¼ æå¨ï¼æ21å22ï¼è¿é没æåéï¼</para> |
| | | /// <para>22:Door/Window é¨çªä¼ æå¨ï¼æ21å22ï¼è¿é没æåé</para> |
| | | /// <para>541 çåç§»å¨ä¼ æå¨</para> |
| | | /// </summary> |
| | | public int IasDeviceType; |
| | | /// <summary> |
| | |
| | | /// </summary>
|
| | | public int ZigbeeType; |
| | | /// <summary> |
| | | /// åºä»¶çæ¬ |
| | | /// å½åè¿è¡ç¨åºçæ¬ä¿¡æ¯ã æå¤§64åè |
| | | /// </summary> |
| | | public int ImgVersion; |
| | | /// <summary> |
| | |
| | | /// <summary> |
| | | /// é²åºåç§° ï¼æå¤§32个å符 |
| | | /// </summary> |
| | | public string ZoneName;
|
| | |
|
| | | /// <summary> |
| | | /// æ¯å¦ç¦ç¨ä¿¡æ¯æ¨éï¼ |
| | | ///<para>0ï¼ä¸ç¦ç¨</para> |
| | | ///<para>1ï¼ç¦ç¨</para> |
| | | ///<para>å½é²åºçä¿¡æ¯æ¨é被ç¦ç¨æ¶ï¼é²åºè¢«è§¦åæ¶ä¸ä¼åé18å°èçâé²åºè¢«è§¦åæ¯æ¥åâç主é¢ä¿¡æ¯ã</para> |
| | | /// </summary> |
| | | public int IsDisablePushMessage = 0; |
| | | public string ZoneName; |
| | | |
| | | /// <summary> |
| | | /// å®é²è®¾å¤å表 |
| | |
| | | /// <summary> |
| | | /// èæé©±å¨ä¿¡æ¯ |
| | | /// </summary> |
| | | public List<DriveCodeObj> DriveCodeList = new List<DriveCodeObj>(); |
| | | public List<DriveCodeListObj> DriveCodeList = new List<DriveCodeListObj>(); |
| | | |
| | | /// <summary> |
| | | /// èæç½å
³ |
| | |
| | | /// <summary> |
| | | /// èæé©±å¨ä¿¡æ¯ |
| | | /// </summary> |
| | | public List<DriveCodeObj> DriveCodeList = new List<DriveCodeObj>(); |
| | | public List<DriveCodeListObj> DriveCodeList = new List<DriveCodeListObj>(); |
| | | }
|
| | |
|
| | | public class DriveCodeListObj |
| | | { |
| | | /// <summary> |
| | | /// 驱å¨ä»£å·ï¼ç±ç½å
³ä¸ºé©±å¨åé
å¯ä¸æ è¯ï¼ |
| | | /// </summary> |
| | | public int DriveCode; |
| | | /// <summary> |
| | | /// 驱å¨ç¡¬ä»¶çæ¬ |
| | | /// </summary> |
| | | public int DriveHwVersion; |
| | | /// <summary> |
| | | /// 驱å¨è½¯ä»¶ç |
| | | /// </summary> |
| | | public int DriveFwVersion; |
| | | /// <summary> |
| | | /// 驱å¨åºä»¶ç±»å |
| | | /// </summary> |
| | | public int DriveImageType; |
| | | /// <summary> |
| | | /// 驱å¨id |
| | | /// </summary> |
| | | public int DriveId; |
| | | } |
| | | #endregion |
| | | |
| | | #region ä¿®æ¹ç½å
³åç§° |
| | |
| | | /// é¥åæ£
|
| | | /// </summary> |
| | | public const int uKeyfob = 16143;
|
| | | /// <summary>
|
| | | /// è²å¼å·ä¸º6ä½ï¼ç±ä»»ææ°å+忝ç»åï¼
|
| | | /// </summary> |
| | | public const int uColorLengthMsg = 16144;
|
| | | /// <summary>
|
| | | /// é¿ææ¤æé®
|
| | | /// </summary>
|
| | | public const int uLongPressThisButton = 16145;
|
| | |
|
| | |
|
| | | //â
â
â
â
ä¸é¢è¿äºæ¯æ¥å£çè¿åä¿¡æ¯ç¿»è¯,ä»18000å¼å§â
â
â
â
|
| | |
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Logic\LogicView\IfString.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Logic\LogicView\LightView.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Logic\LogicView\mFunView.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Logic\LogicView\RoomClickView.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Logic\LogicView\SaveView.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Logic\LogicView\SelectedDeviceView.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Logic\LogicView\TipView.cs" />
|
| | |
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\SmartSound\Widget\MyButton.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\SmartSound\Widget\SoundRowLayout.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\SmartSound\Widget\TextDialog.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\TemplateData\TemplateCommonLogic.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\TemplateData\TemplateDataCommon.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\TemplateData\TemplateDeviceDataLogic.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\Abount\AbountForm.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\Abount\SLAForm.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\CommonBase\Common\AccountOption.cs" />
|
| | |
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\HdlBackup\HdlBackupListForm.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\HideOption\HideOptionDirectoryListForm.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\HideOption\HideOptionFileContentForm.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\HideOption\HideOptionGatewayInfoMenuForm.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\HideOption\HideOptionGatewayListFileForm.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\HideOption\HideOptionFileListForm.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\HideOption\HideOptionGatewayListForm.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\HideOption\HideOptionMainForm.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\HideOption\HideOptionMemoryListDeviceForm.cs" />
|