protected async System.Threading.Tasks.Task Load()
        {
            canEdit = true;

            var dbAtVdc2GetTblHpChucVuByChucVuIdResult = await DbAtVdc2.GetTblHpChucVuByChucVuId($"{ChucVu_ID}");

            tblhpchucvu = dbAtVdc2GetTblHpChucVuByChucVuIdResult;
        }
        protected async System.Threading.Tasks.Task Form0Submit(CanErpHrPr.Models.DbAtVdc2.TblHpChucVu args)
        {
            try
            {
                var dbAtVdc2UpdateTblHpChucVuResult = await DbAtVdc2.UpdateTblHpChucVu($"{ChucVu_ID}", tblhpchucvu);

                DialogService.Close(tblhpchucvu);
            }
            catch (Exception dbAtVdc2UpdateTblHpChucVuException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update TblHpChucVu");
            }
        }
Пример #3
0
 protected async System.Threading.Tasks.Task Load()
 {
     tblhpchucvu = new CanErpHrPr.Models.DbAtVdc2.TblHpChucVu();
 }
Пример #4
0
        protected async System.Threading.Tasks.Task Grid0RowSelect(CanErpHrPr.Models.DbAtVdc2.TblHpChucVu args)
        {
            var result = await DialogService.OpenAsync <EditTblHpChucVu>("Edit Tbl Hp Chuc Vu", new Dictionary <string, object>() { { "ChucVu_ID", args.ChucVu_ID } });

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