• 大小: 563KB
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2021-07-03
  • 语言: Java
  • 标签:

资源简介

用java实现的班级管理系统,有老师,学生,管理员,功能分明,完成对课程的管理,登录管理,学生管理,老师管理。 如有毕业设计需要:发送邮件 xziblack@sina.com 免费提供相关资料

资源截图

代码片段和文件信息

package com.ourchr.xiangzi.bo;

import java.util.Iterator;
import java.util.List;

import com.ourchr.xiangzi.dao.Factory;
import com.ourchr.xiangzi.dao.imp.ClassManagerDAO;
import com.ourchr.xiangzi.dao.imp.ScoreDAO;
import com.ourchr.xiangzi.pojo.ClassManager;
import com.ourchr.xiangzi.pojo.Course;
import com.ourchr.xiangzi.pojo.CourseTeacher;
import com.ourchr.xiangzi.pojo.Score;
import com.ourchr.xiangzi.pojo.Student;
import com.ourchr.xiangzi.pojo.Teacher;

public class ClassManagerBO {
ClassManagerDAO classManagerDAO=Factory.getFactory().getClassManagerDao();
public boolean isLogin(String username String password) {
Listlist=classManagerDAO.read();
Iterator iterator=list.iterator();
while(iterator.hasNext()){
ClassManager cm=iterator.next();
if(cm.getCode().equals(username)&&cm.getPassword().equals(password))
return true;
}
return false;
}

 public List getStudent(){
 return Factory.getFactory().getStudentDao().read();
 }

public void addScore(List scoreList) {
ScoreDAO scoreDAO=Factory.getFactory().getScoreDao();
scoreDAO.write(scoreList);
}

public List selectScore() {
return Factory.getFactory().getScoreDao().read();
}

public List selectTeacher() {
return Factory.getFactory().getTeacherDao().read();
}

public List selectCourseTeacher() {
return Factory.getFactory().getCourseTeacherDao().read();
}

public boolean addCourse(int codeString name) {
Course course=new Course(codename);
Listlist=Factory.getFactory().getCourseDao().read();
Iterator iterator=list.iterator();
while(iterator.hasNext()){
Course cm=iterator.next();
if(cm.getCode()==code)
return false;
}
list.add(course);
Factory.getFactory().getCourseDao().write(list);
return true;
}

public List selectCourse() {
return Factory.getFactory().getCourseDao().read();
}

public boolean checkCourse(String name) {
Listlist=Factory.getFactory().getCourseDao().read();
Iterator iterator=list.iterator();
while(iterator.hasNext()){
Course cm=iterator.next();
if(cm.getName().equals(name))
return false;
}
return true;
}

public void addCourseTeacher(List list) {
Factory.getFactory().getCourseTeacherDao().write(list);
}

public List selectInfo() {
return Factory.getFactory().getTeacherDao().read();
}

public List displayStudent() {
return Factory.getFactory().getStudentDao().read();
}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        301  2010-09-16 10:59  classManagerSystem\classmanagersystem5\.classpath

     文件        395  2010-09-16 10:59  classManagerSystem\classmanagersystem5\.project

     文件        226  2010-09-14 11:21  classManagerSystem\classmanagersystem5\src\.classpath

     文件        396  2010-09-14 11:21  classManagerSystem\classmanagersystem5\src\.project

     文件        291  2010-09-14 11:21  classManagerSystem\classmanagersystem5\src\datasource\classinfo.txt

     文件        259  2010-09-14 11:21  classManagerSystem\classmanagersystem5\src\datasource\classmanager.txt

     文件        188  2010-09-14 11:21  classManagerSystem\classmanagersystem5\src\datasource\course.txt

     文件          0  2010-09-14 11:21  classManagerSystem\classmanagersystem5\src\datasource\courseteacher.txt

     文件        232  2010-09-14 11:21  classManagerSystem\classmanagersystem5\src\datasource\score.txt

     文件        237  2010-09-14 11:21  classManagerSystem\classmanagersystem5\src\datasource\student.txt

     文件         15  2010-09-14 11:21  classManagerSystem\classmanagersystem5\src\datasource\supermanager.txt

     文件        209  2010-09-14 11:21  classManagerSystem\classmanagersystem5\src\datasource\teacher.txt

     文件       8449  2010-09-15 15:52  classManagerSystem\classmanagersystem5\src\com\ourchr\xiangzi\ui\ClassManagerUI.class

     文件      14685  2010-09-16 14:27  classManagerSystem\classmanagersystem5\src\com\ourchr\xiangzi\ui\ClassManagerUI.java

     文件       4894  2010-09-15 15:52  classManagerSystem\classmanagersystem5\src\com\ourchr\xiangzi\ui\StudentUI.class

     文件       4703  2010-09-16 14:28  classManagerSystem\classmanagersystem5\src\com\ourchr\xiangzi\ui\StudentUI.java

     文件      11248  2010-09-15 15:52  classManagerSystem\classmanagersystem5\src\com\ourchr\xiangzi\ui\SuperManagerUI.class

     文件      17631  2010-09-16 14:32  classManagerSystem\classmanagersystem5\src\com\ourchr\xiangzi\ui\SuperManagerUI.java

     文件       2295  2010-09-15 15:52  classManagerSystem\classmanagersystem5\src\com\ourchr\xiangzi\ui\UI.class

     文件       1099  2010-09-16 08:26  classManagerSystem\classmanagersystem5\src\com\ourchr\xiangzi\ui\UI.java

     文件       1361  2010-09-15 15:52  classManagerSystem\classmanagersystem5\src\com\ourchr\xiangzi\pojo\ClassInfo.class

     文件       1060  2010-09-15 16:06  classManagerSystem\classmanagersystem5\src\com\ourchr\xiangzi\pojo\ClassInfo.java

     文件       1583  2010-09-15 15:52  classManagerSystem\classmanagersystem5\src\com\ourchr\xiangzi\pojo\ClassManager.class

     文件       1095  2010-09-14 11:21  classManagerSystem\classmanagersystem5\src\com\ourchr\xiangzi\pojo\ClassManager.java

     文件       1088  2010-09-15 15:52  classManagerSystem\classmanagersystem5\src\com\ourchr\xiangzi\pojo\Course.class

     文件        650  2010-09-14 11:21  classManagerSystem\classmanagersystem5\src\com\ourchr\xiangzi\pojo\Course.java

     文件       1179  2010-09-15 15:52  classManagerSystem\classmanagersystem5\src\com\ourchr\xiangzi\pojo\CourseTeacher.class

     文件        848  2010-09-15 22:13  classManagerSystem\classmanagersystem5\src\com\ourchr\xiangzi\pojo\CourseTeacher.java

     文件       1702  2010-09-15 15:52  classManagerSystem\classmanagersystem5\src\com\ourchr\xiangzi\pojo\Score.class

     文件       1612  2010-09-15 22:14  classManagerSystem\classmanagersystem5\src\com\ourchr\xiangzi\pojo\Score.java

............此处省略660个文件信息

评论

共有 条评论