Esempio n. 1
0
        public void enqueue_intrument(string itemCode)
        {
            // itemCode 를 master에서 찾아서 만들어서 넣음

            try
            {
                Excel_instrumentViewModel e_ivm = MasterInformationViewModel.loadInstrumentVM(itemCode);

                // inst xml
                e_ivm.loadInterfaceVMFromXml(XMLFileLoader.LoadInstrument(itemCode));

                // para xml
                e_ivm.loadParameterFromXml(XMLFileLoader.LoadParameter(itemCode, this.calculationDate_));

                BatchItemViewModel bvm = new BatchItemViewModel(e_ivm);

                this.BatchItemViewModelQueueList_.Add(bvm);
            }
            catch (Exception e)
            {
                throw e;
            }

            //
        }
        public void loadWholeBatchItem(DateTime d)
        {
            this.WholeBatchItemViewModel_.Clear();
            this.BindingBatchItemViewModel_.Clear();

            foreach (Excel_instrumentViewModel item in MasterInformationViewModel.WholeMasterPosition_)
            {
                BatchItemViewModel bivm = new BatchItemViewModel(item);

                bivm.checkParameterBuild(d);

                this.WholeBatchItemViewModel_.Add(bivm);
            }
        }
        public void enqueue_intrument(Excel_instrumentViewModel e_instVM)
        {
            BatchItemViewModel bvm = new BatchItemViewModel(e_instVM);

            this.BatchItemViewModelQueueList_.Add(bvm);
        }
        public void enqueue_intrument(string itemCode)
        { 
            // itemCode 를 master에서 찾아서 만들어서 넣음

            try
            {
                Excel_instrumentViewModel e_ivm = MasterInformationViewModel.loadInstrumentVM(itemCode);

                // inst xml
                e_ivm.loadInterfaceVMFromXml(XMLFileLoader.LoadInstrument(itemCode));

                // para xml
                e_ivm.loadParameterFromXml(XMLFileLoader.LoadParameter(itemCode, this.calculationDate_));

                BatchItemViewModel bvm = new BatchItemViewModel(e_ivm);

                this.BatchItemViewModelQueueList_.Add(bvm);
            }
            catch (Exception e)
            {
                throw e;
            }

            // 
        }
        public void loadWholeBatchItem(DateTime d)
        {
            this.WholeBatchItemViewModel_.Clear();
            this.BindingBatchItemViewModel_.Clear();

            foreach (Excel_instrumentViewModel item in MasterInformationViewModel.WholeMasterPosition_)
            {
                BatchItemViewModel bivm = new BatchItemViewModel(item);

                bivm.checkParameterBuild(d);

                this.WholeBatchItemViewModel_.Add(bivm);
            }
        }
Esempio n. 6
0
        public void enqueue_intrument(Excel_instrumentViewModel e_instVM)
        {
            BatchItemViewModel bvm = new BatchItemViewModel(e_instVM);

            this.BatchItemViewModelQueueList_.Add(bvm);
        }