コード例 #1
0
        protected async void Load()
        {
            canEdit = true;

            var canErpDbAt132GetTblPoOrderStatusByPoStatusIdResult = await CanErpDbAt132.GetTblPoOrderStatusByPoStatusId($"{POStatus_ID}");

            tblpoorderstatus = canErpDbAt132GetTblPoOrderStatusByPoStatusIdResult;
        }
コード例 #2
0
        protected async void Form0Submit(ErpCan.Models.CanErpDbAt132.TblPoOrderStatus args)
        {
            try
            {
                var canErpDbAt132UpdateTblPoOrderStatusResult = await CanErpDbAt132.UpdateTblPoOrderStatus($"{POStatus_ID}", tblpoorderstatus);

                DialogService.Close(tblpoorderstatus);
            }
            catch (Exception canErpDbAt132UpdateTblPoOrderStatusException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update TblPoOrderStatus");
            }
        }
コード例 #3
0
        protected async void GridDeleteButtonClick(MouseEventArgs args, ErpCan.Models.CanErpDbAt132.TblPoOrderStatus data)
        {
            try
            {
                var canErpDbAt132DeleteTblPoOrderStatusResult = await CanErpDbAt132.DeleteTblPoOrderStatus($"{data.POStatus_ID}");

                if (canErpDbAt132DeleteTblPoOrderStatusResult != null)
                {
                    grid0.Reload();
                }
            }
            catch (Exception canErpDbAt132DeleteTblPoOrderStatusException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete TblPoOrderStatus");
            }
        }
コード例 #4
0
        protected async void Grid0RowSelect(ErpCan.Models.CanErpDbAt132.TblPoOrderStatus args)
        {
            var result = await DialogService.OpenAsync <EditTblPoOrderStatus>("Edit Tbl Po Order Status", new Dictionary <string, object>() { { "POStatus_ID", args.POStatus_ID } });

            await InvokeAsync(() => { StateHasChanged(); });
        }
コード例 #5
0
 protected async void Load()
 {
     tblpoorderstatus = new ErpCan.Models.CanErpDbAt132.TblPoOrderStatus();
 }