• 大小: 39.64MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-17
  • 语言: Java
  • 标签: OA  

资源简介

这个项目是使用java技术开发的一款OA项目,功能相对比较完善,审批流.请假流等,适合参考和学习使用,使用的是oracle数据库

资源截图

代码片段和文件信息

package cn.bdqn.jboa.action;

import java.util.Map;

import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.interceptor.ServletResponseAware;

import cn.bdqn.jboa.common.Constants;
import cn.bdqn.jboa.entity.Employee;
import cn.bdqn.jboa.util.PaginationSupport;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;


public class baseAction extends ActionSupport implements ServletResponseAware{
public HttpServletResponse response;

protected Integer pageNo = 1;
protected Integer pageSize = 5;

protected PaginationSupport pageSupport;

protected Map getSession(){
ActionContext actionContext = ActionContext.getContext();
return actionContext.getSession();
}
protected Map getRequest(){
ActionContext actionContext = ActionContext.getContext();
Map request = (Map)actionContext.get(“request“);
return request;
}
protected Employee getLoginEmployee(){
if (getSession().get(Constants.AUTH_EMPLOYEE)==null){
return null;
}else{
return (Employee)getSession().get(Constants.AUTH_EMPLOYEE);
}
}

protected boolean isStaff(){
Employee employee = getLoginEmployee();
if (employee.getSysPosition().getNameCn().equals(Constants.POSITION_STAFF)){
return true;
}else{
return false;
}
}

protected String getCurrentSn(){
Employee employee = getLoginEmployee();
return employee.getSn();
}
protected  String getCurrManagerSn(){
Employee employee = (Employee)getSession().get(Constants.AUTH_EMPLOYEE_MANAGER);
return employee.getSn();
}

@Override
public void setServletResponse(HttpServletResponse resp) {
this.response = resp;
}
public Integer getPageNo() {
return pageNo;
}
public void setPageNo(Integer pageNo) {
this.pageNo = pageNo;
}
public Integer getPageSize() {
return pageSize;
}
public void setPageSize(Integer pageSize) {
this.pageSize = pageSize;
}
public PaginationSupport getPageSupport() {
return pageSupport;
}
public void setPageSupport(PaginationSupport pageSupport) {
this.pageSupport = pageSupport;
}


}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2014-11-03 22:54  jboaaccp7\
     文件        1459  2014-07-29 14:53  jboaaccp7\.classpath
     目录           0  2013-09-02 17:07  jboaaccp7\.myeclipse\
     文件         300  2013-10-29 18:13  jboaaccp7\.mymetadata
     文件        1752  2013-09-02 17:07  jboaaccp7\.project
     目录           0  2014-09-03 08:59  jboaaccp7\.settings\
     文件         500  2013-09-02 17:07  jboaaccp7\.settings\.jsdtscope
     文件         295  2014-07-29 14:53  jboaaccp7\.settings\com.genuitec.eclipse.migration.prefs
     文件         139  2014-08-04 14:46  jboaaccp7\.settings\org.eclipse.core.resources.prefs
     文件         364  2013-09-02 17:07  jboaaccp7\.settings\org.eclipse.jdt.core.prefs
     文件         630  2014-07-29 14:53  jboaaccp7\.settings\org.eclipse.wst.common.component
     文件         172  2014-07-29 14:53  jboaaccp7\.settings\org.eclipse.wst.common.project.facet.core.prefs.xml
     文件         409  2014-07-29 14:53  jboaaccp7\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2013-09-02 17:07  jboaaccp7\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2013-09-02 17:07  jboaaccp7\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2014-09-03 08:59  jboaaccp7\.svn\
     文件           3  2013-09-02 17:07  jboaaccp7\.svn\entries
     文件           3  2013-09-02 17:07  jboaaccp7\.svn\format
     目录           0  2014-09-03 08:59  jboaaccp7\.svn\pristine\
     目录           0  2014-09-03 08:59  jboaaccp7\.svn\pristine\01\
     文件        1865  2013-09-04 13:43  jboaaccp7\.svn\pristine\01\0180234057e6fcd18a10726d4f4e55ba92f891a9.svn-base
     文件        2412  2013-09-03 14:26  jboaaccp7\.svn\pristine\01\01bdcccf711af65f1c0a4664a92cf6f1dcdcf930.svn-base
     文件         650  2013-09-02 17:07  jboaaccp7\.svn\pristine\01\01f25f0b793f03c7438caad8df7949616564e47f.svn-base
     目录           0  2014-09-03 08:59  jboaaccp7\.svn\pristine\02\
     文件        4467  2013-09-02 17:07  jboaaccp7\.svn\pristine\02\0235ba8b489512805ac13a8f9ea77a1ca5ebe3e8.svn-base
     文件        2871  2013-09-02 17:07  jboaaccp7\.svn\pristine\02\0245bff062d00df5bb06b56d7194d568a89c6708.svn-base
     文件        3245  2013-09-09 14:11  jboaaccp7\.svn\pristine\02\0293b2d04ea66cde173c030b966f5bcd29705bd0.svn-base
     目录           0  2014-09-03 08:59  jboaaccp7\.svn\pristine\03\
     文件        1902  2013-09-02 17:07  jboaaccp7\.svn\pristine\03\03a11a838e7e2f886239a5efd32dfa4c532cf3c5.svn-base
     文件         223  2014-02-15 17:47  jboaaccp7\.svn\pristine\03\03b465837fab0a2e739c5521ae6eefc35616dbc8.svn-base
     目录           0  2014-09-03 08:59  jboaaccp7\.svn\pristine\04\
............此处省略932个文件信息

评论

共有 条评论