Exemplo 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();
        }
Exemplo n.º 2
0
        protected async void Ledger_Change(string val)
        {
            FetchLedgerID = val;
            string[] sublCodestr = val.Split(",");
            LedgerID   = sublCodestr[0];
            LedgerCode = sublCodestr[1];
            SubLedger  = await SubLedgerService.GetSubLedgersInLedger(LedgerCode);

            AcMaster = await AcMasterService.LedgerOfAccounts(LedgerCode);

            CostCenter = await CostCenterService.GetCostCenters();

            if (FromTableRowSelect == true)
            {
                FromTableRowSelect = false;
            }
            else
            {
                FetchAccountCode = "0";
            }
            StateHasChanged();
        }
Exemplo n.º 3
0
 protected async Task LoadAccountList(string Lcd)
 {
     AcMaster = (await AcMasterService.LedgerOfAccounts(Lcd)).ToList();
     StateHasChanged();
 }