public override void buildXml(System.Xml.XmlWriter xmlWriter)
        {
            // 계산 방법을 결정함.

            // 필요한 것

            // 기초자산, type , 상품을 던져야함

            xmlWriter.WriteStartElement("underlying_para");

                xmlWriter.WriteElementString("type", "geometricBM");
                xmlWriter.WriteElementString("krCode", this.krCode_);
                xmlWriter.WriteElementString("underName", this.underName_);

                xmlWriter.WriteStartElement("geometricBM");

                    xmlWriter.WriteElementString("currentValue", this.currentValue_);
                    xmlWriter.WriteElementString("drift", this.drift_);
                    xmlWriter.WriteElementString("dividend", this.dividend_);
                    xmlWriter.WriteElementString("volatility", this.volatility_);

                xmlWriter.WriteEndElement();

            xmlWriter.WriteEndElement();

        }
        public override void buildXml(System.Xml.XmlWriter xmlWriter)
        {
            xmlWriter.WriteStartElement("excel_couponSchedule");
                xmlWriter.WriteElementString("excel_type" , "excel_fixedCouponSchedule");

                base.buildXml(xmlWriter);

                xmlWriter.WriteStartElement("excel_fixedCouponSchedule");

                    xmlWriter.WriteElementString("eventDate", StringConverter.xmlDateTimeToDateString(this.eventDate_));
                    xmlWriter.WriteElementString("calculationStartDate", StringConverter.xmlDateTimeToDateString(this.calculationStartDate_));
                    xmlWriter.WriteElementString("calculationEndDate", StringConverter.xmlDateTimeToDateString(this.calculationEndDate_));
                    xmlWriter.WriteElementString("payoffDate", StringConverter.xmlDateTimeToDateString(this.payoffDate_));
                    xmlWriter.WriteElementString("description", this.description_);
                    xmlWriter.WriteElementString("vba_description", this.vba_description_);

                    //xmlWriter.WriteElementString("maturityDate" , StringConverter.xmlDateTimeToDateString(this.maturityDate_));
                    xmlWriter.WriteElementString("fixedRate", this.fixedRate_);

                    xmlWriter.WriteElementString("detailScheduleType" , this.detailScheduleType_);
                    
                    
                xmlWriter.WriteEndElement();
            xmlWriter.WriteEndElement();
        }
        /// <summary>
        /// Ouputs content to response
        /// </summary>
        /// <param name="xWriter">XmlWriter object to render content to</param>
        protected override void RenderContent(System.Xml.XmlWriter xWriter)
        {
            xWriter.WriteStartElement("row");
            if (!string.IsNullOrEmpty(this.ID))
                xWriter.WriteAttributeString("id", this.ID);

            if (this.HasChildren)
                xWriter.WriteAttributeString("xmlkids", "1");
            
            //write custom attribs
            foreach (KeyValuePair<string, string> pair in this.CustomAttribs)
                xWriter.WriteAttributeString(pair.Key, pair.Value);

            int cellIndex = 0;
            foreach (KeyValuePair<string, string> pair in this.DataFields)
                if (!this.ExtraColumnNames.Contains(pair.Key))
                {
                    xWriter.WriteStartElement("cell");
                    if (cellIndex == 0 && !string.IsNullOrEmpty(this.Image))
                        xWriter.WriteAttributeString("image", this.Image);
                    xWriter.WriteCData(pair.Value);
                    xWriter.WriteEndElement();
                    cellIndex++;
                }

            foreach (dhtmlxTreeGridDataItem childItem in this.ChildRows)
                childItem.Render(xWriter);

            xWriter.WriteEndElement();
        }
