Example #1
0
        protected async void Load()
        {
            canEdit = true;

            var canErpDbAt132GetTblGnPaymentTermByPaymentTermSeqResult = await CanErpDbAt132.GetTblGnPaymentTermByPaymentTermSeq(int.Parse($"{PaymentTerm_SEQ}"));

            tblgnpaymentterm = canErpDbAt132GetTblGnPaymentTermByPaymentTermSeqResult;
        }
Example #2
0
        protected async void Form0Submit(ErpCan.Models.CanErpDbAt132.TblGnPaymentTerm args)
        {
            try
            {
                var canErpDbAt132UpdateTblGnPaymentTermResult = await CanErpDbAt132.UpdateTblGnPaymentTerm(int.Parse($"{PaymentTerm_SEQ}"), tblgnpaymentterm);

                DialogService.Close(tblgnpaymentterm);
            }
            catch (Exception canErpDbAt132UpdateTblGnPaymentTermException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update TblGnPaymentTerm");
            }
        }
Example #3
0
        protected async void Form0Submit(ErpCan.Models.CanErpDbAt132.TblGnPaymentTerm args)
        {
            try
            {
                var canErpDbAt132CreateTblGnPaymentTermResult = await CanErpDbAt132.CreateTblGnPaymentTerm(tblgnpaymentterm);

                DialogService.Close(tblgnpaymentterm);
            }
            catch (Exception canErpDbAt132CreateTblGnPaymentTermException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new TblGnPaymentTerm!");
            }
        }
        protected async void GridDeleteButtonClick(MouseEventArgs args, ErpCan.Models.CanErpDbAt132.TblGnPaymentTerm data)
        {
            try
            {
                var canErpDbAt132DeleteTblGnPaymentTermResult = await CanErpDbAt132.DeleteTblGnPaymentTerm(data.PaymentTerm_SEQ);

                if (canErpDbAt132DeleteTblGnPaymentTermResult != null)
                {
                    grid0.Reload();
                }
            }
            catch (Exception canErpDbAt132DeleteTblGnPaymentTermException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete TblGnPaymentTerm");
            }
        }
Example #5
0
 protected async void Load()
 {
     tblgnpaymentterm = new ErpCan.Models.CanErpDbAt132.TblGnPaymentTerm();
 }
        protected async void Grid0RowSelect(ErpCan.Models.CanErpDbAt132.TblGnPaymentTerm args)
        {
            var result = await DialogService.OpenAsync <EditTblGnPaymentTerm>("Edit Tbl Gn Payment Term", new Dictionary <string, object>() { { "PaymentTerm_SEQ", args.PaymentTerm_SEQ } });

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