Example #1
0
        /// <summary>
        /// 文件不通过审查
        /// </summary>
        /// <param name="pFile"></param>
        public void fileNoPass(Post_file pFile)
        {
            Treat_file tFile = new Treat_file();

            tFile.title    = pFile.title;
            tFile.content  = pFile.content;
            tFile.username = pFile.username;
            tFile.status   = 2;
            helperP.DeletePost_file(pFile);
            helperT.CreateTreatFile(tFile);
        }
Example #2
0
        public void GetTFileByIdTest()
        {
            Treat_file tFile = fileBL.GetTFileById(18);

            Assert.AreEqual(tFile.id, 18);
        }
Example #3
0
        public void DeleteTFileById(int id)
        {
            Treat_file tFile = GetTFileById(id);

            helperT.DeleteTreat_file(tFile);
        }
 public void UpdateTreat_file(Treat_file file)
 {
     _session.Update(file);
     _session.Flush();
 }
 public void DeleteTreat_file(Treat_file file)
 {
     _session.Delete(file);
     _session.Flush();
 }
 public void CreateTreatFile(Treat_file treatfile)
 {
     _session.Save(treatfile);
     _session.Flush();
 }