예제 #1
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.EventTrigger             serial_EventTrigger             = serial_Class as FpmlSerializedCSharp.EventTrigger;
            FpmlSerializedCSharp.SimpleEventCouponTrigger serial_SimpleEventCouponTrigger = serial_EventTrigger.SimpleEventCouponTrigger_;

            FpmlSerializedCSharp.EventCalculationInfo serial_eventCalculationInfo = serial_SimpleEventCouponTrigger.EventCalculationInfo_;
            string eventCalculationInfotype = serial_eventCalculationInfo.Excel_type_.ValueStr;

            this.eventCalculationInfoViewModel_ = EventCalculationInfoViewModel.CreateEventCalculationInfo(eventCalculationInfotype);
            this.eventCalculationInfoViewModel_.setFromSerial(serial_eventCalculationInfo);

            FpmlSerializedCSharp.ReturnCalculationInfo serial_returnCalculationInfo = serial_SimpleEventCouponTrigger.ReturnCalculationInfo_;
            string returnCalculationInfotype = serial_returnCalculationInfo.Excel_type_.ValueStr;

            this.returnCalculationInfoViewModel_ = ReturnCalculationInfoViewModel.CreateReturnCalculationInfo(returnCalculationInfotype);
            this.returnCalculationInfoViewModel_.setFromSerial(serial_returnCalculationInfo);

            FpmlSerializedCSharp.ComplementReturnCalculation serial_complementReturnCalculation = serial_SimpleEventCouponTrigger.ComplementReturnCalculation_;
            string complementReturnCalculationtype = serial_complementReturnCalculation.Excel_type_.ValueStr;

            this.complementReturnCalculationViewModel_ = ComplementReturnCalculationViewModel.CreateComplementReturnCalculation(complementReturnCalculationtype);
            this.complementReturnCalculationViewModel_.setFromSerial(serial_complementReturnCalculation);

            FpmlSerializedCSharp.PayoffDateInfo serial_payoffDateInfo = serial_SimpleEventCouponTrigger.PayoffDateInfo_;
            string payoffDateInfotype = serial_payoffDateInfo.Excel_type_.ValueStr;

            this.payoffDateInfoViewModel_ = PayoffDateInfoViewModel.CreatePayoffDateInfo(payoffDateInfotype);
            this.payoffDateInfoViewModel_.setFromSerial(serial_payoffDateInfo);

            this.isExpired_ = serial_SimpleEventCouponTrigger.IsExpired_.ValueStr;
        }
예제 #2
0
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.EventCalculationInfo serial_EventCalculationInfo = serial_Class as FpmlSerializedCSharp.EventCalculationInfo;

            FpmlSerializedCSharp.PreConditionEvent serial_preConditionEvent = serial_EventCalculationInfo.PreConditionEvent_;
            string preConditionEventtype = serial_preConditionEvent.Excel_type_.ValueStr;

            this.preConditionEventViewModel_ = PreConditionEventViewModel.CreatePreConditionEvent(preConditionEventtype);
            this.preConditionEventViewModel_.setFromSerial(serial_preConditionEvent);

            List <FpmlSerializedCSharp.EventCalculation> serial_eventCalculation = serial_EventCalculationInfo.EventCalculation_;

            this.eventCalculationViewModel_ = new ObservableCollection <EventCalculationViewModel>();
            foreach (var item in serial_eventCalculation)
            {
                string type = item.Excel_type_.ValueStr;
                EventCalculationViewModel viewModel = EventCalculationViewModel.CreateEventCalculation(type);
                viewModel.setFromSerial(item);
                this.eventCalculationViewModel_.Add(viewModel);
            }

            FpmlSerializedCSharp.JointSimpleCalculation serial_jointSimpleCalculation = serial_EventCalculationInfo.JointSimpleCalculation_;
            string jointSimpleCalculationtype = serial_jointSimpleCalculation.Excel_type_.ValueStr;

            this.jointSimpleCalculationViewModel_ = JointSimpleCalculationViewModel.CreateJointSimpleCalculation(jointSimpleCalculationtype);
            this.jointSimpleCalculationViewModel_.setFromSerial(serial_jointSimpleCalculation);

            this.pastEventOcc_ = serial_EventCalculationInfo.PastEventOcc_.ValueStr;

            FpmlSerializedCSharp.RefVariable_eventOcc serial_refVariable_eventOcc = serial_EventCalculationInfo.RefVariable_eventOcc_;
            string refVariable_eventOcctype = serial_refVariable_eventOcc.Excel_type_.ValueStr;

            this.refVariable_eventOccViewModel_ = RefVariable_eventOccViewModel.CreateRefVariable_eventOcc(refVariable_eventOcctype);
            this.refVariable_eventOccViewModel_.setFromSerial(serial_refVariable_eventOcc);
        }
