protected async void Load()
        {
            var otErpGetTblSoOrderDetailStatusesResult = await OtErp.GetTblSoOrderDetailStatuses();

            getTblSoOrderDetailStatusesResult = otErpGetTblSoOrderDetailStatusesResult;

            var otErpGetTblSoSalesOrdersResult = await OtErp.GetTblSoSalesOrders();

            getTblSoSalesOrdersResult = otErpGetTblSoSalesOrdersResult;

            tblsoorderdetail = new TblSoOrderDetail();
        }
Beispiel #2
0
        protected async void Form0Submit(TblSoOrderDetail args)
        {
            try
            {
                var otErpUpdateTblSoOrderDetailResult = await OtErp.UpdateTblSoOrderDetail(int.Parse(SODetail_SEQ), tblsoorderdetail);

                DialogService.Close(tblsoorderdetail);
            }
            catch (Exception otErpUpdateTblSoOrderDetailException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update TblSoOrderDetail");
            }
        }
        protected async void Form0Submit(TblSoOrderDetail args)
        {
            try
            {
                var otErpCreateTblSoOrderDetailResult = await OtErp.CreateTblSoOrderDetail(tblsoorderdetail);

                DialogService.Close(tblsoorderdetail);
            }
            catch (Exception otErpCreateTblSoOrderDetailException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new TblSoOrderDetail!");
            }
        }
Beispiel #4
0
        protected async void GridDeleteButtonClick(MouseEventArgs args, TblSoOrderDetail data)
        {
            try
            {
                var otErpDeleteTblSoOrderDetailResult = await OtErp.DeleteTblSoOrderDetail(data.SODetail_SEQ);

                if (otErpDeleteTblSoOrderDetailResult != null)
                {
                    grid0.Reload();
                }
            }
            catch (Exception otErpDeleteTblSoOrderDetailException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete TblSoOrderDetail");
            }
        }
Beispiel #5
0
        protected async void Grid0RowSelect(TblSoOrderDetail args)
        {
            var result = await DialogService.OpenAsync <EditTblSoOrderDetail>("Edit Tbl So Order Detail", new Dictionary <string, object>() { { "SODetail_SEQ", $"{args.SODetail_SEQ}" } });

            await InvokeAsync(() => { StateHasChanged(); });
        }