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

            var dbAtVdc2GetTblHpPhanLoaiNvByPhanLoaiNvIdResult = await DbAtVdc2.GetTblHpPhanLoaiNvByPhanLoaiNvId($"{PhanLoaiNV_ID}");

            tblhpphanloainv = dbAtVdc2GetTblHpPhanLoaiNvByPhanLoaiNvIdResult;
        }
        protected async System.Threading.Tasks.Task Form0Submit(CanErpHp.Models.DbAtVdc2.TblHpPhanLoaiNv args)
        {
            try
            {
                var dbAtVdc2CreateTblHpPhanLoaiNvResult = await DbAtVdc2.CreateTblHpPhanLoaiNv(tblhpphanloainv);

                DialogService.Close(tblhpphanloainv);
            }
            catch (Exception dbAtVdc2CreateTblHpPhanLoaiNvException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new TblHpPhanLoaiNv!");
            }
        }
        protected async System.Threading.Tasks.Task Grid0RowSelect(CanErpHp.Models.DbAtVdc2.TblHpPhanLoaiNv args)
        {
            var result = await DialogService.OpenAsync <EditTblHpPhanLoaiNv>("Edit Tbl Hp Phan Loai Nv", new Dictionary <string, object>() { { "PhanLoaiNV_ID", args.PhanLoaiNV_ID } });

            await InvokeAsync(() => { StateHasChanged(); });
        }
 protected async System.Threading.Tasks.Task Load()
 {
     tblhpphanloainv = new CanErpHp.Models.DbAtVdc2.TblHpPhanLoaiNv();
 }