From 471c4f70d808b6993cab066dfbe807954418ea92 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期四, 01 七月 2021 13:20:05 +0800 Subject: [PATCH] Merge branch 'tzy2' --- HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/Transfer/AdminMigrationConfirmPage.cs | 185 +++++++++++++++++---------------------------- 1 files changed, 70 insertions(+), 115 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 0b29974..ae82ebe 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/Transfer/AdminMigrationConfirmPage.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/Transfer/AdminMigrationConfirmPage.cs @@ -1,140 +1,95 @@ 锘縰sing System; using Shared; using HDL_ON.UI.CSS; +using HDL_ON.Stan; namespace HDL_ON.UI { /// <summary> /// 绠$悊鍛樻潈闄愯縼绉荤‘璁ゆ彁閱掔晫闈� /// </summary> - public class AdminMigrationConfirmPage : FrameLayout + public class AdminMigrationConfirmPage : EditorCommonForm { - /// <summary> - /// - /// </summary> - FrameLayout bodyView; + #region 鈻� 鍙橀噺澹版槑___________________________ - public AdminMigrationConfirmPage() + #endregion + + #region 鈻� 鍒濆鍖朹____________________________ + + /// <summary> + /// 鐢婚潰鏄剧ず(搴曞眰浼氬浐瀹氳皟鐢ㄦ鏂规硶锛屽�熶互瀹屾垚鐢婚潰鍒涘缓) + /// </summary> + public void ShowForm() { - bodyView = this; + //绠$悊鍛樻潈闄愯浆绉� + base.SetTitleText(Language.StringByID(StringId.AdminAuthorityTransfer)); + + //鍒濆鍖栦腑閮ㄤ俊鎭� + this.InitMiddleFrame(); } /// <summary> - /// + /// 鍒濆鍖栦腑閮ㄤ俊鎭� /// </summary> - public void LoadPage() + private void InitMiddleFrame() { - BackgroundColor = CSS_Color.MainBackgroundColor; + //娓呯┖bodyFrame + this.ClearBodyFrame(); - new TopViewDiv(bodyView, Language.StringByID(StringId.AdministratorPermissionMigration)).LoadTopView(); + //璐﹀彿鑷繁鐨勫ご鍍� + 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); - #region 澶村儚 - FrameLayout headView = new FrameLayout() + //绠ご + 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) => { - Y = Application.GetRealHeight(72), - Height = Application.GetRealHeight(132), + var form = new AdminMigrationMemberListPage(); + form.AddForm(); }; - 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