黄学彪
2021-01-28 1fcf2302f79f9cbea5ef17c3688311ed65cfabb4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
using System;
using Shared;
using HDL_ON.UI.CSS;
 
namespace HDL_ON.UI
{
    /// <summary>
    /// 管理员转移输入账号界面
    /// </summary>
    public class AdminMigrationInputPage : FrameLayout
    {
        /// <summary>
        /// 
        /// </summary>
        FrameLayout bodyView;
 
        public AdminMigrationInputPage()
        {
            bodyView = this;
        }
 
        /// <summary>
        /// 
        /// </summary>
        public void LoadPage()
        {
            BackgroundColor = CSS_Color.BackgroundColor;
 
            new TopViewDiv(bodyView, Language.StringByID(StringId.AdministratorPermissionMigration)).LoadTopView();
 
            #region 账号填写
            var accountView = new FrameLayout()
            {
                Y = Application.GetRealHeight(72),
                Height = Application.GetRealHeight(50),
                BackgroundColor = CSS_Color.MainBackgroundColor
            };
            bodyView.AddChidren(accountView);
 
            var btnAccountIcon = new Button()
            {
                X = Application.GetRealWidth(16),
                Gravity = Gravity.CenterVertical,
                Width = Application.GetMinRealAverage(24),
                Height = Application.GetMinRealAverage(24),
                UnSelectedImagePath = "LoginIcon/AccountIcon.png",
            };
            accountView.AddChidren(btnAccountIcon);
 
            var etAccount = new EditText()
            {
                X = Application.GetRealWidth(52),
                Width = Application.GetRealWidth(307),
                TextAlignment = TextAlignment.CenterLeft,
                TextColor = CSS_Color.FirstLevelTitleColor,
                TextSize = CSS_FontSize.TextFontSize,
                PlaceholderTextColor = CSS_Color.PromptingColor1,
                PlaceholderText = "请输入接收方账号",
            };
            accountView.AddChidren(etAccount);
 
            var btnLine = new Button()
            {
                BackgroundColor = CSS_Color.DividingLineColor,
                Height = Application.GetRealHeight(1),
                Y = accountView.Height - Application.GetRealHeight(1),
                X = Application.GetRealWidth(16),
                Width = Application.GetRealWidth(343),
            };
            accountView.AddChidren(btnLine);
            #endregion
 
            #region 账号填写
            var accountConfirmView = new FrameLayout()
            {
                Y = accountView.Bottom,
                Height = Application.GetRealHeight(50),
                BackgroundColor = CSS_Color.MainBackgroundColor
            };
            bodyView.AddChidren(accountConfirmView);
 
            var btnAccountConfirmIcon = new Button()
            {
                X = Application.GetRealWidth(16),
                Gravity = Gravity.CenterVertical,
                Width = Application.GetMinRealAverage(24),
                Height = Application.GetMinRealAverage(24),
                UnSelectedImagePath = "LoginIcon/AccountIcon.png",
            };
            accountConfirmView.AddChidren(btnAccountConfirmIcon);
 
            var etAccountConfirm = new EditText()
            {
                X = Application.GetRealWidth(52),
                Width = Application.GetRealWidth(307),
                TextAlignment = TextAlignment.CenterLeft,
                TextColor = CSS_Color.FirstLevelTitleColor,
                TextSize = CSS_FontSize.TextFontSize,
                PlaceholderTextColor = CSS_Color.PromptingColor1,
                PlaceholderText = "请再次输入接收方账号",
            };
            accountConfirmView.AddChidren(etAccountConfirm);
 
            //var btnLine2 = new Button()
            //{
            //    BackgroundColor = CSS_Color.DividingLineColor,
            //    Height = Application.GetRealHeight(1),
            //    Y = accountConfirmView.Height - Application.GetRealHeight(1),
            //};
            //accountConfirmView.AddChidren(btnLine2);
            #endregion
 
            var btnTip = new Button()
            {
                Y = accountConfirmView.Bottom + Application.GetRealHeight(12),
                X = Application.GetRealWidth(16),
                Width = Application.GetRealWidth(343),
                TextAlignment = TextAlignment.TopLeft,
                TextColor = CSS_Color.AuxiliaryColor2,
                TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
                Text = "*请确认账号无误,在数据转移过程中不可取消操作",
                IsMoreLines = true
 
            };
            bodyView.AddChidren(btnTip);
 
            var btnConfirm = new ConfirmButton()
            {
                Y = Application.GetRealHeight(251),
                Text = "转移",
            };
            bodyView.AddChidren(btnConfirm);
 
            Button btnEmailOption = new Button()
            {
                Y = btnConfirm.Bottom + Application.GetRealWidth(6),
                Width = Application.GetRealWidth(220),
                Height = Application.GetRealWidth(32),
                TextSize = CSS_FontSize.TextFontSize,
                TextColor = CSS_Color.MainColor,
                Gravity = Gravity.CenterHorizontal,
                TextAlignment = TextAlignment.Center,
                Text = "扫描二维码迁移"
            };
            bodyView.AddChidren(btnEmailOption);
        }
 
    }
 
}