Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
86df29f6
Commit
86df29f6
authored
Dec 11, 2016
by
季圣华
Browse files
no commit message
parent
b8a2b074
Changes
73
Show whitespace changes
Inline
Side-by-side
src/com/jsh/dao/materials/AccountItemIDAO.java
0 → 100644
View file @
86df29f6
package
com.jsh.dao.materials
;
import
com.jsh.base.BaseIDAO
;
import
com.jsh.util.JshException
;
import
com.jsh.model.po.AccountItem
;
import
com.jsh.util.PageUtil
;
public
interface
AccountItemIDAO
extends
BaseIDAO
<
AccountItem
>
{
}
src/com/jsh/dao/materials/DepotHeadDAO.java
View file @
86df29f6
...
@@ -3,11 +3,11 @@ package com.jsh.dao.materials;
...
@@ -3,11 +3,11 @@ package com.jsh.dao.materials;
import
org.hibernate.Query
;
import
org.hibernate.Query
;
import
com.jsh.base.BaseDAO
;
import
com.jsh.base.BaseDAO
;
import
com.jsh.
exception
.JshException
;
import
com.jsh.
util
.JshException
;
import
com.jsh.model.po.DepotHead
;
import
com.jsh.model.po.DepotHead
;
import
com.jsh.model.po.UserBusiness
;
import
com.jsh.model.po.UserBusiness
;
import
com.jsh.util.
common.
PageUtil
;
import
com.jsh.util.PageUtil
;
import
com.jsh.util.
common.
SearchConditionUtil
;
import
com.jsh.util.SearchConditionUtil
;
public
class
DepotHeadDAO
extends
BaseDAO
<
DepotHead
>
implements
DepotHeadIDAO
public
class
DepotHeadDAO
extends
BaseDAO
<
DepotHead
>
implements
DepotHeadIDAO
{
{
...
...
src/com/jsh/dao/materials/DepotHeadIDAO.java
View file @
86df29f6
package
com.jsh.dao.materials
;
package
com.jsh.dao.materials
;
import
com.jsh.base.BaseIDAO
;
import
com.jsh.base.BaseIDAO
;
import
com.jsh.
exception
.JshException
;
import
com.jsh.
util
.JshException
;
import
com.jsh.model.po.DepotHead
;
import
com.jsh.model.po.DepotHead
;
import
com.jsh.model.po.UserBusiness
;
import
com.jsh.model.po.UserBusiness
;
import
com.jsh.util.
common.
PageUtil
;
import
com.jsh.util.PageUtil
;
public
interface
DepotHeadIDAO
extends
BaseIDAO
<
DepotHead
>
public
interface
DepotHeadIDAO
extends
BaseIDAO
<
DepotHead
>
{
{
...
...
src/com/jsh/dao/materials/DepotItemDAO.java
View file @
86df29f6
...
@@ -3,11 +3,11 @@ package com.jsh.dao.materials;
...
@@ -3,11 +3,11 @@ package com.jsh.dao.materials;
import
org.hibernate.Query
;
import
org.hibernate.Query
;
import
com.jsh.base.BaseDAO
;
import
com.jsh.base.BaseDAO
;
import
com.jsh.
exception
.JshException
;
import
com.jsh.
util
.JshException
;
import
com.jsh.model.po.DepotHead
;
import
com.jsh.model.po.DepotHead
;
import
com.jsh.model.po.DepotItem
;
import
com.jsh.model.po.DepotItem
;
import
com.jsh.util.
common.
PageUtil
;
import
com.jsh.util.PageUtil
;
import
com.jsh.util.
common.
SearchConditionUtil
;
import
com.jsh.util.SearchConditionUtil
;
public
class
DepotItemDAO
extends
BaseDAO
<
DepotItem
>
implements
DepotItemIDAO
public
class
DepotItemDAO
extends
BaseDAO
<
DepotItem
>
implements
DepotItemIDAO
{
{
...
...
src/com/jsh/dao/materials/DepotItemIDAO.java
View file @
86df29f6
package
com.jsh.dao.materials
;
package
com.jsh.dao.materials
;
import
com.jsh.base.BaseIDAO
;
import
com.jsh.base.BaseIDAO
;
import
com.jsh.
exception
.JshException
;
import
com.jsh.
util
.JshException
;
import
com.jsh.model.po.DepotHead
;
import
com.jsh.model.po.DepotHead
;
import
com.jsh.model.po.DepotItem
;
import
com.jsh.model.po.DepotItem
;
import
com.jsh.util.
common.
PageUtil
;
import
com.jsh.util.PageUtil
;
public
interface
DepotItemIDAO
extends
BaseIDAO
<
DepotItem
>
public
interface
DepotItemIDAO
extends
BaseIDAO
<
DepotItem
>
{
{
...
...
src/com/jsh/exception/JshException.java
deleted
100644 → 0
View file @
b8a2b074
package
com.jsh.exception
;
/**
* @title: 平台异常基类
* @description: 用于包装一些异常信息,打印日志等服务
* @author jishenghua
* @since: 2014-01-24
*/
@SuppressWarnings
(
"serial"
)
public
class
JshException
extends
Exception
{
public
long
errorCode
=
-
1
;
public
String
message
;
public
JshException
()
{
super
();
}
public
JshException
(
String
message
)
{
super
(
message
);
this
.
message
=
message
;
}
public
JshException
(
String
message
,
Throwable
cause
)
{
super
(
message
,
cause
);
this
.
message
=
message
;
}
public
JshException
(
Throwable
cause
)
{
super
(
cause
);
}
public
JshException
(
long
errorCode
)
{
super
();
this
.
errorCode
=
errorCode
;
}
public
JshException
(
String
message
,
long
errorCode
)
{
super
(
message
);
this
.
errorCode
=
errorCode
;
this
.
message
=
message
;
}
public
JshException
(
String
message
,
long
errorCode
,
Throwable
cause
)
{
super
(
message
,
cause
);
this
.
errorCode
=
errorCode
;
this
.
message
=
message
;
}
public
JshException
(
long
errorCode
,
Throwable
cause
)
{
super
(
cause
);
this
.
errorCode
=
errorCode
;
}
public
long
getErrorCode
()
{
return
errorCode
;
}
public
String
getMessage
()
{
return
message
;
}
}
src/com/jsh/filter/common/OpenSessionInViewFilterExtend.java
deleted
100644 → 0
View file @
b8a2b074
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
);
}
}
src/com/jsh/filter/user/UserFilter.java
deleted
100644 → 0
View file @
b8a2b074
package
com.jsh.filter.user
;
import
java.io.IOException
;
import
java.io.PrintWriter
;
import
javax.servlet.Filter
;
import
javax.servlet.FilterChain
;
import
javax.servlet.FilterConfig
;
import
javax.servlet.ServletException
;
import
javax.servlet.ServletRequest
;
import
javax.servlet.ServletResponse
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpSession
;
/**
* 用户登录session处理类
* 过滤session是否超时
* @author jishenghua
* @version [版本号, 2012-3-6]
* @see [相关类/方法]
* @since
*/
public
class
UserFilter
implements
Filter
{
/**
* 初始化过滤器 暂不处理
* 重载方法
* @param arg0
* @throws ServletException
*/
public
void
init
(
FilterConfig
arg0
)
throws
ServletException
{
}
/**
* 判断用户session是否存在 不存在则跳转到登录页面
* 重载方法
* @param srequest
* @param sresponse
* @param chain
* @throws IOException
* @throws ServletException
*/
public
void
doFilter
(
ServletRequest
srequest
,
ServletResponse
sresponse
,
FilterChain
chain
)
throws
IOException
,
ServletException
{
HttpServletRequest
request
=
(
HttpServletRequest
)
srequest
;
HttpServletResponse
response
=
(
HttpServletResponse
)
sresponse
;
HttpSession
session
=
request
.
getSession
();
// //定义登录页面不被过滤===后续考虑
// List<String> notFilterFile = new ArrayList<String>();
// notFilterFile.add("/login.jsp");
// notFilterFile.add("/logout.jsp");
// notFilterFile.add("/css/*");
// notFilterFile.add("/css/zTreeStyle/*");
// notFilterFile.add("/css/zTreeStyle/img/*");
// notFilterFile.add("/css/zTreeStyle/img/diy/*");
//获取工程路径
String
path
=
request
.
getContextPath
();
String
requestURl
=
request
.
getRequestURI
();
//提示用户没有权限操作
// response.setCharacterEncoding("utf-8");
// PrintWriter pw=response.getWriter();
// pw.write("<script language='javascript'>alert('您没有权限进行此项操作!')</script>");
//session中有值则不进行处理
if
(
requestURl
.
contains
(
"/pages"
)
&&
null
!=
session
.
getAttribute
(
"user"
))
chain
.
doFilter
(
request
,
response
);
else
response
.
sendRedirect
(
path
+
"/logout.jsp"
);
}
/**
* 销毁过滤器
*/
public
void
destroy
()
{
}
}
src/com/jsh/model/po/AccountHead.hbm.xml
0 → 100644
View file @
86df29f6
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class
name=
"com.jsh.model.po.AccountHead"
table=
"jsh_accounthead"
>
<id
name=
"Id"
type=
"java.lang.Long"
>
<column
name=
"Id"
/>
<generator
class=
"native"
/>
</id>
<property
generated=
"never"
lazy=
"false"
name=
"Type"
type=
"java.lang.String"
>
<column
length=
"50"
name=
"Type"
>
<comment>
类型(支出/收入/收款/付款/转账)
</comment>
</column>
</property>
<many-to-one
name=
"OrganId"
class=
"com.jsh.model.po.Supplier"
lazy=
"false"
>
<column
name=
"OrganId"
>
<comment>
单位Id(收款/付款单位)
</comment>
</column>
</many-to-one>
<many-to-one
name=
"HandsPersonId"
class=
"com.jsh.model.po.Person"
lazy=
"false"
>
<column
name=
"HandsPersonId"
>
<comment>
经手人Id
</comment>
</column>
</many-to-one>
<property
generated=
"never"
lazy=
"false"
name=
"ChangeAmount"
type=
"java.lang.Double"
>
<column
name=
"ChangeAmount"
precision=
"22"
scale=
"3"
>
<comment>
变动金额(优惠/收款/付款/实付)
</comment>
</column>
</property>
<many-to-one
name=
"AccountId"
class=
"com.jsh.model.po.Account"
lazy=
"false"
>
<column
name=
"AccountId"
>
<comment>
账户(收款/付款)
</comment>
</column>
</many-to-one>
<property
generated=
"never"
lazy=
"false"
name=
"BillNo"
type=
"java.lang.String"
>
<column
length=
"50"
name=
"BillNo"
>
<comment>
单据编号
</comment>
</column>
</property>
<property
name=
"BillTime"
type=
"java.sql.Timestamp"
>
<column
length=
"19"
name=
"BillTime"
>
<comment>
单据日期
</comment>
</column>
</property>
<property
generated=
"never"
lazy=
"false"
name=
"Remark"
type=
"java.lang.String"
>
<column
length=
"100"
name=
"Remark"
>
<comment>
备注
</comment>
</column>
</property>
</class>
</hibernate-mapping>
src/com/jsh/model/po/AccountHead.java
0 → 100644
View file @
86df29f6
package
com.jsh.model.po
;
import
java.sql.Timestamp
;
@SuppressWarnings
(
"serial"
)
public
class
AccountHead
implements
java
.
io
.
Serializable
{
private
Long
Id
;
private
String
Type
;
private
Supplier
OrganId
;
private
Person
HandsPersonId
;
private
Double
ChangeAmount
;
private
Account
AccountId
;
private
String
BillNo
;
private
Timestamp
BillTime
;
private
String
Remark
;
public
AccountHead
()
{
}
public
AccountHead
(
Long
Id
)
{
this
.
Id
=
Id
;
}
public
AccountHead
(
String
type
,
Supplier
organId
,
Person
handsPersonId
,
Double
changeAmount
,
Account
accountId
,
String
billNo
,
Timestamp
billTime
,
String
remark
)
{
super
();
Type
=
type
;
OrganId
=
organId
;
HandsPersonId
=
handsPersonId
;
ChangeAmount
=
changeAmount
;
AccountId
=
accountId
;
BillNo
=
billNo
;
BillTime
=
billTime
;
Remark
=
remark
;
}
public
void
setId
(
Long
id
)
{
Id
=
id
;
}
public
Long
getId
()
{
return
Id
;
}
public
void
setType
(
String
type
)
{
Type
=
type
;
}
public
String
getType
()
{
return
Type
;
}
public
void
setOrganId
(
Supplier
organId
)
{
OrganId
=
organId
;
}
public
Supplier
getOrganId
()
{
return
OrganId
;
}
public
void
setHandsPersonId
(
Person
handsPersonId
)
{
HandsPersonId
=
handsPersonId
;
}
public
Person
getHandsPersonId
()
{
return
HandsPersonId
;
}
public
void
setChangeAmount
(
Double
changeAmount
)
{
ChangeAmount
=
changeAmount
;
}
public
Double
getChangeAmount
()
{
return
ChangeAmount
;
}
public
void
setAccountId
(
Account
accountId
)
{
AccountId
=
accountId
;
}
public
Account
getAccountId
()
{
return
AccountId
;
}
public
void
setBillNo
(
String
billNo
)
{
BillNo
=
billNo
;
}
public
String
getBillNo
()
{
return
BillNo
;
}
public
void
setBillTime
(
Timestamp
billTime
)
{
BillTime
=
billTime
;
}
public
Timestamp
getBillTime
()
{
return
BillTime
;
}
public
void
setRemark
(
String
remark
)
{
Remark
=
remark
;
}
public
String
getRemark
()
{
return
Remark
;
}
}
src/com/jsh/model/po/AccountItem.hbm.xml
0 → 100644
View file @
86df29f6
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class
name=
"com.jsh.model.po.AccountItem"
table=
"jsh_accountitem"
>
<id
name=
"Id"
type=
"java.lang.Long"
>
<column
name=
"Id"
/>
<generator
class=
"native"
/>
</id>
<many-to-one
name=
"HeaderId"
class=
"com.jsh.model.po.AccountHead"
lazy=
"false"
>
<column
name=
"HeaderId"
not-null=
"true"
>
<comment>
表头Id
</comment>
</column>
</many-to-one>
<many-to-one
name=
"AccountId"
class=
"com.jsh.model.po.Account"
lazy=
"false"
>
<column
name=
"AccountId"
>
<comment>
账户Id
</comment>
</column>
</many-to-one>
<many-to-one
name=
"InOutItemId"
class=
"com.jsh.model.po.InOutItem"
lazy=
"false"
>
<column
name=
"InOutItemId"
>
<comment>
收支项目Id
</comment>
</column>
</many-to-one>
<property
generated=
"never"
lazy=
"false"
name=
"EachAmount"
type=
"java.lang.Double"
>
<column
name=
"EachAmount"
precision=
"22"
scale=
"3"
>
<comment>
单项金额
</comment>
</column>
</property>
<property
generated=
"never"
lazy=
"false"
name=
"Remark"
type=
"java.lang.String"
>
<column
length=
"100"
name=
"Remark"
>
<comment>
单据备注
</comment>
</column>
</property>
</class>
</hibernate-mapping>
src/com/jsh/model/po/AccountItem.java
0 → 100644
View file @
86df29f6
package
com.jsh.model.po
;
@SuppressWarnings
(
"serial"
)
public
class
AccountItem
implements
java
.
io
.
Serializable
{
private
Long
Id
;
private
AccountHead
HeaderId
;
private
Account
AccountId
;
private
InOutItem
InOutItemId
;
private
Double
EachAmount
;
private
String
Remark
;
public
AccountItem
()
{
}
public
AccountItem
(
Long
Id
)
{
this
.
Id
=
Id
;
}
public
AccountItem
(
AccountHead
headerId
,
Account
accountId
,
InOutItem
inOutItemId
,
Double
eachAmount
,
String
remark
)
{
super
();
HeaderId
=
headerId
;
AccountId
=
accountId
;
InOutItemId
=
inOutItemId
;
EachAmount
=
eachAmount
;
Remark
=
remark
;
}
public
void
setId
(
Long
id
)
{
Id
=
id
;
}
public
Long
getId
()
{
return
Id
;
}
public
void
setHeaderId
(
AccountHead
headerId
)
{
HeaderId
=
headerId
;
}
public
AccountHead
getHeaderId
()
{
return
HeaderId
;
}
public
void
setAccountId
(
Account
accountId
)
{
AccountId
=
accountId
;
}
public
Account
getAccountId
()
{
return
AccountId
;
}
public
void
setInOutItemId
(
InOutItem
inOutItemId
)
{
InOutItemId
=
inOutItemId
;
}
public
InOutItem
getInOutItemId
()
{
return
InOutItemId
;
}
public
void
setEachAmount
(
Double
eachAmount
)
{
EachAmount
=
eachAmount
;
}
public
Double
getEachAmount
()
{
return
EachAmount
;
}
public
void
setRemark
(
String
remark
)
{
Remark
=
remark
;
}
public
String
getRemark
()
{
return
Remark
;
}
}
src/com/jsh/model/vo/materials/AccountHeadModel.java
0 → 100644
View file @
86df29f6
package
com.jsh.model.vo.materials
;
import
java.io.Serializable
;
@SuppressWarnings
(
"serial"
)
public
class
AccountHeadModel
implements
Serializable
{
private
AccountHeadShowModel
showModel
=
new
AccountHeadShowModel
();
/**======开始接受页面参数=================**/
private
String
Type
;
private
Long
OrganId
;
private
Long
HandsPersonId
;
private
Double
ChangeAmount
;
private
Long
AccountId
;
private
String
BillNo
;
private
String
BillTime
;
private
String
Remark
;
private
String
BeginTime
;
//查询开始时间
private
String
EndTime
;
//查询结束时间
private
String
MonthTime
;
//查询月份
/**
* 分类ID
*/
private
Long
accountHeadID
=
0
l
;
/**
* 分类IDs 批量操作使用
*/
private
String
accountHeadIDs
=
""
;
/**
* 每页显示的个数
*/
private
int
pageSize
=
10
;
/**
* 当前页码
*/
private
int
pageNo
=
1
;
/**
* 用户IP,用户记录操作日志
*/
private
String
clientIp
=
""
;
public
void
setShowModel
(
AccountHeadShowModel
showModel
)
{
this
.
showModel
=
showModel
;
}
public
AccountHeadShowModel
getShowModel
()
{
return
showModel
;
}
public
void
setType
(
String
type
)
{
Type
=
type
;
}
public
String
getType
()
{
return
Type
;
}
public
void
setOrganId
(
Long
organId
)
{
OrganId
=
organId
;
}
public
Long
getOrganId
()
{
return
OrganId
;
}
public
void
setHandsPersonId
(
Long
handsPersonId
)
{
HandsPersonId
=
handsPersonId
;
}
public
Long
getHandsPersonId
()
{
return
HandsPersonId
;
}
public
void
setChangeAmount
(
Double
changeAmount
)
{
ChangeAmount
=
changeAmount
;
}
public
Double
getChangeAmount
()
{
return
ChangeAmount
;
}
public
void
setAccountId
(
Long
accountId
)
{
AccountId
=
accountId
;
}
public
Long
getAccountId
()
{
return
AccountId
;
}
public
void
setBillNo
(
String
billNo
)
{
BillNo
=
billNo
;
}
public
String
getBillNo
()
{
return
BillNo
;
}
public
void
setBillTime
(
String
billTime
)
{
BillTime
=
billTime
;
}
public
String
getBillTime
()
{
return
BillTime
;
}
public
void
setRemark
(
String
remark
)
{
Remark
=
remark
;
}
public
String
getRemark
()
{
return
Remark
;
}
public
void
setBeginTime
(
String
beginTime
)
{
BeginTime
=
beginTime
;
}
public
String
getBeginTime
()
{
return
BeginTime
;
}
public
void
setEndTime
(
String
endTime
)
{
EndTime
=
endTime
;
}
public
String
getEndTime
()
{
return
EndTime
;
}
public
void
setMonthTime
(
String
monthTime
)
{
MonthTime
=
monthTime
;
}
public
String
getMonthTime
()
{
return
MonthTime
;
}
public
void
setAccountHeadID
(
Long
accountHeadID
)
{
this
.
accountHeadID
=
accountHeadID
;
}
public
Long
getAccountHeadID
()
{
return
accountHeadID
;
}
public
void
setAccountHeadIDs
(
String
accountHeadIDs
)
{
this
.
accountHeadIDs
=
accountHeadIDs
;
}
public
String
getAccountHeadIDs
()
{
return
accountHeadIDs
;
}
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
;
}}
src/com/jsh/model/vo/materials/AccountHeadShowModel.java
0 → 100644
View file @
86df29f6
package
com.jsh.model.vo.materials
;
import
java.io.Serializable
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
@SuppressWarnings
(
"serial"
)
public
class
AccountHeadShowModel
implements
Serializable
{
/**
* 提示信息
*/
private
String
msgTip
=
""
;
/**
* 系统数据
*/
@SuppressWarnings
(
"rawtypes"
)
private
Map
<
String
,
List
>
map
=
new
HashMap
<
String
,
List
>();
public
String
getMsgTip
()
{
return
msgTip
;
}
public
void
setMsgTip
(
String
msgTip
)
{
this
.
msgTip
=
msgTip
;
}
@SuppressWarnings
(
"rawtypes"
)
public
Map
<
String
,
List
>
getMap
()
{
return
map
;
}
@SuppressWarnings
(
"rawtypes"
)
public
void
setMap
(
Map
<
String
,
List
>
map
)
{
this
.
map
=
map
;
}
}
src/com/jsh/model/vo/materials/AccountItemModel.java
0 → 100644
View file @
86df29f6
package
com.jsh.model.vo.materials
;
import
java.io.InputStream
;
import
java.io.Serializable
;
@SuppressWarnings
(
"serial"
)
public
class
AccountItemModel
implements
Serializable
{
private
AccountItemShowModel
showModel
=
new
AccountItemShowModel
();
/**======开始接受页面参数=================**/
private
Long
HeaderId
;
private
Long
AccountId
;
private
Long
InOutItemId
;
private
Double
EachAmount
;
private
String
Remark
=
""
;
private
String
Inserted
=
""
;
//json插入记录
private
String
Deleted
=
""
;
//json删除记录
private
String
Updated
=
""
;
//json修改记录
private
String
HeadIds
=
""
;
//表头集合列表
private
String
MonthTime
=
""
;
//月份
private
String
browserType
=
""
;
/**
* 文件名称
*/
private
String
fileName
=
""
;
/**
* 分类ID
*/
private
Long
accountItemID
=
0
l
;
/**
* 分类IDs 批量操作使用
*/
private
String
accountItemIDs
=
""
;
/**
* 每页显示的个数
*/
private
int
pageSize
=
800
;
/**
* 当前页码
*/
private
int
pageNo
=
1
;
/**
* 用户IP,用户记录操作日志
*/
private
String
clientIp
=
""
;
/**
* 输入流,导出excel文件
*/
private
InputStream
excelStream
;
public
void
setShowModel
(
AccountItemShowModel
showModel
)
{
this
.
showModel
=
showModel
;
}
public
AccountItemShowModel
getShowModel
()
{
return
showModel
;
}
public
void
setHeaderId
(
Long
headerId
)
{
HeaderId
=
headerId
;
}
public
Long
getHeaderId
()
{
return
HeaderId
;
}
public
void
setAccountId
(
Long
accountId
)
{
AccountId
=
accountId
;
}
public
Long
getAccountId
()
{
return
AccountId
;
}
public
void
setInOutItemId
(
Long
inOutItemId
)
{
InOutItemId
=
inOutItemId
;
}
public
Long
getInOutItemId
()
{
return
InOutItemId
;
}
public
void
setEachAmount
(
Double
eachAmount
)
{
EachAmount
=
eachAmount
;
}
public
Double
getEachAmount
()
{
return
EachAmount
;
}
public
void
setRemark
(
String
remark
)
{
Remark
=
remark
;
}
public
String
getRemark
()
{
return
Remark
;
}
public
void
setInserted
(
String
inserted
)
{
Inserted
=
inserted
;
}
public
String
getInserted
()
{
return
Inserted
;
}
public
void
setDeleted
(
String
deleted
)
{
Deleted
=
deleted
;
}
public
String
getDeleted
()
{
return
Deleted
;
}
public
void
setUpdated
(
String
updated
)
{
Updated
=
updated
;
}
public
String
getUpdated
()
{
return
Updated
;
}
public
void
setHeadIds
(
String
headIds
)
{
HeadIds
=
headIds
;
}
public
String
getHeadIds
()
{
return
HeadIds
;
}
public
void
setMonthTime
(
String
monthTime
)
{
MonthTime
=
monthTime
;
}
public
String
getMonthTime
()
{
return
MonthTime
;
}
public
void
setBrowserType
(
String
browserType
)
{
this
.
browserType
=
browserType
;
}
public
String
getBrowserType
()
{
return
browserType
;
}
public
void
setFileName
(
String
fileName
)
{
this
.
fileName
=
fileName
;
}
public
String
getFileName
()
{
return
fileName
;
}
public
void
setAccountItemID
(
Long
accountItemID
)
{
this
.
accountItemID
=
accountItemID
;
}
public
Long
getAccountItemID
()
{
return
accountItemID
;
}
public
void
setAccountItemIDs
(
String
accountItemIDs
)
{
this
.
accountItemIDs
=
accountItemIDs
;
}
public
String
getAccountItemIDs
()
{
return
accountItemIDs
;
}
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
;
}
public
void
setExcelStream
(
InputStream
excelStream
)
{
this
.
excelStream
=
excelStream
;
}
public
InputStream
getExcelStream
()
{
return
excelStream
;
}
}
src/com/jsh/model/vo/materials/AccountItemShowModel.java
0 → 100644
View file @
86df29f6
package
com.jsh.model.vo.materials
;
import
java.io.Serializable
;
@SuppressWarnings
(
"serial"
)
public
class
AccountItemShowModel
implements
Serializable
{
/**
* 提示信息
*/
private
String
msgTip
=
""
;
public
String
getMsgTip
()
{
return
msgTip
;
}
public
void
setMsgTip
(
String
msgTip
)
{
this
.
msgTip
=
msgTip
;
}
}
src/com/jsh/service/asset/AssetIService.java
View file @
86df29f6
...
@@ -4,9 +4,9 @@ import java.io.File;
...
@@ -4,9 +4,9 @@ import java.io.File;
import
java.io.InputStream
;
import
java.io.InputStream
;
import
com.jsh.base.BaseIService
;
import
com.jsh.base.BaseIService
;
import
com.jsh.
exception
.JshException
;
import
com.jsh.
util
.JshException
;
import
com.jsh.model.po.Asset
;
import
com.jsh.model.po.Asset
;
import
com.jsh.util.
common.
PageUtil
;
import
com.jsh.util.PageUtil
;
public
interface
AssetIService
extends
BaseIService
<
Asset
>
public
interface
AssetIService
extends
BaseIService
<
Asset
>
{
{
...
...
src/com/jsh/service/asset/AssetService.java
View file @
86df29f6
...
@@ -33,19 +33,19 @@ import org.apache.poi.ss.usermodel.Row;
...
@@ -33,19 +33,19 @@ import org.apache.poi.ss.usermodel.Row;
import
com.jsh.base.BaseService
;
import
com.jsh.base.BaseService
;
import
com.jsh.base.Log
;
import
com.jsh.base.Log
;
import
com.jsh.
constants.asset
.AssetConstants
;
import
com.jsh.
util
.AssetConstants
;
import
com.jsh.dao.asset.AssetIDAO
;
import
com.jsh.dao.asset.AssetIDAO
;
import
com.jsh.dao.basic.AssetNameIDAO
;
import
com.jsh.dao.basic.AssetNameIDAO
;
import
com.jsh.dao.basic.CategoryIDAO
;
import
com.jsh.dao.basic.CategoryIDAO
;
import
com.jsh.dao.basic.SupplierIDAO
;
import
com.jsh.dao.basic.SupplierIDAO
;
import
com.jsh.dao.basic.UserIDAO
;
import
com.jsh.dao.basic.UserIDAO
;
import
com.jsh.
exception
.JshException
;
import
com.jsh.
util
.JshException
;
import
com.jsh.model.po.Asset
;
import
com.jsh.model.po.Asset
;
import
com.jsh.model.po.Assetname
;
import
com.jsh.model.po.Assetname
;
import
com.jsh.model.po.Category
;
import
com.jsh.model.po.Category
;
import
com.jsh.model.po.Supplier
;
import
com.jsh.model.po.Supplier
;
import
com.jsh.util.
common.
PageUtil
;
import
com.jsh.util.PageUtil
;
import
com.jsh.util.
common.
Tools
;
import
com.jsh.util.Tools
;
public
class
AssetService
extends
BaseService
<
Asset
>
implements
AssetIService
public
class
AssetService
extends
BaseService
<
Asset
>
implements
AssetIService
{
{
...
...
src/com/jsh/service/asset/ReportIService.java
View file @
86df29f6
package
com.jsh.service.asset
;
package
com.jsh.service.asset
;
import
com.jsh.
exception
.JshException
;
import
com.jsh.
util
.JshException
;
import
com.jsh.model.po.Asset
;
import
com.jsh.model.po.Asset
;
import
com.jsh.util.
common.
PageUtil
;
import
com.jsh.util.PageUtil
;
public
interface
ReportIService
public
interface
ReportIService
{
{
...
...
src/com/jsh/service/asset/ReportService.java
View file @
86df29f6
package
com.jsh.service.asset
;
package
com.jsh.service.asset
;
import
com.jsh.dao.asset.ReportIDAO
;
import
com.jsh.dao.asset.ReportIDAO
;
import
com.jsh.
exception
.JshException
;
import
com.jsh.
util
.JshException
;
import
com.jsh.model.po.Asset
;
import
com.jsh.model.po.Asset
;
import
com.jsh.util.
common.
PageUtil
;
import
com.jsh.util.PageUtil
;
public
class
ReportService
implements
ReportIService
public
class
ReportService
implements
ReportIService
{
{
...
...
Prev
1
2
3
4
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment