protected async override Task OnInitializedAsync()
        {
            //PopupMessage = "Data Update Successfully";
            AcMaster = await AcMasterService.GetAcMaster(int.Parse(Id));

            LedgerCode = AcMaster.LedgerCode;

            //CountryID = AcMaster.CountryID.ToString();
            //TypeMasts = (await TypeMastService.GetTypeMasts()).ToList();
            //BSheetGroups = (await BSheetGroupService.GetBSheetGroups()).ToList();
            //Countries = (await CountryService.GetCountries()).ToList();
            //States = (await StateService.GetStatesForCountry(int.Parse(CountryID))).ToList();
            //CostCenters = (await CostCenterService.GetCostCenters()).ToList();
        }
Example #2
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
            };
        }