java-3t-erp,ERP系统

本次更新涉及多个文件的修改,增加了收支项目(InOutItem)和结算账户(Account)的管理功能。包括创建、删除、更新、查询接口以及相应的DAO和服务层实现。同时,对部分原有类进行了调整,如 DepotItemDAO 中的 findOrderByMaterial 方法。此外,还引入了新的Model类,如 AccountModel 和 InOutItemModel,用于封装页面交互数据。
摘要由CSDN通过智能技术生成

@O@}|6q|W)fI@*logdKS(k8GlPX!wQZ=x@@fE%%ea5n@xPou!2908S@GZWB*@ML_

zgzxbK33n;|-u{TIRKsc36+h|L1!lv~_yrP?Nx`qU1}jl&i+Y;bi3r!FZ_=ed82lC$

pEO9W729632563c&Mvf+t8yBB++o|D`CF<92)HefuM|=Hy<9{KH35);$

diff --git a/WebRoot/WEB-INF/classes/hibernate/hibernate.cfg.xml b/WebRoot/WEB-INF/classes/hibernate/hibernate.cfg.xml

index b56d90a..3b9d97d 100644

--- a/WebRoot/WEB-INF/classes/hibernate/hibernate.cfg.xml

+++ b/WebRoot/WEB-INF/classes/hibernate/hibernate.cfg.xml

@@ -18,6 +18,7 @@

org.hibernate.dialect.MySQL5Dialect

true

+

update

@@ -39,5 +40,7 @@

+

+

-

\ No newline at end of file

+

diff --git a/WebRoot/WEB-INF/classes/spring/basic-applicationContext.xml b/WebRoot/WEB-INF/classes/spring/basic-applicationContext.xml

index d82ceec..9871166 100644

--- a/WebRoot/WEB-INF/classes/spring/basic-applicationContext.xml

+++ b/WebRoot/WEB-INF/classes/spring/basic-applicationContext.xml

@@ -321,4 +321,28 @@

-

\ No newline at end of file

+

+

+ +

+

+

+

+ +

+

+

+

+

+

+ +

+

+

+

+ +

+

+

+

+

diff --git a/WebRoot/WEB-INF/classes/spring/dao-applicationContext.xml b/WebRoot/WEB-INF/classes/spring/dao-applicationContext.xml

index be9e3cd..cdd3f46 100644

--- a/WebRoot/WEB-INF/classes/spring/dao-applicationContext.xml

+++ b/WebRoot/WEB-INF/classes/spring/dao-applicationContext.xml

@@ -47,5 +47,9 @@

-

+

+

+

+

+

\ No newline at end of file

diff --git a/WebRoot/WEB-INF/classes/struts2/account-struts.xml b/WebRoot/WEB-INF/classes/struts2/account-struts.xml

new file mode 100644

index 0000000..e96a081

--- /dev/null

+++ b/WebRoot/WEB-INF/classes/struts2/account-struts.xml

@@ -0,0 +1,11 @@

+

+"-//Apache Software Foundation//DTD Struts Configuration 2.1.7//EN"

+"http://struts.apache.org/dtds/struts-2.1.7.dtd">

++ + +

+

+

+

diff --git a/WebRoot/WEB-INF/classes/struts2/inOutItem-struts.xml b/WebRoot/WEB-INF/classes/struts2/inOutItem-struts.xml

new file mode 100644

index 0000000..99d49db

--- /dev/null

+++ b/WebRoot/WEB-INF/classes/struts2/inOutItem-struts.xml

@@ -0,0 +1,11 @@

+

+"-//Apache Software Foundation//DTD Struts Configuration 2.1.7//EN"

+"http://struts.apache.org/dtds/struts-2.1.7.dtd">

++ + +

+

+

+

diff --git a/WebRoot/pages/common/main.jsp b/WebRoot/pages/common/main.jsp

index 157887d..59dac2d 100644

--- a/WebRoot/pages/common/main.jsp

+++ b/WebRoot/pages/common/main.jsp

@@ -12,35 +12,6 @@

ERP系统

-

@@ -134,16 +105,6 @@

//加载桌面

HROS.base.init();

}

- if ('@ViewData["News"].ToString()'.length > 0) {

- $.messager.show({

- title: '公 告',

- msg: '最新公告',

- timeout: 20000,

- showType: 'slide',

- width: 500,

- height: 280

- });

- }

