private CalculateOpportunityActionLink(IPortalContext portalContext, int languageCode, CalculateOpportunityAction action, bool enabled = true, UrlBuilder url = null, string portalName = null) : base(portalContext, languageCode, action, LinkActionType.CalculateOpportunity, enabled, url, portalName, DefaultButtonLabel, DefaultButtonTooltip) { Modal = new ViewCalculateOpportunityModal(); URL = EntityListFunctions.BuildControllerActionUrl("CalculateActualValueOfOpportunity", "EntityAction", new { area = "Portal", __portalScopeId__ = portalContext.Website.Id }); }
public CalculateOpportunityActionLink(IPortalContext portalContext, GridMetadata gridMetadata, int languageCode, CalculateOpportunityAction action, bool enabled = true, UrlBuilder url = null, string portalName = null) : this(portalContext, languageCode, action, enabled, url, portalName) { if (gridMetadata.CalculateOpportunityDialog == null) { return; } Modal.CloseButtonCssClass = gridMetadata.CalculateOpportunityDialog.CloseButtonCssClass; Modal.CloseButtonText = gridMetadata.CalculateOpportunityDialog.CloseButtonText.GetLocalizedString(languageCode); Modal.CssClass = gridMetadata.CalculateOpportunityDialog.CssClass; Modal.DismissButtonSrText = gridMetadata.CalculateOpportunityDialog.DismissButtonSrText.GetLocalizedString(languageCode); Modal.PrimaryButtonCssClass = gridMetadata.CalculateOpportunityDialog.PrimaryButtonCssClass; Modal.PrimaryButtonText = gridMetadata.CalculateOpportunityDialog.PrimaryButtonText.GetLocalizedString(languageCode); Modal.Size = gridMetadata.CalculateOpportunityDialog.Size; Modal.Title = gridMetadata.CalculateOpportunityDialog.Title.GetLocalizedString(languageCode); Modal.TitleCssClass = gridMetadata.CalculateOpportunityDialog.TitleCssClass; }