public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_hifive_subtype serial_Excel_hifive_subtype = serial_Class as FpmlSerializedCSharp.Excel_hifive_subtype; FpmlSerializedCSharp.Excel_hifive_stepDown_ki serial_Excel_hifive_stepDown_ki = serial_Excel_hifive_subtype.Excel_hifive_stepDown_ki_; this.maturityYear_ = serial_Excel_hifive_stepDown_ki.MaturityYear_.ValueStr; this.autoCallTriggerViewModel_ = new ObservableCollection<AutoCallTriggerViewModel>(); foreach (var item in serial_Excel_hifive_stepDown_ki.AutoCallTrigger_) { this.value_.Add(item.ValueStr); } this.tenor_ = serial_Excel_hifive_stepDown_ki.Tenor_.ValueStr; this.ki_ = serial_Excel_hifive_stepDown_ki.Ki_.ValueStr; //this.view_ = new Excel_hifive_stepDown_kiView(); //this.view_.DataContext = this; }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_hifive_subtype serial_Excel_hifive_subtype = serial_Class as FpmlSerializedCSharp.Excel_hifive_subtype; FpmlSerializedCSharp.Excel_hifive_stepDown_ki serial_Excel_hifive_stepDown_ki = serial_Excel_hifive_subtype.Excel_hifive_stepDown_ki_; this.underlyingCalcType_ = serial_Excel_hifive_stepDown_ki.UnderlyingCalcType_.ValueStr; this.maturity_ = serial_Excel_hifive_stepDown_ki.Maturity_.ValueStr; this.maturityPeriod_ = serial_Excel_hifive_stepDown_ki.MaturityPeriod_.ValueStr; this.couponTenor_ = serial_Excel_hifive_stepDown_ki.CouponTenor_.ValueStr; this.couponTenorPeriod_ = serial_Excel_hifive_stepDown_ki.CouponTenorPeriod_.ValueStr; List <FpmlSerializedCSharp.Excel_stepDownKI_subSchedule> serial_excel_stepDownKI_subSchedule = serial_Excel_hifive_stepDown_ki.Excel_stepDownKI_subSchedule_; this.subScheduleDataList_ = new ObservableCollection <Excel_stepDownKI_subScheduleViewModel>(); foreach (var item in serial_excel_stepDownKI_subSchedule) { //string type = item.Type_.ValueStr; Excel_stepDownKI_subScheduleViewModel viewModel = new Excel_stepDownKI_subScheduleViewModel(); viewModel.setFromSerial(item); this.subScheduleDataList_.Add(viewModel); } this.coupon_ = serial_Excel_hifive_stepDown_ki.Coupon_.ValueStr; this.ki_ = serial_Excel_hifive_stepDown_ki.Ki_.ValueStr; this.kiObStartDate_ = StringConverter.xmlDateToDateTime(serial_Excel_hifive_stepDown_ki.KiObStartDate_.ValueStr); this.kiObEndDate_ = StringConverter.xmlDateToDateTime(serial_Excel_hifive_stepDown_ki.KiObEndDate_.ValueStr); this.settlementDays_ = serial_Excel_hifive_stepDown_ki.SettlementDays_.IntValue(); //this.view_ = new Excel_hifive_StepDownKI_View(); //this.view_.DataContext = this; }