Exemplo n.º 1
0
 public void InitForm(MReport mReport, MStudy mStudy, string Path)
 {
     this.mStudy  = mStudy;
     this.mReport = mReport;
     DisplayWord(Path);
     FillData();
     this.Text = "申请序号:" + mStudy.EXAM_ACCESSION_NUM;
 }
Exemplo n.º 2
0
        private void dgv_Study_Click(object sender, EventArgs e)
        {
            if (dgv_Study.SelectedRows.Count <= 0)
            {
                return;
            }
            string ExamAccessionNum = dgv_Study.SelectedRows[0].Cells["EXAM_ACCESSION_NUM"].Value.ToString().Trim();

            if (!Directory.Exists(TemDir))
            {
                Directory.CreateDirectory(TemDir);
            }
            imgCopy      = new ImageCopy();
            this.mStudy  = (SIS_Model.MStudy)bs.GetModel(ExamAccessionNum);
            this.mReport = imgCopy.PacsReportDownLoad(this.mStudy, TemDir);
            this.Path    = TemDir + "\\" + ExamAccessionNum + ".doc";
            this.gb_HistoryRptInfo.Visible = false;
        }
Exemplo n.º 3
0
        /// <summary>
        /// 下载报告
        /// </summary>
        /// <returns></returns>
        public SIS_Model.MReport PacsReportDownLoad(SIS_Model.MStudy mStudy, string saveDir)
        {
            SIS_Model.MReport mReport = (SIS_Model.MReport)bReport.GetModel(mStudy.EXAM_ACCESSION_NUM);
            if (mReport == null)
            {
                return(null);
            }
            string ReportPath = saveDir + "\\" + mStudy.EXAM_ACCESSION_NUM + ".doc";

            if (mReport.REPORT_NAME == null)
            {
                SIS_Model.MPrintTemplateDict mPrint = (SIS_Model.MPrintTemplateDict)bPrint.GetModel(mStudy.EXAM_CLASS, mStudy.EXAM_SUB_CLASS);
                if (mPrint != null)
                {
                    FileOp.FileSave(mPrint.FILE_NAME, ReportPath);
                    mReport.FIELD_INF = mPrint.FIELD_INF;
                }
                else//无此检查类别,检查子类的打印模版时,下载此检查类别下的默认打印模版
                {
                    DataTable dt = bPrint.GetList("EXAM_CLASS = '" + mStudy.EXAM_CLASS + "'");
                    if (dt.Rows.Count > 0)
                    {
                        mPrint = (SIS_Model.MPrintTemplateDict)bPrint.GetModel(dt.Rows[0]);
                        FileOp.FileSave(mPrint.FILE_NAME, ReportPath);
                        mReport.FIELD_INF = mPrint.FIELD_INF;
                    }
                    else
                    {
                        return(null);
                    }
                }
            }
            else
            {
                FileOp.FileSave(mReport.REPORT_NAME, ReportPath);
            }
            return(mReport);
        }