/// <summary>
        /// 增加一次下载数
        /// </summary>
        /// <param name="file"></param>
        public void Inc(string file, int userid)
        {
            DrugTestingReportDownloadCount bll = new DrugTestingReportDownloadCount();

            bll.Created = DateTime.Now;
            bll.DrugTestingReport_Id = db._mongoCollection.FindOne(Query.EQ("file", file)).id;
            bll.uid = userid;
            bll.Insert();
            db._mongoCollection.Update(Query.EQ("file", file), MongoDB.Driver.Builders.Update.Inc("dowCount", 1));
        }
        /// <summary>
        /// 未下载过
        /// </summary>
        public string[] GetFileListByNotDownload(int uid, int[] Products_Id, string[] pihao, bool containsId = true)
        {
            MongoHelper <DrugTestingReport> db = new MongoHelper <DrugTestingReport>();
            List <string> vals = new List <string>();
            List <MongoDB.Bson.BsonValue> values1 = new List <MongoDB.Bson.BsonValue>();
            List <MongoDB.Bson.BsonValue> values2 = new List <MongoDB.Bson.BsonValue>();
            List <MongoDB.Bson.BsonValue> values3 = new List <MongoDB.Bson.BsonValue>();

            if (Products_Id != null && pihao != null && Products_Id.Length == pihao.Length)
            {
                Dictionary <string, string> dic = new Dictionary <string, string>();
                foreach (int s in Products_Id)
                {
                    values1.Add(s);
                }
                foreach (string s in pihao)
                {
                    values2.Add(s.Trim());
                }
                foreach (string s in DrugTestingReportDownloadCount.GetDrugTestingReport_Id(uid))
                {
                    values3.Add(s);
                }
                foreach (DrugTestingReport model in db._mongoCollection.Find(Query.And(Query.In("Products_Id", values1), Query.In("pihao", values2), Query.NotIn("_id", values3))))
                {
                    if (string.IsNullOrEmpty(model.file))
                    {
                        continue;
                    }
                    if (dic.ContainsKey(model.Products_Id + model.pihao.Trim()))
                    {
                        dic[model.Products_Id + model.pihao.Trim()] = dic[model.Products_Id + model.pihao.Trim()] + "," + (containsId ? model.id + "-" : "") + model.file;
                    }
                    else
                    {
                        dic.Add(model.Products_Id + model.pihao.Trim(), (containsId ? model.id + "-" : "") + model.file);
                    }
                }
                for (int i = 0; i < Products_Id.Length; i++)
                {
                    vals.Add(dic.ContainsKey(Products_Id[i] + pihao[i].Trim()) ? dic[Products_Id[i] + pihao[i].Trim()] : "");
                }
            }
            return(vals.ToArray());
        }