/// <summary> /// Создаёт XML описание элемента. /// </summary> /// <returns></returns> internal override string CreateXml() { StringBuilder sb = new StringBuilder(4096); using (DefinitionXmlBuilder xb = new DefinitionXmlBuilder(sb, "ReportProgramColumnDefinition")) { xb.Append(_Type); xb.AppendClassName(this.Metadata); xb.Append(_Name); } return(sb.ToString()); }
/// <summary> /// Создаёт XML описание элемента. /// </summary> /// <returns></returns> internal override string CreateXml() { StringBuilder sb = new StringBuilder(4096); using (DefinitionXmlBuilder xb = new DefinitionXmlBuilder(sb, "ItemHandlerDefinition")) { xb.Append(_Type); xb.AppendClassName(this.Metadata); xb.Append(_HandlerDisplayName); } return(sb.ToString()); }
/// <summary> /// Создаёт XML описание элемента. /// </summary> /// <returns></returns> internal override string CreateXml() { StringBuilder sb = new StringBuilder(4096); using (DefinitionXmlBuilder xb = new DefinitionXmlBuilder(sb, "FieldDefinition")) { xb.Append(_Type); xb.AppendClassName(this.Metadata); // TODO: [AV] CR: ADD FACTORY xb.Append(_TypeDisplayName); xb.Append("UserCreatable", _UserCreatable.Checked.ToString().ToLower()); xb.Append(_ListFormControlSource); } return(sb.ToString()); }
/// <summary> /// Создаёт XML описание элемента. /// </summary> /// <returns></returns> internal override string CreateXml() { StringBuilder sb = new StringBuilder(4096); using (DefinitionXmlBuilder xb = new DefinitionXmlBuilder(sb, "ListFormWebControlDefinition")) { xb.Append(_Type); xb.AppendClassName(this.Metadata); CodeClass factoryClass = this.FindControlFactory(); if (factoryClass != null) { xb.Append("FactoryClassName", this.Metadata.Class.FullName + "+" + factoryClass.Name); } else if (!WSSDeveloperPackage.ShowUserConfirmOkCancel("Фабрика контрола не задана, продолжить?", "Не задана фабрика")) { throw new NotificationException("Операция прервана"); } xb.Append(_DisplayName); } return(sb.ToString()); }