Пример #1
0
        private void loadBookInfo()
        {
            this.batchInstVMWrapperList_ = new ObservableCollection <BatchInstrumentVMWrapper>();

            FpmlSerializedCSharp.BookInformation serial_bookInfo = new FpmlSerializedCSharp.BookInformation(this.bookInfoVM_.BookInfoXml_);

            this.PathURLInfo_ = this.bookInfoVM_.PathURLInfo_;

            //serial_bookInfo.PathInfo_.Url_.ValueStr;

            DirectoryInfo directoryInfo = new DirectoryInfo(this.PathURLInfo_);

            foreach (var item in serial_bookInfo.InstrumentList_.InstHirachyInfo_)
            {
                string itemCode = item.Code_.ValueStr;
                string itemType = item.Type_.ValueStr;

                InstUriInfo instUri = bookInfoVM_.InstUri(item);
                //ResultUriInfo resultUri = bookInfoVM_.resultUri(item);

                FileInfo fileInfo = new FileInfo(directoryInfo.FullName + itemCode + "_" + itemType + ".xml");

                InstrumentBaseViewModel instBaseVM = InstrumentBaseViewModel.CreateInstBaseVM(instUri);

                //ExploreHirachyInstrumentVMWrapper hirachyInstVMWrapper
                //    = new ExploreHirachyInstrumentVMWrapper(itemCode, itemType, instBaseVM);

                BatchInstrumentVMWrapper batchInstVMWrapper = new BatchInstrumentVMWrapper(instBaseVM);

                batchInstVMWrapper.setFromSerial(item);

                this.batchInstVMWrapperList_.Add(batchInstVMWrapper);
            }
        }
Пример #2
0
        public void initialize()
        {
            this.batchInstVMWrapperList_ = new ObservableCollection <BatchInstrumentVMWrapper>();

            ResultSingletonMaster.resultMasterVM().loadDBResult(this.ReferenceDate_);

            foreach (var item in ResultSingletonMaster.resultMasterVM().InstResultMasterWrapperVMList_)
            {
                BatchInstrumentVMWrapper batchWrapper = new BatchInstrumentVMWrapper(item);
                this.batchInstVMWrapperList_.Add(batchWrapper);
            }
        }
        public void initialize()
        {
            this.batchInstVMWrapperList_ = new ObservableCollection<BatchInstrumentVMWrapper>();

            ResultSingletonMaster.resultMasterVM().loadDBResult(this.ReferenceDate_);

            foreach (var item in ResultSingletonMaster.resultMasterVM().InstResultMasterWrapperVMList_)
	        {
                BatchInstrumentVMWrapper batchWrapper = new BatchInstrumentVMWrapper(item);
                this.batchInstVMWrapperList_.Add(batchWrapper);
	        }
        }
        private void loadBookInfo()
        {
            this.batchInstVMWrapperList_ = new ObservableCollection<BatchInstrumentVMWrapper>();

            FpmlSerializedCSharp.BookInformation serial_bookInfo = new FpmlSerializedCSharp.BookInformation(this.bookInfoVM_.BookInfoXml_);

            this.PathURLInfo_ = this.bookInfoVM_.PathURLInfo_;

            //serial_bookInfo.PathInfo_.Url_.ValueStr;

            DirectoryInfo directoryInfo = new DirectoryInfo(this.PathURLInfo_);

            foreach (var item in serial_bookInfo.InstrumentList_.InstHirachyInfo_)
            {
                string itemCode = item.Code_.ValueStr;
                string itemType = item.Type_.ValueStr;

                InstUriInfo instUri = bookInfoVM_.InstUri(item);
                //ResultUriInfo resultUri = bookInfoVM_.resultUri(item);

                FileInfo fileInfo = new FileInfo(directoryInfo.FullName + itemCode + "_" + itemType + ".xml");

                InstrumentBaseViewModel instBaseVM = InstrumentBaseViewModel.CreateInstBaseVM(instUri);

                //ExploreHirachyInstrumentVMWrapper hirachyInstVMWrapper
                //    = new ExploreHirachyInstrumentVMWrapper(itemCode, itemType, instBaseVM);

                BatchInstrumentVMWrapper batchInstVMWrapper = new BatchInstrumentVMWrapper(instBaseVM);

                batchInstVMWrapper.setFromSerial(item);

                this.batchInstVMWrapperList_.Add(batchInstVMWrapper);
            }
        }