protected async override Task OnInitializedAsync() { //Trns =(Trn) await TrnService.GetTrns(); BookMaster = (IEnumerable <BookMaster>) await BookMasterService.GetBookMasters(); Ledgers = await LedgerService.GetLedgers(); }
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(); }
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" }; }
protected async override Task OnInitializedAsync() { Ledgers = (await LedgerService.GetLedgers()).ToList(); AcMaster = await AcMasterService.GetAcMaster(int.Parse(Id)); AcMaster = new AcMaster { AcMasterID = AcMaster.AcMasterID, LedgerID = AcMaster.LedgerID, LedgerCode = AcMaster.LedgerCode, Acno = AcMaster.Acno, Acname = AcMaster.Acname, CreatedBy = AcMaster.CreatedBy, CreatedDate = AcMaster.CreatedDate, AuthorisedBy = AcMaster.AuthorisedBy == null ? "LoginUser" : AcMaster.AuthorisedBy, AuthorisedAc = AcMaster.AuthorisedAc == false ? false : AcMaster.AuthorisedAc, AuthorisedDate = AcMaster.AuthorisedDate == null ? DateTime.Now :AcMaster.AuthorisedDate }; }
protected async override Task OnInitializedAsync() { Ledgers = (await LedgerService.GetLedgers()).ToList(); }