/** * */ package com.phn.action; import java.util.List; import javax.annotation.Resource; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Controller; import com.phn.entity.Area; import com.phn.entity.Pages; import com.phn.service.AreaService; /** * @author admin * @date 2014-10-13 */ @Controller("areaAction") @Scope("prototype") public class AreaAction { @Resource private AreaService areaService; private Area area; private Pages pageBean; private List<Area> listArea; private int nowPage = 1; private int index; public String NewInfo() throws Exception { if (this.areaService.insert(area) != true) { return "area_newInfo_failed"; } return "area_newInfo_success"; } public String GoUpdateInfo() throws Exception{ this.area = this.areaService.find(index); if (this.area == null) { return "area_goUpdateInfo_failed"; } return "area_goUpdateInfo_success"; } public String UpdateInfo() throws Exception { if (this.areaService.update(area) != true) { return "area_updateInfo_failed"; } return "area_updateInfo_success"; } public String DeleteInfo() throws Exception { if(index==0){ return "area_deleteInfo_failed"; } if (this.areaService.delete(index) != true) { return "area_deleteInfo_failed"; } return "area_deleteInfo_success"; } public String FindInfo() throws Exception { Area area = this.areaService.find(index); if (area == null) { return "area_findInfo_failed"; } return "area_findInfo_success"; } public String GetAll() throws Exception { this.pageBean = this.areaService.getAll(10, nowPage); this.listArea = this.pageBean.getListArea(); return "area_getAll_success"; } public Area getArea() { return area; } public void setArea(Area area) { this.area = area; } public Pages getPageBean() { return pageBean; } public void setPageBean(Pages pageBean) { this.pageBean = pageBean; } public List<Area> getListArea() { return listArea; } public void setListArea(List<Area> listArea) { this.listArea = listArea; } public int getNowPage() { return nowPage; } public void setNowPage(int nowPage) { this.nowPage = nowPage; } public int getIndex() { return index; } public void setIndex(int index) { this.index = index; } }

lilonghui LV3
2023年5月2日
zhaoxiang123456 LV4
2023年2月12日
memomemo LV2
2022年3月3日
过过成功尺寸 LV7
2021年12月1日
17684264457 LV2
2021年8月26日
2267741747 LV2
2021年8月3日
ththsss LV2
2021年7月5日
Moshang674264 LV7
2021年7月2日
第一等 LV3
2021年4月20日
2454762523 LV2
2021年1月1日

梁小贤 LV1
5月22日
小泽有沐风zz
1月9日
暂无贡献等级
Morision LV4
2024年4月28日
wangsheng818 LV4
2024年4月8日
Octal1028
2024年2月12日
暂无贡献等级
iiiiiiixiiiiii LV1
2023年12月28日
WBelong LV8
2023年12月27日
xyzzuidaima LV3
2023年9月30日
186092 LV4
2023年9月19日
噜噜噜路口 LV2
2023年8月17日