• 大小: 2.85MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-28
  • 语言: 其他
  • 标签: sh框架  

资源简介

老师发布作业,学生提交作业,老师查看学生作业

资源截图

代码片段和文件信息

package com.xueshengguanlixitong.action;

import java.util.ArrayList;
import java.util.List;

import com.xueshengguanlixitong.domain.Job;
import com.xueshengguanlixitong.domain.S_J;
import com.xueshengguanlixitong.domain.Student;
import com.xueshengguanlixitong.service.JobService;
import com.xueshengguanlixitong.service.StudentService;

public class StudentAction {
private Student student;
private static Student stu;
StudentService ss = new StudentService();
JobService jobservice = new JobService();
private List listJob = new ArrayList();
private S_J sj = new S_J();
private Job job ;
public String regist(){

ss.addStudent(student);
return “registOk“;
}

public String login(){
System.out.println(student.getStudentName()+“--------“);
ss.queryByUserNameAndPassword(student);
stu=student;
return “loginOk“;
}

public String job(){
// System.out.println(stu.getStudentName());
listJob = jobservice.queryAll();
System.out.println(listJob.size());
if(listJob!=null){
return “jobOk“;
}
return “jobError“;
}

public String tijiao()
{
Student s1 = new Student();
System.out.println(job.getId()+“  job.getId()“);
Job job2 = new Job();
job2 = jobservice.queryByUserNameAndPassword(job.getId());
s1 = ss.queryByUserNameAndPassword(stu);
sj.setStudentid(s1);
sj.setJobid(job2);
ss.addS_J(sj);
return “tijiaoOk“;
}






public Student getStudent() {
return student;
}

public void setStudent(Student student) {
this.student = student;
}

public StudentService getSs() {
return ss;
}

public void setSs(StudentService ss) {
this.ss = ss;
}



public JobService getJobservice() {
return jobservice;
}

public void setJobservice(JobService jobservice) {
this.jobservice = jobservice;
}

public List getListJob() {
return listJob;
}

public void setListJob(List listJob) {
this.listJob = listJob;
}

public Job getJob() {
return job;
}

public void setJob(Job job) {
this.job = job;
}

public S_J getSj() {
return sj;
}

public void setSj(S_J sj) {
this.sj = sj;
}

public static Student getStu() {
return stu;
}

public static void setStu(Student stu) {
StudentAction.stu = stu;
}

}

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

     文件        912  2016-06-24 12:12  xueshengguanlixitong\.classpath

     文件        539  2016-06-20 19:29  xueshengguanlixitong\.myhibernatedata

     文件        333  2016-06-26 19:56  xueshengguanlixitong\.mymetadata

     文件        240  2016-06-20 20:22  xueshengguanlixitong\.mystrutsdata

     文件       2048  2016-06-20 20:47  xueshengguanlixitong\.project

     文件        500  2016-06-20 18:54  xueshengguanlixitong\.settings\.jsdtscope

     文件        130  2016-06-22 11:35  xueshengguanlixitong\.settings\org.eclipse.core.resources.prefs

     文件        364  2016-06-20 18:54  xueshengguanlixitong\.settings\org.eclipse.jdt.core.prefs

     文件        498  2016-06-20 18:54  xueshengguanlixitong\.settings\org.eclipse.wst.common.component

     文件        252  2016-06-20 18:54  xueshengguanlixitong\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2016-06-20 18:54  xueshengguanlixitong\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2016-06-20 18:54  xueshengguanlixitong\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件       2343  2016-06-24 22:22  xueshengguanlixitong\src\com\xueshengguanlixitong\action\StudentAction.java

     文件       1787  2016-06-22 11:35  xueshengguanlixitong\src\com\xueshengguanlixitong\action\TeacherAction.java

     文件       1095  2016-06-21 14:33  xueshengguanlixitong\src\com\xueshengguanlixitong\dao\JobDao.java

     文件       2123  2016-07-19 14:50  xueshengguanlixitong\src\com\xueshengguanlixitong\dao\StudentDao.java

     文件       1567  2016-06-22 10:50  xueshengguanlixitong\src\com\xueshengguanlixitong\dao\TeacherDao.java

     文件        890  2016-06-24 21:53  xueshengguanlixitong\src\com\xueshengguanlixitong\domain\Job.hbm.xml

     文件        730  2016-06-24 21:43  xueshengguanlixitong\src\com\xueshengguanlixitong\domain\Job.java

     文件        830  2016-06-24 21:53  xueshengguanlixitong\src\com\xueshengguanlixitong\domain\Student.hbm.xml

     文件        752  2016-06-20 20:01  xueshengguanlixitong\src\com\xueshengguanlixitong\domain\Student.java

     文件        836  2016-06-24 21:53  xueshengguanlixitong\src\com\xueshengguanlixitong\domain\S_J.hbm.xml

     文件        635  2016-06-20 19:11  xueshengguanlixitong\src\com\xueshengguanlixitong\domain\S_J.java

     文件        690  2016-06-24 21:53  xueshengguanlixitong\src\com\xueshengguanlixitong\domain\Teacher.hbm.xml

     文件        543  2016-06-20 19:16  xueshengguanlixitong\src\com\xueshengguanlixitong\domain\Teacher.java

     文件        458  2016-06-21 14:21  xueshengguanlixitong\src\com\xueshengguanlixitong\service\JobService.java

     文件        712  2016-06-21 16:03  xueshengguanlixitong\src\com\xueshengguanlixitong\service\StudentService.java

     文件        659  2016-06-20 20:39  xueshengguanlixitong\src\com\xueshengguanlixitong\service\TeacherService.java

     文件        510  2016-06-20 19:28  xueshengguanlixitong\src\com\xueshengguanlixitong\util\HibernateUtil.java

     文件       1084  2016-06-24 22:18  xueshengguanlixitong\src\com\xueshengguanlixitong\view\Test.java

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

评论

共有 条评论