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

            var dbAtVdc2GetTblHpQuocTichByQuocTichIdResult = await DbAtVdc2.GetTblHpQuocTichByQuocTichId($"{QuocTich_ID}");

            tblhpquoctich = dbAtVdc2GetTblHpQuocTichByQuocTichIdResult;
        }
        protected async System.Threading.Tasks.Task Form0Submit(CanErpHp.Models.DbAtVdc2.TblHpQuocTich args)
        {
            try
            {
                var dbAtVdc2UpdateTblHpQuocTichResult = await DbAtVdc2.UpdateTblHpQuocTich($"{QuocTich_ID}", tblhpquoctich);

                DialogService.Close(tblhpquoctich);
            }
            catch (Exception dbAtVdc2UpdateTblHpQuocTichException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update TblHpQuocTich");
            }
        }
Пример #3
0
        protected async System.Threading.Tasks.Task Grid0RowSelect(CanErpHp.Models.DbAtVdc2.TblHpQuocTich args)
        {
            var result = await DialogService.OpenAsync <EditTblHpQuocTich>("Edit Tbl Hp Quoc Tich", new Dictionary <string, object>() { { "QuocTich_ID", args.QuocTich_ID } });

            await InvokeAsync(() => { StateHasChanged(); });
        }
Пример #4
0
 protected async System.Threading.Tasks.Task Load()
 {
     tblhpquoctich = new CanErpHp.Models.DbAtVdc2.TblHpQuocTich();
 }