public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_couponSchedule serial_Excel_couponSchedule = serial_Class as FpmlSerializedCSharp.Excel_couponSchedule; FpmlSerializedCSharp.Excel_condi_structuredAccrualCouponSchedule serial_Excel_condi_structuredAccrualCouponSchedule = serial_Excel_couponSchedule.Excel_condi_structuredAccrualCouponSchedule_; this.eventDate_ = StringConverter.xmlDateToDateTime(serial_Excel_condi_structuredAccrualCouponSchedule.EventDate_.ValueStr); this.payoffDate_ = StringConverter.xmlDateToDateTime(serial_Excel_condi_structuredAccrualCouponSchedule.PayoffDate_.ValueStr); this.calculationStartDate_ = StringConverter.xmlDateToDateTime(serial_Excel_condi_structuredAccrualCouponSchedule.CalculationStartDate_.ValueStr); this.calculationEndDate_ = StringConverter.xmlDateToDateTime(serial_Excel_condi_structuredAccrualCouponSchedule.CalculationEndDate_.ValueStr); this.description_ = serial_Excel_condi_structuredAccrualCouponSchedule.Description_.ValueStr; this.vba_description_ = serial_Excel_condi_structuredAccrualCouponSchedule.Vba_description_.ValueStr; FpmlSerializedCSharp.Range1D serial_range1D = serial_Excel_condi_structuredAccrualCouponSchedule.Range1D_; string range1Dtype = serial_range1D.Excel_type_.ValueStr; this.range1DViewModel_ = Range1DViewModel.CreateRange1D(range1Dtype); this.range1DViewModel_.setFromSerial(serial_range1D); FpmlSerializedCSharp.Excel_returnCalcInfo serial_excel_returnCalcInfo = serial_Excel_condi_structuredAccrualCouponSchedule.Excel_returnCalcInfo_; string excel_returnCalcInfotype = serial_excel_returnCalcInfo.Excel_type_.ValueStr; this.excel_returnCalcInfoViewModel_ = Excel_returnCalcInfoViewModel.CreateExcel_returnCalcInfo(excel_returnCalcInfotype); this.excel_returnCalcInfoViewModel_.setFromSerial(serial_excel_returnCalcInfo); this.dayCounter_ = serial_Excel_condi_structuredAccrualCouponSchedule.DayCounter_.ValueStr; this.detailScheduleType_ = serial_Excel_condi_structuredAccrualCouponSchedule.DetailScheduleType_.ValueStr; }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_returnCalcInfo serial_Excel_returnCalcInfo = serial_Class as FpmlSerializedCSharp.Excel_returnCalcInfo; FpmlSerializedCSharp.Excel_constReturnCal serial_Excel_constReturnCal = serial_Excel_returnCalcInfo.Excel_constReturnCal_; this.constReturn_ = serial_Excel_constReturnCal.ConstReturn_.ValueStr; }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_couponSchedule serial_Excel_couponSchedule = serial_Class as FpmlSerializedCSharp.Excel_couponSchedule; FpmlSerializedCSharp.Excel_floatingCouponSchedule serial_Excel_floatingCouponSchedule = serial_Excel_couponSchedule.Excel_floatingCouponSchedule_; this.eventDate_ = StringConverter.xmlDateToDateTime(serial_Excel_floatingCouponSchedule.EventDate_.ValueStr); this.payoffDate_ = StringConverter.xmlDateToDateTime(serial_Excel_floatingCouponSchedule.PayoffDate_.ValueStr); this.calculationStartDate_ = StringConverter.xmlDateToDateTime(serial_Excel_floatingCouponSchedule.CalculationStartDate_.ValueStr); this.calculationEndDate_ = StringConverter.xmlDateToDateTime(serial_Excel_floatingCouponSchedule.CalculationEndDate_.ValueStr); this.description_ = serial_Excel_floatingCouponSchedule.Description_.ValueStr; this.vba_description_ = serial_Excel_floatingCouponSchedule.Vba_description_.ValueStr; this.gearing_ = serial_Excel_floatingCouponSchedule.Gearing_.ValueStr; this.spread_ = serial_Excel_floatingCouponSchedule.Spread_.ValueStr; FpmlSerializedCSharp.Excel_returnCalcInfo serial_excel_returnCalcInfo = serial_Excel_floatingCouponSchedule.Excel_returnCalcInfo_; string excel_returnCalcInfotype = serial_excel_returnCalcInfo.Excel_type_.ValueStr; this.excel_returnCalcInfoViewModel_ = Excel_returnCalcInfoViewModel.CreateExcel_returnCalcInfo(excel_returnCalcInfotype); this.excel_returnCalcInfoViewModel_.setFromSerial(serial_excel_returnCalcInfo); }
public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_complementReturnCalc serial_Excel_complementReturnCalc = serial_Class as FpmlSerializedCSharp.Excel_complementReturnCalc; FpmlSerializedCSharp.Excel_returnCalcInfo serial_excel_returnCalcInfo = serial_Excel_complementReturnCalc.Excel_returnCalcInfo_; string excel_returnCalcInfotype = serial_excel_returnCalcInfo.Excel_type_.ValueStr; this.excel_returnCalcInfoViewModel_ = Excel_returnCalcInfoViewModel.CreateExcel_returnCalcInfo(excel_returnCalcInfotype); this.excel_returnCalcInfoViewModel_.setFromSerial(serial_excel_returnCalcInfo); }
public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_returnCalcInfo_CallableOption serial_Excel_returnCalcInfo_CallableOption = serial_Class as FpmlSerializedCSharp.Excel_returnCalcInfo_CallableOption; FpmlSerializedCSharp.Excel_returnCalcInfo serial_excel_returnCalcInfo = serial_Excel_returnCalcInfo_CallableOption.Excel_returnCalcInfo_; string excel_returnCalcInfotype = serial_excel_returnCalcInfo.Excel_type_.ValueStr; this.excel_returnCalcInfoViewModel_ = Excel_returnCalcInfoViewModel.CreateExcel_returnCalcInfo(excel_returnCalcInfotype); this.excel_returnCalcInfoViewModel_.setFromSerial(serial_excel_returnCalcInfo); }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_schedule serial_Excel_schedule = serial_Class as FpmlSerializedCSharp.Excel_schedule; FpmlSerializedCSharp.Excel_simpleCalculation serial_Excel_simpleCalculation = serial_Excel_schedule.Excel_simpleCalculation_; this.eventDate_ = StringConverter.xmlDateToDateTime(serial_Excel_simpleCalculation.EventDate_.ValueStr); this.payoffDate_ = StringConverter.xmlDateToDateTime(serial_Excel_simpleCalculation.PayoffDate_.ValueStr); this.description_ = serial_Excel_simpleCalculation.Description_.ValueStr; this.vba_description_ = serial_Excel_simpleCalculation.Vba_description_.ValueStr; FpmlSerializedCSharp.Excel_eventCalcInfo serial_excel_eventCalcInfo = serial_Excel_simpleCalculation.Excel_eventCalcInfo_; string excel_eventCalcInfotype = serial_excel_eventCalcInfo.Excel_type_.ValueStr; this.excel_eventCalcInfoViewModel_ = Excel_eventCalcInfoViewModel.CreateExcel_eventCalcInfo(excel_eventCalcInfotype); this.excel_eventCalcInfoViewModel_.setFromSerial(serial_excel_eventCalcInfo); FpmlSerializedCSharp.Excel_returnCalcInfo serial_excel_returnCalcInfo = serial_Excel_simpleCalculation.Excel_returnCalcInfo_; string excel_returnCalcInfotype = serial_excel_returnCalcInfo.Excel_type_.ValueStr; this.excel_returnCalcInfoViewModel_ = Excel_returnCalcInfoViewModel.CreateExcel_returnCalcInfo(excel_returnCalcInfotype); this.excel_returnCalcInfoViewModel_.setFromSerial(serial_excel_returnCalcInfo); FpmlSerializedCSharp.Excel_complementReturnCalc serial_excel_complementReturnCalc = serial_Excel_simpleCalculation.Excel_complementReturnCalc_; string excel_complementReturnCalctype = serial_excel_complementReturnCalc.Excel_type_.ValueStr; this.excel_complementReturnCalcViewModel_ = Excel_complementReturnCalcViewModel.CreateExcel_complementReturnCalc(excel_complementReturnCalctype); this.excel_complementReturnCalcViewModel_.setFromSerial(serial_excel_complementReturnCalc); FpmlSerializedCSharp.Excel_eventCalcInfo_Call serial_excel_eventCalcInfo_Call = serial_Excel_simpleCalculation.Excel_eventCalcInfo_Call_; string excel_eventCalcInfo_Calltype = serial_excel_eventCalcInfo_Call.Excel_type_.ValueStr; this.excel_eventCalcInfo_CallViewModel_ = Excel_eventCalcInfo_CallViewModel.CreateExcel_eventCalcInfo_Call(excel_eventCalcInfo_Calltype); this.excel_eventCalcInfo_CallViewModel_.setFromSerial(serial_excel_eventCalcInfo_Call); FpmlSerializedCSharp.Excel_returnCalcInfo_Call serial_excel_returnCalcInfo_Call = serial_Excel_simpleCalculation.Excel_returnCalcInfo_Call_; string excel_returnCalcInfo_Calltype = serial_excel_returnCalcInfo_Call.Excel_type_.ValueStr; this.excel_returnCalcInfo_CallViewModel_ = Excel_returnCalcInfo_CallViewModel.CreateExcel_returnCalcInfo_Call(excel_returnCalcInfo_Calltype); this.excel_returnCalcInfo_CallViewModel_.setFromSerial(serial_excel_returnCalcInfo_Call); FpmlSerializedCSharp.Excel_complementReturnCalc_Call serial_excel_complementReturnCalc_Call = serial_Excel_simpleCalculation.Excel_complementReturnCalc_Call_; string excel_complementReturnCalc_Calltype = serial_excel_complementReturnCalc_Call.Excel_type_.ValueStr; this.excel_complementReturnCalc_CallViewModel_ = Excel_complementReturnCalc_CallViewModel.CreateExcel_complementReturnCalc_Call(excel_complementReturnCalc_Calltype); this.excel_complementReturnCalc_CallViewModel_.setFromSerial(serial_excel_complementReturnCalc_Call); FpmlSerializedCSharp.Excel_returnCalcInfo_CallableOption serial_excel_returnCalcInfo_CallableOption = serial_Excel_simpleCalculation.Excel_returnCalcInfo_CallableOption_; string excel_returnCalcInfo_CallableOptiontype = serial_excel_returnCalcInfo_CallableOption.Excel_type_.ValueStr; this.excel_returnCalcInfo_CallableOptionViewModel_ = Excel_returnCalcInfo_CallableOptionViewModel.CreateExcel_returnCalcInfo_CallableOption(excel_returnCalcInfo_CallableOptiontype); this.excel_returnCalcInfo_CallableOptionViewModel_.setFromSerial(serial_excel_returnCalcInfo_CallableOption); }
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_floatingCouponSchedule serial_Excel_floatingCouponSchedule = serial_Excel_couponSchedule.Excel_floatingCouponSchedule_; this.gearing_ = serial_Excel_floatingCouponSchedule.Gearing_.ValueStr; this.spread_ = serial_Excel_floatingCouponSchedule.Spread_.ValueStr; FpmlSerializedCSharp.Excel_returnCalcInfo serial_excel_returnCalcInfo = serial_Excel_floatingCouponSchedule.Excel_returnCalcInfo_; string excel_returnCalcInfotype = serial_excel_returnCalcInfo.Excel_type_.ValueStr; this.excel_returnCalcInfoViewModel_ = Excel_returnCalcInfoViewModel.CreateExcel_returnCalcInfo(excel_returnCalcInfotype); this.excel_returnCalcInfoViewModel_.setFromSerial(serial_excel_returnCalcInfo); }
public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_returnCalcInfo serial_Excel_returnCalcInfo = serial_Class as FpmlSerializedCSharp.Excel_returnCalcInfo; List <FpmlSerializedCSharp.Excel_returnCalc> serial_excel_returnCalc = serial_Excel_returnCalcInfo.Excel_returnCalc_; this.excel_returnCalcViewModel_ = new ObservableCollection <Excel_returnCalcViewModel>(); foreach (var item in serial_excel_returnCalc) { string type = item.Type_.ValueStr; Excel_returnCalcViewModel viewModel = Excel_returnCalcViewModel.CreateExcel_returnCalc(type); viewModel.setFromSerial(item); this.excel_returnCalcViewModel_.Add(viewModel); } this.view_ = new Excel_returnCalcInfoView(); this.view_.DataContext = this; }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_schedule serial_Excel_schedule = serial_Class as FpmlSerializedCSharp.Excel_schedule; FpmlSerializedCSharp.Excel_simpleCalculation serial_Excel_simpleCalculation = serial_Excel_schedule.Excel_simpleCalculation_; base.setFromSerial(serial_Excel_schedule.Excel_additionalOption_); // base 로 올림 this.eventDate_ = serial_Excel_simpleCalculation.EventDate_.DateTimeValue(); this.payoffDate_ = serial_Excel_simpleCalculation.PayoffDate_.DateTimeValue(); this.description_ = serial_Excel_simpleCalculation.Description_.ValueStr; this.vba_description_ = serial_Excel_simpleCalculation.Vba_description_.ValueStr; FpmlSerializedCSharp.Excel_eventCalcInfo serial_excel_eventCalcInfo = serial_Excel_simpleCalculation.Excel_eventCalcInfo_; string excel_eventCalcInfotype = serial_excel_eventCalcInfo.Excel_type_.ValueStr; this.excel_eventCalcInfoViewModel_ = Excel_eventCalcInfoViewModel.CreateExcel_eventCalcInfo(excel_eventCalcInfotype); this.excel_eventCalcInfoViewModel_.setFromSerial(serial_excel_eventCalcInfo); FpmlSerializedCSharp.Excel_returnCalcInfo serial_excel_returnCalcInfo = serial_Excel_simpleCalculation.Excel_returnCalcInfo_; string excel_returnCalcInfotype = serial_excel_returnCalcInfo.Excel_type_.ValueStr; this.excel_returnCalcInfoViewModel_ = Excel_returnCalcInfoViewModel.CreateExcel_returnCalcInfo(excel_returnCalcInfotype); this.excel_returnCalcInfoViewModel_.setFromSerial(serial_excel_returnCalcInfo); FpmlSerializedCSharp.Excel_complementReturnCalc serial_excel_complementReturnCalc = serial_Excel_simpleCalculation.Excel_complementReturnCalc_; this.excel_complementReturnCalcViewModel_ = new Excel_complementReturnCalcViewModel(); this.excel_complementReturnCalcViewModel_.setFromSerial(serial_excel_complementReturnCalc); FpmlSerializedCSharp.Excel_eventCalcInfo_Call serial_excel_eventCalcInfo_Call = serial_Excel_simpleCalculation.Excel_eventCalcInfo_Call_; this.excel_eventCalcInfo_CallViewModel_ = new Excel_eventCalcInfo_CallViewModel(); this.excel_eventCalcInfo_CallViewModel_.setFromSerial(serial_excel_eventCalcInfo_Call); FpmlSerializedCSharp.Excel_returnCalcInfo_Call serial_excel_returnCalcInfo_Call = serial_Excel_simpleCalculation.Excel_returnCalcInfo_Call_; string excel_returnCalcInfo_Calltype = serial_excel_returnCalcInfo_Call.Excel_returnCalcInfo_.Excel_type_.ValueStr; this.excel_returnCalcInfo_CallViewModel_ = new Excel_returnCalcInfo_CallViewModel(); this.excel_returnCalcInfo_CallViewModel_.setFromSerial(serial_excel_returnCalcInfo_Call); //this.view_ = new Excel_simpleCalculationView(); //this.view_.DataContext = this; }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_schedule serial_Excel_schedule = serial_Class as FpmlSerializedCSharp.Excel_schedule; FpmlSerializedCSharp.Excel_simpleCalculation serial_Excel_simpleCalculation = serial_Excel_schedule.Excel_simpleCalculation_; FpmlSerializedCSharp.Excel_eventCalcInfo serial_excel_eventCalcInfo = serial_Excel_simpleCalculation.Excel_eventCalcInfo_; string excel_eventCalcInfotype = serial_excel_eventCalcInfo.Type_.ValueStr; this.excel_eventCalcInfoViewModel_ = Excel_eventCalcInfoViewModel.CreateExcel_eventCalcInfo(excel_eventCalcInfotype); this.excel_eventCalcInfoViewModel_.setFromSerial(serial_excel_eventCalcInfo); FpmlSerializedCSharp.Excel_returnCalcInfo serial_excel_returnCalcInfo = serial_Excel_simpleCalculation.Excel_returnCalcInfo_; string excel_returnCalcInfotype = serial_excel_returnCalcInfo.Type_.ValueStr; this.excel_returnCalcInfoViewModel_ = Excel_returnCalcInfoViewModel.CreateExcel_returnCalcInfo(excel_returnCalcInfotype); this.excel_returnCalcInfoViewModel_.setFromSerial(serial_excel_returnCalcInfo); FpmlSerializedCSharp.Excel_complementReturnCalc serial_excel_complementReturnCalc = serial_Excel_simpleCalculation.Excel_complementReturnCalc_; string excel_complementReturnCalctype = serial_excel_complementReturnCalc.Type_.ValueStr; this.excel_complementReturnCalcViewModel_ = Excel_complementReturnCalcViewModel.CreateExcel_complementReturnCalc(excel_complementReturnCalctype); this.excel_complementReturnCalcViewModel_.setFromSerial(serial_excel_complementReturnCalc); FpmlSerializedCSharp.Excel_eventCalcInfo_Call serial_excel_eventCalcInfo_Call = serial_Excel_simpleCalculation.Excel_eventCalcInfo_Call_; string excel_eventCalcInfo_Calltype = serial_excel_eventCalcInfo_Call.Type_.ValueStr; this.excel_eventCalcInfo_CallViewModel_ = Excel_eventCalcInfo_CallViewModel.CreateExcel_eventCalcInfo_Call(excel_eventCalcInfo_Calltype); this.excel_eventCalcInfo_CallViewModel_.setFromSerial(serial_excel_eventCalcInfo_Call); FpmlSerializedCSharp.Excel_returnCalcInfo_Call serial_excel_returnCalcInfo_Call = serial_Excel_simpleCalculation.Excel_returnCalcInfo_Call_; string excel_returnCalcInfo_Calltype = serial_excel_returnCalcInfo_Call.Type_.ValueStr; this.excel_returnCalcInfo_CallViewModel_ = Excel_returnCalcInfo_CallViewModel.CreateExcel_returnCalcInfo_Call(excel_returnCalcInfo_Calltype); this.excel_returnCalcInfo_CallViewModel_.setFromSerial(serial_excel_returnCalcInfo_Call); this.view_ = new Excel_simpleCalculationView(); this.view_.DataContext = this; }