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

            var dbAtVdc2GetTblIcUnitByUnitSeqResult = await DbAtVdc2.GetTblIcUnitByUnitSeq(int.Parse($"{Unit_SEQ}"));

            tblicunit = dbAtVdc2GetTblIcUnitByUnitSeqResult;
        }
        protected async System.Threading.Tasks.Task Form0Submit(CanErp2.Models.DbAtVdc2.TblIcUnit args)
        {
            try
            {
                var dbAtVdc2CreateTblIcUnitResult = await DbAtVdc2.CreateTblIcUnit(tblicunit);

                DialogService.Close(tblicunit);
            }
            catch (Exception dbAtVdc2CreateTblIcUnitException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new TblIcUnit!");
            }
        }
Esempio n. 3
0
        protected async System.Threading.Tasks.Task Form0Submit(CanErp2.Models.DbAtVdc2.TblIcUnit args)
        {
            try
            {
                var dbAtVdc2UpdateTblIcUnitResult = await DbAtVdc2.UpdateTblIcUnit(int.Parse($"{Unit_SEQ}"), tblicunit);

                DialogService.Close(tblicunit);
            }
            catch (Exception dbAtVdc2UpdateTblIcUnitException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update TblIcUnit");
            }
        }
 protected async System.Threading.Tasks.Task Load()
 {
     tblicunit = new CanErp2.Models.DbAtVdc2.TblIcUnit();
 }
Esempio n. 5
0
        protected async System.Threading.Tasks.Task Grid0RowSelect(CanErp2.Models.DbAtVdc2.TblIcUnit args)
        {
            var result = await DialogService.OpenAsync <EditTblIcUnit>("Edit Tbl Ic Unit", new Dictionary <string, object>() { { "Unit_SEQ", args.Unit_SEQ } });

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