예제 #1
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.IssueInformation serial_IssueInformation = serial_Class as FpmlSerializedCSharp.IssueInformation;
            FpmlSerializedCSharp.SwapInfo         serial_SwapInfo         = serial_IssueInformation.SwapInfo_;

            this.notional_ = serial_SwapInfo.Notional_.ValueStr;

            this.tradeDate_ = serial_SwapInfo.TradeDate_.ValueStr;

            this.effectiveDate_ = serial_SwapInfo.EffectiveDate_.ValueStr;

            this.maturityDate_ = serial_SwapInfo.MaturityDate_.ValueStr;

            this.premium_ = serial_SwapInfo.Premium_.ValueStr;

            this.view_             = new SwapInfoView();
            this.view_.DataContext = this;
        }
예제 #2
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.IssueInformation serial_IssueInformation = serial_Class as FpmlSerializedCSharp.IssueInformation;
            FpmlSerializedCSharp.SwapInfo         serial_SwapInfo         = serial_IssueInformation.SwapInfo_;

            this.notional_ = serial_SwapInfo.Notional_.ValueStr;

            this.tradeDate_ = StringConverter.xmlDateToDateTime(serial_SwapInfo.TradeDate_.ValueStr);

            this.effectiveDate_ = StringConverter.xmlDateToDateTime(serial_SwapInfo.EffectiveDate_.ValueStr);

            this.maturityDate_ = StringConverter.xmlDateToDateTime(serial_SwapInfo.MaturityDate_.ValueStr);

            FpmlSerializedCSharp.CalculationAmount serial_calculationAmount = serial_SwapInfo.CalculationAmount_;
            string calculationAmounttype = serial_calculationAmount.Excel_type_.ValueStr;

            this.calculationAmountViewModel_ = CalculationAmountViewModel.CreateCalculationAmount(calculationAmounttype);
            this.calculationAmountViewModel_.setFromSerial(serial_calculationAmount);

            this.premium_ = serial_SwapInfo.Premium_.ValueStr;
        }