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_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 initialize(Excel_returnCalcInfoViewModel e_rcaivm) { this.returnTypeCombo_.SelectedIndex = this.comboBoxNum(e_rcaivm.Excel_type_); this.returnTypeCombo_.SelectionChanged += new SelectionChangedEventHandler(eventTypeCombo__SelectionChanged); //view는 loaderView에서 적용했음. // 이건 submit했을때 적용할거 저장함. this.selectedReturnTypeViewModel_ = e_rcaivm; }
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_noOccReturnCalcInfo serial_Excel_noOccReturnCalcInfo = serial_Class as FpmlSerializedCSharp.Excel_noOccReturnCalcInfo; FpmlSerializedCSharp.Excel_returnCalcInfo serial_excel_returnCalcInfo = serial_Excel_noOccReturnCalcInfo.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_couponSchedule serial_Excel_couponSchedule = serial_Class as FpmlSerializedCSharp.Excel_couponSchedule; FpmlSerializedCSharp.Excel_multiCondi_structuredAccrualCouponSchedule serial_Excel_multiCondi_structuredAccrualCouponSchedule = serial_Excel_couponSchedule.Excel_multiCondi_structuredAccrualCouponSchedule_; this.eventDate_ = StringConverter.xmlDateToDateTime(serial_Excel_multiCondi_structuredAccrualCouponSchedule.EventDate_.ValueStr); this.payoffDate_ = StringConverter.xmlDateToDateTime(serial_Excel_multiCondi_structuredAccrualCouponSchedule.PayoffDate_.ValueStr); this.calculationStartDate_ = StringConverter.xmlDateToDateTime(serial_Excel_multiCondi_structuredAccrualCouponSchedule.CalculationStartDate_.ValueStr); this.calculationEndDate_ = StringConverter.xmlDateToDateTime(serial_Excel_multiCondi_structuredAccrualCouponSchedule.CalculationEndDate_.ValueStr); this.description_ = serial_Excel_multiCondi_structuredAccrualCouponSchedule.Description_.ValueStr; this.vba_description_ = serial_Excel_multiCondi_structuredAccrualCouponSchedule.Vba_description_.ValueStr; List <FpmlSerializedCSharp.Range1D> serial_range1D = serial_Excel_multiCondi_structuredAccrualCouponSchedule.Range1D_; this.range1DViewModel_ = new ObservableCollection <Range1DViewModel>(); foreach (var item in serial_range1D) { string type = item.Excel_type_.ValueStr; Range1DViewModel viewModel = Range1DViewModel.CreateRange1D(type); viewModel.setFromSerial(item); this.range1DViewModel_.Add(viewModel); } List <FpmlSerializedCSharp.Excel_underlyingCalcID> serial_excel_underlyingCalcID = serial_Excel_multiCondi_structuredAccrualCouponSchedule.Excel_underlyingCalcID_; this.excel_underlyingCalcIDViewModel_ = new ObservableCollection <Excel_underlyingCalcIDViewModel>(); foreach (var item in serial_excel_underlyingCalcID) { string type = item.Excel_type_.ValueStr; Excel_underlyingCalcIDViewModel viewModel = Excel_underlyingCalcIDViewModel.CreateExcel_underlyingCalcID(type); viewModel.setFromSerial(item); this.excel_underlyingCalcIDViewModel_.Add(viewModel); } List <FpmlSerializedCSharp.Excel_returnCalcInfo> serial_excel_returnCalcInfo = serial_Excel_multiCondi_structuredAccrualCouponSchedule.Excel_returnCalcInfo_; this.excel_returnCalcInfoViewModel_ = new ObservableCollection <Excel_returnCalcInfoViewModel>(); foreach (var item in serial_excel_returnCalcInfo) { string type = item.Excel_type_.ValueStr; Excel_returnCalcInfoViewModel viewModel = Excel_returnCalcInfoViewModel.CreateExcel_returnCalcInfo(type); viewModel.setFromSerial(item); this.excel_returnCalcInfoViewModel_.Add(viewModel); } this.dayCounter_ = serial_Excel_multiCondi_structuredAccrualCouponSchedule.DayCounter_.ValueStr; this.detailScheduleType_ = serial_Excel_multiCondi_structuredAccrualCouponSchedule.DetailScheduleType_.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.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 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_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 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; 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); }
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_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 initialize(Excel_returnCalcInfoViewModel e_rcaivm) { this.returnTypeCombo_.SelectedIndex = this.comboBoxNum(e_rcaivm.Excel_type_); this.returnTypeCombo_.SelectionChanged += new SelectionChangedEventHandler(eventTypeCombo__SelectionChanged); //view는 loaderView에서 적용했음. // 이건 submit했을때 적용할거 저장함. this.selectedReturnTypeViewModel_ = e_rcaivm; }
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; }