示例#1
0
        /// <summary>
        /// 新增教材体系
        /// </summary>
        /// <param name="knowledge">新增的教材体系信息</param>
        /// <returns></returns>
        public int AddKnowledge(Knowledge knowledge)
        {
            int id = dal.AddKnowledge(knowledge);

            objLogBll.WriteLog("新增教材体系“" + knowledge.KnowledgeName + "”基本信息");
            return(id);
        }
示例#2
0
        /// <summary>
        /// 新增辅助分类
        /// </summary>
        /// <param name="itemCategory">辅助分类</param>
        /// <returns>数据库受影响的行数</returns>
        public int AddItemCategory(ItemCategory itemCategory)
        {
            int id = dal.AddItemCategory(itemCategory);

            objLogBll.WriteLog("新增辅助分类“ " + itemCategory.CategoryName + "”基本信息");
            return(id);
        }
示例#3
0
        /// <summary>
        /// 新增知识类别
        /// </summary>
        /// <param name="examCategory">新增的知识类别信息</param>
        /// <returns></returns>
        public int AddExamCategory(ExamCategory examCategory)
        {
            int id = dal.AddExamCategory(examCategory);

            objLogBll.WriteLog("新增考试类别“" + examCategory.CategoryName + "”基本信息");
            return(id);
        }
示例#4
0
        public int AddCourseware(Courseware courseware)
        {
            int id = dal.AddCourseware(courseware);

            objLogBll.WriteLog("新增课件《"   + courseware.CoursewareName + "》基本信息"  );
            return(id);
        }
示例#5
0
        public int AddExam(RandomExam exam)
        {
            int id = dal.AddExam(exam);

            objLogBll.WriteLog("ÐÂÔöËæ»ú¿¼ÊÔ£º" + exam.ExamName);
            return(id);
        }
示例#6
0
        /// <summary>
        /// 新增课件类别
        /// </summary>
        /// <param name="coursewareType">新增的课件类别信息</param>
        /// <returns></returns>
        public int AddCoursewareType(CoursewareType coursewareType)
        {
            int id = dal.AddCoursewareType(coursewareType);

            objLogBill.WriteLog("新增课件类别“" +  coursewareType.CoursewareTypeName  + "”");
            return(id);
        }
        /// <summary>
        /// 新增辅导教材体系
        /// </summary>
        /// <param name="assistBookCategory">新增的辅导教材体系信息</param>
        /// <returns></returns>
        public int AddAssistBookCategory(AssistBookCategory assistBookCategory)
        {
            int id = dal.AddAssistBookCategory(assistBookCategory);

            objLogBll.WriteLog("新增辅导教材体系“" + assistBookCategory.AssistBookCategoryName + "”基本信息");
            return(id);
        }
示例#8
0
        public int AddExam(Exam exam)
        {
            int id = dal.AddExam(exam);

            objLogBll.WriteLog("新增考试:" + exam.ExamName);
            return(id);
        }
示例#9
0
        public int AddBook(Book book)
        {
            int bookid = dal.AddBook(book, SessionSet.EmployeeName);

            objLogBll.WriteLog("新增教材《" + book.bookName + "》基本信息");

            return(bookid);
        }
示例#10
0
        public void AddAssistBookChapter(AssistBookChapter bookChapter)
        {
            dal.AddAssistBookChapter(bookChapter, SessionSet.EmployeeName);

            AssistBookBLL objBll      = new AssistBookBLL();
            string        strBookName = objBll.GetAssistBook(bookChapter.AssistBookId).BookName;

            GetIndex(bookChapter.AssistBookId.ToString());

            objLogBill.WriteLog("新增辅导教材《" + strBookName + "》中“" + bookChapter.ChapterName + "”章节基本信息");
        }
示例#11
0
        /// <summary>
        /// 添加试题
        /// </summary>
        /// <returns>受影响的行数</returns>
        public int AddItem(Item item)
        {
            int            id             = dal.AddItem(item);
            BookChapterBLL objChapterBll  = new BookChapterBLL();
            string         strChapterName = objChapterBll.GetBookChapter(item.ChapterId).ChapterName;
            BookBLL        objBookBll     = new BookBLL();
            string         strBookName    = objBookBll.GetBook(item.BookId).bookName;

            objLogBll.WriteLog("新增教材《" + strBookName + "》中“" + strChapterName + "”的试题信息");
            return(id);
        }
