public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_kiEventCalculation serial_Excel_kiEventCalculation = serial_Class as FpmlSerializedCSharp.Excel_kiEventCalculation;
            FpmlSerializedCSharp.Excel_simpleKiEventCalc  serial_Excel_simpleKiEventCalc  = serial_Excel_kiEventCalculation.Excel_simpleKiEventCalc_;

            this.eventDate_ = StringConverter.xmlDateToDateTime(serial_Excel_simpleKiEventCalc.EventDate_.ValueStr);

            this.payoffDate_ = StringConverter.xmlDateToDateTime(serial_Excel_simpleKiEventCalc.PayoffDate_.ValueStr);

            this.vba_description_ = serial_Excel_simpleKiEventCalc.Vba_description_.ValueStr;

            FpmlSerializedCSharp.Excel_eventCalcInfo serial_excel_eventCalcInfo = serial_Excel_simpleKiEventCalc.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_occReturnCalcInfo serial_excel_occReturnCalcInfo = serial_Excel_simpleKiEventCalc.Excel_occReturnCalcInfo_;
            string excel_occReturnCalcInfotype = serial_excel_occReturnCalcInfo.Excel_type_.ValueStr;

            this.excel_occReturnCalcInfoViewModel_ = Excel_occReturnCalcInfoViewModel.CreateExcel_occReturnCalcInfo(excel_occReturnCalcInfotype);
            this.excel_occReturnCalcInfoViewModel_.setFromSerial(serial_excel_occReturnCalcInfo);

            FpmlSerializedCSharp.Excel_noOccReturnCalcInfo serial_excel_noOccReturnCalcInfo = serial_Excel_simpleKiEventCalc.Excel_noOccReturnCalcInfo_;
            string excel_noOccReturnCalcInfotype = serial_excel_noOccReturnCalcInfo.Excel_type_.ValueStr;

            this.excel_noOccReturnCalcInfoViewModel_ = Excel_noOccReturnCalcInfoViewModel.CreateExcel_noOccReturnCalcInfo(excel_noOccReturnCalcInfotype);
            this.excel_noOccReturnCalcInfoViewModel_.setFromSerial(serial_excel_noOccReturnCalcInfo);
        }
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_couponSchedule serial_Excel_couponSchedule = serial_Class as FpmlSerializedCSharp.Excel_couponSchedule;
            FpmlSerializedCSharp.Excel_condi_structuredCouponSchedule serial_Excel_condi_structuredCouponSchedule = serial_Excel_couponSchedule.Excel_condi_structuredCouponSchedule_;

            this.eventDate_ = StringConverter.xmlDateToDateTime(serial_Excel_condi_structuredCouponSchedule.EventDate_.ValueStr);

            FpmlSerializedCSharp.Excel_eventCalcInfo serial_excel_eventCalcInfo = serial_Excel_condi_structuredCouponSchedule.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_condi_structuredCouponSchedule.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_structuredCouponSchedule.DayCounter_.ValueStr;

            this.calculationStartDate_ = StringConverter.xmlDateToDateTime(serial_Excel_condi_structuredCouponSchedule.CalculationStartDate_.ValueStr);

            this.calculationEndDate_ = StringConverter.xmlDateToDateTime(serial_Excel_condi_structuredCouponSchedule.CalculationEndDate_.ValueStr);

            this.paymentDate_ = StringConverter.xmlDateToDateTime(serial_Excel_condi_structuredCouponSchedule.PaymentDate_.ValueStr);

            this.detailScheduleType_ = serial_Excel_condi_structuredCouponSchedule.DetailScheduleType_.ValueStr;

            this.description_ = serial_Excel_condi_structuredCouponSchedule.Description_.ValueStr;
        }
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_eventCalcInfo_Call serial_Excel_eventCalcInfo_Call = serial_Class as FpmlSerializedCSharp.Excel_eventCalcInfo_Call;

            FpmlSerializedCSharp.Excel_eventCalcInfo serial_excel_eventCalcInfo = serial_Excel_eventCalcInfo_Call.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);
        }
Ejemplo n.º 4
0
        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);
        }
Ejemplo n.º 5
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_kiEventCalculation serial_Excel_kiEventCalculation = serial_Class as FpmlSerializedCSharp.Excel_kiEventCalculation;
            FpmlSerializedCSharp.Excel_targetKiEventCalc  serial_Excel_targetKiEventCalc  = serial_Excel_kiEventCalculation.Excel_targetKiEventCalc_;

            this.eventDate_ = StringConverter.xmlDateToDateTime(serial_Excel_targetKiEventCalc.EventDate_.ValueStr);

            this.targetCount_ = serial_Excel_targetKiEventCalc.TargetCount_.ValueStr;

            FpmlSerializedCSharp.Excel_eventCalcInfo serial_excel_eventCalcInfo = serial_Excel_targetKiEventCalc.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);
        }
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_kiEventCalculation serial_Excel_kiEventCalculation = serial_Class as FpmlSerializedCSharp.Excel_kiEventCalculation;
            FpmlSerializedCSharp.Excel_dualKiEventCalc    serial_Excel_dualKiEventCalc    = serial_Excel_kiEventCalculation.Excel_dualKiEventCalc_;

            List <FpmlSerializedCSharp.Excel_eventCalcInfo> serial_excel_eventCalcInfo = serial_Excel_dualKiEventCalc.Excel_eventCalcInfo_;

            this.excel_eventCalcInfoViewModel_ = new ObservableCollection <Excel_eventCalcInfoViewModel>();
            foreach (var item in serial_excel_eventCalcInfo)
            {
                string type = item.Excel_type_.ValueStr;
                Excel_eventCalcInfoViewModel viewModel = Excel_eventCalcInfoViewModel.CreateExcel_eventCalcInfo(type);
                viewModel.setFromSerial(item);
                this.excel_eventCalcInfoViewModel_.Add(viewModel);
            }
        }
