protected async void Load() { canEdit = true; var canErpDbAt132GetTblSoOrderDetailStatusBySoDetailStatusSeqResult = await CanErpDbAt132.GetTblSoOrderDetailStatusBySoDetailStatusSeq(int.Parse($"{SODetailStatus_SEQ}")); tblsoorderdetailstatus = canErpDbAt132GetTblSoOrderDetailStatusBySoDetailStatusSeqResult; }
protected async void Form0Submit(ErpCan.Models.CanErpDbAt132.TblSoOrderDetailStatus args) { try { var canErpDbAt132UpdateTblSoOrderDetailStatusResult = await CanErpDbAt132.UpdateTblSoOrderDetailStatus(int.Parse($"{SODetailStatus_SEQ}"), tblsoorderdetailstatus); DialogService.Close(tblsoorderdetailstatus); } catch (Exception canErpDbAt132UpdateTblSoOrderDetailStatusException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update TblSoOrderDetailStatus"); } }
protected async void Form0Submit(ErpCan.Models.CanErpDbAt132.TblSoOrderDetailStatus args) { try { var canErpDbAt132CreateTblSoOrderDetailStatusResult = await CanErpDbAt132.CreateTblSoOrderDetailStatus(tblsoorderdetailstatus); DialogService.Close(tblsoorderdetailstatus); } catch (Exception canErpDbAt132CreateTblSoOrderDetailStatusException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new TblSoOrderDetailStatus!"); } }
protected async void GridDeleteButtonClick(MouseEventArgs args, ErpCan.Models.CanErpDbAt132.TblSoOrderDetailStatus data) { try { var canErpDbAt132DeleteTblSoOrderDetailStatusResult = await CanErpDbAt132.DeleteTblSoOrderDetailStatus(data.SODetailStatus_SEQ); if (canErpDbAt132DeleteTblSoOrderDetailStatusResult != null) { grid0.Reload(); } } catch (Exception canErpDbAt132DeleteTblSoOrderDetailStatusException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete TblSoOrderDetailStatus"); } }
protected async void Grid0RowSelect(ErpCan.Models.CanErpDbAt132.TblSoOrderDetailStatus args) { var result = await DialogService.OpenAsync <EditTblSoOrderDetailStatus>("Edit Tbl So Order Detail Status", new Dictionary <string, object>() { { "SODetailStatus_SEQ", args.SODetailStatus_SEQ } }); await InvokeAsync(() => { StateHasChanged(); }); }
protected async void Load() { tblsoorderdetailstatus = new ErpCan.Models.CanErpDbAt132.TblSoOrderDetailStatus(); }