public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_underlyingInfo_para serial_Excel_underlyingInfo_para = serial_Class as FpmlSerializedCSharp.Excel_underlyingInfo_para; this.excel_type_ = serial_Excel_underlyingInfo_para.Excel_type_.ValueStr; this.krCode_ = serial_Excel_underlyingInfo_para.KrCode_.ValueStr; this.currency_ = serial_Excel_underlyingInfo_para.Currency_.ValueStr; this.underName_ = serial_Excel_underlyingInfo_para.UnderName_.ValueStr; this.basePrice_ = serial_Excel_underlyingInfo_para.BasePrice_.ValueStr; this.sub_type_ = serial_Excel_underlyingInfo_para.Sub_type_.ValueStr; this.rate_type_ = serial_Excel_underlyingInfo_para.Rate_type_.ValueStr; this.tenor_ = serial_Excel_underlyingInfo_para.Tenor_.ValueStr; this.legTenor_ = serial_Excel_underlyingInfo_para.LegTenor_.ValueStr; this.linkedCurve_ = serial_Excel_underlyingInfo_para.LinkedCurve_.ValueStr; FpmlSerializedCSharp.Excel_underlyingModel_para serial_excel_underlyingModel_para = serial_Excel_underlyingInfo_para.Excel_underlyingModel_para_; string excel_underlyingModel_paratype = serial_excel_underlyingModel_para.Excel_type_.ValueStr; this.excel_underlyingModel_paraViewModel_ = Excel_underlyingModel_paraViewModel.CreateExcel_underlyingModel_para(excel_underlyingModel_paratype); this.excel_underlyingModel_paraViewModel_.setFromSerial(serial_excel_underlyingModel_para); this.value_ = serial_Excel_underlyingInfo_para.Value_.ValueStr; this.description_ = serial_Excel_underlyingInfo_para.Description_.ValueStr; }
public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_underlyingInfo_para serial_Excel_underlyingInfo_para = serial_Class as FpmlSerializedCSharp.Excel_underlyingInfo_para; this.excel_type_ = serial_Excel_underlyingInfo_para.Excel_type_.ValueStr; this.krCode_ = serial_Excel_underlyingInfo_para.KrCode_.ValueStr; this.underName_ = serial_Excel_underlyingInfo_para.UnderName_.ValueStr; this.model_ = serial_Excel_underlyingInfo_para.Model_.ValueStr; this.basePrice_ = serial_Excel_underlyingInfo_para.BasePrice_.ValueStr; FpmlSerializedCSharp.Excel_underlyingModel_para serial_excel_underlyingModel_para = serial_Excel_underlyingInfo_para.Excel_underlyingModel_para_; string excel_underlyingModel_paratype = serial_excel_underlyingModel_para.Excel_type_.ValueStr; this.excel_underlyingModel_paraViewModel_ = Excel_underlyingModel_paraViewModel.CreateExcel_underlyingModel_para(excel_underlyingModel_paratype); this.excel_underlyingModel_paraViewModel_.setFromSerial(serial_excel_underlyingModel_para); this.value_ = serial_Excel_underlyingInfo_para.Value_.ValueStr; this.description_ = serial_Excel_underlyingInfo_para.Description_.ValueStr; }