public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Instrument serial_Instrument = serial_Class as FpmlSerializedCSharp.Instrument; FpmlSerializedCSharp.Header serial_header = serial_Instrument.Header_; string headertype = serial_header.Excel_type_.ValueStr; this.headerViewModel_ = HeaderViewModel.CreateHeader(headertype); this.headerViewModel_.setFromSerial(serial_header); FpmlSerializedCSharp.InstPositionInfo serial_instPositionInfo = serial_Instrument.InstPositionInfo_; string instPositionInfotype = serial_instPositionInfo.Excel_type_.ValueStr; this.instPositionInfoViewModel_ = InstPositionInfoViewModel.CreateInstPositionInfo(instPositionInfotype); this.instPositionInfoViewModel_.setFromSerial(serial_instPositionInfo); FpmlSerializedCSharp.Excel_interface serial_excel_interface = serial_Instrument.Excel_interface_; string excel_interfacetype = serial_excel_interface.Excel_type_.ValueStr; this.excel_interfaceViewModel_ = Excel_interfaceViewModel.CreateExcel_interface(excel_interfacetype); this.excel_interfaceViewModel_.setFromSerial(serial_excel_interface); FpmlSerializedCSharp.InstrumentInfo serial_instrumentInfo = serial_Instrument.InstrumentInfo_; string instrumentInfotype = serial_instrumentInfo.Excel_type_.ValueStr; this.instrumentInfoViewModel_ = InstrumentInfoViewModel.CreateInstrumentInfo(instrumentInfotype); this.instrumentInfoViewModel_.setFromSerial(serial_instrumentInfo); }
public void loadBatchDetailContext() { string type = this.masterInformationViewModel_.Booking_type_; this.excel_interfaceViewModel_ = Excel_InterfaceLoader.Load(type); this.excel_interfaceViewModel_.ItemCode_ = this.masterInformationViewModel_.Item_code_; this.loadInterfaceVMFromXml(); this.excel_eventManagerViewModel_ = new Excel_eventManagerViewModel(); this.excel_eventManagerViewModel_.ItemCode_ = this.masterInformationViewModel_.Item_code_; this.excel_eventManagerViewModel_.dbLoad(); }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_swapLeg serial_Excel_swapLeg = serial_Class as FpmlSerializedCSharp.Excel_swapLeg; FpmlSerializedCSharp.Excel_structuredSwapLeg serial_Excel_structuredSwapLeg = serial_Excel_swapLeg.Excel_structuredSwapLeg_; //FpmlSerializedCSharp.Excel_swapLegInfo serial_excel_swapLegInfo = serial_Excel_structuredSwapLeg.Excel_swapLegInfo_; //this.excel_swapLegInfoViewModel_.setFromSerial(serial_excel_swapLegInfo); FpmlSerializedCSharp.Excel_interface serial_excel_interface = serial_Excel_structuredSwapLeg.Excel_interface_; //string excel_interfacetype = serial_excel_interface.Excel_type_.ValueStr; this.excel_interfaceViewModel_ = new Excel_structuredBondViewModel(); this.excel_interfaceViewModel_.setFromSerial(serial_excel_interface); }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_swapLeg serial_Excel_swapLeg = serial_Class as FpmlSerializedCSharp.Excel_swapLeg; FpmlSerializedCSharp.Excel_structuredSwapLeg serial_Excel_structuredSwapLeg = serial_Excel_swapLeg.Excel_structuredSwapLeg_; //FpmlSerializedCSharp.Excel_swapLegInfo serial_excel_swapLegInfo = serial_Excel_structuredSwapLeg.Excel_swapLegInfo_; //this.excel_swapLegInfoViewModel_.setFromSerial(serial_excel_swapLegInfo); FpmlSerializedCSharp.Excel_interface serial_excel_interface = serial_Excel_structuredSwapLeg.Excel_interface_; //string excel_interfacetype = serial_excel_interface.Excel_type_.ValueStr; this.excel_interfaceViewModel_ = new Excel_structuredBondViewModel(); this.excel_interfaceViewModel_.setFromSerial(serial_excel_interface); }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_swapLeg serial_Excel_swapLeg = serial_Class as FpmlSerializedCSharp.Excel_swapLeg; FpmlSerializedCSharp.Excel_structuredRateSwapLeg serial_Excel_structuredRateSwapLeg = serial_Excel_swapLeg.Excel_structuredRateSwapLeg_; FpmlSerializedCSharp.Excel_swapLegInfo serial_excel_swapLegInfo = serial_Excel_structuredRateSwapLeg.Excel_swapLegInfo_; string excel_swapLegInfotype = serial_excel_swapLegInfo.Excel_type_.ValueStr; this.excel_swapLegInfoViewModel_ = Excel_swapLegInfoViewModel.CreateExcel_swapLegInfo(excel_swapLegInfotype); this.excel_swapLegInfoViewModel_.setFromSerial(serial_excel_swapLegInfo); FpmlSerializedCSharp.Excel_interface serial_excel_interface = serial_Excel_structuredRateSwapLeg.Excel_interface_; string excel_interfacetype = serial_excel_interface.Excel_type_.ValueStr; this.excel_interfaceViewModel_ = Excel_interfaceViewModel.CreateExcel_interface(excel_interfacetype); this.excel_interfaceViewModel_.setFromSerial(serial_excel_interface); }
public void loadDetailContext() { //try //{ string type = this.masterInformationViewModel_.Booking_type_; this.excel_interfaceViewModel_ = Excel_InterfaceLoader.Load(type); this.excel_interfaceViewModel_.ItemCode_ = this.masterInformationViewModel_.Item_code_; //this.excel_interfaceViewModel_.TradeID_ = this.masterInformationViewModel_.Trade_id_; this.excel_parameterViewModel_ = Excel_parameterLoader.Load(type); this.excel_parameterViewModel_.ItemCode_ = this.masterInformationViewModel_.Item_code_; //this.excel_parameterViewModel_.TradeID_ = this.masterInformationViewModel_.Trade_id_; this.excel_parameterViewModel_.ReferenceDate_ = RootBookViewModel.rootBookReferenceDate(); //링크 //this.linkEventPass(); this.excel_profitLossViewModel_ = new Excel_profitLossViewModel(); this.excel_profitLossViewModel_.ItemCode_ = this.masterInformationViewModel_.Item_code_; this.excel_profitLossViewModel_.TradeID_ = this.masterInformationViewModel_.Trade_id_; this.excel_profitLossViewModel_.ExportItemCode_ = this.masterInformationViewModel_.Export_itemcode_; this.loadInterfaceVMFromXml(); this.loadParameterFromXml(); // xml이 로드된 후에 setting 함.. xml로드할때 class가 생성되므로.. this.excel_interfaceViewModel_.setUnderlying(); //d 나중에 클릭 대면 로드함 왜냐면 DB접속이니까... 느릴까바.. 흐앙 this.excel_profitLossViewModel_.ReferenceDate_ = RootBookViewModel.rootBookReferenceDate(); this.excel_profitLossViewModel_.loadBookingInfo(); //this.excel_profitLossViewModel_.loadNPV(); //this.excel_profitLossViewModel_.loadTradeEvent(); this.excel_eventManagerViewModel_ = new Excel_eventManagerViewModel(); this.excel_eventManagerViewModel_.ItemCode_ = this.masterInformationViewModel_.Item_code_; this.excel_eventManagerViewModel_.dbLoad(); //} //catch (Exception e) //{ // e.Source += "\n" + this.Item_code_; // throw e; //} }
public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Instrument serial_Instrument = serial_Class as FpmlSerializedCSharp.Instrument; this.code_ = serial_Instrument.Code_.ValueStr; FpmlSerializedCSharp.Excel_interface serial_excel_interface = serial_Instrument.Excel_interface_; string excel_interfacetype = serial_excel_interface.Excel_type_.ValueStr; this.excel_interfaceViewModel_ = Excel_interfaceViewModel.CreateExcel_interface(excel_interfacetype); this.excel_interfaceViewModel_.setFromSerial(serial_excel_interface); FpmlSerializedCSharp.Excel_swapInterface serial_excel_swapInterface = serial_Instrument.Excel_swapInterface_; string excel_swapInterfacetype = serial_excel_swapInterface.Excel_type_.ValueStr; this.excel_swapInterfaceViewModel_ = Excel_swapInterfaceViewModel.CreateExcel_swapInterface(excel_swapInterfacetype); this.excel_swapInterfaceViewModel_.setFromSerial(serial_excel_swapInterface); }
public void buildParaSetting(ParameterSettingManager paraSettingManager) { this.excel_yieldCurveViewModel_.Clear(); Excel_interfaceViewModel e_ivm = paraSettingManager.Excel_InstrumentViewModel_.Excel_interfaceViewModel_; List <CurrencyViewModel> currencyList = e_ivm.currencyList(); List <CurrencyViewModel> removedCurrencyList = new List <CurrencyViewModel>(); foreach (var item in currencyList) { bool exist = false; foreach (var item2 in removedCurrencyList) { if (item2.CurrencyCode_ == item.CurrencyCode_) { exist = true; break; } } if (!exist) { removedCurrencyList.Add(item); } } foreach (var item in removedCurrencyList) { Excel_yieldCurveViewModel e_ycvm = paraSettingManager.DiscountCurveParaSetting_.discountCurve(paraSettingManager.ReferenceDate_, item); this.excel_yieldCurveViewModel_.Add(e_ycvm); } }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_swapLeg serial_Excel_swapLeg = serial_Class as FpmlSerializedCSharp.Excel_swapLeg; FpmlSerializedCSharp.Excel_structuredRateSwapLeg serial_Excel_structuredRateSwapLeg = serial_Excel_swapLeg.Excel_structuredRateSwapLeg_; FpmlSerializedCSharp.Excel_swapLegInfo serial_excel_swapLegInfo = serial_Excel_structuredRateSwapLeg.Excel_swapLegInfo_; string excel_swapLegInfotype = serial_excel_swapLegInfo.Excel_type_.ValueStr; this.excel_swapLegInfoViewModel_ = Excel_swapLegInfoViewModel.CreateExcel_swapLegInfo(excel_swapLegInfotype); this.excel_swapLegInfoViewModel_.setFromSerial(serial_excel_swapLegInfo); FpmlSerializedCSharp.Excel_interface serial_excel_interface = serial_Excel_structuredRateSwapLeg.Excel_interface_; string excel_interfacetype = serial_excel_interface.Excel_type_.ValueStr; this.excel_interfaceViewModel_ = Excel_interfaceViewModel.CreateExcel_interface(excel_interfacetype); this.excel_interfaceViewModel_.setFromSerial(serial_excel_interface); }
public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Instrument serial_Instrument = serial_Class as FpmlSerializedCSharp.Instrument; FpmlSerializedCSharp.Header serial_header = serial_Instrument.Header_; string headertype = serial_header.Excel_type_.ValueStr; this.headerViewModel_ = HeaderViewModel.CreateHeader(headertype); this.headerViewModel_.setFromSerial(serial_header); FpmlSerializedCSharp.InstPositionInfo serial_instPositionInfo = serial_Instrument.InstPositionInfo_; string instPositionInfotype = serial_instPositionInfo.Excel_type_.ValueStr; this.instPositionInfoViewModel_ = InstPositionInfoViewModel.CreateInstPositionInfo(instPositionInfotype); this.instPositionInfoViewModel_.setFromSerial(serial_instPositionInfo); FpmlSerializedCSharp.Excel_interface serial_excel_interface = serial_Instrument.Excel_interface_; string excel_interfacetype = serial_excel_interface.Excel_type_.ValueStr; this.excel_interfaceViewModel_ = Excel_interfaceViewModel.CreateExcel_interface(excel_interfacetype); this.excel_interfaceViewModel_.setFromSerial(serial_excel_interface); FpmlSerializedCSharp.InstrumentInfo serial_instrumentInfo = serial_Instrument.InstrumentInfo_; string instrumentInfotype = serial_instrumentInfo.Excel_type_.ValueStr; this.instrumentInfoViewModel_ = InstrumentInfoViewModel.CreateInstrumentInfo(instrumentInfotype); this.instrumentInfoViewModel_.setFromSerial(serial_instrumentInfo); }
public void loadDetailContext() { //try //{ string type = this.masterInformationViewModel_.Booking_type_; this.excel_interfaceViewModel_ = Excel_InterfaceLoader.Load(type); this.excel_interfaceViewModel_.ItemCode_ = this.masterInformationViewModel_.Item_code_; //this.excel_interfaceViewModel_.TradeID_ = this.masterInformationViewModel_.Trade_id_; this.excel_parameterViewModel_ = Excel_parameterLoader.Load(type); this.excel_parameterViewModel_.ItemCode_ = this.masterInformationViewModel_.Item_code_; //this.excel_parameterViewModel_.TradeID_ = this.masterInformationViewModel_.Trade_id_; this.excel_parameterViewModel_.ReferenceDate_ = RootBookViewModel.rootBookReferenceDate(); //링크 //this.linkEventPass(); this.excel_profitLossViewModel_ = new Excel_profitLossViewModel(); this.excel_profitLossViewModel_.ItemCode_ = this.masterInformationViewModel_.Item_code_; this.excel_profitLossViewModel_.TradeID_ = this.masterInformationViewModel_.Trade_id_; this.excel_profitLossViewModel_.ExportItemCode_ = this.masterInformationViewModel_.Export_itemcode_; this.loadInterfaceVMFromXml(); this.loadParameterFromXml(); // xml이 로드된 후에 setting 함.. xml로드할때 class가 생성되므로.. this.excel_interfaceViewModel_.setUnderlying(); //d 나중에 클릭 대면 로드함 왜냐면 DB접속이니까... 느릴까바.. 흐앙 this.excel_profitLossViewModel_.ReferenceDate_ = RootBookViewModel.rootBookReferenceDate(); this.excel_profitLossViewModel_.loadBookingInfo(); //this.excel_profitLossViewModel_.loadNPV(); //this.excel_profitLossViewModel_.loadTradeEvent(); this.excel_eventManagerViewModel_ = new Excel_eventManagerViewModel(); this.excel_eventManagerViewModel_.ItemCode_ = this.masterInformationViewModel_.Item_code_; this.excel_eventManagerViewModel_.dbLoad(); //} //catch (Exception e) //{ // e.Source += "\n" + this.Item_code_; // throw e; //} }
public void loadBatchDetailContext() { string type = this.masterInformationViewModel_.Booking_type_; this.excel_interfaceViewModel_ = Excel_InterfaceLoader.Load(type); this.excel_interfaceViewModel_.ItemCode_ = this.masterInformationViewModel_.Item_code_; this.loadInterfaceVMFromXml(); this.excel_eventManagerViewModel_ = new Excel_eventManagerViewModel(); this.excel_eventManagerViewModel_.ItemCode_ = this.masterInformationViewModel_.Item_code_; this.excel_eventManagerViewModel_.dbLoad(); }
public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Instrument serial_Instrument = serial_Class as FpmlSerializedCSharp.Instrument; this.code_ = serial_Instrument.Code_.ValueStr; FpmlSerializedCSharp.Excel_interface serial_excel_interface = serial_Instrument.Excel_interface_; string excel_interfacetype = serial_excel_interface.Excel_type_.ValueStr; this.excel_interfaceViewModel_ = Excel_interfaceViewModel.CreateExcel_interface(excel_interfacetype); this.excel_interfaceViewModel_.setFromSerial(serial_excel_interface); FpmlSerializedCSharp.Excel_swapInterface serial_excel_swapInterface = serial_Instrument.Excel_swapInterface_; string excel_swapInterfacetype = serial_excel_swapInterface.Excel_type_.ValueStr; this.excel_swapInterfaceViewModel_ = Excel_swapInterfaceViewModel.CreateExcel_swapInterface(excel_swapInterfacetype); this.excel_swapInterfaceViewModel_.setFromSerial(serial_excel_swapInterface); }