Beispiel #1
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.EventTrigger serial_EventTrigger = serial_Class as FpmlSerializedCSharp.EventTrigger;
            FpmlSerializedCSharp.AutoCallConstReturnTrigger serial_AutoCallConstReturnTrigger = serial_EventTrigger.AutoCallConstReturnTrigger_;

            this.dateOrder_ = serial_AutoCallConstReturnTrigger.DateOrder_.ValueStr;

            FpmlSerializedCSharp.FixingDateInfo serial_fixingDateInfo = serial_AutoCallConstReturnTrigger.FixingDateInfo_;
            string fixingDateInfotype = serial_fixingDateInfo.Excel_type_.ValueStr;

            this.fixingDateInfoViewModel_ = FixingDateInfoViewModel.CreateFixingDateInfo(fixingDateInfotype);
            this.fixingDateInfoViewModel_.setFromSerial(serial_fixingDateInfo);

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

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

            this.trigger_ = serial_AutoCallConstReturnTrigger.Trigger_.ValueStr;

            this.return_ = serial_AutoCallConstReturnTrigger.Return_.ValueStr;

            this.averageDays_ = serial_AutoCallConstReturnTrigger.AverageDays_.ValueStr;

            this.isExpired_ = serial_AutoCallConstReturnTrigger.IsExpired_.ValueStr;
        }
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.PayoffInfo serial_PayoffInfo = serial_Class as FpmlSerializedCSharp.PayoffInfo;
            FpmlSerializedCSharp.CompositeSumOptionPayoff serial_CompositeSumOptionPayoff = serial_PayoffInfo.CompositeSumOptionPayoff_;

            FpmlSerializedCSharp.FixingDateInfo serial_fixingDateInfo = serial_CompositeSumOptionPayoff.FixingDateInfo_;
            string fixingDateInfotype = serial_fixingDateInfo.Excel_type_.ValueStr;

            this.fixingDateInfoViewModel_ = FixingDateInfoViewModel.CreateFixingDateInfo(fixingDateInfotype);
            this.fixingDateInfoViewModel_.setFromSerial(serial_fixingDateInfo);

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

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

            FpmlSerializedCSharp.ReferenceCalculationInfo serial_referenceCalculationInfo = serial_CompositeSumOptionPayoff.ReferenceCalculationInfo_;
            string referenceCalculationInfotype = serial_referenceCalculationInfo.Excel_type_.ValueStr;

            this.referenceCalculationInfoViewModel_ = ReferenceCalculationInfoViewModel.CreateReferenceCalculationInfo(referenceCalculationInfotype);
            this.referenceCalculationInfoViewModel_.setFromSerial(serial_referenceCalculationInfo);

            List <FpmlSerializedCSharp.StandardOption> serial_standardOption = serial_CompositeSumOptionPayoff.StandardOption_;

            this.standardOptionViewModel_ = new ObservableCollection <StandardOptionViewModel>();
            foreach (var item in serial_standardOption)
            {
                string type = item.Excel_type_.ValueStr;
                StandardOptionViewModel viewModel = StandardOptionViewModel.CreateStandardOption(type);
                viewModel.setFromSerial(item);
                this.standardOptionViewModel_.Add(viewModel);
            }
        }
        public static FixingDateInfoViewModel CreateFixingDateInfo(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.FixingDateInfo serial_FixingDateInfo = serial_Class as FpmlSerializedCSharp.FixingDateInfo;
            string typeStr = serial_FixingDateInfo.Type_.ValueStr;

            return(FixingDateInfoViewModel.CreateFixingDateInfo(typeStr));
        }
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.FixingDateInfo     serial_FixingDateInfo     = serial_Class as FpmlSerializedCSharp.FixingDateInfo;
            FpmlSerializedCSharp.NullFixingDateInfo serial_NullFixingDateInfo = serial_FixingDateInfo.NullFixingDateInfo_;

            ////this.view_ = new NullFixingDateInfoView();
            // this.view_.DataContext = this;
        }
Beispiel #5
0
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.PayoffDateInfo serial_PayoffDateInfo = serial_Class as FpmlSerializedCSharp.PayoffDateInfo;

            FpmlSerializedCSharp.FixingDateInfo serial_fixingDateInfo = serial_PayoffDateInfo.FixingDateInfo_;
            string fixingDateInfotype = serial_fixingDateInfo.Excel_type_.ValueStr;

            this.fixingDateInfoViewModel_ = FixingDateInfoViewModel.CreateFixingDateInfo(fixingDateInfotype);
            this.fixingDateInfoViewModel_.setFromSerial(serial_fixingDateInfo);
        }
Beispiel #6
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.FixingDateInfo            serial_FixingDateInfo            = serial_Class as FpmlSerializedCSharp.FixingDateInfo;
            FpmlSerializedCSharp.RefVariableFixingDateInfo serial_RefVariableFixingDateInfo = serial_FixingDateInfo.RefVariableFixingDateInfo_;

            this.refDateName_ = serial_RefVariableFixingDateInfo.RefDateName_.ValueStr;

            this.autoCallFlag_ = serial_RefVariableFixingDateInfo.AutoCallFlag_.ValueStr;

            this.autoCallFixingDate_ = StringConverter.xmlDateToDateTime(serial_RefVariableFixingDateInfo.AutoCallFixingDate_.ValueStr);
        }