예제 #3
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            base.baseSetFromSerial(serial_Class);

            FpmlSerializedCSharp.EventTrigger serial_EventTrigger = serial_Class as FpmlSerializedCSharp.EventTrigger;

            FpmlSerializedCSharp.SimpleEventCouponTrigger serial_SimpleEventCouponTrigger = serial_EventTrigger.SimpleEventCouponTrigger_;

            FpmlSerializedCSharp.EventCalculationInfo serial_eventCalculationInfo = serial_SimpleEventCouponTrigger.EventCalculationInfo_;
            this.eventCalculationInfoViewModel_.setFromSerial(serial_eventCalculationInfo);

            FpmlSerializedCSharp.ReturnCalculationInfo serial_returnCalculationInfo = serial_SimpleEventCouponTrigger.ReturnCalculationInfo_;
            this.returnCalculationInfoViewModel_.setFromSerial(serial_returnCalculationInfo);

            FpmlSerializedCSharp.ComplementReturnCalculation serial_complementReturnCalculation = serial_SimpleEventCouponTrigger.ComplementReturnCalculation_;
            this.complementReturnCalculationViewModel_.setFromSerial(serial_complementReturnCalculation);

            FpmlSerializedCSharp.PayoffDateInfo serial_payoffDateInfo = serial_SimpleEventCouponTrigger.PayoffDateInfo_;
            this.payoffDateInfoViewModel_.setFromSerial(serial_payoffDateInfo);

            this.isExpired_ = serial_SimpleEventCouponTrigger.IsExpired_.ValueStr;

            //this.view_ = new SimpleEventCouponTriggerView();
            this.view_.DataContext = this;
        }
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.AutoTerminationTrigger serial_AutoTerminationTrigger = serial_Class as FpmlSerializedCSharp.AutoTerminationTrigger;

            FpmlSerializedCSharp.EventCalculationInfo serial_eventCalculationInfo = serial_AutoTerminationTrigger.EventCalculationInfo_;
            this.eventCalculationInfoViewModel_.setFromSerial(serial_eventCalculationInfo);

            FpmlSerializedCSharp.ReturnCalculationInfo serial_returnCalculationInfo = serial_AutoTerminationTrigger.ReturnCalculationInfo_;
            this.returnCalculationInfoViewModel_.setFromSerial(serial_returnCalculationInfo);

            FpmlSerializedCSharp.PayoffDateInfo serial_payoffDateInfo = serial_AutoTerminationTrigger.PayoffDateInfo_;
            this.payoffDateInfoViewModel_.setFromSerial(serial_payoffDateInfo);

            //this.view_ = new AutoTerminationTriggerView();
            //this.view_.DataContext = this;
        }
예제 #5
0
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.AutoTerminationTrigger serial_AutoTerminationTrigger = serial_Class as FpmlSerializedCSharp.AutoTerminationTrigger;

            FpmlSerializedCSharp.EventCalculationInfo serial_eventCalculationInfo = serial_AutoTerminationTrigger.EventCalculationInfo_;
            string eventCalculationInfotype = serial_eventCalculationInfo.Excel_type_.ValueStr;

            this.eventCalculationInfoViewModel_ = EventCalculationInfoViewModel.CreateEventCalculationInfo(eventCalculationInfotype);
            this.eventCalculationInfoViewModel_.setFromSerial(serial_eventCalculationInfo);

            FpmlSerializedCSharp.ReturnCalculationInfo serial_returnCalculationInfo = serial_AutoTerminationTrigger.ReturnCalculationInfo_;
            string returnCalculationInfotype = serial_returnCalculationInfo.Excel_type_.ValueStr;

            this.returnCalculationInfoViewModel_ = ReturnCalculationInfoViewModel.CreateReturnCalculationInfo(returnCalculationInfotype);
            this.returnCalculationInfoViewModel_.setFromSerial(serial_returnCalculationInfo);

            FpmlSerializedCSharp.PayoffDateInfo serial_payoffDateInfo = serial_AutoTerminationTrigger.PayoffDateInfo_;
            string payoffDateInfotype = serial_payoffDateInfo.Excel_type_.ValueStr;

            this.payoffDateInfoViewModel_ = PayoffDateInfoViewModel.CreatePayoffDateInfo(payoffDateInfotype);
            this.payoffDateInfoViewModel_.setFromSerial(serial_payoffDateInfo);
        }