资源简介

基于SSH框架的心理咨询测试测评系统完整java代码,目前为止该系统量表已经通过信、效度检验,符合心理测量学原则。针对检测出的心理障碍,又创建了集“心理测验、心理分析、心理指导、心理治疗”四位一体的心理干预模式。可为被试者提供更简明、快捷、科学的心理健康评估及心理障碍的筛查工具,并同时可根据测试结果实施相应的心理干预措施。

资源截图

代码片段和文件信息

package com.action;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import java.util.Map;

import org.apache.struts2.ServletActionContext;

import com.dao.TGonggaoDAO;
import com.model.TAdmin;
import com.model.TGonggao;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

public class gonggaoAction extends ActionSupport
{
private int gonggaoId;
private String gonggaotitle;
private String gonggaoContent;
private String gonggaoData;
private String fujian;


private TGonggaoDAO gonggaoDAO;

public String gonggaoAdd()
{
TGonggao gonggao=new TGonggao();

//gonggao.setGonggaoId(0);
gonggao.setGonggaotitle(gonggaotitle);
gonggao.setGonggaoContent(gonggaoContent);
gonggao.setGonggaoData(new SimpleDateFormat(“yyyy-MM-dd HH:mm“).format(new Date()));
gonggao.setFujian((fujian.equals(““)?“/img/zanwu.jpg“:fujian));
gonggaoDAO.save(gonggao);

Map request=(Map)ServletActionContext.getContext().get(“request“);
request.put(“msg“ “信息添加完毕“);
return “msg“;
}


public String gonggaoMana()
{
List gonggaoList =gonggaoDAO.findAll();
Map request=(Map)ServletActionContext.getContext().get(“request“);
request.put(“gonggaoList“ gonggaoList);
return ActionSupport.SUCCESS;
}

public String gonggaoDel()
{
TGonggao gonggao=gonggaoDAO.findById(gonggaoId);
gonggaoDAO.delete(gonggao);

Map request=(Map)ServletActionContext.getContext().get(“request“);
request.put(“msg“ “信息删除完毕“);
return “msg“;
}


public String gonggaoDetail()
{
TGonggao gonggao=gonggaoDAO.findById(gonggaoId);
Map request=(Map)ServletActionContext.getContext().get(“request“);
request.put(“gonggao“ gonggao);
return ActionSupport.SUCCESS;
}

public String gonggaoDetailQian()
{
TGonggao gonggao=gonggaoDAO.findById(gonggaoId);
Map request=(Map)ServletActionContext.getContext().get(“request“);
request.put(“gonggao“ gonggao);

return ActionSupport.SUCCESS;
}


public String gonggaoQian5()
{
        Map request=(Map)ServletActionContext.getContext().get(“request“);

List gonggaoList=gonggaoDAO.findAll();
if(gonggaoList.size()>5)
{
gonggaoList=gonggaoList.subList(0 5);
}
request.put(“gonggaoList“ gonggaoList);
return ActionSupport.SUCCESS;
}

public String getGonggaoContent()
{
return gonggaoContent;
}

public void setGonggaoContent(String gonggaoContent)
{
this.gonggaoContent = gonggaoContent;
}

public TGonggaoDAO getGonggaoDAO()
{
return gonggaoDAO;
}

public void setGonggaoDAO(TGonggaoDAO gonggaoDAO)
{
this.gonggaoDAO = gonggaoDAO;
}

public String getGonggaoData()
{
return gonggaoData;
}

public String getFujian()
{
return fujian;
}


public void setFujian(String fujian)
{
this.fujian = fujian;
}


public void setGonggaoData(String gonggaoData)
{
this.gongga

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-03-29 16:17  xincs\
     文件         745  2016-04-13 10:01  xincs\.classpath
     目录           0  2019-03-29 16:17  xincs\.externalToolBuilders\
     文件         557  2016-04-13 12:01  xincs\.externalToolBuilders\com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder (2).launch
     文件         565  2016-04-13 13:01  xincs\.externalToolBuilders\com.genuitec.eclipse.j2eedt.core.DeploymentDescriptorValidator.launch
     文件         552  2016-04-13 16:01  xincs\.externalToolBuilders\org.eclipse.wst.common.project.facet.core.builder.launch
     文件         548  2016-04-13 16:01  xincs\.externalToolBuilders\org.eclipse.wst.jsdt.core.javascriptValidator.launch
     文件         547  2016-04-13 16:01  xincs\.externalToolBuilders\org.eclipse.wst.validation.validationbuilder (2).launch
     目录           0  2018-09-05 12:16  xincs\.myeclipse\
     文件         604  2016-04-13 15:01  xincs\.myhibernatedata
     文件         288  2016-05-03 22:26  xincs\.mymetadata
     文件        3595  2016-04-13 12:01  xincs\.project
     目录           0  2019-03-29 16:17  xincs\.settings\
     文件         500  2016-04-13 18:01  xincs\.settings\.jsdtscope
     文件         142  2016-04-13 19:01  xincs\.settings\org.eclipse.core.resources.prefs
     文件         395  2016-04-13 11:01  xincs\.settings\org.eclipse.jdt.core.prefs
     文件         450  2016-04-13 19:01  xincs\.settings\org.eclipse.wst.common.component
     文件         252  2016-04-13 19:01  xincs\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2016-04-13 19:01  xincs\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2016-04-13 19:01  xincs\.settings\org.eclipse.wst.jsdt.ui.superType.name
     文件         474  2016-04-13 09:01  xincs\.springBeans
     目录           0  2019-03-29 16:17  xincs\src\
     目录           0  2019-03-29 16:17  xincs\src\com\
     目录           0  2019-03-29 16:17  xincs\src\com\action\
     文件        3352  2016-04-29 03:54  xincs\src\com\action\gonggaoAction.java
     文件        3952  2016-04-13 17:01  xincs\src\com\action\huiyuanAction.java
     文件        1794  2016-04-29 03:48  xincs\src\com\action\indexAction.java
     文件        1674  2016-04-29 03:04  xincs\src\com\action\jiaojuanAction.java
     文件        1542  2016-04-13 19:01  xincs\src\com\action\jieshaoAction.java
     文件        3565  2016-04-29 03:08  xincs\src\com\action\liuyanAction.java
     文件        2825  2016-04-29 03:04  xincs\src\com\action\timuAction.java
............此处省略886个文件信息

评论

共有 条评论