From efd01cddef2e9d29907592cbed154fba548d7ede Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期二, 07 十一月 2023 11:14:43 +0800
Subject: [PATCH] Merge branch 'Dev-Branch' into wjc
---
HDL_ON/UI/UI2/FuntionControlView/Electrical/AirSwitchPage.cs | 2
HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/BrandListPage.cs | 10
HDL_ON/UI/UI2/FuntionControlView/Electrical/DvdPage.cs | 4
HDL_ON/UI/UI2/FuntionControlView/Light/ColorTureLampPage.cs | 2
HDL_ON/UI/UI2/FuntionControlView/Curtain/RollingShutterPage.cs | 2
HDL_ON/UI/UI2/FuntionControlView/ArmCenter/ArmCenterPage.cs | 8
HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/DeviceListPage.cs | 8
HDL_ON/UI/UI2/FuntionControlView/ArmCenter/AddOutputPage.cs | 19
HDL_ON/HDL_ON.projitems | 5
HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/Iot_BrandListPage.cs | 14
HDL_ON/UI/UI2/FuntionControlView/Curtain/CurtainDreamPage.cs | 2
HDL_ON/UI/UI2/FuntionControlView/FunctionBaseInfoSetPage.cs | 7
HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/Iot_BrandFunctionListPage.cs | 16
HDL-ON_iOS/Info.plist | 4
HDL_ON/DAL/Server/NewApiRes.cs | 23 +
HDL_ON/UI/UI2/FuntionControlView/Light/GroupControlPage_V2.cs | 2
HDL_ON/UI/UI2/4-PersonalCenter/CancelAccountPage.cs | 5
HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPage.cs | 31 +
HDL_ON/UI/UI2/FuntionControlView/Light/RelayPage.cs | 2
HDL_ON/UI/UI2/FuntionControlView/Electrical/IrFanPage.cs | 2
HDL_ON/UI/UI2/FuntionControlView/Light/RGBWPage.cs | 2
HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/ChangeBindAccountPage.cs | 8
HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/ResidentialManagePage.cs | 8
HDL_ON/UI/UI2/1-HomePage/MessageCenterPage.cs | 6
HDL_ON/UI/UI2/FuntionControlView/ArmCenter/AddInputPage.cs | 14
HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs | 107 ------
HDL_ON/UI/UI2/FuntionControlView/AC/ACPage.cs | 2
HDL_ON/UI/UI2/FuntionControlView/Electrical/FanPage.cs | 2
HDL_ON/UI/UI2/4-PersonalCenter/FaceManagement/FacePassagePage.cs | 9
HDL_ON/UI/UI2/3-Intelligence/Scene/SceneEditPage.cs | 65 +++
HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPage.cs | 2
HDL_ON/UI/UI2/FuntionControlView/ArmCenter/PushConfigPage.cs | 8
HDL_ON/UI/UI0-Public/TopViewDiv.cs | 21
HDL_ON/UI/UI2/FuntionControlView/Electrical/StbPage.cs | 4
HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/NewBindAccountPage.cs | 8
HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/NewBindVerificationCodePage.cs | 6
HDL_ON/UI/UI2/FuntionControlView/Electrical/PjtPage.cs | 4
HDL_ON/UI/UI2/4-PersonalCenter/SmartSpeaker/SmartSpeakerListPage.cs | 6
HDL_ON/UI/UI2/4-PersonalCenter/MemberManagement/MemberManagementPage.cs | 4
HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAddPage.cs | 21 +
HDL_ON/UI/UI2/FuntionControlView/Light/RGBPage.cs | 2
HDL_ON/UI/UI2/FuntionControlView/Electrical/TVPage.cs | 4
HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAutomationListChoosePage.cs | 127 +++++++
HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPage.cs | 2
HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/AddDevciePage.cs | 8
HDL_ON/UI/UI2/FuntionControlView/Electrical/SocketPage.cs | 2
HDL_ON/UI/UI2/FuntionControlView/Electrical/AirSwitchP3Page.cs | 2
HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/ChangeBindVerificationCodePage.cs | 6
HDL_ON/UI/UI2/4-PersonalCenter/AboutOn/AboutOnPage.cs | 6
HDL_ON/UI/UI2/FuntionControlView/Curtain/VenetianBlindsPage.cs | 2
HDL_ON/UI/MainPage.cs | 2
HDL_ON/UI/UI2/FuntionControlView/Curtain/MotorCurtainPage.cs | 2
HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/TvControlPage.cs | 4
HDL_ON/UI/UI2/FuntionControlView/Curtain/CurtainModulePage.cs | 2
HDL_ON/UI/UI2/4-PersonalCenter/ResetAccountPassword/ResetPasswordPage.cs | 7
/dev/null | 264 ----------------
HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/iot_BindTipPage.cs | 8
HDL_ON/UI/UI2/4-PersonalCenter/MyQRCodePage.cs | 4
HDL_ON/UI/UI2/4-PersonalCenter/MyServerInfoPage.cs | 6
HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/AccountBindInfoPage.cs | 6
HDL_ON/UI/UI2/FuntionControlView/ArmCenter/AddAlarmDeploymentPage.cs | 12
61 files changed, 414 insertions(+), 539 deletions(-)
diff --git a/HDL-ON_iOS/Info.plist b/HDL-ON_iOS/Info.plist
index e4af464..a3ccd7f 100644
--- a/HDL-ON_iOS/Info.plist
+++ b/HDL-ON_iOS/Info.plist
@@ -11,7 +11,7 @@
<key>CFBundleName</key>
<string>On Pro</string>
<key>CFBundleShortVersionString</key>
- <string>2.3.1</string>
+ <string>2.3.2</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
@@ -36,7 +36,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
- <string>2.3.1</string>
+ <string>2.3.2</string>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>weixinULAPI</string>
diff --git a/HDL_ON/DAL/Server/NewApiRes.cs b/HDL_ON/DAL/Server/NewApiRes.cs
index 2d97f12..42b4790 100644
--- a/HDL_ON/DAL/Server/NewApiRes.cs
+++ b/HDL_ON/DAL/Server/NewApiRes.cs
@@ -638,6 +638,23 @@
/// </summary>
public bool isSupportGroupControl = false;
+
+ public string linkDriverVersion = "3.0.0";
+
+ /// <summary>
+ /// 鏄惁鏀寔鍦烘櫙鎺у埗鑷姩鍖栦娇鑳�
+ /// </summary>
+ public bool isSupportSceneEnableAutomation {
+ get
+ {
+#if DEBUG
+ linkDriverVersion = "V03.08.00";
+#endif
+ return string.Compare(linkDriverVersion, "V03.07.99", false) == 1 ? true : false;
+
+ }
+ }
+
///// <summary>
/////
///// </summary>
@@ -664,7 +681,7 @@
- #endregion
+#endregion
#region 瑙g粦缃戝叧
/// <summary>
@@ -684,7 +701,7 @@
}
#endregion
- #endregion
+#endregion
#region 鈻� 澶囦唤鐩稿叧 ____________________________
/// <summary>
@@ -1464,7 +1481,7 @@
#endregion
- #endregion
+#endregion
/// <summary>
diff --git a/HDL_ON/HDL_ON.projitems b/HDL_ON/HDL_ON.projitems
index 708c9a1..1c8edc2 100644
--- a/HDL_ON/HDL_ON.projitems
+++ b/HDL_ON/HDL_ON.projitems
@@ -136,7 +136,6 @@
<Compile Include="$(MSBuildThisFileDirectory)UI\UI2\4-PersonalCenter\GetSupport\QuestionListPage.cs" />
<Compile Include="$(MSBuildThisFileDirectory)UI\UI2\4-PersonalCenter\AccountBindInfo\NewBindVerificationCodePage.cs" />
<Compile Include="$(MSBuildThisFileDirectory)UI\UI2\4-PersonalCenter\AccountBindInfo\NewBindAccountPage.cs" />
- <Compile Include="$(MSBuildThisFileDirectory)UI\UI2\4-PersonalCenter\AccountBindInfo\BindAccountPage.cs" />
<Compile Include="$(MSBuildThisFileDirectory)UI\UI2\4-PersonalCenter\AccountBindInfo\AccountBindInfoPage.cs" />
<Compile Include="$(MSBuildThisFileDirectory)UI\UI2\4-PersonalCenter\AccountBindInfo\ChangeBindAccountPage.cs" />
<Compile Include="$(MSBuildThisFileDirectory)UI\UI2\4-PersonalCenter\AccountBindInfo\ChangeBindVerificationCodePage.cs" />
@@ -173,9 +172,7 @@
<Compile Include="$(MSBuildThisFileDirectory)UI\UI2\4-PersonalCenter\MemberManagement\MemberManagementPageBLL.cs" />
<Compile Include="$(MSBuildThisFileDirectory)UI\UI2\4-PersonalCenter\MemberManagement\MemberPermissionPage.cs" />
<Compile Include="$(MSBuildThisFileDirectory)UI\UI2\4-PersonalCenter\MemberManagement\ChooseShareMemberTargetListPage.cs" />
- <Compile Include="$(MSBuildThisFileDirectory)UI\UI2\4-PersonalCenter\AddFunction\ThirdPartyBrandListPage.cs" />
<Compile Include="$(MSBuildThisFileDirectory)UI\UI2\4-PersonalCenter\AddFunction\AddDevciePage.cs" />
- <Compile Include="$(MSBuildThisFileDirectory)UI\UI2\4-PersonalCenter\AddFunction\AddThirdPartyBrandListpage.cs" />
<Compile Include="$(MSBuildThisFileDirectory)UI\UI2\4-PersonalCenter\AddFunction\DeviceListPage.cs" />
<Compile Include="$(MSBuildThisFileDirectory)UI\UI2\4-PersonalCenter\AddFunction\BrandListPage.cs" />
<Compile Include="$(MSBuildThisFileDirectory)UI\UI2\4-PersonalCenter\UnlockSetting\AppUnlockGesturePage.cs" />
@@ -510,7 +507,6 @@
<Compile Include="$(MSBuildThisFileDirectory)UI\UI2\4-PersonalCenter\AddFunction\iot_BindTipPage.cs" />
<Compile Include="$(MSBuildThisFileDirectory)UI\UI2\4-PersonalCenter\AddFunction\Iot_BrandFunctionListPage.cs" />
<Compile Include="$(MSBuildThisFileDirectory)UI\UI2\4-PersonalCenter\AddFunction\Iot_AuthorizedPage.cs" />
- <Compile Include="$(MSBuildThisFileDirectory)UI\UI2\4-PersonalCenter\AddFunction\Iot_SupportSpkListPage.cs" />
<Compile Include="$(MSBuildThisFileDirectory)DAL\DriverLayer\Control_Tcp.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Entity\Function\InverterInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)UI\UI2\H5Page.cs" />
@@ -540,7 +536,6 @@
<Compile Include="$(MSBuildThisFileDirectory)UI\UI2\4-PersonalCenter\MemberManagement\MemberFaceManagementPage.cs" />
<Compile Include="$(MSBuildThisFileDirectory)UI\UI2\4-PersonalCenter\CombinedDimming\CombinedDimmingListPage.cs" />
<Compile Include="$(MSBuildThisFileDirectory)UI\UI2\4-PersonalCenter\CombinedDimming\GroupControl.cs" />
- <Compile Include="$(MSBuildThisFileDirectory)UI\UI2\4-PersonalCenter\CombinedDimming\AddCombineDimmingPage.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Entity\ResponseEntity\FreeviewMemberInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)UI\UI2\4-PersonalCenter\CombinedDimming\GroupChooseRoomPage.cs" />
<Compile Include="$(MSBuildThisFileDirectory)UI\UI2\4-PersonalCenter\CombinedDimming\AddGroupControlPage.cs" />
diff --git a/HDL_ON/UI/MainPage.cs b/HDL_ON/UI/MainPage.cs
index 3d6d3c4..50ba13c 100644
--- a/HDL_ON/UI/MainPage.cs
+++ b/HDL_ON/UI/MainPage.cs
@@ -26,7 +26,7 @@
/// <summary>
/// 鐗堟湰鍙�
/// </summary>
- public static string VersionString = "2.3.1";
+ public static string VersionString = "2.3.2";
///// <summary>
///// 瀹㈡埛绔被鍨�
///// </summary>
diff --git a/HDL_ON/UI/UI0-Public/TopViewDiv.cs b/HDL_ON/UI/UI0-Public/TopViewDiv.cs
index 31658f6..0bf2eb4 100644
--- a/HDL_ON/UI/UI0-Public/TopViewDiv.cs
+++ b/HDL_ON/UI/UI0-Public/TopViewDiv.cs
@@ -144,7 +144,7 @@
var btnSetting = new Button()
{
X = Application.GetRealWidth(337),
- Y = Application.GetRealHeight(29),
+ Y = Application.GetRealHeight(29 + maginY),
Width = Application.GetMinRealAverage(28),
Height = Application.GetMinRealAverage(28),
UnSelectedImagePath = "Public/FuncInfoSetIcon.png",
@@ -174,7 +174,7 @@
var btnSetting = new Button()
{
X = Application.GetRealWidth(337-37),
- Y = Application.GetRealHeight(20),
+ Y = Application.GetRealHeight(20 + maginY),
Width = Application.GetMinRealAverage(28+37),
Height = Application.GetMinRealAverage(28+19),
TextID = StringId.CombinedDimming,
@@ -201,13 +201,14 @@
public void LoadTopView_FunctionTop(Function function, Action action,bool locationSet = true)
{
backAction = action;
+ maginY = 10;
LoadTopView();
var btnSetting = new Button()
{
X = Application.GetRealWidth(337),
- Y = Application.GetRealHeight(28),
+ Y = Application.GetRealHeight(28 + maginY),
Width = Application.GetMinRealAverage(32),
Height = Application.GetMinRealAverage(32),
UnSelectedImagePath = "Public/FuncInfoSetIcon.png",
@@ -241,7 +242,7 @@
var btnSetting = new Button()
{
X = Application.GetRealWidth(337),
- Y = Application.GetRealHeight(29),
+ Y = Application.GetRealHeight(29 + maginY),
Width = Application.GetMinRealAverage(28),
Height = Application.GetMinRealAverage(28),
UnSelectedImagePath = "Public/FuncInfoSetIcon.png",
@@ -272,7 +273,7 @@
var btnSetting = new Button()
{
X = Application.GetRealWidth(355-100),
- Y = Application.GetRealHeight(29),
+ Y = Application.GetRealHeight(29 + maginY),
Width = Application.GetMinRealAverage(100),
Height = Application.GetMinRealAverage(28),
TextColor = isDelColor ?CSS_Color.WarningColor: CSS_Color.MainColor,
@@ -300,7 +301,7 @@
var btnAddIcon = new Button()
{
X = Application.GetRealWidth(337),
- Y = Application.GetRealHeight(29),
+ Y = Application.GetRealHeight(29 + maginY),
Width = Application.GetMinRealAverage(28),
Height = Application.GetMinRealAverage(28),
UnSelectedImagePath = "Public/AddIcon.png",
@@ -351,7 +352,7 @@
var btnAddIcon = new Button()
{
X = Application.GetRealWidth(337),
- Y = Application.GetRealHeight(29),
+ Y = Application.GetRealHeight(29 + maginY),
Width = Application.GetMinRealAverage(28),
Height = Application.GetMinRealAverage(28),
UnSelectedImagePath = "Public/LinkIotIcon.png",
@@ -378,7 +379,7 @@
var btnAddIcon = new Button()
{
X = Application.GetRealWidth(337),
- Y = Application.GetRealHeight(29),
+ Y = Application.GetRealHeight(29 + maginY),
Width = Application.GetMinRealAverage(28),
Height = Application.GetMinRealAverage(28),
UnSelectedImagePath = "Public/Iot_agreement_icon.png",
@@ -444,7 +445,7 @@
var btnAddIcon = new Button()
{
X = Application.GetRealWidth(337),
- Y = Application.GetRealHeight(29),
+ Y = Application.GetRealHeight(29 + maginY),
Width = Application.GetMinRealAverage(28),
Height = Application.GetMinRealAverage(28),
UnSelectedImagePath = "Public/AddIcon.png",
@@ -494,7 +495,7 @@
var btnAddIcon = new Button()
{
X = Application.GetRealWidth(337),
- Y = Application.GetRealHeight(29),
+ Y = Application.GetRealHeight(29+maginY),
Width = Application.GetMinRealAverage(28),
Height = Application.GetMinRealAverage(28),
UnSelectedImagePath = "Public/AddIcon.png",
diff --git a/HDL_ON/UI/UI2/1-HomePage/MessageCenterPage.cs b/HDL_ON/UI/UI2/1-HomePage/MessageCenterPage.cs
index 1796050..0ed2008 100644
--- a/HDL_ON/UI/UI2/1-HomePage/MessageCenterPage.cs
+++ b/HDL_ON/UI/UI2/1-HomePage/MessageCenterPage.cs
@@ -73,7 +73,9 @@
public void LoadPage(Action backAction)
{
this.backAction = backAction;
- new TopViewDiv(bodyView, Language.StringByID(StringId.MessageCenter)).LoadTopView();
+ var topView = new TopViewDiv(bodyView, Language.StringByID(StringId.MessageCenter));
+ topView.maginY = 10;
+ topView.LoadTopView();
AddTopMenuView();
AddMessageView();
@@ -92,7 +94,7 @@
menuView = new HorizontalScrolViewLayout()
{
- Y = Application.GetRealHeight(64),
+ Y = Application.GetRealHeight(64+10),
Height = Application.GetRealWidth(117),
BackgroundColor = CSS_Color.MainBackgroundColor,
HorizontalScrollBarEnabled = false//闅愯棌婊氬姩鏉�
diff --git a/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAddPage.cs b/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAddPage.cs
index c4219e2..575dadd 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAddPage.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAddPage.cs
@@ -878,11 +878,22 @@
void LoadEvent_ChangeFunctionList()
{
btnAddFunctionTitle.MouseUpEventHandler = (sender, e) => {
- //var sefp = new SceneFunctionListChoosePage(scene, refreshFunctionRowAction);
- var sefp = new SceneTargetTypeChoosePage(scene, refreshFunctionRowAction);
- MainPage.BasePageView.AddChidren(sefp);
- sefp.LoadPage();
- MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+ if (DB_ResidenceData.Instance.HomeGateway.isSupportSceneEnableAutomation)
+ {
+ //var sefp =new SceneFunctionListChoosePage(scene,refreshFunctionRowAction);
+ var sefp = new SceneTargetTypeChoosePage(scene, refreshFunctionRowAction);
+ MainPage.BasePageView.AddChidren(sefp);
+ sefp.LoadPage();
+ MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+ }
+ else
+ {
+ var sefp = new SceneFunctionListChoosePage(scene, refreshFunctionRowAction);
+ //var sefp = new SceneTargetTypeChoosePage(scene, refreshFunctionRowAction);
+ MainPage.BasePageView.AddChidren(sefp);
+ sefp.LoadPage();
+ MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+ }
};
}
diff --git a/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAutomationListChoosePage.cs b/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAutomationListChoosePage.cs
index 47b80df..16fa3e4 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAutomationListChoosePage.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAutomationListChoosePage.cs
@@ -1,5 +1,6 @@
锘縰sing System;
using System.Collections.Generic;
+using HDL_ON.DAL.Server;
using HDL_ON.Entity;
using HDL_ON.UI.CSS;
using HDL_ON.UI.UI2.Intelligence.Automation;
@@ -35,6 +36,7 @@
{
Y = Application.GetRealHeight(74),
Height = Application.GetRealHeight(667-80),
+ ScrollEnabled = false,
};
bodyView.AddChidren(contentView);
@@ -192,21 +194,71 @@
var temp = scene.functions.Find((obj) => obj.sid == logicSid);
if (temp != null)
{
- temp.status.Clear();
+ var kv = temp.status.Find((obj) => obj.key == "enable");
+ if (kv != null)
+ {
+ kv.value = "true";
+ }
+ else
+ {
+ temp.status.Add(new SceneFunctionStatus()
+ {
+ key = "enable",
+ value = "true",
+ });
+ }
}
else
{
temp = new SceneFunction();
temp.type = "7";
temp.sid = logicSid;
+ temp.status.Add(new SceneFunctionStatus()
+ {
+ key = "enable",
+ value = "true"
+ });
scene.functions.Add(temp);
}
- temp.status.Add(new SceneFunctionStatus()
+ if (scene.userSceneId != null)
{
- key = "enable",
- value = "true"
- });
- refreshAction();
+ var waitPage = new Loading();
+ bodyView.AddChidren(waitPage);
+ waitPage.Start("");
+ new System.Threading.Thread(() => {
+ try
+ {
+ var code = scene.EditScene();
+ Application.RunOnMainThread(() =>
+ {
+ if (code == "0")
+ {
+ refreshAction();
+ }
+ else
+ {
+ IMessageCommon.Current.ShowErrorInfoAlter(code);
+ }
+ });
+ }
+ catch { }
+ finally
+ {
+ Application.RunOnMainThread(() => {
+ if (waitPage != null)
+ {
+ waitPage.RemoveFromParent();
+ waitPage = null;
+ }
+ });
+ }
+ })
+ { IsBackground = true }.Start();
+ }
+ else
+ {
+ refreshAction();
+ }
};
btnOff.MouseUpEventHandler = (sender, e) =>
{
@@ -214,21 +266,72 @@
var temp = scene.functions.Find((obj) => obj.sid == logicSid);
if (temp != null)
{
- temp.status.Clear();
+ var kv = temp.status.Find((obj) => obj.key == "enable");
+ if (kv != null)
+ {
+ kv.value = "false";
+ }
+ else
+ {
+ temp.status.Add(new SceneFunctionStatus()
+ {
+ key = "enable",
+ value = "false",
+ });
+ }
}
else
{
temp = new SceneFunction();
temp.type = "7";
temp.sid = logicSid;
+ temp.status.Add(new SceneFunctionStatus()
+ {
+ key = "enable",
+ value = "false"
+ });
scene.functions.Add(temp);
}
- temp.status.Add(new SceneFunctionStatus()
+
+ if (scene.userSceneId != null)
{
- key = "enable",
- value = "false"
- });
- refreshAction();
+ var waitPage = new Loading();
+ bodyView.AddChidren(waitPage);
+ waitPage.Start("");
+ new System.Threading.Thread(() => {
+ try
+ {
+ var code = scene.EditScene();
+ Application.RunOnMainThread(() =>
+ {
+ if (code == "0")
+ {
+ refreshAction();
+ }
+ else
+ {
+ IMessageCommon.Current.ShowErrorInfoAlter(code);
+ }
+ });
+ }
+ catch { }
+ finally
+ {
+ Application.RunOnMainThread(() => {
+ if (waitPage != null)
+ {
+ waitPage.RemoveFromParent();
+ waitPage = null;
+ }
+ });
+ }
+ })
+ { IsBackground = true }.Start();
+ }
+ else
+ {
+ refreshAction();
+ }
};
}
diff --git a/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneEditPage.cs b/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneEditPage.cs
index 40589b1..ae70c7a 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneEditPage.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneEditPage.cs
@@ -821,13 +821,21 @@
btnOn.MouseUpEventHandler = (sender, e) =>
{
dialog.Close();
- temp = new SceneFunction();
temp.type = "7";
- temp.status.Add(new SceneFunctionStatus()
+ var kv = temp.status.Find((obj) => obj.key == "enable");
+ if (kv != null)
{
- key = "enable",
- value = "true"
- });
+ kv.value = "true";
+ }
+ else
+ {
+ temp.status.Add(new SceneFunctionStatus()
+ {
+ key = "enable",
+ value = "true",
+ });
+ }
+
var waitPage = new Loading();
bodyView.AddChidren(waitPage);
waitPage.Start("");
@@ -840,6 +848,10 @@
if (code == "0")
{
btnTipText.TextID = StringId.OpenArm;
+ }
+ else
+ {
+ IMessageCommon.Current.ShowErrorInfoAlter(code);
}
});
}
@@ -860,13 +872,21 @@
btnOff.MouseUpEventHandler = (sender, e) =>
{
dialog.Close();
- temp = new SceneFunction();
temp.type = "7";
- temp.status.Add(new SceneFunctionStatus()
+
+ var kv = temp.status.Find((obj) => obj.key == "enable");
+ if (kv != null)
{
- key = "enable",
- value = "false"
- });
+ kv.value = "false";
+ }
+ else
+ {
+ temp.status.Add(new SceneFunctionStatus()
+ {
+ key = "enable",
+ value = "false",
+ });
+ }
var waitPage = new Loading();
bodyView.AddChidren(waitPage);
@@ -880,6 +900,10 @@
if (code == "0")
{
btnTipText.TextID = StringId.Close;
+ }
+ else
+ {
+ IMessageCommon.Current.ShowErrorInfoAlter(code);
}
});
}
@@ -948,11 +972,22 @@
void LoadEvent_ChangeFunctionList()
{
btnAddFunctionTitle.MouseUpEventHandler = (sender, e) => {
- //var sefp =new SceneFunctionListChoosePage(scene,refreshFunctionRowAction);
- var sefp = new SceneTargetTypeChoosePage(scene, refreshFunctionRowAction);
- MainPage.BasePageView.AddChidren(sefp);
- sefp.LoadPage();
- MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+ if (DB_ResidenceData.Instance.HomeGateway.isSupportSceneEnableAutomation)
+ {
+ //var sefp =new SceneFunctionListChoosePage(scene,refreshFunctionRowAction);
+ var sefp = new SceneTargetTypeChoosePage(scene, refreshFunctionRowAction);
+ MainPage.BasePageView.AddChidren(sefp);
+ sefp.LoadPage();
+ MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+ }
+ else
+ {
+ var sefp = new SceneFunctionListChoosePage(scene,refreshFunctionRowAction);
+ //var sefp = new SceneTargetTypeChoosePage(scene, refreshFunctionRowAction);
+ MainPage.BasePageView.AddChidren(sefp);
+ sefp.LoadPage();
+ MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+ }
};
}
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AboutOn/AboutOnPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AboutOn/AboutOnPage.cs
index 2bf2a19..2f38f9b 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/AboutOn/AboutOnPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/AboutOn/AboutOnPage.cs
@@ -46,13 +46,15 @@
/// </summary>
public void LoadPage()
{
- new TopViewDiv(bodyView, Language.StringByID(StringId.About)).LoadTopView();
+ var topView = new TopViewDiv(bodyView, Language.StringByID(StringId.About));
+ topView.maginY = 10;
+ topView.LoadTopView();
this.BackgroundColor = CSS_Color.MainBackgroundColor;
Button btnOnIcon = new Button()
{
Gravity = Gravity.CenterHorizontal,
- Y = Application.GetRealWidth(106),
+ Y = Application.GetRealWidth(106+10),
Width = Application.GetRealWidth(58),
Height = Application.GetRealWidth(58),
UnSelectedImagePath = "OnIcon.png",
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/AccountBindInfoPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/AccountBindInfoPage.cs
index 331dc4a..0e0a31d 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/AccountBindInfoPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/AccountBindInfoPage.cs
@@ -47,11 +47,13 @@
optionType = ot;
titleId = tId;
bodyView.BackgroundColor = CSS_Color.BackgroundColor;
- new TopViewDiv(bodyView, Language.StringByID(titleId)).LoadTopView();
+ var topView = new TopViewDiv(bodyView, Language.StringByID(titleId));
+ topView.maginY = 10;
+ topView.LoadTopView();
FrameLayout rowView = new FrameLayout()
{
- Y = Application.GetRealHeight(72),
+ Y = Application.GetRealHeight(72+10),
Height = Application.GetRealHeight(50),
BackgroundColor = CSS_Color.MainBackgroundColor,
};
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/BindAccountPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/BindAccountPage.cs
deleted file mode 100644
index 4129820..0000000
--- a/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/BindAccountPage.cs
+++ /dev/null
@@ -1,206 +0,0 @@
-锘�//using System;
-//using Shared;
-//using HDL_ON.UI.CSS;
-//using System.Text.RegularExpressions;
-//using HDL_ON.DAL.Server;
-
-//namespace HDL_ON.UI
-//{
-// public partial class BindAccountPage : FrameLayout
-// {
-// FrameLayout bodyView;
-// Button btnBind;
-// EditText etContent;
-// Action<string> action;
-// /// <summary>
-// /// 鏍囬ID
-// /// </summary>
-// int titleId;
-// public BindAccountPage()
-// {
-// bodyView = this;
-// }
-
-// public void LoadPage(Action<string> act,int tId)
-// {
-// action = act;
-// titleId = tId;
-// bodyView.BackgroundColor = CSS_Color.BackgroundColor;
-// new TopViewDiv(bodyView, Language.StringByID(titleId)).LoadTopView();
-
-// FrameLayout rowView = new FrameLayout()
-// {
-// Y = Application.GetRealHeight(72),
-// Height = Application.GetRealHeight(50),
-// BackgroundColor = CSS_Color.MainBackgroundColor,
-// };
-// bodyView.AddChidren(rowView);
-
-// Button btnTitle = new Button()
-// {
-// X = Application.GetRealWidth(16),
-// Width = Application.GetRealWidth(180),
-// TextColor = CSS_Color.FirstLevelTitleColor,
-// TextSize = CSS_FontSize.SubheadingFontSize,
-// TextAlignment = TextAlignment.CenterLeft,
-// TextID = titleId == StringId.BindEmail ? StringId.EntryNewEmail : StringId.EntryNewPhone,
-// };
-// rowView.AddChidren(btnTitle);
-
-// etContent = new EditText()
-// {
-// Width = Application.GetRealWidth(359),
-// TextColor = CSS_Color.PromptingColor1,
-// TextSize = CSS_FontSize.TextFontSize,
-// TextAlignment = TextAlignment.CenterRight,
-// Foucs = true
-// };
-// rowView.AddChidren(etContent);
-
-// btnBind = new Button()
-// {
-// Y = Application.GetRealHeight(213),
-// Gravity = Gravity.CenterHorizontal,
-// Width = Application.GetRealWidth(220),
-// Height = Application.GetRealHeight(44),
-// BackgroundColor = CSS_Color.MainColor,
-// TextAlignment = TextAlignment.Center,
-// TextColor = CSS_Color.MainBackgroundColor,
-// TextID = StringId.Confirm,
-// TextSize = CSS_FontSize.SubheadingFontSize,
-// IsBold = true,
-// Radius = (uint)Application.GetRealWidth(22),
-// BorderColor = 0x00000000,
-// BorderWidth = 0,
-// };
-// bodyView.AddChidren(btnBind);
-
-// LoadEvent_BindEmail();
-
-// }
-// }
-
-
-// //--------------------------------------------
-// public partial class BindAccountPage
-// {
-// void LoadEvent_BindEmail()
-// {
-// btnBind.MouseUpEventHandler = (sender, e) => {
-// Application.HideSoftInput();
-// var account = etContent.Text.Trim();
-// if (titleId == StringId.BindEmail)
-// {
-// if (account == UserInfo.Current.userEmailInfo)
-// {
-// var tip = new Tip()
-// {
-// Text = Language.StringByID(StringId.EmailIsSameNoNeedModfiy),
-// CloseTime = 1,
-// Direction = AMPopTipDirection.None
-// };
-// tip.Show(bodyView);
-// return;
-// }
-// if (!Regex.IsMatch(account, "([a-zA-Z0-9_\\.\\-])+\\@(([a-zA-Z0-9\\-])+\\.)+([a-zA-Z0-9]{2,5})+"))
-// {
-// var tip = new Tip()
-// {
-// Text = Language.StringByID(StringId.PlsEntryCorrectEmailAddress),
-// CloseTime = 1,
-// Direction = AMPopTipDirection.None
-// };
-// tip.Show(bodyView);
-// return;
-// }
-// }
-// else if (titleId == StringId.BindPhone)
-// {
-// if(account == UserInfo.Current.userMobileInfo)
-// {
-// var tip = new Tip()
-// {
-// Text = Language.StringByID(StringId.PhoneNumberIsSameNoNeedModfiy),
-// CloseTime = 1,
-// Direction = AMPopTipDirection.None
-// };
-// tip.Show(bodyView);
-// return;
-// }
-// if (!Regex.IsMatch(account, @"^[1]+\d{10}") || (account.Length != 11))
-// {
-// var tip = new Tip()
-// {
-// Text = Language.StringByID(StringId.PlsEntryCorrectMobilNeumber),
-// CloseTime = 1,
-// Direction = AMPopTipDirection.None
-// };
-// tip.Show(bodyView);
-// return;
-// }
-// }
-// new System.Threading.Thread(() =>
-// {
-// var result = new HttpServerRequest().BindAccount(account);
-// if (result.ToUpper() == StateCode.SUCCESS)
-// {
-// Application.RunOnMainThread(() =>
-// {
-// if (titleId == StringId.BindEmail)
-// {
-// UserInfo.Current.userEmailInfo = account;
-// }
-// else if (titleId == StringId.BindPhone)
-// {
-// UserInfo.Current.userMobileInfo = account;
-// }
-// var page = new OperationResultDisPalyPage();
-// page.Show();
-// if (titleId == StringId.BindEmail)
-// {
-// page.LoadPage(true, Language.StringByID(StringId.BindEmail), Language.StringByID(StringId.BindEmailSuccess), "");
-// }
-// else if (titleId == StringId.BindPhone)
-// {
-// page.LoadPage(true, Language.StringByID(StringId.BindPhone), Language.StringByID(StringId.BindPhoneSuccess), "");
-// }
-
-// for (int i = 0; i < 3; i++)
-// {
-// MainPage.BasePageView.GetChildren(MainPage.BasePageView.ChildrenCount - 1).RemoveFromParent();
-// }
-// action(account);
-// });
-// }
-// else
-// {
-// var tipMsg = "";
-
-// Application.RunOnMainThread(() =>
-// {
-// var page = new OperationResultDisPalyPage();
-// page.Show();
-// if (titleId == StringId.BindEmail)
-// {
-// if (result == "Exist")
-// {
-// tipMsg = Language.StringByID(StringId.EmailAlreadyUse);
-// }
-// page.LoadPage(false, Language.StringByID(StringId.BindEmail), Language.StringByID(StringId.BindEmailFail) + "," + tipMsg, "");
-// }
-// else
-// {
-// if (result == "Exist")
-// {
-// tipMsg = Language.StringByID(StringId.PhoneNumberAlreadyUse);
-// }
-// page.LoadPage(false, Language.StringByID(StringId.BindPhone), Language.StringByID(StringId.BindPhoneFail) + "," + tipMsg, "");
-// }
-// });
-// }
-// })
-// { IsBackground = true }.Start();
-// };
-// }
-// }
-//}
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/ChangeBindAccountPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/ChangeBindAccountPage.cs
index af42f85..2b704d4 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/ChangeBindAccountPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/ChangeBindAccountPage.cs
@@ -67,11 +67,13 @@
account = UserInfo.Current.userMobileInfo;
}
bodyView.BackgroundColor = CSS_Color.BackgroundColor;
- new TopViewDiv(bodyView, Language.StringByID(titleId)).LoadTopView();
+ var topView = new TopViewDiv(bodyView, Language.StringByID(titleId));
+ topView.maginY = 10;
+ topView.LoadTopView();
FrameLayout rowView = new FrameLayout()
{
- Y = Application.GetRealHeight(72),
+ Y = Application.GetRealHeight(72+10),
Height = Application.GetRealHeight(50),
BackgroundColor = CSS_Color.MainBackgroundColor,
};
@@ -100,7 +102,7 @@
Button btnChangeBind = new Button()
{
- Y = Application.GetRealHeight(213),
+ Y = Application.GetRealHeight(213+10),
Gravity = Gravity.CenterHorizontal,
Width = Application.GetRealWidth(220),
Height = Application.GetRealWidth(44),
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/ChangeBindVerificationCodePage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/ChangeBindVerificationCodePage.cs
index b599c70..b703c92 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/ChangeBindVerificationCodePage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/ChangeBindVerificationCodePage.cs
@@ -88,11 +88,13 @@
Application.HideSoftInput();
BackConfirmAction();
};
- new TopViewDiv(bodyView, Language.StringByID(tId), false).LoadTopView(backAction);
+ var topView = new TopViewDiv(bodyView, Language.StringByID(tId), false);
+ topView.maginY = 10;
+ topView.LoadTopView(backAction);
btnTip = new Button()
{
- Y = Application.GetRealHeight(64),
+ Y = Application.GetRealHeight(64+10),
Height = Application.GetRealHeight(84),
TextColor = CSS_Color.FirstLevelTitleColor,
TextSize = CSS_FontSize.TextFontSize,
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/NewBindAccountPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/NewBindAccountPage.cs
index 2a3a276..dbc51be 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/NewBindAccountPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/NewBindAccountPage.cs
@@ -70,7 +70,9 @@
bodyView.BackgroundColor = CSS_Color.BackgroundColor;
- new TopViewDiv(bodyView, Language.StringByID(titleId)).LoadTopView();
+ var topView = new TopViewDiv(bodyView, Language.StringByID(titleId));
+ topView.maginY = 10;
+ topView.LoadTopView();
if (isPhone)
{
@@ -93,7 +95,7 @@
#region 濡傛灉鏄墜鏈�
//鎵嬫満鍥藉鍖哄彿閫夋嫨鎸夐挳
ListCellView codeView = new ListCellView() {
- Y = Application.GetRealHeight(64),
+ Y = Application.GetRealHeight(64+10),
};
bodyView.AddChidren(codeView);
//璺宠浆鍥藉鍖哄彿閫夋嫨鐣岄潰
@@ -170,7 +172,7 @@
#region 濡傛灉鏄偖绠�
FrameLayout rowView = new FrameLayout()
{
- Y = Application.GetRealHeight(72),
+ Y = Application.GetRealHeight(72+10),
Height = Application.GetRealHeight(50),
BackgroundColor = CSS_Color.MainBackgroundColor,
};
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/NewBindVerificationCodePage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/NewBindVerificationCodePage.cs
index 3b501fe..000f8de 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/NewBindVerificationCodePage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/NewBindVerificationCodePage.cs
@@ -94,11 +94,13 @@
Application.HideSoftInput();
BackConfirmAction();
};
- new TopViewDiv(bodyView, Language.StringByID(tId), false).LoadTopView(backAction);
+ var topView = new TopViewDiv(bodyView, Language.StringByID(tId), false);
+ topView.maginY = 10;
+ topView.LoadTopView(backAction);
btnTip = new Button()
{
- Y = Application.GetRealHeight(64),
+ Y = Application.GetRealHeight(64-10),
Height = Application.GetRealHeight(84),
TextColor = CSS_Color.FirstLevelTitleColor,
TextSize = CSS_FontSize.TextFontSize,
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/AddDevciePage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/AddDevciePage.cs
index 14acce9..d801642 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/AddDevciePage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/AddDevciePage.cs
@@ -55,13 +55,15 @@
public void LoadPage(VerticalRefreshLayout refreshView)
{
- new TopViewDiv(bodyView, Language.StringByID(StringId.AddDevice)).LoadTopView();
+ var topView = new TopViewDiv(bodyView, Language.StringByID(StringId.AddDevice));
+ topView.maginY = 10;
+ topView.LoadTopView();
bodyView.BackgroundColor = CSS_Color.BackgroundColor;
contentView = new VerticalRefreshLayout()
{
- Y = Application.GetRealHeight(64),
- Height = Application.GetRealHeight(667 - 64),
+ Y = Application.GetRealHeight(64+10),
+ Height = Application.GetRealHeight(667 - 64-10),
VerticalScrollBarEnabled = false,
};
bodyView.AddChidren(contentView);
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/AddThirdPartyBrandListpage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/AddThirdPartyBrandListpage.cs
deleted file mode 100644
index febc19c..0000000
--- a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/AddThirdPartyBrandListpage.cs
+++ /dev/null
@@ -1,159 +0,0 @@
-锘�//using System;
-//using System.Collections.Generic;
-//using HDL_ON.Entity;
-//using HDL_ON.UI.CSS;
-//using Shared;
-
-//namespace HDL_ON.UI
-//{
-// public class AddThirdPartyBrandListpage : FrameLayout
-// {
-// FrameLayout bodyView;
-// VerticalRefreshLayout contentView;
-// List<IntegratedBrand> brandList;
-// public AddThirdPartyBrandListpage(List<IntegratedBrand> list)
-// {
-// bodyView = this;
-// brandList = list;
-// }
-
-// public void LoadPage()
-// {
-// new TopViewDiv(bodyView, Language.StringByID(StringId.FunctionBrand)).LoadTopView();
-
-// bodyView.BackgroundColor = CSS_Color.BackgroundColor;
-
-// contentView = new VerticalRefreshLayout()
-// {
-// Y = Application.GetRealHeight(64),
-// Height = Application.GetRealHeight(667 - 64),
-// VerticalScrollBarEnabled = false,
-// };
-// bodyView.AddChidren(contentView);
-
-
-// contentView.BeginHeaderRefreshingAction = () =>
-// {
-// contentView.EndHeaderRefreshing();
-// Load3tyBrandList();
-// };
-
-// Load3tyBrandList();
-
-// contentView.BeginHeaderRefreshingAction = () =>
-// {
-// contentView.EndHeaderRefreshing();
-// Load3tyBrandList();
-// };
-// }
-
-// void LoadRow(List<IntegratedBrand> brandList)
-// {
-// contentView.RemoveAll();
-// bool isFrist = true;
-// foreach(var brand in brandList)
-// {
-// FrameLayout row = new FrameLayout() {
-// Height = Application.GetRealHeight(50),
-// BackgroundColor = CSS_Color.MainBackgroundColor,
-// };
-// contentView.AddChidren(row);
-
-// if(isFrist)
-// {
-// isFrist = false;
-// }
-// else
-// {
-// Button btnLine = new Button()
-// {
-// X = Application.GetRealWidth(56),
-// Width = Application.GetRealWidth(303),
-// Height = 1,
-// BackgroundColor = CSS_Color.DividingLineColor,
-// };
-// row.AddChidren(btnLine);
-// }
-
-// ImageView btnIcon = new ImageView()
-// {
-// X = Application.GetRealWidth(12),
-// Gravity = Gravity.CenterVertical,
-// Width = Application.GetRealWidth(32),
-// Height = Application.GetRealWidth(32),
-// Radius = (uint)Application.GetRealWidth(4),
-// BackgroundColor = CSS_Color.PromptingColor1
-// //ImagePath = "tuya_logo.png"
-// };
-// row.AddChidren(btnIcon);
-// Button btnRight = new Button()
-// {
-// X = Application.GetRealWidth(339),
-// Gravity = Gravity.CenterVertical,
-// Width = Application.GetMinRealAverage(16),
-// Height = Application.GetMinRealAverage(16),
-// UnSelectedImagePath = "Public/Right.png",
-// };
-// row.AddChidren(btnRight);
-
-// Button btnName = new Button()
-// {
-// X = Application.GetRealWidth(56),
-// Width = Application.GetRealWidth(303),
-// TextAlignment = TextAlignment.CenterLeft,
-// TextColor = CSS_Color.FirstLevelTitleColor,
-// TextSize = CSS_FontSize.TextFontSize,
-// Text = brand.brandName,
-// };
-// row.AddChidren(btnName);
-// //涓嬭浇绗笁鏂瑰搧鐗宨con
-// ImageUtlis.Current.Load3tyBrandIconImages(brand.brandName, brand.brandIcon, btnIcon);
-
-// btnName.MouseUpEventHandler = (sender, e) => {
-// var page = new AddDevciePage(brand);
-// MainPage.BasePageView.AddChidren(page);
-// page.LoadPage();
-// MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
-// };
-// }
-
-// }
-
-// void Load3tyBrandList()
-// {
-// var waitPage = new Loading();
-// waitPage.Start();
-// new System.Threading.Thread(() => {
-// try
-// {
-// var pm = new DAL.Server.HttpServerRequest();
-// var pack = pm.Get3tyBrandList();
-// if(pack.Code == DAL.Server.StateCode.SUCCESS)
-// {
-// var revData = Newtonsoft.Json.JsonConvert.DeserializeObject<List<IntegratedBrand>>(pack.Data.ToString());
-// Application.RunOnMainThread(() =>
-// {
-// LoadRow(revData);
-// });
-// }
-// }
-// catch (Exception ex)
-// {
-// MainPage.Log("1--::"+ex.Message);
-// }
-// finally
-// {
-// Application.RunOnMainThread(() => { waitPage.Hide(); });
-// }
-// }) { IsBackground = true }.Start();
-// }
-// /// <summary>
-// /// 璺宠浆娣诲姞璁惧鐣岄潰
-// /// </summary>
-// /// <param name="bandType">鍝佺墝绫诲瀷</param>
-// void SkipPage_AddDevice()
-// {
-
-// }
-// }
-//}
\ No newline at end of file
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/BrandListPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/BrandListPage.cs
index f4f0ede..f54199f 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/BrandListPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/BrandListPage.cs
@@ -26,21 +26,23 @@
};
- new TopViewDiv(bodyView, Language.StringByID(StringId.FunctionBrand)).LoadTopView_Add3tyIot(action);
+ var topView = new TopViewDiv(bodyView, Language.StringByID(StringId.FunctionBrand));
+ topView.maginY = 10;
+ topView.LoadTopView_Add3tyIot(action);
bodyView.BackgroundColor = CSS_Color.MainBackgroundColor;
bodyView.AddChidren(new Button
{
- Y = Application.GetRealHeight(64),
+ Y = Application.GetRealHeight(64+10),
Height = Application.GetRealHeight(1),
BackgroundColor = CSS_Color.DividingLineColor,
});
contentView = new VerticalRefreshLayout()
{
- Y = Application.GetRealHeight(65),
- Height = Application.GetRealHeight(603),
+ Y = Application.GetRealHeight(65+10),
+ Height = Application.GetRealHeight(603-10),
};
bodyView.AddChidren(contentView);
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/DeviceListPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/DeviceListPage.cs
index 7bc7270..2bcf880 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/DeviceListPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/DeviceListPage.cs
@@ -34,13 +34,15 @@
page.LoadPage(contentView);
MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
};
- new TopViewDiv(bodyView, Language.StringByID(StringId.Devices)).LoadTopView_AddIcon("3ty", action);
+ var topView = new TopViewDiv(bodyView, Language.StringByID(StringId.Devices));
+ topView.maginY = 10;
+ topView.LoadTopView_AddIcon("3ty", action);
bodyView.BackgroundColor = CSS_Color.BackgroundColor;
contentView = new VerticalRefreshLayout()
{
- Y = Application.GetRealHeight(64),
- Height = Application.GetRealHeight(667 - 64),
+ Y = Application.GetRealHeight(64+10),
+ Height = Application.GetRealHeight(667 - 64-10),
VerticalScrollBarEnabled = false,
};
bodyView.AddChidren(contentView);
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/Iot_BrandFunctionListPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/Iot_BrandFunctionListPage.cs
index bb118a5..053765d 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/Iot_BrandFunctionListPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/Iot_BrandFunctionListPage.cs
@@ -38,22 +38,24 @@
};
page.LoadPage(brand_Iot);
MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
- };
- new TopViewDiv(bodyView, brand_Iot.brandName).LoadTopView_3tyIot(action);
+ };
+ var topView = new TopViewDiv(bodyView, brand_Iot.brandName);
+ topView.maginY = 10;
+ topView.LoadTopView_3tyIot(action);
bodyView.BackgroundColor = CSS_Color.MainBackgroundColor;
bodyView.AddChidren(new Button
{
- Y = Application.GetRealHeight(64),
+ Y = Application.GetRealHeight(64+10),
Height = Application.GetRealHeight(1),
BackgroundColor = CSS_Color.DividingLineColor,
});
Button btnTipText = new Button()
{
- Y = Application.GetRealHeight(80),
+ Y = Application.GetRealHeight(80+10),
Width = Application.GetRealWidth(347),
Height = Application.GetRealHeight(65),
Gravity = Gravity.CenterHorizontal,
@@ -74,8 +76,8 @@
contentView = new FrameLayout()
{
- Y = Application.GetRealHeight(150),
- Height = Application.GetRealHeight(573),
+ Y = Application.GetRealHeight(150+10),
+ Height = Application.GetRealHeight(573-10),
};
bodyView.AddChidren(contentView);
@@ -353,7 +355,7 @@
var btnTip = new Button()
{
Gravity = Gravity.CenterHorizontal,
- Y = Application.GetRealHeight(88),
+ Y = Application.GetRealHeight(88 + 10),
Width = Application.GetRealWidth(180),
Height = Application.GetRealWidth(180),
UnSelectedImagePath = "TipNot.png",
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/Iot_BrandListPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/Iot_BrandListPage.cs
index 6ac1e9a..46448a5 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/Iot_BrandListPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/Iot_BrandListPage.cs
@@ -26,22 +26,24 @@
public void LoadPage()
{
-
- new TopViewDiv(bodyView, Language.StringByID(StringId.Bind3thIotAccount)).LoadTopView(CSS_Color.MainBackgroundColor);
+
+ var topView = new TopViewDiv(bodyView, Language.StringByID(StringId.Bind3thIotAccount));
+ topView.maginY = 10;
+ topView.LoadTopView(CSS_Color.MainBackgroundColor);
bodyView.BackgroundColor = CSS_Color.MainBackgroundColor;
bodyView.AddChidren(new Button
{
- Y = Application.GetRealHeight(64),
+ Y = Application.GetRealHeight(64+10),
Height = Application.GetRealHeight(1),
BackgroundColor = CSS_Color.DividingLineColor,
});
Button btnTipText = new Button()
{
- Y = Application.GetRealHeight(80),
+ Y = Application.GetRealHeight(80+10),
Width = Application.GetRealWidth(347),
Height = Application.GetRealHeight(65),
Gravity = Gravity.CenterHorizontal,
@@ -63,8 +65,8 @@
contentView = new VerticalScrolViewLayout()
{
- Y = Application.GetRealHeight(150),
- Height = Application.GetRealHeight(573),
+ Y = Application.GetRealHeight(150+10),
+ Height = Application.GetRealHeight(573-10),
};
bodyView.AddChidren(contentView);
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/Iot_SupportSpkListPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/Iot_SupportSpkListPage.cs
deleted file mode 100644
index eadaa43..0000000
--- a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/Iot_SupportSpkListPage.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-锘縰sing System;
-using HDL_ON.Entity;
-using Shared;
-
-namespace HDL_ON.UI
-{
- /// <summary>
- /// 鏀寔鐨勭涓夋柟骞冲彴璁惧鍒楄〃鐣岄潰
- /// </summary>
- public class Iot_SupportSpkListPage : FrameLayout
- {
- private FrameLayout bodyView;
-
- IntegratedBrand_Iot brand_Iot;
-
- public Iot_SupportSpkListPage()
- {
- bodyView = this;
- }
-
- public void LoadPage()
- {
-
- }
- }
-}
\ No newline at end of file
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/ThirdPartyBrandListPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/ThirdPartyBrandListPage.cs
deleted file mode 100644
index b292e9d..0000000
--- a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/ThirdPartyBrandListPage.cs
+++ /dev/null
@@ -1,93 +0,0 @@
-锘�//using System;
-//using System.Collections.Generic;
-//using HDL_ON.Entity;
-//using HDL_ON.UI.CSS;
-//using Shared;
-//namespace HDL_ON.UI
-//{
-// public class ThirdPartyBrandListPage : FrameLayout
-// {
-
-// FrameLayout bodyView;
-// FrameLayout contentView;
-// Button btnAdd;
-
-// public ThirdPartyBrandListPage()
-// {
-// bodyView = this;
-// }
-
-// public void LoadPage()
-// {
-// new TopViewDiv(bodyView, Language.StringByID(StringId.FunctionBrand)).LoadTopView();
-
-// contentView = new FrameLayout()
-// {
-// Y = Application.GetRealHeight(64),
-// Height = Application.GetRealHeight(667-64),
-// BackgroundColor = CSS_Color.MainBackgroundColor,
-// };
-// bodyView.AddChidren(contentView);
-
-// AddEmptyTipView();
-
-// Button btnTipMsg = new Button()
-// {
-// Height = Application.GetRealHeight(17 + 24),
-// Y = Application.GetRealHeight(535 - 12),
-// TextColor = CSS_Color.TextualColor,
-// TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
-// TextAlignment = TextAlignment.Center,
-// TextID = StringId.TipAddThirdPartyDeviceMsg,
-// };
-// bodyView.AddChidren(btnTipMsg);
-
-// btnAdd = new Button()
-// {
-// Gravity = Gravity.CenterHorizontal,
-// Y = Application.GetRealHeight(564),
-// Width = Application.GetRealWidth(220),
-// Height = Application.GetRealWidth(44),
-// Radius = (uint)Application.GetRealWidth(22),
-// BackgroundColor = CSS_Color.MainColor,
-// TextAlignment = TextAlignment.Center,
-// TextColor = CSS_Color.MainBackgroundColor,
-// TextID = StringId.Add,
-// };
-// bodyView.AddChidren(btnAdd);
-
-// LoadEvent_SikpAddBrand();
-// }
-
-// /// <summary>
-// /// 娣诲姞鍐呭涓虹┖鎻愮ず椤甸潰
-// /// </summary>
-// void AddEmptyTipView()
-// {
-// var emptyTipView = new FrameLayout()
-// {
-// Height =Application.GetRealWidth(470),
-// Width = contentView.Width,
-// };
-// contentView.AddChidren(emptyTipView);
-
-// var tipView = new EmptyTipView(Language.StringByID(StringId.TipNotThirdPartyDevice))
-// {
-// Gravity = Gravity.Center
-// };
-// emptyTipView.AddChidren(tipView);
-// }
-// /// <summary>
-// /// 璺宠浆缁戝畾绗笁鏂瑰搧鐗岀晫闈�
-// /// </summary>
-// void LoadEvent_SikpAddBrand()
-// {
-// btnAdd.MouseUpEventHandler = (sender, e) => {
-// var page = new AddThirdPartyBrandListpage();
-// MainPage.BasePageView.AddChidren(page);
-// page.LoadPage();
-// MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
-// };
-// }
-// }
-//}
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/iot_BindTipPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/iot_BindTipPage.cs
index 7fe2ade..9fa0b37 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/iot_BindTipPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/iot_BindTipPage.cs
@@ -27,15 +27,17 @@
public void LoadPage(IntegratedBrand_Iot brand_Iot)
{
- new TopViewDiv(bodyView, brand_Iot.brandName).LoadTopView(CSS_Color.MainBackgroundColor);
+ var topView = new TopViewDiv(bodyView, brand_Iot.brandName);
+ topView.maginY = 10;
+ topView.LoadTopView(CSS_Color.MainBackgroundColor);
bodyView.BackgroundColor = CSS_Color.MainBackgroundColor;
var contentView = new VerticalScrolViewLayout()
{
- Y = Application.GetRealHeight(64),
+ Y = Application.GetRealHeight(64+10),
BackgroundColor = CSS_Color.BackgroundColor,
- Height = Application.GetRealHeight(667 - 124)
+ Height = Application.GetRealHeight(667 - 124 - 10)
};
bodyView.AddChidren(contentView);
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/CancelAccountPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/CancelAccountPage.cs
index c4df7f8..3a6090b 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/CancelAccountPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/CancelAccountPage.cs
@@ -87,7 +87,10 @@
public void InitView_PreRelease()
{
- new TopViewDiv(bodyView, Language.StringByID(StringId.CancelAccount)).LoadTopView(CSS_Color.MainBackgroundColor);
+ var topView = new TopViewDiv(bodyView, Language.StringByID(StringId.CancelAccount));
+ topView.maginY = 10;
+ topView.LoadTopView(CSS_Color.MainBackgroundColor);
+
bodyView.BackgroundColor = CSS_Color.BackgroundColor;
var textView = new Button()
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/CombinedDimming/AddCombineDimmingPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/CombinedDimming/AddCombineDimmingPage.cs
deleted file mode 100644
index b5611fd..0000000
--- a/HDL_ON/UI/UI2/4-PersonalCenter/CombinedDimming/AddCombineDimmingPage.cs
+++ /dev/null
@@ -1,264 +0,0 @@
-锘�//using System;
-//using Shared;
-//using HDL_ON.Entity;
-//using HDL_ON.UI.CSS;
-
-//namespace HDL_ON.UI
-//{
-// public class AddCombineDimmingPage : FrameLayout
-// {
-// FrameLayout bodyView;
-
-
-// GroupControl groupControl;
-
-// public AddCombineDimmingPage()
-// {
-// bodyView = this;
-// groupControl = new GroupControl();
-// }
-
-// public void LoadPage()
-// {
-// new TopViewDiv(bodyView, Language.StringByID(StringId.CombinedDimming)).LoadTopView();
-
-// var contentView = new FrameLayout()
-// {
-// Y = Application.GetRealHeight(64),
-// BackgroundColor = CSS_Color.MainBackgroundColor,
-// Height = Application.GetRealHeight(550),
-// };
-// bodyView.AddChidren(contentView);
-
-// #region 缁勫悕绉�
-// FrameLayout groupNameView;
-// groupNameView = new FrameLayout()
-// {
-// Height = Application.GetRealHeight(50),
-// BackgroundColor = CSS_Color.MainBackgroundColor,
-// };
-// contentView.AddChidren(groupNameView);
-// Button btnGroupNameTitle = new Button()
-// {
-// X = Application.GetRealWidth(16),
-// Width = Application.GetRealWidth(78),
-// TextID = StringId.GroupNmae,
-// TextAlignment = TextAlignment.CenterLeft,
-// TextSize = CSS_FontSize.SubheadingFontSize,
-// TextColor = CSS_Color.FirstLevelTitleColor,
-// };
-// groupNameView.AddChidren(btnGroupNameTitle);
-
-// var btnGroupName = new EditText()
-// {
-// X = Application.GetRealWidth(155),
-// Width = Application.GetRealWidth(200),
-// PlaceholderText =Language.StringByID( StringId.PlsEntry),
-// TextSize = CSS_FontSize.TextFontSize,
-// TextAlignment = TextAlignment.CenterRight,
-// TextColor = CSS_Color.TextualColor,
-// };
-// groupNameView.AddChidren(btnGroupName);
-
-// groupNameView.AddChidren(
-// new Button()
-// {
-// Gravity = Gravity.CenterHorizontal,
-// Y = Application.GetRealHeight(49),
-// Height = Application.GetRealHeight(1),
-// Width = Application.GetRealWidth(343),
-// BackgroundColor = CSS_Color.DividingLineColor,
-// });
-// #endregion
-// #region 浣嶇疆绠$悊
-// var locationMagtView = new FrameLayout()
-// {
-// Height = Application.GetRealHeight(55),
-// BackgroundColor = CSS_Color.MainBackgroundColor,
-// };
-// contentView.AddChidren(locationMagtView);
-
-// var btnLocationMagtTitle = new Button()
-// {
-// X = Application.GetRealWidth(16),
-// Width = Application.GetRealWidth(160),
-// TextAlignment = TextAlignment.CenterLeft,
-// TextColor = CSS_Color.FirstLevelTitleColor,
-// TextSize = CSS_FontSize.SubheadingFontSize,
-// TextID = StringId.LocationManagement,
-// };
-// locationMagtView.AddChidren(btnLocationMagtTitle);
-
-// var btnLocationValues = new Button()
-// {
-// X = Application.GetRealWidth(86),
-// Width = Application.GetRealWidth(237),
-// TextAlignment = TextAlignment.CenterRight,
-// TextColor = CSS_Color.PromptingColor1,
-// TextSize = CSS_FontSize.TextFontSize,
-// Text = groupControl.GetRoomListName(),
-// };
-// locationMagtView.AddChidren(btnLocationValues);
-
-// var btnLocationInfoRight = new Button()
-// {
-// X = Application.GetRealWidth(339),
-// Gravity = Gravity.CenterVertical,
-// Width = Application.GetMinRealAverage(16),
-// Height = Application.GetMinRealAverage(16),
-// UnSelectedImagePath = "Public/RightIcon.png",
-// };
-// locationMagtView.AddChidren(btnLocationInfoRight);
-// EventHandler<MouseEventArgs> eventHandler = (sender, e) =>
-// {
-// //淇敼鍔熻兘鎵�灞炴埧闂翠箣鍚庣殑鍥炶皟浜嬩欢
-// Action chooseRoomBackAction = () => {
-// try
-// {
-// btnLocationValues.Text = groupControl.GetRoomListName();
-// }
-// catch { }
-// };
-// var view = new GroupChooseRoomPage(groupControl, chooseRoomBackAction);
-// MainPage.BasePageView.AddChidren(view);
-// view.LoadPage();
-// MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
-// };
-// if (btnLocationInfoRight != null)
-// {
-// btnLocationInfoRight.MouseUpEventHandler = eventHandler;
-// }
-// if (btnLocationValues != null)
-// {
-// btnLocationValues.MouseUpEventHandler = eventHandler;
-// }
-
-// locationMagtView.AddChidren(
-// new Button()
-// {
-// Gravity = Gravity.CenterHorizontal,
-// BackgroundColor = CSS_Color.DividingLineColor,
-// Width = Application.GetRealWidth(343),
-// Height = Application.GetRealHeight(1)
-// });
-// #endregion
-
-// #region 璁惧閫夋嫨
-// contentView.AddChidren(new Button() { Height = Application.GetRealHeight(8) });
-
-// var chooseFunctionTitleView = new FrameLayout()
-// {
-// Height = Application.GetRealHeight(44),
-// BackgroundColor = CSS_Color.MainBackgroundColor,
-// };
-// contentView.AddChidren(chooseFunctionTitleView);
-// contentView.AddChidren(
-// new Button()
-// {
-// Gravity = Gravity.CenterHorizontal,
-// Y = Application.GetRealHeight(49),
-// Height = Application.GetRealHeight(1),
-// Width = Application.GetRealWidth(343),
-// BackgroundColor = CSS_Color.DividingLineColor,
-// });
-
-// var btnChooseFunctionTitle = new Button()
-// {
-// X = Application.GetRealWidth(16),
-// TextAlignment = TextAlignment.CenterLeft,
-// TextColor = CSS_Color.MainColor,
-// TextSize = CSS_FontSize.SubheadingFontSize,
-// IsBold = true,
-// TextID = StringId.SelectGroupControlFunction,
-// };
-// chooseFunctionTitleView.AddChidren(btnChooseFunctionTitle);
-
-// var deviceListView = new VerticalScrolViewLayout()
-// {
-// Height = Application.GetRealHeight(387),
-// };
-// contentView.AddChidren(deviceListView);
-
-// foreach(var function in FunctionList.List.GetLightList())
-// {
-// var functionRow = new FrameLayout()
-// {
-// Height = Application.GetRealHeight(65),
-// BackgroundColor = CSS_Color.MainBackgroundColor,
-// };
-// deviceListView.AddChidren(functionRow);
-
-// var btnFunctionName = new Button()
-// {
-// X = Application.GetRealWidth(16),
-// Y = Application.GetRealHeight(10),
-// Width = Application.GetRealWidth(308),
-// Height = Application.GetRealHeight(24),
-// TextAlignment = TextAlignment.CenterLeft,
-// TextSize = CSS_FontSize.SubheadingFontSize,
-// TextColor = CSS_Color.FirstLevelTitleColor,
-// Text = function.name,
-// };
-// functionRow.AddChidren(btnFunctionName);
-
-// var btnFunctionLocationInfo = new Button()
-// {
-// X = Application.GetRealWidth(16),
-// Y = btnFunctionName.Bottom,
-// Width = Application.GetRealWidth(308),
-// Height = Application.GetRealHeight(21),
-// TextAlignment = TextAlignment.CenterLeft,
-// TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
-// TextColor = CSS_Color.PromptingColor1,
-// Text = function.GetRoomListName(),
-// };
-// functionRow.AddChidren(btnFunctionLocationInfo);
-
-
-
-
-// }
-
-
-// #endregion
-
-// #region 搴曢儴纭鎸夐挳
-
-
-
-// var bottomView = new FrameLayout()
-// {
-// Y = Application.GetRealHeight(591),
-// Height = Application.GetRealHeight(106),
-// BackgroundColor = CSS_Color.MainBackgroundColor,
-// Radius = (uint)Application.GetRealWidth(16),
-// };
-// bodyView.AddChidren(bottomView);
-
-// var btnConfrim = new Button()
-// {
-// Gravity = Gravity.CenterHorizontal,
-// Y = Application.GetRealHeight(12),
-// Width = Application.GetRealWidth(220),
-// Height = Application.GetRealWidth(44),
-// TextAlignment = TextAlignment.Center,
-// TextColor = CSS_Color.MainBackgroundColor,
-// BackgroundColor = CSS_Color.MainColor,
-// TextSize = CSS_FontSize.SubheadingFontSize,
-// IsBold = true,
-// Radius = (uint)Application.GetRealWidth(22),
-// TextID = StringId.Complete
-// };
-// bottomView.AddChidren(btnConfrim);
-
-// btnConfrim.MouseUpEventHandler = (sender, e) =>
-// {
-
-// };
-
-// #endregion
-
-
-// }
-// }
-//}
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/FaceManagement/FacePassagePage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/FaceManagement/FacePassagePage.cs
index f92dd5d..505447f 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/FaceManagement/FacePassagePage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/FaceManagement/FacePassagePage.cs
@@ -66,14 +66,17 @@
public void LoadPage()
{
- new TopViewDiv(bodyView, Language.StringByID(StringId.FacePassage)).LoadTopView();
+ var topNavView = new TopViewDiv(bodyView, Language.StringByID(StringId.FacePassage));
+ topNavView.maginY = 10;
+ topNavView.LoadTopView();
+
bodyView.BackgroundColor = CSS_Color.BackgroundColor;
contentView = new FrameLayout()
{
- Y = Application.GetRealHeight(64),
- Height = Application.GetRealHeight(667 - 64),
+ Y = Application.GetRealHeight(64+10),
+ Height = Application.GetRealHeight(667 - 64 - 10),
};
bodyView.AddChidren(contentView);
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/MemberManagement/MemberManagementPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/MemberManagement/MemberManagementPage.cs
index 4cad50b..436cf68 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/MemberManagement/MemberManagementPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/MemberManagement/MemberManagementPage.cs
@@ -53,7 +53,9 @@
mmp.LoadPage();
MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
};
- new TopViewDiv(bodyView, Language.StringByID(StringId.MemberManagement)).LoadTopView_MemberTopView(refreshAction, backAction);
+ var topView = new TopViewDiv(bodyView, Language.StringByID(StringId.MemberManagement));
+ topView.maginY = 10;
+ topView.LoadTopView_MemberTopView(refreshAction, backAction);
contentView = new VerticalScrolViewLayout()
{
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/MyQRCodePage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/MyQRCodePage.cs
index 862fb16..a24f74f 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/MyQRCodePage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/MyQRCodePage.cs
@@ -24,7 +24,9 @@
public void LoadPage(bool isStartCheckResidenceThread = false)
{
bodyView.BackgroundColor = CSS_Color.BackgroundColor;
- new TopViewDiv(bodyView, Language.StringByID(StringId.MyQRcode)).LoadTopView();
+ var topView = new TopViewDiv(bodyView, Language.StringByID(StringId.MyQRcode));
+ topView.maginY = 10;
+ topView.LoadTopView();
int backViewHeight = Application.GetRealHeight(132) + Application.GetRealWidth(266);
FrameLayout backView = new FrameLayout()
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/MyServerInfoPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/MyServerInfoPage.cs
index e858618..001bc82 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/MyServerInfoPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/MyServerInfoPage.cs
@@ -21,11 +21,13 @@
{
bodyView.BackgroundColor = CSS_Color.MainBackgroundColor;
//鏈嶅姟鍣ㄤ俊鎭�
- new TopViewDiv(bodyView, Language.StringByID(StringId.ServerInformation)).LoadTopView();
+ var topView = new TopViewDiv(bodyView, Language.StringByID(StringId.ServerInformation));
+ topView.maginY = 10;
+ topView.LoadTopView();
ImageView imageView = new ImageView()
{
- Y = Application.GetMinRealAverage(88),
+ Y = Application.GetMinRealAverage(88+10),
Width = Application.GetMinRealAverage(200),
Height = Application.GetMinRealAverage(180),
ImagePath = "PersonalCenter/ServerInfo.png",
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPage.cs
index 7745f79..1228ec0 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPage.cs
@@ -228,13 +228,15 @@
public void LoadView()
{
bodyView.BackgroundColor = CSS_Color.BackgroundColor;
- new TopViewDiv(bodyView, Language.StringByID(StringId.PersonalCenter)).LoadTopView();
+ var topView = new TopViewDiv(bodyView, Language.StringByID(StringId.PersonalCenter));
+ topView.maginY = 10;
+ topView.LoadTopView();
bodyScrolView = new VerticalScrolViewLayout()
{
- Y = Application.GetRealHeight(64),
+ Y = Application.GetRealHeight(64+10),
VerticalScrollBarEnabled = false,
- Height = Application.GetRealHeight(551),
+ Height = Application.GetRealHeight(551-10),
};
bodyView.AddChidren(bodyScrolView);
@@ -262,7 +264,7 @@
};
headPortraitView.AddChidren(userHeadImageView);
-#region 涓汉淇℃伅閫夐」鍖哄煙
+ #region 涓汉淇℃伅閫夐」鍖哄煙
var topPaddingView = new FrameLayout()
{
Height = Application.GetRealHeight(8)
@@ -296,7 +298,7 @@
optionListView.Height = Application.GetRealHeight(51 * (6 + addRow));
-#region 涓汉閫夐」-鍚嶅瓧鍖哄煙
+ #region 涓汉閫夐」-鍚嶅瓧鍖哄煙
/// <summary>
/// 涓汉閫夐」-鍚嶅瓧鍖哄煙
/// </summary>
@@ -344,8 +346,8 @@
};
userNameView.AddChidren(btnEditUserNameIcon);
optionListView.AddChidren(new Button() { X = Application.GetRealWidth(16), Height = Application.GetRealHeight(1), Width = Application.GetRealWidth(343), BackgroundColor = CSS_Color.DividingLineColor });
-#endregion
-#region 涓汉閫夐」-浜岀淮鐮佸尯鍩�
+ #endregion
+ #region 涓汉閫夐」-浜岀淮鐮佸尯鍩�
/// <summary>
/// 涓汉閫夐」-浜岀淮鐮佸尯鍩�
/// </summary>
@@ -392,8 +394,8 @@
UnSelectedImagePath = "Public/Right.png",
};
_QRcodeView.AddChidren(btnQRcodeRight);
-#endregion
-#region 涓汉閫夐」-閭淇℃伅鍖哄煙
+ #endregion
+ #region 涓汉閫夐」-閭淇℃伅鍖哄煙
/// <summary>
/// 涓汉閫夐」-閭淇℃伅鍖哄煙
/// </summary>
@@ -441,7 +443,7 @@
};
userEmailInfoView.AddChidren(btnUserEmailRight);
optionListView.AddChidren(new Button() { X = Application.GetRealWidth(16), Height = Application.GetRealHeight(1), Width = Application.GetRealWidth(343), BackgroundColor = CSS_Color.DividingLineColor });
-#endregion
+ #endregion
#region 涓汉閫夐」-鎵嬫満淇℃伅鍖哄煙
/// <summary>
/// 涓汉閫夐」-鎵嬫満淇℃伅鍖哄煙
@@ -854,7 +856,14 @@
logOffView.BtnTilte.Text = Language.StringByID(StringId.CancelAccount);
logOffView.LineView.RemoveFromParent();
-#endregion
+ #endregion
+
+ bodyView.AddChidren(new Button()
+ {
+ Y = Application.GetRealHeight(622),
+ Height = 1,
+ BackgroundColor = CSS_Color.DividingLineColor,
+ });
btnLogout = new Button()
{
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs
index 2866fb5..e84a5cb 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs
@@ -41,111 +41,6 @@
};
}
- ///// <summary>
- ///// 閫�鍑虹櫥褰曟搷浣�
- ///// </summary>
- //void Logout()
- //{
- // #region 淇濆瓨鏈湴鏁版嵁鑷虫枃浠跺す
- // string oldRegionRootPath = FileUtils.CreateRegionBackup(DB_ResidenceData.residenceData.CurReginID.ToString());
- // new System.Threading.Thread(() =>
- // {
- // try
- // {
- // var backuplist = FileUtils.ReadFiles();
- // //绉诲姩鏂囦欢
- // foreach (var fileName in backuplist)
- // {
- // System.IO.FileInfo fileInfo = new System.IO.FileInfo(FileUtils.RootPath + fileName);
- // if (fileInfo.Exists)
- // {
- // fileInfo.MoveTo(oldRegionRootPath + fileName);
- // MainPage.Log("move file : " + fileName);
- // }
- // }
- // FileUtils.DeleteRegionFiles(oldRegionRootPath);
- // }
- // catch (Exception ex)
- // {
- // MainPage.Log($"xxx:{ex.Message}");
- // }
- // finally
- // {
- // FileUtils.DeleteAllFile();
- // }
- // }).Start();
- // #endregion
-
- // //2.娉ㄩ攢鎺ㄩ��
- // new HttpServerRequest().SignOutPush();
- // //3.璺宠浆鐧诲綍椤甸潰
- // UserInfo.Current.LastTime = DateTime.MinValue;
- // UserInfo.Current.headImagePagePath = "LoginIcon/2.png";//閲嶇疆鐢ㄦ埛澶村儚
- // UserInfo.Current.SaveUserInfo();
- // MainPage.GoLoginPage(UserInfo.Current);
- // DB_ResidenceData.residenceData.EixtAccount();
- //}
-
- ///// <summary>
- ///// 閫�鍑虹櫥褰曟搷浣�
- ///// </summary>
- //public void LogoutNew()
- //{
- // //鍔犺浇Loading鏁堟灉
- // var waitPage = new Loading();
- // bodyView.AddChidren(waitPage);
- // waitPage.Start(Language.StringByID(StringId.PleaseWait));
-
- // new Thread(() =>
- // {
- // try
- // {
- // #region 淇濆瓨鏈湴鏁版嵁鑷虫枃浠跺す
- // //string oldRegionRootPath = FileUtils.CreateRegionBackup(DB_ResidenceData.residenceData.CurReginID.ToString());
- // ////娓呯┖涔嬪墠鐨勪綇瀹呮枃浠�
- // //FileUtils.DeleteRegionFiles(oldRegionRootPath);
- // //var backuplist = FileUtils.ReadFiles();
- // ////绉诲姩鏂囦欢
- // //foreach (var fileName in backuplist)
- // //{
- // // System.IO.FileInfo fileInfo = new System.IO.FileInfo(FileUtils.RootPath + fileName);
- // // if (fileInfo.Exists)
- // // {
- // // fileInfo.MoveTo(oldRegionRootPath + fileName);
- // // MainPage.Log("move file : " + fileName);
- // // }
- // //}
- // #endregion
- // }
- // catch (Exception ex)
- // {
- // MainPage.Log($"xxx:{ex.Message}");
- // }
- // finally
- // {
- // //FileUtils.DeleteAllFile();
- // //2.娉ㄩ攢鎺ㄩ��
- // new HttpServerRequest().SignOutPush();
- // //3.璺宠浆鐧诲綍椤甸潰
- // UserInfo.Current.LastTime = DateTime.MinValue;
- // UserInfo.Current.headImagePagePath = "LoginIcon/2.png";//閲嶇疆鐢ㄦ埛澶村儚
- // UserInfo.Current.SaveUserInfo();
- // Shared.Application.RunOnMainThread(() =>
- // {
- // if (waitPage != null)
- // {
- // waitPage.RemoveFromParent();
- // waitPage = null;
- // }
-
- // MainPage.GoLoginPage(UserInfo.Current);
- // DB_ResidenceData.residenceData.EixtAccount();
-
- // });
- // }
- // }).Start();
- //}
-
/// <summary>
/// 閫�鍑鸿处鍙风櫥褰曚簨浠�
/// </summary>
@@ -452,7 +347,7 @@
btnQRcodeRight.MouseUpEventHandler = eventHandler;
}
-#region 淇敼缁戝畾閭
+ #region 淇敼缁戝畾閭
/// <summary>
/// 淇敼缁戝畾閭
/// </summary>
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/ResetAccountPassword/ResetPasswordPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/ResetAccountPassword/ResetPasswordPage.cs
index 7b49246..2429551 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/ResetAccountPassword/ResetPasswordPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/ResetAccountPassword/ResetPasswordPage.cs
@@ -67,13 +67,15 @@
isHitBack = true;
};
- new TopViewDiv(bodyView, Language.StringByID(StringId.ModifyPassword)).LoadTopView(backAction);
+ var topView = new TopViewDiv(bodyView, Language.StringByID(StringId.ModifyPassword));
+ topView.maginY = 10;
+ topView.LoadTopView();
#region 鍘熷瘑鐮�
FrameLayout oldPwdView = new FrameLayout()
{
- Y = Application.GetRealHeight(64),
+ Y = Application.GetRealHeight(64+10),
Height = Application.GetRealHeight(50),
BackgroundColor = CSS_Color.MainBackgroundColor,
};
@@ -132,7 +134,6 @@
TextSize = CSS_FontSize.TextFontSize,
SecureTextEntry = true,
TextAlignment = TextAlignment.CenterRight,
- Foucs = true
};
rowView.AddChidren(etPassword);
var lineView = new LineView(rowView.Height);
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/ResidentialManagePage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/ResidentialManagePage.cs
index 8b430ad..e956e63 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/ResidentialManagePage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/ResidentialManagePage.cs
@@ -99,12 +99,14 @@
public void LoadPage()
{
bodyView.BackgroundColor = CSS_Color.BackgroundColor;
- new TopViewDiv(bodyView, Language.StringByID(StringId.ResidenceManage)).LoadTopView();
+ var topView = new TopViewDiv(bodyView, Language.StringByID(StringId.ResidenceManage));
+ topView.maginY = 10;
+ topView.LoadTopView();
VerticalScrolViewLayout contentView = new VerticalScrolViewLayout()
{
- Y = Application.GetRealHeight(64),
- Height = Application.GetRealHeight(667 - 64),
+ Y = Application.GetRealHeight(64+10),
+ Height = Application.GetRealHeight(667 - 64-10),
ScrollEnabled = false,
};
bodyView.AddChidren(contentView);
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/SmartSpeaker/SmartSpeakerListPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/SmartSpeaker/SmartSpeakerListPage.cs
index 4b29afa..57aba67 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/SmartSpeaker/SmartSpeakerListPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/SmartSpeaker/SmartSpeakerListPage.cs
@@ -49,9 +49,11 @@
/// </summary>
public void LoadPage()
{
- new TopViewDiv(bodyView, Language.StringByID(StringId.SmartSpeaker)).LoadTopView();
+ var topView = new TopViewDiv(bodyView, Language.StringByID(StringId.SmartSpeaker));
+ topView.maginY = 10;
+ topView.LoadTopView();
- int bodyY = Application.GetRealHeight(64);
+ int bodyY = Application.GetRealHeight(64+10);
bodyScrolView = new VerticalScrolViewLayout()
{
Y = bodyY,
diff --git a/HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/TvControlPage.cs b/HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/TvControlPage.cs
index f38036f..24d6ce8 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/TvControlPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/TvControlPage.cs
@@ -53,7 +53,7 @@
FrameLayout controlView = new FrameLayout()
{
Gravity = Gravity.CenterHorizontal,
- Y = Application.GetRealHeight(88),
+ Y = Application.GetRealHeight(88 + 10),
Width = Application.GetRealWidth(327),
Height = Application.GetRealHeight(526),
BackgroundImagePath = "Public/Fragmentbg.png",
@@ -76,7 +76,7 @@
#region 杞洏鎺у埗鍖哄煙
topMenuView = new FrameLayout()
{
- Y = Application.GetRealHeight(88),
+ Y = Application.GetRealHeight(88 + 10),
Gravity = Gravity.CenterHorizontal,
Width = Application.GetRealWidth(199),
Height = Application.GetRealWidth(199),
diff --git a/HDL_ON/UI/UI2/FuntionControlView/AC/ACPage.cs b/HDL_ON/UI/UI2/FuntionControlView/AC/ACPage.cs
index 4094b80..297105a 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/AC/ACPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/AC/ACPage.cs
@@ -92,7 +92,7 @@
FrameLayout controlView = new FrameLayout()
{
Gravity = Gravity.CenterHorizontal,
- Y = Application.GetRealHeight(88),
+ Y = Application.GetRealHeight(88 + 10),
Width = Application.GetRealWidth(327),
Height = Application.GetRealHeight(526),
BackgroundImagePath = "Public/Fragmentbg.png",
diff --git a/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/AddAlarmDeploymentPage.cs b/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/AddAlarmDeploymentPage.cs
index 9f4b9b4..3088b95 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/AddAlarmDeploymentPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/AddAlarmDeploymentPage.cs
@@ -41,14 +41,16 @@
contentView = new VerticalScrolViewLayout()
{
- Y = Application.GetRealHeight(64),
- Height = Application.GetRealHeight(527),
+ Y = Application.GetRealHeight(64+10),
+ Height = Application.GetRealHeight(527-10),
};
bodyView.AddChidren(contentView);
if (string.IsNullOrEmpty(title))
{
- new TopViewDiv(bodyView, Language.StringByID(StringId.AddSecurity)).LoadTopView();
+ var topView = new TopViewDiv(bodyView, Language.StringByID(StringId.AddSecurity));
+ topView.maginY = 10;
+ topView.LoadTopView();
#region 甯冮槻淇℃伅
var deploymentTitleRow = new FrameLayout()
{
@@ -166,7 +168,9 @@
}
else
{
- new TopViewDiv(bodyView, title).LoadTopView();
+ var topView = new TopViewDiv(bodyView, title);
+ topView.maginY = 10;
+ topView.LoadTopView();
securityAlarm.status = "enable";
}
diff --git a/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/AddInputPage.cs b/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/AddInputPage.cs
index 4f83b31..e0bfecc 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/AddInputPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/AddInputPage.cs
@@ -29,12 +29,14 @@
public void LoadPage()
{
bodyView.BackgroundColor = CSS_Color.BackgroundColor;
- new TopViewDiv(bodyView, Language.StringByID(StringId.AddDefenseFunction)).LoadTopView();
+ var topView = new TopViewDiv(bodyView, Language.StringByID(StringId.AddDefenseFunction));
+ topView.maginY = 10;
+ topView.LoadTopView();
#region 鏄剧ず鐨勫姛鑳界被鍨嬪垏鎹㈠尯鍩�
var showdFunctionTypeRow = new FrameLayout()
{
- Y = Application.GetRealHeight(64),
+ Y = Application.GetRealHeight(64+10),
Height = Application.GetRealHeight(53),
BackgroundColor = CSS_Color.MainBackgroundColor,
};
@@ -81,13 +83,19 @@
}, nowSelectId);
};
+ showdFunctionTypeRow.AddChidren(new Button() {
+ Height = 1,
+ Y = Application.GetRealHeight(52),
+ BackgroundColor = CSS_Color.DividingLineColor
+ });
+
#endregion
functionListView = new VerticalScrolViewLayout()
{
Y = showdFunctionTypeRow.Bottom,
- Height = Application.GetRealHeight(530-60),
+ Height = Application.GetRealHeight(530-60-10),
BackgroundColor = CSS_Color.BackgroundColor,
};
bodyView.AddChidren(functionListView);
diff --git a/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/AddOutputPage.cs b/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/AddOutputPage.cs
index e1dd248..e5fa65d 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/AddOutputPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/AddOutputPage.cs
@@ -51,13 +51,15 @@
public void LoadPage()
{
bodyView.BackgroundColor = CSS_Color.BackgroundColor;
- new TopViewDiv(bodyView, Language.StringByID(StringId.AddFunction)).LoadTopView();
+ var topView = new TopViewDiv(bodyView, Language.StringByID(StringId.AddFunction));
+ topView.maginY = 10;
+ topView.LoadTopView();
#region 鏄剧ず鐨勫姛鑳界被鍨嬪垏鎹㈠尯鍩�
showdFunctionTypeRow = new FrameLayout()
{
- Y = Application.GetRealHeight(64),
- Height = Application.GetRealHeight(62),
+ Y = Application.GetRealHeight(64+10),
+ Height = Application.GetRealHeight(53),
BackgroundColor = CSS_Color.MainBackgroundColor,
};
bodyView.AddChidren(showdFunctionTypeRow);
@@ -87,12 +89,21 @@
showdFunctionTypeRow.AddChidren(btnFloor);
LoadDialog_ChangeFloor();
+
+ showdFunctionTypeRow.AddChidren(new Button()
+ {
+ Height = 1,
+ Y = Application.GetRealHeight(52),
+ BackgroundColor = CSS_Color.DividingLineColor
+ });
+
+
#endregion
functionListView = new VerticalScrolViewLayout()
{
Y = showdFunctionTypeRow.Bottom,
- Height = Application.GetRealHeight(530 - 100),
+ Height = Application.GetRealHeight(530-60-10),
BackgroundColor = CSS_Color.BackgroundColor,
};
bodyView.AddChidren(functionListView);
diff --git a/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/ArmCenterPage.cs b/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/ArmCenterPage.cs
index a692dae..417d640 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/ArmCenterPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/ArmCenterPage.cs
@@ -65,12 +65,14 @@
};
if (addNav)
{
- new TopViewDiv(bodyView, Language.StringByID(StringId.SecurityCenter)).LoadTopView_ArmCenter(skipAction);
+ var topView = new TopViewDiv(bodyView, Language.StringByID(StringId.SecurityCenter));
+ topView.maginY = 10;
+ topView.LoadTopView_ArmCenter(skipAction);
}
VerticalScrolViewLayout contentView = new VerticalScrolViewLayout()
{
- Y = addNav? Application.GetRealHeight(64):0,
- Height = Application.GetRealHeight(667 - 64),
+ Y = addNav? Application.GetRealHeight(64+10):0,
+ Height = Application.GetRealHeight(667 - 64-10),
BackgroundColor = CSS_Color.MainBackgroundColor,
ScrollEnabled = false,
};
diff --git a/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/PushConfigPage.cs b/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/PushConfigPage.cs
index 346e2d3..078c574 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/PushConfigPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/PushConfigPage.cs
@@ -15,14 +15,16 @@
}
public void Show(Entity.SecurityAlarm alarm)
{
-
- new TopViewDiv(bodyView, Language.StringByID(StringId.fasongtongzhi)).LoadTopView();
+
+ var topView = new TopViewDiv(bodyView, Language.StringByID(StringId.fasongtongzhi));
+ topView.maginY = 10;
+ topView.LoadTopView();
this.BackgroundColor = CSS.CSS_Color.BackgroundColor;
var viewLayout = new FrameLayout()
{
- Y = Application.GetRealHeight(64),
+ Y = Application.GetRealHeight(64+10),
Height = Application.GetRealHeight(527),
};
bodyView.AddChidren(viewLayout);
diff --git a/HDL_ON/UI/UI2/FuntionControlView/Curtain/CurtainDreamPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Curtain/CurtainDreamPage.cs
index f294bd6..1cbcd2b 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Curtain/CurtainDreamPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Curtain/CurtainDreamPage.cs
@@ -95,7 +95,7 @@
FrameLayout controlView = new FrameLayout()
{
Gravity = Gravity.CenterHorizontal,
- Y = Application.GetRealHeight(88),
+ Y = Application.GetRealHeight(88 + 10),
Width = Application.GetRealWidth(327),
Height = Application.GetRealHeight(526),
BackgroundImagePath = "Public/Fragmentbg.png",
diff --git a/HDL_ON/UI/UI2/FuntionControlView/Curtain/CurtainModulePage.cs b/HDL_ON/UI/UI2/FuntionControlView/Curtain/CurtainModulePage.cs
index 050f0b1..d9bb494 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Curtain/CurtainModulePage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Curtain/CurtainModulePage.cs
@@ -66,7 +66,7 @@
FrameLayout controlView = new FrameLayout()
{
Gravity = Gravity.CenterHorizontal,
- Y = Application.GetRealHeight(88),
+ Y = Application.GetRealHeight(88 + 10),
Width = Application.GetRealWidth(327),
Height = Application.GetRealHeight(526),
BackgroundImagePath = "Public/Fragmentbg.png",
diff --git a/HDL_ON/UI/UI2/FuntionControlView/Curtain/MotorCurtainPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Curtain/MotorCurtainPage.cs
index 7c9b864..d6ba2ca 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Curtain/MotorCurtainPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Curtain/MotorCurtainPage.cs
@@ -90,7 +90,7 @@
FrameLayout controlView = new FrameLayout()
{
Gravity = Gravity.CenterHorizontal,
- Y = Application.GetRealHeight(88),
+ Y = Application.GetRealHeight(88 + 10),
Width = Application.GetRealWidth(327),
Height = Application.GetRealHeight(526),
BackgroundImagePath = "Public/Fragmentbg.png",
diff --git a/HDL_ON/UI/UI2/FuntionControlView/Curtain/RollingShutterPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Curtain/RollingShutterPage.cs
index 6b29c6f..0448c0c 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Curtain/RollingShutterPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Curtain/RollingShutterPage.cs
@@ -88,7 +88,7 @@
FrameLayout controlView = new FrameLayout()
{
Gravity = Gravity.CenterHorizontal,
- Y = Application.GetRealHeight(88),
+ Y = Application.GetRealHeight(88 + 10),
Width = Application.GetRealWidth(327),
Height = Application.GetRealHeight(526),
BackgroundImagePath = "Public/Fragmentbg.png",
diff --git a/HDL_ON/UI/UI2/FuntionControlView/Curtain/VenetianBlindsPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Curtain/VenetianBlindsPage.cs
index 47c9da5..6616c72 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Curtain/VenetianBlindsPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Curtain/VenetianBlindsPage.cs
@@ -90,7 +90,7 @@
FrameLayout controlView = new FrameLayout()
{
Gravity = Gravity.CenterHorizontal,
- Y = Application.GetRealHeight(88),
+ Y = Application.GetRealHeight(88 + 10),
Width = Application.GetRealWidth(327),
Height = Application.GetRealHeight(526),
BackgroundImagePath = "Public/Fragmentbg.png",
diff --git a/HDL_ON/UI/UI2/FuntionControlView/Electrical/AirSwitchP3Page.cs b/HDL_ON/UI/UI2/FuntionControlView/Electrical/AirSwitchP3Page.cs
index a1a754e..a12ecd9 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Electrical/AirSwitchP3Page.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Electrical/AirSwitchP3Page.cs
@@ -85,7 +85,7 @@
controlView = new FrameLayout()
{
Gravity = Gravity.CenterHorizontal,
- Y = Application.GetRealHeight(88),
+ Y = Application.GetRealHeight(88 + 10),
Width = Application.GetRealWidth(327),
Height = Application.GetRealHeight(526),
BackgroundImagePath = "Public/Fragmentbg.png",
diff --git a/HDL_ON/UI/UI2/FuntionControlView/Electrical/AirSwitchPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Electrical/AirSwitchPage.cs
index 8124d16..69548cd 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Electrical/AirSwitchPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Electrical/AirSwitchPage.cs
@@ -85,7 +85,7 @@
controlView = new FrameLayout()
{
Gravity = Gravity.CenterHorizontal,
- Y = Application.GetRealHeight(88),
+ Y = Application.GetRealHeight(88 + 10),
Width = Application.GetRealWidth(327),
Height = Application.GetRealHeight(526),
BackgroundImagePath = "Public/Fragmentbg.png",
diff --git a/HDL_ON/UI/UI2/FuntionControlView/Electrical/DvdPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Electrical/DvdPage.cs
index 9049d4e..a923807 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Electrical/DvdPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Electrical/DvdPage.cs
@@ -72,7 +72,7 @@
FrameLayout controlView = new FrameLayout()
{
Gravity = Gravity.CenterHorizontal,
- Y = Application.GetRealHeight(88),
+ Y = Application.GetRealHeight(88 + 10),
Width = Application.GetRealWidth(327),
Height = Application.GetRealHeight(526),
BackgroundImagePath = "Public/Fragmentbg.png",
@@ -127,7 +127,7 @@
#region 杞洏鎺у埗鍖哄煙
topMenuView = new FrameLayout()
{
- Y = Application.GetRealHeight(88),
+ Y = Application.GetRealHeight(88 + 10),
Gravity = Gravity.CenterHorizontal,
Width = Application.GetRealWidth(199),
Height = Application.GetRealWidth(199),
diff --git a/HDL_ON/UI/UI2/FuntionControlView/Electrical/FanPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Electrical/FanPage.cs
index 1c96354..16c49cf 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Electrical/FanPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Electrical/FanPage.cs
@@ -59,7 +59,7 @@
FrameLayout controlView = new FrameLayout()
{
Gravity = Gravity.CenterHorizontal,
- Y = Application.GetRealHeight(88),
+ Y = Application.GetRealHeight(88 + 10),
Width = Application.GetRealWidth(327),
Height = Application.GetRealHeight(526),
BackgroundImagePath = "Public/Fragmentbg.png",
diff --git a/HDL_ON/UI/UI2/FuntionControlView/Electrical/IrFanPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Electrical/IrFanPage.cs
index 11604ef..5673e6b 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Electrical/IrFanPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Electrical/IrFanPage.cs
@@ -42,7 +42,7 @@
btnIcon = new Button()
{
Gravity = Gravity.CenterHorizontal,
- Y = Application.GetRealHeight(88),
+ Y = Application.GetRealHeight(88 + 10),
Width = Application.GetRealWidth(134),
Height = Application.GetRealWidth(134),
UnSelectedImagePath = "FunctionIcon/IrFan/FanIcon.png",
diff --git a/HDL_ON/UI/UI2/FuntionControlView/Electrical/PjtPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Electrical/PjtPage.cs
index ce95adc..58859d2 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Electrical/PjtPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Electrical/PjtPage.cs
@@ -74,7 +74,7 @@
FrameLayout controlView = new FrameLayout()
{
Gravity = Gravity.CenterHorizontal,
- Y = Application.GetRealHeight(88),
+ Y = Application.GetRealHeight(88 + 10),
Width = Application.GetRealWidth(327),
Height = Application.GetRealHeight(526),
BackgroundImagePath = "Public/Fragmentbg.png",
@@ -129,7 +129,7 @@
#region 杞洏鎺у埗鍖哄煙
topMenuView = new FrameLayout()
{
- Y = Application.GetRealHeight(88),
+ Y = Application.GetRealHeight(88 + 10),
Gravity = Gravity.CenterHorizontal,
Width = Application.GetRealWidth(199),
Height = Application.GetRealWidth(199),
diff --git a/HDL_ON/UI/UI2/FuntionControlView/Electrical/SocketPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Electrical/SocketPage.cs
index 6e5f982..a3fb826 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Electrical/SocketPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Electrical/SocketPage.cs
@@ -59,7 +59,7 @@
FrameLayout controlView = new FrameLayout()
{
Gravity = Gravity.CenterHorizontal,
- Y = Application.GetRealHeight(88),
+ Y = Application.GetRealHeight(88 + 10),
Width = Application.GetRealWidth(327),
Height = Application.GetRealHeight(526),
BackgroundImagePath = "Public/Fragmentbg.png",
diff --git a/HDL_ON/UI/UI2/FuntionControlView/Electrical/StbPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Electrical/StbPage.cs
index 4e8852d..cb8824c 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Electrical/StbPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Electrical/StbPage.cs
@@ -73,7 +73,7 @@
FrameLayout controlView = new FrameLayout()
{
Gravity = Gravity.CenterHorizontal,
- Y = Application.GetRealHeight(88),
+ Y = Application.GetRealHeight(88 + 10),
Width = Application.GetRealWidth(327),
Height = Application.GetRealHeight(526),
BackgroundImagePath = "Public/Fragmentbg.png",
@@ -128,7 +128,7 @@
#region 杞洏鎺у埗鍖哄煙
topMenuView = new FrameLayout()
{
- Y = Application.GetRealHeight(88),
+ Y = Application.GetRealHeight(88 + 10),
Gravity = Gravity.CenterHorizontal,
Width = Application.GetRealWidth(199),
Height = Application.GetRealWidth(199),
diff --git a/HDL_ON/UI/UI2/FuntionControlView/Electrical/TVPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Electrical/TVPage.cs
index b0ee9af..f34efd5 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Electrical/TVPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Electrical/TVPage.cs
@@ -74,7 +74,7 @@
FrameLayout controlView = new FrameLayout()
{
Gravity = Gravity.CenterHorizontal,
- Y = Application.GetRealHeight(88),
+ Y = Application.GetRealHeight(88 + 10),
Width = Application.GetRealWidth(327),
Height = Application.GetRealHeight(526),
BackgroundImagePath = "Public/Fragmentbg.png",
@@ -129,7 +129,7 @@
#region 杞洏鎺у埗鍖哄煙
topMenuView = new FrameLayout()
{
- Y = Application.GetRealHeight(88),
+ Y = Application.GetRealHeight(88 + 10),
Gravity = Gravity.CenterHorizontal,
Width = Application.GetRealWidth(199),
Height = Application.GetRealWidth(199),
diff --git a/HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPage.cs b/HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPage.cs
index 3eb5f49..4f8edc6 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPage.cs
@@ -106,7 +106,7 @@
FrameLayout controlView = new FrameLayout()
{
Gravity = Gravity.CenterHorizontal,
- Y = Application.GetRealHeight(88),
+ Y = Application.GetRealHeight(88 + 10),
Width = Application.GetRealWidth(327),
Height = Application.GetRealHeight(526),
BackgroundImagePath = "Public/Fragmentbg.png",
diff --git a/HDL_ON/UI/UI2/FuntionControlView/FunctionBaseInfoSetPage.cs b/HDL_ON/UI/UI2/FuntionControlView/FunctionBaseInfoSetPage.cs
index 97c64ec..d9ae722 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/FunctionBaseInfoSetPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/FunctionBaseInfoSetPage.cs
@@ -72,11 +72,14 @@
public void LoadPage(bool locationSetting = true)
{
bodyView.BackgroundColor = CSS_Color.BackgroundColor;
- new TopViewDiv(bodyView, Language.StringByID(StringId.Setting)).LoadTopView();
+ var topView = new TopViewDiv(bodyView, Language.StringByID(StringId.Setting));
+ topView.maginY = 10;
+ topView.LoadTopView();
+
var contentView = new VerticalScrolViewLayout()
{
- Y = Application.GetRealHeight(64),
+ Y = Application.GetRealHeight(64+10),
Height = Application.GetRealHeight(600),
ScrollEnabled = false,
};
diff --git a/HDL_ON/UI/UI2/FuntionControlView/Light/ColorTureLampPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Light/ColorTureLampPage.cs
index 887adeb..d5c0ef9 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Light/ColorTureLampPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Light/ColorTureLampPage.cs
@@ -87,7 +87,7 @@
controlView = new FrameLayout()
{
Gravity = Gravity.CenterHorizontal,
- Y = Application.GetRealHeight(88),
+ Y = Application.GetRealHeight(88 + 10),
Width = Application.GetRealWidth(327),
Height = Application.GetRealHeight(526),
BackgroundImagePath = "Public/Fragmentbg.png",
diff --git a/HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPage.cs
index 7904d1d..741453a 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPage.cs
@@ -81,7 +81,7 @@
controlView = new FrameLayout()
{
Gravity = Gravity.CenterHorizontal,
- Y = Application.GetRealHeight(88),
+ Y = Application.GetRealHeight(88 + 10),
Width = Application.GetRealWidth(327),
Height = Application.GetRealHeight(526),
BackgroundImagePath = "Public/Fragmentbg.png",
diff --git a/HDL_ON/UI/UI2/FuntionControlView/Light/GroupControlPage_V2.cs b/HDL_ON/UI/UI2/FuntionControlView/Light/GroupControlPage_V2.cs
index 96465f1..107c8a3 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Light/GroupControlPage_V2.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Light/GroupControlPage_V2.cs
@@ -48,7 +48,7 @@
controlView = new FrameLayout()
{
Gravity = Gravity.CenterHorizontal,
- Y = Application.GetRealHeight(88),
+ Y = Application.GetRealHeight(88 + 10),
Width = Application.GetRealWidth(327),
Height = Application.GetRealHeight(526),
BackgroundImagePath = "Public/Fragmentbg.png",
diff --git a/HDL_ON/UI/UI2/FuntionControlView/Light/RGBPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Light/RGBPage.cs
index 4560904..a9e30ac 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Light/RGBPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Light/RGBPage.cs
@@ -100,7 +100,7 @@
FrameLayout controlView = new FrameLayout()
{
Gravity = Gravity.CenterHorizontal,
- Y = Application.GetRealHeight(88),
+ Y = Application.GetRealHeight(88 + 10),
Width = Application.GetRealWidth(327),
Height = Application.GetRealHeight(526),
BackgroundImagePath = "Public/Fragmentbg.png",
diff --git a/HDL_ON/UI/UI2/FuntionControlView/Light/RGBWPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Light/RGBWPage.cs
index 28473f2..32a977e 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Light/RGBWPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Light/RGBWPage.cs
@@ -88,7 +88,7 @@
FrameLayout controlView = new FrameLayout()
{
Gravity = Gravity.CenterHorizontal,
- Y = Application.GetRealHeight(88),
+ Y = Application.GetRealHeight(88 + 10),
Width = Application.GetRealWidth(327),
Height = Application.GetRealHeight(526),
BackgroundImagePath = "Public/Fragmentbg.png",
diff --git a/HDL_ON/UI/UI2/FuntionControlView/Light/RelayPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Light/RelayPage.cs
index 1bb8d06..bd7e630 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Light/RelayPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Light/RelayPage.cs
@@ -80,7 +80,7 @@
controlView = new FrameLayout()
{
Gravity = Gravity.CenterHorizontal,
- Y = Application.GetRealHeight(88),
+ Y = Application.GetRealHeight(88 + 10),
Width = Application.GetRealWidth(327),
Height = Application.GetRealHeight(526),
BackgroundImagePath = "Public/Fragmentbg.png",
--
Gitblit v1.8.0