Пример #1
0
        protected override void BuildScriptDescriptor(ScriptComponentDescriptor descriptor)
        {
            base.BuildScriptDescriptor(descriptor);
            OptionsHelpId optionsHelpId = base.UseSetObject ? OptionsHelpId.EditInboxRule : OptionsHelpId.NewInboxRule;

            descriptor.AddProperty("HrefForStopProcessingRules", HelpUtil.BuildEhcHref(optionsHelpId.ToString()), true);
            if (this.ruleObj != null)
            {
                descriptor.AddScriptProperty("MailMessageObject", this.ruleObj.ToJsonString(null));
            }
            if (this.templatePhraseNames != null)
            {
                descriptor.AddScriptProperty("TemplatePhraseNames", this.templatePhraseNames.ToJsonString(null));
            }
        }
Пример #2
0
 public static string BuildEhcHref(OptionsHelpId helpId)
 {
     HelpUtil.EnsureInit();
     return(HelpUtil.BuildEhcHref(helpId.ToString(), false));
 }