Ejemplo n.º 1
0
        public override void RecreateExtendedProperties()
        {
            base.RecreateExtendedProperties();


            ExtendedProperties.Add("InsurerId", InsurerId.ToString());

            ExtendedProperties.Add("ProgramId", ProgramId.ToString());

            ExtendedProperties.Add("BenefitPlanId", BenefitPlanId.ToString());


            ExtendedProperties.Add("ContinuousEnrollment", ContinuousEnrollment.ToString());

            ExtendedProperties.Add("ContinuousAllowedGaps", ContinuousAllowedGaps.ToString());

            ExtendedProperties.Add("ContinuousAllowedGapDays", ContinuousAllowedGapDays.ToString());


            foreach (String currentKey in DateCriteria.MapToExtendedProperties().Keys)
            {
                ExtendedProperties.Add(currentKey, DateCriteria.MapToExtendedProperties()[currentKey]);
            }


            return;
        }
        public override void RecreateExtendedProperties()
        {
            base.RecreateExtendedProperties();


            ExtendedProperties.Add("InsurerId", InsurerId.ToString());

            ExtendedProperties.Add("ProgramId", ProgramId.ToString());

            ExtendedProperties.Add("BenefitPlanId", BenefitPlanId.ToString());


            ExtendedProperties.Add("ContinuousAllowedGaps", ContinuousAllowedGaps.ToString());

            ExtendedProperties.Add("ContinuousAllowedGapDays", ContinuousAllowedGapDays.ToString());

            ExtendedProperties.Add("ContinuousUntilAge", ContinuousUntilAge.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

            if (insurerId != 0)
            {
                CommonFunctions.XmlDocumentAppendPropertyNode(document, propertiesNode, "InsurerId", InsurerId.ToString());

                CommonFunctions.XmlDocumentAppendPropertyNode(document, propertiesNode, "Insurer", InsurerName);
            }

            if (programId != 0)
            {
                CommonFunctions.XmlDocumentAppendPropertyNode(document, propertiesNode, "ProgramId", ProgramId.ToString());

                CommonFunctions.XmlDocumentAppendPropertyNode(document, propertiesNode, "Program", ProgramName);
            }

            if (benefitPlanId != 0)
            {
                CommonFunctions.XmlDocumentAppendPropertyNode(document, propertiesNode, "BenefitPlanId", BenefitPlanId.ToString());

                CommonFunctions.XmlDocumentAppendPropertyNode(document, propertiesNode, "BenefitPlan", BenefitPlanName);
            }

            #endregion


            return(document);
        }