Example #4
0
        /// <summary>
        /// Graph object <paramref name="o"/> onto <paramref name="s"/>
        /// </summary>
        public override void Graph(System.Xml.XmlWriter s, object o, DatatypeFormatterGraphResult result)
        {
            base.Graph(s, o, result);
            
            // Now graph the attributes
            Type eivlType = o.GetType();
            object eventValue = eivlType.GetProperty("Event").GetValue(o, null),
                offsetValue = eivlType.GetProperty("Offset").GetValue(o, null),
                operatorValue = eivlType.GetProperty("Operator").GetValue(o, null);

            // Append the attributes to the writer
            if ((o as ANY).NullFlavor != null)
                return; // Nothing to report
            if (operatorValue != null)
                s.WriteAttributeString("operator", Util.ToWireFormat(operatorValue));

            // Write elements
            if (eventValue != null)
            {
                s.WriteStartElement("event", "urn:hl7-org:v3");
                var hostResult = Host.Graph(s, (IGraphable)eventValue);
                result.AddResultDetail(hostResult.Details);
                s.WriteEndElement();
            }
            if (offsetValue != null)
            {
                s.WriteStartElement("offset", "urn:hl7-org:v3");
                var hostResult = Host.Graph(s, (IGraphable)offsetValue);
                result.AddResultDetail(hostResult.Details);
                s.WriteEndElement();
            }

        }
Example #5
0
		protected override void ExportData(System.Xml.XmlWriter writer, ExportContext context)
		{
            var data = GetData();
            var node = data as Node;
			if (node != null)
			{
				writer.WriteStartElement("Path");
				writer.WriteString(node.Path);
                if (context != null)
                    context.AddReference(node.Path);
				writer.WriteEndElement();
				return;
			}

            var nodes = data as IEnumerable;
            if (nodes != null)
			{
                foreach (Node item in nodes)
				{
					writer.WriteStartElement("Path");
					writer.WriteString(item.Path);
                    if (context != null)
                        context.AddReference(item.Path);
					writer.WriteEndElement();
				}
				return;
			}

			throw ExportNotImplementedException(GetData());
		}
	public void ExportData(System.Xml.XmlWriter writer)
	{
		DbInfo database = GetDbInfo();
		writer.WriteStartElement("database");
		writer.WriteElementString("productVersion", database.ProductVersion);
		writer.WriteElementString("servicePack", database.ServicePack);
		writer.WriteElementString("productEdition", database.ProductEdition);
		writer.WriteElementString("softwarePlatform", database.SoftwarePlatform);
		writer.WriteStartElement("backups");
		foreach (BackupInfo backup in database.Backups) {
			writer.WriteStartElement("backup");
			writer.WriteElementString("name", backup.Name);
			writer.WriteElementString("backupType", backup.BackupType);
			writer.WriteElementString("size", backup.Size.ToString());
			writer.WriteElementString("startDate", backup.StartDate.ToString());
			writer.WriteElementString("finishDate", backup.FinishDate.ToString());
			writer.WriteEndElement();
		}
		writer.WriteEndElement();
		writer.WriteStartElement("files");
		foreach (DbFileInfo dbFile in database.Files) {
			writer.WriteStartElement("file");
			writer.WriteElementString("name", dbFile.Name);
			writer.WriteElementString("fileType", dbFile.FileType);
			writer.WriteElementString("shortFileName", dbFile.ShortFileName);
			writer.WriteElementString("fileName", dbFile.FileName);
			writer.WriteElementString("size", dbFile.Size.ToString());
			writer.WriteElementString("megabytes", dbFile.Megabytes.ToString());
			writer.WriteEndElement();
		}
		writer.WriteEndElement();
		writer.WriteEndElement();
	}
