コード例 #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");
            }
        }
コード例 #3
0
        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");
            }
        }
コード例 #4
0
 protected async void Load()
 {
     tblgndepartment = new ErpCan.Models.CanErpDbAt132.TblGnDepartment();
 }
コード例 #5
0
        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(); });
        }