Пример #1
0
        protected async void Load()
        {
            canEdit = true;

            var canErpDbAt132GetTblGnDepartmentByDepartmentIdResult = await CanErpDbAt132.GetTblGnDepartmentByDepartmentId($"{Department_ID}");

            tblgndepartment = canErpDbAt132GetTblGnDepartmentByDepartmentIdResult;
        }
Пример #2
0
        protected async void Form0Submit(ErpCan.Models.CanErpDbAt132.TblGnDepartment args)
        {
            try
            {
                var canErpDbAt132UpdateTblGnDepartmentResult = await CanErpDbAt132.UpdateTblGnDepartment($"{Department_ID}", tblgndepartment);

                DialogService.Close(tblgndepartment);
            }
            catch (Exception canErpDbAt132UpdateTblGnDepartmentException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update TblGnDepartment");
            }
        }
        protected async void GridDeleteButtonClick(MouseEventArgs args, ErpCan.Models.CanErpDbAt132.TblGnDepartment data)
        {
            try
            {
                var canErpDbAt132DeleteTblGnDepartmentResult = await CanErpDbAt132.DeleteTblGnDepartment($"{data.Department_ID}");

                if (canErpDbAt132DeleteTblGnDepartmentResult != null)
                {
                    grid0.Reload();
                }
            }
            catch (Exception canErpDbAt132DeleteTblGnDepartmentException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete TblGnDepartment");
            }
        }
 protected async void Load()
 {
     tblgndepartment = new ErpCan.Models.CanErpDbAt132.TblGnDepartment();
 }
        protected async void Grid0RowSelect(ErpCan.Models.CanErpDbAt132.TblGnDepartment args)
        {
            var result = await DialogService.OpenAsync <EditTblGnDepartment>("Edit Tbl Gn Department", new Dictionary <string, object>() { { "Department_ID", args.Department_ID } });

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