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

            var dbAtVdc2GetTblHpNganhByNganhIdResult = await DbAtVdc2.GetTblHpNganhByNganhId($"{Nganh_ID}");

            tblhpnganh = dbAtVdc2GetTblHpNganhByNganhIdResult;
        }
Exemple #2
0
        protected async System.Threading.Tasks.Task Form0Submit(CanErpHrPr.Models.DbAtVdc2.TblHpNganh args)
        {
            try
            {
                var dbAtVdc2UpdateTblHpNganhResult = await DbAtVdc2.UpdateTblHpNganh($"{Nganh_ID}", tblhpnganh);

                DialogService.Close(tblhpnganh);
            }
            catch (Exception dbAtVdc2UpdateTblHpNganhException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update TblHpNganh");
            }
        }
        protected async System.Threading.Tasks.Task Grid0RowSelect(CanErpHrPr.Models.DbAtVdc2.TblHpNganh args)
        {
            var result = await DialogService.OpenAsync <EditTblHpNganh>("Edit Tbl Hp Nganh", new Dictionary <string, object>() { { "Nganh_ID", args.Nganh_ID } });

            await InvokeAsync(() => { StateHasChanged(); });
        }
Exemple #4
0
 protected async System.Threading.Tasks.Task Load()
 {
     tblhpnganh = new CanErpHrPr.Models.DbAtVdc2.TblHpNganh();
 }