Ejemplo n.º 1
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_fixedBond_subtype      serial_Excel_fixedBond_subtype      = serial_Class as FpmlSerializedCSharp.Excel_fixedBond_subtype;
            FpmlSerializedCSharp.Excel_fixedBond_constantRate serial_Excel_fixedBond_constantRate = serial_Excel_fixedBond_subtype.Excel_fixedBond_constantRate_;

            this.maturity_ = serial_Excel_fixedBond_constantRate.Maturity_.ValueStr;

            this.maturityPeriod_ = serial_Excel_fixedBond_constantRate.MaturityPeriod_.ValueStr;

            this.couponTenor_ = serial_Excel_fixedBond_constantRate.CouponTenor_.ValueStr;

            this.couponTenorPeriod_ = serial_Excel_fixedBond_constantRate.CouponTenorPeriod_.ValueStr;

            List <FpmlSerializedCSharp.Excel_fixedBond_subSchedule> serial_excel_fixedBond_subSchedule = serial_Excel_fixedBond_constantRate.Excel_fixedBond_subSchedule_;

            this.excel_fixedBond_subScheduleViewModel_ = new ObservableCollection <Excel_fixedBond_subScheduleViewModel>();
            foreach (var item in serial_excel_fixedBond_subSchedule)
            {
                string type = item.Excel_type_.ValueStr;
                Excel_fixedBond_subScheduleViewModel viewModel = Excel_fixedBond_subScheduleViewModel.CreateExcel_fixedBond_subSchedule(type);
                viewModel.setFromSerial(item);
                this.excel_fixedBond_subScheduleViewModel_.Add(viewModel);
            }

            this.fixedRate_ = serial_Excel_fixedBond_constantRate.FixedRate_.ValueStr;

            this.settlementDays_ = serial_Excel_fixedBond_constantRate.SettlementDays_.ValueStr;
        }
        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);
        }