public void loadDBPosition(string position) { this.instPositionWrapperVMList_ = new ObservableCollection<InstPositionWrapperVM>(); RiskMonitor.PositionSingletonManger.setReferenceDate(this.ReferenceDate_); //db 만들어서 관리 해야함? ㅇㅇ 그래야함 ㅡ.ㅡㅋ instPositionWrapperVMList_.Clear(); DataBaseManager loader = new DataBaseManager(); loader.PositionHostInfo_ = new PositionHostInfo(position); List<InstPositionInfo> instDataList = loader.loadPositionData(); foreach (InstPositionInfo item in instDataList) { InstUriInfo instUri = PositionSingletonManger.CreateInstUriInfo(item.InstCode_, item.InstType_); //ResultUriInfo resultUri = CreateResultUriInfo(item.InstCode_, item.InstType_); //InstrumentBaseViewModel instBaseVM = InstrumentBaseViewModel.CreateInstBaseVM(instUri, resultUri); InstrumentBaseViewModel instBaseVM = InstrumentBaseViewModel.CreateInstBaseVM(instUri); instBaseVM.ReferenceDate_ = PositionSingletonManger.referenceDate(); InstPositionWrapperVM viewModel = new InstPositionWrapperVM(item, instBaseVM); instPositionWrapperVMList_.Add(viewModel); } }
public void loadPosition() { DataBaseManager dbManager = new DataBaseManager(); this.positionBookingInfoVMList_ = dbManager.loadPositionBookingInfoVM(); }