function JSGetCookie(Name) {

var search = Name + "="

if (document.cookie.length > 0) {

diff --git a/WebRoot/pages/manage/account.jsp b/WebRoot/pages/manage/account.jsp

new file mode 100644

index 0000000..c83276f

--- /dev/null

+++ b/WebRoot/pages/manage/account.jsp

@@ -0,0 +1,518 @@

+

+

+

+

+

+

+ 结算账户

+

+

+

+

+

+

+

+

+

+

+

+

+

+

+

+ +

+ 名    称:

+ +

+

+

+

+

+ 编    号:

+ +

+

+

+

+ 备    注:

+ +

+

+

+

+

+

+

+

+

+

+

+

+

+ +

+ 名    称

+

+

+

+ 编    号

+

+

+

+ 期初金额

+

+

+

+ 当前余额

+

+

+

+ 备    注

+

+

+

+

+

+ 收支项目

+

+

+

+

+

+

+

+

+

+

+

+

+

+

+

+

+ +

+ 名    称:

+ +

+

+

+

+

+ 类    型:

+ + + 全部

+ 收入

+ 支出

+

+

+

+

+ 备    注:

+ +

+

+

+

+

+

+

+

+

+

+

+

+

+ +

+ 名    称

+

+

+

+ 类    型

+ + 收入

+ 支出

+

+

+

+ 备    注

+

+

+

+

+

+ true

+

update

@@ -39,5 +40,7 @@

+

+

-

\ No newline at end of file

+

diff --git a/config/spring/basic-applicationContext.xml b/config/spring/basic-applicationContext.xml

index d82ceec..9871166 100644

--- a/config/spring/basic-applicationContext.xml

+++ b/config/spring/basic-applicationContext.xml

@@ -321,4 +321,28 @@

-

\ No newline at end of file

+

+

+ +

+

+

+

+ +

+

+

+

+

+

+ +

+

+

+

+ +

+

+

+

+

diff --git a/config/spring/dao-applicationContext.xml b/config/spring/dao-applicationContext.xml

index be9e3cd..cdd3f46 100644

--- a/config/spring/dao-applicationContext.xml

+++ b/config/spring/dao-applicationContext.xml

@@ -47,5 +47,9 @@

-

+

+

+

+

+

\ No newline at end of file

diff --git a/config/struts2/account-struts.xml b/config/struts2/account-struts.xml

new file mode 100644

index 0000000..e96a081

--- /dev/null

+++ b/config/struts2/account-struts.xml

@@ -0,0 +1,11 @@

+

+"-//Apache Software Foundation//DTD Struts Configuration 2.1.7//EN"

+"http://struts.apache.org/dtds/struts-2.1.7.dtd">

++ + +

+

+

+

diff --git a/config/struts2/inOutItem-struts.xml b/config/struts2/inOutItem-struts.xml

new file mode 100644

index 0000000..99d49db

--- /dev/null

+++ b/config/struts2/inOutItem-struts.xml

@@ -0,0 +1,11 @@

+

+"-//Apache Software Foundation//DTD Struts Configuration 2.1.7//EN"

+"http://struts.apache.org/dtds/struts-2.1.7.dtd">

++ + +

+

+

+

diff --git a/src/com/jsh/action/basic/AccountAction.java b/src/com/jsh/action/basic/AccountAction.java

new file mode 100644

index 0000000..44d9743

--- /dev/null

+++ b/src/com/jsh/action/basic/AccountAction.java

@@ -0,0 +1,335 @@

+package com.jsh.action.basic;

+

+import java.io.IOException;

+import java.sql.Timestamp;

+import java.util.HashMap;

+import java.util.List;

+import java.util.Map;

+

+import net.sf.json.JSONArray;

+import net.sf.json.JSONObject;

+

+import org.springframework.dao.DataAccessException;

+

+import com.jsh.base.BaseAction;

+import com.jsh.base.Log;

+import com.jsh.model.po.Logdetails;

+import com.jsh.model.po.Account;

+import com.jsh.model.vo.basic.AccountModel;

+import com.jsh.service.basic.AccountIService;

+import com.jsh.util.common.PageUtil;

+/**

+ * 结算账户

+ * @author ji sheng hua

+ */

+@SuppressWarnings("serial")

+public class AccountAction extends BaseAction+{

+ private AccountIService accountService;

+ private AccountModel model = new AccountModel();

+

+ /**

+ * 增加结算账户

+ * @return

+ */

+ public void create()

+ {

+ Log.infoFileSync("==================开始调用增加结算账户方法===================");

+ Boolean flag = false;

+ try

+ {

+ Account Account = new Account();

+ Account.setName(model.getName());

+ Account.setSerialNo(model.getSerialNo());

+ Account.setInitialAmount(model.getInitialAmount());

+ Account.setCurrentAmount(model.getCurrentAmount());

+ Account.setRemark(model.getRemark());

+ accountService.create(Account);

+

+ //========标识位===========

+ flag = true;

+ //记录操作日志使用

+ tipMsg = "成功";

+ tipType = 0;

+ }

+ catch (DataAccessException e)

+ {

+ Log.errorFileSync(">>>>>>>>>>>>>>>>>>>增加结算账户异常", e);

+ flag = false;

+ tipMsg = "失败";

+ tipType = 1;

+ }

+ finally

+ {

+ try

+ {

+ toClient(flag.toString());

+ }

+ catch (IOException e)

+ {

+ Log.errorFileSync(">>>>>>>>>>>>增加结算账户回写客户端结果异常", e);

+ }

+ }

+

+ logService.create(new Logdetails(getUser(), "增加结算账户", model.getClientIp(),

+ new Timestamp(System.currentTimeMillis())

+ , tipType, "增加结算账户名称为 "+ model.getName() + " " + tipMsg + "!", "增加结算账户" + tipMsg));

+ Log.infoFileSync("==================结束调用增加结算账户方法===================");

+ }

+

+ /**

+ * 删除结算账户

+ * @return

+ */

+ public String delete()

+ {

+ Log.infoFileSync("====================开始调用删除结算账户信息方法delete()================");

+ try

+ {

+ accountService.delete(model.getAccountID());

+ tipMsg = "成功";

+ tipType = 0;

+ }

+ catch (DataAccessException e)

+ {

+ Log.errorFileSync(">>>>>>>>>>>删除ID为 " + model.getAccountID() + " 的结算账户异常", e);

+ tipMsg = "失败";

+ tipType = 1;

+ }

+ model.getShowModel().setMsgTip(tipMsg);

+ logService.create(new Logdetails(getUser(), "删除结算账户", model.getClientIp(),

+ new Timestamp(System.currentTimeMillis())

+ , tipType, "删除结算账户ID为 "+ model.getAccountID() + ",名称为 " + model.getName() + tipMsg + "!", "删除结算账户" + tipMsg));

+ Log.infoFileSync("====================结束调用删除结算账户信息方法delete()================");

+ return SUCCESS;

+ }

+

+ /**

+ * 更新结算账户

+ * @return

+ */

+ public void update()

+ {

+ Boolean flag = false;

+ try

+ {

+ Account Account = accountService.get(model.getAccountID());

+ Account.setName(model.getName());

+ Account.setSerialNo(model.getSerialNo());

+ Account.setInitialAmount(model.getInitialAmount());

+ Account.setCurrentAmount(model.getCurrentAmount());

+ Account.setRemark(model.getRemark());

+ accountService.update(Account);

+

+ flag = true;

+ tipMsg = "成功";

+ tipType = 0;

+ }

+ catch (DataAccessException e)

+ {

+ Log.errorFileSync(">>>>>>>>>>>>>修改结算账户ID为 : " + model.getAccountID() + "信息失败", e);

+ flag = false;

+ tipMsg = "失败";

+ tipType = 1;

+ }

+ finally

+ {

+ try

+ {

+ toClient(flag.toString());

+ }

+ catch (IOException e)

+ {

+ Log.errorFileSync(">>>>>>>>>>>>修改结算账户回写客户端结果异常", e);

+ }

+ }

+ logService.create(new Logdetails(getUser(), "更新结算账户", model.getClientIp(),

+ new Timestamp(System.currentTimeMillis())

+ , tipType, "更新结算账户ID为 "+ model.getAccountID() + " " + tipMsg + "!", "更新结算账户" + tipMsg));

+ }

+

+ /**

+ * 批量删除指定ID结算账户

+ * @return

+ */

+ public String batchDelete()

+ {

+ try

+ {

+ accountService.batchDelete(model.getAccountIDs());

+ model.getShowModel().setMsgTip("成功");

+ //记录操作日志使用

+ tipMsg = "成功";

+ tipType = 0;

+ }

+ catch (DataAccessException e)

+ {

+ Log.errorFileSync(">>>>>>>>>>>批量删除结算账户ID为:" + model.getAccountIDs() + "信息异常", e);

+ tipMsg = "失败";

+ tipType = 1;

+ }

+

+ logService.create(new Logdetails(getUser(), "批量删除结算账户", model.getClientIp(),

+ new Timestamp(System.currentTimeMillis())

+ , tipType, "批量删除结算账户ID为 "+ model.getAccountIDs() + " " + tipMsg + "!", "批量删除结算账户" + tipMsg));

+ return SUCCESS;

+ }

+

+ /**

+ * 检查输入名称是否存在

+ */

+ public void checkIsNameExist()

+ {

+ Boolean flag = false;

+ try

+ {

+ flag = accountService.checkIsNameExist("name", model.getName(), "id", model.getAccountID());

+ }

+ catch (DataAccessException e)

+ {

+ Log.errorFileSync(">>>>>>>>>>>>>>>>>检查结算账户名称为:" + model.getName() + " ID为: " + model.getAccountID() + " 是否存在异常!");

+ }

+ finally

+ {

+ try

+ {

+ toClient(flag.toString());

+ }

+ catch (IOException e)

+ {

+ Log.errorFileSync(">>>>>>>>>>>>回写检查结算账户名称为:" + model.getName() + " ID为: " + model.getAccountID() + " 是否存在异常!",e);

+ }

+ }

+ }

+

+ /**

+ * 查找结算账户信息

+ * @return

+ */

+ public void findBy()

+ {

+ try

+ {

+ PageUtilpageUtil = new PageUtil();

+ pageUtil.setPageSize(model.getPageSize());

+ pageUtil.setCurPage(model.getPageNo());

+ pageUtil.setAdvSearch(getCondition());

+ accountService.find(pageUtil);

+ ListdataList = pageUtil.getPageList();

+

+ JSONObject outer = new JSONObject();

+ outer.put("total", pageUtil.getTotalCount());

+ //存放数据json数组

+ JSONArray dataArray = new JSONArray();

+ if(null != dataList)

+ {

+ for(Account account:dataList)

+ {

+ JSONObject item = new JSONObject();

+ item.put("id", account.getId());

+ //结算账户名称

+ item.put("name", account.getName());

+ item.put("serialNo", account.getSerialNo());

+ item.put("initialAmount", account.getInitialAmount());

+ item.put("currentAmount", account.getCurrentAmount());

+ item.put("remark", account.getRemark());

+ item.put("op", 1);

+ dataArray.add(item);

+ }

+ }

+ outer.put("rows", dataArray);

+ //回写查询结果

+ toClient(outer.toString());

+ }

+ catch (DataAccessException e)

+ {

+ Log.errorFileSync(">>>>>>>>>查找结算账户信息异常", e);

+ }

+ catch (IOException e)

+ {

+ Log.errorFileSync(">>>>>>>>>回写查询结算账户信息结果异常", e);

+ }

+ }

+

+ /**

+ * 查找结算账户信息-下拉框

+ * @return

+ */

+ public void findBySelect()

+ {

+ try

+ {

+ PageUtilpageUtil = new PageUtil();

+ pageUtil.setPageSize(0);

+ pageUtil.setCurPage(0);

+ pageUtil.setAdvSearch(getCondition_select());

+ accountService.find(pageUtil);

+ ListdataList = pageUtil.getPageList();

+ //存放数据json数组

+ JSONArray dataArray = new JSONArray();

+ if(null != dataList)

+ {

+ for(Account account:dataList)

+ {

+ JSONObject item = new JSONObject();

+ item.put("id", account.getId());

+ //结算账户名称

+ item.put("name", account.getName());

+ dataArray.add(item);

+ }

+ }

+ //回写查询结果

+ toClient(dataArray.toString());

+ }

+ catch (DataAccessException e)

+ {

+ Log.errorFileSync(">>>>>>>>>查找结算账户信息异常", e);

+ }

+ catch (IOException e)

+ {

+ Log.errorFileSync(">>>>>>>>>回写查询结算账户信息结果异常", e);

+ }

+ }

+

+ /**

+ * 拼接搜索条件

+ * @return

+ */

+ private MapgetCondition()

+ {

+ /**

+ * 拼接搜索条件

+ */

+ Mapcondition = new HashMap();

+ condition.put("name_s_like", model.getName());

+ condition.put("serialNo_s_like", model.getSerialNo());

+ condition.put("remark_s_like", model.getRemark());

+ condition.put("id_s_order", "desc");

+ return condition;

+ }

+

+ /**

+ * 拼接搜索条件-下拉框-结算账户

+ * @return

+ */

+ private MapgetCondition_select()

+ {

+ /**

+ * 拼接搜索条件

+ */

+ Mapcondition = new HashMap();

+ condition.put("id_s_order", "desc");

+ return condition;

+ }

+

+ //=============以下spring注入以及Model驱动公共方法,与Action处理无关==================

+ @Override

+ public AccountModel getModel()

+ {

+ return model;

+ }

+ public void setAccountService(AccountIService accountService)

+ {

+ this.accountService = accountService;

+ }

+}

diff --git a/src/com/jsh/action/basic/AppAction.java b/src/com/jsh/action/basic/AppAction.java

index b6cd132..46e4971 100644

--- a/src/com/jsh/action/basic/AppAction.java

+++ b/src/com/jsh/action/basic/AppAction.java

@@ -30,7 +30,10 @@

import com.jsh.service.basic.UserBusinessIService;

import com.jsh.util.common.PageUtil;

//import com.opensymphony.xwork2.ActionContext;

-

+/**

+ * 应用

+ * @author ji_sheng_hua

+ */

@SuppressWarnings("serial")

public class AppAction extends BaseAction{

diff --git a/src/com/jsh/action/basic/InOutItemAction.java b/src/com/jsh/action/basic/InOutItemAction.java

new file mode 100644

index 0000000..9ab7faf

--- /dev/null

+++ b/src/com/jsh/action/basic/InOutItemAction.java

@@ -0,0 +1,328 @@

+package com.jsh.action.basic;

+

+import java.io.IOException;

+import java.sql.Timestamp;

+import java.util.HashMap;

+import java.util.List;

+import java.util.Map;

+

+import net.sf.json.JSONArray;

+import net.sf.json.JSONObject;

+

+import org.springframework.dao.DataAccessException;

+

+import com.jsh.base.BaseAction;

+import com.jsh.base.Log;

+import com.jsh.model.po.Logdetails;

+import com.jsh.model.po.InOutItem;

+import com.jsh.model.vo.basic.InOutItemModel;

+import com.jsh.service.basic.InOutItemIService;

+import com.jsh.util.common.PageUtil;

+/**

+ * 收支项目

+ * @author ji*sheng*hua

+ */

+@SuppressWarnings("serial")

+public class InOutItemAction extends BaseAction+{

+ private InOutItemIService inOutItemService;

+ private InOutItemModel model = new InOutItemModel();

+

+ /**

+ * 增加收支项目

+ * @return

+ */

+ public void create()

+ {

+ Log.infoFileSync("==================开始调用增加收支项目方法===================");

+ Boolean flag = false;

+ try

+ {

+ InOutItem inOutItem = new InOutItem();

+ inOutItem.setName(model.getName());

+ inOutItem.setType(model.getType());

+ inOutItem.setRemark(model.getRemark());

+ inOutItemService.create(inOutItem);

+

+ //========标识位===========

+ flag = true;

+ //记录操作日志使用

+ tipMsg = "成功";

+ tipType = 0;

+ }

+ catch (DataAccessException e)

+ {

+ Log.errorFileSync(">>>>>>>>>>>>>>>>>>>增加收支项目异常", e);

+ flag = false;

+ tipMsg = "失败";

+ tipType = 1;

+ }

+ finally

+ {

+ try

+ {

+ toClient(flag.toString());

+ }

+ catch (IOException e)

+ {

+ Log.errorFileSync(">>>>>>>>>>>>增加收支项目回写客户端结果异常", e);

+ }

+ }

+

+ logService.create(new Logdetails(getUser(), "增加收支项目", model.getClientIp(),

+ new Timestamp(System.currentTimeMillis())

+ , tipType, "增加收支项目名称为 "+ model.getName() + " " + tipMsg + "!", "增加收支项目" + tipMsg));

+ Log.infoFileSync("==================结束调用增加收支项目方法===================");

+ }

+

+ /**

+ * 删除收支项目

+ * @return

+ */

+ public String delete()

+ {

+ Log.infoFileSync("====================开始调用删除收支项目信息方法delete()================");

+ try

+ {

+ inOutItemService.delete(model.getInOutItemID());

+ tipMsg = "成功";

+ tipType = 0;

+ }

+ catch (DataAccessException e)

+ {

+ Log.errorFileSync(">>>>>>>>>>>删除ID为 " + model.getInOutItemID() + " 的收支项目异常", e);

+ tipMsg = "失败";

+ tipType = 1;

+ }

+ model.getShowModel().setMsgTip(tipMsg);

+ logService.create(new Logdetails(getUser(), "删除收支项目", model.getClientIp(),

+ new Timestamp(System.currentTimeMillis())

+ , tipType, "删除收支项目ID为 "+ model.getInOutItemID() + ",名称为 " + model.getName() + tipMsg + "!", "删除收支项目" + tipMsg));

+ Log.infoFileSync("====================结束调用删除收支项目信息方法delete()================");

+ return SUCCESS;

+ }

+

+ /**

+ * 更新收支项目

+ * @return

+ */

+ public void update()

+ {

+ Boolean flag = false;

+ try

+ {

+ InOutItem inOutItem = inOutItemService.get(model.getInOutItemID());

+ inOutItem.setName(model.getName());

+ inOutItem.setType(model.getType());

+ inOutItem.setRemark(model.getRemark());

+ inOutItemService.update(inOutItem);

+

+ flag = true;

+ tipMsg = "成功";

+ tipType = 0;

+ }

+ catch (DataAccessException e)

+ {

+ Log.errorFileSync(">>>>>>>>>>>>>修改收支项目ID为 : " + model.getInOutItemID() + "信息失败", e);

+ flag = false;

+ tipMsg = "失败";

+ tipType = 1;

+ }

+ finally

+ {

+ try

+ {

+ toClient(flag.toString());

+ }

+ catch (IOException e)

+ {

+ Log.errorFileSync(">>>>>>>>>>>>修改收支项目回写客户端结果异常", e);

+ }

+ }

+ logService.create(new Logdetails(getUser(), "更新收支项目", model.getClientIp(),

+ new Timestamp(System.currentTimeMillis())

+ , tipType, "更新收支项目ID为 "+ model.getInOutItemID() + " " + tipMsg + "!", "更新收支项目" + tipMsg));

+ }

+

+ /**

+ * 批量删除指定ID收支项目

+ * @return

+ */

+ public String batchDelete()

+ {

+ try

+ {

+ inOutItemService.batchDelete(model.getInOutItemIDs());

+ model.getShowModel().setMsgTip("成功");

+ //记录操作日志使用

+ tipMsg = "成功";

+ tipType = 0;

+ }

+ catch (DataAccessException e)

+ {

+ Log.errorFileSync(">>>>>>>>>>>批量删除收支项目ID为:" + model.getInOutItemIDs() + "信息异常", e);

+ tipMsg = "失败";

+ tipType = 1;

+ }

+

+ logService.create(new Logdetails(getUser(), "批量删除收支项目", model.getClientIp(),

+ new Timestamp(System.currentTimeMillis())

+ , tipType, "批量删除收支项目ID为 "+ model.getInOutItemIDs() + " " + tipMsg + "!", "批量删除收支项目" + tipMsg));

+ return SUCCESS;

+ }

+

+ /**

+ * 检查输入名称是否存在

+ */

+ public void checkIsNameExist()

+ {

+ Boolean flag = false;

+ try

+ {

+ flag = inOutItemService.checkIsNameExist("name",model.getName(),"id", model.getInOutItemID());

+ }

+ catch (DataAccessException e)

+ {

+ Log.errorFileSync(">>>>>>>>>>>>>>>>>检查收支项目名称为:" + model.getName() + " ID为: " + model.getInOutItemID() + " 是否存在异常!");

+ }

+ finally

+ {

+ try

+ {

+ toClient(flag.toString());

+ }

+ catch (IOException e)

+ {

+ Log.errorFileSync(">>>>>>>>>>>>回写检查收支项目名称为:" + model.getName() + " ID为: " + model.getInOutItemID() + " 是否存在异常!",e);

+ }

+ }

+ }

+

+ /**

+ * 查找收支项目信息

+ * @return

+ */

+ public void findBy()

+ {

+ try

+ {

+ PageUtilpageUtil = new PageUtil();

+ pageUtil.setPageSize(model.getPageSize());

+ pageUtil.setCurPage(model.getPageNo());

+ pageUtil.setAdvSearch(getCondition());

+ inOutItemService.find(pageUtil);

+ ListdataList = pageUtil.getPageList();

+

+ JSONObject outer = new JSONObject();

+ outer.put("total", pageUtil.getTotalCount());

+ //存放数据json数组

+ JSONArray dataArray = new JSONArray();

+ if(null != dataList)

+ {

+ for(InOutItem inOutItem:dataList)

+ {

+ JSONObject item = new JSONObject();

+ item.put("id", inOutItem.getId());

+ //收支项目名称

+ item.put("name", inOutItem.getName());

+ item.put("type", inOutItem.getType());

+ item.put("remark", inOutItem.getRemark());

+ item.put("op", 1);

+ dataArray.add(item);

+ }

+ }

+ outer.put("rows", dataArray);

+ //回写查询结果

+ toClient(outer.toString());

+ }

+ catch (DataAccessException e)

+ {

+ Log.errorFileSync(">>>>>>>>>查找收支项目信息异常", e);

+ }

+ catch (IOException e)

+ {

+ Log.errorFileSync(">>>>>>>>>回写查询收支项目信息结果异常", e);

+ }

+ }

+

+ /**

+ * 查找收支项目信息-下拉框

+ * @return

+ */

+ public void findBySelect()

+ {

+ try

+ {

+ PageUtilpageUtil = new PageUtil();

+ pageUtil.setPageSize(0);

+ pageUtil.setCurPage(0);

+ pageUtil.setAdvSearch(getCondition_select());

+ inOutItemService.find(pageUtil);

+ ListdataList = pageUtil.getPageList();

+ //存放数据json数组

+ JSONArray dataArray = new JSONArray();

+ if(null != dataList)

+ {

+ for(InOutItem inOutItem:dataList)

+ {

+ JSONObject item = new JSONObject();

+ item.put("id", inOutItem.getId());

+ //收支项目名称

+ item.put("name", inOutItem.getName());

+ dataArray.add(item);

+ }

+ }

+ //回写查询结果

+ toClient(dataArray.toString());

+ }

+ catch (DataAccessException e)

+ {

+ Log.errorFileSync(">>>>>>>>>查找收支项目信息异常", e);

+ }

+ catch (IOException e)

+ {

+ Log.errorFileSync(">>>>>>>>>回写查询收支项目信息结果异常", e);

+ }

+ }

+

+ /**

+ * 拼接搜索条件

+ * @return

+ */

+ private MapgetCondition()

+ {

+ /**

+ * 拼接搜索条件

+ */

+ Mapcondition = new HashMap();

+ condition.put("name_s_like", model.getName());

+ condition.put("remark_s_like", model.getRemark());

+ condition.put("id_s_order", "desc");

+ return condition;

+ }

+

+ /**

+ * 拼接搜索条件-下拉框-收支项目

+ * @return

+ */

+ private MapgetCondition_select()

+ {

+ /**

+ * 拼接搜索条件

+ */

+ Mapcondition = new HashMap();

+ condition.put("id_s_order", "desc");

+ return condition;

+ }

+

+ //=============以下spring注入以及Model驱动公共方法,与Action处理无关==================

+ @Override

+ public InOutItemModel getModel()

+ {

+ return model;

+ }

+ public void setInOutItemService(InOutItemIService inOutItemService)

+ {

+ this.inOutItemService = inOutItemService;

+ }

+}

diff --git a/src/com/jsh/dao/basic/AccountDAO.java b/src/com/jsh/dao/basic/AccountDAO.java

new file mode 100644

index 0000000..8af8992

--- /dev/null

+++ b/src/com/jsh/dao/basic/AccountDAO.java

@@ -0,0 +1,17 @@

+package com.jsh.dao.basic;

+

+import com.jsh.base.BaseDAO;

+import com.jsh.model.po.Account;

+

+public class AccountDAO extends BaseDAOimplements AccountIDAO

+{

+ /**

+ * 设置dao映射基类

+ * @return

+ */

+ @Override

+ public ClassgetEntityClass()

+ {

+ return Account.class;

+ }

+}

diff --git a/src/com/jsh/dao/basic/AccountIDAO.java b/src/com/jsh/dao/basic/AccountIDAO.java

new file mode 100644

index 0000000..a6f90bd

--- /dev/null

+++ b/src/com/jsh/dao/basic/AccountIDAO.java

@@ -0,0 +1,9 @@

+package com.jsh.dao.basic;

+

+import com.jsh.base.BaseIDAO;

+import com.jsh.model.po.Account;

+

+public interface AccountIDAO extends BaseIDAO+{

+

+}

diff --git a/src/com/jsh/dao/basic/InOutItemDAO.java b/src/com/jsh/dao/basic/InOutItemDAO.java

new file mode 100644

index 0000000..669fcdd

--- /dev/null

+++ b/src/com/jsh/dao/basic/InOutItemDAO.java

@@ -0,0 +1,17 @@

+package com.jsh.dao.basic;

+

+import com.jsh.base.BaseDAO;

+import com.jsh.model.po.InOutItem;

+

+public class InOutItemDAO extends BaseDAOimplements InOutItemIDAO

+{

+ /**

+ * 设置dao映射基类

+ * @return

+ */

+ @Override

+ public ClassgetEntityClass()

+ {

+ return InOutItem.class;

+ }

+}

diff --git a/src/com/jsh/dao/basic/InOutItemIDAO.java b/src/com/jsh/dao/basic/InOutItemIDAO.java

new file mode 100644

index 0000000..c9c96d4

--- /dev/null

+++ b/src/com/jsh/dao/basic/InOutItemIDAO.java

@@ -0,0 +1,9 @@

+package com.jsh.dao.basic;

+

+import com.jsh.base.BaseIDAO;

+import com.jsh.model.po.InOutItem;

+

+public interface InOutItemIDAO extends BaseIDAO+{

+

+}

diff --git a/src/com/jsh/dao/materials/DepotItemDAO.java b/src/com/jsh/dao/materials/DepotItemDAO.java

index 189551b..9cac2ce 100644

--- a/src/com/jsh/dao/materials/DepotItemDAO.java

+++ b/src/com/jsh/dao/materials/DepotItemDAO.java

@@ -36,24 +36,4 @@ public void findByType(PageUtilpageUtil,String type,Long MId,String

pageUtil.setTotalCount(query.list().size());

pageUtil.setPageList(query.list());

}

-

-

- @SuppressWarnings("unchecked")

- @Override

-public void findOrderByMaterial(PageUtilpageUtil) throws JshException

- {

- //多表联查,多表连查,此处用到了createSQLQuery,可以随便写sql语句,很方便

- Query query = this.getHibernateTemplate().getSessionFactory().getCurrentSession().createSQLQuery("select * from jsh_depotitem where 1=1 " + SearchConditionUtil.getCondition(pageUtil.getAdvSearch()));

- pageUtil.setTotalCount(query.list().size());

-

- // 分页查询

-int pageNo = pageUtil.getCurPage();

-int pageSize = pageUtil.getPageSize();

-if (0 != pageNo && 0 != pageSize)

-{

-query.setFirstResult((pageNo - 1) * pageSize);

-query.setMaxResults(pageSize);

-}

-pageUtil.setPageList(query.list());

- }

}

diff --git a/src/com/jsh/dao/materials/DepotItemIDAO.java b/src/com/jsh/dao/materials/DepotItemIDAO.java

index d67838f..12b7648 100644

--- a/src/com/jsh/dao/materials/DepotItemIDAO.java

+++ b/src/com/jsh/dao/materials/DepotItemIDAO.java

@@ -8,7 +8,5 @@

public interface DepotItemIDAO extends BaseIDAO{

- void findByType(PageUtilpageUtil,String type,Long MId, String MonthTime,Boolean isPrev) throws JshException;

-

- void findOrderByMaterial(PageUtilpageUtil) throws JshException;

+ void findByType(PageUtilpageUtil,String type,Long MId, String MonthTime,Boolean isPrev) throws JshException;

}

diff --git a/src/com/jsh/filter/common/OpenSessionInViewFilterExtend.java b/src/com/jsh/filter/common/OpenSessionInViewFilterExtend.java

index 877fa5c..c46b325 100644

--- a/src/com/jsh/filter/common/OpenSessionInViewFilterExtend.java

+++ b/src/com/jsh/filter/common/OpenSessionInViewFilterExtend.java

@@ -1,24 +1,24 @@

-package com.jsh.filter.common;

-

-import org.hibernate.FlushMode;

-import org.hibernate.Session;

-import org.hibernate.SessionFactory;

-import org.springframework.dao.DataAccessResourceFailureException;

-import org.springframework.orm.hibernate3.support.OpenSessionInViewFilter;

-

-public class OpenSessionInViewFilterExtend extends OpenSessionInViewFilter

-{

-@Override

-protected Session getSession(SessionFactory sessionFactory)

-throws DataAccessResourceFailureException

-{

-this.setFlushMode(FlushMode.AUTO);

-return super.getSession(sessionFactory);

-}

-@Override

-protected void closeSession(Session session, SessionFactory sessionFactory)

-{

-session.flush();

-super.closeSession(session, sessionFactory);

-}

-}

+package com.jsh.filter.common;

+

+import org.hibernate.FlushMode;

+import org.hibernate.Session;

+import org.hibernate.SessionFactory;

+import org.springframework.dao.DataAccessResourceFailureException;

+import org.springframework.orm.hibernate3.support.OpenSessionInViewFilter;

+

+public class OpenSessionInViewFilterExtend extends OpenSessionInViewFilter

+{

+@Override

+protected Session getSession(SessionFactory sessionFactory)

+throws DataAccessResourceFailureException

+{

+this.setFlushMode(FlushMode.AUTO);

+return super.getSession(sessionFactory);

+}

+@Override

+protected void closeSession(Session session, SessionFactory sessionFactory)

+{

+session.flush();

+super.closeSession(session, sessionFactory);

+}

+}

diff --git a/src/com/jsh/model/po/Account.hbm.xml b/src/com/jsh/model/po/Account.hbm.xml

new file mode 100644

index 0000000..321003e

--- /dev/null

+++ b/src/com/jsh/model/po/Account.hbm.xml

@@ -0,0 +1,36 @@

+

+"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

++ + +

+

+

+ + + 名称

+

+

+ + + 编号

+

+

+ + + 期初金额

+

+

+ + + 当前余额

+

+

+ + + 备注

+

+

+

+

diff --git a/src/com/jsh/model/po/Account.java b/src/com/jsh/model/po/Account.java

new file mode 100644

index 0000000..cfe5ffd

--- /dev/null

+++ b/src/com/jsh/model/po/Account.java

@@ -0,0 +1,90 @@

+package com.jsh.model.po;

+

+@SuppressWarnings("serial")

+public class Account implements java.io.Serializable

+{

+ private Long Id;

+ private String Name;

+ private String SerialNo;

+ private Double InitialAmount;

+ private Double CurrentAmount;

+ private String Remark;

+

+ public Account()

+ {

+

+ }

+

+ public Account(Long Id)

+ {

+ this.Id = Id;

+ }

+

+ public Account(String name, String serialNo, Double initialAmount, Double currentAmount, String remark) {

+ Name = name;

+ SerialNo = serialNo;

+ InitialAmount = initialAmount;

+ CurrentAmount = currentAmount;

+ Remark = remark;

+ }

+

+ public void setId(Long id)

+ {

+ Id = id;

+ }

+

+ public Long getId()

+ {

+ return Id;

+ }

+

+ public void setName(String name)

+ {

+ Name = name;

+ }

+

+ public String getName()

+ {

+ return Name;

+ }

+

+ public void setSerialNo(String serialNo)

+ {

+ SerialNo = serialNo;

+ }

+

+ public String getSerialNo()

+ {

+ return SerialNo;

+ }

+

+ public void setInitialAmount(Double initialAmount)

+ {

+ InitialAmount = initialAmount;

+ }

+

+ public Double getInitialAmount()

+ {

+ return InitialAmount;

+ }

+

+ public void setCurrentAmount(Double currentAmount)

+ {

+ CurrentAmount = currentAmount;

+ }

+

+ public Double getCurrentAmount()

+ {

+ return CurrentAmount;

+ }

+

+ public void setRemark(String remark)

+ {

+ Remark = remark;

+ }

+

+ public String getRemark()

+ {

+ return Remark;

+ }

+}

diff --git a/src/com/jsh/model/po/DepotItem.java b/src/com/jsh/model/po/DepotItem.java

index dc832b9..420d606 100644

--- a/src/com/jsh/model/po/DepotItem.java

+++ b/src/com/jsh/model/po/DepotItem.java

@@ -1,103 +1,103 @@

-package com.jsh.model.po;

-

-@SuppressWarnings("serial")

-public class DepotItem implements java.io.Serializable

-{

-private Long Id;

-private DepotHead HeaderId;

-private Material MaterialId;

-private Double OperNumber;

-private Double UnitPrice;

-private Double Incidentals;

-private String Remark;

-private String Img;

-

-public DepotItem()

-{

-

-}

-

-public DepotItem(Long Id)

-{

-this.Id = Id ;

-}

-

-public DepotItem(DepotHead headerId, Material materialId,

-Double operNumber, Double unitPrice, Double incidentals,

-String remark, String img) {

-super();

-HeaderId = headerId;

-MaterialId = materialId;

-OperNumber = operNumber;

-UnitPrice = unitPrice;

-Incidentals = incidentals;

-Remark = remark;

-Img = img;

-}

-

-public Long getId() {

-return Id;

-}

-

-public void setId(Long id) {

-Id = id;

-}

-

-public DepotHead getHeaderId() {

-return HeaderId;

-}

-

-public void setHeaderId(DepotHead headerId) {

-HeaderId = headerId;

-}

-

-public Material getMaterialId() {

-return MaterialId;

-}

-

-public void setMaterialId(Material materialId) {

-MaterialId = materialId;

-}

-

-public Double getOperNumber() {

-return OperNumber;

-}

-

-public void setOperNumber(Double operNumber) {

-OperNumber = operNumber;

-}

-

-public Double getUnitPrice() {

-return UnitPrice;

-}

-

-public void setUnitPrice(Double unitPrice) {

-UnitPrice = unitPrice;

-}

-

-public Double getIncidentals() {

-return Incidentals;

-}

-

-public void setIncidentals(Double incidentals) {

-Incidentals = incidentals;

-}

-

-public String getRemark() {

-return Remark;

-}

-

-public void setRemark(String remark) {

-Remark = remark;

-}

-

-public String getImg() {

-return Img;

-}

-

-public void setImg(String img) {

-Img = img;

-}

-

-

-}

\ No newline at end of file

+package com.jsh.model.po;

+

+@SuppressWarnings("serial")

+public class DepotItem implements java.io.Serializable

+{

+private Long Id;

+private DepotHead HeaderId;

+private Material MaterialId;

+private Double OperNumber;

+private Double UnitPrice;

+private Double Incidentals;

+private String Remark;

+private String Img;

+

+public DepotItem()

+{

+

+}

+

+public DepotItem(Long Id)

+{

+this.Id = Id ;

+}

+

+public DepotItem(DepotHead headerId, Material materialId,

+Double operNumber, Double unitPrice, Double incidentals,

+String remark, String img) {

+super();

+HeaderId = headerId;

+MaterialId = materialId;

+OperNumber = operNumber;

+UnitPrice = unitPrice;

+Incidentals = incidentals;

+Remark = remark;

+Img = img;

+}

+

+public Long getId() {

+return Id;

+}

+

+public void setId(Long id) {

+Id = id;

+}

+

+public DepotHead getHeaderId() {

+return HeaderId;

+}

+

+public void setHeaderId(DepotHead headerId) {

+HeaderId = headerId;

+}

+

+public Material getMaterialId() {

+return MaterialId;

+}

+

+public void setMaterialId(Material materialId) {

+MaterialId = materialId;

+}

+

+public Double getOperNumber() {

+return OperNumber;

+}

+

+public void setOperNumber(Double operNumber) {

+OperNumber = operNumber;

+}

+

+public Double getUnitPrice() {

+return UnitPrice;

+}

+

+public void setUnitPrice(Double unitPrice) {

+UnitPrice = unitPrice;

+}

+

+public Double getIncidentals() {

+return Incidentals;

+}

+

+public void setIncidentals(Double incidentals) {

+Incidentals = incidentals;

+}

+

+public String getRemark() {

+return Remark;

+}

+

+public void setRemark(String remark) {

+Remark = remark;

+}

+

+public String getImg() {

+return Img;

+}

+

+public void setImg(String img) {

+Img = img;

+}

+

+

+}

diff --git a/src/com/jsh/model/po/InOutItem.hbm.xml b/src/com/jsh/model/po/InOutItem.hbm.xml

new file mode 100644

index 0000000..4e8afb9

--- /dev/null

+++ b/src/com/jsh/model/po/InOutItem.hbm.xml

@@ -0,0 +1,26 @@

+

+"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

++ + +

+

+

+ + + 名称

+

+

+ + + 类型

+

+

+ + + 备注

+

+

+

+

diff --git a/src/com/jsh/model/po/InOutItem.java b/src/com/jsh/model/po/InOutItem.java

new file mode 100644

index 0000000..09ca137

--- /dev/null

+++ b/src/com/jsh/model/po/InOutItem.java

@@ -0,0 +1,66 @@

+package com.jsh.model.po;

+

+@SuppressWarnings("serial")

+public class InOutItem implements java.io.Serializable

+{

+ private Long Id;

+ private String Name;

+ private String Type;

+ private String Remark;

+

+ public InOutItem()

+ {

+

+ }

+

+ public InOutItem(Long Id)

+ {

+ this.Id = Id;

+ }

+

+ public InOutItem(String name, String type, String remark) {

+ Name = name;

+ Type = type;

+ Remark = remark;

+ }

+

+ public void setId(Long id)

+ {

+ Id = id;

+ }

+

+ public Long getId()

+ {

+ return Id;

+ }

+

+ public void setName(String name)

+ {

+ Name = name;

+ }

+

+ public String getName()

+ {

+ return Name;

+ }

+

+ public void setType(String type)

+ {

+ Type = type;

+ }

+

+ public String getType()

+ {

+ return Type;

+ }

+

+ public void setRemark(String remark)

+ {

+ Remark = remark;

+ }

+

+ public String getRemark()

+ {

+ return Remark;

+ }

+}

diff --git a/src/com/jsh/model/vo/basic/AccountModel.java b/src/com/jsh/model/vo/basic/AccountModel.java

new file mode 100644

index 0000000..ec50f74

--- /dev/null

+++ b/src/com/jsh/model/vo/basic/AccountModel.java

@@ -0,0 +1,170 @@

+package com.jsh.model.vo.basic;

+

+import java.io.Serializable;

+

+@SuppressWarnings("serial")

+public class AccountModel implements Serializable

+{

+ private AccountShowModel showModel = new AccountShowModel();

+

+ /**======开始接受页面参数=================**/

+ /**

+ * 名称

+ */

+ private String name = "";

+

+ /**

+ * 编号

+ */

+ private String serialNo = "";

+

+ /**

+ * 期初金额

+ */

+ private Double initialAmount;

+

+ /**

+ * 当前余额

+ */

+ private Double currentAmount;

+

+ /**

+ * 备注

+ */

+ private String remark = "";

+

+ /**

+ * 分类ID

+ */

+ private Long accountID = 0l;

+

+ /**

+ * 分类IDs 批量操作使用

+ */

+ private String accountIDs = "";

+

+ /**

+ * 每页显示的个数

+ */

+ private int pageSize = 10;

+

+ /**

+ * 当前页码

+ */

+ private int pageNo = 1;

+

+ /**

+ * 用户IP,用户记录操作日志

+ */

+ private String clientIp = "";

+

+ public void setShowModel(AccountShowModel showModel)

+ {

+ this.showModel = showModel;

+ }

+

+ public AccountShowModel getShowModel()

+ {

+ return showModel;

+ }

+

+ public void setName(String name)

+ {

+ this.name = name;

+ }

+

+ public String getName()

+ {

+ return name;

+ }

+

+ public void setSerialNo(String serialNo)

+ {

+ this.serialNo = serialNo;

+ }

+

+ public String getSerialNo()

+ {

+ return serialNo;

+ }

+

+ public void setInitialAmount(Double initialAmount)

+ {

+ this.initialAmount = initialAmount;

+ }

+

+ public Double getInitialAmount()

+ {

+ return initialAmount;

+ }

+

+ public void setCurrentAmount(Double currentAmount)

+ {

+ this.currentAmount = currentAmount;

+ }

+

+ public Double getCurrentAmount()

+ {

+ return currentAmount;

+ }

+

+ public void setRemark(String remark)

+ {

+ this.remark = remark;

+ }

+

+ public String getRemark()

+ {

+ return remark;

+ }

+

+ public void setAccountID(Long accountID)

+ {

+ this.accountID = accountID;

+ }

+

+ public Long getAccountID()

+ {

+ return accountID;

+ }

+

+ public void setAccountIDs(String accountIDs)

+ {

+ this.accountIDs = accountIDs;

+ }

+

+ public String getAccountIDs()

+ {

+ return accountIDs;

+ }

+

+ public void setPageSize(int pageSize)

+ {

+ this.pageSize = pageSize;

+ }

+

+ public int getPageSize()

+ {

+ return pageSize;

+ }

+

+ public void setPageNo(int pageNo)

+ {

+ this.pageNo = pageNo;

+ }

+

+ public int getPageNo()

+ {

+ return pageNo;

+ }

+

+ public void setClientIp(String clientIp)

+ {

+ this.clientIp = clientIp;

+ }

+

+ public String getClientIp()

+ {

+ return clientIp;

+ }

+}

diff --git a/src/com/jsh/model/vo/basic/AccountShowModel.java b/src/com/jsh/model/vo/basic/AccountShowModel.java

new file mode 100644

index 0000000..96700bb

--- /dev/null

+++ b/src/com/jsh/model/vo/basic/AccountShowModel.java

@@ -0,0 +1,43 @@

+package com.jsh.model.vo.basic;

+

+import java.io.Serializable;

+import java.util.HashMap;

+import java.util.List;

+import java.util.Map;

+

+@SuppressWarnings("serial")

+public class AccountShowModel implements Serializable

+{

+ /**

+ * 提示信息

+ */

+ private String msgTip = "";

+

+ /**

+ * 系统数据

+ */

+ @SuppressWarnings("rawtypes")

+ private Mapmap = new HashMap();

+

+ public String getMsgTip()

+ {

+ return msgTip;

+ }

+

+ public void setMsgTip(String msgTip)

+ {

+ this.msgTip = msgTip;

+ }

+

+ @SuppressWarnings("rawtypes")

+ public MapgetMap() {

+ return map;

+ }

+

+ @SuppressWarnings("rawtypes")

+ public void setMap(Mapmap) {

+ this.map = map;

+ }

+

+

+}

diff --git a/src/com/jsh/model/vo/basic/InOutItemModel.java b/src/com/jsh/model/vo/basic/InOutItemModel.java

new file mode 100644

index 0000000..579c508

--- /dev/null

+++ b/src/com/jsh/model/vo/basic/InOutItemModel.java

@@ -0,0 +1,140 @@

+package com.jsh.model.vo.basic;

+

+import java.io.Serializable;

+

+@SuppressWarnings("serial")

+public class InOutItemModel implements Serializable

+{

+ private InOutItemShowModel showModel = new InOutItemShowModel();

+

+ /**======开始接受页面参数=================**/

+ /**

+ * 名称

+ */

+ private String name = "";

+

+ /**

+ * 类型

+ */

+ private String type = "";

+

+ /**

+ * 备注

+ */

+ private String remark = "";

+

+ /**

+ * 分类ID

+ */

+ private Long inOutItemID = 0l;

+

+ /**

+ * 分类IDs 批量操作使用

+ */

+ private String inOutItemIDs = "";

+

+ /**

+ * 每页显示的个数

+ */

+ private int pageSize = 10;

+

+ /**

+ * 当前页码

+ */

+ private int pageNo = 1;

+

+ /**

+ * 用户IP,用户记录操作日志

+ */

+ private String clientIp = "";

+

+ public void setShowModel(InOutItemShowModel showModel)

+ {

+ this.showModel = showModel;

+ }

+

+ public InOutItemShowModel getShowModel()

+ {

+ return showModel;

+ }

+

+ public void setName(String name)

+ {

+ this.name = name;

+ }

+

+ public String getName()

+ {

+ return name;

+ }

+

+ public void setType(String type)

+ {

+ this.type = type;

+ }

+

+ public String getType()

+ {

+ return type;

+ }

+

+ public void setRemark(String remark)

+ {

+ this.remark = remark;

+ }

+

+ public String getRemark()

+ {

+ return remark;

+ }

+

+ public void setInOutItemID(Long inOutItemID)

+ {

+ this.inOutItemID = inOutItemID;

+ }

+

+ public Long getInOutItemID()

+ {

+ return inOutItemID;

+ }

+

+ public void setInOutItemIDs(String inOutItemIDs)

+ {

+ this.inOutItemIDs = inOutItemIDs;

+ }

+

+ public String getInOutItemIDs()

+ {

+ return inOutItemIDs;

+ }

+

+ public void setPageSize(int pageSize)

+ {

+ this.pageSize = pageSize;

+ }

+

+ public int getPageSize()

+ {

+ return pageSize;

+ }

+

+ public void setPageNo(int pageNo)

+ {

+ this.pageNo = pageNo;

+ }

+

+ public int getPageNo()

+ {

+ return pageNo;

+ }

+

+ public void setClientIp(String clientIp)

+ {

+ this.clientIp = clientIp;

+ }

+

+ public String getClientIp()

+ {

+ return clientIp;

+ }

+ }

diff --git a/src/com/jsh/model/vo/basic/InOutItemShowModel.java b/src/com/jsh/model/vo/basic/InOutItemShowModel.java

new file mode 100644

index 0000000..f3967f4

--- /dev/null

+++ b/src/com/jsh/model/vo/basic/InOutItemShowModel.java

@@ -0,0 +1,43 @@

+package com.jsh.model.vo.basic;

+

+import java.io.Serializable;

+import java.util.HashMap;

+import java.util.List;

+import java.util.Map;

+

+@SuppressWarnings("serial")

+public class InOutItemShowModel implements Serializable

+{

+ /**

+ * 提示信息

+ */

+ private String msgTip = "";

+

+ /**

+ * 系统数据

+ */

+ @SuppressWarnings("rawtypes")

+ private Mapmap = new HashMap();

+

+ public String getMsgTip()

+ {

+ return msgTip;

+ }

+

+ public void setMsgTip(String msgTip)

+ {

+ this.msgTip = msgTip;

+ }

+

+ @SuppressWarnings("rawtypes")

+ public MapgetMap() {

+ return map;

+ }

+

+ @SuppressWarnings("rawtypes")

+ public void setMap(Mapmap) {

+ this.map = map;

+ }

+

+

+}

diff --git a/src/com/jsh/service/basic/AccountIService.java b/src/com/jsh/service/basic/AccountIService.java

new file mode 100644

index 0000000..48cf140

--- /dev/null

+++ b/src/com/jsh/service/basic/AccountIService.java

@@ -0,0 +1,9 @@

+package com.jsh.service.basic;

+

+import com.jsh.base.BaseIService;

+import com.jsh.model.po.Account;

+

+public interface AccountIService extends BaseIService+{

+

+}

diff --git a/src/com/jsh/service/basic/AccountService.java b/src/com/jsh/service/basic/AccountService.java

new file mode 100644

index 0000000..982f64b

--- /dev/null

+++ b/src/com/jsh/service/basic/AccountService.java

@@ -0,0 +1,23 @@

+package com.jsh.service.basic;

+

+import com.jsh.base.BaseService;

+import com.jsh.dao.basic.AccountIDAO;

+import com.jsh.model.po.Account;

+

+public class AccountService extends BaseServiceimplements AccountIService

+{

+ @SuppressWarnings("unused")

+ private AccountIDAO accountDao;

+

+ public void setAccountDao(AccountIDAO accountDao)

+ {

+ this.accountDao = accountDao;

+ }

+

+ @Override

+ protected ClassgetEntityClass()

+ {

+ return Account.class;

+ }

+

+}

diff --git a/src/com/jsh/service/basic/InOutItemIService.java b/src/com/jsh/service/basic/InOutItemIService.java

new file mode 100644

index 0000000..0509160

--- /dev/null

+++ b/src/com/jsh/service/basic/InOutItemIService.java

@@ -0,0 +1,9 @@

+package com.jsh.service.basic;

+

+import com.jsh.base.BaseIService;

+import com.jsh.model.po.InOutItem;

+

+public interface InOutItemIService extends BaseIService+{

+

+}

diff --git a/src/com/jsh/service/basic/InOutItemService.java b/src/com/jsh/service/basic/InOutItemService.java

new file mode 100644

index 0000000..960f0fb

--- /dev/null

+++ b/src/com/jsh/service/basic/InOutItemService.java

@@ -0,0 +1,23 @@

+package com.jsh.service.basic;

+

+import com.jsh.base.BaseService;

+import com.jsh.dao.basic.InOutItemIDAO;

+import com.jsh.model.po.InOutItem;

+

+public class InOutItemService extends BaseServiceimplements InOutItemIService

+{

+ @SuppressWarnings("unused")

+ private InOutItemIDAO inOutItemDao;

+

+ public void setInOutItemDao(InOutItemIDAO inOutItemDao)

+ {

+ this.inOutItemDao = inOutItemDao;

+ }

+

+ @Override

+ protected ClassgetEntityClass()

+ {

+ return InOutItem.class;

+ }

+

+}

diff --git a/src/com/jsh/service/materials/DepotItemIService.java b/src/com/jsh/service/materials/DepotItemIService.java

index 087eed3..2ba4104 100644

--- a/src/com/jsh/service/materials/DepotItemIService.java

+++ b/src/com/jsh/service/materials/DepotItemIService.java

@@ -16,8 +16,6 @@

{

void findByType(PageUtildepotItem, String type, Long MId, String MonthTime,Boolean isPrev)throws JshException;

-void findOrderByMaterial(PageUtildepotItem)throws JshException;

-

/**

* 导出信息

* @return

diff --git a/src/com/jsh/service/materials/DepotItemService.java b/src/com/jsh/service/materials/DepotItemService.java

index 18c25dc..a6e5aac 100644

--- a/src/com/jsh/service/materials/DepotItemService.java

+++ b/src/com/jsh/service/materials/DepotItemService.java

@@ -50,12 +50,6 @@ public void findByType(PageUtilpageUtil, String type,Long MId, Strin

depotItemDao.findByType(pageUtil, type, MId, MonthTime,isPrev);

}

- @Override

- public void findOrderByMaterial(PageUtilpageUtil) throws JshException

- {

- depotItemDao.findOrderByMaterial(pageUtil);

- }

-

/**

* 导出Excel表格

*/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值