public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_interface serial_Excel_interface = serial_Class as FpmlSerializedCSharp.Excel_interface;
            FpmlSerializedCSharp.Excel_multiAssetCompositeOption serial_Excel_multiAssetCompositeOption = serial_Excel_interface.Excel_multiAssetCompositeOption_;

            FpmlSerializedCSharp.Excel_issueInfo serial_excel_issueInfo = serial_Excel_multiAssetCompositeOption.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_underlyingCalcInfo serial_excel_underlyingCalcInfo = serial_Excel_multiAssetCompositeOption.Excel_underlyingCalcInfo_;
            this.excel_underlyingCalcInfoViewModel_.setFromSerial(serial_excel_underlyingCalcInfo);

            this.exerciseDate_            = StringConverter.xmlDateToDateTime(serial_Excel_multiAssetCompositeOption.ExerciseDate_.ValueStr);
            this.payoffDate_              = StringConverter.xmlDateToDateTime(serial_Excel_multiAssetCompositeOption.PayoffDate_.ValueStr);
            this.notionalMaturityPayment_ = (serial_Excel_multiAssetCompositeOption.NotionalMaturityPayment_.DoubleValue() * 100.0).ToString();

            List <FpmlSerializedCSharp.Excel_multiAsset_compositeOption_subtype> serial_excel_multiAsset_compositeOption_subtype = serial_Excel_multiAssetCompositeOption.Excel_multiAsset_compositeOption_subtype_;

            this.excel_multiAsset_compositeOption_subtypeViewModel_ = new ObservableCollection <Excel_multiAsset_compositeOption_subtypeViewModel>();
            foreach (var item in serial_excel_multiAsset_compositeOption_subtype)
            {
                string type = item.Excel_type_.ValueStr;
                Excel_multiAsset_compositeOption_subtypeViewModel viewModel = Excel_multiAsset_compositeOption_subtypeViewModel.CreateExcel_multiAsset_compositeOption_subtype(type);
                viewModel.setFromSerial(item);
                this.excel_multiAsset_compositeOption_subtypeViewModel_.Add(viewModel);
            }
        }
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_interface serial_Excel_interface = serial_Class as FpmlSerializedCSharp.Excel_interface;
            FpmlSerializedCSharp.Excel_hifive    serial_Excel_hifive    = serial_Excel_interface.Excel_hifive_;

            FpmlSerializedCSharp.Excel_issueInfo serial_excel_issueInfo = serial_Excel_hifive.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_underlyingCalcInfo serial_excel_underlyingCalcInfo = serial_Excel_hifive.Excel_underlyingCalcInfo_;
            string excel_underlyingCalcInfotype = serial_excel_underlyingCalcInfo.Excel_type_.ValueStr;

            this.excel_underlyingCalcInfoViewModel_ = Excel_underlyingCalcInfoViewModel.CreateExcel_underlyingCalcInfo(excel_underlyingCalcInfotype);
            this.excel_underlyingCalcInfoViewModel_.setFromSerial(serial_excel_underlyingCalcInfo);

            FpmlSerializedCSharp.Excel_hifive_subtype serial_excel_hifive_subtype = serial_Excel_hifive.Excel_hifive_subtype_;
            string excel_hifive_subtypetype = serial_excel_hifive_subtype.Excel_type_.ValueStr;

            this.excel_hifive_subtypeViewModel_ = Excel_hifive_subtypeViewModel.CreateExcel_hifive_subtype(excel_hifive_subtypetype);
            this.excel_hifive_subtypeViewModel_.setFromSerial(serial_excel_hifive_subtype);

            FpmlSerializedCSharp.Excel_scheduleList serial_excel_scheduleList = serial_Excel_hifive.Excel_scheduleList_;
            string excel_scheduleListtype = serial_excel_scheduleList.Excel_type_.ValueStr;

            this.excel_scheduleListViewModel_ = Excel_scheduleListViewModel.CreateExcel_scheduleList(excel_scheduleListtype);
            this.excel_scheduleListViewModel_.setFromSerial(serial_excel_scheduleList);

            FpmlSerializedCSharp.Excel_kiEventCalculation serial_excel_kiEventCalculation = serial_Excel_hifive.Excel_kiEventCalculation_;
            string excel_kiEventCalculationtype = serial_excel_kiEventCalculation.Excel_type_.ValueStr;

            this.excel_kiEventCalculationViewModel_ = Excel_kiEventCalculationViewModel.CreateExcel_kiEventCalculation(excel_kiEventCalculationtype);
            this.excel_kiEventCalculationViewModel_.setFromSerial(serial_excel_kiEventCalculation);
        }
