Ejemplo n.º 1
0
        protected async System.Threading.Tasks.Task Load()
        {
            canEdit = true;

            var dbAtVdc2GetTblHpDanTocByDanTocIdResult = await DbAtVdc2.GetTblHpDanTocByDanTocId($"{DanToc_ID}");

            tblhpdantoc = dbAtVdc2GetTblHpDanTocByDanTocIdResult;
        }
        protected async System.Threading.Tasks.Task Form0Submit(CanErpHp.Models.DbAtVdc2.TblHpDanToc args)
        {
            try
            {
                var dbAtVdc2CreateTblHpDanTocResult = await DbAtVdc2.CreateTblHpDanToc(tblhpdantoc);

                DialogService.Close(tblhpdantoc);
            }
            catch (Exception dbAtVdc2CreateTblHpDanTocException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new TblHpDanToc!");
            }
        }
 protected async System.Threading.Tasks.Task Load()
 {
     tblhpdantoc = new CanErpHp.Models.DbAtVdc2.TblHpDanToc();
 }
Ejemplo n.º 4
0
        protected async System.Threading.Tasks.Task Grid0RowSelect(CanErpHp.Models.DbAtVdc2.TblHpDanToc args)
        {
            var result = await DialogService.OpenAsync <EditTblHpDanToc>("Edit Tbl Hp Dan Toc", new Dictionary <string, object>() { { "DanToc_ID", args.DanToc_ID } });

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