public override void buildXml(System.Xml.XmlWriter xmlWriter)
        {
            xmlWriter.WriteStartElement("excel_parameter");
            xmlWriter.WriteStartElement("method");
            //xmlWriter.WriteStartElement("monte");
            //    xmlWriter.WriteElementString("simulationNum", "10000");
            //xmlWriter.WriteEndElement();
            xmlWriter.WriteEndElement();

            xmlWriter.WriteElementString("excel_type", "excel_standardSwapPara");
            xmlWriter.WriteStartElement("excel_standardSwapPara");
            xmlWriter.WriteElementString("referenceDate", this.referenceDate_.ToString(StringFormat.XmlDateFormat_));

            xmlWriter.WriteElementString("simulationNum", this.simulationNum_);
            excel_underlyingCalcInfo_paraViewModel_.buildXml(xmlWriter);

            excel_discountCurve_paraViewModel_.buildXml(xmlWriter);

            //foreach (var item in this.excel_underlyingCalcInfo_paraViewModel_)
            //{
            //    item.buildXml(xmlWriter);
            //}

            //foreach (var item in this.excel_discountCurve_paraViewModel_)
            //{
            //    item.buildXml(xmlWriter);
            //}

            xmlWriter.WriteEndElement();
            xmlWriter.WriteEndElement();
        }
        public override void buildXml(System.Xml.XmlWriter xmlWriter)
        {
            xmlWriter.WriteStartElement("excel_parameter");
            xmlWriter.WriteElementString("excel_type", "excel_standardPara");
            xmlWriter.WriteStartElement("excel_standardPara");
            xmlWriter.WriteElementString("referenceDate", StringConverter.xmlDateTimeToDateString(this.referenceDate_));

            xmlWriter.WriteElementString("simulationNum", this.simulationNum_);

            excel_underlyingCalcInfo_paraViewModel_.buildXml(xmlWriter);

            excel_discountCurve_paraViewModel_.buildXml(xmlWriter);

            xmlWriter.WriteEndElement();
            xmlWriter.WriteEndElement();
        }
        //#region Excel_defaultCurve_paraViewModel_
        //private Excel_defaultCurve_paraViewModel excel_defaultCurve_paraViewModel_;
        //public Excel_defaultCurve_paraViewModel Excel_defaultCurve_paraViewModel_
        //{
        //    get { return this.excel_defaultCurve_paraViewModel_; }
        //    set
        //    {
        //        if (this.excel_defaultCurve_paraViewModel_ != value)
        //        {
        //            this.excel_defaultCurve_paraViewModel_ = value;
        //            this.NotifyPropertyChanged("Excel_defaultCurve_paraViewModel_");
        //        }
        //    }
        //}
        //#endregion

        public override void buildXml(System.Xml.XmlWriter xmlWriter)
        {
            xmlWriter.WriteStartElement("excel_parameter");
            xmlWriter.WriteElementString("excel_type", "excel_standardCreditPara");
            xmlWriter.WriteStartElement("excel_standardCreditPara");
            xmlWriter.WriteElementString("referenceDate", this.referenceDate_.ToString("yyyy-MM-dd"));

            xmlWriter.WriteElementString("simulationNum", this.simulationNum_);

            excel_underlyingCalcInfo_paraViewModel_.buildXml(xmlWriter);

            excel_referenceCalcInfo_paraViewModel_.buildXml(xmlWriter);

            excel_discountCurve_paraViewModel_.buildXml(xmlWriter);


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