Ejemplo n.º 1
0
        public ConvertQuoteToOrderActionLink(IPortalContext portalContext, GridMetadata gridMetadata, int languageCode,
                                             ConvertQuoteToOrderAction action, bool enabled = true, UrlBuilder url = null, string portalName = null)
            : this(portalContext, languageCode, action, enabled, url, portalName)
        {
            if (gridMetadata.ConvertQuoteDialog == null)
            {
                return;
            }

            Modal.CloseButtonCssClass   = gridMetadata.ConvertQuoteDialog.CloseButtonCssClass;
            Modal.CloseButtonText       = gridMetadata.ConvertQuoteDialog.CloseButtonText.GetLocalizedString(languageCode);
            Modal.CssClass              = gridMetadata.ConvertQuoteDialog.CssClass;
            Modal.DismissButtonSrText   = gridMetadata.ConvertQuoteDialog.DismissButtonSrText.GetLocalizedString(languageCode);
            Modal.PrimaryButtonCssClass = gridMetadata.ConvertQuoteDialog.PrimaryButtonCssClass;
            Modal.PrimaryButtonText     = gridMetadata.ConvertQuoteDialog.PrimaryButtonText.GetLocalizedString(languageCode);
            Modal.Size          = gridMetadata.ConvertQuoteDialog.Size;
            Modal.Title         = gridMetadata.ConvertQuoteDialog.Title.GetLocalizedString(languageCode);
            Modal.TitleCssClass = gridMetadata.ConvertQuoteDialog.TitleCssClass;
        }
Ejemplo n.º 2
0
        private ConvertQuoteToOrderActionLink(IPortalContext portalContext, int languageCode, ConvertQuoteToOrderAction action,
                                              bool enabled = true, UrlBuilder url = null, string portalName = null)
            : base(
                portalContext, languageCode, action, LinkActionType.ConvertQuote, enabled, url, portalName, DefaultButtonLabel,
                DefaultButtonTooltip)
        {
            Modal = new ViewConvertQuoteModal();

            if (url == null)
            {
                URL = EntityListFunctions.BuildControllerActionUrl("ConvertQuoteToOrder", "EntityAction",
                                                                   new { area = "Portal", __portalScopeId__ = portalContext.Website.Id });
            }
        }