コード例 #1
0
        protected async void Form0Submit(TblGnPaymentType args)
        {
            try
            {
                var otErpCreateTblGnPaymentTypeResult = await OtErp.CreateTblGnPaymentType(tblgnpaymenttype);

                DialogService.Close(tblgnpaymenttype);
            }
            catch (Exception otErpCreateTblGnPaymentTypeException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new TblGnPaymentType!");
            }
        }
コード例 #2
0
        protected async void Form0Submit(TblGnPaymentType args)
        {
            try
            {
                var otErpUpdateTblGnPaymentTypeResult = await OtErp.UpdateTblGnPaymentType(int.Parse(PaymentType_SEQ), tblgnpaymenttype);

                DialogService.Close(tblgnpaymenttype);
            }
            catch (Exception otErpUpdateTblGnPaymentTypeException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update TblGnPaymentType");
            }
        }
コード例 #3
0
        protected async void Load()
        {
            canEdit = true;

            try
            {
                var otErpGetTblGnPaymentTypeByPaymentTypeSeqResult = await OtErp.GetTblGnPaymentTypeByPaymentTypeSeq(int.Parse(PaymentType_SEQ));

                tblgnpaymenttype = otErpGetTblGnPaymentTypeByPaymentTypeSeqResult;
            }
            catch (Exception otErpGetTblGnPaymentTypeByPaymentTypeSeqException)
            {
            }
        }
コード例 #4
0
        protected async void GridDeleteButtonClick(MouseEventArgs args, TblGnPaymentType data)
        {
            try
            {
                var otErpDeleteTblGnPaymentTypeResult = await OtErp.DeleteTblGnPaymentType(data.PaymentType_SEQ);

                if (otErpDeleteTblGnPaymentTypeResult != null)
                {
                    grid0.Reload();
                }
            }
            catch (Exception otErpDeleteTblGnPaymentTypeException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete TblGnPaymentType");
            }
        }
コード例 #5
0
 protected async void Load()
 {
     tblgnpaymenttype = new TblGnPaymentType();
 }
コード例 #6
0
        protected async void Grid0RowSelect(TblGnPaymentType args)
        {
            var result = await DialogService.OpenAsync <EditTblGnPaymentType>("Edit Tbl Gn Payment Type", new Dictionary <string, object>() { { "PaymentType_SEQ", $"{args.PaymentType_SEQ}" } });

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