/// <summary>
        /// 验证文件是否存在
        /// 作者:章建国
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public JsonResult isExists(int id, string _type)
        {
            switch (_type)
            {
            case "jkz":
                _type = "健康证";
                break;

            case "clws":
                _type = "车辆卫生";
                break;

            case "jyz":
                _type = "检疫证";
                break;

            case "xdzm":
                _type = "消毒证明";
                break;

            case "jybg":
                _type = "检验报告";
                break;
            }
            ArrayList al = new ArrayList();

            al.Add("false");
            try
            {
                string where = string.Format(" tId={0} and type2='{1}' and type1='供应商管理'", id, _type);
                var      listmodel = _attachmentbll.GetModelList(where);
                string[] iFiles    = new string[listmodel.Count];
                for (int i = 0; i < listmodel.Count; i++)
                {
                    string iFile = AppDomain.CurrentDomain.BaseDirectory + "UpFile//" + listmodel[i].filePath;
                    iFiles[i] = iFile;
                }

                //var strs = model.fileName.Split('.');
                string filename = DateTime.Now.ToFileTime().ToString();
                string oFile    = AppDomain.CurrentDomain.BaseDirectory + "UpFile//DownLoads//" + filename + ".zip";
                //string fileName = model.fileName;
                //if (System.IO.File.Exists(iFile))    // 注意双引号路径应为双斜杠
                //{
                al[0] = "true";
                if (System.IO.File.Exists(oFile))    // 注意双引号路径应为双斜杠
                {
                    System.IO.File.Delete(oFile);
                }
                PublicClass.CompressFile(iFiles, oFile);
                al.Add(oFile);
                al.Add(filename);
                //}
            }
            catch
            {
            }
            return(Json(al, JsonRequestBehavior.AllowGet));
        }
        /// <summary>
        /// 下载文件
        /// 作者:章建国
        /// </summary>
        /// <param name="id">主键ID</param>
        /// <returns></returns>
        public FilePathResult GetFileFromDisk(int id)
        {
            var    model    = _docbll.GetModel(id);
            string iFile    = AppDomain.CurrentDomain.BaseDirectory + "UpFile//" + model.doc_URL;
            var    strs     = model.doc_Name.Split('.');
            string oFile    = AppDomain.CurrentDomain.BaseDirectory + "UpFile//DownLoads//" + strs[0] + ".zip";
            string fileName = model.doc_Name;

            PublicClass.CompressFile(iFile, oFile);
            return(File(oFile, "application/octet-stream", strs[0] + ".zip"));
        }