Exemplo n.º 1
0
 public static void PrefetchImage(ImageKey key)
 {
     if (AppUtil.DbType == AppUtil.DB_YCOM)
     {
         YCOM.PrefetchImage(key);
     }
     else
     {
         throw new NotImplementedException();
     }
 }
Exemplo n.º 2
0
 public static void GetImageInfo(ImageKey key, out ImageTag tag)
 {
     if (AppUtil.DbType == AppUtil.DB_YCOM)
     {
         YCOM.GetImageInfo(key, out tag);
     }
     else
     {
         throw new NotImplementedException();
     }
 }
Exemplo n.º 3
0
 public static void PrefetchImageList(SeriesKey key, out List <string> keys)
 {
     if (AppUtil.DbType == AppUtil.DB_YCOM)
     {
         YCOM.PrefetchImageList(key, out keys);
     }
     else
     {
         throw new NotImplementedException();
     }
 }
Exemplo n.º 4
0
 public static void GetSeriesList(StudyKey key, out List <SeriesTag> tags)
 {
     if (key.IsPacsSearch)
     {
         DCM.GetSeriesList(key, out tags);
     }
     else if (AppUtil.DbType == AppUtil.DB_RS)
     {
         RS.GetSeriesList(key, out tags);
     }
     else if (AppUtil.DbType == AppUtil.DB_YCOM)
     {
         YCOM.GetSeriesList(key, out tags);
     }
     else
     {
         LCL.GetSeriesList(key, out tags);
     }
 }
Exemplo n.º 5
0
 public static bool GetStudyKey(FindParam prm, out string patientid, out List <string> studykey)
 {
     if (prm.IsPacsSearch)
     {
         return(DCM.GetStudyKey(prm, out patientid, out studykey));
     }
     else if (AppUtil.DbType == AppUtil.DB_RS)
     {
         return(RS.GetStudyKey(prm, out patientid, out studykey));
     }
     else if (AppUtil.DbType == AppUtil.DB_YCOM)
     {
         return(YCOM.GetStudyKey(prm, out patientid, out studykey));
     }
     else
     {
         return(LCL.GetStudyKey(prm, out patientid, out studykey));
     }
 }
Exemplo n.º 6
0
 public static void GetStudyList_Kako(string patientid, StudyKey key, out List <StudyTag> tags)
 {
     if (key.IsPacsSearch)
     {
         DCM.GetStudyList_Kako(patientid, key, out tags);
     }
     else if (AppUtil.DbType == AppUtil.DB_RS)
     {
         RS.GetStudyList_Kako(patientid, key, out tags);
     }
     else if (AppUtil.DbType == AppUtil.DB_YCOM)
     {
         YCOM.GetStudyList_Kako(patientid, key, out tags);
     }
     else
     {
         LCL.GetStudyList_Kako(patientid, key, out tags);
     }
 }
Exemplo n.º 7
0
        //T

        public static void GetStudyList(FindParam prm, out List <StudyTag> tags, out int count)
        {
            if (prm.IsPacsSearch)
            {
                DCM.GetStudyList(prm, out tags, out count);
            }
            else if (AppUtil.DbType == AppUtil.DB_RS)
            {
                RS.GetStudyList(prm, out tags, out count);
            }
            else if (AppUtil.DbType == AppUtil.DB_YCOM)
            {
                YCOM.GetStudyList(prm, out tags, out count);
            }
            else
            {
                LCL.GetStudyList(prm, out tags, out count);
            }
        }
Exemplo n.º 8
0
 public static void GetThumbnail(SeriesKey key, out byte[] thumb, out bool save)
 {
     if (key.IsPacsSearch)
     {
         DCM.GetThumbnail(key, out thumb);
         save = true;
     }
     else if (AppUtil.DbType == AppUtil.DB_RS)
     {
         RS.GetThumbnail(key, out thumb);
         save = false;
     }
     else if (AppUtil.DbType == AppUtil.DB_YCOM)
     {
         YCOM.GetThumbnail(key, out thumb, out save);
     }
     else
     {
         LCL.GetThumbnail(key, out thumb);
         save = true;
     }
 }
Exemplo n.º 9
0
 public static void GetImageList(LoginItem login, SeriesKey key, out List <ImageTag> imTags, out List <SeriesTag> seTags)
 {
     if (key.IsPacsSearch)
     {
         DCM.GetImageList(login, key, out imTags, out seTags);
     }
     else if (AppUtil.DbType == AppUtil.DB_RS)
     {
         RS.GetImageList(key, out imTags);
         seTags = null;
     }
     else if (AppUtil.DbType == AppUtil.DB_YCOM)
     {
         YCOM.GetImageList(key, out imTags);
         seTags = null;
     }
     else
     {
         LCL.GetImageList(key, out imTags);
         seTags = null;
     }
 }
Exemplo n.º 10
0
        public static YCom Open(int no, string serverAETitle)
        {
            string key = no + "_" + serverAETitle;

            if (lockObjs.ContainsKey(key))
            {
                return(lockObjs[key]);
            }

            lock (sync)
            {
                if (lockObjs.ContainsKey(key))
                {
                    return(lockObjs[key]);
                }

                var sv = YCOM.GetStoreServer(serverAETitle);
                if (sv == null || sv.IPAddr == "" || sv.PortNumber == "")
                {
                    LogUtil.Error1("YCOM AEエラー[{0}]", serverAETitle);
                    return(null);
                }

                int port = 0;
                Int32.TryParse(sv.PortNumber, out port);

                var             ycom   = new YCom(sv.IPAddr, port, AppUtil.YComClientInfo, AppUtil.YComHospitalID, AppUtil.YComUserID);
                YComErrorStatus status = ycom.Open();
                if (status != YComErrorStatus.Success)
                {
                    LogUtil.Error("YComErrorStatus=" + status);
                }

                lockObjs.Add(key, ycom);
                return(ycom);
            }
        }