/// <summary>预览</summary>
        /// <param name="sendstring"></param>
        private void BindWebBrower(string sendstring)
        {
            if (sendstring != "" && sendstring != null)
            {
                #region >>>> zhangw 显示报告
                //删除其他PDF文件 正在显示的不删除
                WinFileTransporter.DeleteFolder(FileOrPath);
                Createfile();                                                 //创建PDF文件夹
                string    FilePath = FileOrPath;
                string    filename = FilePath + " 预览:" + sendstring + ".pdf"; //打包后的PDF文件名称
                bool      isA4     = true;
                ArrayList fileList = new ArrayList();
                Hashtable ha       = new Hashtable();
                ha.Add("Hospsampleid", sendstring);                                     //达安条码
                List <DAReport> da = new DAReportBLL().SelectDAReportByRequestcode(ha); //是否存在多个报告单
                //显示报告控件
                this.webPdfReader.Visible = true;
                string PDFPath = string.Empty;
                if (da.Count == 0)
                {
                    #region 没有报告
                    this.webPdfReader.Visible = false;
                    ShowMessageHelper.ShowBoxMsg("没有报告预览!");
                    this.Close();
                    return;

                    #endregion
                }
                else if (da.Count == 1)
                {
                    #region 单个报告
                    string pdfFilePath = FileOrPath + sendstring + ".PDF";
                    //文件存在则更换名称
                    if (File.Exists(pdfFilePath))
                    {
                        pdfFilePath = FileOrPath + sendstring + "_1.PDF";
                    }
                    byte[] buff = da[0].Reportdata;
                    if (da[0].Reportdata == null)
                    {
                        this.webPdfReader.Visible = false;
                        ShowMessageHelper.ShowBoxMsg("没有报告预览!");
                        this.Close();
                        return;
                    }
                    CreatPath(pdfFilePath, buff);
                    PDFPath = pdfFilePath;
                    #endregion
                }
                else if (da.Count > 1)
                {
                    #region 多份报告 合并
                    for (int i = 0; i < da.Count; i++)
                    {
                        fileList.Add(da[i].Requestcode + "_" + i);
                    }
                    String[] files = new string[fileList.Count];
                    for (int i = 0; i < fileList.Count; i++)
                    {
                        #region
                        // string FilePath = Application.StartupPath + "\\PDF打印\\";;   //设置PDF路径
                        files[i] = FilePath + fileList[i].ToString() + ".PDF"; //设置PDF文件名称
                        string path = files[i];                                //打开PDF路径
                        if (fileList[i].ToString().Contains("_"))              //设置路径是否包含多个
                        {
                            if (da.Count > 1)
                            {
                                for (int m = 0; m < da.Count; m++)
                                {
                                    if (fileList[i].ToString() == da[m].Requestcode + "_" + m)
                                    {
                                        path = FilePath + da[m].Requestcode + "_" + m + ".PDF";
                                        byte[] buff = da[m].Reportdata;
                                        CreatPath(path, buff);
                                    }
                                }
                            }
                            else
                            {
                                byte[] buff = da[0].Reportdata;
                                CreatPath(path, buff);
                            }
                        }
                        else
                        {
                            if (da.Count != 0)
                            {
                                byte[] buff = da[0].Reportdata;
                                CreatPath(path, buff);
                            }
                        }
                        #endregion
                    }
                    mergePDFFiles(files, filename, isA4);
                    PDFPath = filename;
                    #endregion
                }
                this.webPdfReader.Navigate(PDFPath);  //预览PDF
                #endregion
            }
        }
        //生成PDF转换成image
        public void BindRightData(string Hospsampleid, string requestcode)
        {
            Createfile();                                                                              //创建PDF文件夹
            string    FilePath            = FileOrPath;
            string    filename            = FilePath + "" + Hospsampleid + "_" + requestcode + ".pdf"; //打包后的PDF文件名称
            bool      isA4                = true;
            ArrayList fileList            = new ArrayList();
            ArrayList fileListrequestcode = new ArrayList();
            Hashtable ha = new Hashtable();

            ha.Add("Requestcode", requestcode);                                          //达安条码
            ha.Add("Hospsampleid", Hospsampleid);
            List <DAReport> da      = new DAReportBLL().SelectDAReportByRequestcode(ha); //是否存在多个报告单
            string          PDFPath = string.Empty;

            if (da.Count == 0)
            {
                #region 没有报告
                return;

                #endregion
            }
            else if (da.Count == 1)
            {
                #region 单个报告
                string pdfFilePath = FileOrPath + Hospsampleid + "_" + requestcode + ".PDF";
                //文件存在则更换名称
                if (File.Exists(pdfFilePath))
                {
                    pdfFilePath = FileOrPath + Hospsampleid + "_" + requestcode + "_1.PDF";
                }
                byte[] buff = da[0].Reportdata;
                if (da[0].Reportdata == null)
                {
                }
                CreatPath(pdfFilePath, buff);
                PDFPath = pdfFilePath;
                #endregion
            }
            else if (da.Count > 1)
            {
                #region 多份报告 合并
                for (int i = 0; i < da.Count; i++)
                {
                    fileList.Add(da[i].Hospsampleid + "_" + requestcode + "_" + i);
                }
                String[] files = new string[fileList.Count];
                for (int i = 0; i < fileList.Count; i++)
                {
                    #region
                    // string FilePath = Application.StartupPath + "\\PDF打印\\";;   //设置PDF路径
                    files[i] = FilePath + fileList[i].ToString() + ".PDF"; //设置PDF文件名称
                    string path = files[i];                                //打开PDF路径
                    if (fileList[i].ToString().Contains("_"))              //设置路径是否包含多个
                    {
                        if (da.Count > 1)
                        {
                            for (int m = 0; m < da.Count; m++)
                            {
                                if (fileList[i].ToString() == da[m].Hospsampleid + "_" + requestcode + "_" + m)
                                {
                                    path = FilePath + da[m].Hospsampleid + "_" + requestcode + "_" + m + ".PDF";
                                    byte[] buff = da[m].Reportdata;
                                    CreatPath(path, buff);
                                }
                            }
                        }
                        else
                        {
                            byte[] buff = da[0].Reportdata;
                            CreatPath(path, buff);
                        }
                    }
                    else
                    {
                        if (da.Count != 0)
                        {
                            byte[] buff = da[0].Reportdata;
                            CreatPath(path, buff);
                        }
                    }
                    #endregion
                }
                mergePDFFiles(files, filename, isA4);
                PDFPath = filename;
                #endregion
            }
            bool falg = ConvertPDF2Image(PDFPath, FileOrPathImages, Hospsampleid + "_" + requestcode, Hospsampleid, 1, 15, ImageFormat.Jpeg, 5);
            bool test;
            if (falg)
            {
                Hashtable ht = new Hashtable();
                ht.Add("Status", 5);
                ht.Add("Hospsampleid", Hospsampleid);
                ht.Add("requestcode", requestcode);
                test = new DAOutSpecimenBLL().UpdateDAOutspecimenByHospsampleid(ht);
                if (test)
                {
                    SetTB("医院条码:" + Hospsampleid + ", 达安条码:" + requestcode + "转换成功!");
                }
            }
        }