資源簡介
JavaWeb項目《人力資源管理系統》
代碼片段和文件信息
package?com.coe.action;
import?java.util.Date;
import?java.util.Iterator;
import?java.util.List;
import?javax.servlet.http.HttpServletRequest;
import?javax.servlet.http.HttpServletResponse;
import?org.apache.struts.action.ActionForm;
import?org.apache.struts.action.ActionForward;
import?org.apache.struts.action.ActionMapping;
import?org.apache.struts.actions.DispatchAction;
import?com.coe.dto.Attendance;
import?com.coe.dto.Information;
import?com.coe.service.IAttendanceService;
import?com.coe.service.IIformationService;
public?class?AttendanceAction?extends?DispatchAction?{
private?IAttendanceService?attendanceService;
private?IIformationService?iformationService;
public?IAttendanceService?getAttendanceService()?{
return?attendanceService;
}
public?void?setAttendanceService(IAttendanceService?attendanceService)?{
this.attendanceService?=?attendanceService;
}
public?IIformationService?getIformationService()?{
return?iformationService;
}
public?void?setIformationService(IIformationService?iformationService)?{
this.iformationService?=?iformationService;
}
public?ActionForward?findattendance(ActionMapping?mapping?ActionForm?form
HttpServletRequest?request?HttpServletResponse?response)
throws?Exception?{
String?level=request.getParameter(“level“);
String?department=request.getParameter(“department“);
if?(level.equals(“一般管理員“))?{
List?list?=?this.getAttendanceService().findAttendancebymh(
“from?Attendance?as?a?where?a.information.department?=?‘“
+?department?+?“‘“);
request.setAttribute(“list“?list);
return?mapping.findForward(“ybglSuc“);
}?else?{
List?list?=?this.getAttendanceService().findAllAttendance();
List?inforList?=?this.getIformationService().findAllUser();
request.setAttribute(“inforList“?inforList);
request.setAttribute(“list“?list);
return?mapping.findForward(“suc“);
}
}
public?ActionForward?findAttendencebymh(ActionMapping?mapping
ActionForm?form?HttpServletRequest?request
HttpServletResponse?response)?throws?Exception?{
String?username?=?request.getParameter(“username“);
String?department?=?request.getParameter(“department“);
String?level?=?request.getParameter(“level“);
String?attendance?=?request.getParameter(“kg“);
if?(level.equals(“超級管理員“))?{
String?hql?=?“?from?Attendance?as?a?where?1=1?“;
if(username!=null&&!username.equals(““)){
hql+=“?and?a.information.userid=“+username;
}
if(department!=null&&!department.equals(““)){
hql+=“?and?a.information.department=‘“+department+“‘“;
}
if?(!attendance.equals(““)?&&?attendance?!=?null)?{
hql?+=?“?and?a.attendance?=“?+?attendance;
}
List?list?=?this.getAttendanceService().findAttendancebymh(hql);
request.setAttribute(“list“?list);
List?list1?=?this.getIformationService().findAllUser();
request.setAttribute(“inforList“?list1);
return?mapping.findForward(
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
????..A.SH.???????162??2016-06-29?10:08??A人力資源管理系統\文檔\~$人事管理系統需求文檔.doc
?????文件????1575936??2016-04-26?11:11??A人力資源管理系統\文檔\企業人事管理系統需求文檔.doc
?????文件??????17897??2016-04-26?11:11??A人力資源管理系統\素材\hr.sql
?????文件???????3970??2016-04-26?11:11??A人力資源管理系統\素材\hrfinal\.classpath
?????文件????????294??2016-04-26?11:11??A人力資源管理系統\素材\hrfinal\.myme
?????文件???????1750??2016-04-26?11:11??A人力資源管理系統\素材\hrfinal\.project
?????文件????????500??2016-04-26?11:11??A人力資源管理系統\素材\hrfinal\.settings\.jsdtscope
?????文件????????119??2016-04-26?11:11??A人力資源管理系統\素材\hrfinal\.settings\org.eclipse.core.resources.prefs
?????文件????????334??2016-04-26?11:11??A人力資源管理系統\素材\hrfinal\.settings\org.eclipse.jdt.core.prefs
?????文件????????459??2016-04-26?11:11??A人力資源管理系統\素材\hrfinal\.settings\org.eclipse.wst.common.component
?????文件????????252??2016-04-26?11:11??A人力資源管理系統\素材\hrfinal\.settings\org.eclipse.wst.common.project.facet.core.xm
?????文件?????????49??2016-04-26?11:11??A人力資源管理系統\素材\hrfinal\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件??????????6??2016-04-26?11:11??A人力資源管理系統\素材\hrfinal\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????文件?????????48??2016-04-26?11:11??A人力資源管理系統\素材\hrfinal\src\.properties
?????文件???????5906??2016-04-26?11:11??A人力資源管理系統\素材\hrfinal\src\com\coe\action\AttendanceAction.java
?????文件???????6556??2016-04-26?11:11??A人力資源管理系統\素材\hrfinal\src\com\coe\action\CandidatesAction.java
?????文件???????5653??2016-04-26?11:11??A人力資源管理系統\素材\hrfinal\src\com\coe\action\ContractAction.java
?????文件??????17851??2016-04-26?11:11??A人力資源管理系統\素材\hrfinal\src\com\coe\action\DynaChartAction.java
?????文件??????14990??2016-04-26?11:11??A人力資源管理系統\素材\hrfinal\src\com\coe\action\InformationAction.java
?????文件???????5601??2016-04-26?11:11??A人力資源管理系統\素材\hrfinal\src\com\coe\action\NoticeAction.java
?????文件???????5355??2016-04-26?11:11??A人力資源管理系統\素材\hrfinal\src\com\coe\action\RecruitmentinfoAction.java
?????文件???????7010??2016-04-26?11:11??A人力資源管理系統\素材\hrfinal\src\com\coe\action\SalaryAction.java
?????文件??????18478??2016-04-26?11:11??A人力資源管理系統\素材\hrfinal\src\com\coe\action\TrainingMangmentAction.java
?????文件????????348??2016-04-26?11:11??A人力資源管理系統\素材\hrfinal\src\com\coe\dao\IAttendanceDao.java
?????文件????????407??2016-04-26?11:11??A人力資源管理系統\素材\hrfinal\src\com\coe\dao\ICandidatesDao.java
?????文件????????328??2016-04-26?11:11??A人力資源管理系統\素材\hrfinal\src\com\coe\dao\IConnectDao.java
?????文件????????403??2016-04-26?11:11??A人力資源管理系統\素材\hrfinal\src\com\coe\dao\IInformationDao.java
?????文件????????316??2016-04-26?11:11??A人力資源管理系統\素材\hrfinal\src\com\coe\dao\INoticeDao.java
?????文件????????437??2016-04-26?11:11??A人力資源管理系統\素材\hrfinal\src\com\coe\dao\IRecruitmentinfoDao.java
?????文件????????313??2016-04-26?11:11??A人力資源管理系統\素材\hrfinal\src\com\coe\dao\ISalaryDao.java
............此處省略647個文件信息
評論
共有 條評論