示例#3
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_interface           serial_Excel_interface           = serial_Class as FpmlSerializedCSharp.Excel_interface;
            FpmlSerializedCSharp.Excel_vanillaFloatingBond serial_Excel_vanillaFloatingBond = serial_Excel_interface.Excel_vanillaFloatingBond_;

            FpmlSerializedCSharp.Excel_issueInfo serial_excel_issueInfo = serial_Excel_vanillaFloatingBond.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_underlyingCalcInfo serial_excel_underlyingCalcInfo = serial_Excel_vanillaFloatingBond.Excel_underlyingCalcInfo_;
            string excel_underlyingCalcInfotype = serial_excel_underlyingCalcInfo.Excel_type_.ValueStr;

            this.excel_underlyingCalcInfoViewModel_ = Excel_underlyingCalcInfoViewModel.CreateExcel_underlyingCalcInfo(excel_underlyingCalcInfotype);
            this.excel_underlyingCalcInfoViewModel_.setFromSerial(serial_excel_underlyingCalcInfo);

            FpmlSerializedCSharp.Excel_vanillaFloatingCouponScheduleList serial_excel_vanillaFloatingCouponScheduleList = serial_Excel_vanillaFloatingBond.Excel_vanillaFloatingCouponScheduleList_;
            string excel_vanillaFloatingCouponScheduleListtype = serial_excel_vanillaFloatingCouponScheduleList.Excel_type_.ValueStr;

            this.excel_vanillaFloatingCouponScheduleListViewModel_ = Excel_vanillaFloatingCouponScheduleListViewModel.CreateExcel_vanillaFloatingCouponScheduleList(excel_vanillaFloatingCouponScheduleListtype);
            this.excel_vanillaFloatingCouponScheduleListViewModel_.setFromSerial(serial_excel_vanillaFloatingCouponScheduleList);

            FpmlSerializedCSharp.Excel_vanillaFloatingBond_subtype serial_excel_vanillaFloatingBond_subtype = serial_Excel_vanillaFloatingBond.Excel_vanillaFloatingBond_subtype_;
            string excel_vanillaFloatingBond_subtypetype = serial_excel_vanillaFloatingBond_subtype.Excel_type_.ValueStr;

            this.excel_vanillaFloatingBond_subtypeViewModel_ = Excel_vanillaFloatingBond_subtypeViewModel.CreateExcel_vanillaFloatingBond_subtype(excel_vanillaFloatingBond_subtypetype);
            this.excel_vanillaFloatingBond_subtypeViewModel_.setFromSerial(serial_excel_vanillaFloatingBond_subtype);
        }
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            //Excel_stepDownKICustomView view = this.view_ as Excel_stepDownKICustomView;
            //view.clear();

            FpmlSerializedCSharp.Excel_interface        serial_Excel_interface        = serial_Class as FpmlSerializedCSharp.Excel_interface;
            FpmlSerializedCSharp.Excel_stepDownKICustom serial_Excel_stepDownKICustom = serial_Excel_interface.Excel_stepDownKICustom_;

            FpmlSerializedCSharp.Excel_issueInfo serial_excel_issueInfo = serial_Excel_stepDownKICustom.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_underlyingCalcInfo serial_excel_underlyingCalcInfo = serial_Excel_stepDownKICustom.Excel_underlyingCalcInfo_;
            //this.excel_underlyingCalcInfoViewModel_ = new Excel_underlyingCalcInfoViewModel();
            this.excel_underlyingCalcInfoViewModel_.setFromSerial(serial_excel_underlyingCalcInfo);

            FpmlSerializedCSharp.Excel_hifive_subtype serial_excel_hifive_subtype = serial_Excel_stepDownKICustom.Excel_hifive_subtype_;
            //string excel_hifive_subtypetype = serial_excel_hifive_subtype.Excel_Type_.ValueStr;
            //this.excel_hifive_StepDownKI_ViewModel_ = new Excel_hifive_stepDown_kiViewModel();
            this.excel_hifive_StepDownKI_ViewModel_.setFromSerial(serial_excel_hifive_subtype);

            //this.view_ = new Excel_stepDownKICustomView();
            //this.view_.DataContext = this;
        }
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_underlyingCalcInfo serial_Excel_underlyingCalcInfo = serial_Class as FpmlSerializedCSharp.Excel_underlyingCalcInfo;

            List <FpmlSerializedCSharp.Excel_underlyingInfo> serial_excel_underlyingInfo = serial_Excel_underlyingCalcInfo.Excel_underlyingInfo_;

            this.excel_underlyingInfoViewModel_ = new ObservableCollection <Excel_underlyingInfoViewModel>();
            foreach (var item in serial_excel_underlyingInfo)
            {
                string type = item.Type_.ValueStr;
                Excel_underlyingInfoViewModel viewModel = Excel_underlyingInfoViewModel.CreateExcel_underlyingInfo(type);
                viewModel.setFromSerial(item);
                this.excel_underlyingInfoViewModel_.Add(viewModel);
            }

            List <FpmlSerializedCSharp.Excel_underlyingCalcID> serial_excel_underlyingCalcID = serial_Excel_underlyingCalcInfo.Excel_underlyingCalcID_;

            this.excel_underlyingCalcIDViewModel_ = new ObservableCollection <Excel_underlyingCalcIDViewModel>();
            foreach (var item in serial_excel_underlyingCalcID)
            {
                string type = item.Type_.ValueStr;
                Excel_underlyingCalcIDViewModel viewModel = Excel_underlyingCalcIDViewModel.CreateExcel_underlyingCalcID(type);
                viewModel.setFromSerial(item);
                this.excel_underlyingCalcIDViewModel_.Add(viewModel);
            }

            this.view_             = new Excel_underlyingCalcInfoView();
            this.view_.DataContext = this;
        }
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_counterUnderlyingCalcInfo serial_Excel_counterUnderlyingCalcInfo = serial_Class as FpmlSerializedCSharp.Excel_counterUnderlyingCalcInfo;

            FpmlSerializedCSharp.Excel_underlyingCalcInfo serial_excel_underlyingCalcInfo = serial_Excel_counterUnderlyingCalcInfo.Excel_underlyingCalcInfo_;
            //string excel_underlyingCalcInfotype = serial_excel_underlyingCalcInfo.Excel_type_.ValueStr;
            this.excel_underlyingCalcInfoViewModel_ = new Excel_underlyingCalcInfoViewModel();
            this.excel_underlyingCalcInfoViewModel_.setFromSerial(serial_excel_underlyingCalcInfo);
        }
