Ejemplo n.º 1
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_issueInfo serial_Excel_issueInfo = serial_Class as FpmlSerializedCSharp.Excel_issueInfo;
            FpmlSerializedCSharp.Excel_swapInfo  serial_Excel_swapInfo  = serial_Excel_issueInfo.Excel_swapInfo_;

            //this.tradeDate_ = DateTime.ParseExact(serial_Excel_swapInfo.TradeDate_.ValueStr, StringFormat.XmlDateFormat_, null);
            this.effectiveDate_ = DateTime.ParseExact(serial_Excel_swapInfo.EffectiveDate_.ValueStr, StringFormat.XmlDateFormat_, null);
            this.maturityDate_  = DateTime.ParseExact(serial_Excel_swapInfo.MaturityDate_.ValueStr, StringFormat.XmlDateFormat_, null);

            this.notional_ = serial_Excel_swapInfo.Notional_.ValueStr;
            this.premium_  = serial_Excel_swapInfo.Premium_.ValueStr;

            this.currency_        = CurrencyViewModel.CreateCurrencyComboViewModel(serial_Excel_swapInfo.Currency_.ValueStr);
            this.vba_description_ = serial_Excel_swapInfo.Vba_description_.ValueStr;
        }
Ejemplo n.º 2
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_issueInfo serial_Excel_issueInfo = serial_Class as FpmlSerializedCSharp.Excel_issueInfo;
            FpmlSerializedCSharp.Excel_swapInfo  serial_Excel_swapInfo  = serial_Excel_issueInfo.Excel_swapInfo_;

            this.tradeDate_ = StringConverter.xmlDateToDateTime(serial_Excel_swapInfo.TradeDate_.ValueStr);

            this.effectiveDate_ = StringConverter.xmlDateToDateTime(serial_Excel_swapInfo.EffectiveDate_.ValueStr);

            this.maturityDate_ = StringConverter.xmlDateToDateTime(serial_Excel_swapInfo.MaturityDate_.ValueStr);

            this.notional_ = serial_Excel_swapInfo.Notional_.ValueStr;

            this.currency_ = serial_Excel_swapInfo.Currency_.ValueStr;

            this.premium_ = serial_Excel_swapInfo.Premium_.ValueStr;
        }