• 大小: 7.02MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-09-26
  • 语言: Java
  • 标签: javaB/S  

资源简介

此乃本人做的毕业设计,一个小区物业管理系统的源程序及代码(java,B/S模式),商业用途谈不上,但用来应付毕业设计还是足够的,另外还有配套的设计文档,待会续传

资源截图

代码片段和文件信息

package com.keda.wuye.action;

import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;

import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.ServletActionContext;

import com.keda.wuye.biz.AlarmBiz;
import com.keda.wuye.biz.CarportBiz;
import com.keda.wuye.biz.CommunityBiz;
import com.keda.wuye.biz.HousesBiz;
import com.keda.wuye.biz.impl.AlarmBizImpl;
import com.keda.wuye.biz.impl.CarportBizImpl;
import com.keda.wuye.biz.impl.CommunityBizImpl;
import com.keda.wuye.biz.impl.HousesBizImpl;
import com.keda.wuye.entity.Alarm;
import com.keda.wuye.entity.Carport;
import com.keda.wuye.entity.Community;
import com.opensymphony.xwork2.ActionSupport;

//获取小区清单,获取到则转入resident_ui.jsp界面
public class AlarmAction extends ActionSupport{
private String alarm_id; //报警编号
private String alarm_date; //报警时间
private String alarm_location; //事发地点
private String alarm_matter; //案情内容
private String alarm_way; //报警方式
private String alarm_dealway; //处理方式
private String alarm_dealperson; //处理人员
private String alarm_dealresult; //处理结果
private String path;
private List getdata;
private String s;

public String getS() {
return s;
}

public void setS(String s) {
this.s = s;
}

//获取小区简介表单
public String getAlarm()
{
AlarmBiz alarmBiz = new AlarmBizImpl();
getdata = alarmBiz.getAlarm();
path = “alarm_ui.jsp“;
return SUCCESS;
}

//模糊查询
public String selectlike()
{
AlarmBiz alarmBiz = new AlarmBizImpl();
getdata = alarmBiz.select(s);
path = “alarm_ui.jsp“;
return SUCCESS;
}

//提示
public String notice() throws IOException
{
HttpServletResponse resp = ServletActionContext.getResponse();
resp.setHeader(“pragma“ “no-cache“);
resp.setHeader(“cache-control“ “no-cache“);
PrintWriter out = resp.getWriter();
AlarmBiz alarmBiz = new AlarmBizImpl();
//如果com_id重复
if(alarmBiz.idEqual(alarm_id)==true)
{
//弹出提示页面
out.println(1);
}
else
{
out.println(0);
}
out.flush();
return NONE;
}

//添加
public String insertAlarm()
{
AlarmBiz alarmBiz = new AlarmBizImpl();
alarmBiz.insertAlarm(alarm_id alarm_date alarm_location alarm_matter alarm_way alarm_dealway alarm_dealperson alarm_dealresult);
path = “alarm_getAlarm“;
return SUCCESS;
}

//删除信息
private String checkbox[];

public String[] getCheckbox() {
return checkbox;
}

public void setCheckbox(String[] checkbox) {
this.checkbox = checkbox;
}

public String deleteAlarm()
{
AlarmBiz alarmBiz = new AlarmBizImpl();
for(int i=0;i {
alarmBiz.deleteAlarm(checkbox[i]);
}
path = “alarm_getAlarm“;
return SUCCESS;
}
//查询一条信息
public String select()
{
AlarmBiz alarmBiz = new AlarmBizImpl();
Alarm alarm = new Alarm();
alarm = alarmBiz.getAlarm(alarm_id);
if(null==alarm)
{
return INPUT;
}

alarm_id =

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件        2287  2012-05-29 05:09  wuyesystem2\.classpath
     文件         306  2012-05-29 05:09  wuyesystem2\.mymetadata
     文件        1229  2012-05-29 05:09  wuyesystem2\.project
     文件         671  2012-05-29 05:09  wuyesystem2\WebRoot\AjaxUtils.js
     文件          39  2012-05-29 05:09  wuyesystem2\WebRoot\meta-INF\MANIFEST.MF
     文件        5528  2012-05-29 05:09  wuyesystem2\WebRoot\WEB-INF\classes\com\keda\wuye\action\AlarmAction.class
     文件        5536  2012-05-29 05:09  wuyesystem2\WebRoot\WEB-INF\classes\com\keda\wuye\action\CarportAction.class
     文件        4865  2012-05-29 05:09  wuyesystem2\WebRoot\WEB-INF\classes\com\keda\wuye\action\CominfoAction.class
     文件        5448  2012-05-29 05:09  wuyesystem2\WebRoot\WEB-INF\classes\com\keda\wuye\action\CommunityAction.class
     文件        6143  2012-05-29 05:09  wuyesystem2\WebRoot\WEB-INF\classes\com\keda\wuye\action\ComplaintAction.class
     文件        5498  2012-05-29 05:09  wuyesystem2\WebRoot\WEB-INF\classes\com\keda\wuye\action\FeeAction.class
     文件        6187  2012-05-29 05:09  wuyesystem2\WebRoot\WEB-INF\classes\com\keda\wuye\action\HousesAction.class
     文件        5956  2012-05-29 05:09  wuyesystem2\WebRoot\WEB-INF\classes\com\keda\wuye\action\PayAction.class
     文件        5936  2012-05-29 05:09  wuyesystem2\WebRoot\WEB-INF\classes\com\keda\wuye\action\PlantAction.class
     文件        6055  2012-05-29 05:09  wuyesystem2\WebRoot\WEB-INF\classes\com\keda\wuye\action\RepairsAction.class
     文件        5834  2012-05-29 05:09  wuyesystem2\WebRoot\WEB-INF\classes\com\keda\wuye\action\ResidentAction.class
     文件        5560  2012-05-29 05:09  wuyesystem2\WebRoot\WEB-INF\classes\com\keda\wuye\action\RoomsAction.class
     文件        4409  2012-05-29 05:09  wuyesystem2\WebRoot\WEB-INF\classes\com\keda\wuye\action\UserAction.class
     文件         700  2012-05-29 05:09  wuyesystem2\WebRoot\WEB-INF\classes\com\keda\wuye\biz\AlarmBiz.class
     文件         717  2012-05-29 05:09  wuyesystem2\WebRoot\WEB-INF\classes\com\keda\wuye\biz\CarportBiz.class
     文件         751  2012-05-29 05:09  wuyesystem2\WebRoot\WEB-INF\classes\com\keda\wuye\biz\CominfoBiz.class
     文件         703  2012-05-29 05:09  wuyesystem2\WebRoot\WEB-INF\classes\com\keda\wuye\biz\CommunityBiz.class
     文件         788  2012-05-29 05:09  wuyesystem2\WebRoot\WEB-INF\classes\com\keda\wuye\biz\ComplaintBiz.class
     文件         680  2012-05-29 05:09  wuyesystem2\WebRoot\WEB-INF\classes\com\keda\wuye\biz\FeeBiz.class
     文件         726  2012-05-29 05:09  wuyesystem2\WebRoot\WEB-INF\classes\com\keda\wuye\biz\HousesBiz.class
     文件         710  2012-05-29 05:09  wuyesystem2\WebRoot\WEB-INF\classes\com\keda\wuye\biz\PayBiz.class
     文件         717  2012-05-29 05:09  wuyesystem2\WebRoot\WEB-INF\classes\com\keda\wuye\biz\PlantBiz.class
     文件         771  2012-05-29 05:09  wuyesystem2\WebRoot\WEB-INF\classes\com\keda\wuye\biz\RepairsBiz.class
     文件         761  2012-05-29 05:09  wuyesystem2\WebRoot\WEB-INF\classes\com\keda\wuye\biz\ResidentBiz.class
     文件         683  2012-05-29 05:09  wuyesystem2\WebRoot\WEB-INF\classes\com\keda\wuye\biz\RoomsBiz.class
     文件         631  2012-05-29 05:09  wuyesystem2\WebRoot\WEB-INF\classes\com\keda\wuye\biz\UserBiz.class
............此处省略317个文件信息

评论

共有 条评论