public void buildXml(System.Xml.XmlWriter xmlWriter)
        {
            xmlWriter.WriteStartElement("iXmlData");
            xmlWriter.WriteElementString("type", "simpleRangeReturn");
            xmlWriter.WriteStartElement("simpleRangeReturn");
            simpleRangeEventCalViewModel_.buildXml(xmlWriter);

            returnCalculationViewModel_.buildXml(xmlWriter);

            xmlWriter.WriteEndElement();
            xmlWriter.WriteEndElement();
        }
        public override void buildXml(System.Xml.XmlWriter xmlWriter)
        {
            xmlWriter.WriteStartElement("eventTrigger");
            xmlWriter.WriteElementString("excel_type", "autoCallRangeReturnTrigger");
            xmlWriter.WriteStartElement("autoCallRangeReturnTrigger");
            simpleRangeEventCalViewModel_.buildXml(xmlWriter);

            payoffDateInfoViewModel_.buildXml(xmlWriter);

            xmlWriter.WriteElementString("isExpired", this.isExpired_);

            xmlWriter.WriteEndElement();
            xmlWriter.WriteEndElement();
        }
        public override void buildXml(System.Xml.XmlWriter xmlWriter)
        {
            xmlWriter.WriteStartElement("eventTrigger");
            xmlWriter.WriteElementString("type", "simpleRangeConstReturnTrigger");
            xmlWriter.WriteStartElement("simpleRangeConstReturnTrigger");
            xmlWriter.WriteElementString("dateOrder", this.dateOrder_);

            simpleRangeEventCalViewModel_.buildXml(xmlWriter);

            payoffDateInfoViewModel_.buildXml(xmlWriter);

            xmlWriter.WriteElementString("constReturn", this.constReturn_);

            xmlWriter.WriteElementString("averageDays", this.averageDays_);

            xmlWriter.WriteElementString("isExpired", this.isExpired_);

            xmlWriter.WriteEndElement();
            xmlWriter.WriteEndElement();
        }