Ejemplo n.º 1
0
        public void initialize(Excel_fixedBond_subtypeViewModel e_fbsvm)
        {
            this.fixedBond_subtypeCombBox_.SelectedIndex     = this.comboBoxNum(e_fbsvm.Excel_type_);
            this.fixedBond_subtypeCombBox_.SelectionChanged += new SelectionChangedEventHandler(ComboBox_SelectionChanged);

            //view는 loaderView에서 적용했음. // 이건 submit했을때 적용할거 저장함.
            this.selectedViewModel_ = e_fbsvm;
        }
        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 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 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 void initialize(Excel_fixedBond_subtypeViewModel e_fbsvm)
        {
            this.fixedBond_subtypeCombBox_.SelectedIndex = this.comboBoxNum(e_fbsvm.Excel_type_);
            this.fixedBond_subtypeCombBox_.SelectionChanged += new SelectionChangedEventHandler(ComboBox_SelectionChanged);

            //view는 loaderView에서 적용했음. // 이건 submit했을때 적용할거 저장함.
            this.selectedViewModel_ = e_fbsvm;
        }
 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);
     
 }