Example #7
0
        /// <summary>
        /// Graph <paramref name="o"/> onto <paramref name="s"/>
        /// </summary>
        public void Graph(System.Xml.XmlWriter s, object o, DatatypeR2FormatterGraphResult result)
        {

            // Graph the base
            ANYFormatter baseFormatter = new ANYFormatter();
            baseFormatter.Graph(s, o, result);

            // Do not graph if null flavor is present
            if ((o as ANY).NullFlavor != null)
                return;

            var originalText = o as IOriginalText;

            // Write out the original text first
            if (originalText.OriginalText != null)
            {
                s.WriteStartElement("originalText", "urn:hl7-org:v3");
                var hostResult = this.Host.Graph(s, originalText.OriginalText);
                result.Code = hostResult.Code;
                result.AddResultDetail(hostResult.Details);
                s.WriteEndElement();
            }

            // Now the terms
            foreach (var term in (o as IEnumerable))
            {
                s.WriteStartElement("term", "urn:hl7-org:v3");

                var hostResult = this.Host.Graph(s, term as IGraphable);
                result.Code = hostResult.Code;
                result.AddResultDetail(hostResult.Details);
                s.WriteEndElement();
            }
        }
        /// <summary>
        /// Outputs content into XmlWriter
        /// </summary>
        /// <param name="xWriter">XmlWriter to render</param>
        protected override void RenderContent(System.Xml.XmlWriter xWriter)
        {
            xWriter.WriteStartElement("event");
            //id
            if (!string.IsNullOrEmpty(this.ID))
                xWriter.WriteAttributeString("id", this.ID);
            //custom attribs
            foreach (KeyValuePair<string, string> entry in this.CustomAttribs)
                xWriter.WriteAttributeString(entry.Key, entry.Value);
            //start date
            xWriter.WriteStartElement("start_date");
            if (this.StartDate.HasValue)
                xWriter.WriteCData(this.StartDate.Value.ToString(Tools.DateFormat));
            xWriter.WriteEndElement();
            //end_date
            xWriter.WriteStartElement("end_date");
            if (this.FinishDate.HasValue)
                xWriter.WriteCData(this.FinishDate.Value.ToString(Tools.DateFormat));
            xWriter.WriteEndElement();
            
            //details fields
            foreach (string fieldName in this.DataFields.Keys)
            {
                xWriter.WriteStartElement(fieldName);
                xWriter.WriteCData(this.DataFields[fieldName]);
                xWriter.WriteEndElement();
            }

            xWriter.WriteEndElement();
        }
Example #9
0
        protected override void SaveContent(System.Xml.XmlWriter writer)
        {
            writer.WriteStartElement("table", SpreadsheetNamespaces.Main.Value);
            //WriteRequiredNamespaces(writer);

            writer.WriteAttributeString("id", _id.ToString());
            writer.WriteAttributeString("name", _tableName);
            writer.WriteAttributeString("displayName", DisplayName);
            writer.WriteAttributeString("ref", string.Format("{0}:{1}",Formatting.ColRowFormat((int)_tl.X+1,(int)_tl.Y),Formatting.ColRowFormat((int)_br.X+1,(int)_br.Y)));
            writer.WriteAttributeString("totalsRowShown", ShowTotalsRow ? "1" : "0");

            writer.WriteStartElement("autoFilter");
            writer.WriteAttributeString("ref", string.Format("{0}:{1}", Formatting.ColRowFormat((int)_tl.X+1, (int)_tl.Y), Formatting.ColRowFormat((int)_br.X+1, (int)_br.Y)));
            writer.WriteEndElement();

            writer.WriteStartElement("tableColumns");
            writer.WriteAttributeString("count", TableColumns.Length.ToString());
            foreach (var col in TableColumns)
            {
                col.Save(writer);
            }
            writer.WriteEndElement();

            TableStyle.Save(writer);

            writer.WriteEndElement();
        }
        public override void buildXml(System.Xml.XmlWriter xmlWriter)
        {
            xmlWriter.WriteStartElement("excel_underlyingCalcID");

                if (this.attributeValue_ != "")
                {
                    xmlWriter.WriteAttributeString("usingType", this.attributeValue_);
                }

                xmlWriter.WriteElementString("excel_type" , "excel_averageUnderlyingCalcID");
                xmlWriter.WriteStartElement("excel_averageUnderlyingCalcID");

                    xmlWriter.WriteElementString("eventDate", this.eventDate_.ToString(StringFormat.XmlDateFormat_));
                    foreach (var item in this.excel_selectedUnderlyingViewModel_)
                    {
                        item.buildXml(xmlWriter);
                    }    

                    foreach (var item in this.weight_)
                    {
                        xmlWriter.WriteElementString("weight", item);
                    }
                    
                xmlWriter.WriteEndElement();
            xmlWriter.WriteEndElement();
        }
