protected async void Load()
        {
            canEdit = true;

            var canErpDbAt132GetTblIcWarehouseByWarehouseIdResult = await CanErpDbAt132.GetTblIcWarehouseByWarehouseId($"{Warehouse_ID}");

            tblicwarehouse = canErpDbAt132GetTblIcWarehouseByWarehouseIdResult;
        }
        protected async void Form0Submit(ErpCan.Models.CanErpDbAt132.TblIcWarehouse args)
        {
            try
            {
                var canErpDbAt132UpdateTblIcWarehouseResult = await CanErpDbAt132.UpdateTblIcWarehouse($"{Warehouse_ID}", tblicwarehouse);

                DialogService.Close(tblicwarehouse);
            }
            catch (Exception canErpDbAt132UpdateTblIcWarehouseException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update TblIcWarehouse");
            }
        }
Esempio n. 3
0
        protected async void GridDeleteButtonClick(MouseEventArgs args, ErpCan.Models.CanErpDbAt132.TblIcWarehouse data)
        {
            try
            {
                var canErpDbAt132DeleteTblIcWarehouseResult = await CanErpDbAt132.DeleteTblIcWarehouse($"{data.Warehouse_ID}");

                if (canErpDbAt132DeleteTblIcWarehouseResult != null)
                {
                    grid0.Reload();
                }
            }
            catch (Exception canErpDbAt132DeleteTblIcWarehouseException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete TblIcWarehouse");
            }
        }
Esempio n. 4
0
        protected async void Grid0RowSelect(ErpCan.Models.CanErpDbAt132.TblIcWarehouse args)
        {
            var result = await DialogService.OpenAsync <EditTblIcWarehouse>("Edit Tbl Ic Warehouse", new Dictionary <string, object>() { { "Warehouse_ID", args.Warehouse_ID } });

            await InvokeAsync(() => { StateHasChanged(); });
        }
 protected async void Load()
 {
     tblicwarehouse = new ErpCan.Models.CanErpDbAt132.TblIcWarehouse();
 }