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

            var dbAtVdc2GetTblHpLoaiChamCongByLoaiChamCongIdResult = await DbAtVdc2.GetTblHpLoaiChamCongByLoaiChamCongId($"{LoaiChamCong_ID}");

            tblhploaichamcong = dbAtVdc2GetTblHpLoaiChamCongByLoaiChamCongIdResult;
        }
Example #2
0
        protected async System.Threading.Tasks.Task Form0Submit(CanErpHrPr.Models.DbAtVdc2.TblHpLoaiChamCong args)
        {
            try
            {
                var dbAtVdc2UpdateTblHpLoaiChamCongResult = await DbAtVdc2.UpdateTblHpLoaiChamCong($"{LoaiChamCong_ID}", tblhploaichamcong);

                DialogService.Close(tblhploaichamcong);
            }
            catch (Exception dbAtVdc2UpdateTblHpLoaiChamCongException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update TblHpLoaiChamCong");
            }
        }
        protected async System.Threading.Tasks.Task Grid0RowSelect(CanErpHrPr.Models.DbAtVdc2.TblHpLoaiChamCong args)
        {
            var result = await DialogService.OpenAsync <EditTblHpLoaiChamCong>("Edit Tbl Hp Loai Cham Cong", new Dictionary <string, object>() { { "LoaiChamCong_ID", args.LoaiChamCong_ID } });

            await InvokeAsync(() => { StateHasChanged(); });
        }
 protected async System.Threading.Tasks.Task Load()
 {
     tblhploaichamcong = new CanErpHrPr.Models.DbAtVdc2.TblHpLoaiChamCong();
 }