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
beba8ac3
Commit
beba8ac3
authored
Dec 11, 2016
by
季圣华
Browse files
no commit message
parent
751c4c14
Changes
71
Show whitespace changes
Inline
Side-by-side
WebRoot/WEB-INF/classes/com/jsh/service/materials/DepotHeadIService.class
View file @
beba8ac3
No preview for this file type
WebRoot/WEB-INF/classes/com/jsh/service/materials/DepotHeadService.class
View file @
beba8ac3
No preview for this file type
WebRoot/WEB-INF/classes/com/jsh/service/materials/DepotItemIService.class
View file @
beba8ac3
No preview for this file type
WebRoot/WEB-INF/classes/com/jsh/service/materials/DepotItemService.class
View file @
beba8ac3
No preview for this file type
WebRoot/WEB-INF/classes/hibernate/hibernate.cfg.xml
View file @
beba8ac3
...
...
@@ -41,5 +41,7 @@
<mapping
resource=
"com/jsh/model/po/DepotItem.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Account.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/InOutItem.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/AccountHead.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/AccountItem.hbm.xml"
/>
</session-factory>
</hibernate-configuration>
WebRoot/WEB-INF/classes/log4j/log4j.properties
View file @
beba8ac3
...
...
@@ -14,7 +14,7 @@ log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} [%p]-%m%n
#log4j.logger.org.hibernate = OFF,hibernate
#log4j.logger.org.hibernate.tool.hbm2ddl=debug
#log4j.appender.hibernate = org.apache.log4j.RollingFileAppender
#log4j.appender.hibernate.file = ${webApp.log4j.path}/logs/
ams
_hibernate.log
#log4j.appender.hibernate.file = ${webApp.log4j.path}/logs/
jsh
_hibernate.log
#log4j.appender.hibernate.layout = org.apache.log4j.PatternLayout
#log4j.appender.hibernate.layout.conversionPattern = %-d{yyyy-MM-dd HH:mm:ss} [%p]-[%C %M %L]:%m%n
#log4j.appender.hibernate.layout.conversionPattern = %-d{yyyy-MM-dd HH:mm:ss} [%p]-%m%n
...
...
WebRoot/WEB-INF/classes/spring/basic-applicationContext.xml
View file @
beba8ac3
...
...
@@ -333,4 +333,28 @@
<property
name=
"logService"
ref=
"logService"
/>
</bean>
<!--收支项目配置结束 -->
<!--账户抬头配置开始 -->
<bean
id=
"accountHeadService"
class=
"com.jsh.service.materials.AccountHeadService"
>
<property
name=
"baseDao"
ref=
"baseDao"
/>
<property
name=
"accountHeadDao"
ref=
"accountHeadDao"
/>
</bean>
<!-- spring整合struts2需要默认为request或者 prototype,不能是单例 -->
<bean
id=
"accountHeadAction"
class=
"com.jsh.action.materials.AccountHeadAction"
scope=
"prototype"
>
<property
name=
"accountHeadService"
ref=
"accountHeadService"
/>
<property
name=
"logService"
ref=
"logService"
/>
</bean>
<!--账户抬头配置结束 -->
<!--账户明细配置开始 -->
<bean
id=
"accountItemService"
class=
"com.jsh.service.materials.AccountItemService"
>
<property
name=
"baseDao"
ref=
"baseDao"
/>
<property
name=
"accountItemDao"
ref=
"accountItemDao"
/>
</bean>
<!-- spring整合struts2需要默认为request或者 prototype,不能是单例 -->
<bean
id=
"accountItemAction"
class=
"com.jsh.action.materials.AccountItemAction"
scope=
"prototype"
>
<property
name=
"accountItemService"
ref=
"accountItemService"
/>
<property
name=
"logService"
ref=
"logService"
/>
</bean>
<!--账户明细配置结束 -->
</beans>
WebRoot/WEB-INF/classes/spring/dao-applicationContext.xml
View file @
beba8ac3
...
...
@@ -50,4 +50,8 @@
<bean
id=
"accountDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.AccountDAO"
/>
<!-- 配置inOutItemDao组件 -->
<bean
id=
"inOutItemDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.InOutItemDAO"
/>
<!-- 配置accountHeadDao组件 -->
<bean
id=
"accountHeadDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.materials.AccountHeadDAO"
/>
<!-- 配置accountItemDao组件 -->
<bean
id=
"accountItemDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.materials.AccountItemDAO"
/>
</beans>
WebRoot/WEB-INF/classes/struts2/accountHead-struts.xml
0 → 100644
View file @
beba8ac3
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.1.7//EN"
"http://struts.apache.org/dtds/struts-2.1.7.dtd">
<struts>
<package
name=
"accountHead"
namespace=
"/accountHead"
extends=
"json-default"
>
<action
name=
"*"
class=
"accountHeadAction"
method=
"{1}"
>
<result
type=
"json"
/>
</action>
</package>
</struts>
WebRoot/WEB-INF/classes/struts2/accountItem-struts.xml
0 → 100644
View file @
beba8ac3
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.1.7//EN"
"http://struts.apache.org/dtds/struts-2.1.7.dtd">
<struts>
<package
name=
"accountItem"
namespace=
"/accountItem"
extends=
"json-default"
>
<action
name=
"*"
class=
"accountItemAction"
method=
"{1}"
>
<result
type=
"json"
/>
</action>
</package>
</struts>
WebRoot/WEB-INF/web.xml
View file @
beba8ac3
...
...
@@ -25,7 +25,7 @@
<filter>
<description>
session的过滤器
</description>
<filter-name>
SessionValidateFilter
</filter-name>
<filter-class>
com.jsh.
filter.user.User
Filter
</filter-class>
<filter-class>
com.jsh.
util.Session
Filter
</filter-class>
</filter>
<filter-mapping>
<filter-name>
SessionValidateFilter
</filter-name>
...
...
@@ -49,7 +49,7 @@
</filter-mapping>
<filter>
<filter-name>
hibernateFilter
</filter-name>
<filter-class>
com.jsh.
filter.common
.OpenSessionInViewFilterExtend
</filter-class>
<filter-class>
com.jsh.
util
.OpenSessionInViewFilterExtend
</filter-class>
<init-param>
<param-name>
singleSession
</param-name>
<param-value>
true
</param-value>
...
...
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