예제 #1
0
        //影像信息查询  Add by zp 2013-10-12
        private void toolStripMenuItem2_Click(object sender, EventArgs e)
        {
            try
            {
                try
                {
                    if (this.dataGridView1.CurrentRow == null)
                    {
                        MessageBox.Show("请先选择病人记录!", "提示");
                    }
                    if (ApiFunction.GetIniString("PACS", "是否启用", Constant.ApplicationDirectory + "\\pacs.ini").Trim() != "1")
                    {
                        MessageBox.Show("对不起,暂未启用PACS接口!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                        return;
                    }

                    string pacsName = ApiFunction.GetIniString("PACS", "PACS类型", Constant.ApplicationDirectory + "\\pacs.ini");
                    ts_pacs_interface.Ipacs pacs = ts_pacs_interface.PacsFactory.Pacs(pacsName);

                    string _brid  = this.dataGridView1.CurrentRow.Cells["BRXXID"].Value.ToString();
                    Guid   brxxid = new Guid(_brid);
                    pacs.ShowPatPacsInfo(brxxid, ts_pacs_interface.PatientSource.门诊);

                    //GetPacsInfo(id);
                }
                catch (Exception ex)
                {
                    MessageBox.Show("没有找到有效的记录,请重新查证!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
            }
            catch (Exception ea)
            {
                MessageBox.Show("出现异常!原因:" + ea.Message, "提示");
            }
        }
예제 #2
0
        /// <summary>
        /// 查看Pasc结果
        /// </summary>
        /// <param name="id"></param>
        public void ReadPacsInfo(Guid id)
        {
            string pacsName = "";

            try
            {
                pacsName = ApiFunction.GetIniString("PACS", "PACS类型", Constant.ApplicationDirectory + "\\pacs.ini");
                ts_pacs_interface.Ipacs pacs = ts_pacs_interface.PacsFactory.Pacs(pacsName);
                pacs.ShowPacsInfo(id.ToString(), ts_pacs_interface.PatientSource.门诊);

                //GetPacsInfo(id);
            }
            catch (Exception ex)
            {
                MessageBox.Show("没有找到有效的记录,请重新查证!\n" + ex.Message + pacsName, "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }