protected async void Form0Submit(ErpCan.Models.CanErpDbAt132.TblGnAddressBook args)
        {
            try
            {
                var canErpDbAt132CreateTblGnAddressBookResult = await CanErpDbAt132.CreateTblGnAddressBook(tblgnaddressbook);

                DialogService.Close(tblgnaddressbook);
            }
            catch (Exception canErpDbAt132CreateTblGnAddressBookException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new TblGnAddressBook!");
            }
        }
Beispiel #2
0
        protected async void Form0Submit(ErpCan.Models.CanErpDbAt132.TblGnAddressBook args)
        {
            try
            {
                var canErpDbAt132UpdateTblGnAddressBookResult = await CanErpDbAt132.UpdateTblGnAddressBook(int.Parse($"{AddressBook_SEQ}"), tblgnaddressbook);

                DialogService.Close(tblgnaddressbook);
            }
            catch (Exception canErpDbAt132UpdateTblGnAddressBookException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update TblGnAddressBook");
            }
        }
Beispiel #3
0
        protected async void GridDeleteButtonClick(MouseEventArgs args, ErpCan.Models.CanErpDbAt132.TblGnAddressBook data)
        {
            try
            {
                var canErpDbAt132DeleteTblGnAddressBookResult = await CanErpDbAt132.DeleteTblGnAddressBook(data.AddressBook_SEQ);

                if (canErpDbAt132DeleteTblGnAddressBookResult != null)
                {
                    grid0.Reload();
                }
            }
            catch (Exception canErpDbAt132DeleteTblGnAddressBookException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete TblGnAddressBook");
            }
        }
        protected async void Load()
        {
            var canErpDbAt132GetTblGnAddressBookTypesResult = await CanErpDbAt132.GetTblGnAddressBookTypes();

            getTblGnAddressBookTypesResult = canErpDbAt132GetTblGnAddressBookTypesResult;

            var canErpDbAt132GetTblGnGendersResult = await CanErpDbAt132.GetTblGnGenders();

            getTblGnGendersResult = canErpDbAt132GetTblGnGendersResult;

            var canErpDbAt132GetTblGnCitiesResult = await CanErpDbAt132.GetTblGnCities();

            getTblGnCitiesResult = canErpDbAt132GetTblGnCitiesResult;

            tblgnaddressbook = new ErpCan.Models.CanErpDbAt132.TblGnAddressBook();
        }
Beispiel #5
0
        protected async void Grid0RowSelect(ErpCan.Models.CanErpDbAt132.TblGnAddressBook args)
        {
            var result = await DialogService.OpenAsync <EditTblGnAddressBook>("Edit Tbl Gn Address Book", new Dictionary <string, object>() { { "AddressBook_SEQ", args.AddressBook_SEQ } });

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