예제 #1
0
        /// <summary>
        /// 载入申请图像
        /// </summary>
        private void LoadApplyImages(string applyId)
        {
            if (_images == null)
            {
                _images = new List <TileImageInfo>();
            }
            if (_sm == null)
            {
                _sm = new StudyMediaSerialModel(_dbQuery);
            }

            _images.Clear();
            imageView1.Clear();

            DataTable dtMedias = _sm.GetApplyMedia(applyId);

            if (dtMedias == null || dtMedias.Rows.Count <= 0)
            {
                return;
            }

            dtMedias.DefaultView.Sort = "序号 Desc";

            StudySerialData serialData = null;

            foreach (DataRowView dr in dtMedias.DefaultView)
            {
                StudyMediaData smd = new StudyMediaData();
                smd.BindRowData(dr.Row);

                if (serialData == null || serialData.序列ID.Equals(smd.序列ID) == false)
                {
                    serialData = _sm.GetApplySerialInfoById(smd.序列ID);
                }

                TileImageInfo imgInfo = new TileImageInfo();
                imgInfo.MediaId       = smd.媒体ID;
                imgInfo.SerialId      = smd.序列ID;
                imgInfo.ApplyId       = smd.申请ID;
                imgInfo.StorageId     = serialData.存储ID;
                imgInfo.Order         = smd.序号.ToString();
                imgInfo.IsReportImage = smd.媒体信息.是否报告图;
                imgInfo.IsKeyImage    = smd.媒体信息.是否关键图;
                imgInfo.MediaName     = smd.媒体信息.媒体名称;
                imgInfo.MediaType     = smd.媒体信息.媒体类型;
                imgInfo.VPath         = Convert.ToDateTime(serialData.序列信息.申请日期).ToString("yyyyMMdd") + @"\" + serialData.申请ID + @"\images";
                imgInfo.File          = Dir.GetAppTempDir()
                                        + @"\" + Convert.ToDateTime(serialData.序列信息.申请日期).ToString("yyyyMMdd")
                                        + @"\" + serialData.申请ID
                                        + @"\images"
                                        + @"\" + smd.媒体信息.媒体名称;

                _images.Add(imgInfo);
            }

            imageView1.ViewCount = _imgViewCount;
            splitPage1.BindList <TileImageInfo>(_images, _imgViewCount);
        }
예제 #2
0
        public void ShowImgPreview(IDBQuery dbHelper, string applyId, IWin32Window owner)
        {
            _dbHelper = dbHelper;
            _applyId  = applyId;

            _studyMediaModel = new StudyMediaSerialModel(dbHelper);

            this.ShowDialog(owner);
        }
예제 #3
0
        public void ShowImgProcess(IDBQuery dbHelper, ILoginUser userData,
                                   string applyId, string imageID, IWin32Window owner)
        {
            _dbHelper      = dbHelper;
            _userData      = userData;
            _applyId       = applyId;
            _selectImageID = imageID;

            _studyMediaModel = new StudyMediaSerialModel(dbHelper);

            this.ShowDialog(owner);
        }
예제 #4
0
        public bool ShowPlan(DataTable dtExecuteInfo, IDBQuery dbHelper, IStationInfo stationInfo, IWin32Window owner)
        {
            _isOk = false;

            _dbHelper      = dbHelper;
            _stationInfo   = stationInfo;
            _dtExecuteInfo = dtExecuteInfo;

            _studyMediaSerialModel = new StudyMediaSerialModel(dbHelper);

            this.ShowDialog(owner);

            return(_isOk);
        }