Beispiel #1
0
        public AccountCard BuildAccountCard(Account AccountInContext)
        {
            AccountCard NewAccountCard = new AccountCard();

            var LastFiveDigits = AccountInContext.Number.Substring(
                AccountInContext.Number.Length - 5);

            var AccountTypeDisplay = AccountInContext.Type.Display + "..." + LastFiveDigits;

            var FormatCurrencyResult = External.FormatCurrency(AccountInContext.Balance);

            NewAccountCard.AccountCardArea.AccountTypeHeading    = AccountTypeDisplay;
            NewAccountCard.AccountCardArea.AccountBalanceHeading = "USD " + FormatCurrencyResult;

            return(NewAccountCard);
        }
Beispiel #2
0
        public Account_Home OnLoadView(User CurrentUser)
        {
            Account_Home View = new Account_Home();

            PortalHeaderPack PortalHeaderPack = new PortalHeaderPack();
            var PortalHeaderPackResult        =
                PortalHeaderPack.Build(CurrentUser, PortalHeaderPack);

            var GetPeriodOfDayResult = External.GetPeriodOfDay();
            var PeriodOfDayHeading   = GetPeriodOfDayResult + ",";
            var WelcomeHeading       = "Welcome Back " + CurrentUser.Person.FirstName +
                                       " " + CurrentUser.Person.LastName;

            //does not compile var HomeBuildAccountPanelResult = BuildAccountPanel((Member)CurrentUser, View);

            //does not compile return HomeBuildAccountPanelResult; //.Outputs.View;
            return(View);
        }