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

            var dbAtVdc2GetTblHpTinhTpByTinhTpIdResult = await DbAtVdc2.GetTblHpTinhTpByTinhTpId($"{TinhTP_ID}");

            tblhptinhtp = dbAtVdc2GetTblHpTinhTpByTinhTpIdResult;
        }
        protected async System.Threading.Tasks.Task Form0Submit(CanErpHp.Models.DbAtVdc2.TblHpTinhTp args)
        {
            try
            {
                var dbAtVdc2CreateTblHpTinhTpResult = await DbAtVdc2.CreateTblHpTinhTp(tblhptinhtp);

                DialogService.Close(tblhptinhtp);
            }
            catch (Exception dbAtVdc2CreateTblHpTinhTpException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new TblHpTinhTp!");
            }
        }
 protected async System.Threading.Tasks.Task Load()
 {
     tblhptinhtp = new CanErpHp.Models.DbAtVdc2.TblHpTinhTp();
 }
Ejemplo n.º 4
0
        protected async System.Threading.Tasks.Task Grid0RowSelect(CanErpHp.Models.DbAtVdc2.TblHpTinhTp args)
        {
            var result = await DialogService.OpenAsync <EditTblHpTinhTp>("Edit Tbl Hp Tinh Tp", new Dictionary <string, object>() { { "TinhTP_ID", args.TinhTP_ID } });

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