From eda3fb873e59544ff36301b51e05aef64f87b0f9 Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期五, 27 八月 2021 13:21:21 +0800 Subject: [PATCH] Merge branch 'newBranch1' of http://172.16.1.23:6688/r/~wxr/HDL_APP_Project into newBranch1 --- HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPage.cs | 391 +++++++++++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 346 insertions(+), 45 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPage.cs index 5c35050..e7f2bb5 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPage.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPage.cs @@ -1,4 +1,4 @@ -锘縰sing System; +锘� using System; using HDL_ON.UI; using HDL_ON.UI.CSS; using Shared; @@ -13,13 +13,42 @@ /// </summary> FrameLayout bodyView; /// <summary> + /// 褰撳墠 + /// </summary> + VerticalScrolViewLayout bodyScrolView; + + /// <summary> /// 澶村儚鍖哄煙 /// </summary> FrameLayout headPortraitView; /// <summary> /// 澶村儚鎸夐挳 /// </summary> - Button btnHeadPortraitView; + ImageView userHeadImageView; + + #region 鍥炬爣閫夋嫨閮ㄥ垎鍥炬爣 + /// <summary> + /// 鑳屾櫙鍥鹃�夐」鍖哄煙 + /// </summary> + FrameLayout pictureOptionView; + /// <summary> + /// 鑳屾櫙鍥鹃�夐」閫夋嫨鍖哄煙 + /// </summary> + VerticalScrolViewLayout optionView; + /// <summary> + /// 鎷嶇収鎸夐挳 + /// </summary> + Button btnTakePicture; + /// <summary> + /// 鐩稿唽鎸夐挳 + /// </summary> + Button btnAlbum; + /// <summary> + /// 鍙栨秷鎸夐挳 + /// </summary> + Button btnCancel; + #endregion + #region 涓汉淇℃伅閫夐」鍖哄煙 /// <summary> /// 涓汉淇℃伅閫夐」鍖哄煙 @@ -33,11 +62,11 @@ /// <summary> /// 鐢ㄦ埛鍚嶇О鏍囬 /// </summary> - Button btnUserName; + Button btnUserNameTitle; /// <summary> /// 鐢ㄦ埛鍚嶇О /// </summary> - EditText etUserName; + Button btnUserName; /// <summary> /// 淇敼鐢ㄦ埛鍚嶇О鎸夐挳 /// </summary> @@ -118,7 +147,35 @@ Button btnResetPasswordText; Button btnResetPasswordRight; #endregion + + + #region 涓汉閫夐」-鏂板浣忓畢 + /// <summary> + /// 涓汉閫夐」-鏂板浣忓畢鍖哄煙 + /// </summary> + FrameLayout addResidenceView; + /// <summary> + /// 鏂板浣忓畢鎻愮ず鏂囨湰 + /// </summary> + Button btnAddResidenceText; + Button btnAddResidenceScan; #endregion + + + #region 涓汉閫夐」-浜鸿劯閫氳绠$悊 + /// <summary> + /// 涓汉閫夐」-浜鸿劯閫氳绠$悊琛� + /// </summary> + FrameLayout faceManagementView; + /// <summary> + /// 浜鸿劯閫氳绠$悊鏂囨湰 + /// </summary> + Button btnFaceManagementText; + #endregion + + + #endregion + #endregion #region 瑙i攣璁剧疆鍖哄煙 @@ -137,61 +194,95 @@ Button btnLogout; #endregion + /// <summary> + /// 鏇存柊澶村儚鐨勫洖璋冨嚱鏁� + /// </summary> + Action updataHeadImage; + /// <summary> + /// 鏇存柊鐢ㄦ埛鍚嶇О鐨勫洖璋冨嚱鏁� + /// </summary> + Action updataUserName; - public PersonalDataPage() + public PersonalDataPage(Action upHeadImage, Action upUserName) { + updataHeadImage = upHeadImage; + updataUserName = upUserName; bodyView = this; } public void LoadView() { bodyView.BackgroundColor = CSS_Color.BackgroundColor; + new TopViewDiv(bodyView, Language.StringByID(StringId.PersonalCenter)).LoadTopView(); - new PublicAssmebly().LoadTopView(bodyView, Language.StringByID(StringId.PersonalCenter)); + bodyScrolView = new VerticalScrolViewLayout() + { + Y = Application.GetRealHeight(64), + VerticalScrollBarEnabled = false, + Height = Application.GetRealHeight(551), + }; + bodyView.AddChidren(bodyScrolView); + + if (MainPage.Increase) + { + bodyScrolView.Height = Application.GetRealHeight(541); + } headPortraitView = new FrameLayout() { - Y = Application.GetRealHeight(64), + //Y = Application.GetRealHeight(64), Height = Application.GetRealHeight(124), BackgroundColor = CSS_Color.MainBackgroundColor, }; - bodyView.AddChidren(headPortraitView); - btnHeadPortraitView = new Button() + bodyScrolView.AddChidren(headPortraitView); + + userHeadImageView = new ImageView() { Gravity = Gravity.Center, Width = Application.GetMinRealAverage(84), Height = Application.GetMinRealAverage(84), Radius = (uint)Application.GetMinRealAverage(42), - UnSelectedImagePath = "LoginIcon/2.png" + ImagePath = UserInfo.Current.headImagePagePath, }; - headPortraitView.AddChidren(btnHeadPortraitView); + headPortraitView.AddChidren(userHeadImageView); #region 涓汉淇℃伅閫夐」鍖哄煙 + var topPaddingView = new FrameLayout() + { + Height = Application.GetRealHeight(8) + }; + bodyScrolView.AddChidren(topPaddingView); + /// <summary> /// 涓汉淇℃伅閫夐」鍖哄煙 /// </summary> optionListView = new VerticalScrolViewLayout() { - Y = headPortraitView.Bottom + Application.GetRealHeight(8), - Height = Application.GetRealHeight(45 * 6), + Height = Application.GetRealHeight(51 * 6), BackgroundColor = CSS_Color.MainBackgroundColor, ScrollEnabled = false, }; - bodyView.AddChidren(optionListView); + bodyScrolView.AddChidren(optionListView); + + if(Entity.DB_ResidenceData.Instance.SupportFacePass) + { + optionListView.Height = Application.GetRealHeight(51 * (6 + 1)); + } + #region 涓汉閫夐」-鍚嶅瓧鍖哄煙 /// <summary> /// 涓汉閫夐」-鍚嶅瓧鍖哄煙 /// </summary> userNameView = new FrameLayout() { - Height = Application.GetRealHeight(44), + Height = Application.GetRealHeight(50), }; optionListView.AddChidren(userNameView); /// <summary> /// 鐢ㄦ埛鍚嶇О鏍囬 /// </summary> - btnUserName = new Button() + btnUserNameTitle = new Button() { X = Application.GetRealWidth(16), Width = Application.GetRealWidth(120), @@ -200,20 +291,20 @@ TextSize = CSS_FontSize.SubheadingFontSize, TextID = StringId.Name, }; - userNameView.AddChidren(btnUserName); + userNameView.AddChidren(btnUserNameTitle); /// <summary> /// 鐢ㄦ埛鍚嶇О /// </summary> - etUserName = new EditText() + btnUserName = new Button() { X = Application.GetRealWidth(100), Width = Application.GetRealWidth(230), TextAlignment = TextAlignment.CenterRight, TextColor = CSS_Color.PromptingColor1, TextSize = CSS_FontSize.TextFontSize, - Text = string.IsNullOrEmpty(MainPage.LoginUser.UserName) ? "涓嶆効鎰忛�忛湶濮撳悕鐨勭敤鎴�" : MainPage.LoginUser.UserName + Text = string.IsNullOrEmpty(UserInfo.Current.userName) ? Language.StringByID(StringId.UsersWhoNameIsEmpty) : UserInfo.Current.userName }; - userNameView.AddChidren(etUserName); + userNameView.AddChidren(btnUserName); /// <summary> /// 淇敼鐢ㄦ埛鍚嶇О鎸夐挳 /// </summary> @@ -223,7 +314,7 @@ Gravity = Gravity.CenterVertical, Width = Application.GetMinRealAverage(28), Height = Application.GetMinRealAverage(28), - UnSelectedImagePath = "PersonalCenter/PersonalData/EditIcon.png", + UnSelectedImagePath = "Public/EditIcon.png", }; userNameView.AddChidren(btnEditUserNameIcon); optionListView.AddChidren(new Button() { X = Application.GetRealWidth(16), Height = Application.GetRealHeight(1), Width = Application.GetRealWidth(343), BackgroundColor = CSS_Color.DividingLineColor }); @@ -234,7 +325,7 @@ /// </summary> _QRcodeView = new FrameLayout() { - Height = Application.GetRealHeight(44), + Height = Application.GetRealHeight(50), }; optionListView.AddChidren(_QRcodeView); /// <summary> @@ -257,8 +348,8 @@ { X = Application.GetRealWidth(305), Gravity = Gravity.CenterVertical, - Width = Application.GetMinRealAverage(16), - Height = Application.GetMinRealAverage(16), + Width = Application.GetRealWidth(24), + Height = Application.GetRealWidth(24), UnSelectedImagePath = "PersonalCenter/PersonalData/QRcodeIcon.png", }; _QRcodeView.AddChidren(btnQRcodeIcon); @@ -272,7 +363,7 @@ Gravity = Gravity.CenterVertical, Width = Application.GetMinRealAverage(16), Height = Application.GetMinRealAverage(16), - UnSelectedImagePath = "PersonalCenter/PersonalData/Right.png", + UnSelectedImagePath = "Public/Right.png", }; _QRcodeView.AddChidren(btnQRcodeRight); #endregion @@ -282,7 +373,7 @@ /// </summary> userEmailInfoView = new FrameLayout() { - Height = Application.GetRealHeight(44), + Height = Application.GetRealHeight(50), }; optionListView.AddChidren(userEmailInfoView); /// <summary> @@ -308,7 +399,7 @@ TextAlignment = TextAlignment.CenterRight, TextColor = CSS_Color.PromptingColor1, TextSize = CSS_FontSize.TextFontSize, - Text = string.IsNullOrEmpty(MainPage.LoginUser.UserEmailInfo) ? Language.StringByID(StringId.Unbound) : MainPage.LoginUser.UserEmailInfo + Text = GetBindAccountText(UserInfo.Current.userEmailInfo) }; userEmailInfoView.AddChidren(btnUserEmailInfo); /// <summary> @@ -320,7 +411,7 @@ Gravity = Gravity.CenterVertical, Width = Application.GetMinRealAverage(16), Height = Application.GetMinRealAverage(16), - UnSelectedImagePath = "PersonalCenter/PersonalData/Right.png", + UnSelectedImagePath = "Public/Right.png", }; userEmailInfoView.AddChidren(btnUserEmailRight); optionListView.AddChidren(new Button() { X = Application.GetRealWidth(16), Height = Application.GetRealHeight(1), Width = Application.GetRealWidth(343), BackgroundColor = CSS_Color.DividingLineColor }); @@ -331,7 +422,7 @@ /// </summary> userPhoneInfoView = new FrameLayout() { - Height = Application.GetRealHeight(44), + Height = Application.GetRealHeight(50), }; optionListView.AddChidren(userPhoneInfoView); /// <summary> @@ -357,7 +448,7 @@ TextAlignment = TextAlignment.CenterRight, TextColor = CSS_Color.PromptingColor1, TextSize = CSS_FontSize.TextFontSize, - Text = string.IsNullOrEmpty(MainPage.LoginUser.UserMobileInfo) ? Language.StringByID(StringId.Unbound) : MainPage.LoginUser.UserMobileInfo + Text = GetBindAccountText(UserInfo.Current.userMobileInfo) }; userPhoneInfoView.AddChidren(btnUserPhoneInfo); /// <summary> @@ -369,20 +460,21 @@ Gravity = Gravity.CenterVertical, Width = Application.GetMinRealAverage(16), Height = Application.GetMinRealAverage(16), - UnSelectedImagePath = "PersonalCenter/PersonalData/Right.png", + UnSelectedImagePath = "Public/Right.png", }; userPhoneInfoView.AddChidren(btnUserPhoneRight); optionListView.AddChidren(new Button() { X = Application.GetRealWidth(16), Height = Application.GetRealHeight(1), Width = Application.GetRealWidth(343), BackgroundColor = CSS_Color.DividingLineColor }); #endregion #region 涓汉閫夐」-绗笁鏂规巿鏉冨尯鍩� + //2020-12-08 鏆傛椂闅愯棌绗笁鏂规巿鏉冨姛鑳� /// <summary> /// 涓汉閫夐」-绗笁鏂规巿鏉冨尯鍩� /// </summary> thirdPartyAuthorizationView = new FrameLayout() { - Height = Application.GetRealHeight(44), + Height = Application.GetRealHeight(50), }; - optionListView.AddChidren(thirdPartyAuthorizationView); + //optionListView.AddChidren(thirdPartyAuthorizationView); /// <summary> /// 绗笁鏂规巿鏉冩枃鏈彁绀轰俊鎭寜閽� /// </summary> @@ -402,10 +494,9 @@ Gravity = Gravity.CenterVertical, Width = Application.GetMinRealAverage(16), Height = Application.GetMinRealAverage(16), - UnSelectedImagePath = "PersonalCenter/PersonalData/Right.png", + UnSelectedImagePath = "Public/Right.png", }; thirdPartyAuthorizationView.AddChidren(btnThirdPartyAuthorizationRight); - optionListView.AddChidren(new Button() { X = Application.GetRealWidth(16), Height = Application.GetRealHeight(1), Width = Application.GetRealWidth(343), BackgroundColor = CSS_Color.DividingLineColor }); #endregion #region 涓汉閫夐」-淇敼鐧诲綍瀵嗙爜鍖哄煙 /// <summary> @@ -413,7 +504,7 @@ /// </summary> resetPasswordView = new FrameLayout() { - Height = Application.GetRealHeight(44), + Height = Application.GetRealHeight(50), }; optionListView.AddChidren(resetPasswordView); /// <summary> @@ -422,7 +513,7 @@ btnResetPasswordText = new Button() { X = Application.GetRealWidth(16), - Width = Application.GetRealWidth(120), + Width = Application.GetRealWidth(220), TextAlignment = TextAlignment.CenterLeft, TextColor = CSS_Color.FirstLevelTitleColor, TextSize = CSS_FontSize.SubheadingFontSize, @@ -435,26 +526,112 @@ Gravity = Gravity.CenterVertical, Width = Application.GetMinRealAverage(16), Height = Application.GetMinRealAverage(16), - UnSelectedImagePath = "PersonalCenter/PersonalData/Right.png", + UnSelectedImagePath = "Public/Right.png", }; resetPasswordView.AddChidren(btnResetPasswordRight); optionListView.AddChidren(new Button() { X = Application.GetRealWidth(16), Height = Application.GetRealHeight(1), Width = Application.GetRealWidth(343), BackgroundColor = CSS_Color.DividingLineColor }); #endregion + + #region 涓汉閫夐」-娣诲姞浣忓畢 + addResidenceView = new FrameLayout() + { + Height = Application.GetRealHeight(50), + }; + optionListView.AddChidren(addResidenceView); + btnAddResidenceScan = new Button() + { + X = Application.GetRealWidth(319), + Gravity = Gravity.CenterVertical, + Width = Application.GetMinRealAverage(30), + Height = Application.GetMinRealAverage(30), + UnSelectedImagePath = "Public/ScanGrey.png", + }; + addResidenceView.AddChidren(btnAddResidenceScan); + btnAddResidenceText = new Button() + { + X = Application.GetRealWidth(16), + TextAlignment = TextAlignment.CenterLeft, + TextColor = CSS_Color.FirstLevelTitleColor, + TextSize = CSS_FontSize.SubheadingFontSize, + TextID = StringId.AddResidence, + }; + addResidenceView.AddChidren(btnAddResidenceText); + + btnAddResidenceText.MouseUpEventHandler = (sender, e) => + { + Scan.OpenScan((scanString) => + { + //鎵ц缁戝畾浣忓畢 + new BindingResidencePage().DoBindResidence(scanString); + }); + }; + + optionListView.AddChidren(new Button() { X = Application.GetRealWidth(16), Height = Application.GetRealHeight(1), Width = Application.GetRealWidth(343), BackgroundColor = CSS_Color.DividingLineColor }); #endregion + if (Entity.DB_ResidenceData.Instance.SupportFacePass) + { + #region 涓汉閫夐」-浜鸿劯閫氳绠$悊 + faceManagementView = new FrameLayout() + { + Height = Application.GetRealHeight(50), + }; + optionListView.AddChidren(faceManagementView); + var btnFaceManagementRight = new Button() + { + X = Application.GetRealWidth(339), + Gravity = Gravity.CenterVertical, + Width = Application.GetMinRealAverage(16), + Height = Application.GetMinRealAverage(16), + UnSelectedImagePath = "Public/Right.png", + }; + faceManagementView.AddChidren(btnFaceManagementRight); + + btnFaceManagementText = new Button() + { + X = Application.GetRealWidth(16), + TextAlignment = TextAlignment.CenterLeft, + TextColor = CSS_Color.FirstLevelTitleColor, + TextSize = CSS_FontSize.SubheadingFontSize, + TextID = StringId.FacePassageSetting, + }; + faceManagementView.AddChidren(btnFaceManagementText); + + btnFaceManagementText.MouseUpEventHandler = (sender, e) => + { + var page = new FacePassagePage(); + MainPage.BasePageView.AddChidren(page); + page.LoadPage(); + MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; + }; + + #endregion + + } + + #endregion #region 瑙i攣璁剧疆鍖哄煙 + var topPaddingView2 = new FrameLayout() + { + Height = Application.GetRealHeight(8) + }; + bodyScrolView.AddChidren(topPaddingView2); /// <summary> /// 瑙i攣璁剧疆鍖哄煙 /// </summary> interpretationSettingsView = new FrameLayout() { - Y = optionListView.Bottom + Application.GetRealHeight(8), BackgroundColor = CSS_Color.MainBackgroundColor, - Height = Application.GetRealHeight(65), + Height = Application.GetRealHeight(70), }; - bodyView.AddChidren(interpretationSettingsView); + bodyScrolView.AddChidren(interpretationSettingsView); + if(Language.CurrentLanguage != "Chinese") + { + interpretationSettingsView.Height = Application.GetRealHeight(80); + } + btnInterpretationSettingsTitle = new Button() { X = Application.GetRealWidth(16), @@ -465,15 +642,18 @@ TextID = StringId.InterpretationSettings, }; interpretationSettingsView.AddChidren(btnInterpretationSettingsTitle); + btnInterpretationSettingsTip = new Button() { X = Application.GetRealWidth(16), - Y = btnInterpretationSettingsTitle.Bottom + Application.GetRealHeight(4), + Y = btnInterpretationSettingsTitle.Bottom, Height = Application.GetRealHeight(32), + Width = Application.GetRealWidth(310), TextAlignment = TextAlignment.TopLeft, TextColor = CSS_Color.PromptingColor1, TextSize = CSS_FontSize.TextFontSize, - TextID = StringId.InterpretationSettingsTip + TextID = StringId.AppUnlockSettingsTip, + IsMoreLines = true, }; interpretationSettingsView.AddChidren(btnInterpretationSettingsTip); @@ -483,15 +663,35 @@ Gravity = Gravity.CenterVertical, Width = Application.GetMinRealAverage(16), Height = Application.GetMinRealAverage(16), - UnSelectedImagePath = "PersonalCenter/PersonalData/Right.png", + UnSelectedImagePath = "Public/Right.png", }; interpretationSettingsView.AddChidren(btnInterpretationSettingsRight); + interpretationSettingsView.AddChidren(new LineView(interpretationSettingsView.Height)); + #endregion + + #region 鏈嶅姟鍣ㄤ俊鎭� + ListCellView myServerInfoCellView = new ListCellView() + { + }; + bodyScrolView.AddChidren(myServerInfoCellView); + //璺宠浆鏈嶅姟鍣ㄤ俊鎭� + Action selectAction = () => + { + var myServerInfoPage = new MyServerInfoPage(); + MainPage.BasePageView.AddChidren(myServerInfoPage); + myServerInfoPage.LoadPage(); + MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; + }; + myServerInfoCellView.GoAction = selectAction; + myServerInfoCellView.BtnTilte.Text = Language.StringByID(StringId.ServerInformation); + myServerInfoCellView.LineView.RemoveFromParent(); + #endregion btnLogout = new Button() { Y = Application.GetRealHeight(623), - Height = Application.GetRealHeight(44), + Height = Application.GetRealHeight(50), TextAlignment = TextAlignment.Center, TextSize = CSS_FontSize.SubheadingFontSize, TextColor = CSS_Color.AuxiliaryColor2, @@ -500,9 +700,110 @@ }; bodyView.AddChidren(btnLogout); + if (MainPage.Increase) + { + btnLogout.Y = Application.GetRealHeight(613); + btnLogout.Height = Application.GetRealHeight(50); + bodyView.AddChidren(new Button() { Y = Application.GetRealHeight(663), Height = Application.GetRealHeight(20), BackgroundColor = CSS_Color.MainBackgroundColor }); + } + LoadEventList(); + } + /// <summary> + /// 鍔犺浇鍥炬爣閫夋嫨閫夐」 + /// </summary> + void LoadPictureOptionView() + { + var pictureBaseView = new FrameLayout() + { + BackgroundColor = CSS_Color.DialogTransparentColor1, + }; + bodyView.AddChidren(pictureBaseView); + + pictureOptionView = new FrameLayout() + { + Y = Application.GetRealHeight(495), + AnimateSpeed = 0.3f, + Animate = Animate.DownToUp, + Height = Application.GetRealHeight(200), + }; + pictureBaseView.AddChidren(pictureOptionView); + + + optionView = new VerticalScrolViewLayout() + { + Gravity = Gravity.CenterHorizontal, + Width = Application.GetRealWidth(343), + Height = Application.GetRealHeight(100), + BackgroundColor = CSS_Color.MainBackgroundColor, + Radius = (uint)Application.GetRealWidth(12), + ScrollEnabled = false, + }; + pictureOptionView.AddChidren(optionView); + + btnTakePicture = new Button() + { + Height = Application.GetRealHeight(50), + TextAlignment = TextAlignment.Center, + TextColor = CSS_Color.TextualColor, + SelectedTextColor = CSS_Color.MainColor, + TextSize = CSS_FontSize.SubheadingFontSize, + TextID = StringId.TakePicture, + }; + optionView.AddChidren(btnTakePicture); + + optionView.AddChidren(new Button() { X = Application.GetRealWidth(16), Height = Application.GetRealHeight(1), Width = Application.GetRealWidth(343), BackgroundColor = CSS_Color.DividingLineColor }); + + btnAlbum = new Button() + { + Height = Application.GetRealHeight(50), + TextAlignment = TextAlignment.Center, + TextColor = CSS_Color.TextualColor, + SelectedTextColor = CSS_Color.MainColor, + TextSize = CSS_FontSize.SubheadingFontSize, + TextID = StringId.Album, + }; + optionView.AddChidren(btnAlbum); + + optionView.AddChidren(new Button() { X = Application.GetRealWidth(16), Height = Application.GetRealHeight(1), Width = Application.GetRealWidth(343), BackgroundColor = CSS_Color.DividingLineColor }); + + btnCancel = new Button() + { + Gravity = Gravity.CenterHorizontal, + Y = Application.GetRealHeight(8) + optionView.Bottom, + Width = Application.GetRealWidth(343), + Height = Application.GetRealHeight(50), + BackgroundColor = CSS_Color.MainBackgroundColor, + Radius = (uint)Application.GetRealWidth(12), + TextID = StringId.Cancel, + TextColor = CSS_Color.WarningColor, + TextSize = CSS_FontSize.SubheadingFontSize, + }; + pictureOptionView.AddChidren(btnCancel); + + LoadEvent_PictureOptionViewEventList(pictureBaseView); + } + + /// <summary> + /// 鑾峰彇缁戝畾璐﹀彿鏄剧ず鏂囨湰锛岀┖鐨勬椂鍊欐樉绀轰负鏈粦瀹� + /// </summary> + /// <param name="account"></param> + string GetBindAccountText(string account) + { + return string.IsNullOrEmpty(account) ? Language.StringByID(StringId.Unbound) : account; + } + + /// <summary> + /// 鍒ゆ柇鏄惁涓烘湭缁戝畾 + /// </summary> + /// <param name="account"></param> + /// <returns></returns> + bool CheckIfUnbound(string account) + { + return string.IsNullOrEmpty(account) || account == Language.StringByID(StringId.Unbound); + } } } -- Gitblit v1.8.0