From ed1c010c40e9324318171edefec5e9dbf46474a4 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期五, 18 十二月 2020 18:01:09 +0800
Subject: [PATCH] 20201218-4

---
 HDL-ON_Android/.DS_Store                                            |    0 
 HDL-ON_iOS/.DS_Store                                                |    0 
 .DS_Store                                                           |    0 
 HDL_ON/DAL/Server/HttpServerRequest.cs                              |    6 ++
 HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPageBLL.cs |    8 ++++
 .vs/HDL_APP_Project/xs/UserPrefs.xml                                |   26 +++++++-----
 HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs      |   35 +++++++++++++++++
 7 files changed, 62 insertions(+), 13 deletions(-)

diff --git a/.DS_Store b/.DS_Store
index 72da17a..b708f15 100644
--- a/.DS_Store
+++ b/.DS_Store
Binary files differ
diff --git a/.vs/HDL_APP_Project/xs/UserPrefs.xml b/.vs/HDL_APP_Project/xs/UserPrefs.xml
index 310c469..e0b06d8 100644
--- a/.vs/HDL_APP_Project/xs/UserPrefs.xml
+++ b/.vs/HDL_APP_Project/xs/UserPrefs.xml
@@ -1,21 +1,22 @@
-锘�<Properties StartupConfiguration="{09712674-2A38-407B-B1E2-560B2C352F9A}|Default">
-  <MonoDevelop.Ide.ItemProperties.HDL-ON__iOS PreferredExecutionTarget="MonoDevelop.IPhone.IPhoneSimulatorTarget.94B44E9C-E1BC-4BF7-812E-FC71E9B623B2" />
+锘�<Properties StartupConfiguration="{D998E133-F0DD-4760-BE3C-461632F54DA4}|Default">
+  <MonoDevelop.Ide.ItemProperties.HDL-ON__iOS PreferredExecutionTarget="MonoDevelop.IPhone.IPhoneDeviceTarget.00008020-000404163432002E" />
   <MonoDevelop.Ide.Workbench ActiveDocument="HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPageBLL.cs">
     <Files>
       <File FileName="HDL-ON_iOS/ViewController.cs" Line="14" Column="10" />
       <File FileName="HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs" Line="1" Column="1" />
       <File FileName="HDL_ON/UI/UI2/3-Intelligence/Scene/SceneEditPage.cs" Line="384" Column="93" />
       <File FileName="HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAddPage.cs" Line="898" Column="58" />
-      <File FileName="HDL_ON/Entity/FunctionList.cs" Line="638" Column="29" />
+      <File FileName="HDL_ON/Entity/FunctionList.cs" Line="637" Column="38" />
       <File FileName="HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs" Line="685" Column="53" />
-      <File FileName="HDL_ON/Entity/Function/Scene.cs" Line="329" Column="30" />
-      <File FileName="HDL_ON/DAL/Server/HttpServerRequest.cs" Line="1972" Column="1" />
+      <File FileName="HDL_ON/Entity/Function/Scene.cs" Line="25" Column="18" />
+      <File FileName="HDL_ON/DAL/Server/HttpServerRequest.cs" Line="1969" Column="43" />
       <File FileName="HDL_ON/UI/UI2/2-Classification/ClassificationPageBLL.cs" Line="326" Column="81" />
       <File FileName="HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/AddRoom/AddRoomPage.cs" Line="574" Column="69" />
       <File FileName="HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditFunctionPage.cs" Line="74" Column="16" />
       <File FileName="HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditFunctionPageBLL.cs" Line="123" Column="18" />
-      <File FileName="HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPage.cs" Line="370" Column="37" />
-      <File FileName="HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPageBLL.cs" Line="156" Column="72" />
+      <File FileName="HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPage.cs" Line="140" Column="16" />
+      <File FileName="HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPageBLL.cs" Line="38" Column="56" />
+      <File FileName="HDL_ON/Entity/Function/Function.cs" Line="157" Column="29" />
     </Files>
     <Pads>
       <Pad Id="ProjectPad">
@@ -23,15 +24,18 @@
           <Node name="HDL_APP_Project" expanded="True">
             <Node name="HDL_ON" expanded="True">
               <Node name="DAL" expanded="True">
-                <Node name="DriverLayer" expanded="True" />
+                <Node name="Server" expanded="True" />
               </Node>
               <Node name="Entity" expanded="True">
                 <Node name="Function" expanded="True" />
               </Node>
               <Node name="UI" expanded="True">
                 <Node name="UI2" expanded="True">
+                  <Node name="3-Intelligence" expanded="True">
+                    <Node name="Automation" expanded="True" />
+                    <Node name="Scene" expanded="True" />
+                  </Node>
                   <Node name="FuntionControlView" expanded="True">
-                    <Node name="AC" expanded="True" />
                     <Node name="FoolHeating" expanded="True">
                       <Node name="FloorHeatingPageBLL.cs" selected="True" />
                     </Node>
@@ -51,11 +55,11 @@
     <String>Shared.Droid.TouchID/Shared.Droid.TouchID.csproj</String>
     <String>Shared.IOS/Shared.IOS.csproj</String>
   </DisabledProjects>
