protected virtual void PaymentTypeInstanceDetail_RowSelected(PXCache cache, PXRowSelectedEventArgs e) { PaymentTypeInstanceDetail row = (PaymentTypeInstanceDetail)e.Row; if (row != null) { PaymentMethodDetail iTempl = this.FindTemplate(row); bool isRequired = (iTempl != null) && (iTempl.IsRequired ?? false); PXDefaultAttribute.SetPersistingCheck <PaymentTypeInstanceDetail.value>(cache, row, (isRequired) ? PXPersistingCheck.NullOrBlank : PXPersistingCheck.Nothing); bool showDecripted = !(iTempl.IsEncrypted ?? false); PXRSACryptStringAttribute.SetDecrypted <PaymentTypeInstanceDetail.value>(cache, row, showDecripted); } }
protected virtual void PaymentTypeInstanceDetail_RowSelected(PXCache cache, PXRowSelectedEventArgs e) { var row = (PaymentTypeInstanceDetail)e.Row; if (row == null) { return; } PaymentMethodDetail iTempl = this.FindTemplate(row); PXUIFieldAttribute.SetRequired <PaymentTypeInstanceDetail.value>(cache, iTempl?.IsRequired == true); bool showDecripted = !(iTempl.IsEncrypted ?? false); PXRSACryptStringAttribute.SetDecrypted <PaymentTypeInstanceDetail.value>(cache, row, showDecripted); }
protected virtual void _(Events.RowSelected <KCSiteMaster> e) { if (e.Row == null) { return; } KCSiteMaster row = (KCSiteMaster)e.Row; if (row != null) { PXRSACryptStringAttribute.SetDecrypted <KCSiteMaster.devPassword>(e.Cache, row, true); PXRSACryptStringAttribute.SetDecrypted <KCSiteMaster.devConfirmPassword>(e.Cache, row, true); PXRSACryptStringAttribute.SetDecrypted <KCSiteMaster.fTPPassword>(e.Cache, row, true); PXRSACryptStringAttribute.SetDecrypted <KCSiteMaster.fTPConfirmPassword>(e.Cache, row, true); } }
protected virtual void SOAmazonSetup_RowSelected(PXCache sender, PXRowSelectedEventArgs e) { SOAmazonSetup row = e.Row as SOAmazonSetup; if (row != null) { PXRSACryptStringAttribute.SetDecrypted <SOAmazonSetup.authToken>(sender, row, true); PXRSACryptStringAttribute.SetDecrypted <SOAmazonSetup.accessKey>(sender, row, true); PXRSACryptStringAttribute.SetDecrypted <SOAmazonSetup.secretKey>(sender, row, true); this.FieldMapping.AllowInsert = !string.IsNullOrEmpty(row.IntegrationID); this.FieldMapping.AllowUpdate = !string.IsNullOrEmpty(row.IntegrationID); this.FieldMapping.AllowDelete = !string.IsNullOrEmpty(row.IntegrationID); TestConnection.SetEnabled(!string.IsNullOrEmpty(row.IntegrationID)); if (!string.IsNullOrEmpty(row.IntegrationType)) { PXUIFieldAttribute.SetVisible <SOAmazonSetup.fBMNote>(setupview.Cache, null, row.IntegrationType.Trim().ToLower() == SOConstants.AMIntegrationType.FBM.Trim().ToLower()); } } }
public void RowSelected(PXCache sender, PXRowSelectedEventArgs e) { if (e.Row == null) { return; } var paymentMethodID = sender.GetValue(e.Row, _PaymentMethodID.Name) as string; if (!String.IsNullOrEmpty(paymentMethodID)) { var paymentMethod = PXSelect <PaymentMethod, Where <PaymentMethod.paymentMethodID, Equal <Required <PaymentMethod.paymentMethodID> > > > .Select(sender.Graph, paymentMethodID); var paymentMethodExt = PXCache <PaymentMethod> .GetExtension <PaymentMethodExt>(paymentMethod); if (paymentMethodExt != null && paymentMethodExt.ARCreateBatchPayment == true) { PXRSACryptStringAttribute.SetDecrypted(sender, base.FieldName, true); } } }