Пример #1
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);
        }
Пример #2
0
 public static DataAccess.T_Bug GetBug(long id)
 {
     DataAccess.Bug b = new DataAccess.Bug();
     return (b.GetBug(id));
 }