⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 headermyselfservice.java

📁 中应用程序的访问权限对Java Web Console 中应用程序的访问权限 成功登录 Web 控制台后,可能无法自动访问在该控制台中注册的所有应用程序。通常,必须安装应用程序,才能让所有的用户在控制
💻 JAVA
字号:
package edu.yinhe.mis.services;
 

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

import edu.yinhe.mis.dto.HeaderMyselfDTO;  
import edu.yinhe.mis.model.DAOFactory;
import edu.yinhe.mis.model.HeaderMyselfDAO; 
import edu.yinhe.mis.model.PrepareLessonCheckDAO;
import edu.yinhe.system.common.AppException; 
import edu.yinhe.system.model.IBaseDAO;
import edu.yinhe.system.services.Service;
import edu.yinhe.system.vo.LoginVO;

public class HeaderMyselfService extends Service {
	private IBaseDAO idao = null;

	public Object alllist() throws AppException {
		// TODO Auto-generated method stub
		return null;
	}
	/**
	 * @姜娟
	 * 校长查看总体报表
	 */ 
	public Object alllist(Object arg0) throws AppException {
		HeaderMyselfDTO dto = (HeaderMyselfDTO)arg0;
		ArrayList list1 = null;
		ArrayList list2 = null;
		ArrayList list3 = null;
		ArrayList list4 = null;
		ArrayList list5 = null;
		ArrayList list6 = null; 
		ArrayList list7 = null; 
		ArrayList list8 = null;
		Object obj[] = null;
		int count =0;
		try {
			idao = DAOFactory.getHeaderMyselfDAO(conn);
			list1 = (ArrayList) idao.findAll(dto); //自我评估表与老师表相关联
			count = idao.getCount(dto);
			list2 = (ArrayList)idao.findByObject(dto);//老师所属部门
			 list8 = (ArrayList)idao.find(dto); //获得老师所有信息
			
			idao = DAOFactory.getPrepareLessonCheckDAO(conn);
			list3 = (ArrayList)idao.findAll(dto); //备课记录表
			
			idao = DAOFactory.getQualitymainDAO(conn);
			list4 = (ArrayList)idao.findAll(dto); //月度考核表
			
			idao = DAOFactory.getStuIdea(conn);
			list5 = (ArrayList)idao.findAll(dto); //意见反馈表
		
			idao = DAOFactory.getListenmainDAO(conn);
			list6 = (ArrayList)idao.find(dto); //听课记录表
			
			idao = DAOFactory.getTevaluateDAO(conn);
			list7 = (ArrayList)idao.find(dto); //课堂教学评估
 
			obj = new Object []{list1,list2,list3,list4,list5,list6,list7,list8,count};
			  
		} catch (SQLException e) {
			e.printStackTrace();
		}finally{
			closeConnection();
			idao = null;
		}
		return obj;		
	}
	
	/**
	 * @author 宋玉萍
	 * 向自我评估表中插入数据
	 */
	public Object create(Object arg0) throws AppException {
		Boolean flag = false;
		HeaderMyselfDTO dto=(HeaderMyselfDTO) arg0;
		HeaderMyselfDAO dao= (HeaderMyselfDAO) DAOFactory.getHeaderMyselfDAO(conn);
		try {
			flag=(Boolean) dao.insert(dto);
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}finally{
			closeConnection();
		}
	return flag;
	}

	public Object findAll() throws AppException {
		// TODO Auto-generated method stub
		return null;
	}

	/**
	 * @author 宋玉萍
	 * 查询自我评估表中数据
	 */
	public Object findAll(Object arg0) throws AppException {
		HeaderMyselfDTO dto=(HeaderMyselfDTO) arg0;
		HeaderMyselfDAO dao= (HeaderMyselfDAO) DAOFactory.getHeaderMyselfDAO(conn);
		List list=new ArrayList();
		try {
			list = (ArrayList) dao.delete(dto);
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}finally{
			closeConnection();
			dao = null;
		}
		return list;
	}

	/**
	 * @author 宋玉萍
	 *  根据登录信息获得老师编号
	 */
	public Object findById(Object arg0) throws AppException {
		String teano = "";
		LoginVO vo=(LoginVO) arg0;
		PrepareLessonCheckDAO dao= (PrepareLessonCheckDAO) DAOFactory.getPrepareLessonCheckDAO(conn);
		try {
			teano=(String ) dao.findById(vo);
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}finally{
			if(conn!=null) this.closeConnection();
		}
	return teano;
	}

	public Object findByObject(Object arg0) throws AppException {
		// TODO Auto-generated method stub
		return null;
	}

	public int getcount() throws AppException {
		// TODO Auto-generated method stub
		return 0;
	}

	public int getcount(Object arg0) throws AppException {
		// TODO Auto-generated method stub
		return 0;
	}

	public Object list() throws AppException {
		// TODO Auto-generated method stub
		return null;
	}

	public Object list(Object arg0) throws AppException {
		// TODO Auto-generated method stub
		return null;
	}

	public Object load(Object arg0) throws AppException {
		// TODO Auto-generated method stub
		return null;
	}

	public Object modify(Object arg0) throws AppException {
		// TODO Auto-generated method stub
		return null;
	}

	public Object remove(Object arg0) throws AppException {
		// TODO Auto-generated method stub
		return null;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -