protected async void Form0Submit(TblSoOrderDetailStatus args)
        {
            try
            {
                var otErpCreateTblSoOrderDetailStatusResult = await OtErp.CreateTblSoOrderDetailStatus(tblsoorderdetailstatus);

                DialogService.Close(tblsoorderdetailstatus);
            }
            catch (Exception otErpCreateTblSoOrderDetailStatusException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new TblSoOrderDetailStatus!");
            }
        }
Пример #2
0
        protected async void Form0Submit(TblSoOrderDetailStatus args)
        {
            try
            {
                var otErpUpdateTblSoOrderDetailStatusResult = await OtErp.UpdateTblSoOrderDetailStatus(int.Parse(SODetailStatus_SEQ), tblsoorderdetailstatus);

                DialogService.Close(tblsoorderdetailstatus);
            }
            catch (Exception otErpUpdateTblSoOrderDetailStatusException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update TblSoOrderDetailStatus");
            }
        }
Пример #3
0
        protected async void Load()
        {
            canEdit = true;

            try
            {
                var otErpGetTblSoOrderDetailStatusBySoDetailStatusSeqResult = await OtErp.GetTblSoOrderDetailStatusBySoDetailStatusSeq(int.Parse(SODetailStatus_SEQ));

                tblsoorderdetailstatus = otErpGetTblSoOrderDetailStatusBySoDetailStatusSeqResult;
            }
            catch (Exception otErpGetTblSoOrderDetailStatusBySoDetailStatusSeqException)
            {
            }
        }
        protected async void GridDeleteButtonClick(MouseEventArgs args, TblSoOrderDetailStatus data)
        {
            try
            {
                var otErpDeleteTblSoOrderDetailStatusResult = await OtErp.DeleteTblSoOrderDetailStatus(data.SODetailStatus_SEQ);

                if (otErpDeleteTblSoOrderDetailStatusResult != null)
                {
                    grid0.Reload();
                }
            }
            catch (Exception otErpDeleteTblSoOrderDetailStatusException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete TblSoOrderDetailStatus");
            }
        }
        protected async void Grid0RowSelect(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 TblSoOrderDetailStatus();
 }