示例#12
0
        public void AddBookChapter(BookChapter bookChapter)
        {
            dal.AddBookChapter(bookChapter, SessionSet.EmployeeName);

            BookBLL objBll = new BookBLL();

            if (bookChapter.IsEdit)
            {
                objBll.UpdateBookVersion(bookChapter.BookId);
            }
            string strBookName = objBll.GetBook(bookChapter.BookId).bookName;

            GetIndex(bookChapter.BookId.ToString());

            objLogBill.WriteLog("新增教材《" + strBookName + "》中“" + bookChapter.ChapterName + "”章节基本信息");
        }
示例#13
0
        /// <summary>
        /// 删除角色
        /// </summary>
        /// <param name="roleID">要删除的角色ID</param>
        public void DeleteRole(int roleID)
        {
            string       strName      = GetRole(roleID).RoleName;
            SystemLogBLL systemLogBLL = new SystemLogBLL();

            systemLogBLL.WriteLog("删除角色“" + strName + "”基本信息");
            dal.DeleteRole(roleID);
        }
示例#14
0
        /// <summary>
        /// 删除员工
        /// </summary>
        /// <param name="employee">要删除的员工</param>
        public void DeleteEmployee(Employee employee)
        {
            Employee     obj          = GetEmployee(employee.EmployeeID);
            SystemLogBLL systemLogBLL = new SystemLogBLL();

            systemLogBLL.WriteLog("删除员工:" + obj.EmployeeName + "(" + obj.WorkNo + ")基本信息");
            dal.DeleteEmployee(employee.EmployeeID);
        }
示例#15
0
        public void UpdateNotice(Notice notice)
        {
            if (dal.UpdateNotice(notice))
            {
                SystemLogBLL systemLogBLL = new SystemLogBLL();

                systemLogBLL.WriteLog("修改通知");
            }
        }
示例#16
0
        /// <summary>
        /// 删除用户
        /// </summary>
        /// <param name="userID">要删除的用户ID</param>
        public void DeleteUser(string userID)
        {
            EmployeeBLL  objBll       = new EmployeeBLL();
            Employee     obj          = objBll.GetEmployee(GetUser(userID).EmployeeID);
            SystemLogBLL systemLogBLL = new SystemLogBLL();

            systemLogBLL.WriteLog("删除员工“" + obj.EmployeeName + "(" + obj.WorkNo + ")”用户登录信息");
            dal.DeleteUser(userID);
        }
示例#17
0
        public void DeleteNotice(int noticeID)
        {
            if (dal.DeleteNotice(noticeID))
            {
                SystemLogBLL systemLogBLL = new SystemLogBLL();

                systemLogBLL.WriteLog("删除通知");
            }
        }
示例#18
0
        public void UpdateBulletin(Bulletin bulletin)
        {
            if (dal.UpdateBulletin(bulletin))
            {
                SystemLogBLL systemLogBLL = new SystemLogBLL();

                systemLogBLL.WriteLog("更新的信息公告ID为:" + bulletin.BulletinID.ToString());
            }
        }
示例#19
0
        public void UpdateEmployee1(Employee employee)
        {
            if (dal.UpdateEmployee1(employee) && employee.Flag)
            {
                SystemLogBLL systemLogBLL = new SystemLogBLL();

                systemLogBLL.WriteLog("修改员工:" + employee.EmployeeName + "(" + employee.WorkNo + ")基本信息");
            }
        }
示例#20
0
        /// <summary>
        /// 更新角色
        /// </summary>
        /// <param name="role">更新后的角色信息</param>
        public void UpdateRole(SystemRole systemRole)
        {
            if (dal.UpdateRole(systemRole))
            {
                SystemLogBLL systemLogBLL = new SystemLogBLL();

                systemLogBLL.WriteLog("修改角色“" + systemRole.RoleName + "”基本信息");
            }
        }
示例#21
0
        public void DeleteBulletin(int bulletinID)
        {
            if (dal.DeleteBulletin(bulletinID))
            {
                SystemLogBLL systemLogBLL = new SystemLogBLL();

                systemLogBLL.WriteLog("删除的信息公告ID为:" + bulletinID.ToString());
            }
        }