示例#7
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_interface      serial_Excel_interface      = serial_Class as FpmlSerializedCSharp.Excel_interface;
            FpmlSerializedCSharp.Excel_structuredBond serial_Excel_structuredBond = serial_Excel_interface.Excel_structuredBond_;

            FpmlSerializedCSharp.Excel_issueInfo serial_excel_issueInfo = serial_Excel_structuredBond.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_underlyingCalcInfo serial_excel_underlyingCalcInfo = serial_Excel_structuredBond.Excel_underlyingCalcInfo_;
            //이미 있음 Linked 된게
            //this.excel_underlyingCalcInfoViewModel_ = new Excel_underlyingCalcInfoViewModel();
            this.excel_underlyingCalcInfoViewModel_.setFromSerial(serial_excel_underlyingCalcInfo);

            FpmlSerializedCSharp.Excel_couponScheduleList serial_excel_couponScheduleList = serial_Excel_structuredBond.Excel_couponScheduleList_;
            this.excel_couponScheduleListViewModel_ = new Excel_couponScheduleListViewModel();
            this.excel_couponScheduleListViewModel_.setFromSerial(serial_excel_couponScheduleList);
        }
示例#8
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_interface        serial_Excel_interface        = serial_Class as FpmlSerializedCSharp.Excel_interface;
            FpmlSerializedCSharp.Excel_stepDownKICustom serial_Excel_stepDownKICustom = serial_Excel_interface.Excel_stepDownKICustom_;

            FpmlSerializedCSharp.Excel_issueInfo serial_excel_issueInfo = serial_Excel_stepDownKICustom.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_underlyingCalcInfo serial_excel_underlyingCalcInfo = serial_Excel_stepDownKICustom.Excel_underlyingCalcInfo_;
            string excel_underlyingCalcInfotype = serial_excel_underlyingCalcInfo.Excel_type_.ValueStr;

            this.excel_underlyingCalcInfoViewModel_ = Excel_underlyingCalcInfoViewModel.CreateExcel_underlyingCalcInfo(excel_underlyingCalcInfotype);
            this.excel_underlyingCalcInfoViewModel_.setFromSerial(serial_excel_underlyingCalcInfo);

            FpmlSerializedCSharp.Excel_hifive_subtype serial_excel_hifive_subtype = serial_Excel_stepDownKICustom.Excel_hifive_subtype_;
            string excel_hifive_subtypetype = serial_excel_hifive_subtype.Excel_type_.ValueStr;

            this.excel_hifive_subtypeViewModel_ = Excel_hifive_subtypeViewModel.CreateExcel_hifive_subtype(excel_hifive_subtypetype);
            this.excel_hifive_subtypeViewModel_.setFromSerial(serial_excel_hifive_subtype);
        }