Exemplo n.º 1
0
        public string GetDicomFile(int serialNo, bool needP2P)
        {
            var image = _dbHelper.GetImage(serialNo);

            if (image == null)
            {
                return(string.Empty);
            }

            var dcmFile = Path.Combine(_dbHelper.GetImageRootDir(serialNo), image.FilePath);

            if (!needP2P)
            {
                return(dcmFile);
            }

            var processedFile = "D:\\" + image.SopInstanceUid + ".dcm";

            var ret = MiniPacsDllImporter.dicom_p2p(image.SopInstanceUid, string.Empty, dcmFile, processedFile, 3);

            return(ret == 1 ? processedFile : string.Empty);
        }
Exemplo n.º 2
0
        public bool DicomP2P(string sopInstanceUid, string inputFile, string outputFile, int opMask)
        {
            var ret = MiniPacsDllImporter.dicom_p2p(sopInstanceUid, string.Empty, inputFile, outputFile, opMask);

            return(ret == 0);
        }