示例#22
0
 /// <summary>
 /// 更新用户
 /// </summary>
 /// <param name="user">更新后的用户信息</param>
 public void UpdateUser(SystemUser systemUser)
 {
     if (dal.UpdateUser(systemUser) && systemUser.Flag)
     {
         EmployeeBLL  objBll       = new EmployeeBLL();
         Employee     obj          = objBll.GetEmployee(systemUser.EmployeeID);
         SystemLogBLL systemLogBLL = new SystemLogBLL();
         systemLogBLL.WriteLog("修改员工“" + obj.EmployeeName + "(" + obj.WorkNo + ")”用户登录信息");
     }
 }
示例#23
0
 /// <summary>
 /// 新增用户
 /// </summary>
 /// <param name="user">新增的用户信息</param>
 /// <returns></returns>
 public void AddUser(SystemUser systemUser)
 {
     if (dal.AddUser(systemUser))
     {
         EmployeeBLL  objBll       = new EmployeeBLL();
         Employee     obj          = objBll.GetEmployee(systemUser.EmployeeID);
         SystemLogBLL systemLogBLL = new SystemLogBLL();
         systemLogBLL.WriteLog("新增员工“" + obj.EmployeeName + "(" + obj.WorkNo + ")”用户登录信息");
     }
 }
示例#24
0
        /// <summary>
        /// 更新范围权限
        /// </summary>
        /// <param name="roleID"></param>
        /// <param name="systemRoleRights"></param>
        public void UpdateRoleRightClass(int roleID, IList <SystemRoleRight> systemRoleRights)
        {
            if (dal.UpdateRoleRightClass(roleID, systemRoleRights))
            {
                SystemRoleBLL objBll       = new SystemRoleBLL();
                string        strName      = objBll.GetRole(roleID).RoleName;
                SystemLogBLL  systemLogBLL = new SystemLogBLL();

                systemLogBLL.WriteLog("修改角色“" + strName + "”范围权限");
            }
        }
示例#25
0
        /// <summary>
        /// 新增员工
        /// </summary>
        /// <param name="employee">新增的员工信息</param>
        /// <returns></returns>
        public int AddEmployee(Employee employee)
        {
            int nEmployeeID = dal.AddEmployee(employee);

            if (nEmployeeID > 0)
            {
                SystemLogBLL systemLogBLL = new SystemLogBLL();

                systemLogBLL.WriteLog("新增员工:" + employee.EmployeeName + "(" + employee.WorkNo + ")基本信息");
            }

            return(nEmployeeID);
        }
示例#26
0
        /// <summary>
        /// 新增角色
        /// </summary>
        /// <param name="role">新增的角色信息</param>
        /// <returns></returns>
        public int AddRole(SystemRole systemRole)
        {
            int nRoleID = dal.AddRole(systemRole);

            if (nRoleID > 0)
            {
                SystemLogBLL systemLogBLL = new SystemLogBLL();

                systemLogBLL.WriteLog("新增角色“" + systemRole.RoleName + "”基本信息");
            }

            return(nRoleID);
        }
示例#27
0
        public int AddNotice(Notice notice)
        {
            int nNoticeID = dal.AddNotice(notice, SessionSet.EmployeeID);

            if (nNoticeID > 0)
            {
                SystemLogBLL systemLogBLL = new SystemLogBLL();

                systemLogBLL.WriteLog("新增通知");
            }

            return(nNoticeID);
        }
示例#28
0
        public int AddBulletin(Bulletin bulletin)
        {
            int nBulletinID = dal.AddBulletin(bulletin, SessionSet.EmployeeID);

            if (nBulletinID > 0)
            {
                SystemLogBLL systemLogBLL = new SystemLogBLL();

                systemLogBLL.WriteLog("添加的信息公告ID为:" + nBulletinID.ToString());
            }

            return(nBulletinID);
        }
示例#29
0
 /// <summary>
 /// 修改试题设置
 /// </summary>
 /// <param name="itemConfig">试题设置</param>
 /// <returns>数据库受影响的行数</returns>
 public int UpdateItemConfig(ItemConfig itemConfig)
 {
     objLogBll.WriteLog("修改试题默认设置");
     return(dal.UpdateItemConfig(itemConfig));
 }
示例#30
0
 public int AddPaper(Paper paper)
 {
     objLogBll.WriteLog("ÐÂÔöÊÔ¾í£º" ¡¡ + paper.PaperName);
     return(dal.AddPaper(paper));
 }