Exemplo n.º 1
0
 public static List<TbComment> RetrieveList(int messageId)
 {
     using (DataAccess.Comment db = new DataAccess.Comment())
     {
         return db.RetrieveList(messageId);
     }
 }
Exemplo n.º 2
0
 public static void Create(TbComment comment)
 {
     using (DataAccess.Comment db = new DataAccess.Comment())
     {
         comment.RegisterDate = DateTime.Now;
         db.Create(comment);
     }
 }
Exemplo n.º 3
0
        public static bool GenerateReportBug(long idBug)
        {
            DBO.BugReport bugreport = new DBO.BugReport();
            DataAccess.Bug bug = new DataAccess.Bug();
            DataAccess.T_Bug b = bug.GetBug(idBug);
            List<DataAccess.T_Bug> li = bug.GetListBug();
            DataAccess.Comment com = new DataAccess.Comment();
            DataAccess.Transaction trans = new DataAccess.Transaction();
            List<DataAccess.T_Transaction> lt = trans.GetListTransaction();

            bugreport.Title = b.title;
            bugreport.Comment = com.getListCommentbyIdbug(idBug);
            foreach (DataAccess.T_Transaction item in lt)
            {
                if (item.T_Bug.id == idBug)
                {
                    bugreport.Statut = item.statut;
                    bugreport.Responsable = item.T_User.name + ' ' + item.T_User.firstname;
                    break;
                }
            }

            return (DataAccess.GenerateDocx.GenerateReportBug(bugreport) != null);
        }
Exemplo n.º 4
0
        public bool UpdateComment(DataAccess.T_Comment comment)
        {
            DataAccess.Comment com = new DataAccess.Comment();

            return com.UpdateComment(comment);
        }
Exemplo n.º 5
0
        public List<DataAccess.T_Comment> GetListCommentbyIdBug(long idBug)
        {
            DataAccess.Comment com = new DataAccess.Comment();

            return com.GetListCommentbyIdBug(idBug);
        }
Exemplo n.º 6
0
 public List<DataAccess.T_Comment> GetListComment()
 {
     DataAccess.Comment com = new DataAccess.Comment();
     return com.GetListComment();
 }
Exemplo n.º 7
0
        public DataAccess.T_Comment GetComment(long id)
        {
            DataAccess.Comment com = new DataAccess.Comment();

            return com.GetComment(id);
        }
Exemplo n.º 8
0
        public bool DeleteComment(long id)
        {
            DataAccess.Comment com = new DataAccess.Comment();

            return com.DeleteComment(id);
        }
Exemplo n.º 9
0
        public bool CreateComment(DataAccess.T_Comment comment, long idUser, long idBug)
        {
            DataAccess.Comment com = new DataAccess.Comment();

            return com.CreateComment(comment, idUser, idBug);
        }