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 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 getEventList(ObservableCollection <EventViewModel> e_vmList, bool subBookInclude = false) { foreach (var item in this.instrumentList_) { ObservableCollection <EventViewModel> e_list = Excel_eventManagerViewModel.dbLoad(item.Item_code_); foreach (var e_vm in e_list) { e_vmList.Add(e_vm); } } if (subBookInclude == true) { foreach (var item in this.childBookList_) { item.getEventList(e_vmList); } } }
private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e) { this.viewModel_ = this.DataContext as Excel_eventManagerViewModel; this.EVENT_INFOListListView_.ItemsSource = this.viewModel_.EventVMList_; }