protected async void Load() { var canErpDbAt132GetTblPoPurchaseOrdersResult = await CanErpDbAt132.GetTblPoPurchaseOrders(); getTblPoPurchaseOrdersResult = canErpDbAt132GetTblPoPurchaseOrdersResult; var canErpDbAt132GetTblIcInventoriesResult = await CanErpDbAt132.GetTblIcInventories(); getTblIcInventoriesResult = canErpDbAt132GetTblIcInventoriesResult; tblpopurchaseorderdetail = new ErpCan.Models.CanErpDbAt132.TblPoPurchaseOrderDetail(); }
protected async void Form0Submit(ErpCan.Models.CanErpDbAt132.TblPoPurchaseOrderDetail args) { try { var canErpDbAt132UpdateTblPoPurchaseOrderDetailResult = await CanErpDbAt132.UpdateTblPoPurchaseOrderDetail($"{PO_FK}", int.Parse($"{Inventory_FK}"), tblpopurchaseorderdetail); DialogService.Close(tblpopurchaseorderdetail); } catch (Exception canErpDbAt132UpdateTblPoPurchaseOrderDetailException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update TblPoPurchaseOrderDetail"); } }
protected async void Form0Submit(ErpCan.Models.CanErpDbAt132.TblPoPurchaseOrderDetail args) { try { var canErpDbAt132CreateTblPoPurchaseOrderDetailResult = await CanErpDbAt132.CreateTblPoPurchaseOrderDetail(tblpopurchaseorderdetail); DialogService.Close(tblpopurchaseorderdetail); } catch (Exception canErpDbAt132CreateTblPoPurchaseOrderDetailException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new TblPoPurchaseOrderDetail!"); } }
protected async void GridDeleteButtonClick(MouseEventArgs args, ErpCan.Models.CanErpDbAt132.TblPoPurchaseOrderDetail data) { try { var canErpDbAt132DeleteTblPoPurchaseOrderDetailResult = await CanErpDbAt132.DeleteTblPoPurchaseOrderDetail($"{data.PO_FK}", data.Inventory_FK); if (canErpDbAt132DeleteTblPoPurchaseOrderDetailResult != null) { grid0.Reload(); } } catch (Exception canErpDbAt132DeleteTblPoPurchaseOrderDetailException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete TblPoPurchaseOrderDetail"); } }
protected async void Grid0RowSelect(ErpCan.Models.CanErpDbAt132.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(); }); }
protected async void Grid1RowSelect(ErpCan.Models.CanErpDbAt132.TblPoPurchaseOrderDetail args, dynamic data) { 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 } }); grid1.Reload(); }