Пример #1
0
        protected async System.Threading.Tasks.Task Load()
        {
            var dbAtVdc2GetTblPoVendorsResult = await DbAtVdc2.GetTblPoVendors();

            getTblPoVendorsResult = dbAtVdc2GetTblPoVendorsResult;

            var dbAtVdc2GetTblGnDepartmentsResult = await DbAtVdc2.GetTblGnDepartments();

            getTblGnDepartmentsResult = dbAtVdc2GetTblGnDepartmentsResult;

            tblpoaccountpayable = new CanErp2.Models.DbAtVdc2.TblPoAccountPayable();
        }
Пример #2
0
        protected async System.Threading.Tasks.Task Form0Submit(CanErp2.Models.DbAtVdc2.TblPoAccountPayable args)
        {
            try
            {
                var dbAtVdc2CreateTblPoAccountPayableResult = await DbAtVdc2.CreateTblPoAccountPayable(tblpoaccountpayable);

                DialogService.Close(tblpoaccountpayable);
            }
            catch (Exception dbAtVdc2CreateTblPoAccountPayableException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new TblPoAccountPayable!");
            }
        }
        protected async System.Threading.Tasks.Task Grid0RowSelect(CanErp2.Models.DbAtVdc2.TblPoAccountPayable args)
        {
            var result = await DialogService.OpenAsync <EditTblPoAccountPayable>("Edit Tbl Po Account Payable", new Dictionary <string, object>() { { "AP_No", args.AP_No } });

            await InvokeAsync(() => { StateHasChanged(); });
        }