コード例 #1
0
        protected async void Load()
        {
            var canErpDbAt132GetTblPoRecReportsResult = await CanErpDbAt132.GetTblPoRecReports();

            getTblPoRecReportsResult = canErpDbAt132GetTblPoRecReportsResult;

            var canErpDbAt132GetTblIcInventoriesResult = await CanErpDbAt132.GetTblIcInventories();

            getTblIcInventoriesResult = canErpDbAt132GetTblIcInventoriesResult;

            tblporrorderdetail = new ErpCan.Models.CanErpDbAt132.TblPoRrOrderDetail();
        }
コード例 #2
0
        protected async void Form0Submit(ErpCan.Models.CanErpDbAt132.TblPoRrOrderDetail args)
        {
            try
            {
                var canErpDbAt132UpdateTblPoRrOrderDetailResult = await CanErpDbAt132.UpdateTblPoRrOrderDetail($"{RR_FK}", int.Parse($"{Inventory_FK}"), tblporrorderdetail);

                DialogService.Close(tblporrorderdetail);
            }
            catch (Exception canErpDbAt132UpdateTblPoRrOrderDetailException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update TblPoRrOrderDetail");
            }
        }
コード例 #3
0
        protected async void Form0Submit(ErpCan.Models.CanErpDbAt132.TblPoRrOrderDetail args)
        {
            try
            {
                var canErpDbAt132CreateTblPoRrOrderDetailResult = await CanErpDbAt132.CreateTblPoRrOrderDetail(tblporrorderdetail);

                DialogService.Close(tblporrorderdetail);
            }
            catch (Exception canErpDbAt132CreateTblPoRrOrderDetailException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new TblPoRrOrderDetail!");
            }
        }
コード例 #4
0
        protected async void GridDeleteButtonClick(MouseEventArgs args, ErpCan.Models.CanErpDbAt132.TblPoRrOrderDetail data)
        {
            try
            {
                var canErpDbAt132DeleteTblPoRrOrderDetailResult = await CanErpDbAt132.DeleteTblPoRrOrderDetail($"{data.RR_FK}", data.Inventory_FK);

                if (canErpDbAt132DeleteTblPoRrOrderDetailResult != null)
                {
                    grid0.Reload();
                }
            }
            catch (Exception canErpDbAt132DeleteTblPoRrOrderDetailException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete TblPoRrOrderDetail");
            }
        }
コード例 #5
0
        protected async void Grid0RowSelect(ErpCan.Models.CanErpDbAt132.TblPoRrOrderDetail args)
        {
            var result = await DialogService.OpenAsync <EditTblPoRrOrderDetail>("Edit Tbl Po Rr Order Detail", new Dictionary <string, object>() { { "RR_FK", args.RR_FK }, { "Inventory_FK", args.Inventory_FK } });

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