Beispiel #1
0
        private void btn_PatientPack_Click(object sender, EventArgs e)
        {
            if (l_discVolumeKey.Text.Trim() == "")
            {
                MessageBoxEx.Show("卷标不能为空!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            isoTrack             = new NeroISOTrackClass();
            isoTrack.BurnOptions = (NERO_BURN_OPTIONS)((uint)NERO_BURN_OPTIONS.NERO_BURN_OPTION_CREATE_ISO_FS + (uint)NERO_BURN_OPTIONS.NERO_BURN_OPTION_USE_JOLIET);
            isoTrack.Name        = l_discVolumeKey.Text;

            string tpPath = opini.IniReadValue("NeroBurn", "TempDirect");   //下载的文件默认存放的目录

            //下载所选记录的文件到本地
            switch (ILL.GetConfig.DALAndModel)
            {
            case "SIS":
                if (dgv_WorkList.SelectedRows.Count <= 0)
                {
                    MessageBoxEx.Show("请选择需要打包的记录!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    return;
                }
                GetDownFile_WorkList(null, tpPath);
                break;

            case "PACS":
                if (dgv_study.SelectedRows.Count <= 0)
                {
                    MessageBoxEx.Show("请选择需要打包的记录!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    return;
                }
                GetDownFile_Study(null, tpPath);
                break;
            }
        }
Beispiel #2
0
        private void AddFileToISOTrack(ref NeroISOTrack isoTrack, string sPath, NeroFolder folderParent)
        {
            NeroFile file = new NeroFileClass();

            file.SourceFilePath = sPath;
            file.Name           = Path.GetFileName(sPath);
            file.EntryTime      = Directory.GetLastWriteTime(sPath);
            folderParent.Files.Add(file);
        }
Beispiel #3
0
        private void btn_TimePack_Click(object sender, EventArgs e)
        {
            if (l_discVolumeKey.Text.Trim() == "")
            {
                MessageBoxEx.Show("卷标不能为空!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            isoTrack             = new NeroISOTrackClass();
            isoTrack.BurnOptions = (NERO_BURN_OPTIONS)((uint)NERO_BURN_OPTIONS.NERO_BURN_OPTION_CREATE_ISO_FS + (uint)NERO_BURN_OPTIONS.NERO_BURN_OPTION_USE_JOLIET);
            isoTrack.Name        = l_discVolumeKey.Text;

            string tpPath = opini.IniReadValue("NeroBurn", "TempDirect");   //下载的文件默认存放的目录
            //下载所选记录的文件到本地
            string sql = "STUDY_DATE_TIME between to_date('" + dtp_StudyS.Value.ToString() +
                         "','YYYY-MM-DD HH24:MI:SS') AND TO_DATE('" + dtp_Studye.Value.ToString() + "','YYYY-MM-DD HH24:MI:SS') ";

            switch (ILL.GetConfig.DALAndModel)
            {
            case "SIS":
                DataTable dt = b_worklist.GetList(sql);
                if (dt.Rows.Count <= 0)
                {
                    MessageBoxEx.Show("未查找到需要打包的数据!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    return;
                }
                GetDownFile_WorkList(dt, tpPath);
                break;

            case "PACS":
                DataTable dt1 = b_study.GetList(sql);
                if (dt1.Rows.Count <= 0)
                {
                    MessageBoxEx.Show("未查找到需要打包的数据!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    return;
                }
                GetDownFile_Study(dt1, tpPath);
                break;
            }
        }