protected async System.Threading.Tasks.Task Load() { var dbAtVdc2GetTblPoPurchaseOrdersResult = await DbAtVdc2.GetTblPoPurchaseOrders(); getTblPoPurchaseOrdersResult = dbAtVdc2GetTblPoPurchaseOrdersResult; var dbAtVdc2GetTblIcInventoriesResult = await DbAtVdc2.GetTblIcInventories(); getTblIcInventoriesResult = dbAtVdc2GetTblIcInventoriesResult; tblpopurchaseorderdetail = new CanErp2.Models.DbAtVdc2.TblPoPurchaseOrderDetail(); }
protected async System.Threading.Tasks.Task Form0Submit(CanErp2.Models.DbAtVdc2.TblPoPurchaseOrderDetail args) { try { var dbAtVdc2UpdateTblPoPurchaseOrderDetailResult = await DbAtVdc2.UpdateTblPoPurchaseOrderDetail($"{PO_FK}", int.Parse($"{Inventory_FK}"), tblpopurchaseorderdetail); DialogService.Close(tblpopurchaseorderdetail); } catch (Exception dbAtVdc2UpdateTblPoPurchaseOrderDetailException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update TblPoPurchaseOrderDetail"); } }
protected async System.Threading.Tasks.Task Form0Submit(CanErp2.Models.DbAtVdc2.TblPoPurchaseOrderDetail args) { try { var dbAtVdc2CreateTblPoPurchaseOrderDetailResult = await DbAtVdc2.CreateTblPoPurchaseOrderDetail(tblpopurchaseorderdetail); DialogService.Close(tblpopurchaseorderdetail); } catch (Exception dbAtVdc2CreateTblPoPurchaseOrderDetailException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new TblPoPurchaseOrderDetail!"); } }
protected async System.Threading.Tasks.Task Grid0RowSelect(CanErp2.Models.DbAtVdc2.TblPoPurchaseOrderDetail args) { var result = await DialogService.OpenAsync <EditTblPoPurchaseOrderDetail>("Edit Tbl Po Purchase Order Detail", new Dictionary <string, object>() { { "PO_FK", args.PO_FK }, { "Inventory_FK", args.Inventory_FK } }); await InvokeAsync(() => { StateHasChanged(); }); }