Beispiel #7
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.ReferenceCalculation serial_ReferenceCalculation = serial_Class as FpmlSerializedCSharp.ReferenceCalculation;
            FpmlSerializedCSharp.IdentityReferenceCal serial_IdentityReferenceCal = serial_ReferenceCalculation.IdentityReferenceCal_;

            this.krCode_ = serial_IdentityReferenceCal.KrCode_.ValueStr;

            FpmlSerializedCSharp.FixingDateInfo serial_fixingDateInfo = serial_IdentityReferenceCal.FixingDateInfo_;
            string fixingDateInfotype = serial_fixingDateInfo.Excel_type_.ValueStr;

            this.fixingDateInfoViewModel_ = FixingDateInfoViewModel.CreateFixingDateInfo(fixingDateInfotype);
            this.fixingDateInfoViewModel_.setFromSerial(serial_fixingDateInfo);
        }
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.PayoffDateInfo serial_PayoffDateInfo = serial_Class as FpmlSerializedCSharp.PayoffDateInfo;

            FpmlSerializedCSharp.FixingDateInfo serial_fixingDateInfo = serial_PayoffDateInfo.FixingDateInfo_;
            string fixingDateInfotype = serial_fixingDateInfo.Type_.ValueStr;

            this.fixingDateInfoViewModel_ = FixingDateInfoViewModel.CreateFixingDateInfo(fixingDateInfotype);
            this.fixingDateInfoViewModel_.setFromSerial(serial_fixingDateInfo);

            //this.view_ = new PayoffDateInfoView();
            this.view_.DataContext = this;
        }
Beispiel #9
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.FixingDateInfo      serial_FixingDateInfo      = serial_Class as FpmlSerializedCSharp.FixingDateInfo;
            FpmlSerializedCSharp.FixedFixingDateInfo serial_FixedFixingDateInfo = serial_FixingDateInfo.FixedFixingDateInfo_;

            this.date_ = serial_FixedFixingDateInfo.Date_.ValueStr;

            this.autoCallFlag_ = serial_FixedFixingDateInfo.AutoCallFlag_.ValueStr;

            this.autoCallFixingDate_ = serial_FixedFixingDateInfo.AutoCallFixingDate_.ValueStr;

            //this.view_ = new FixedFixingDateInfoView();
            this.view_.DataContext = this;
        }
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.ReferenceCalculation    serial_ReferenceCalculation    = serial_Class as FpmlSerializedCSharp.ReferenceCalculation;
            FpmlSerializedCSharp.DailyReturnReferenceCal serial_DailyReturnReferenceCal = serial_ReferenceCalculation.DailyReturnReferenceCal_;

            this.krCode_ = serial_DailyReturnReferenceCal.KrCode_.ValueStr;

            FpmlSerializedCSharp.FixingDateInfo serial_fixingDateInfo = serial_DailyReturnReferenceCal.FixingDateInfo_;
            string fixingDateInfotype = serial_fixingDateInfo.Type_.ValueStr;

            this.fixingDateInfoViewModel_ = FixingDateInfoViewModel.CreateFixingDateInfo(fixingDateInfotype);
            this.fixingDateInfoViewModel_.setFromSerial(serial_fixingDateInfo);

            //this.view_ = new DailyReturnReferenceCalView();
            this.view_.DataContext = this;
        }
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.ReferenceCalculation serial_ReferenceCalculation = serial_Class as FpmlSerializedCSharp.ReferenceCalculation;
            FpmlSerializedCSharp.MinimumReferenceCal  serial_MinimumReferenceCal  = serial_ReferenceCalculation.MinimumReferenceCal_;

            this.nth_ = serial_MinimumReferenceCal.Nth_.ValueStr;

            this.selectedUnderNameViewModel_ = new ObservableCollection <SelectedUnderNameViewModel>();
            foreach (var item in serial_MinimumReferenceCal.SelectedUnderName_)
            {
                this.value_.Add(item.ValueStr);
            }

            FpmlSerializedCSharp.FixingDateInfo serial_fixingDateInfo = serial_MinimumReferenceCal.FixingDateInfo_;
            string fixingDateInfotype = serial_fixingDateInfo.Excel_type_.ValueStr;

            this.fixingDateInfoViewModel_ = FixingDateInfoViewModel.CreateFixingDateInfo(fixingDateInfotype);
            this.fixingDateInfoViewModel_.setFromSerial(serial_fixingDateInfo);
        }
 public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
 {
     FpmlSerializedCSharp.FixingDateInfo     serial_FixingDateInfo     = serial_Class as FpmlSerializedCSharp.FixingDateInfo;
     FpmlSerializedCSharp.NullFixingDateInfo serial_NullFixingDateInfo = serial_FixingDateInfo.NullFixingDateInfo_;
 }