protected async void Form0Submit(TblSoSalesOrder args) { try { var otErpCreateTblSoSalesOrderResult = await OtErp.CreateTblSoSalesOrder(tblsosalesorder); DialogService.Close(tblsosalesorder); } catch (Exception otErpCreateTblSoSalesOrderException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new TblSoSalesOrder!"); } }
protected async void Form0Submit(TblSoSalesOrder args) { try { var otErpUpdateTblSoSalesOrderResult = await OtErp.UpdateTblSoSalesOrder(int.Parse(SO_SEQ), tblsosalesorder); DialogService.Close(tblsosalesorder); } catch (Exception otErpUpdateTblSoSalesOrderException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update TblSoSalesOrder"); } }
protected async void GridDeleteButtonClick(MouseEventArgs args, TblSoSalesOrder data) { try { var otErpDeleteTblSoSalesOrderResult = await OtErp.DeleteTblSoSalesOrder(data.SO_SEQ); if (otErpDeleteTblSoSalesOrderResult != null) { grid0.Reload(); } } catch (Exception otErpDeleteTblSoSalesOrderException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete TblSoSalesOrder"); } }
protected async void Load() { var otErpGetTblGnAddressBooksResult = await OtErp.GetTblGnAddressBooks(); getTblGnAddressBooksResult = otErpGetTblGnAddressBooksResult; var otErpGetTblSoOrderStatusesResult = await OtErp.GetTblSoOrderStatuses(); getTblSoOrderStatusesResult = otErpGetTblSoOrderStatusesResult; var otErpGetTblSoCustomersResult = await OtErp.GetTblSoCustomers(); getTblSoCustomersResult = otErpGetTblSoCustomersResult; var otErpGetTblGnShipViaResult = await OtErp.GetTblGnShipVia(); getTblGnShipViaResult = otErpGetTblGnShipViaResult; tblsosalesorder = new TblSoSalesOrder(); }
protected async void Grid0RowSelect(TblSoSalesOrder args) { var result = await DialogService.OpenAsync <EditTblSoSalesOrder>("Edit Tbl So Sales Order", new Dictionary <string, object>() { { "SO_SEQ", $"{args.SO_SEQ}" } }); await InvokeAsync(() => { StateHasChanged(); }); }