-  <MonoDevelop.Ide.Workspace ActiveConfiguration="Release|iPhone" />
+  <MonoDevelop.Ide.Workspace ActiveConfiguration="Debug|iPhone" />
   <MonoDevelop.Ide.ItemProperties.HDL-ON__Android PreferredExecutionTarget="Android.SelectDevice" />
   <MonoDevelop.Ide.DebuggingService.Breakpoints>
     <BreakpointStore>
-      <Breakpoint file="/Users/kaede/Desktop/HDL_APP_Project/HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPageBLL.cs" relfile="HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPageBLL.cs" line="157" column="1" />
+      <Breakpoint file="/Users/kaede/Desktop/HDL_APP_Project/HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPageBLL.cs" relfile="HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPageBLL.cs" line="165" column="1" />
     </BreakpointStore>
   </MonoDevelop.Ide.DebuggingService.Breakpoints>
   <MultiItemStartupConfigurations />
diff --git a/HDL-ON_Android/.DS_Store b/HDL-ON_Android/.DS_Store
index 8ab613d..e004a67 100644
--- a/HDL-ON_Android/.DS_Store
+++ b/HDL-ON_Android/.DS_Store
Binary files differ
diff --git a/HDL-ON_iOS/.DS_Store b/HDL-ON_iOS/.DS_Store
index 3ddebd4..a4d36d0 100644
--- a/HDL-ON_iOS/.DS_Store
+++ b/HDL-ON_iOS/.DS_Store
Binary files differ
diff --git a/HDL_ON/DAL/Server/HttpServerRequest.cs b/HDL_ON/DAL/Server/HttpServerRequest.cs
index 6147c35..a4d3d4b 100644
--- a/HDL_ON/DAL/Server/HttpServerRequest.cs
+++ b/HDL_ON/DAL/Server/HttpServerRequest.cs
@@ -1969,7 +1969,11 @@
             d.Add("scenes", new List<Scene>() { scene });
 
             var requestJson = HttpUtil.GetSignRequestJson(d);
-            return HttpUtil.RequestHttpsPostFroHome(NewAPI.Api_Post_AddSecne, requestJson);
+            var pack = HttpUtil.RequestHttpsPostFroHome(NewAPI.Api_Post_AddSecne, requestJson);
+
+            MainPage.Log($"{pack.Data}");
+
+            return pack;
         }
         /// <summary>
         /// 缂栬緫鍦烘櫙
diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs
old mode 100755
new mode 100644
index 40949db..ce8b875
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs
@@ -137,7 +137,6 @@
 
                             //鍔犺浇鏁版嵁鐣岄潰鐨勮缃柟娉�(鍒楄〃浜掍笉鑱斿姩)
                             view.mUIPickerView.setNPicker(temperatureList, null, null);
-
                             //榛樿鍒濆閫変腑鐘舵��
                             view.mUIPickerView.setCurrentItems(9, 0, 0);
                             //瀹氫箟涓�涓眬閮ㄥ彉閲忚褰曢�変腑鏃堕棿
@@ -506,7 +505,41 @@
                     Output outputDevice = new Output();
                     outputDevice.target_type = "1";
                     outputDevice.sid = device.sid;
+
+                    switch (device.functionType)
+                    {
+                        case FunctionType.Dimmer:
+                        case FunctionType.RGB:
+                        case FunctionType.RGBW:
+                        case FunctionType.ColorTemperature:
+                            {
+                                //璋冨厜鍋氫簡涓�涓壒娈婂鐞嗭紱
+                                if (dicSateteList.Count > 1)
+                                {
+                                    foreach (var dictionary in dicSateteList)
+                                    {
+                                        string keyValue = dictionary["key"];
+                                        if (keyValue == "on_off")
+                                        {
+                                            if (dictionary["value"] == "off")
+                                            {
+                                                //绉婚櫎鍒楄〃鎵�鏈夋暟鎹�
+                                                dicSateteList.Clear();
+                                                //閲嶆柊娣诲姞寮�鍏夊睘鎬ф暟鎹�
+                                                Dictionary<string, string> diction = new Dictionary<string, string>();
+                                                diction.Add("key", "on_off");
+                                                diction.Add("value", "off");
+                                                dicSateteList.Add(diction);
+                                                break;
+                                            }
+                                        }
+                                    }
+                                }
+                                break;
+                            }
+                    }
                     outputDevice.status = dicSateteList;
+
                     if (edit)
                     {
                         //绉婚櫎鏃ф暟鎹�
diff --git a/HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPageBLL.cs b/HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPageBLL.cs
index 994fd7e..091d098 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPageBLL.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPageBLL.cs
@@ -29,6 +29,14 @@
                     {
                         bodyView.arcBar.Progress = Convert.ToInt32(Convert.ToDouble(uFh.trait_temp.curValue));
                     }
+                    if(uFh.trait_on_off.curValue.ToString() == "on")
+                    {
+                        bodyView.arcBar.Enable = true;
+                    }
+                    else
+                    {
+                        bodyView.arcBar.Enable = false;
+                    }
                 });
             }
             catch (Exception ex)

--
Gitblit v1.8.0