public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_compositeOption_subtype serial_Excel_compositeOption_subtype = serial_Class as FpmlSerializedCSharp.Excel_compositeOption_subtype; FpmlSerializedCSharp.Excel_upInOutCall serial_Excel_upInOutCall = serial_Excel_compositeOption_subtype.Excel_upInOutCall_; this.payoffDate_ = StringConverter.xmlDateToDateTime(serial_Excel_upInOutCall.PayoffDate_.ValueStr); this.exerciseDate_ = StringConverter.xmlDateToDateTime(serial_Excel_upInOutCall.ExerciseDate_.ValueStr); this.inOut_ = serial_Excel_upInOutCall.InOut_.ValueStr; this.underlyingCode_ = serial_Excel_upInOutCall.UnderlyingCode_.ValueStr; this.baseUnderlyingValue_ = serial_Excel_upInOutCall.BaseUnderlyingValue_.ValueStr; this.baseCoupon_ = serial_Excel_upInOutCall.BaseCoupon_.ValueStr; this.strike_ = serial_Excel_upInOutCall.Strike_.ValueStr; this.strikeValue_ = serial_Excel_upInOutCall.StrikeValue_.ValueStr; this.partiRate_ = serial_Excel_upInOutCall.PartiRate_.ValueStr; this.barrier_ = serial_Excel_upInOutCall.Barrier_.ValueStr; this.barrierValue_ = serial_Excel_upInOutCall.BarrierValue_.ValueStr; this.rebateCoupon_ = serial_Excel_upInOutCall.RebateCoupon_.ValueStr; this.rebateCouponValue_ = serial_Excel_upInOutCall.RebateCouponValue_.ValueStr; this.observationStartDate_ = StringConverter.xmlDateToDateTime(serial_Excel_upInOutCall.ObservationStartDate_.ValueStr); this.observationEndDate_ = StringConverter.xmlDateToDateTime(serial_Excel_upInOutCall.ObservationEndDate_.ValueStr); }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_compositeOption_subtype serial_Excel_compositeOption_subtype = serial_Class as FpmlSerializedCSharp.Excel_compositeOption_subtype; FpmlSerializedCSharp.Excel_digitalCallPut serial_Excel_digitalCallPut = serial_Excel_compositeOption_subtype.Excel_digitalCallPut_; this.payoffDate_ = StringConverter.xmlDateToDateTime(serial_Excel_digitalCallPut.PayoffDate_.ValueStr); this.exerciseDate_ = StringConverter.xmlDateToDateTime(serial_Excel_digitalCallPut.ExerciseDate_.ValueStr); this.callPut_ = serial_Excel_digitalCallPut.CallPut_.ValueStr; this.underlyingCode_ = serial_Excel_digitalCallPut.UnderlyingCode_.ValueStr; this.baseUnderlyingValue_ = serial_Excel_digitalCallPut.BaseUnderlyingValue_.ValueStr; this.baseCoupon_ = serial_Excel_digitalCallPut.BaseCoupon_.ValueStr; this.strike_ = serial_Excel_digitalCallPut.Strike_.ValueStr; this.strikeValue_ = serial_Excel_digitalCallPut.StrikeValue_.ValueStr; this.coupon_ = serial_Excel_digitalCallPut.Coupon_.ValueStr; this.couponValue_ = serial_Excel_digitalCallPut.CouponValue_.ValueStr; }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_compositeOption_subtype serial_Excel_compositeOption_subtype = serial_Class as FpmlSerializedCSharp.Excel_compositeOption_subtype; FpmlSerializedCSharp.Excel_vanillaCallPut serial_Excel_vanillaCallPut = serial_Excel_compositeOption_subtype.Excel_vanillaCallPut_; this.exerciseDate_ = StringConverter.xmlDateToDateTime(serial_Excel_vanillaCallPut.ExerciseDate_.ValueStr); this.payoffDate_ = StringConverter.xmlDateToDateTime(serial_Excel_vanillaCallPut.PayoffDate_.ValueStr); this.baseUnderlyingValue_ = serial_Excel_vanillaCallPut.BaseUnderlyingValue_.DoubleValue(); this.underlyingCode_ = serial_Excel_vanillaCallPut.UnderlyingCode_.ValueStr; //Enum.Parse(typeof(CallPutEnum), this.callPut_); this.callPut_ = Enum.Parse(typeof(CallPutEnum), serial_Excel_vanillaCallPut.CallPut_.ValueStr) as CallPutEnum?; this.baseCoupon_ = (serial_Excel_vanillaCallPut.BaseCoupon_.DoubleValue() * 100.0).ToString(); this.strike_ = (serial_Excel_vanillaCallPut.Strike_.DoubleValue() * 100.0).ToString(); this.strikeValue_ = serial_Excel_vanillaCallPut.StrikeValue_.DoubleValue(); this.partiRate_ = (serial_Excel_vanillaCallPut.PartiRate_.DoubleValue() * 100.0).ToString(); this.descriptionUpdate(); }