示例#1
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_couponSchedule      serial_Excel_couponSchedule      = serial_Class as FpmlSerializedCSharp.Excel_couponSchedule;
            FpmlSerializedCSharp.Excel_fixedCouponSchedule serial_Excel_fixedCouponSchedule = serial_Excel_couponSchedule.Excel_fixedCouponSchedule_;

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

            this.fixedRate_ = serial_Excel_fixedCouponSchedule.FixedRate_.ValueStr;

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

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

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

            this.detailScheduleType_ = serial_Excel_fixedCouponSchedule.DetailScheduleType_.ValueStr;

            this.description_ = serial_Excel_fixedCouponSchedule.Description_.ValueStr;
        }
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_couponSchedule      serial_Excel_couponSchedule      = serial_Class as FpmlSerializedCSharp.Excel_couponSchedule;
            FpmlSerializedCSharp.Excel_fixedCouponSchedule serial_Excel_fixedCouponSchedule = serial_Excel_couponSchedule.Excel_fixedCouponSchedule_;

            base.setFromSerial(serial_Excel_couponSchedule.Excel_additionalOption_);

            //this.scheduleInitialDate_ = serial_Excel_fixedCouponSchedule.ScheduleInitialDate_.ValueStr;
            //this.maturityDate_ = serial_Excel_fixedCouponSchedule.MaturityDate_.ValueStr;

            this.eventDate_            = StringConverter.xmlDateToDateTime(serial_Excel_fixedCouponSchedule.EventDate_.ValueStr);
            this.payoffDate_           = StringConverter.xmlDateToDateTime(serial_Excel_fixedCouponSchedule.PayoffDate_.ValueStr);
            this.calculationStartDate_ = StringConverter.xmlDateToDateTime(serial_Excel_fixedCouponSchedule.CalculationStartDate_.ValueStr);
            this.calculationEndDate_   = StringConverter.xmlDateToDateTime(serial_Excel_fixedCouponSchedule.CalculationEndDate_.ValueStr);
            this.description_          = serial_Excel_fixedCouponSchedule.Description_.ValueStr;
            this.vba_description_      = serial_Excel_fixedCouponSchedule.Vba_description_.ValueStr;

            this.fixedRate_          = serial_Excel_fixedCouponSchedule.FixedRate_.ValueStr;
            this.detailScheduleType_ = serial_Excel_fixedCouponSchedule.DetailScheduleType_.ValueStr;
        }