private void InitializeCorrespondenceSelection() { if (SendCorrespondenceSelection.Items.Count == 0) { List <Mercury.Client.Core.Reference.Correspondence> correspondences = MercuryApplication.CorrespondencesAvailable(true); SendCorrespondenceSelection.Items.Clear(); foreach (Client.Core.Reference.Correspondence currentCorrespondence in MercuryApplication.CorrespondencesAvailable(true)) { if (currentCorrespondence.Enabled && currentCorrespondence.Visible) { SendCorrespondenceSelection.Items.Add(CreateRadComboBoxItem(currentCorrespondence.Name, currentCorrespondence.Id.ToString(), false)); } } SendCorrespondenceSelection.SelectedValue = CorrespondenceId.ToString(); } return; }
public override System.Xml.XmlDocument XmlSerialize() { System.Xml.XmlDocument document = base.XmlSerialize(); System.Xml.XmlNode propertiesNode = document.ChildNodes[1].ChildNodes[0]; #region Properties CommonFunctions.XmlDocumentAppendPropertyNode(document, propertiesNode, "CorrespondenceContentPath", CorrespondenceContentPath); CommonFunctions.XmlDocumentAppendPropertyNode(document, propertiesNode, "CorrespondenceId", CorrespondenceId.ToString()); CommonFunctions.XmlDocumentAppendPropertyNode(document, propertiesNode, "ContentSequence", ContentSequence.ToString()); CommonFunctions.XmlDocumentAppendPropertyNode(document, propertiesNode, "ContentTypeInt32", ((Int32)ContentType).ToString()); CommonFunctions.XmlDocumentAppendPropertyNode(document, propertiesNode, "ContentType", ContentType.ToString()); CommonFunctions.XmlDocumentAppendPropertyNode(document, propertiesNode, "ReportingServerId", ReportingServerId.ToString()); CommonFunctions.XmlDocumentAppendPropertyNode(document, propertiesNode, "AttachmentBase64", AttachmentBase64); CommonFunctions.XmlDocumentAppendPropertyNode(document, propertiesNode, "AttachmentXpsBase64", AttachmentXpsBase64); CommonFunctions.XmlDocumentAppendPropertyNode(document, propertiesNode, "IsAttachmentCompressed", IsAttachmentCompressed.ToString()); #endregion #region Object Nodes if (ReportingServer != null) // NOT ALL CONTENT HAS A REPORTING SERVER (I.E. ATTACHMENTS) { document.LastChild.AppendChild(document.ImportNode(ReportingServer.XmlSerialize().LastChild, true)); } #endregion return(document); }