public BatchInstrumentVMWrapper(InstResultMasterWrapperVM instRMWrapperVM)
        {
            this.InstBaseVM_ = instRMWrapperVM.InstBaseVM_;
            this.InstResultMasterWrapperVM_ = instRMWrapperVM;

            if (instRMWrapperVM.CalculateDate_ != null) { this.IsCalculateFlag_ = true; }
            else { this.IsCalculateFlag_ = false; }

            this.ParaExistFlag_ = instRMWrapperVM.ParameterExistFlag_;

        }
        public BatchInstrumentVMWrapper(InstResultMasterWrapperVM instRMWrapperVM)
        {
            this.InstBaseVM_ = instRMWrapperVM.InstBaseVM_;
            this.InstResultMasterWrapperVM_ = instRMWrapperVM;

            if (instRMWrapperVM.CalculateDate_ != null)
            {
                this.IsCalculateFlag_ = true;
            }
            else
            {
                this.IsCalculateFlag_ = false;
            }

            this.ParaExistFlag_ = instRMWrapperVM.ParameterExistFlag_;
        }
        public void loadDBResult(string referenceDate)
        {
            this.instResultMasterWrapperVMList = new ObservableCollection<InstResultMasterWrapperVM>();

            string positionName = PositionSingletonManger.positionName();

            this.Loader_ = new ResultMasterLoader();
            this.Loader_.PositionHostInfo_ = new PositionHostInfo(positionName);

            List<ResultMasterInfo> resultMasterInfoList = this.Loader_.loadResultData();

            

            foreach (ResultMasterInfo item in resultMasterInfoList)
            {
                InstUriInfo instUri = PositionSingletonManger.CreateInstUriInfo(item.InstCode_, item.InstType_);
                InstrumentBaseViewModel instBaseVM = InstrumentBaseViewModel.CreateInstBaseVM(instUri);

                InstResultMasterWrapperVM viewModel = new InstResultMasterWrapperVM(instBaseVM, item);
                this.instResultMasterWrapperVMList.Add(viewModel);
            }
        }
        public void loadDBResult(string referenceDate)
        {
            this.instResultMasterWrapperVMList = new ObservableCollection <InstResultMasterWrapperVM>();

            string positionName = PositionSingletonManger.positionName();

            this.Loader_ = new ResultMasterLoader();
            this.Loader_.PositionHostInfo_ = new PositionHostInfo(positionName);

            List <ResultMasterInfo> resultMasterInfoList = this.Loader_.loadResultData();



            foreach (ResultMasterInfo item in resultMasterInfoList)
            {
                InstUriInfo             instUri    = PositionSingletonManger.CreateInstUriInfo(item.InstCode_, item.InstType_);
                InstrumentBaseViewModel instBaseVM = InstrumentBaseViewModel.CreateInstBaseVM(instUri);

                InstResultMasterWrapperVM viewModel = new InstResultMasterWrapperVM(instBaseVM, item);
                this.instResultMasterWrapperVMList.Add(viewModel);
            }
        }