Ejemplo n.º 7
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_couponSchedule serial_Excel_couponSchedule = serial_Class as FpmlSerializedCSharp.Excel_couponSchedule;
            FpmlSerializedCSharp.Excel_multiCondi_structuredCouponSchedule serial_Excel_multiCondi_structuredCouponSchedule = serial_Excel_couponSchedule.Excel_multiCondi_structuredCouponSchedule_;

            this.eventDate_ = StringConverter.xmlDateToDateTime(serial_Excel_multiCondi_structuredCouponSchedule.EventDate_.ValueStr);

            this.payoffDate_ = StringConverter.xmlDateToDateTime(serial_Excel_multiCondi_structuredCouponSchedule.PayoffDate_.ValueStr);

            this.calculationStartDate_ = StringConverter.xmlDateToDateTime(serial_Excel_multiCondi_structuredCouponSchedule.CalculationStartDate_.ValueStr);

            this.calculationEndDate_ = StringConverter.xmlDateToDateTime(serial_Excel_multiCondi_structuredCouponSchedule.CalculationEndDate_.ValueStr);

            this.description_ = serial_Excel_multiCondi_structuredCouponSchedule.Description_.ValueStr;

            this.vba_description_ = serial_Excel_multiCondi_structuredCouponSchedule.Vba_description_.ValueStr;

            List <FpmlSerializedCSharp.Excel_eventCalcInfo> serial_excel_eventCalcInfo = serial_Excel_multiCondi_structuredCouponSchedule.Excel_eventCalcInfo_;

            this.excel_eventCalcInfoViewModel_ = new ObservableCollection <Excel_eventCalcInfoViewModel>();
            foreach (var item in serial_excel_eventCalcInfo)
            {
                string type = item.Excel_type_.ValueStr;
                Excel_eventCalcInfoViewModel viewModel = Excel_eventCalcInfoViewModel.CreateExcel_eventCalcInfo(type);
                viewModel.setFromSerial(item);
                this.excel_eventCalcInfoViewModel_.Add(viewModel);
            }

            List <FpmlSerializedCSharp.Excel_returnCalcInfo> serial_excel_returnCalcInfo = serial_Excel_multiCondi_structuredCouponSchedule.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_structuredCouponSchedule.DayCounter_.ValueStr;

            this.detailScheduleType_ = serial_Excel_multiCondi_structuredCouponSchedule.DetailScheduleType_.ValueStr;
        }
        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;
        }
Ejemplo n.º 9
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_kiEventCalculation serial_Excel_kiEventCalculation = serial_Class as FpmlSerializedCSharp.Excel_kiEventCalculation;
            FpmlSerializedCSharp.Excel_simpleKiEventCalc  serial_Excel_simpleKiEventCalc  = serial_Excel_kiEventCalculation.Excel_simpleKiEventCalc_;

            base.setFromSerial(serial_Class);

            //this.eventDate_ = serial_Excel_simpleKiEventCalc.EventDate_.DateTimeValue();
            //this.payoffDate_ = serial_Excel_simpleKiEventCalc.PayoffDate_.DateTimeValue();

            FpmlSerializedCSharp.Excel_eventCalcInfo serial_excel_eventCalcInfo = serial_Excel_simpleKiEventCalc.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_occReturnCalcInfo serial_excel_occReturnCalcInfo = serial_Excel_simpleKiEventCalc.Excel_occReturnCalcInfo_;
            this.excel_occReturnCalcInfoViewModel_ = new Excel_occReturnCalcInfoViewModel();
            this.excel_occReturnCalcInfoViewModel_.setFromSerial(serial_excel_occReturnCalcInfo);

            FpmlSerializedCSharp.Excel_noOccReturnCalcInfo serial_excel_noOccReturnCalcInfo = serial_Excel_simpleKiEventCalc.Excel_noOccReturnCalcInfo_;
            this.excel_noOccReturnCalcInfoViewModel_ = new Excel_noOccReturnCalcInfoViewModel();
            this.excel_noOccReturnCalcInfoViewModel_.setFromSerial(serial_excel_noOccReturnCalcInfo);
        }