public AP1099DetailEnq() { APSetup setup = APSetup.Current; PXUIFieldAttribute.SetEnabled <AP1099Box.boxNbr>(YearVendorSummary.Cache, null, false); PXUIFieldAttribute.SetEnabled <AP1099Box.descr>(YearVendorSummary.Cache, null, false); PXUIFieldAttribute.SetRequired <AP1099YearMaster.vendorID>(YearVendorHeader.Cache, true); reportsFolder.MenuAutoOpen = true; reportsFolder.AddMenuAction(year1099SummaryReport); reportsFolder.AddMenuAction(year1099DetailReport); }
public AP1099SummaryEnq() { APSetup setup = APSetup.Current; PXUIFieldAttribute.SetEnabled <AP1099Box.boxNbr>(Year_Summary.Cache, null, false); PXUIFieldAttribute.SetEnabled <AP1099Box.descr>(Year_Summary.Cache, null, false); reportsFolder.MenuAutoOpen = true; reportsFolder.AddMenuAction(year1099SummaryReport); reportsFolder.AddMenuAction(year1099DetailReport); reportsFolder.AddMenuAction(open1099PaymentsReport); }
public INSiteMaint() { if (!PXAccess.FeatureInstalled <FeaturesSet.warehouse>()) { site.Cache.AllowInsert = getDefaultSiteID() == null; Next.SetVisible(false); Previous.SetVisible(false); Last.SetVisible(false); First.SetVisible(false); } PXUIFieldAttribute.SetVisible <INSite.pPVAcctID>(siteaccounts.Cache, null, true); PXUIFieldAttribute.SetVisible <INSite.pPVSubID>(siteaccounts.Cache, null, true); PXUIFieldAttribute.SetVisible <INSite.discAcctID>(siteaccounts.Cache, null, false); PXUIFieldAttribute.SetVisible <INSite.discSubID>(siteaccounts.Cache, null, false); PXUIFieldAttribute.SetVisible <INSite.freightAcctID>(siteaccounts.Cache, null, false); PXUIFieldAttribute.SetVisible <INSite.freightSubID>(siteaccounts.Cache, null, false); PXUIFieldAttribute.SetVisible <INSite.miscAcctID>(siteaccounts.Cache, null, false); PXUIFieldAttribute.SetVisible <INSite.miscSubID>(siteaccounts.Cache, null, false); PXUIFieldAttribute.SetDisplayName <Contact.salutation>(Caches[typeof(Contact)], CR.Messages.Attention); PXUIFieldAttribute.SetDisplayName <INSite.overrideAccSub>(siteaccounts.Cache, PXAccess.FeatureInstalled <FeaturesSet.subAccount>() ? Messages.OverrideInventoryAcctSub : Messages.OverrideInventoryAcct); PXUIFieldAttribute.SetEnabled <Contact.fullName>(Caches[typeof(Contact)], null); action.AddMenuAction(changeID); PXImportAttribute importAttribute = location.Attributes.Find(a => a is PXImportAttribute) as PXImportAttribute; importAttribute.MappingPropertiesInit += MappingPropertiesInit; }
public INSiteMaint() { if (insetup.Current == null) { throw new PXSetupNotEnteredException(ErrorMessages.SetupNotEntered, typeof(INSetup), PXMessages.LocalizeNoPrefix(IN.Messages.INSetup)); } if (!PXAccess.FeatureInstalled <FeaturesSet.warehouse>()) { site.Cache.AllowInsert = getDefaultSiteID() == null; Next.SetVisible(false); Previous.SetVisible(false); Last.SetVisible(false); First.SetVisible(false); } PXUIFieldAttribute.SetVisible <INSite.pPVAcctID>(siteaccounts.Cache, null, true); PXUIFieldAttribute.SetVisible <INSite.pPVSubID>(siteaccounts.Cache, null, true); PXUIFieldAttribute.SetDisplayName <Contact.salutation>(Caches[typeof(Contact)], CR.Messages.Attention); PXUIFieldAttribute.SetDisplayName <INSite.overrideInvtAccSub>(siteaccounts.Cache, PXAccess.FeatureInstalled <FeaturesSet.subAccount>() ? Messages.OverrideInventoryAcctSub : Messages.OverrideInventoryAcct); PXUIFieldAttribute.SetEnabled <Contact.fullName>(Caches[typeof(Contact)], null); action.AddMenuAction(changeID); PXImportAttribute importAttribute = location.Attributes.Find(a => a is PXImportAttribute) as PXImportAttribute; importAttribute.MappingPropertiesInit += MappingPropertiesInit; }
private PXAction AddAction(string actionName, string displayName, PXButtonDelegate handler) { var action = PXNamedAction <EDoc> .AddAction(Base, actionName, displayName, handler); SurveyFolder.AddMenuAction(action); return(action); }
public ExpenseClaimDetailEntry() { FieldDefaulting.AddHandler <InventoryItem.stkItem>((sender, e) => { if (e.Row != null) { e.NewValue = false; } }); PXUIFieldAttribute.SetVisible <EPExpenseClaimDetails.contractID>(ClaimDetails.Cache, null, PXAccess.FeatureInstalled <CS.FeaturesSet.contractManagement>() || PXAccess.FeatureInstalled <CS.FeaturesSet.projectModule>()); action.AddMenuAction(Claim); }
public override void Initialize() { base.Initialize(); RetainageOptions releaseRetainageOptions = ReleaseRetainageOptions.Current; PXAction action = Base.Actions["action"]; if (action != null) { action.AddMenuAction(releaseRetainage); } }