Ejemplo n.º 1
0
        private void lblImage_Click(object sender, EventArgs e)
        {
            string pacsstyle = App.Read_ConfigInfo("SYSTEMSET", "PACSSTYLE", Application.StartupPath + "\\Config.ini");
            string webPath   = App.Read_ConfigInfo("SYSTEMSET", "PACSWEBPATH", Application.StartupPath + "\\Config.ini");

            if (pacsstyle == "1")
            {
                //调用PACS客户端程序
                try
                {
                    XePacsInit();//PACS初始化
                    XePacsCall(2, this.Zyhm, 1);
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.ToString());
                }
            }
            else
            {
                //网页
                string url = @"http://" + webPath + @"/WebPacs/webpacs/pacs?type=pipid&view=image&id=" + Zyhm + "";
                HisInStance.frmPicShow fc = new frmPicShow(url);
                fc.ShowDialog();
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 报告查看
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void lblReport_Click(object sender, EventArgs e)
        {
            // DataSet ds_path = App.GetDataSet("select * from t_ser_address_list where type='P'");
            // string wpath = ds_path.Tables[0].Rows[0]["ADDRESS"].ToString();
            //string url = @"http://" + wpath + "/" + this.Zyhm + @"/" + this.Jch + ".pdf";
            string webPath = App.Read_ConfigInfo("SYSTEMSET", "PACSWEBPATH", Application.StartupPath + "\\Config.ini");
            string url     = @"http://" + webPath + @"/WebPacs/webpacs/pacs?type=pipid&view=report&id=" + Zyhm + "";

            HisInStance.frmPicShow fc = new frmPicShow(url);
            fc.ShowDialog();
        }