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);
|
}
|
|
}
|
|
}
|