public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_multiAsset_compositeOption_subtype serial_Excel_multiAsset_compositeOption_subtype = serial_Class as FpmlSerializedCSharp.Excel_multiAsset_compositeOption_subtype; FpmlSerializedCSharp.Excel_multiAsset_vanillaCallPut serial_Excel_multiAsset_vanillaCallPut = serial_Excel_multiAsset_compositeOption_subtype.Excel_multiAsset_vanillaCallPut_; this.payoffDate_ = StringConverter.xmlDateToDateTime(serial_Excel_multiAsset_vanillaCallPut.PayoffDate_.ValueStr); this.exerciseDate_ = StringConverter.xmlDateToDateTime(serial_Excel_multiAsset_vanillaCallPut.ExerciseDate_.ValueStr); this.baseUnderlyingValue_ = serial_Excel_multiAsset_vanillaCallPut.BaseUnderlyingValue_.ValueStr; this.callPut_ = serial_Excel_multiAsset_vanillaCallPut.CallPut_.ValueStr; this.baseCoupon_ = serial_Excel_multiAsset_vanillaCallPut.BaseCoupon_.ValueStr; this.strike_ = serial_Excel_multiAsset_vanillaCallPut.Strike_.ValueStr; this.strikeValue_ = serial_Excel_multiAsset_vanillaCallPut.StrikeValue_.ValueStr; this.partiRate_ = serial_Excel_multiAsset_vanillaCallPut.PartiRate_.ValueStr; FpmlSerializedCSharp.Excel_underlyingCalcID serial_excel_underlyingCalcID = serial_Excel_multiAsset_vanillaCallPut.Excel_underlyingCalcID_; string excel_underlyingCalcIDtype = serial_excel_underlyingCalcID.Excel_type_.ValueStr; this.excel_underlyingCalcIDViewModel_ = Excel_underlyingCalcIDViewModel.CreateExcel_underlyingCalcID(excel_underlyingCalcIDtype); this.excel_underlyingCalcIDViewModel_.setFromSerial(serial_excel_underlyingCalcID); }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_couponSchedule serial_Excel_couponSchedule = serial_Class as FpmlSerializedCSharp.Excel_couponSchedule; FpmlSerializedCSharp.Excel_vanillaFloatingCouponSchedule serial_Excel_vanillaFloatingCouponSchedule = serial_Excel_couponSchedule.Excel_vanillaFloatingCouponSchedule_; base.setFromSerial(serial_Excel_couponSchedule.Excel_additionalOption_); this.eventDate_ = StringConverter.xmlDateToDateTime(serial_Excel_vanillaFloatingCouponSchedule.EventDate_.ValueStr); this.payoffDate_ = StringConverter.xmlDateToDateTime(serial_Excel_vanillaFloatingCouponSchedule.PayoffDate_.ValueStr); this.calculationStartDate_ = StringConverter.xmlDateToDateTime(serial_Excel_vanillaFloatingCouponSchedule.CalculationStartDate_.ValueStr); this.calculationEndDate_ = StringConverter.xmlDateToDateTime(serial_Excel_vanillaFloatingCouponSchedule.CalculationEndDate_.ValueStr); this.description_ = serial_Excel_vanillaFloatingCouponSchedule.Description_.ValueStr; this.vba_description_ = serial_Excel_vanillaFloatingCouponSchedule.Vba_description_.ValueStr; this.gearing_ = serial_Excel_vanillaFloatingCouponSchedule.Gearing_.ValueStr; this.spread_ = serial_Excel_vanillaFloatingCouponSchedule.Spread_.ValueStr; this.outGearing_ = serial_Excel_vanillaFloatingCouponSchedule.OutGearing_.ValueStr; this.outSpread_ = serial_Excel_vanillaFloatingCouponSchedule.OutSpread_.ValueStr; this.cap_ = serial_Excel_vanillaFloatingCouponSchedule.Cap_.ValueStr; this.floor_ = serial_Excel_vanillaFloatingCouponSchedule.Floor_.ValueStr; FpmlSerializedCSharp.Excel_underlyingCalcID serial_excel_underlyingCalcID = serial_Excel_vanillaFloatingCouponSchedule.Excel_underlyingCalcID_; string excel_underlyingCalcIDtype = serial_excel_underlyingCalcID.Excel_type_.ValueStr; this.excel_underlyingCalcIDViewModel_ = Excel_underlyingCalcIDViewModel.CreateExcel_underlyingCalcID(excel_underlyingCalcIDtype); this.excel_underlyingCalcIDViewModel_.setFromSerial(serial_excel_underlyingCalcID); }
public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.BarrierUnderlyingCalcID serial_BarrierUnderlyingCalcID = serial_Class as FpmlSerializedCSharp.BarrierUnderlyingCalcID; FpmlSerializedCSharp.Excel_underlyingCalcID serial_excel_underlyingCalcID = serial_BarrierUnderlyingCalcID.Excel_underlyingCalcID_; string excel_underlyingCalcIDtype = serial_excel_underlyingCalcID.Type_.ValueStr; this.excel_underlyingCalcIDViewModel_ = Excel_underlyingCalcIDViewModel.CreateExcel_underlyingCalcID(excel_underlyingCalcIDtype); this.excel_underlyingCalcIDViewModel_.setFromSerial(serial_excel_underlyingCalcID); this.view_ = new BarrierUnderlyingCalcIDView(); this.view_.DataContext = this; }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_eventCalcInfo serial_Excel_eventCalcInfo = serial_Class as FpmlSerializedCSharp.Excel_eventCalcInfo; FpmlSerializedCSharp.Excel_dualRangeEventCal serial_Excel_dualRangeEventCal = serial_Excel_eventCalcInfo.Excel_dualRangeEventCal_; this.lowerRng_ = serial_Excel_dualRangeEventCal.LowerRng_.ValueStr; this.upperRng_ = serial_Excel_dualRangeEventCal.UpperRng_.ValueStr; FpmlSerializedCSharp.Excel_underlyingCalcID serial_excel_underlyingCalcID = serial_Excel_dualRangeEventCal.Excel_underlyingCalcID_; string excel_underlyingCalcIDtype = serial_excel_underlyingCalcID.Excel_type_.ValueStr; this.excel_underlyingCalcIDViewModel_ = Excel_underlyingCalcIDViewModel.CreateExcel_underlyingCalcID(excel_underlyingCalcIDtype); this.excel_underlyingCalcIDViewModel_.setFromSerial(serial_excel_underlyingCalcID); }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_returnCalcInfo serial_Excel_returnCalcInfo = serial_Class as FpmlSerializedCSharp.Excel_returnCalcInfo; FpmlSerializedCSharp.Excel_vanillaReturnCal serial_Excel_vanillaReturnCal = serial_Excel_returnCalcInfo.Excel_vanillaReturnCal_; this.gearing_ = serial_Excel_vanillaReturnCal.Gearing_.ValueStr; this.spread_ = serial_Excel_vanillaReturnCal.Spread_.ValueStr; FpmlSerializedCSharp.Excel_underlyingCalcID serial_excel_underlyingCalcID = serial_Excel_vanillaReturnCal.Excel_underlyingCalcID_; string excel_underlyingCalcIDtype = serial_excel_underlyingCalcID.Excel_type_.ValueStr; this.excel_underlyingCalcIDViewModel_ = Excel_underlyingCalcIDViewModel.CreateExcel_underlyingCalcID(excel_underlyingCalcIDtype); this.excel_underlyingCalcIDViewModel_.setFromSerial(serial_excel_underlyingCalcID); }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_couponSchedule serial_Excel_couponSchedule = serial_Class as FpmlSerializedCSharp.Excel_couponSchedule; FpmlSerializedCSharp.Excel_vanillaFloatingCouponSchedule serial_Excel_vanillaFloatingCouponSchedule = serial_Excel_couponSchedule.Excel_vanillaFloatingCouponSchedule_; this.gearing_ = serial_Excel_vanillaFloatingCouponSchedule.Gearing_.ValueStr; this.spread_ = serial_Excel_vanillaFloatingCouponSchedule.Spread_.ValueStr; FpmlSerializedCSharp.Excel_underlyingCalcID serial_excel_underlyingCalcID = serial_Excel_vanillaFloatingCouponSchedule.Excel_underlyingCalcID_; string excel_underlyingCalcIDtype = serial_excel_underlyingCalcID.Excel_type_.ValueStr; this.excel_underlyingCalcIDViewModel_ = Excel_underlyingCalcIDViewModel.CreateExcel_underlyingCalcID(excel_underlyingCalcIDtype); this.excel_underlyingCalcIDViewModel_.setFromSerial(serial_excel_underlyingCalcID); }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_underlyingCalcID serial_Excel_underlyingCalcID = serial_Class as FpmlSerializedCSharp.Excel_underlyingCalcID; FpmlSerializedCSharp.Excel_choiceUnderlyingCalcID serial_Excel_choiceUnderlyingCalcID = serial_Excel_underlyingCalcID.Excel_choiceUnderlyingCalcID_; List <FpmlSerializedCSharp.Excel_selectedUnderlying> serial_excel_selectedUnderlying = serial_Excel_choiceUnderlyingCalcID.Excel_selectedUnderlying_; this.excel_selectedUnderlyingViewModel_ = new ObservableCollection <Excel_selectedUnderlyingViewModel>(); foreach (var item in serial_excel_selectedUnderlying) { Excel_selectedUnderlyingViewModel viewModel = new Excel_selectedUnderlyingViewModel(); viewModel.setFromSerial(item); this.excel_selectedUnderlyingViewModel_.Add(viewModel); } this.eventDate_ = serial_Excel_choiceUnderlyingCalcID.EventDate_.DateTimeValue(); this.averageDays_ = serial_Excel_choiceUnderlyingCalcID.AverageDays_.ValueStr; }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_eventCalcInfo serial_Excel_eventCalcInfo = serial_Class as FpmlSerializedCSharp.Excel_eventCalcInfo; FpmlSerializedCSharp.Excel_singleBarrierEventCal serial_Excel_singleBarrierEventCal = serial_Excel_eventCalcInfo.Excel_singleBarrierEventCal_; this.lowerTrigger_ = serial_Excel_singleBarrierEventCal.LowerTrigger_.ValueStr; this.upperTrigger_ = serial_Excel_singleBarrierEventCal.UpperTrigger_.ValueStr; FpmlSerializedCSharp.Excel_underlyingCalcID serial_excel_underlyingCalcID = serial_Excel_singleBarrierEventCal.Excel_underlyingCalcID_; string excel_underlyingCalcIDtype = serial_excel_underlyingCalcID.Excel_type_.ValueStr; this.excel_underlyingCalcIDViewModel_ = Excel_underlyingCalcIDViewModel.CreateExcel_underlyingCalcID(excel_underlyingCalcIDtype); this.excel_underlyingCalcIDViewModel_.setFromSerial(serial_excel_underlyingCalcID); this.observationStartDate_ = StringConverter.xmlDateToDateTime(serial_Excel_singleBarrierEventCal.ObservationStartDate_.ValueStr); this.observationEndDate_ = StringConverter.xmlDateToDateTime(serial_Excel_singleBarrierEventCal.ObservationEndDate_.ValueStr); }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_underlyingCalcID serial_Excel_underlyingCalcID = serial_Class as FpmlSerializedCSharp.Excel_underlyingCalcID; FpmlSerializedCSharp.Excel_minimumUnderlyingCalcID serial_Excel_minimumUnderlyingCalcID = serial_Excel_underlyingCalcID.Excel_minimumUnderlyingCalcID_; List <FpmlSerializedCSharp.Excel_selectedUnderlying> serial_excel_selectedUnderlying = serial_Excel_minimumUnderlyingCalcID.Excel_selectedUnderlying_; this.excel_selectedUnderlyingViewModel_ = new ObservableCollection <Excel_selectedUnderlyingViewModel>(); foreach (var item in serial_excel_selectedUnderlying) { string type = item.Excel_type_.ValueStr; Excel_selectedUnderlyingViewModel viewModel = Excel_selectedUnderlyingViewModel.CreateExcel_selectedUnderlying(type); viewModel.setFromSerial(item); this.excel_selectedUnderlyingViewModel_.Add(viewModel); } this.eventDate_ = StringConverter.xmlDateToDateTime(serial_Excel_minimumUnderlyingCalcID.EventDate_.ValueStr); this.averageDays_ = serial_Excel_minimumUnderlyingCalcID.AverageDays_.ValueStr; }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_multiAsset_compositeOption_subtype serial_Excel_multiAsset_compositeOption_subtype = serial_Class as FpmlSerializedCSharp.Excel_multiAsset_compositeOption_subtype; FpmlSerializedCSharp.Excel_multiAsset_vanillaCallPut serial_Excel_multiAsset_vanillaCallPut = serial_Excel_multiAsset_compositeOption_subtype.Excel_multiAsset_vanillaCallPut_; this.exerciseDate_ = StringConverter.xmlDateToDateTime(serial_Excel_multiAsset_vanillaCallPut.ExerciseDate_.ValueStr); this.payoffDate_ = StringConverter.xmlDateToDateTime(serial_Excel_multiAsset_vanillaCallPut.PayoffDate_.ValueStr); //this.baseUnderlyingValue_ = serial_Excel_multiAsset_vanillaCallPut.BaseUnderlyingValue_.DoubleValue(); this.callPut_ = Enum.Parse(typeof(CallPutEnum), serial_Excel_multiAsset_vanillaCallPut.CallPut_.ValueStr) as CallPutEnum?; this.baseCoupon_ = (serial_Excel_multiAsset_vanillaCallPut.BaseCoupon_.DoubleValue() * 100.0).ToString(); this.strike_ = (serial_Excel_multiAsset_vanillaCallPut.Strike_.DoubleValue() * 100.0).ToString(); //this.strikeValue_ = serial_Excel_multiAsset_vanillaCallPut.StrikeValue_.DoubleValue(); this.partiRate_ = (serial_Excel_multiAsset_vanillaCallPut.PartiRate_.DoubleValue() * 100.0).ToString(); //this.underlyingCalcType_ = serial_Excel_multiAsset_vanillaCallPut.UnderlyingCalcType_.ValueStr; FpmlSerializedCSharp.Excel_underlyingCalcID serial_returnUnderlyingCalcID = serial_Excel_multiAsset_vanillaCallPut.Excel_underlyingCalcID_; string returnUnderlyingCalcIDtype = serial_returnUnderlyingCalcID.Excel_type_.ValueStr; this.excel_underlyingCalcIDViewModel_ = Excel_underlyingCalcIDViewModel.CreateExcel_underlyingCalcID(returnUnderlyingCalcIDtype); this.excel_underlyingCalcIDViewModel_.setFromSerial(serial_returnUnderlyingCalcID); }
public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_underlyingCalcID serial_Excel_underlyingCalcID = serial_Class as FpmlSerializedCSharp.Excel_underlyingCalcID; this.calcID_ = serial_Excel_underlyingCalcID.CalcID_.ValueStr; this.calcType_ = serial_Excel_underlyingCalcID.CalcType_.ValueStr; this.referenceType_ = serial_Excel_underlyingCalcID.ReferenceType_.ValueStr; this.selectedUnderlyingNameViewModel_ = new ObservableCollection <SelectedUnderlyingNameViewModel>(); foreach (var item in serial_Excel_underlyingCalcID.SelectedUnderlyingName_) { this.value_.Add(item.ValueStr); } this.nth_ = serial_Excel_underlyingCalcID.Nth_.ValueStr; this.averageDays_ = serial_Excel_underlyingCalcID.AverageDays_.ValueStr; this.view_ = new Excel_underlyingCalcIDView(); this.view_.DataContext = this; }