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");
            }
        }
Esempio n. 2
0
        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)
            {
            }
        }
Esempio n. 4
0
        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");
            }
        }
Esempio n. 5
0
        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(); });
        }
Esempio n. 6
0
 protected async void Load()
 {
     tblsoorderstatus = new TblSoOrderStatus();
 }