资源简介

个人信息管理平台,使用 struts2,bootstrap,jquery,简单容易修改,功能丰富,非常适合大作业。数据库名称root,密码123456

资源截图

代码片段和文件信息

package ldu.day.action;

import java.util.ArrayList;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.apache.struts2.interceptor.ServletRequestAware;

import com.opensymphony.xwork2.ActionSupport;

import ldu.day.vo.Day;
import ldu.util.DB;

@SuppressWarnings(“serial“)
public class DayAction extends ActionSupport implements ServletRequestAware {

private Day day;
private HttpServletRequest request;
private String uname;
private String ddate;
private int dayid;
private String checkTnum;

public HttpServletRequest getRequest() {
return request;
}
public void setRequest(HttpServletRequest request) {
this.request = request;
}
public void setServletRequest(HttpServletRequest hsr){
request = hsr;
}
public Day getDay() {
return day;
}
public void setDay(Day day) {
this.day = day;
}
public String getUname() {
return uname;
}
public void setUname(String uname) {
this.uname = uname;
}
public String getDdate() {
return ddate;
}
public void setDdate(String ddate) {
this.ddate = ddate;
}
public int getDayid() {
return dayid;
}
public void setDayid(int dayid) {
this.dayid = dayid;
}
public String getCheckTnum() {
return checkTnum;
}
public void setCheckTnum(String checkTnum) {
this.checkTnum = checkTnum;
}

public String lookDay(){
String result = null;
DB mysql = new DB();
List daylist = new ArrayList();
daylist = mysql.findDayByUserName(uname);
HttpSession session = request.getSession();
session.setAttribute(“dayList“ daylist);
result = “lookDaySuccess“;
return result;
}

public String toAddDay(){
return “toAddDaySuccess“;
}

public String addDay(){
String result = null;
DB mysql = new DB();
mysql.addDay(day uname);
result = “addDaySuccess“;
return result;
}

public String findDay(){
String result = null;
DB mysql = new DB();
List daylist = mysql.findDayByDate(unameddate);
HttpSession session = request.getSession();
session.setAttribute(“dayList“ daylist);
result = “findDaySuccess“;
return result;
}

public String toUpdateDay(){
String result = null;
DB mysql = new DB();
List daylist = mysql.findDayById(dayid);
HttpSession session = request.getSession();
session.setAttribute(“dayList“ daylist);
result = “toUpdateDaySuccess“;
return result;
}

public String updateDay(){
String result = null;
DB mysql = new DB();
mysql.updateDay(day);
result = “updateDaySuccess“;
return result;
}

public String deleteDay(){
String result = null;
DB mysql = new DB();
mysql.deleteDayById(dayid);
result = “deleteDaySuccess“;
return result;
}

public String deleteDays(){
String result = null;
String checkTnums[] = checkTnum.split(““);
int delnum;
DB mysql = new DB();
for (int i = 0 ;i < check

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件        4226  2018-05-16 11:41  pims.sql
     目录           0  2018-05-16 11:34  PIMS(v4)\
     文件        1638  2018-05-02 11:19  PIMS(v4)\.classpath
     文件        1054  2018-04-24 19:36  PIMS(v4)\.project
     目录           0  2018-05-16 11:34  PIMS(v4)\.settings\
     文件         564  2018-04-24 19:36  PIMS(v4)\.settings\.jsdtscope
     文件         492  2018-04-25 14:29  PIMS(v4)\.settings\com.genuitec.runtime.libraries.xml
     文件         364  2018-04-24 19:36  PIMS(v4)\.settings\org.eclipse.jdt.core.prefs
     文件         471  2018-04-24 19:36  PIMS(v4)\.settings\org.eclipse.wst.common.component
     文件         464  2018-04-24 19:37  PIMS(v4)\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2018-04-24 19:36  PIMS(v4)\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2018-04-24 19:36  PIMS(v4)\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2018-05-16 11:34  PIMS(v4)\src\
     目录           0  2018-05-16 11:34  PIMS(v4)\src\ldu\
     目录           0  2018-05-16 11:34  PIMS(v4)\src\ldu\day\
     目录           0  2018-05-16 11:34  PIMS(v4)\src\ldu\day\action\
     文件        3162  2018-05-07 21:54  PIMS(v4)\src\ldu\day\action\DayAction.java
     目录           0  2018-05-16 11:34  PIMS(v4)\src\ldu\day\vo\
     文件         616  2018-04-27 12:26  PIMS(v4)\src\ldu\day\vo\Day.java
     目录           0  2018-05-16 11:34  PIMS(v4)\src\ldu\file\
     目录           0  2018-05-16 11:34  PIMS(v4)\src\ldu\file\action\
     文件        5132  2018-05-16 08:50  PIMS(v4)\src\ldu\file\action\FileInfoAction.java
     目录           0  2018-05-16 11:34  PIMS(v4)\src\ldu\file\vo\
     文件        1100  2018-05-01 23:19  PIMS(v4)\src\ldu\file\vo\FileInfo.java
     目录           0  2018-05-16 11:34  PIMS(v4)\src\ldu\friend\
     目录           0  2018-05-16 11:34  PIMS(v4)\src\ldu\friend\action\
     文件        3611  2018-05-07 21:12  PIMS(v4)\src\ldu\friend\action\FriendAction.java
     目录           0  2018-05-16 11:34  PIMS(v4)\src\ldu\friend\vo\
     文件        1221  2018-04-24 19:55  PIMS(v4)\src\ldu\friend\vo\Friend.java
     目录           0  2018-05-16 11:34  PIMS(v4)\src\ldu\login\
     文件         678  2018-04-24 22:15  PIMS(v4)\src\ldu\login\LoginAction-validation.xml
............此处省略109个文件信息

评论

共有 条评论