public Excel_fixedBondViewModel() { this.excel_issueInfoViewModel_ = new Excel_noteInfoViewModel(); this.excel_underlyingCalcInfoViewModel_ = new Excel_underlyingCalcInfoViewModel(); // default로 박을거 this.excel_fixedBond_subtypeViewModel_ = new Excel_fixedBond_constantRateViewModel(); this.excel_fixedCouponScheduleListViewModel_ = new Excel_fixedCouponScheduleListViewModel(); }
public void setScheduleFromClone(Excel_fixedCouponScheduleListViewModel excel_cslvm) { this.FixedRate_ = excel_cslvm.FixedRate_; this.excel_fixedCouponScheduleViewModel_.Clear(); foreach (var item in excel_cslvm.excel_fixedCouponScheduleViewModel_) { this.excel_fixedCouponScheduleViewModel_.Add(item); } }
public override void excel_scheduleListVMBuild() { int scheduleNum = this.excel_fixedBond_subScheduleViewModel_.Count;; Excel_fixedCouponScheduleListViewModel e_fcslvm = new Excel_fixedCouponScheduleListViewModel(); for (int i = 0; i < scheduleNum; i++) { e_fcslvm.Excel_fixedCouponScheduleViewModel_.Add( this.couponScheduleVMBuild(this.excel_fixedBond_subScheduleViewModel_[i])); } this.excel_fixedCouponScheduleListViewModel_ = e_fcslvm; }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_interface serial_Excel_interface = serial_Class as FpmlSerializedCSharp.Excel_interface; FpmlSerializedCSharp.Excel_fixedBond serial_Excel_fixedBond = serial_Excel_interface.Excel_fixedBond_; FpmlSerializedCSharp.Excel_issueInfo serial_excel_issueInfo = serial_Excel_fixedBond.Excel_issueInfo_; string excel_issueInfotype = serial_excel_issueInfo.Excel_type_.ValueStr; this.excel_issueInfoViewModel_ = Excel_issueInfoViewModel.CreateExcel_issueInfo(excel_issueInfotype); this.excel_issueInfoViewModel_.setFromSerial(serial_excel_issueInfo); FpmlSerializedCSharp.Excel_fixedCouponScheduleList serial_excel_fixedCouponScheduleList = serial_Excel_fixedBond.Excel_fixedCouponScheduleList_; this.excel_fixedCouponScheduleListViewModel_ = new Excel_fixedCouponScheduleListViewModel(); this.excel_fixedCouponScheduleListViewModel_.setFromSerial(serial_excel_fixedCouponScheduleList); FpmlSerializedCSharp.Excel_fixedBond_subtype serial_excel_fixedBond_subtype = serial_Excel_fixedBond.Excel_fixedBond_subtype_; string excel_fixedBond_subtypetype = serial_excel_fixedBond_subtype.Excel_type_.ValueStr; this.excel_fixedBond_subtypeViewModel_ = Excel_fixedBond_subtypeViewModel.CreateExcel_fixedBond_subtype(excel_fixedBond_subtypetype); this.excel_fixedBond_subtypeViewModel_.setFromSerial(serial_excel_fixedBond_subtype); }
public override void excel_scheduleListVMBuild() { int scheduleNum = this.excel_fixedBond_subScheduleViewModel_.Count; ; Excel_fixedCouponScheduleListViewModel e_fcslvm = new Excel_fixedCouponScheduleListViewModel(); for (int i = 0; i < scheduleNum; i++) { e_fcslvm.Excel_fixedCouponScheduleViewModel_.Add( this.couponScheduleVMBuild(this.excel_fixedBond_subScheduleViewModel_[i])); } this.excel_fixedCouponScheduleListViewModel_ = e_fcslvm; }
private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e) { this.viewModel_ = this.DataContext as Excel_fixedCouponScheduleListViewModel; this.fixedScheduleDataGrid_.ItemsSource = this.viewModel_.Excel_fixedCouponScheduleViewModel_; }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_interface serial_Excel_interface = serial_Class as FpmlSerializedCSharp.Excel_interface; FpmlSerializedCSharp.Excel_fixedBond serial_Excel_fixedBond = serial_Excel_interface.Excel_fixedBond_; FpmlSerializedCSharp.Excel_issueInfo serial_excel_issueInfo = serial_Excel_fixedBond.Excel_issueInfo_; string excel_issueInfotype = serial_excel_issueInfo.Excel_type_.ValueStr; this.excel_issueInfoViewModel_ = Excel_issueInfoViewModel.CreateExcel_issueInfo(excel_issueInfotype); this.excel_issueInfoViewModel_.setFromSerial(serial_excel_issueInfo); FpmlSerializedCSharp.Excel_fixedCouponScheduleList serial_excel_fixedCouponScheduleList = serial_Excel_fixedBond.Excel_fixedCouponScheduleList_; string excel_fixedCouponScheduleListtype = serial_excel_fixedCouponScheduleList.Excel_type_.ValueStr; this.excel_fixedCouponScheduleListViewModel_ = Excel_fixedCouponScheduleListViewModel.CreateExcel_fixedCouponScheduleList(excel_fixedCouponScheduleListtype); this.excel_fixedCouponScheduleListViewModel_.setFromSerial(serial_excel_fixedCouponScheduleList); FpmlSerializedCSharp.Excel_fixedBond_subtype serial_excel_fixedBond_subtype = serial_Excel_fixedBond.Excel_fixedBond_subtype_; string excel_fixedBond_subtypetype = serial_excel_fixedBond_subtype.Excel_type_.ValueStr; this.excel_fixedBond_subtypeViewModel_ = Excel_fixedBond_subtypeViewModel.CreateExcel_fixedBond_subtype(excel_fixedBond_subtypetype); this.excel_fixedBond_subtypeViewModel_.setFromSerial(serial_excel_fixedBond_subtype); }