protected async void Form0Submit(TblGnAddressBookType args)
        {
            try
            {
                var otErpUpdateTblGnAddressBookTypeResult = await OtErp.UpdateTblGnAddressBookType(int.Parse(AddressBookType_SEQ), tblgnaddressbooktype);

                DialogService.Close(tblgnaddressbooktype);
            }
            catch (Exception otErpUpdateTblGnAddressBookTypeException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update TblGnAddressBookType");
            }
        }
Beispiel #2
0
        protected async void Form0Submit(TblGnAddressBookType args)
        {
            try
            {
                var otErpCreateTblGnAddressBookTypeResult = await OtErp.CreateTblGnAddressBookType(tblgnaddressbooktype);

                DialogService.Close(tblgnaddressbooktype);
            }
            catch (Exception otErpCreateTblGnAddressBookTypeException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new TblGnAddressBookType!");
            }
        }
        protected async void Load()
        {
            canEdit = true;

            try
            {
                var otErpGetTblGnAddressBookTypeByAddressBookTypeSeqResult = await OtErp.GetTblGnAddressBookTypeByAddressBookTypeSeq(int.Parse(AddressBookType_SEQ));

                tblgnaddressbooktype = otErpGetTblGnAddressBookTypeByAddressBookTypeSeqResult;
            }
            catch (Exception otErpGetTblGnAddressBookTypeByAddressBookTypeSeqException)
            {
            }
        }
        protected async void GridDeleteButtonClick(MouseEventArgs args, TblGnAddressBookType data)
        {
            try
            {
                var otErpDeleteTblGnAddressBookTypeResult = await OtErp.DeleteTblGnAddressBookType(data.AddressBookType_SEQ);

                if (otErpDeleteTblGnAddressBookTypeResult != null)
                {
                    grid0.Reload();
                }
            }
            catch (Exception otErpDeleteTblGnAddressBookTypeException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete TblGnAddressBookType");
            }
        }
Beispiel #5
0
 protected async void Load()
 {
     tblgnaddressbooktype = new TblGnAddressBookType();
 }
        protected async void Grid0RowSelect(TblGnAddressBookType args)
        {
            var result = await DialogService.OpenAsync <EditAddressBookType>("Edit AddressBook Type", new Dictionary <string, object>() { { "AddressBookType_SEQ", $"{args.AddressBookType_SEQ}" } });

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