public static IssueInformationViewModel CreateIssueInformation(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.IssueInformation serial_IssueInformation = serial_Class as FpmlSerializedCSharp.IssueInformation; string typeStr = serial_IssueInformation.Type_.ValueStr; return(IssueInformationViewModel.CreateIssueInformation(typeStr)); }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.InstrumentInfo serial_instInfo = serial_Class as FpmlSerializedCSharp.InstrumentInfo; FpmlSerializedCSharp.CreditInstrument serial_CreditInstrument = serial_instInfo.CreditInstrument_ as FpmlSerializedCSharp.CreditInstrument; FpmlSerializedCSharp.IssueInformation serial_issueInfo = serial_CreditInstrument.IssueInformation_; string issueInfotype = serial_issueInfo.Type_.ValueStr; this.issueInfoViewModel_ = IssueInformationViewModel.CreateIssueInformation(issueInfotype); this.issueInfoViewModel_.setFromSerial(serial_issueInfo); FpmlSerializedCSharp.UnderlyingInformation serial_underlyingInfo = serial_CreditInstrument.UnderlyingInformation_; string underlyingInfotype = serial_underlyingInfo.Type_.ValueStr; this.underlyingInfoViewModel_ = UnderlyingInfoViewModel.CreateUnderlyingInfo(underlyingInfotype); this.underlyingInfoViewModel_.setFromSerial(serial_underlyingInfo); FpmlSerializedCSharp.CreditPayoffInfo serial_creditPayoffInfo = serial_CreditInstrument.CreditPayoffInfo_; string creditPayoffInfotype = serial_creditPayoffInfo.Type_.ValueStr; this.creditPayoffInfoViewModel_ = CreditPayoffInfoViewModel.CreateCreditPayoffInfo(creditPayoffInfotype); this.creditPayoffInfoViewModel_.setFromSerial(serial_creditPayoffInfo); this.view_ = new CreditInstrumentView(); this.view_.DataContext = this; }
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; }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.IssueInformation serial_IssueInformation = serial_Class as FpmlSerializedCSharp.IssueInformation; FpmlSerializedCSharp.SecuritiesInfo serial_SecuritiesInfo = serial_IssueInformation.SecuritiesInfo_; this.notional_ = serial_SecuritiesInfo.Notional_.ValueStr; this.tradeDate_ = StringConverter.xmlDateToDateTime(serial_SecuritiesInfo.TradeDate_.ValueStr); this.effectiveDate_ = StringConverter.xmlDateToDateTime(serial_SecuritiesInfo.EffectiveDate_.ValueStr); this.maturityDate_ = StringConverter.xmlDateToDateTime(serial_SecuritiesInfo.MaturityDate_.ValueStr); FpmlSerializedCSharp.CalculationAmount serial_calculationAmount = serial_SecuritiesInfo.CalculationAmount_; string calculationAmounttype = serial_calculationAmount.Excel_type_.ValueStr; this.calculationAmountViewModel_ = CalculationAmountViewModel.CreateCalculationAmount(calculationAmounttype); this.calculationAmountViewModel_.setFromSerial(serial_calculationAmount); this.premium_ = serial_SecuritiesInfo.Premium_.ValueStr; }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.IssueInformation serial_IssueInformation = serial_Class as FpmlSerializedCSharp.IssueInformation; FpmlSerializedCSharp.SecuritiesInfo serial_SecuritiesInfo = serial_IssueInformation.SecuritiesInfo_; this.notional_ = serial_SecuritiesInfo.Notional_.ValueStr; this.tradeDate_ = serial_SecuritiesInfo.TradeDate_.ValueStr; this.effectiveDate_ = serial_SecuritiesInfo.EffectiveDate_.ValueStr; this.maturityDate_ = serial_SecuritiesInfo.MaturityDate_.ValueStr; FpmlSerializedCSharp.CalculationAmount serial_calculationAmount = serial_SecuritiesInfo.CalculationAmount_; this.calculationAmountViewModel_.setFromSerial(serial_calculationAmount); this.premium_ = serial_SecuritiesInfo.Premium_.ValueStr; this.view_ = new SecuritiesInfoView(); this.view_.DataContext = this; }
public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.StandardInstrument serial_StandardInstrument = serial_Class as FpmlSerializedCSharp.StandardInstrument; FpmlSerializedCSharp.IssueInformation serial_issueInformation = serial_StandardInstrument.IssueInformation_; string issueInformationtype = serial_issueInformation.Excel_type_.ValueStr; this.issueInformationViewModel_ = IssueInformationViewModel.CreateIssueInformation(issueInformationtype); this.issueInformationViewModel_.setFromSerial(serial_issueInformation); FpmlSerializedCSharp.UnderlyingInformation serial_underlyingInformation = serial_StandardInstrument.UnderlyingInformation_; string underlyingInformationtype = serial_underlyingInformation.Excel_type_.ValueStr; this.underlyingInformationViewModel_ = UnderlyingInformationViewModel.CreateUnderlyingInformation(underlyingInformationtype); this.underlyingInformationViewModel_.setFromSerial(serial_underlyingInformation); FpmlSerializedCSharp.PayoffInfo serial_payoffInfo = serial_StandardInstrument.PayoffInfo_; string payoffInfotype = serial_payoffInfo.Excel_type_.ValueStr; this.payoffInfoViewModel_ = PayoffInfoViewModel.CreatePayoffInfo(payoffInfotype); this.payoffInfoViewModel_.setFromSerial(serial_payoffInfo); }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.InstrumentInfo serial_instInfo = serial_Class as FpmlSerializedCSharp.InstrumentInfo; FpmlSerializedCSharp.StandardInstrument serial_standInst = serial_instInfo.StandardInstrument_; try { } catch (Exception e) { ErrorManager.setError(e); } //잠시 벗겨놈 FpmlSerializedCSharp.IssueInformation serial_issueInfo = serial_standInst.IssueInformation_; string issueInfoType = serial_issueInfo.Type_.ValueStr; this.IssueInfoViewModel_ = IssueInformationViewModel.CreateIssueInformation(issueInfoType); this.IssueInfoViewModel_.setFromSerial(serial_issueInfo); FpmlSerializedCSharp.UnderlyingInformation serial_underInfo = serial_standInst.UnderlyingInformation_; string underInfoType = serial_underInfo.Type_.ValueStr; this.UnderlyingViewModel_ = UnderlyingInfoViewModel.CreateUnderlyingInfo(underInfoType); this.UnderlyingViewModel_.setFromSerial(serial_underInfo); FpmlSerializedCSharp.PayoffInfo serial_payoffInfo = serial_standInst.PayoffInfo_; string payoffInfoType = serial_payoffInfo.Type_.ValueStr; this.PayoffViewModel_ = PayoffInfoViewModel.CreatePayoffInfo(payoffInfoType); this.PayoffViewModel_.setFromSerial(serial_payoffInfo); this.payoffInfoType_ = this.PayoffViewModel_.Type_; this.view_ = new StandardInstView(); this.view_.DataContext = this; }