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
adb6105f
Commit
adb6105f
authored
Dec 24, 2016
by
季圣华
Browse files
采购入库,增加单行的金额,合计金额,付款账户,付款金额等字段,改动较大,为临时版本
parent
77e30a07
Changes
65
Expand all
Hide whitespace changes
Inline
Side-by-side
WebRoot/WEB-INF/classes/com/jsh/service/materials/BuildingIService.class
deleted
100644 → 0
View file @
77e30a07
File deleted
WebRoot/WEB-INF/classes/com/jsh/service/materials/BuildingService.class
deleted
100644 → 0
View file @
77e30a07
File deleted
WebRoot/WEB-INF/classes/hibernate/hibernate.cfg.xml
View file @
adb6105f
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<!--
<property name="hibernate.connection.driver_class">
com.mysql.jdbc.Driver
</property>
<property name="hibernate.connection.url">
jdbc:mysql:///myshop
</property>
<property name="hibernate.connection.username">root</property>
<property name="connection.password">root</property>
-->
<property
name=
"hibernate.dialect"
>
org.hibernate.dialect.MySQL5Dialect
</property>
<property
name=
"show_sql"
>
true
</property>
<!-- 一般重新建库用create(慎用),只更新字段用update -->
<property
name=
"hbm2ddl.auto"
>
update
</property>
<!-- 对应的实体映射 -->
<mapping
resource=
"com/jsh/model/po/Supplier.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Logdetails.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Assetname.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Category.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Basicuser.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Asset.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Depot.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/App.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Role.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Functions.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/UserBusiness.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Person.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/MaterialCategory.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Material.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Building.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/DepotHead.hbm.xml"
/>
<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>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<!--
<property name="hibernate.connection.driver_class">
com.mysql.jdbc.Driver
</property>
<property name="hibernate.connection.url">
jdbc:mysql:///myshop
</property>
<property name="hibernate.connection.username">root</property>
<property name="connection.password">root</property>
-->
<property
name=
"hibernate.dialect"
>
org.hibernate.dialect.MySQL5Dialect
</property>
<property
name=
"show_sql"
>
true
</property>
<!-- 一般重新建库用create(慎用),只更新字段用update -->
<property
name=
"hbm2ddl.auto"
>
update
</property>
<!-- 对应的实体映射 -->
<mapping
resource=
"com/jsh/model/po/Supplier.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Logdetails.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Assetname.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Category.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Basicuser.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Asset.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Depot.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/App.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Role.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Functions.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/UserBusiness.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Person.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/MaterialCategory.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Material.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/DepotHead.hbm.xml"
/>
<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/spring/basic-applicationContext.xml
View file @
adb6105f
This diff is collapsed.
Click to expand it.
WebRoot/WEB-INF/classes/spring/dao-applicationContext.xml
View file @
adb6105f
<?xml version="1.0" encoding="utf-8"?>
<!-- 指定Spring配置文件的DTD信息 -->
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN"
"http://www.springframework.org/dtd/spring-beans-2.0.dtd">
<beans>
<!-- 配置daoTemplate,作为所有DAO组件的模板 -->
<bean
id=
"daoTemplate"
abstract=
"true"
>
<!-- 为DAO组件注入SessionFactory引用 -->
<property
name=
"sessionFactory"
ref=
"sessionFactory"
/>
</bean>
<!-- 配置通用baseDao组件 -->
<bean
id=
"baseDao"
parent=
"daoTemplate"
class=
"com.jsh.base.BaseDAO"
scope=
"prototype"
/>
<!-- 配置userDao组件 -->
<bean
id=
"userDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.UserDAO"
/>
<!-- 配置logDao组件 -->
<bean
id=
"logDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.LogDAO"
/>
<!-- 配置supplierDao组件 -->
<bean
id=
"supplierDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.SupplierDAO"
/>
<!-- 配置categoryDao组件 -->
<bean
id=
"categoryDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.CategoryDAO"
/>
<!-- 配置depotDao组件 -->
<bean
id=
"depotDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.DepotDAO"
/>
<!-- 配置assetDao组件 -->
<bean
id=
"assetNameDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.AssetNameDAO"
/>
<!-- 配置assetDao组件 -->
<bean
id=
"assetDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.asset.AssetDAO"
/>
<!-- 配置assetDao组件 -->
<bean
id=
"reportDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.asset.ReportDAO"
/>
<!-- 配置appDao组件 -->
<bean
id=
"appDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.AppDAO"
/>
<!-- 配置roleDao组件 -->
<bean
id=
"roleDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.RoleDAO"
/>
<!-- 配置functionsDao组件 -->
<bean
id=
"functionsDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.FunctionsDAO"
/>
<!-- 配置userBusinessDao组件 -->
<bean
id=
"userBusinessDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.UserBusinessDAO"
/>
<!-- 配置personDao组件 -->
<bean
id=
"personDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.materials.PersonDAO"
/>
<!-- 配置materialCategoryDao组件 -->
<bean
id=
"materialCategoryDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.materials.MaterialCategoryDAO"
/>
<!-- 配置materialDao组件 -->
<bean
id=
"materialDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.materials.MaterialDAO"
/>
<!-- 配置buildingDao组件 -->
<bean
id=
"buildingDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.materials.BuildingDAO"
/>
<!-- 配置depotHeadDao组件 -->
<bean
id=
"depotHeadDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.materials.DepotHeadDAO"
/>
<!-- 配置depotItemDao组件 -->
<bean
id=
"depotItemDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.materials.DepotItemDAO"
/>
<!-- 配置accountDao组件 -->
<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>
<?xml version="1.0" encoding="utf-8"?>
<!-- 指定Spring配置文件的DTD信息 -->
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN"
"http://www.springframework.org/dtd/spring-beans-2.0.dtd">
<beans>
<!-- 配置daoTemplate,作为所有DAO组件的模板 -->
<bean
id=
"daoTemplate"
abstract=
"true"
>
<!-- 为DAO组件注入SessionFactory引用 -->
<property
name=
"sessionFactory"
ref=
"sessionFactory"
/>
</bean>
<!-- 配置通用baseDao组件 -->
<bean
id=
"baseDao"
parent=
"daoTemplate"
class=
"com.jsh.base.BaseDAO"
scope=
"prototype"
/>
<!-- 配置userDao组件 -->
<bean
id=
"userDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.UserDAO"
/>
<!-- 配置logDao组件 -->
<bean
id=
"logDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.LogDAO"
/>
<!-- 配置supplierDao组件 -->
<bean
id=
"supplierDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.SupplierDAO"
/>
<!-- 配置categoryDao组件 -->
<bean
id=
"categoryDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.CategoryDAO"
/>
<!-- 配置depotDao组件 -->
<bean
id=
"depotDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.DepotDAO"
/>
<!-- 配置assetDao组件 -->
<bean
id=
"assetNameDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.AssetNameDAO"
/>
<!-- 配置assetDao组件 -->
<bean
id=
"assetDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.asset.AssetDAO"
/>
<!-- 配置assetDao组件 -->
<bean
id=
"reportDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.asset.ReportDAO"
/>
<!-- 配置appDao组件 -->
<bean
id=
"appDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.AppDAO"
/>
<!-- 配置roleDao组件 -->
<bean
id=
"roleDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.RoleDAO"
/>
<!-- 配置functionsDao组件 -->
<bean
id=
"functionsDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.FunctionsDAO"
/>
<!-- 配置userBusinessDao组件 -->
<bean
id=
"userBusinessDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.UserBusinessDAO"
/>
<!-- 配置personDao组件 -->
<bean
id=
"personDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.materials.PersonDAO"
/>
<!-- 配置materialCategoryDao组件 -->
<bean
id=
"materialCategoryDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.materials.MaterialCategoryDAO"
/>
<!-- 配置materialDao组件 -->
<bean
id=
"materialDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.materials.MaterialDAO"
/>
<!-- 配置depotHeadDao组件 -->
<bean
id=
"depotHeadDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.materials.DepotHeadDAO"
/>
<!-- 配置depotItemDao组件 -->
<bean
id=
"depotItemDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.materials.DepotItemDAO"
/>
<!-- 配置accountDao组件 -->
<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/building-struts.xml
deleted
100644 → 0
View file @
77e30a07
<?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=
"building"
namespace=
"/building"
extends=
"json-default"
>
<action
name=
"*"
class=
"buildingAction"
method=
"{1}"
>
<result
type=
"json"
/>
</action>
</package>
</struts>
\ No newline at end of file
WebRoot/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js
View file @
adb6105f
...
...
@@ -14,23 +14,23 @@ if ($.messager){
$
.
messager
.
defaults
.
cancel
=
'
取消
'
;
}
if
(
$
.
fn
.
validatebox
){
$
.
fn
.
validatebox
.
defaults
.
missingMessage
=
'
该输入项为必输项
'
;
$
.
fn
.
validatebox
.
defaults
.
missingMessage
=
'
必填
'
;
$
.
fn
.
validatebox
.
defaults
.
rules
.
email
.
message
=
'
请输入有效的电子邮件地址
'
;
$
.
fn
.
validatebox
.
defaults
.
rules
.
url
.
message
=
'
请输入有效的URL地址
'
;
$
.
fn
.
validatebox
.
defaults
.
rules
.
length
.
message
=
'
输入内容长度必须介于{0}和{1}之间
'
;
$
.
fn
.
validatebox
.
defaults
.
rules
.
remote
.
message
=
'
请修正该字段
'
;
}
if
(
$
.
fn
.
numberbox
){
$
.
fn
.
numberbox
.
defaults
.
missingMessage
=
'
该输入项为必输项
'
;
$
.
fn
.
numberbox
.
defaults
.
missingMessage
=
'
必填
'
;
}
if
(
$
.
fn
.
combobox
){
$
.
fn
.
combobox
.
defaults
.
missingMessage
=
'
该输入项为必输项
'
;
$
.
fn
.
combobox
.
defaults
.
missingMessage
=
'
必填
'
;
}
if
(
$
.
fn
.
combotree
){
$
.
fn
.
combotree
.
defaults
.
missingMessage
=
'
该输入项为必输项
'
;
$
.
fn
.
combotree
.
defaults
.
missingMessage
=
'
必填
'
;
}
if
(
$
.
fn
.
combogrid
){
$
.
fn
.
combogrid
.
defaults
.
missingMessage
=
'
该输入项为必输项
'
;
$
.
fn
.
combogrid
.
defaults
.
missingMessage
=
'
必填
'
;
}
if
(
$
.
fn
.
calendar
){
$
.
fn
.
calendar
.
defaults
.
weeks
=
[
'
日
'
,
'
一
'
,
'
二
'
,
'
三
'
,
'
四
'
,
'
五
'
,
'
六
'
];
...
...
@@ -40,7 +40,7 @@ if ($.fn.datebox){
$
.
fn
.
datebox
.
defaults
.
currentText
=
'
今天
'
;
$
.
fn
.
datebox
.
defaults
.
closeText
=
'
关闭
'
;
$
.
fn
.
datebox
.
defaults
.
okText
=
'
确定
'
;
$
.
fn
.
datebox
.
defaults
.
missingMessage
=
'
该输入项为必输项
'
;
$
.
fn
.
datebox
.
defaults
.
missingMessage
=
'
必填
'
;
$
.
fn
.
datebox
.
defaults
.
formatter
=
function
(
date
){
var
y
=
date
.
getFullYear
();
var
m
=
date
.
getMonth
()
+
1
;
...
...
WebRoot/pages/manage/user.jsp
View file @
adb6105f
...
...
@@ -46,7 +46,7 @@
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-search"
id=
"searchBtn"
>
查询
</a>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-redo"
id=
"searchResetBtn"
>
重置
</a>
<a
id=
"btnSetRole"
class=
'easyui-linkbutton iframe iframe_LargeForm'
href=
'#'
title=
'分配角色'
>
分配角色
</a>
<a
id=
"btnSetDepart"
class=
'easyui-linkbutton iframe iframe_LargeForm'
href=
'#'
title=
'分配
部门
'
>
分配
部门
</a>
<a
id=
"btnSetDepart"
class=
'easyui-linkbutton iframe iframe_LargeForm'
href=
'#'
title=
'分配
仓库
'
>
分配
仓库
</a>
</td>
</tr>
</table>
...
...
WebRoot/pages/materials/allocation_out_list.jsp
View file @
adb6105f
...
...
@@ -78,7 +78,7 @@
<td
style=
"padding:5px;width:120px;"
></td>
</tr>
<tr>
<td>
仓管员
:
</td>
<td>
经手人
:
</td>
<td
style=
"padding:5px"
>
<select
name=
"WareHousePersonId"
id=
"WareHousePersonId"
style=
"width:120px;"
></select>
</td>
...
...
WebRoot/pages/materials/other_in_list.jsp
View file @
adb6105f
...
...
@@ -80,7 +80,7 @@
</td>
</tr>
<tr>
<td>
仓管员
:
</td>
<td>
经手人
:
</td>
<td
style=
"padding:5px"
>
<select
name=
"WareHousePersonId"
id=
"WareHousePersonId"
style=
"width:120px;"
></select>
</td>
...
...
WebRoot/pages/materials/other_out_list.jsp
View file @
adb6105f
...
...
@@ -78,7 +78,7 @@
<td
style=
"padding:5px;width:120px;"
></td>
</tr>
<tr>
<td>
仓管员
:
</td>
<td>
经手人
:
</td>
<td
style=
"padding:5px"
>
<select
name=
"WareHousePersonId"
id=
"WareHousePersonId"
style=
"width:120px;"
></select>
</td>
...
...
WebRoot/pages/materials/person.jsp
View file @
adb6105f
...
...
@@ -26,16 +26,15 @@
<div
id =
"searchPanel"
class=
"easyui-panel"
style=
"padding:10px;"
title=
"查询窗口"
iconCls=
"icon-search"
collapsible=
"true"
closable=
"false"
>
<table
id=
"searchTable"
>
<tr>
<td>
仓库
:
</td>
<td>
姓名
:
</td>
<td>
<
selec
t
name=
"search
ProjectId
"
id=
"search
ProjectId"
style=
"width:230px;"
></select
>
<
inpu
t
name=
"search
Name
"
id=
"search
Name"
style=
"width:230px;"
/
>
</td>
<td>
类型:
</td>
<td>
<select
name=
"searchType"
id=
"searchType"
style=
"width:230px;"
>
<option
value=
""
>
全部
</option>
<option
value=
"仓管员"
>
仓管员
</option>
<option
value=
"采购员"
>
采购员
</option>
<option
value=
"财务员"
>
财务员
</option>
</select>
</td>
...
...
@@ -60,25 +59,20 @@
<form
id=
"personFM"
method=
"post"
novalidate
>
<table>
<tr>
<td>
仓库
</td>
<td
style=
"padding:5px"
>
<select
name=
"ProjectId"
id=
"ProjectId"
style=
"width:230px;height: 20px"
></select>
</td>
</tr>
<tr>
<td>
类型
</td>
<td
style=
"padding:5px"
>
<select
name=
"Type"
id=
"Type"
style=
"width:230px;"
>
<option
value=
""
>
请选择
</option>
<option
value=
"仓管员"
>
仓管员
</option>
<option
value=
"采购员"
>
采购员
</option>
<option
value=
"财务员"
>
财务员
</option>
</select>
</td>
</tr>
<tr>
<td>
姓名
</td>
<td
style=
"padding:5px"
><input
name=
"Name"
id=
"Name"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 230px;height: 20px"
/></td>
<td
style=
"padding:5px"
>
<input
name=
"Name"
id=
"Name"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 230px;height: 20px"
/>
</td>
</tr>
</table>
<input
type=
"hidden"
name=
"clientIp"
id=
"clientIp"
value=
"
<%=
clientIp
%>
"
/>
...
...
@@ -184,13 +178,12 @@
pageList
:
initPageNum
,
columns
:[[
{
field
:
'
Id
'
,
width
:
35
,
align
:
"
center
"
,
checkbox
:
true
},
{
title
:
'
仓库
'
,
field
:
'
ProjectName
'
,
width
:
180
},
{
title
:
'
类型
'
,
field
:
'
Type
'
,
width
:
180
},
{
title
:
'
经手人
'
,
field
:
'
Name
'
,
width
:
180
},
{
title
:
'
姓名
'
,
field
:
'
Name
'
,
width
:
180
},
{
title
:
'
类型
'
,
field
:
'
Type
'
,
width
:
180
},
{
title
:
'
操作
'
,
field
:
'
op
'
,
align
:
"
center
"
,
width
:
130
,
formatter
:
function
(
value
,
rec
)
{
var
str
=
''
;
var
rowInfo
=
rec
.
Id
+
'
AaBb
'
+
rec
.
ProjectId
+
'
AaBb
'
+
rec
.
Type
+
'
AaBb
'
+
rec
.
Name
;
var
rowInfo
=
rec
.
Id
+
'
AaBb
'
+
rec
.
Type
+
'
AaBb
'
+
rec
.
Name
;
if
(
1
==
value
)
{
str
+=
'
<img src="
<%=
path
%>
/js/easyui-1.3.5/themes/icons/pencil.png" style="cursor: pointer;" onclick="editPerson(
\'
'
+
rowInfo
+
'
\'
);"/> <a onclick="editPerson(
\'
'
+
rowInfo
+
'
\'
);" style="text-decoration:none;color:black;" href="javascript:void(0)">编辑</a>
'
;
...
...
@@ -403,7 +396,6 @@
dataType
:
"
json
"
,
async
:
false
,
data
:
({
ProjectId
:
$
.
trim
(
$
(
"
#ProjectId
"
).
val
()),
Type
:
$
.
trim
(
$
(
"
#Type
"
).
val
()),
Name
:
$
.
trim
(
$
(
"
#Name
"
).
val
()),
clientIp
:
'
<%=
clientIp
%>
'
...
...
@@ -442,16 +434,15 @@
var
personInfo
=
personTotalInfo
.
split
(
"
AaBb
"
);
$
(
"
#clientIp
"
).
val
(
'
<%=
clientIp
%>
'
);
$
(
"
#ProjectId
"
).
focus
().
val
(
personInfo
[
1
]);
$
(
"
#Type
"
).
val
(
personInfo
[
2
]);
$
(
"
#Name
"
).
val
(
personInfo
[
3
]);
$
(
"
#Type
"
).
val
(
personInfo
[
1
]);
$
(
"
#Name
"
).
val
(
personInfo
[
2
]);
//orgPerson = personInfo[1];
$
(
'
#personDlg
'
).
dialog
(
'
open
'
).
dialog
(
'
setTitle
'
,
'
<img src="
<%=
path
%>
/js/easyui-1.3.5/themes/icons/pencil.png"/> 编辑经手人信息
'
);
$
(
"
.window-mask
"
).
css
({
width
:
webW
,
height
:
webH
});
personID
=
personInfo
[
0
];
//焦点在名称输入框==定焦在输入文字后面
$
(
"
#Name
"
).
val
(
""
).
focus
().
val
(
personInfo
[
3
]);
$
(
"
#Name
"
).
val
(
""
).
focus
().
val
(
personInfo
[
2
]);
url
=
'
<%=
path
%>
/person/update.action?personID=
'
+
personInfo
[
0
];
}
...
...
@@ -479,7 +470,7 @@
url
:
"
<%=
path
%>
/person/findBy.action
"
,
dataType
:
"
json
"
,
data
:
({
ProjectId
:
$
.
trim
(
$
(
"
#search
ProjectId
"
).
val
()),
Name
:
$
.
trim
(
$
(
"
#search
Name
"
).
val
()),
Type
:
$
.
trim
(
$
(
"
#searchType
"
).
val
()),
pageNo
:
pageNo
,
pageSize
:
pageSize
...
...
WebRoot/pages/materials/purchase_back_list.jsp
View file @
adb6105f
...
...
@@ -80,7 +80,7 @@
</td>
</tr>
<tr>
<td>
仓管员
:
</td>
<td>
经手人
:
</td>
<td
style=
"padding:5px"
>
<select
name=
"WareHousePersonId"
id=
"WareHousePersonId"
style=
"width:120px;"
></select>
</td>
...
...
WebRoot/pages/materials/purchase_in_list.jsp
View file @
adb6105f
This diff is collapsed.
Click to expand it.
WebRoot/pages/materials/sale_back_list.jsp
View file @
adb6105f
...
...
@@ -78,7 +78,7 @@
<td
style=
"padding:5px;width:120px;"
></td>
</tr>
<tr>
<td>
仓管员
:
</td>
<td>
经手人
:
</td>
<td
style=
"padding:5px"
>
<select
name=
"WareHousePersonId"
id=
"WareHousePersonId"
style=
"width:120px;"
></select>
</td>
...
...
WebRoot/pages/materials/sale_out_list.jsp
View file @
adb6105f
...
...
@@ -78,7 +78,7 @@
<td
style=
"padding:5px;width:120px;"
></td>
</tr>
<tr>
<td>
仓管员
:
</td>
<td>
经手人
:
</td>
<td
style=
"padding:5px"
>
<select
name=
"WareHousePersonId"
id=
"WareHousePersonId"
style=
"width:120px;"
></select>
</td>
...
...
config/hibernate/hibernate.cfg.xml
View file @
adb6105f
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<!--
<property name="hibernate.connection.driver_class">
com.mysql.jdbc.Driver
</property>
<property name="hibernate.connection.url">
jdbc:mysql:///myshop
</property>
<property name="hibernate.connection.username">root</property>
<property name="connection.password">root</property>
-->
<property
name=
"hibernate.dialect"
>
org.hibernate.dialect.MySQL5Dialect
</property>
<property
name=
"show_sql"
>
true
</property>
<!-- 一般重新建库用create(慎用),只更新字段用update -->
<property
name=
"hbm2ddl.auto"
>
update
</property>
<!-- 对应的实体映射 -->
<mapping
resource=
"com/jsh/model/po/Supplier.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Logdetails.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Assetname.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Category.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Basicuser.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Asset.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Depot.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/App.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Role.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Functions.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/UserBusiness.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Person.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/MaterialCategory.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Material.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Building.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/DepotHead.hbm.xml"
/>
<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>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<!--
<property name="hibernate.connection.driver_class">
com.mysql.jdbc.Driver
</property>
<property name="hibernate.connection.url">
jdbc:mysql:///myshop
</property>
<property name="hibernate.connection.username">root</property>
<property name="connection.password">root</property>
-->
<property
name=
"hibernate.dialect"
>
org.hibernate.dialect.MySQL5Dialect
</property>
<property
name=
"show_sql"
>
true
</property>
<!-- 一般重新建库用create(慎用),只更新字段用update -->
<property
name=
"hbm2ddl.auto"
>
update
</property>
<!-- 对应的实体映射 -->
<mapping
resource=
"com/jsh/model/po/Supplier.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Logdetails.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Assetname.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Category.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Basicuser.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Asset.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Depot.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/App.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Role.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Functions.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/UserBusiness.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Person.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/MaterialCategory.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Material.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/DepotHead.hbm.xml"
/>
<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>
config/spring/basic-applicationContext.xml
View file @
adb6105f
This diff is collapsed.
Click to expand it.
config/spring/dao-applicationContext.xml
View file @
adb6105f
<?xml version="1.0" encoding="utf-8"?>
<!-- 指定Spring配置文件的DTD信息 -->
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN"
"http://www.springframework.org/dtd/spring-beans-2.0.dtd">
<beans>
<!-- 配置daoTemplate,作为所有DAO组件的模板 -->
<bean
id=
"daoTemplate"
abstract=
"true"
>
<!-- 为DAO组件注入SessionFactory引用 -->
<property
name=
"sessionFactory"
ref=
"sessionFactory"
/>
</bean>
<!-- 配置通用baseDao组件 -->
<bean
id=
"baseDao"
parent=
"daoTemplate"
class=
"com.jsh.base.BaseDAO"
scope=
"prototype"
/>
<!-- 配置userDao组件 -->
<bean
id=
"userDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.UserDAO"
/>
<!-- 配置logDao组件 -->
<bean
id=
"logDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.LogDAO"
/>
<!-- 配置supplierDao组件 -->
<bean
id=
"supplierDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.SupplierDAO"
/>
<!-- 配置categoryDao组件 -->
<bean
id=
"categoryDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.CategoryDAO"
/>
<!-- 配置depotDao组件 -->
<bean
id=
"depotDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.DepotDAO"
/>
<!-- 配置assetDao组件 -->
<bean
id=
"assetNameDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.AssetNameDAO"
/>
<!-- 配置assetDao组件 -->
<bean
id=
"assetDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.asset.AssetDAO"
/>
<!-- 配置assetDao组件 -->
<bean
id=
"reportDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.asset.ReportDAO"
/>
<!-- 配置appDao组件 -->
<bean
id=
"appDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.AppDAO"
/>
<!-- 配置roleDao组件 -->
<bean
id=
"roleDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.RoleDAO"
/>
<!-- 配置functionsDao组件 -->
<bean
id=
"functionsDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.FunctionsDAO"
/>
<!-- 配置userBusinessDao组件 -->
<bean
id=
"userBusinessDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.UserBusinessDAO"
/>
<!-- 配置personDao组件 -->
<bean
id=
"personDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.materials.PersonDAO"
/>
<!-- 配置materialCategoryDao组件 -->
<bean
id=
"materialCategoryDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.materials.MaterialCategoryDAO"
/>
<!-- 配置materialDao组件 -->
<bean
id=
"materialDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.materials.MaterialDAO"
/>
<!-- 配置buildingDao组件 -->
<bean
id=
"buildingDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.materials.BuildingDAO"
/>
<!-- 配置depotHeadDao组件 -->
<bean
id=
"depotHeadDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.materials.DepotHeadDAO"
/>
<!-- 配置depotItemDao组件 -->
<bean
id=
"depotItemDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.materials.DepotItemDAO"
/>
<!-- 配置accountDao组件 -->
<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>
<?xml version="1.0" encoding="utf-8"?>
<!-- 指定Spring配置文件的DTD信息 -->
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN"
"http://www.springframework.org/dtd/spring-beans-2.0.dtd">
<beans>
<!-- 配置daoTemplate,作为所有DAO组件的模板 -->
<bean
id=
"daoTemplate"
abstract=
"true"
>
<!-- 为DAO组件注入SessionFactory引用 -->
<property
name=
"sessionFactory"
ref=
"sessionFactory"
/>
</bean>
<!-- 配置通用baseDao组件 -->
<bean
id=
"baseDao"
parent=
"daoTemplate"
class=
"com.jsh.base.BaseDAO"
scope=
"prototype"
/>
<!-- 配置userDao组件 -->
<bean
id=
"userDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.UserDAO"
/>
<!-- 配置logDao组件 -->
<bean
id=
"logDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.LogDAO"
/>
<!-- 配置supplierDao组件 -->
<bean
id=
"supplierDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.SupplierDAO"
/>
<!-- 配置categoryDao组件 -->
<bean
id=
"categoryDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.CategoryDAO"
/>
<!-- 配置depotDao组件 -->
<bean
id=
"depotDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.DepotDAO"
/>
<!-- 配置assetDao组件 -->
<bean
id=
"assetNameDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.AssetNameDAO"
/>
<!-- 配置assetDao组件 -->
<bean
id=
"assetDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.asset.AssetDAO"
/>
<!-- 配置assetDao组件 -->
<bean
id=
"reportDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.asset.ReportDAO"
/>
<!-- 配置appDao组件 -->
<bean
id=
"appDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.AppDAO"
/>
<!-- 配置roleDao组件 -->
<bean
id=
"roleDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.RoleDAO"
/>
<!-- 配置functionsDao组件 -->
<bean
id=
"functionsDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.FunctionsDAO"
/>
<!-- 配置userBusinessDao组件 -->
<bean
id=
"userBusinessDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.UserBusinessDAO"
/>
<!-- 配置personDao组件 -->
<bean
id=
"personDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.materials.PersonDAO"
/>
<!-- 配置materialCategoryDao组件 -->
<bean
id=
"materialCategoryDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.materials.MaterialCategoryDAO"
/>
<!-- 配置materialDao组件 -->
<bean
id=
"materialDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.materials.MaterialDAO"
/>
<!-- 配置depotHeadDao组件 -->
<bean
id=
"depotHeadDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.materials.DepotHeadDAO"
/>
<!-- 配置depotItemDao组件 -->
<bean
id=
"depotItemDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.materials.DepotItemDAO"
/>
<!-- 配置accountDao组件 -->
<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>
config/struts2/building-struts.xml
deleted
100644 → 0
View file @
77e30a07
<?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=
"building"
namespace=
"/building"
extends=
"json-default"
>
<action
name=
"*"
class=
"buildingAction"
method=
"{1}"
>
<result
type=
"json"
/>
</action>
</package>
</struts>
\ No newline at end of file
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