public override void buildXml(System.Xml.XmlWriter xmlWriter) { xmlWriter.WriteStartElement("excel_schedule"); xmlWriter.WriteElementString("type", "excel_simpleCalculation"); xmlWriter.WriteStartElement("excel_simpleCalculation"); xmlWriter.WriteElementString("eventDate", StringConverter.xmlDateTimeToDateString(this.eventDate_)); xmlWriter.WriteElementString("payoffDate", StringConverter.xmlDateTimeToDateString(this.payoffDate_)); xmlWriter.WriteElementString("description", this.description_); excel_eventCalcInfoViewModel_.buildXml(xmlWriter); excel_returnCalcInfoViewModel_.buildXml(xmlWriter); excel_complementReturnCalcViewModel_.buildXml(xmlWriter); excel_eventCalcInfo_CallViewModel_.buildXml(xmlWriter); excel_returnCalcInfo_CallViewModel_.buildXml(xmlWriter); excel_complementReturnCalc_CallViewModel_.buildXml(xmlWriter); xmlWriter.WriteEndElement(); xmlWriter.WriteEndElement(); }
public override void buildXml(System.Xml.XmlWriter xmlWriter) { xmlWriter.WriteStartElement("excel_schedule"); xmlWriter.WriteElementString("excel_type", "excel_simpleCalculation"); base.buildXml(xmlWriter); xmlWriter.WriteStartElement("excel_simpleCalculation"); xmlWriter.WriteElementString("eventDate", this.eventDate_.ToString(StringFormat.XmlDateFormat_)); xmlWriter.WriteElementString("payoffDate", this.payoffDate_.ToString(StringFormat.XmlDateFormat_)); xmlWriter.WriteElementString("description", this.description_); xmlWriter.WriteElementString("vba_description", this.vba_description_); excel_eventCalcInfoViewModel_.buildXml(xmlWriter); excel_returnCalcInfoViewModel_.buildXml(xmlWriter); //if (this.excel_complementReturnCalcViewModel_ != null) //{ excel_complementReturnCalcViewModel_.buildXml(xmlWriter); //} excel_eventCalcInfo_CallViewModel_.buildXml(xmlWriter); excel_returnCalcInfo_CallViewModel_.buildXml(xmlWriter); xmlWriter.WriteEndElement(); xmlWriter.WriteEndElement(); // 원래 꺼 만드는 코드 부분 }