Example #11
0
        /// <summary>
        /// Graph object <paramref name="o"/> onto stream <paramref name="s"/>
        /// </summary>
        /// <param name="s">The stream to graph to</param>
        /// <param name="o">The object to graph</param>
        public override void Graph(System.Xml.XmlWriter s, object o, DatatypeFormatterGraphResult result)
        {

            base.Graph(s, o, result); // Graph the base data


            // If there is no null flavor then graph the rest of the object
            if (((ANY)o).IsNull)
                return;

            object invertedValue = o.GetType().GetProperty("Inverted").GetValue(o, null),
                nameValue = o.GetType().GetProperty("Name").GetValue(o, null),
                valueValue = o.GetType().GetProperty("Value").GetValue(o, null);

            // Graph the structural attributes
            s.WriteAttributeString("inverted", Util.ToWireFormat(invertedValue));

            // Graph the non-structural elements
            if (nameValue != null)
            {
                s.WriteStartElement("name", "urn:hl7-org:v3");
                var hostResult = this.Host.Graph(s, nameValue as IGraphable);
                result.AddResultDetail(hostResult.Details);
                s.WriteEndElement(); // end name
            }
            if (valueValue != null)
            {
                s.WriteStartElement("value", "urn:hl7-org:v3");
                var hostResult = this.Host.Graph(s, valueValue as IGraphable);
                result.AddResultDetail(hostResult.Details);
                s.WriteEndElement(); // end value
            }

        }
 public override void buildXml(System.Xml.XmlWriter xmlWriter)
 {
     xmlWriter.WriteStartElement("returnCalculation");
         xmlWriter.WriteElementString("type" , "zeroReturnCal");
         xmlWriter.WriteStartElement("zeroReturnCal");
         xmlWriter.WriteEndElement();
     xmlWriter.WriteEndElement();
 }
 public  void buildXml(System.Xml.XmlWriter xmlWriter)
 {
     xmlWriter.WriteStartElement("iXmlData");
         xmlWriter.WriteElementString("type" , "evaluationCurves");
         xmlWriter.WriteStartElement("evaluationCurves");
         xmlWriter.WriteEndElement();
     xmlWriter.WriteEndElement();
 }
 public override void buildXml(System.Xml.XmlWriter xmlWriter)
 {
     xmlWriter.WriteStartElement("messageBody");
         xmlWriter.WriteElementString("msg_type", "gridCalculationStart");
         xmlWriter.WriteStartElement("gridCalculationStart");
         xmlWriter.WriteEndElement();
     xmlWriter.WriteEndElement();
 }
 public  void buildXml(System.Xml.XmlWriter xmlWriter)
 {
     xmlWriter.WriteStartElement("iXmlData");
         xmlWriter.WriteElementString("excel_type" , "geometricBM_paraSetting");
         xmlWriter.WriteStartElement("geometricBM_paraSetting");
         xmlWriter.WriteEndElement();
     xmlWriter.WriteEndElement();
 }
 public override void buildXml(System.Xml.XmlWriter xmlWriter)
 {
     xmlWriter.WriteStartElement("cashFlowInfoResult");
         xmlWriter.WriteElementString("type" , "simpleCashFlowResult");
         xmlWriter.WriteStartElement("simpleCashFlowResult");
         xmlWriter.WriteEndElement();
     xmlWriter.WriteEndElement();
 }
 public override void buildXml(System.Xml.XmlWriter xmlWriter)
 {
     xmlWriter.WriteStartElement("fixingDateInfo");
         xmlWriter.WriteElementString("excel_type" , "nullFixingDateInfo");
         xmlWriter.WriteStartElement("nullFixingDateInfo");
         xmlWriter.WriteEndElement();
     xmlWriter.WriteEndElement();
 }
 public override void buildXml(System.Xml.XmlWriter xmlWriter)
 {
     xmlWriter.WriteStartElement("messageBody");
     xmlWriter.WriteElementString("msg_type", "maturityNotification");
         xmlWriter.WriteStartElement("maturityNotification");
         xmlWriter.WriteEndElement();
     xmlWriter.WriteEndElement();
 }
 public override void buildXml(System.Xml.XmlWriter xmlWriter)
 {
     xmlWriter.WriteStartElement("excel_issueInfo");
         xmlWriter.WriteElementString("type" , "excel_emptyInfo");
         xmlWriter.WriteStartElement("excel_emptyInfo");
         xmlWriter.WriteEndElement();
     xmlWriter.WriteEndElement();
 }
 public override void buildXml(System.Xml.XmlWriter xmlWriter)
 {
     xmlWriter.WriteStartElement("payoffInfo");
         xmlWriter.WriteElementString("type" , "vanillaPayoff");
         xmlWriter.WriteStartElement("vanillaPayoff");
         xmlWriter.WriteEndElement();
     xmlWriter.WriteEndElement();
 }
 public  void buildXml(System.Xml.XmlWriter xmlWriter)
 {
     xmlWriter.WriteStartElement("iXmlData");
         xmlWriter.WriteElementString("type" , "discountCurve_paraSetting");
         xmlWriter.WriteStartElement("discountCurve_paraSetting");
         xmlWriter.WriteEndElement();
     xmlWriter.WriteEndElement();
 }
 public override void buildXml(System.Xml.XmlWriter xmlWriter)
 {
     xmlWriter.WriteStartElement("excel_eventCalcInfo");
         xmlWriter.WriteElementString("type" , "excel_identityEventCal");
         xmlWriter.WriteStartElement("excel_identityEventCal");
         xmlWriter.WriteEndElement();
     xmlWriter.WriteEndElement();
 }
 public override void buildXml(System.Xml.XmlWriter xmlWriter)
 {
     xmlWriter.WriteStartElement("pricingResult");
         xmlWriter.WriteElementString("excel_type" , "nullResult");
         xmlWriter.WriteStartElement("nullResult");
         xmlWriter.WriteEndElement();
     xmlWriter.WriteEndElement();
 }
 public override void buildXml(System.Xml.XmlWriter xmlWriter)
 {
     xmlWriter.WriteStartElement("excel_schedule");
         xmlWriter.WriteElementString("excel_type" , "excel_choiceReturnCalculation");
         xmlWriter.WriteStartElement("excel_choiceReturnCalculation");
         xmlWriter.WriteEndElement();
     xmlWriter.WriteEndElement();
 }
 public  void buildXml(System.Xml.XmlWriter xmlWriter)
 {
     xmlWriter.WriteStartElement("iXmlData");
         xmlWriter.WriteElementString("type" , "stockIndex");
         xmlWriter.WriteStartElement("stockIndex");
         xmlWriter.WriteEndElement();
     xmlWriter.WriteEndElement();
 }
 public override void buildXml(System.Xml.XmlWriter xmlWriter)
 {
     xmlWriter.WriteStartElement("variableEventInfo");
         xmlWriter.WriteElementString("excel_type" , "nullVariableEventInfo");
         xmlWriter.WriteStartElement("nullVariableEventInfo");
         xmlWriter.WriteEndElement();
     xmlWriter.WriteEndElement();
 }
 public override void buildXml(System.Xml.XmlWriter xmlWriter)
 {
     xmlWriter.WriteStartElement("excel_structuredBond_subtype");
         xmlWriter.WriteElementString("type" , "excel_structuredBond_floatingAccrual");
         xmlWriter.WriteStartElement("excel_structuredBond_floatingAccrual");
         xmlWriter.WriteEndElement();
     xmlWriter.WriteEndElement();
 }
 public override void buildXml(System.Xml.XmlWriter xmlWriter)
 {
     xmlWriter.WriteStartElement("excel_additionalOption");
         xmlWriter.WriteElementString("excel_type" , "excel_puttableOption");
         xmlWriter.WriteStartElement("excel_puttableOption");
             xmlWriter.WriteElementString("optionType", this.optionType_);
         xmlWriter.WriteEndElement();
     xmlWriter.WriteEndElement();
 }
 public  void buildXml(System.Xml.XmlWriter xmlWriter)
 {
     xmlWriter.WriteStartElement("iXmlData");
         xmlWriter.WriteElementString("type" , "couponPart");
         xmlWriter.WriteStartElement("couponPart");
             xmlWriter.WriteElementString("payRecieve" , this.payRecieve_);
             
         xmlWriter.WriteEndElement();
     xmlWriter.WriteEndElement();
 }
 public override void buildXml(System.Xml.XmlWriter xmlWriter)
 {
     xmlWriter.WriteStartElement("excel_returnCal_Call");
         xmlWriter.WriteElementString("type" , "excel_constReturnCal");
         xmlWriter.WriteStartElement("excel_constReturnCal");
             xmlWriter.WriteElementString("constReturn" , this.constReturn_);
             
         xmlWriter.WriteEndElement();
     xmlWriter.WriteEndElement();
 }