protected async void Form0Submit(TblSoOrderStatus args) { try { var otErpUpdateTblSoOrderStatusResult = await OtErp.UpdateTblSoOrderStatus(int.Parse(SOStatus_SEQ), tblsoorderstatus); DialogService.Close(tblsoorderstatus); } catch (Exception otErpUpdateTblSoOrderStatusException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update TblSoOrderStatus"); } }
protected async void Form0Submit(TblSoOrderStatus args) { try { var otErpCreateTblSoOrderStatusResult = await OtErp.CreateTblSoOrderStatus(tblsoorderstatus); DialogService.Close(tblsoorderstatus); } catch (Exception otErpCreateTblSoOrderStatusException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new TblSoOrderStatus!"); } }
protected async void Load() { canEdit = true; try { var otErpGetTblSoOrderStatusBySoStatusSeqResult = await OtErp.GetTblSoOrderStatusBySoStatusSeq(int.Parse(SOStatus_SEQ)); tblsoorderstatus = otErpGetTblSoOrderStatusBySoStatusSeqResult; } catch (Exception otErpGetTblSoOrderStatusBySoStatusSeqException) { } }
protected async void GridDeleteButtonClick(MouseEventArgs args, TblSoOrderStatus data) { try { var otErpDeleteTblSoOrderStatusResult = await OtErp.DeleteTblSoOrderStatus(data.SOStatus_SEQ); if (otErpDeleteTblSoOrderStatusResult != null) { grid0.Reload(); } } catch (Exception otErpDeleteTblSoOrderStatusException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete TblSoOrderStatus"); } }
protected async void Grid0RowSelect(TblSoOrderStatus args) { var result = await DialogService.OpenAsync <EditTblSoOrderStatus>("Edit Tbl So Order Status", new Dictionary <string, object>() { { "SOStatus_SEQ", $"{args.SOStatus_SEQ}" } }); await InvokeAsync(() => { StateHasChanged(); }); }
protected async void Load() { tblsoorderstatus = new TblSoOrderStatus(); }