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
227cf3b2
Commit
227cf3b2
authored
Dec 04, 2016
by
季圣华
Browse files
优化界面,给商品和单位模块增加了部分字段
parent
c8f80894
Changes
93
Hide whitespace changes
Inline
Side-by-side
WebRoot/WEB-INF/classes/hibernate/hibernate.cfg.xml
View file @
227cf3b2
...
...
@@ -33,7 +33,6 @@
<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/VisitAccount.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"
/>
...
...
WebRoot/WEB-INF/classes/spring/basic-applicationContext.xml
View file @
227cf3b2
...
...
@@ -238,18 +238,6 @@
</bean>
<!--资产报表配置结束 -->
<!--回访台帐配置开始 -->
<bean
id=
"visitAccountService"
class=
"com.jsh.service.basic.VisitAccountService"
>
<property
name=
"baseDao"
ref=
"baseDao"
/>
<property
name=
"visitAccountDao"
ref=
"visitAccountDao"
/>
</bean>
<!-- spring整合struts2需要默认为request或者 prototype,不能是单例 -->
<bean
id=
"visitAccountAction"
class=
"com.jsh.action.basic.VisitAccountAction"
scope=
"prototype"
>
<property
name=
"visitAccountService"
ref=
"visitAccountService"
/>
<property
name=
"logService"
ref=
"logService"
/>
</bean>
<!--回访台帐配置结束 -->
<!--经手人配置开始 -->
<bean
id=
"personService"
class=
"com.jsh.service.materials.PersonService"
>
<property
name=
"baseDao"
ref=
"baseDao"
/>
...
...
@@ -262,7 +250,7 @@
</bean>
<!--经手人配置结束 -->
<!--
物料
类别配置开始 -->
<!--
商品
类别配置开始 -->
<bean
id=
"materialCategoryService"
class=
"com.jsh.service.materials.MaterialCategoryService"
>
<property
name=
"baseDao"
ref=
"baseDao"
/>
<property
name=
"materialCategoryDao"
ref=
"materialCategoryDao"
/>
...
...
@@ -272,9 +260,9 @@
<property
name=
"materialCategoryService"
ref=
"materialCategoryService"
/>
<property
name=
"logService"
ref=
"logService"
/>
</bean>
<!--
物料
类别配置结束 -->
<!--
商品
类别配置结束 -->
<!--
物料
配置开始 -->
<!--
商品
配置开始 -->
<bean
id=
"materialService"
class=
"com.jsh.service.materials.MaterialService"
>
<property
name=
"baseDao"
ref=
"baseDao"
/>
<property
name=
"materialDao"
ref=
"materialDao"
/>
...
...
@@ -284,7 +272,7 @@
<property
name=
"materialService"
ref=
"materialService"
/>
<property
name=
"logService"
ref=
"logService"
/>
</bean>
<!--
物料
配置结束 -->
<!--
商品
配置结束 -->
<!--单元配置开始 -->
<bean
id=
"buildingService"
class=
"com.jsh.service.materials.BuildingService"
>
...
...
WebRoot/WEB-INF/classes/spring/dao-applicationContext.xml
View file @
227cf3b2
...
...
@@ -34,8 +34,6 @@
<bean
id=
"functionsDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.FunctionsDAO"
/>
<!-- 配置userBusinessDao组件 -->
<bean
id=
"userBusinessDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.UserBusinessDAO"
/>
<!-- 配置visitAccountDao组件 -->
<bean
id=
"visitAccountDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.basic.VisitAccountDAO"
/>
<!-- 配置personDao组件 -->
<bean
id=
"personDao"
parent=
"daoTemplate"
class=
"com.jsh.dao.materials.PersonDAO"
/>
<!-- 配置materialCategoryDao组件 -->
...
...
WebRoot/WEB-INF/classes/struts2/visitAccount-struts.xml
deleted
100644 → 0
View file @
c8f80894
<?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=
"visitAccount"
namespace=
"/visitAccount"
extends=
"json-default"
>
<action
name=
"*"
class=
"visitAccountAction"
method=
"{1}"
>
<result
type=
"json"
/>
</action>
</package>
</struts>
\ No newline at end of file
WebRoot/js/HoorayOS_mini/img/wallpaper/wallpaper.jpg
View replaced file @
c8f80894
View file @
227cf3b2
483 KB
|
W:
|
H:
696 KB
|
W:
|
H:
2-up
Swipe
Onion skin
WebRoot/pages/log/home.jsp
deleted
100644 → 0
View file @
c8f80894
<%@page
language=
"java"
contentType=
"text/html; charset=utf-8"
pageEncoding=
"utf-8"
%>
<%
String
path
=
request
.
getContextPath
();
String
basePath
=
request
.
getScheme
()+
"://"
+
request
.
getServerName
()+
":"
+
request
.
getServerPort
()+
path
+
"/"
;
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta
http-equiv=
Content-Type
content=
"text/html; charset=utf-8"
>
<!-- 指定以IE8的方式来渲染 -->
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=EmulateIE8"
/>
<link
rel=
"shortcut icon"
href=
"
<%=
path
%>
/images/favicon.ico"
type=
"image/x-icon"
/>
<link
href=
"css/admin.css"
type=
"text/css"
rel=
"stylesheet"
>
<title>
首页说明
</title>
<style
type=
"text/css"
>
<!
--
body
{
margin-left
:
0px
;
margin-top
:
0px
;
margin-right
:
0px
;
margin-bottom
:
0px
;
background-color
:
#EAF2FD
;
}
.STYLE1
{
font-size
:
12px
}
.STYLE4
{
font-size
:
12px
;
color
:
#1F4A65
;
font-weight
:
bold
;
}
a
:link
{
font-size
:
12px
;
color
:
#06482a
;
text-decoration
:
none
;
}
a
:visited
{
font-size
:
12px
;
color
:
#06482a
;
text-decoration
:
none
;
}
a
:hover
{
font-size
:
12px
;
color
:
#FF0000
;
text-decoration
:
underline
;
}
a
:active
{
font-size
:
12px
;
color
:
#FF0000
;
text-decoration
:
none
;
}
.STYLE7
{
font-size
:
12
}
--
>
</style>
</head>
<body>
<table
cellSpacing=
0
cellPadding=
0
width=
"100%"
align=
center
border=
0
>
<tr
height=
28
>
<td
width=
"1101"
class=
"STYLE4"
>
<img
src=
"
<%=
path
%>
/images/blogging.png"
width=
"16"
height=
"16"
/>
<span
>
日志管理
</span>
</td>
</tr>
<tr>
<td
bgColor=
#b1ceef
height=
1
></td>
</tr>
<tr
height=
"5px"
>
<td
background=
images/shadow_bg.jpg
></td>
</tr>
</table>
<p
style=
"font-size: 12px;color: #1F4A65;padding: 10px"
>
日志管理是记录资产管理系统增删改查操作明细,包括资产管理、系统管理等操作信息,通过日志管理,可以记录平时资产管理系统操作明细信息。日志管理主要以搜索操作信息为主。
</p>
</body>
</html>
\ No newline at end of file
WebRoot/pages/log/operatelog.jsp
View file @
227cf3b2
...
...
@@ -28,26 +28,26 @@
<tr>
<td>
操作模块:
</td>
<td>
<input
type=
"text"
name=
"searchOperation"
id=
"searchOperation"
style=
"width:
15
0px;"
/>
<input
type=
"text"
name=
"searchOperation"
id=
"searchOperation"
style=
"width:
9
0px;"
/>
</td>
<td>
</td>
<td>
</td>
<td>
操作人员:
</td>
<td>
<select
name=
"searchUsernameID"
id=
"searchUsernameID"
style=
"width:
15
0px;"
/>
<select
name=
"searchUsernameID"
id=
"searchUsernameID"
style=
"width:
9
0px;"
/>
</td>
<td>
</td>
<td>
</td>
<td>
操作IP:
</td>
<td>
<input
type=
"text"
name=
"searchIP"
id=
"searchIP"
style=
"width:
15
0px;"
/>
<input
type=
"text"
name=
"searchIP"
id=
"searchIP"
style=
"width:
9
0px;"
/>
</td>
<td>
</td>
<td>
</td>
<td>
操作状态:
</td>
<td>
<select
name=
"searchStatus"
id=
"searchStatus"
style=
"width:
15
0px;"
>
<select
name=
"searchStatus"
id=
"searchStatus"
style=
"width:
9
0px;"
>
<option
value=
""
>
请选择
</option>
<option
value=
"0"
>
成功
</option>
<option
value=
"1"
>
失败
</option>
...
...
@@ -57,27 +57,25 @@
<tr>
<td>
开始时间:
</td>
<td>
<input
type=
"text"
name=
"searchBeginTime"
id=
"searchBeginTime"
class=
"easyui-datebox"
style=
"width:
15
0px;"
/>
<input
type=
"text"
name=
"searchBeginTime"
id=
"searchBeginTime"
class=
"easyui-datebox"
style=
"width:
9
0px;"
/>
</td>
<td>
</td>
<td>
</td>
<td>
结束时间:
</td>
<td>
<input
type=
"text"
name=
"searchEndTime"
id=
"searchEndTime"
class=
"easyui-datebox"
style=
"width:
15
0px;"
/>
<input
type=
"text"
name=
"searchEndTime"
id=
"searchEndTime"
class=
"easyui-datebox"
style=
"width:
9
0px;"
/>
</td>
<td>
</td>
<td>
</td>
<td>
操作详情:
</td>
<td>
<input
type=
"text"
name=
"searchDesc"
id=
"searchDesc"
style=
"width:150px;"
/>
</td>
<td>
</td>
<td>
</td>
<input
type=
"text"
name=
"searchDesc"
id=
"searchDesc"
style=
"width:90px;"
/>
</td>
<td>
</td>
<td>
<td
colspan=
"3"
>
<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>
</td>
</td>
</tr>
</table>
</div>
...
...
WebRoot/pages/manage/app.jsp
View file @
227cf3b2
...
...
@@ -28,13 +28,13 @@
<tr>
<td>
名称:
</td>
<td>
<input
type=
"text"
name=
"searchName"
id=
"searchName"
style=
"width:
23
0px;"
/>
<input
type=
"text"
name=
"searchName"
id=
"searchName"
style=
"width:
10
0px;"
/>
</td>
<td>
</td>
<td>
</td>
<td>
种类:
</td>
<td>
<input
type=
"text"
name=
"searchType"
id=
"searchType"
style=
"width:
23
0px;"
/>
<input
type=
"text"
name=
"searchType"
id=
"searchType"
style=
"width:
10
0px;"
/>
</td>
<td>
</td>
<td>
</td>
...
...
WebRoot/pages/manage/functions.jsp
View file @
227cf3b2
...
...
@@ -28,16 +28,19 @@
<tr>
<td>
名称:
</td>
<td>
<input
type=
"text"
name=
"searchName"
id=
"searchName"
style=
"width:
23
0px;"
/>
<input
type=
"text"
name=
"searchName"
id=
"searchName"
style=
"width:
10
0px;"
/>
</td>
<td>
</td>
<td>
</td>
<td>
类型:
</td>
<td>
</td>
<td><select
name=
"searchType"
id=
"searchType"
style=
"width: 230px;height: 20px"
>
<option
value=
""
>
全部
</option>
<option
value=
"电脑版"
>
电脑版
</option>
<option
value=
"手机版"
>
手机版
</option></select></td>
<td>
<select
name=
"searchType"
id=
"searchType"
style=
"width:100px; height:20px"
>
<option
value=
""
>
全部
</option>
<option
value=
"电脑版"
>
电脑版
</option>
<option
value=
"手机版"
>
手机版
</option>
</select>
</td>
<td>
</td>
<td>
</td>
<td>
...
...
@@ -128,7 +131,6 @@
//iconCls:'icon-save',
//width:700,
height
:
heightInfo
,
nowrap
:
false
,
rownumbers
:
false
,
//动画效果
animate
:
false
,
...
...
@@ -148,14 +150,14 @@
pageList
:
initPageNum
,
columns
:[[
{
field
:
'
Id
'
,
width
:
35
,
align
:
"
center
"
,
checkbox
:
true
},
{
title
:
'
编号
'
,
field
:
'
Number
'
,
width
:
10
0
},
{
title
:
'
名称
'
,
field
:
'
Name
'
,
width
:
20
0
},
{
title
:
'
上级编号
'
,
field
:
'
PNumber
'
,
width
:
10
0
},
{
title
:
'
链接
'
,
field
:
'
URL
'
,
width
:
2
0
0
},
{
title
:
'
编号
'
,
field
:
'
Number
'
,
width
:
6
0
},
{
title
:
'
名称
'
,
field
:
'
Name
'
,
width
:
8
0
},
{
title
:
'
上级编号
'
,
field
:
'
PNumber
'
,
width
:
6
0
},
{
title
:
'
链接
'
,
field
:
'
URL
'
,
width
:
1
20
},
{
title
:
'
排序
'
,
field
:
'
Sort
'
,
width
:
50
},
{
title
:
'
收缩
'
,
field
:
'
State
'
,
width
:
50
},
{
title
:
'
启用
'
,
field
:
'
Enabled
'
,
width
:
50
},
{
title
:
'
类型
'
,
field
:
'
Type
'
,
width
:
10
0
},
{
title
:
'
类型
'
,
field
:
'
Type
'
,
width
:
5
0
},
{
title
:
'
操作
'
,
field
:
'
op
'
,
align
:
"
center
"
,
width
:
130
,
formatter
:
function
(
value
,
rec
)
{
var
str
=
''
;
...
...
WebRoot/pages/manage/vendor.jsp
View file @
227cf3b2
...
...
@@ -8,7 +8,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns=
"http://www.w3.org/1999/xhtml"
>
<head>
<title>
供应商
信息
</title>
<title>
单位
信息
</title>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
<!-- 指定以IE8的方式来渲染 -->
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=EmulateIE8"
/>
...
...
@@ -71,7 +71,7 @@
</div>
<!-- 数据显示table -->
<div
id =
"tablePanel"
class=
"easyui-panel"
style=
"padding:1px;top:300px;"
title=
"
供应商
列表"
iconCls=
"icon-list"
collapsible=
"true"
closable=
"false"
>
<div
id =
"tablePanel"
class=
"easyui-panel"
style=
"padding:1px;top:300px;"
title=
"
单位
列表"
iconCls=
"icon-list"
collapsible=
"true"
closable=
"false"
>
<table
id=
"tableData"
style=
"top:300px;border-bottom-color:#FFFFFF"
></table>
</div>
<div
id=
"supplierDlg"
class=
"easyui-dialog"
style=
"width:380px;padding:10px 20px"
...
...
@@ -100,6 +100,23 @@
<label
id=
"emailLabel"
>
电子邮箱
</label>
<input
name=
"email"
id=
"email"
class=
"easyui-validatebox"
validType=
"email"
style=
"width: 230px;height: 20px"
/>
</div>
<div
class=
"fitem"
style=
"padding:5px"
>
<label
id=
"BeginNeedGetLabel"
>
期初应收
</label>
<input
name=
"BeginNeedGet"
id=
"BeginNeedGet"
type=
"text"
class=
"easyui-numberbox"
data-options=
"min:0,precision:2"
style=
"width: 230px;height: 20px"
></input>
</div>
<div
class=
"fitem"
style=
"padding:5px"
>
<label
id=
"BeginNeedPayLabel"
>
期初应付
</label>
<input
name=
"BeginNeedPay"
id=
"BeginNeedPay"
type=
"text"
class=
"easyui-numberbox"
data-options=
"min:0,precision:2"
style=
"width: 230px;height: 20px"
></input>
</div>
<div
class=
"fitem"
style=
"padding:5px"
>
<label
id=
"AllNeedGetLabel"
>
累计应收
</label>
<input
name=
"AllNeedGet"
id=
"AllNeedGet"
type=
"text"
class=
"easyui-numberbox"
data-options=
"min:0,precision:2"
style=
"width: 230px;height: 20px"
disabled=
"true"
></input>
</div>
<div
class=
"fitem"
style=
"padding:5px"
>
<label
id=
"AllNeedPayLabel"
>
累计应付
</label>
<input
name=
"AllNeedPay"
id=
"AllNeedPay"
type=
"text"
class=
"easyui-numberbox"
data-options=
"min:0,precision:2"
style=
"width: 230px;height: 20px"
disabled=
"true"
></input>
</div>
<div
class=
"fitem"
style=
"padding:5px"
>
<label
id=
"descriptionLabel"
>
描
述
</label>
<textarea
name=
"description"
id=
"description"
rows=
"2"
cols=
"2"
style=
"width: 230px;"
></textarea>
...
...
@@ -154,7 +171,7 @@
function
initTableData
()
{
$
(
'
#tableData
'
).
datagrid
({
//title:'
供应商
列表',
//title:'
单位
列表',
//iconCls:'icon-save',
//width:700,
height
:
heightInfo
,
...
...
@@ -180,18 +197,18 @@
pageList
:
initPageNum
,
columns
:[[
{
field
:
'
id
'
,
width
:
35
,
align
:
"
center
"
,
checkbox
:
true
},
{
title
:
'
名称
'
,
field
:
'
supplier
'
,
width
:
2
0
0
},
{
title
:
'
联系人
'
,
field
:
'
contacts
'
,
width
:
10
0
,
align
:
"
center
"
},
{
title
:
'
联系电话
'
,
field
:
'
phonenum
'
,
width
:
115
,
align
:
"
center
"
},
{
title
:
'
电子邮箱
'
,
field
:
'
email
'
,
width
:
1
80
,
align
:
"
center
"
},
//
{ title: '
是否系统
',field: '
isystem
',width:70,align:"center"},
{
title
:
'
描述
'
,
field
:
'
description
'
,
width
:
100
},
{
title
:
'
类型
'
,
field
:
'
type
'
,
width
:
10
0
},
{
title
:
'
启动
'
,
field
:
'
enabled
'
,
width
:
10
0
},
{
title
:
'
名称
'
,
field
:
'
supplier
'
,
width
:
1
20
},
{
title
:
'
联系人
'
,
field
:
'
contacts
'
,
width
:
5
0
,
align
:
"
center
"
},
{
title
:
'
联系电话
'
,
field
:
'
phonenum
'
,
width
:
60
,
align
:
"
center
"
},
{
title
:
'
电子邮箱
'
,
field
:
'
email
'
,
width
:
80
,
align
:
"
center
"
},
{
title
:
'
累计应收
'
,
field
:
'
AllNeedGet
'
,
width
:
70
,
align
:
"
center
"
},
{
title
:
'
累计应付
'
,
field
:
'
AllNeedPay
'
,
width
:
70
,
align
:
"
center
"
},
{
title
:
'
类型
'
,
field
:
'
type
'
,
width
:
5
0
},
{
title
:
'
启动
'
,
field
:
'
enabled
'
,
width
:
4
0
},
{
title
:
'
操作
'
,
field
:
'
op
'
,
align
:
"
center
"
,
width
:
130
,
formatter
:
function
(
value
,
rec
)
{
var
str
=
''
;
var
rowInfo
=
rec
.
id
+
'
AaBb
'
+
rec
.
supplier
+
'
AaBb
'
+
rec
.
contacts
+
'
AaBb
'
+
rec
.
phonenum
+
'
AaBb
'
+
rec
.
email
+
'
AaBb
'
+
rec
.
isystem
+
'
AaBb
'
+
rec
.
description
+
'
AaBb
'
+
rec
.
type
+
'
AaBb
'
+
rec
.
enabled
;
var
rowInfo
=
rec
.
id
+
'
AaBb
'
+
rec
.
supplier
+
'
AaBb
'
+
rec
.
contacts
+
'
AaBb
'
+
rec
.
phonenum
+
'
AaBb
'
+
rec
.
email
+
'
AaBb
'
+
rec
.
BeginNeedGet
+
'
AaBb
'
+
rec
.
BeginNeedPay
+
'
AaBb
'
+
rec
.
AllNeedGet
+
'
AaBb
'
+
rec
.
AllNeedPay
+
'
AaBb
'
+
rec
.
isystem
+
'
AaBb
'
+
rec
.
description
+
'
AaBb
'
+
rec
.
type
+
'
AaBb
'
+
rec
.
enabled
;
if
(
1
==
value
)
{
str
+=
'
<img src="
<%=
path
%>
/js/easyui-1.3.5/themes/icons/pencil.png" style="cursor: pointer;" onclick="editSupplier(
\'
'
+
rowInfo
+
'
\'
);"/> <a onclick="editSupplier(
\'
'
+
rowInfo
+
'
\'
);" style="text-decoration:none;color:black;" href="javascript:void(0)">编辑</a>
'
;
...
...
@@ -278,10 +295,10 @@
}
}
//删除
供应商
信息
//删除
单位
信息
function
deleteSupplier
(
supplierInfo
)
{
$
.
messager
.
confirm
(
'
删除确认
'
,
'
确定要删除此
供应商
信息吗?
'
,
function
(
r
)
$
.
messager
.
confirm
(
'
删除确认
'
,
'
确定要删除此
单位
信息吗?
'
,
function
(
r
)
{
if
(
r
)
{
...
...
@@ -302,12 +319,12 @@
//加载完以后重新初始化
$
(
"
#searchBtn
"
).
click
();
else
$
.
messager
.
alert
(
'
删除提示
'
,
'
删除
供应商
信息失败,请稍后再试!
'
,
'
error
'
);
$
.
messager
.
alert
(
'
删除提示
'
,
'
删除
单位
信息失败,请稍后再试!
'
,
'
error
'
);
},
//此处添加错误处理
error
:
function
()
{
$
.
messager
.
alert
(
'
删除提示
'
,
'
删除
供应商
信息异常,请稍后再试!
'
,
'
error
'
);
$
.
messager
.
alert
(
'
删除提示
'
,
'
删除
单位
信息异常,请稍后再试!
'
,
'
error
'
);
return
;
}
});
...
...
@@ -315,7 +332,7 @@
});
}
//批量删除
供应商
//批量删除
单位
function
batDeleteSupplier
()
{
var
row
=
$
(
'
#tableData
'
).
datagrid
(
'
getChecked
'
);
...
...
@@ -326,7 +343,7 @@
}
if
(
row
.
length
>
0
)
{
$
.
messager
.
confirm
(
'
删除确认
'
,
'
确定要删除选中的
'
+
row
.
length
+
'
条
供应商
信息吗?
'
,
function
(
r
)
$
.
messager
.
confirm
(
'
删除确认
'
,
'
确定要删除选中的
'
+
row
.
length
+
'
条
单位
信息吗?
'
,
function
(
r
)
{
if
(
r
)
{
...
...
@@ -359,12 +376,12 @@
$
(
"
:checkbox
"
).
attr
(
"
checked
"
,
false
);
}
else
$
.
messager
.
alert
(
'
删除提示
'
,
'
删除
供应商
信息失败,请稍后再试!
'
,
'
error
'
);
$
.
messager
.
alert
(
'
删除提示
'
,
'
删除
单位
信息失败,请稍后再试!
'
,
'
error
'
);
},
//此处添加错误处理
error
:
function
()
{
$
.
messager
.
alert
(
'
删除提示
'
,
'
删除
供应商
信息异常,请稍后再试!
'
,
'
error
'
);
$
.
messager
.
alert
(
'
删除提示
'
,
'
删除
单位
信息异常,请稍后再试!
'
,
'
error
'
);
return
;
}
});
...
...
@@ -373,7 +390,7 @@
}
}
//增加
供应商
//增加
单位
var
url
;
var
supplierID
=
0
;
//保存编辑前的名称
...
...
@@ -381,7 +398,7 @@
function
addSuppler
()
{
$
(
'
#supplierDlg
'
).
dialog
(
'
open
'
).
dialog
(
'
setTitle
'
,
'
<img src="
<%=
path
%>
/js/easyui-1.3.5/themes/icons/edit_add.png"/> 增加
供应商
'
);
$
(
'
#supplierDlg
'
).
dialog
(
'
open
'
).
dialog
(
'
setTitle
'
,
'
<img src="
<%=
path
%>
/js/easyui-1.3.5/themes/icons/edit_add.png"/> 增加
单位信息
'
);
$
(
"
.window-mask
"
).
css
({
width
:
webW
,
height
:
webH
});
$
(
'
#supplierFM
'
).
form
(
'
clear
'
);
...
...
@@ -396,7 +413,7 @@
url
=
'
<%=
path
%>
/supplier/create.action
'
;
}
//保存
供应商
信息
//保存
单位
信息
$
(
"
#saveSupplier
"
).
unbind
().
bind
({
click
:
function
()
{
...
...
@@ -425,15 +442,12 @@
{
$
.
messager
.
show
({
title
:
'
错误提示
'
,
msg
:
'
保存
供应商
信息失败,请稍后重试!
'
msg
:
'
保存
单位
信息失败,请稍后重试!
'
});
}
else
{
$
(
'
#supplierDlg
'
).
dialog
(
'
close
'
);
//$('#tableData').datagrid('reload');
//加载完以后重新初始化
//$("#searchBtn").click();
var
opts
=
$
(
"
#tableData
"
).
datagrid
(
'
options
'
);
showSupplierDetails
(
opts
.
pageNumber
,
opts
.
pageSize
);
}
...
...
@@ -442,7 +456,7 @@
}
});
//编辑
供应商
信息
//编辑
单位
信息
function
editSupplier
(
supplierTotalInfo
)
{
var
supplierInfo
=
supplierTotalInfo
.
split
(
"
AaBb
"
);
...
...
@@ -451,13 +465,17 @@
contacts
:
supplierInfo
[
2
],
phonenum
:
supplierInfo
[
3
],
email
:
supplierInfo
[
4
],
description
:
supplierInfo
[
6
],
type
:
supplierInfo
[
7
],
enabled
:
supplierInfo
[
8
],
BeginNeedGet
:
supplierInfo
[
5
],
BeginNeedPay
:
supplierInfo
[
6
],
AllNeedGet
:
supplierInfo
[
7
],
AllNeedPay
:
supplierInfo
[
8
],
description
:
supplierInfo
[
10
],
type
:
supplierInfo
[
11
],
enabled
:
supplierInfo
[
12
],
clientIp
:
'
<%=
clientIp
%>
'
};
orgSupplier
=
supplierInfo
[
1
];
$
(
'
#supplierDlg
'
).
dialog
(
'
open
'
).
dialog
(
'
setTitle
'
,
'
<img src="
<%=
path
%>
/js/easyui-1.3.5/themes/icons/pencil.png"/> 编辑
供应商
信息
'
);
$
(
'
#supplierDlg
'
).
dialog
(
'
open
'
).
dialog
(
'
setTitle
'
,
'
<img src="
<%=
path
%>
/js/easyui-1.3.5/themes/icons/pencil.png"/> 编辑
单位
信息
'
);
$
(
"
.window-mask
"
).
css
({
width
:
webW
,
height
:
webH
});
$
(
'
#supplierFM
'
).
form
(
'
load
'
,
row
);
supplierID
=
supplierInfo
[
0
];
...
...
@@ -466,11 +484,8 @@
url
=
'
<%=
path
%>
/supplier/update.action?supplierID=
'
+
supplierInfo
[
0
];
}
//$("#supplier").unbind().bind({
//blur:checkSupplierName
//});
//检查
供应商
名称是否存在 ++ 重名无法提示问题需要跟进
//检查
单位
名称是否存在 ++ 重名无法提示问题需要跟进
function
checkSupplierName
()
{
var
supplierName
=
$
.
trim
(
$
(
"
#supplier
"
).
val
());
...
...
@@ -493,16 +508,14 @@
flag
=
tipInfo
;
if
(
tipInfo
)
{
$
.
messager
.
alert
(
'
提示
'
,
'
供应商名称已经存在
'
,
'
info
'
);
//alert("供应商名称已经存在");
//$("#supplier").val("");
$
.
messager
.
alert
(
'
提示
'
,
'
单位名称已经存在
'
,
'
info
'
);
return
;
}
},
//此处添加错误处理
error
:
function
()
{
$
.
messager
.
alert
(
'
提示
'
,
'
检查
供应商
名称是否存在异常,请稍后再试!
'
,
'
error
'
);
$
.
messager
.
alert
(
'
提示
'
,
'
检查
单位
名称是否存在异常,请稍后再试!
'
,
'
error
'
);
return
;
}
});
...
...
WebRoot/pages/materials/allocation_in_list.jsp
View file @
227cf3b2
...
...
@@ -27,7 +27,7 @@
<div
id =
"searchPanel"
class=
"easyui-panel"
style=
"padding:3px;"
title=
"查询窗口"
iconCls=
"icon-search"
collapsible=
"true"
closable=
"false"
>
<table
id=
"searchTable"
>
<tr>
<td>
店面
:
</td>
<td>
仓库
:
</td>
<td>
<select
name=
"searchProjectId"
id=
"searchProjectId"
style=
"width:100px;"
></select>
</td>
...
...
@@ -80,7 +80,7 @@
<td
style=
"padding:5px"
>
<input
type=
"text"
name=
"OperTime"
id=
"OperTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd'})"
class=
"txt Wdate"
style=
"width:120px;"
/>
</td>
<td>
对方
店面
:
</td>
<td>
对方
仓库
:
</td>
<td
style=
"padding:5px"
>
<select
name=
"AllocationProjectId"
id=
"AllocationProjectId"
style=
"width:120px;"
></select>
</td>
...
...
@@ -129,7 +129,7 @@
<td
style=
"padding:5px;width:120px;"
>
<span
id=
"OperTimeShow"
></span>
</td>
<td>
对方
店面
:
</td>
<td>
对方
仓库
:
</td>
<td
style=
"padding:5px;width:120px;"
>
<span
id=
"AllocationProjectIdShow"
></span>
</td>
...
...
@@ -828,7 +828,7 @@
{
if
(
$
(
"
#searchProjectId
"
).
val
()
==
""
)
{
$
.
messager
.
alert
(
'
查询提示
'
,
'
请选择一个
店面
!
'
,
'
info
'
);
$
.
messager
.
alert
(
'
查询提示
'
,
'
请选择一个
仓库
!
'
,
'
info
'
);
}
else
{
...
...
WebRoot/pages/materials/allocation_out_list.jsp
View file @
227cf3b2
...
...
@@ -27,7 +27,7 @@
<div
id =
"searchPanel"
class=
"easyui-panel"
style=
"padding:3px;"
title=
"查询窗口"
iconCls=
"icon-search"
collapsible=
"true"
closable=
"false"
>
<table
id=
"searchTable"
>
<tr>
<td>
店面
:
</td>
<td>
仓库
:
</td>
<td>
<select
name=
"searchProjectId"
id=
"searchProjectId"
style=
"width:100px;"
></select>
</td>
...
...
@@ -80,7 +80,7 @@
<td
style=
"padding:5px"
>
<input
type=
"text"
name=
"OperTime"
id=
"OperTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd'})"
class=
"txt Wdate"
style=
"width:120px;"
/>
</td>
<td>
对方
店面
:
</td>
<td>
对方
仓库
:
</td>
<td
style=
"padding:5px"
>
<select
name=
"AllocationProjectId"
id=
"AllocationProjectId"
style=
"width:120px;"
></select>
</td>
...
...
@@ -129,7 +129,7 @@
<td
style=
"padding:5px;width:120px;"
>
<span
id=
"OperTimeShow"
></span>
</td>
<td>
对方
店面
:
</td>
<td>
对方
仓库
:
</td>
<td
style=
"padding:5px;width:120px;"
>
<span
id=
"AllocationProjectIdShow"
></span>
</td>
...
...
@@ -872,7 +872,7 @@
{
if
(
$
(
"
#searchProjectId
"
).
val
()
==
""
)
{
$
.
messager
.
alert
(
'
查询提示
'
,
'
请选择一个
店面
!
'
,
'
info
'
);
$
.
messager
.
alert
(
'
查询提示
'
,
'
请选择一个
仓库
!
'
,
'
info
'
);
}
else
{
...
...
WebRoot/pages/materials/audit_allocation_out_list.jsp
View file @
227cf3b2
...
...
@@ -27,7 +27,7 @@
<div
id =
"searchPanel"
class=
"easyui-panel"
style=
"padding:3px;"
title=
"查询窗口"
iconCls=
"icon-search"
collapsible=
"true"
closable=
"false"
>
<table
id=
"searchTable"
>
<tr>
<td>
店面
:
</td>
<td>
仓库
:
</td>
<td>
<select
name=
"searchProjectId"
id=
"searchProjectId"
style=
"width:100px;"
></select>
</td>
...
...
@@ -78,7 +78,7 @@
<td
style=
"padding:5px"
>
<input
type=
"text"
name=
"OperTime"
id=
"OperTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd'})"
class=
"txt Wdate"
style=
"width:120px;"
/>
</td>
<td>
对方
店面
:
</td>
<td>
对方
仓库
:
</td>
<td
style=
"padding:5px"
>
<select
name=
"AllocationProjectId"
id=
"AllocationProjectId"
style=
"width:120px;"
></select>
</td>
...
...
@@ -127,7 +127,7 @@
<td
style=
"padding:5px;width:120px;"
>
<span
id=
"OperTimeShow"
></span>
</td>
<td>
对方
店面
:
</td>
<td>
对方
仓库
:
</td>
<td
style=
"padding:5px;width:120px;"
>
<span
id=
"AllocationProjectIdShow"
></span>
</td>
...
...
@@ -912,7 +912,7 @@
{
if
(
$
(
"
#searchProjectId
"
).
val
()
==
""
)
{
$
.
messager
.
alert
(
'
查询提示
'
,
'
请选择一个
店面
!
'
,
'
info
'
);
$
.
messager
.
alert
(
'
查询提示
'
,
'
请选择一个
仓库
!
'
,
'
info
'
);
}
else
{
...
...
WebRoot/pages/materials/audit_consuming_out_list.jsp
View file @
227cf3b2
...
...
@@ -27,7 +27,7 @@
<div
id =
"searchPanel"
class=
"easyui-panel"
style=
"padding:3px;"
title=
"查询窗口"
iconCls=
"icon-search"
collapsible=
"true"
closable=
"false"
>
<table
id=
"searchTable"
>
<tr>
<td>
店面
:
</td>
<td>
仓库
:
</td>
<td>
<select
name=
"searchProjectId"
id=
"searchProjectId"
style=
"width:100px;"
></select>
</td>
...
...
@@ -963,7 +963,7 @@
{
if
(
$
(
"
#searchProjectId
"
).
val
()
==
""
)
{
$
.
messager
.
alert
(
'
查询提示
'
,
'
请选择一个
店面
!
'
,
'
info
'
);
$
.
messager
.
alert
(
'
查询提示
'
,
'
请选择一个
仓库
!
'
,
'
info
'
);
}
else
{
...
...
WebRoot/pages/materials/audit_lease_in_list.jsp
View file @
227cf3b2
...
...
@@ -27,7 +27,7 @@
<div
id =
"searchPanel"
class=
"easyui-panel"
style=
"padding:3px;"
title=
"查询窗口"
iconCls=
"icon-search"
collapsible=
"true"
closable=
"false"
>
<table
id=
"searchTable"
>
<tr>
<td>
店面
:
</td>
<td>
仓库
:
</td>
<td>
<select
name=
"searchProjectId"
id=
"searchProjectId"
style=
"width:100px;"
></select>
</td>
...
...
@@ -913,7 +913,7 @@
{
if
(
$
(
"
#searchProjectId
"
).
val
()
==
""
)
{
$
.
messager
.
alert
(
'
查询提示
'
,
'
请选择一个
店面
!
'
,
'
info
'
);
$
.
messager
.
alert
(
'
查询提示
'
,
'
请选择一个
仓库
!
'
,
'
info
'
);
}
else
{
...
...
WebRoot/pages/materials/audit_purchase_in_list.jsp
View file @
227cf3b2
...
...
@@ -27,7 +27,7 @@
<div
id =
"searchPanel"
class=
"easyui-panel"
style=
"padding:3px;"
title=
"查询窗口"
iconCls=
"icon-search"
collapsible=
"true"
closable=
"false"
>
<table
id=
"searchTable"
>
<tr>
<td>
店面
:
</td>
<td>
仓库
:
</td>
<td>
<select
name=
"searchProjectId"
id=
"searchProjectId"
style=
"width:100px;"
></select>
</td>
...
...
@@ -923,7 +923,7 @@
{
if
(
$
(
"
#searchProjectId
"
).
val
()
==
""
)
{
$
.
messager
.
alert
(
'
查询提示
'
,
'
请选择一个
店面
!
'
,
'
info
'
);
$
.
messager
.
alert
(
'
查询提示
'
,
'
请选择一个
仓库
!
'
,
'
info
'
);
}
else
{
...
...
WebRoot/pages/materials/audit_return_out_list.jsp
View file @
227cf3b2
...
...
@@ -27,7 +27,7 @@
<div
id =
"searchPanel"
class=
"easyui-panel"
style=
"padding:3px;"
title=
"查询窗口"
iconCls=
"icon-search"
collapsible=
"true"
closable=
"false"
>
<table
id=
"searchTable"
>
<tr>
<td>
店面
:
</td>
<td>
仓库
:
</td>
<td>
<select
name=
"searchProjectId"
id=
"searchProjectId"
style=
"width:100px;"
></select>
</td>
...
...
@@ -909,7 +909,7 @@
{
if
(
$
(
"
#searchProjectId
"
).
val
()
==
""
)
{
$
.
messager
.
alert
(
'
查询提示
'
,
'
请选择一个
店面
!
'
,
'
info
'
);
$
.
messager
.
alert
(
'
查询提示
'
,
'
请选择一个
仓库
!
'
,
'
info
'
);
}
else
{
...
...
WebRoot/pages/materials/audit_sale_out_list.jsp
View file @
227cf3b2
...
...
@@ -27,7 +27,7 @@
<div
id =
"searchPanel"
class=
"easyui-panel"
style=
"padding:3px;"
title=
"查询窗口"
iconCls=
"icon-search"
collapsible=
"true"
closable=
"false"
>
<table
id=
"searchTable"
>
<tr>
<td>
店面
:
</td>
<td>
仓库
:
</td>
<td>
<select
name=
"searchProjectId"
id=
"searchProjectId"
style=
"width:100px;"
></select>
</td>
...
...
@@ -121,7 +121,7 @@
closed=
"true"
modal=
"true"
cache=
"false"
collapsible=
"false"
closable=
"true"
>
<table>
<tr>
<td>
店面
:
</td>
<td>
仓库
:
</td>
<td
style=
"padding:5px;width:120px;"
>
<span
id=
"ProjectIdShow"
></span>
</td>
...
...
@@ -963,7 +963,7 @@
{
if
(
$
(
"
#searchProjectId
"
).
val
()
==
""
)
{
$
.
messager
.
alert
(
'
查询提示
'
,
'
请选择一个
店面
!
'
,
'
info
'
);
$
.
messager
.
alert
(
'
查询提示
'
,
'
请选择一个
仓库
!
'
,
'
info
'
);
}
else
{
...
...
WebRoot/pages/materials/audit_supply_in_list.jsp
View file @
227cf3b2
...
...
@@ -27,7 +27,7 @@
<div
id =
"searchPanel"
class=
"easyui-panel"
style=
"padding:3px;"
title=
"查询窗口"
iconCls=
"icon-search"
collapsible=
"true"
closable=
"false"
>
<table
id=
"searchTable"
>
<tr>
<td>
店面
:
</td>
<td>
仓库
:
</td>
<td>
<select
name=
"searchProjectId"
id=
"searchProjectId"
style=
"width:100px;"
></select>
</td>
...
...
@@ -906,7 +906,7 @@
{
if
(
$
(
"
#searchProjectId
"
).
val
()
==
""
)
{
$
.
messager
.
alert
(
'
查询提示
'
,
'
请选择一个
店面
!
'
,
'
info
'
);
$
.
messager
.
alert
(
'
查询提示
'
,
'
请选择一个
仓库
!
'
,
'
info
'
);
}
else
{
...
...
WebRoot/pages/materials/building.jsp
View file @
227cf3b2
...
...
@@ -71,7 +71,7 @@
</div>
<script
type=
"text/javascript"
>
var
depotID
=
getUrlParam
(
'
ProjectId
'
);
//获取传值ProjectId(
店面
ProjectId)
var
depotID
=
getUrlParam
(
'
ProjectId
'
);
//获取传值ProjectId(
仓库
ProjectId)
//初始化界面
$
(
function
()
{
...
...
Prev
1
2
3
4
5
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