Ejemplo n.º 1
0
        protected async override Task OnInitializedAsync()
        {
            //Trns =(Trn) await TrnService.GetTrns();
            BookMaster = (IEnumerable <BookMaster>) await BookMasterService.GetBookMasters();

            Ledgers = await LedgerService.GetLedgers();
        }
Ejemplo n.º 2
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();
        }
Ejemplo n.º 3
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"
     };
 }
Ejemplo n.º 4
0
        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
            };
        }
Ejemplo n.º 5
0
 protected async override Task OnInitializedAsync()
 {
     Ledgers = (await LedgerService.GetLedgers()).ToList();
 }