• 大小: 10.4MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-08-21
  • 语言: Java
  • 标签: java  排课  系统  进销存  

资源简介

一个自己写的排课系统, 也就是教室安排系统

资源截图

代码片段和文件信息

package com.cheea.action;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.cheea.entity.Class;
import com.cheea.excption.DatabaseException;
import com.cheea.excption.RutimeException;
import com.cheea.excption.ServiceException;
import com.cheea.factory.AutoobjectFactory;
import com.cheea.service.ClassService;
import com.cheea.service.TeacherService;

public class AddClassByAdmin implements CommonAction {

@Override
public object doService(HttpServletRequest request
HttpServletResponse response) throws ServiceException
RutimeException DatabaseException {
PrintWriter out=null;
try {
out=response.getWriter();
} catch (IOException e1) {
e1.printStackTrace();
}
String name=request.getParameter(“name“);
int number=Integer.parseInt(request.getParameter(“number“));
ClassService ser=(ClassService) AutoobjectFactory.getInstance(“ClassServiceImpl“);
try {
    Class c=Class.newInstance();
    c.setClassName(name);
    c.setClassNumber(number);
    c.setState(1);
    ser.addClass(c);
} catch (Exception e) {
out.print(“fail“);
}
out.print(“ok“);
return null;
}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-09-10 22:18  Work\
     文件         962  2012-05-27 13:11  Work\.classpath
     目录           0  2015-09-12 13:22  __MACOSX\
     目录           0  2015-09-12 13:22  __MACOSX\Work\
     文件         188  2012-05-27 13:11  __MACOSX\Work\._.classpath
     文件        8196  2015-09-10 22:19  Work\.DS_Store
     文件         120  2015-09-10 22:19  __MACOSX\Work\._.DS_Store
     文件        1037  2012-05-27 13:11  Work\.project
     文件         188  2012-05-27 13:11  __MACOSX\Work\._.project
     目录           0  2012-05-27 13:11  Work\.settings\
     文件         503  2012-05-27 13:11  Work\.settings\.jsdtscope
     目录           0  2015-09-12 13:22  __MACOSX\Work\.settings\
     文件         188  2012-05-27 13:11  __MACOSX\Work\.settings\._.jsdtscope
     文件         138  2012-05-27 13:11  Work\.settings\org.eclipse.core.resources.prefs
     文件         188  2012-05-27 13:11  __MACOSX\Work\.settings\._org.eclipse.core.resources.prefs
     文件         395  2012-05-27 13:11  Work\.settings\org.eclipse.jdt.core.prefs
     文件         188  2012-05-27 13:11  __MACOSX\Work\.settings\._org.eclipse.jdt.core.prefs
     文件         541  2012-05-27 13:11  Work\.settings\org.eclipse.wst.common.component
     文件         188  2012-05-27 13:11  __MACOSX\Work\.settings\._org.eclipse.wst.common.component
     文件         345  2012-05-27 13:11  Work\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件         188  2012-05-27 13:11  __MACOSX\Work\.settings\._org.eclipse.wst.common.project.facet.core.xml
     文件          49  2012-05-27 13:11  Work\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件         188  2012-05-27 13:11  __MACOSX\Work\.settings\._org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2012-05-27 13:11  Work\.settings\org.eclipse.wst.jsdt.ui.superType.name
     文件         188  2012-05-27 13:11  __MACOSX\Work\.settings\._org.eclipse.wst.jsdt.ui.superType.name
     文件         188  2012-05-27 13:11  __MACOSX\Work\._.settings
     目录           0  2015-09-10 22:18  Work\build\
     文件        6148  2015-09-10 22:18  Work\build\.DS_Store
     目录           0  2015-09-12 13:22  __MACOSX\Work\build\
     文件         120  2015-09-10 22:18  __MACOSX\Work\build\._.DS_Store
     目录           0  2015-09-10 22:18  Work\build\classes\
............此处省略1329个文件信息

评论

共有 条评论