From 43b0d5870d528f23ecd6aeceb6cfd4325188b46f Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期四, 01 七月 2021 15:50:43 +0800
Subject: [PATCH] Revert "1"
---
HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/Transfer/AdminMigrationConfirmPage.cs | 183 ++++++++++++++++++++++++++++-----------------
1 files changed, 114 insertions(+), 69 deletions(-)
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/Transfer/AdminMigrationConfirmPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/Transfer/AdminMigrationConfirmPage.cs
index ae82ebe..0b29974 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/Transfer/AdminMigrationConfirmPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/Transfer/AdminMigrationConfirmPage.cs
@@ -1,95 +1,140 @@
锘縰sing System;
using Shared;
using HDL_ON.UI.CSS;
-using HDL_ON.Stan;
namespace HDL_ON.UI
{
/// <summary>
/// 绠$悊鍛樻潈闄愯縼绉荤‘璁ゆ彁閱掔晫闈�
/// </summary>
- public class AdminMigrationConfirmPage : EditorCommonForm
+ public class AdminMigrationConfirmPage : FrameLayout
{
- #region 鈻� 鍙橀噺澹版槑___________________________
-
- #endregion
-
- #region 鈻� 鍒濆鍖朹____________________________
-
/// <summary>
- /// 鐢婚潰鏄剧ず(搴曞眰浼氬浐瀹氳皟鐢ㄦ鏂规硶锛屽�熶互瀹屾垚鐢婚潰鍒涘缓)
+ ///
/// </summary>
- public void ShowForm()
- {
- //绠$悊鍛樻潈闄愯浆绉�
- base.SetTitleText(Language.StringByID(StringId.AdminAuthorityTransfer));
+ FrameLayout bodyView;
- //鍒濆鍖栦腑閮ㄤ俊鎭�
- this.InitMiddleFrame();
+ public AdminMigrationConfirmPage()
+ {
+ bodyView = this;
}
/// <summary>
- /// 鍒濆鍖栦腑閮ㄤ俊鎭�
+ ///
/// </summary>
- private void InitMiddleFrame()
+ public void LoadPage()
{
- //娓呯┖bodyFrame
- this.ClearBodyFrame();
+ BackgroundColor = CSS_Color.MainBackgroundColor;
- //璐﹀彿鑷繁鐨勫ご鍍�
- var btnHeadImage = new ImageView();
- btnHeadImage.X = Application.GetRealWidth(48);
- btnHeadImage.Y = Application.GetRealHeight(32);
- btnHeadImage.Width = Application.GetRealWidth(84);
- btnHeadImage.Height = Application.GetRealWidth(84);
- btnHeadImage.Radius = (uint)Application.GetRealWidth(42);
- btnHeadImage.ImagePath = UserInfo.Current.headImagePagePath;
- bodyFrameLayout.AddChidren(btnHeadImage);
+ new TopViewDiv(bodyView, Language.StringByID(StringId.AdministratorPermissionMigration)).LoadTopView();
- //绠ご
- var btnArrow = new PicViewControl(84, 32);
- btnArrow.X = btnHeadImage.Right + Application.GetRealWidth(12);
- btnArrow.Y = Application.GetRealHeight(58);
- btnArrow.UnSelectedImagePath = "PersonalCenter/Transfer.png";
- bodyFrameLayout.AddChidren(btnArrow);
-
- //涓�涓粯璁ゅご鍍�
- var btnHead2 = new IconViewControl(102);
- btnHead2.X = btnArrow.Right + Application.GetRealWidth(3);
- btnHead2.Y = Application.GetRealHeight(26);
- btnHead2.UnSelectedImagePath = "PersonalCenter/Head.png";
- bodyFrameLayout.AddChidren(btnHead2);
-
- //鎮ㄥ皢杞Щ鎮ㄧ殑绠$悊鍛樻潈闄愮粰鍏朵粬鎴愬憳
- this.AddListMsgControls(bodyFrameLayout, Language.StringByID(StringId.AdminAuthorityTransferMag1), CSS_FontSize.SubheadingFontSize,
- CSS_Color.FirstLevelTitleColor, Application.GetRealHeight(23), btnHead2.Bottom + Application.GetRealHeight(12));
-
- //璇锋敞鎰�:
- var btnAttention = new NormalViewControl(200, 18, true);
- btnAttention.X = HdlControlResourse.XXLeft;
- btnAttention.Y = btnHeadImage.Bottom + Application.GetRealHeight(84);
- btnAttention.TextID = StringId.Attention;
- btnAttention.TextSize = CSS_FontSize.PromptFontSize_FirstLevel;
- btnAttention.TextColor = CSS_Color.FirstLevelTitleColor;
- bodyFrameLayout.AddChidren(btnAttention);
-
- //1.璇ヤ綇瀹呮偍鐨勭鐞嗗憳鏁版嵁锛堜簯绔暟鎹級灏嗗叏閮ㄨ浆绉荤粰鏂扮殑绠$悊鍛�
- //2.鎮ㄧ殑鏁版嵁灏嗕細涓庣洰鏍囨垚鍛樹簰鎹紝鎮ㄧ殑鏉冮檺灏嗗彉鏇翠负鐩爣鎴愬憳鐨勬潈闄�
- var listContr = this.AddListMsgControls(bodyFrameLayout, Language.StringByID(StringId.AdminAuthorityTransferMag2), CSS_FontSize.PromptFontSize_FirstLevel,
- CSS_Color.TextualColor, Application.GetRealHeight(18), btnAttention.Bottom + Application.GetRealHeight(8), TextAlignment.CenterLeft);
-
- //纭杞Щ
- var btnConfirm = new BottomClickButton(220);
- btnConfirm.Y = listContr[listContr.Count - 1].Bottom + Application.GetRealHeight(75);
- btnConfirm.TextID = StringId.ConfirmTransfer2;
- bodyFrameLayout.AddChidren(btnConfirm);
- btnConfirm.ButtonClickEvent += (sender, e) =>
+ #region 澶村儚
+ FrameLayout headView = new FrameLayout()
{
- var form = new AdminMigrationMemberListPage();
- form.AddForm();
+ Y = Application.GetRealHeight(72),
+ Height = Application.GetRealHeight(132),
};
+ bodyView.AddChidren(headView);
+
+
+ ImageView myHeadImage = new ImageView()
+ {
+ X = Application.GetRealWidth(48),
+ Y = Application.GetRealHeight(96),
+ Width = Application.GetRealWidth(84),
+ Height = Application.GetRealWidth(84),
+ Radius = (uint)Application.GetRealWidth(42),
+ ImagePath = UserInfo.Current.headImagePagePath,
+ Gravity = Gravity.CenterVertical,
+ };
+ headView.AddChidren(myHeadImage);
+
+ ImageView transferImage = new ImageView()
+ {
+ X = Application.GetRealWidth(144),
+ Y = Application.GetRealHeight(96),
+ Width = Application.GetRealWidth(84),
+ Height = Application.GetRealWidth(32),
+ ImagePath = "PersonalCenter/Transfer.png",
+ Gravity = Gravity.Center,
+ };
+ headView.AddChidren(transferImage);
+
+ ImageView otherHeadImage = new ImageView()
+ {
+ X = Application.GetRealWidth(231),
+ Y = Application.GetRealHeight(96),
+ Width = Application.GetRealWidth(101),
+ Height = Application.GetRealWidth(101),
+ ImagePath = "PersonalCenter/Head.png",
+ Gravity = Gravity.CenterVertical,
+ };
+ headView.AddChidren(otherHeadImage);
+
+ #endregion
+
+ var btnTip = new Button()
+ {
+ Y = headView.Bottom,
+ X = Application.GetRealWidth(16),
+ Width = Application.GetRealWidth(343),
+ Height = Application.GetRealHeight(22),
+ TextAlignment = TextAlignment.Center,
+ TextColor = CSS_Color.FirstLevelTitleColor,
+ TextSize = CSS_FontSize.SubheadingFontSize,
+ Text = "鎮ㄥ皢杞Щ鎮ㄧ殑绠$悊鍛樻潈闄愮粰鍏朵粬HDL璐﹀彿",
+ };
+ bodyView.AddChidren(btnTip);
+
+
+ //璇锋敞鎰�
+ var btnPleaseNote = new Button()
+ {
+ Y = btnTip.Bottom + Application.GetRealHeight(38),
+ X = Application.GetRealWidth(16),
+ Width = Application.GetRealWidth(343),
+ Height = Application.GetRealHeight(17),
+ TextAlignment = TextAlignment.CenterLeft,
+ TextColor = CSS_Color.FirstLevelTitleColor,
+ TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
+ Text = "璇锋敞鎰忥細",
+ };
+ bodyView.AddChidren(btnPleaseNote);
+
+ //璇锋敞鎰忕殑鍐呭
+ var btnPleaseNoteStr = new Button()
+ {
+ Y = btnPleaseNote.Bottom + Application.GetRealHeight(8),
+ X = Application.GetRealWidth(16),
+ Width = Application.GetRealWidth(343),
+ Height = Application.GetRealHeight(170),
+ TextAlignment = TextAlignment.TopLeft,
+ TextColor = CSS_Color.TextualColor,
+ TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
+ IsMoreLines = true,
+ Text = "1.璇ヤ綇瀹呮偍鐨勭鐞嗗憳鏁版嵁锛堜簯绔暟鎹級灏嗗叏閮ㄨ浆绉荤粰鏂扮殑绠$悊鍛� \n\n2.鏂扮殑绠$悊鍛樺彲浠ラ�夋嫨涓嶄繚鐣欏師鏈変綇瀹呮垚鍛樼殑鏁版嵁,鍏朵粬鎴愬憳灏嗕細涓嶈兘浣跨敤 \n\n3.鍦ㄨ浆绉诲悗锛屾偍鑻ラ渶瑕佹垚涓哄搴垚鍛橈紝鐢辨柊鐨勭鐞嗗憳璁剧疆 \n\n4.鎺ユ敹鏂硅处鍙蜂负鏈夋晥鐨凥DL璐﹀彿 \n\n5.鎺ユ敹鏂硅处鍙蜂笌杞Щ鏂硅处鍙蜂笉鍙负鍚屼竴涓处鍙� (缁戝畾鐨勫叾浠栫櫥褰�)",
+ };
+ bodyView.AddChidren(btnPleaseNoteStr);
+
+ //
+ var btnConfirm = new ConfirmButton()
+ {
+ Y = Application.GetRealHeight(583),
+ Text = "纭杞Щ",
+ };
+ bodyView.AddChidren(btnConfirm);
+
+ btnConfirm.MouseUpEventHandler = (sender, e) => {
+ //Utlis.ShowTip("鏆備笉鏀寔");
+ var skipPage = new AdminMigrationInputPage();
+ MainPage.BasePageView.AddChidren(skipPage);
+ skipPage.LoadPage();
+ MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+ };
+
+
}
- #endregion
}
+
}
--
Gitblit v1.8.0