/// <summary>
        /// 下载文件的具体方法
        /// </summary>
        /// <returns>成功则为true,失败异常则为false</returns>
        public ActionResult DownLoadFile(string path, string fileName)
        {
            //path = Server.MapPath(path);
            string msg = "";

            if (!System.IO.File.Exists(path))
            {
                var model = design_ProjectDrawingsBLL.GetModel(p => p.存储路径 == path);
                model.备注 = "false";
                try
                {
                    design_ProjectDrawingsBLL.Modify(model);
                }
                catch (Exception e)
                {
                    return(Content(e.Message));
                }

                msg = "<script>alert('文件下载失败!');parent.location.href='Index';</script>";
                return(Content(msg));
            }
            FileStream fs = new FileStream(path, FileMode.Open);

            byte[] bytes = new byte[(int)fs.Length];
            fs.Read(bytes, 0, bytes.Length);
            fs.Close();
            FileInfo fi = new FileInfo(path);
            //**********处理可以解决文件类型问题
            string      fileextname = fi.Extension;
            string      DEFAULT_CONTENT_TYPE = "application/unknown";
            RegistryKey regkey, fileextkey;
            string      filecontenttype;

            try
            {
                regkey          = Registry.ClassesRoot;
                fileextkey      = regkey.OpenSubKey(fileextname);
                filecontenttype = fileextkey.GetValue("Content Type", DEFAULT_CONTENT_TYPE).ToString();
            }
            catch
            {
                filecontenttype = DEFAULT_CONTENT_TYPE;
            }
            //**********end
            Response.Charset         = "UTF-8";
            Response.ContentEncoding = System.Text.Encoding.GetEncoding("UTF-8");
            Response.ContentType     = filecontenttype;


            Response.AddHeader("Content-Disposition", "attachment; filename=" + fileName);//设置文件信息
            Response.BinaryWrite(bytes);
            Response.Flush();
            Response.End();
            return(new EmptyResult());
        }