Esempio n. 1
0
        protected async override Task OnInitializedAsync()
        {
            var authenticationState = await authenticationStateTask;

            if (!authenticationState.User.Identity.IsAuthenticated)
            {
                NavigationManager.NavigateTo("/identity/account/login");
            }
            Ledgers             = (await LedgerService.GetLedgers()).ToList();
            AccountGroupMasters = (await AccountGroupMasterService.GetAccountGroupMasters()).ToList();
            Lcd       = Lcd ?? "GL";
            AcMasters = (await AcMasterService.LedgerOfAccounts(Lcd)).ToList();
        }
Esempio n. 2
0
 protected async override Task OnInitializedAsync()
 {
     Ledgers             = (await LedgerService.GetLedgers()).ToList();
     AccountGroupMasters = (await AccountGroupMasterService.GetAccountGroupMasters()).ToList();
     //AcMasters = (AcMaster)await AcMasterService.GetAcMasters();
     AcMasters = new AcMaster
     {
         Acno           = Maxaccountno,
         Ason           = DateTime.Now,
         CreatedBy      = CreatedUser,
         CreatedDate    = DateTime.Now,
         AuthorisedAc   = false,
         AuthorisedDate = DateTime.Now,
         AuthorisedBy   = "pdp"
     };
 }