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
7a436d1c
Commit
7a436d1c
authored
Apr 22, 2018
by
季圣华
Browse files
!14 格式化代码,看着有点别扭
Merge pull request !14 from SmkfGao/master
parents
8f304964
6bc92ec9
Changes
230
Hide whitespace changes
Inline
Side-by-side
Too many changes to show.
To preserve performance only
10 of 230+
files are displayed.
Plain diff
Email patch
src/main/webapp/pages/common/home.jsp
View file @
7a436d1c
<%@page
import=
"com.jsh.util.Tools"
%>
<%@ page
language=
"java"
import=
"java.util.*"
pageEncoding=
"utf-8"
%>
<%@page
import=
"com.jsh.util.Tools"
%>
<%@ page
language=
"java"
pageEncoding=
"utf-8"
%>
<%
String
path
=
request
.
getContextPath
();
String
basePath
=
request
.
getScheme
()
+
"://"
+
request
.
getServerName
()
+
":"
+
request
.
getServerPort
()
+
path
+
"/"
;
String
clientIp
=
Tools
.
getLocalIp
(
request
);
String
type
=
request
.
getParameter
(
"type"
);
String
location
=
"首页"
;
if
(
null
!=
type
)
location
=
"资产管理 >资产概况"
;
String
path
=
request
.
getContextPath
();
String
basePath
=
request
.
getScheme
()
+
"://"
+
request
.
getServerName
()
+
":"
+
request
.
getServerPort
()
+
path
+
"/"
;
String
clientIp
=
Tools
.
getLocalIp
(
request
);
String
type
=
request
.
getParameter
(
"type"
);
String
location
=
"首页"
;
if
(
null
!=
type
)
location
=
"资产管理 >资产概况"
;
%>
<!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>
erp
</title>
<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
rel=
"stylesheet"
type=
"text/css"
href=
"
<%=
path
%>
/js/easyui-1.3.5/themes/default/easyui.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
<%=
path
%>
/js/easyui-1.3.5/themes/icon.css"
/>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/jquery-1.8.0.min.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/easyui-1.3.5/jquery.easyui.min.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/highcharts/highcharts.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/highcharts/exporting.js"
></script>
<style>
body
{
margin
:
0
;
height
:
100%
}
html
{
height
:
100%
}
/*兼容firefox的div高度100%*/
#left
{
width
:
150px
;
height
:
100%
;
float
:
left
;
_margin-right
:
-3px
;}
#right
{
height
:
100%
;}
#leftdown
{
width
:
150px
;
height
:
100%
;
float
:
left
;
_margin-right
:
-3px
;}
#rightdown
{
height
:
100%
;}
<!
--页面展示特殊要求--
>
.datagrid-body
,
.datagrid-footer
,
.datagrid-pager
,
.datagrid-view
{
background-color
:
#EAF2FD
;
}
</style>
</head>
<body>
<div
id=
"position"
class=
"easyui-panel"
title=
"当前位置:
<%=
location
%>
"
collapsible=
"false"
closable=
"false"
/>
<!--按月统计资产柱状图 -->
<div
id =
"tablePanel0"
class=
"easyui-panel"
style=
"padding:1px;top:300px;"
title=
"资产报表"
iconCls=
"icon-chart-column"
collapsible=
"true"
maximizable=
"false"
closable=
"false"
>
<div
id=
"left"
class=
"easyui-tabs"
style=
"width:630px;height:auto;padding:1px;"
>
<div
title=
"综合图"
style=
"padding:10px;background-color: #EAF2FD;height:340px;top:300px;"
data-options=
"iconCls:'icon-chart-zonghe'"
>
<div
id=
"zongheContainer"
style=
"height: 340px;"
>
综合图
</div>
</div>
</div>
<div
id=
"right"
class=
"easyui-tabs"
style=
"height:auto;padding:1px;"
>
<div
title=
"柱状图"
style=
"padding:10px;background-color: #EAF2FD;height:340px;top:300px;"
data-options=
"iconCls:'icon-chart-statistics'"
>
<div
id=
"culumnContainer"
style=
"height: 340px;"
>
柱状图
</div>
</div>
</div>
<div
id=
"leftdown"
class=
"easyui-tabs"
style=
"width:630px;height:auto;padding:1px;"
>
<div
title=
"折线图"
data-options=
"iconCls:'icon-chart-polygram'"
style=
"padding:10px;background-color: #EAF2FD;height:340px;top:300px;"
>
<div
id=
"zxianContainer"
style=
"height: 340px;"
>
折现图
</div>
</div>
</div>
<div
id=
"rightdown"
class=
"easyui-tabs"
style=
"height:auto;padding:1px;"
>
<div
title=
"饼状图"
data-options=
"iconCls:'icon-chart-pie'"
style=
"padding:10px;background-color: #EAF2FD;height:340px;top:300px;"
>
<div
id=
"pieContainer"
style=
"height: 340px;"
>
饼状图
</div>
</div>
</div>
</div>
<!-- 数据显示table -->
<div
id =
"tablePanel"
class=
"easyui-panel"
style=
"padding:1px;top:300px;"
title=
"资产列表"
iconCls=
"icon-list"
collapsible=
"true"
closable=
"false"
>
<table
id=
"tableData"
style=
"height:360px;top:300px;border-bottom-color:#FFFFFF"
></table>
</div>
<script
type=
"text/javascript"
>
//控制图表显示个数
var
showNum
=
10
;
//初始化界面
$
(
function
()
{
//progress();
$
.
messager
.
progress
({
title
:
'
请稍候
'
,
msg
:
'
数据加载ing...
'
});
//综合图
showComboChart
();
//显示柱状图
showHistogram
();
//折线图
showSpline
();
//饼状图
showPieChart
();
initTableData
();
ininPager
();
$
.
messager
.
progress
(
'
close
'
);
});
//加载进度条
function
progress
()
{
var
win
=
$
.
messager
.
progress
({
title
:
'
请稍候
'
,
msg
:
'
数据加载ing...
'
});
setTimeout
(
function
(){
$
.
messager
.
progress
(
'
close
'
);
},
3300
);
}
//初始化表格数据
function
initTableData
()
{
$
(
'
#tableData
'
).
datagrid
({
//title:'资产列表',
//iconCls:'icon-save',
//width:700,
//height:480,
nowrap
:
false
,
rownumbers
:
false
,
//动画效果
animate
:
false
,
//选中单行
singleSelect
:
true
,
collapsible
:
false
,
selectOnCheck
:
false
,
//fitColumns:true,
//单击行是否选中
checkOnSelect
:
false
,
//交替出现背景
striped
:
true
,
url
:
'
<%=
path
%>
/asset/findBy.action
'
,
pagination
:
true
,
//loadFilter: pagerFilter,
pageSize
:
10
,
pageList
:
[
10
,
20
,
30
,
50
],
frozenColumns
:[[
{
field
:
'
id
'
,
width
:
35
,
align
:
"
center
"
,
checkbox
:
true
},
{
title
:
'
资产名称
'
,
field
:
'
assetname
'
,
width
:
100
},
{
title
:
'
单价
'
,
field
:
'
price
'
,
width
:
70
,
align
:
"
center
"
},
{
title
:
'
资产类型
'
,
field
:
'
category
'
,
width
:
115
,
align
:
"
center
"
},
{
title
:
'
用户
'
,
field
:
'
username
'
,
width
:
100
,
align
:
"
center
"
},
{
title
:
'
购买日期
'
,
field
:
'
purchasedate
'
,
width
:
90
,
align
:
"
center
"
},
{
title
:
'
状态
'
,
field
:
'
status
'
,
width
:
50
,
align
:
"
center
"
},
{
title
:
'
位置
'
,
field
:
'
location
'
,
width
:
100
,
align
:
"
center
"
},
{
title
:
'
资产编号
'
,
field
:
'
assetnum
'
,
width
:
120
,
align
:
"
center
"
},
{
title
:
'
序列号
'
,
field
:
'
serialnum
'
,
width
:
120
,
align
:
"
center
"
}
]],
columns
:[[
{
title
:
'
有效日期
'
,
field
:
'
periodofvalidity
'
,
width
:
90
,
align
:
"
center
"
},
{
title
:
'
保修日期
'
,
field
:
'
warrantydate
'
,
width
:
90
,
align
:
"
center
"
},
{
title
:
'
供应商
'
,
field
:
'
supplier
'
,
width
:
100
,
align
:
"
center
"
},
{
title
:
'
标签
'
,
field
:
'
labels
'
,
width
:
180
,
align
:
"
center
"
},
{
title
:
'
描述
'
,
field
:
'
description
'
,
width
:
300
}
]],
onLoadError
:
function
()
{
$
.
messager
.
alert
(
'
页面加载提示
'
,
'
页面加载异常,请稍后再试!
'
,
'
error
'
);
return
;
}
});
}
//分页信息处理
function
ininPager
()
{
try
{
var
opts
=
$
(
"
#tableData
"
).
datagrid
(
'
options
'
);
var
pager
=
$
(
"
#tableData
"
).
datagrid
(
'
getPager
'
);
pager
.
pagination
({
onSelectPage
:
function
(
pageNum
,
pageSize
)
{
opts
.
pageNumber
=
pageNum
;
opts
.
pageSize
=
pageSize
;
pager
.
pagination
(
'
refresh
'
,
{
pageNumber
:
pageNum
,
pageSize
:
pageSize
});
showAssetDetails
(
pageNum
,
pageSize
);
}
});
}
catch
(
e
)
{
$
.
messager
.
alert
(
'
异常处理提示
'
,
"
分页信息异常 :
"
+
e
.
name
+
"
:
"
+
e
.
message
,
'
error
'
);
}
}
function
showAssetDetails
(
pageNo
,
pageSize
)
{
$
.
ajax
({
type
:
"
post
"
,
url
:
"
<%=
path
%>
/asset/findBy.action
"
,
dataType
:
"
json
"
,
data
:
({
assetNameID
:
$
.
trim
(
$
(
"
#searchAssetNameID
"
).
val
()),
assetCategoryID
:
$
.
trim
(
$
(
"
#searchCategoryID
"
).
val
()),
usernameID
:
$
.
trim
(
$
(
"
#searchUsernameID
"
).
val
()),
status
:
$
.
trim
(
$
(
"
#searchStatus
"
).
val
()),
supplierID
:
$
.
trim
(
$
(
"
#searchSupplierID
"
).
val
()),
pageNo
:
pageNo
,
pageSize
:
pageSize
}),
success
:
function
(
data
)
{
$
(
"
#tableData
"
).
datagrid
(
'
loadData
'
,
data
);
//$('#tableData').datagrid('reload');
},
//此处添加错误处理
error
:
function
()
{
$
.
messager
.
alert
(
'
查询提示
'
,
'
查询数据后台异常,请稍后再试!
'
,
'
error
'
);
return
;
}
});
}
//设置饼状图为渐变色
Highcharts
.
getOptions
().
colors
=
$
.
map
(
Highcharts
.
getOptions
().
colors
,
function
(
color
)
{
return
{
radialGradient
:
{
cx
:
0.5
,
cy
:
0.3
,
r
:
0.7
},
stops
:
[
[
0
,
color
],
[
1
,
Highcharts
.
Color
(
color
).
brighten
(
-
0.3
).
get
(
'
rgb
'
)]
// darken
]
};
});
//饼状图
function
showPieChart
()
{
var
pageData
=
null
;
$
.
ajax
({
type
:
"
post
"
,
url
:
"
<%=
path
%>
/report/find.action
"
,
dataType
:
"
json
"
,
//取消异步机制,保证页面数据返回再进行处理
async
:
false
,
data
:
({
reportType
:
2
,
}),
success
:
function
(
reportInfo
)
{
pageData
=
reportInfo
.
showModel
.
reportData
;
var
msgTip
=
reportInfo
.
showModel
.
msgTip
;
if
(
msgTip
==
"
get report data exception
"
)
{
alert
(
"
查找报表信息异常,请与管理员联系!
"
);
return
;
}
}
});
//解决初始化范围变小问题
$
(
"
#pieContainer
"
).
empty
();
var
getReportTypeInfo
=
"
按供应商统计
"
;
//封装数据到数组中
var
allDataInfo
=
new
Array
();
for
(
var
i
=
0
;
i
<
pageData
.
length
;
i
++
)
{
var
dataInfo
=
new
Array
();
var
totalInfo
=
pageData
[
i
]
dataInfo
.
push
(
totalInfo
[
1
]);
dataInfo
.
push
(
totalInfo
[
0
]);
allDataInfo
.
push
(
dataInfo
);
}
new
Highcharts
.
Chart
({
chart
:
{
renderTo
:
'
pieContainer
'
,
plotBackgroundColor
:
null
,
plotBorderWidth
:
null
,
backgroundColor
:
'
#EAF2FD
'
,
plotShadow
:
false
},
title
:
{
text
:
getReportTypeInfo
+
"
饼状图
"
},
tooltip
:
{
formatter
:
function
()
{
return
this
.
point
.
name
+
'
:
'
+
this
.
y
+
"
个
"
;
}
},
plotOptions
:
{
pie
:
{
allowPointSelect
:
true
,
cursor
:
'
pointer
'
,
dataLabels
:
{
enabled
:
true
,
color
:
'
#000000
'
,
connectorColor
:
'
#000000
'
,
formatter
:
function
()
{
if
(
this
.
point
.
name
.
length
>
10
)
return
'
<b>
'
+
this
.
point
.
name
.
substr
(
0
,
10
)
+
"
</b>...:
"
+
this
.
y
+
"
个
"
;
return
'
<b>
'
+
this
.
point
.
name
+
'
</b>:
'
+
this
.
y
+
"
个
"
;
}
}
}
},
series
:
[{
type
:
'
pie
'
,
name
:
''
,
data
:
allDataInfo
}]
});
}
//综合图
function
showComboChart
()
{
var
pageData
=
null
;
$
.
ajax
({
type
:
"
post
"
,
url
:
"
<%=
path
%>
/report/find.action
"
,
dataType
:
"
json
"
,
//取消异步机制,保证页面数据返回再进行处理
async
:
false
,
data
:
({
reportType
:
0
}),
success
:
function
(
reportInfo
)
{
pageData
=
reportInfo
.
showModel
.
reportData
;
var
msgTip
=
reportInfo
.
showModel
.
msgTip
;
if
(
msgTip
==
"
get report data exception
"
)
{
alert
(
"
查找报表信息异常,请与管理员联系!
"
);
return
;
}
}
});
//解决初始化范围变小问题
$
(
"
#zongheContainer
"
).
empty
();
var
getReportTypeInfo
=
"
按资产状态统计
"
;
//按照统计数据封装显示数据
var
xName
=
new
Array
();
var
columnData
=
new
Array
();
var
columnDataForm
=
null
;
var
averageDataForm
=
null
;
var
allDataSum
=
0
;
var
showNumInfo
=
0
;
if
(
pageData
.
length
>=
showNum
)
showNumInfo
=
10
;
else
showNumInfo
=
pageData
.
length
;
for
(
var
i
=
0
;
i
<
showNumInfo
;
i
++
)
{
var
eachData
=
pageData
[
i
];
var
sum
=
eachData
[
0
];
var
totalInfo
=
eachData
[
1
];
if
(
0
==
totalInfo
)
xName
.
push
(
"
在库
"
);
else
if
(
1
==
totalInfo
)
xName
.
push
(
"
在用
"
);
else
if
(
2
==
totalInfo
)
xName
.
push
(
"
消费
"
);
columnData
.
push
(
sum
);
allDataSum
+=
sum
;
}
columnDataForm
=
{
type
:
'
column
'
,
name
:
"
资产总数
"
,
data
:
columnData
};
averageDataForm
=
{
type
:
'
spline
'
,
name
:
getReportTypeInfo
+
'
资产概况曲线
'
,
data
:
columnData
,
marker
:
{
lineWidth
:
2
,
lineColor
:
Highcharts
.
getOptions
().
colors
[
3
],
fillColor
:
'
white
'
}
};
sumDataForm
=
{
type
:
'
pie
'
,
name
:
'
总数
'
,
data
:
[{
name
:
'
资产总数
'
,
y
:
allDataSum
}],
center
:
[
450
,
1
],
size
:
80
,
showInLegend
:
false
,
dataLabels
:
{
enabled
:
true
,
align
:
'
center
'
}
}
new
Highcharts
.
Chart
({
chart
:
{
renderTo
:
'
zongheContainer
'
,
backgroundColor
:
'
#EAF2FD
'
},
title
:
{
text
:
getReportTypeInfo
+
"
综合图
"
},
xAxis
:
{
categories
:
xName
},
yAxis
:
{
title
:
{
text
:
''
},
labels
:
{
formatter
:
function
()
{
return
this
.
value
;
}
}
},
plotOptions
:
{
column
:
{
cursor
:
'
pointer
'
,
dataLabels
:
{
enabled
:
true
,
style
:
{
fontWeight
:
'
bold
'
},
formatter
:
function
()
{
return
this
.
y
;
}
},
//设置是否显示最下面选项
showInLegend
:
false
},
spline
:
{
marker
:
{
radius
:
4
,
lineColor
:
'
#666666
'
,
lineWidth
:
1
},
showInLegend
:
false
},
line
:
{
dataLabels
:
{
enabled
:
false
},
enableMouseTracking
:
true
,
showInLegend
:
false
},
pie
:
{
allowPointSelect
:
false
,
dataLabels
:
{
color
:
'
#000000
'
,
connectorColor
:
'
#000000
'
,
formatter
:
function
()
{
return
'
资产总数:
'
+
this
.
y
;
}
}
}
},
tooltip
:
{
formatter
:
function
()
{
return
this
.
key
+
'
:
'
+
this
.
y
+
'
个
'
;
}
},
labels
:
{
items
:
[{
html
:
''
,
style
:
{
left
:
'
40px
'
,
top
:
'
8px
'
,
color
:
'
black
'
}
}]
},
series
:
[
columnDataForm
,
averageDataForm
,
sumDataForm
]
});
}
//折线图
function
showSpline
()
{
var
pageData
=
null
;
$
.
ajax
({
type
:
"
post
"
,
url
:
"
<%=
path
%>
/report/find.action
"
,
dataType
:
"
json
"
,
//取消异步机制,保证页面数据返回再进行处理
async
:
false
,
data
:
({
reportType
:
1
}),
success
:
function
(
reportInfo
)
{
pageData
=
reportInfo
.
showModel
.
reportData
;
var
msgTip
=
reportInfo
.
showModel
.
msgTip
;
if
(
msgTip
==
"
get report data exception
"
)
{
alert
(
"
查找报表信息异常,请与管理员联系!
"
);
return
;
}
}
});
//解决初始化范围变小问题
$
(
"
#zxianContainer
"
).
empty
();
var
getReportTypeInfo
=
"
按资产类型统计
"
;
var
dataInfo
=
new
Array
();
var
nameData
=
new
Array
();
var
consumeSumInfo
=
null
;
var
showNumInfo
=
0
;
if
(
pageData
.
length
>=
showNum
)
showNumInfo
=
10
;
else
showNumInfo
=
pageData
.
length
;
for
(
var
i
=
0
;
i
<
showNumInfo
;
i
++
)
{
var
totalInfo
=
pageData
[
i
]
dataInfo
.
push
(
totalInfo
[
0
]);
nameData
.
push
(
totalInfo
[
1
]);
}
consumeSumInfo
=
{
name
:
getReportTypeInfo
+
'
总共
'
,
marker
:
{
symbol
:
'
square
'
,
labels
:
{
formatter
:
function
()
{
return
this
.
value
+
'
个
'
;
}
}
},
data
:
dataInfo
};
new
Highcharts
.
Chart
({
chart
:
{
renderTo
:
'
zxianContainer
'
,
type
:
'
line
'
,
backgroundColor
:
'
#EAF2FD
'
},
title
:
{
text
:
getReportTypeInfo
+
"
曲线图
"
},
subtitle
:
{
text
:
''
},
xAxis
:
{
categories
:
nameData
,
labels
:
{
rotation
:
-
45
,
//逆时针旋转45°,标签名称太长。
align
:
'
right
'
,
//设置右对齐
formatter
:
function
()
{
if
(
this
.
value
.
length
>
10
)
return
this
.
value
.
substr
(
0
,
10
)
+
"
...
"
;
return
this
.
value
;
}
}
},
yAxis
:
{
title
:
{
text
:
''
},
labels
:
{
formatter
:
function
()
{
return
this
.
value
;
}
}
},
tooltip
:
{
crosshairs
:
false
,
shared
:
true
,
formatter
:
function
()
{
return
this
.
x
+
"
:
"
+
this
.
y
+
'
个
'
;
}
},
plotOptions
:
{
spline
:
{
marker
:
{
radius
:
4
,
lineColor
:
'
#666666
'
,
lineWidth
:
1
},
showInLegend
:
false
},
line
:
{
dataLabels
:
{
enabled
:
true
},
enableMouseTracking
:
true
,
showInLegend
:
false
}
},
series
:
[
consumeSumInfo
]
});
}
//柱状图
function
showHistogram
()
{
var
pageData
=
null
;
$
.
ajax
({
type
:
"
post
"
,
url
:
"
<%=
path
%>
/report/find.action
"
,
dataType
:
"
json
"
,
//取消异步机制,保证页面数据返回再进行处理
async
:
false
,
data
:
({
reportType
:
3
,
}),
success
:
function
(
reportInfo
)
{
pageData
=
reportInfo
.
showModel
.
reportData
;
var
msgTip
=
reportInfo
.
showModel
.
msgTip
;
if
(
msgTip
==
"
get report data exception
"
)
{
alert
(
"
查找报表信息异常,请与管理员联系!
"
);
return
;
}
}
});
//解决初始化范围变小问题
$
(
"
#culumnContainer
"
).
empty
();
var
getReportTypeInfo
=
"
按资产名称统计
"
;
var
dataInfo
=
new
Array
();
var
nameData
=
new
Array
();
var
consumeSumInfo
=
null
;
var
showNumInfo
=
0
;
if
(
pageData
.
length
>=
showNum
)
showNumInfo
=
10
;
else
showNumInfo
=
pageData
.
length
;
for
(
var
i
=
0
;
i
<
showNumInfo
;
i
++
)
{
var
totalInfo
=
pageData
[
i
];
dataInfo
.
push
(
totalInfo
[
0
]);
nameData
.
push
(
totalInfo
[
1
]);
}
consumeSumInfo
=
{
name
:
getReportTypeInfo
+
"
柱状图
"
,
data
:
dataInfo
}
new
Highcharts
.
Chart
({
chart
:
{
renderTo
:
'
culumnContainer
'
,
type
:
'
column
'
,
backgroundColor
:
'
#EAF2FD
'
},
title
:
{
text
:
getReportTypeInfo
+
"
柱状图
"
},
xAxis
:
{
categories
:
nameData
,
labels
:
{
rotation
:
-
45
,
//逆时针旋转45°,标签名称太长。
align
:
'
right
'
,
//设置右对齐
formatter
:
function
()
{
if
(
this
.
value
.
length
>
10
)
return
this
.
value
.
substr
(
0
,
10
)
+
"
...
"
;
return
this
.
value
;
}
}
},
yAxis
:
{
title
:
{
text
:
''
},
labels
:
{
formatter
:
function
()
{
return
this
.
value
;
}
}
},
plotOptions
:
{
column
:
{
cursor
:
'
pointer
'
,
dataLabels
:
{
enabled
:
true
,
style
:
{
fontWeight
:
'
bold
'
},
formatter
:
function
()
{
return
this
.
y
;
}
},
showInLegend
:
false
}
},
tooltip
:
{
formatter
:
function
()
{
return
this
.
x
+
"
:
"
+
this
.
y
+
'
个
'
;
}
},
credits
:
{
enabled
:
false
},
series
:
[
consumeSumInfo
]
});
}
//返回统计类型字符串
function
getReportType
()
{
var
reportType
=
$
(
"
#searchReportType
"
).
val
();
if
(
reportType
==
0
)
{
return
'
按资产状态统计
'
;
}
else
if
(
reportType
==
1
)
{
return
'
按资产类型统计
'
;
}
else
if
(
reportType
==
2
)
{
return
'
按供应商统计
'
;
}
else
if
(
reportType
==
3
)
{
return
'
按资产名称统计
'
;
}
else
if
(
reportType
==
4
)
{
return
'
按所属用户统计
'
;
}
}
</script>
</body>
<head>
<title>
erp
</title>
<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
rel=
"stylesheet"
type=
"text/css"
href=
"
<%=
path
%>
/js/easyui-1.3.5/themes/default/easyui.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
<%=
path
%>
/js/easyui-1.3.5/themes/icon.css"
/>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/jquery-1.8.0.min.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/easyui-1.3.5/jquery.easyui.min.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/highcharts/highcharts.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/highcharts/exporting.js"
></script>
<style>
body
{
margin
:
0
;
height
:
100%
}
html
{
height
:
100%
}
/*兼容firefox的div高度100%*/
#left
{
width
:
150px
;
height
:
100%
;
float
:
left
;
_margin-right
:
-3px
;
}
#right
{
height
:
100%
;
}
#leftdown
{
width
:
150px
;
height
:
100%
;
float
:
left
;
_margin-right
:
-3px
;
}
#rightdown
{
height
:
100%
;
}
<!
--
页面展示特殊要求--
>
.datagrid-body
,
.datagrid-footer
,
.datagrid-pager
,
.datagrid-view
{
background-color
:
#EAF2FD
;
}
</style>
</head>
<body>
<div
id=
"position"
class=
"easyui-panel"
title=
"当前位置:
<%=
location
%>
"
collapsible=
"false"
closable=
"false"
/>
<!--按月统计资产柱状图 -->
<div
id=
"tablePanel0"
class=
"easyui-panel"
style=
"padding:1px;top:300px;"
title=
"资产报表"
iconCls=
"icon-chart-column"
collapsible=
"true"
maximizable=
"false"
closable=
"false"
>
<div
id=
"left"
class=
"easyui-tabs"
style=
"width:630px;height:auto;padding:1px;"
>
<div
title=
"综合图"
style=
"padding:10px;background-color: #EAF2FD;height:340px;top:300px;"
data-options=
"iconCls:'icon-chart-zonghe'"
>
<div
id=
"zongheContainer"
style=
"height: 340px;"
>
综合图
</div>
</div>
</div>
<div
id=
"right"
class=
"easyui-tabs"
style=
"height:auto;padding:1px;"
>
<div
title=
"柱状图"
style=
"padding:10px;background-color: #EAF2FD;height:340px;top:300px;"
data-options=
"iconCls:'icon-chart-statistics'"
>
<div
id=
"culumnContainer"
style=
"height: 340px;"
>
柱状图
</div>
</div>
</div>
<div
id=
"leftdown"
class=
"easyui-tabs"
style=
"width:630px;height:auto;padding:1px;"
>
<div
title=
"折线图"
data-options=
"iconCls:'icon-chart-polygram'"
style=
"padding:10px;background-color: #EAF2FD;height:340px;top:300px;"
>
<div
id=
"zxianContainer"
style=
"height: 340px;"
>
折现图
</div>
</div>
</div>
<div
id=
"rightdown"
class=
"easyui-tabs"
style=
"height:auto;padding:1px;"
>
<div
title=
"饼状图"
data-options=
"iconCls:'icon-chart-pie'"
style=
"padding:10px;background-color: #EAF2FD;height:340px;top:300px;"
>
<div
id=
"pieContainer"
style=
"height: 340px;"
>
饼状图
</div>
</div>
</div>
</div>
<!-- 数据显示table -->
<div
id=
"tablePanel"
class=
"easyui-panel"
style=
"padding:1px;top:300px;"
title=
"资产列表"
iconCls=
"icon-list"
collapsible=
"true"
closable=
"false"
>
<table
id=
"tableData"
style=
"height:360px;top:300px;border-bottom-color:#FFFFFF"
></table>
</div>
<script
type=
"text/javascript"
>
//控制图表显示个数
var
showNum
=
10
;
//初始化界面
$
(
function
()
{
//progress();
$
.
messager
.
progress
({
title
:
'
请稍候
'
,
msg
:
'
数据加载ing...
'
});
//综合图
showComboChart
();
//显示柱状图
showHistogram
();
//折线图
showSpline
();
//饼状图
showPieChart
();
initTableData
();
ininPager
();
$
.
messager
.
progress
(
'
close
'
);
});
//加载进度条
function
progress
()
{
var
win
=
$
.
messager
.
progress
({
title
:
'
请稍候
'
,
msg
:
'
数据加载ing...
'
});
setTimeout
(
function
()
{
$
.
messager
.
progress
(
'
close
'
);
},
3300
);
}
//初始化表格数据
function
initTableData
()
{
$
(
'
#tableData
'
).
datagrid
({
//title:'资产列表',
//iconCls:'icon-save',
//width:700,
//height:480,
nowrap
:
false
,
rownumbers
:
false
,
//动画效果
animate
:
false
,
//选中单行
singleSelect
:
true
,
collapsible
:
false
,
selectOnCheck
:
false
,
//fitColumns:true,
//单击行是否选中
checkOnSelect
:
false
,
//交替出现背景
striped
:
true
,
url
:
'
<%=
path
%>
/asset/findBy.action
'
,
pagination
:
true
,
//loadFilter: pagerFilter,
pageSize
:
10
,
pageList
:
[
10
,
20
,
30
,
50
],
frozenColumns
:
[[
{
field
:
'
id
'
,
width
:
35
,
align
:
"
center
"
,
checkbox
:
true
},
{
title
:
'
资产名称
'
,
field
:
'
assetname
'
,
width
:
100
},
{
title
:
'
单价
'
,
field
:
'
price
'
,
width
:
70
,
align
:
"
center
"
},
{
title
:
'
资产类型
'
,
field
:
'
category
'
,
width
:
115
,
align
:
"
center
"
},
{
title
:
'
用户
'
,
field
:
'
username
'
,
width
:
100
,
align
:
"
center
"
},
{
title
:
'
购买日期
'
,
field
:
'
purchasedate
'
,
width
:
90
,
align
:
"
center
"
},
{
title
:
'
状态
'
,
field
:
'
status
'
,
width
:
50
,
align
:
"
center
"
},
{
title
:
'
位置
'
,
field
:
'
location
'
,
width
:
100
,
align
:
"
center
"
},
{
title
:
'
资产编号
'
,
field
:
'
assetnum
'
,
width
:
120
,
align
:
"
center
"
},
{
title
:
'
序列号
'
,
field
:
'
serialnum
'
,
width
:
120
,
align
:
"
center
"
}
]],
columns
:
[[
{
title
:
'
有效日期
'
,
field
:
'
periodofvalidity
'
,
width
:
90
,
align
:
"
center
"
},
{
title
:
'
保修日期
'
,
field
:
'
warrantydate
'
,
width
:
90
,
align
:
"
center
"
},
{
title
:
'
供应商
'
,
field
:
'
supplier
'
,
width
:
100
,
align
:
"
center
"
},
{
title
:
'
标签
'
,
field
:
'
labels
'
,
width
:
180
,
align
:
"
center
"
},
{
title
:
'
描述
'
,
field
:
'
description
'
,
width
:
300
}
]],
onLoadError
:
function
()
{
$
.
messager
.
alert
(
'
页面加载提示
'
,
'
页面加载异常,请稍后再试!
'
,
'
error
'
);
return
;
}
});
}
//分页信息处理
function
ininPager
()
{
try
{
var
opts
=
$
(
"
#tableData
"
).
datagrid
(
'
options
'
);
var
pager
=
$
(
"
#tableData
"
).
datagrid
(
'
getPager
'
);
pager
.
pagination
({
onSelectPage
:
function
(
pageNum
,
pageSize
)
{
opts
.
pageNumber
=
pageNum
;
opts
.
pageSize
=
pageSize
;
pager
.
pagination
(
'
refresh
'
,
{
pageNumber
:
pageNum
,
pageSize
:
pageSize
});
showAssetDetails
(
pageNum
,
pageSize
);
}
});
}
catch
(
e
)
{
$
.
messager
.
alert
(
'
异常处理提示
'
,
"
分页信息异常 :
"
+
e
.
name
+
"
:
"
+
e
.
message
,
'
error
'
);
}
}
function
showAssetDetails
(
pageNo
,
pageSize
)
{
$
.
ajax
({
type
:
"
post
"
,
url
:
"
<%=
path
%>
/asset/findBy.action
"
,
dataType
:
"
json
"
,
data
:
({
assetNameID
:
$
.
trim
(
$
(
"
#searchAssetNameID
"
).
val
()),
assetCategoryID
:
$
.
trim
(
$
(
"
#searchCategoryID
"
).
val
()),
usernameID
:
$
.
trim
(
$
(
"
#searchUsernameID
"
).
val
()),
status
:
$
.
trim
(
$
(
"
#searchStatus
"
).
val
()),
supplierID
:
$
.
trim
(
$
(
"
#searchSupplierID
"
).
val
()),
pageNo
:
pageNo
,
pageSize
:
pageSize
}),
success
:
function
(
data
)
{
$
(
"
#tableData
"
).
datagrid
(
'
loadData
'
,
data
);
//$('#tableData').datagrid('reload');
},
//此处添加错误处理
error
:
function
()
{
$
.
messager
.
alert
(
'
查询提示
'
,
'
查询数据后台异常,请稍后再试!
'
,
'
error
'
);
return
;
}
});
}
//设置饼状图为渐变色
Highcharts
.
getOptions
().
colors
=
$
.
map
(
Highcharts
.
getOptions
().
colors
,
function
(
color
)
{
return
{
radialGradient
:
{
cx
:
0.5
,
cy
:
0.3
,
r
:
0.7
},
stops
:
[
[
0
,
color
],
[
1
,
Highcharts
.
Color
(
color
).
brighten
(
-
0.3
).
get
(
'
rgb
'
)]
// darken
]
};
});
//饼状图
function
showPieChart
()
{
var
pageData
=
null
;
$
.
ajax
({
type
:
"
post
"
,
url
:
"
<%=
path
%>
/report/find.action
"
,
dataType
:
"
json
"
,
//取消异步机制,保证页面数据返回再进行处理
async
:
false
,
data
:
({
reportType
:
2
,
}),
success
:
function
(
reportInfo
)
{
pageData
=
reportInfo
.
showModel
.
reportData
;
var
msgTip
=
reportInfo
.
showModel
.
msgTip
;
if
(
msgTip
==
"
get report data exception
"
)
{
alert
(
"
查找报表信息异常,请与管理员联系!
"
);
return
;
}
}
});
//解决初始化范围变小问题
$
(
"
#pieContainer
"
).
empty
();
var
getReportTypeInfo
=
"
按供应商统计
"
;
//封装数据到数组中
var
allDataInfo
=
new
Array
();
for
(
var
i
=
0
;
i
<
pageData
.
length
;
i
++
)
{
var
dataInfo
=
new
Array
();
var
totalInfo
=
pageData
[
i
]
dataInfo
.
push
(
totalInfo
[
1
]);
dataInfo
.
push
(
totalInfo
[
0
]);
allDataInfo
.
push
(
dataInfo
);
}
new
Highcharts
.
Chart
({
chart
:
{
renderTo
:
'
pieContainer
'
,
plotBackgroundColor
:
null
,
plotBorderWidth
:
null
,
backgroundColor
:
'
#EAF2FD
'
,
plotShadow
:
false
},
title
:
{
text
:
getReportTypeInfo
+
"
饼状图
"
},
tooltip
:
{
formatter
:
function
()
{
return
this
.
point
.
name
+
'
:
'
+
this
.
y
+
"
个
"
;
}
},
plotOptions
:
{
pie
:
{
allowPointSelect
:
true
,
cursor
:
'
pointer
'
,
dataLabels
:
{
enabled
:
true
,
color
:
'
#000000
'
,
connectorColor
:
'
#000000
'
,
formatter
:
function
()
{
if
(
this
.
point
.
name
.
length
>
10
)
return
'
<b>
'
+
this
.
point
.
name
.
substr
(
0
,
10
)
+
"
</b>...:
"
+
this
.
y
+
"
个
"
;
return
'
<b>
'
+
this
.
point
.
name
+
'
</b>:
'
+
this
.
y
+
"
个
"
;
}
}
}
},
series
:
[{
type
:
'
pie
'
,
name
:
''
,
data
:
allDataInfo
}]
});
}
//综合图
function
showComboChart
()
{
var
pageData
=
null
;
$
.
ajax
({
type
:
"
post
"
,
url
:
"
<%=
path
%>
/report/find.action
"
,
dataType
:
"
json
"
,
//取消异步机制,保证页面数据返回再进行处理
async
:
false
,
data
:
({
reportType
:
0
}),
success
:
function
(
reportInfo
)
{
pageData
=
reportInfo
.
showModel
.
reportData
;
var
msgTip
=
reportInfo
.
showModel
.
msgTip
;
if
(
msgTip
==
"
get report data exception
"
)
{
alert
(
"
查找报表信息异常,请与管理员联系!
"
);
return
;
}
}
});
//解决初始化范围变小问题
$
(
"
#zongheContainer
"
).
empty
();
var
getReportTypeInfo
=
"
按资产状态统计
"
;
//按照统计数据封装显示数据
var
xName
=
new
Array
();
var
columnData
=
new
Array
();
var
columnDataForm
=
null
;
var
averageDataForm
=
null
;
var
allDataSum
=
0
;
var
showNumInfo
=
0
;
if
(
pageData
.
length
>=
showNum
)
showNumInfo
=
10
;
else
showNumInfo
=
pageData
.
length
;
for
(
var
i
=
0
;
i
<
showNumInfo
;
i
++
)
{
var
eachData
=
pageData
[
i
];
var
sum
=
eachData
[
0
];
var
totalInfo
=
eachData
[
1
];
if
(
0
==
totalInfo
)
xName
.
push
(
"
在库
"
);
else
if
(
1
==
totalInfo
)
xName
.
push
(
"
在用
"
);
else
if
(
2
==
totalInfo
)
xName
.
push
(
"
消费
"
);
columnData
.
push
(
sum
);
allDataSum
+=
sum
;
}
columnDataForm
=
{
type
:
'
column
'
,
name
:
"
资产总数
"
,
data
:
columnData
};
averageDataForm
=
{
type
:
'
spline
'
,
name
:
getReportTypeInfo
+
'
资产概况曲线
'
,
data
:
columnData
,
marker
:
{
lineWidth
:
2
,
lineColor
:
Highcharts
.
getOptions
().
colors
[
3
],
fillColor
:
'
white
'
}
};
sumDataForm
=
{
type
:
'
pie
'
,
name
:
'
总数
'
,
data
:
[{
name
:
'
资产总数
'
,
y
:
allDataSum
}],
center
:
[
450
,
1
],
size
:
80
,
showInLegend
:
false
,
dataLabels
:
{
enabled
:
true
,
align
:
'
center
'
}
}
new
Highcharts
.
Chart
({
chart
:
{
renderTo
:
'
zongheContainer
'
,
backgroundColor
:
'
#EAF2FD
'
},
title
:
{
text
:
getReportTypeInfo
+
"
综合图
"
},
xAxis
:
{
categories
:
xName
},
yAxis
:
{
title
:
{
text
:
''
},
labels
:
{
formatter
:
function
()
{
return
this
.
value
;
}
}
},
plotOptions
:
{
column
:
{
cursor
:
'
pointer
'
,
dataLabels
:
{
enabled
:
true
,
style
:
{
fontWeight
:
'
bold
'
},
formatter
:
function
()
{
return
this
.
y
;
}
},
//设置是否显示最下面选项
showInLegend
:
false
},
spline
:
{
marker
:
{
radius
:
4
,
lineColor
:
'
#666666
'
,
lineWidth
:
1
},
showInLegend
:
false
},
line
:
{
dataLabels
:
{
enabled
:
false
},
enableMouseTracking
:
true
,
showInLegend
:
false
},
pie
:
{
allowPointSelect
:
false
,
dataLabels
:
{
color
:
'
#000000
'
,
connectorColor
:
'
#000000
'
,
formatter
:
function
()
{
return
'
资产总数:
'
+
this
.
y
;
}
}
}
},
tooltip
:
{
formatter
:
function
()
{
return
this
.
key
+
'
:
'
+
this
.
y
+
'
个
'
;
}
},
labels
:
{
items
:
[{
html
:
''
,
style
:
{
left
:
'
40px
'
,
top
:
'
8px
'
,
color
:
'
black
'
}
}]
},
series
:
[
columnDataForm
,
averageDataForm
,
sumDataForm
]
});
}
//折线图
function
showSpline
()
{
var
pageData
=
null
;
$
.
ajax
({
type
:
"
post
"
,
url
:
"
<%=
path
%>
/report/find.action
"
,
dataType
:
"
json
"
,
//取消异步机制,保证页面数据返回再进行处理
async
:
false
,
data
:
({
reportType
:
1
}),
success
:
function
(
reportInfo
)
{
pageData
=
reportInfo
.
showModel
.
reportData
;
var
msgTip
=
reportInfo
.
showModel
.
msgTip
;
if
(
msgTip
==
"
get report data exception
"
)
{
alert
(
"
查找报表信息异常,请与管理员联系!
"
);
return
;
}
}
});
//解决初始化范围变小问题
$
(
"
#zxianContainer
"
).
empty
();
var
getReportTypeInfo
=
"
按资产类型统计
"
;
var
dataInfo
=
new
Array
();
var
nameData
=
new
Array
();
var
consumeSumInfo
=
null
;
var
showNumInfo
=
0
;
if
(
pageData
.
length
>=
showNum
)
showNumInfo
=
10
;
else
showNumInfo
=
pageData
.
length
;
for
(
var
i
=
0
;
i
<
showNumInfo
;
i
++
)
{
var
totalInfo
=
pageData
[
i
]
dataInfo
.
push
(
totalInfo
[
0
]);
nameData
.
push
(
totalInfo
[
1
]);
}
consumeSumInfo
=
{
name
:
getReportTypeInfo
+
'
总共
'
,
marker
:
{
symbol
:
'
square
'
,
labels
:
{
formatter
:
function
()
{
return
this
.
value
+
'
个
'
;
}
}
},
data
:
dataInfo
};
new
Highcharts
.
Chart
({
chart
:
{
renderTo
:
'
zxianContainer
'
,
type
:
'
line
'
,
backgroundColor
:
'
#EAF2FD
'
},
title
:
{
text
:
getReportTypeInfo
+
"
曲线图
"
},
subtitle
:
{
text
:
''
},
xAxis
:
{
categories
:
nameData
,
labels
:
{
rotation
:
-
45
,
//逆时针旋转45°,标签名称太长。
align
:
'
right
'
,
//设置右对齐
formatter
:
function
()
{
if
(
this
.
value
.
length
>
10
)
return
this
.
value
.
substr
(
0
,
10
)
+
"
...
"
;
return
this
.
value
;
}
}
},
yAxis
:
{
title
:
{
text
:
''
},
labels
:
{
formatter
:
function
()
{
return
this
.
value
;
}
}
},
tooltip
:
{
crosshairs
:
false
,
shared
:
true
,
formatter
:
function
()
{
return
this
.
x
+
"
:
"
+
this
.
y
+
'
个
'
;
}
},
plotOptions
:
{
spline
:
{
marker
:
{
radius
:
4
,
lineColor
:
'
#666666
'
,
lineWidth
:
1
},
showInLegend
:
false
},
line
:
{
dataLabels
:
{
enabled
:
true
},
enableMouseTracking
:
true
,
showInLegend
:
false
}
},
series
:
[
consumeSumInfo
]
});
}
//柱状图
function
showHistogram
()
{
var
pageData
=
null
;
$
.
ajax
({
type
:
"
post
"
,
url
:
"
<%=
path
%>
/report/find.action
"
,
dataType
:
"
json
"
,
//取消异步机制,保证页面数据返回再进行处理
async
:
false
,
data
:
({
reportType
:
3
,
}),
success
:
function
(
reportInfo
)
{
pageData
=
reportInfo
.
showModel
.
reportData
;
var
msgTip
=
reportInfo
.
showModel
.
msgTip
;
if
(
msgTip
==
"
get report data exception
"
)
{
alert
(
"
查找报表信息异常,请与管理员联系!
"
);
return
;
}
}
});
//解决初始化范围变小问题
$
(
"
#culumnContainer
"
).
empty
();
var
getReportTypeInfo
=
"
按资产名称统计
"
;
var
dataInfo
=
new
Array
();
var
nameData
=
new
Array
();
var
consumeSumInfo
=
null
;
var
showNumInfo
=
0
;
if
(
pageData
.
length
>=
showNum
)
showNumInfo
=
10
;
else
showNumInfo
=
pageData
.
length
;
for
(
var
i
=
0
;
i
<
showNumInfo
;
i
++
)
{
var
totalInfo
=
pageData
[
i
];
dataInfo
.
push
(
totalInfo
[
0
]);
nameData
.
push
(
totalInfo
[
1
]);
}
consumeSumInfo
=
{
name
:
getReportTypeInfo
+
"
柱状图
"
,
data
:
dataInfo
}
new
Highcharts
.
Chart
({
chart
:
{
renderTo
:
'
culumnContainer
'
,
type
:
'
column
'
,
backgroundColor
:
'
#EAF2FD
'
},
title
:
{
text
:
getReportTypeInfo
+
"
柱状图
"
},
xAxis
:
{
categories
:
nameData
,
labels
:
{
rotation
:
-
45
,
//逆时针旋转45°,标签名称太长。
align
:
'
right
'
,
//设置右对齐
formatter
:
function
()
{
if
(
this
.
value
.
length
>
10
)
return
this
.
value
.
substr
(
0
,
10
)
+
"
...
"
;
return
this
.
value
;
}
}
},
yAxis
:
{
title
:
{
text
:
''
},
labels
:
{
formatter
:
function
()
{
return
this
.
value
;
}
}
},
plotOptions
:
{
column
:
{
cursor
:
'
pointer
'
,
dataLabels
:
{
enabled
:
true
,
style
:
{
fontWeight
:
'
bold
'
},
formatter
:
function
()
{
return
this
.
y
;
}
},
showInLegend
:
false
}
},
tooltip
:
{
formatter
:
function
()
{
return
this
.
x
+
"
:
"
+
this
.
y
+
'
个
'
;
}
},
credits
:
{
enabled
:
false
},
series
:
[
consumeSumInfo
]
});
}
//返回统计类型字符串
function
getReportType
()
{
var
reportType
=
$
(
"
#searchReportType
"
).
val
();
var
reportName
=
undefined
;
switch
(
reportType
)
{
case
1
:
reportName
=
'
按资产类型统计
'
;
break
;
case
2
:
reportName
=
'
按供应商统计
'
;
break
;
case
3
:
reportName
=
'
按资产名称统计
'
;
break
;
case
4
:
reportName
=
'
按所属用户统计
'
;
break
;
default
:
reportName
=
'
按资产状态统计
'
;
break
;
}
}
</script>
</body>
</html>
\ No newline at end of file
src/main/webapp/pages/common/main.jsp
View file @
7a436d1c
<%@page
import=
"com.jsh.util.Tools"
%>
<%@ page
language=
"java"
import=
"java.util.*"
pageEncoding=
"utf-8"
%>
<%@page
import=
"com.jsh.util.Tools"
%>
<%@ page
language=
"java"
pageEncoding=
"utf-8"
%>
<%
String
path
=
request
.
getContextPath
();
String
basePath
=
request
.
getScheme
()
+
"://"
+
request
.
getServerName
()
+
":"
+
request
.
getServerPort
()
+
path
+
"/"
;
String
path
=
request
.
getContextPath
();
String
basePath
=
request
.
getScheme
()
+
"://"
+
request
.
getServerName
()
+
":"
+
request
.
getServerPort
()
+
path
+
"/"
;
String
clientIp
=
Tools
.
getLocalIp
(
request
);
%>
<!DOCTYPE html>
...
...
@@ -10,111 +10,122 @@
<head>
<meta
charset=
"utf-8"
>
<title>
ERP系统
</title>
<link
href=
"
<%=
path
%>
/js/HoorayOS_mini/js/HoorayLibs/hooraylibs.css"
rel=
"stylesheet"
/>
<link
href=
"
<%=
path
%>
/js/HoorayOS_mini/img/ui/index.css"
rel=
"stylesheet"
/>
<link
href=
"
<%=
path
%>
/js/HoorayOS_mini/js/HoorayLibs/hooraylibs.css"
rel=
"stylesheet"
/>
<link
href=
"
<%=
path
%>
/js/HoorayOS_mini/img/ui/index.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
class=
"loading"
></div>
<!-- 浏览器升级提示 -->
<div
class=
"update_browser_box"
>
<div
class=
"update_browser"
>
<div
class=
"subtitle"
>
您正在使用的IE浏览器版本过低,
<br>
我们建议您升级或者更换浏览器,以便体验顺畅、兼容、安全的互联网。
</div>
<div
class=
"title"
>
选择一款
<span>
新
</span>
浏览器吧
</div>
<div
class=
"browser"
>
<a
href=
"http://windows.microsoft.com/zh-CN/internet-explorer/downloads/ie"
class=
"ie"
target=
"_blank"
title=
"ie浏览器"
>
ie浏览器
</a>
<a
href=
"http://www.google.cn/chrome/"
class=
"chrome"
target=
"_blank"
title=
"谷歌浏览器"
>
谷歌浏览器
</a>
<a
href=
"http://www.firefox.com.cn"
class=
"firefox"
target=
"_blank"
title=
"火狐浏览器"
>
火狐浏览器
</a>
<a
href=
"http://www.opera.com"
class=
"opera"
target=
"_blank"
title=
"opera浏览器"
>
opera浏览器
</a>
<a
href=
"http://www.apple.com.cn/safari"
class=
"safari"
target=
"_blank"
title=
"safari浏览器"
>
safari浏览器
</a>
</div>
<div
class=
"bottomtitle"
>
[
<a
href=
"http://www.baidu.com/search/theie6countdown.html"
target=
"_blank"
>
对IE6说再见
</a>
]
</div>
<div
class=
"loading"
></div>
<!-- 浏览器升级提示 -->
<div
class=
"update_browser_box"
>
<div
class=
"update_browser"
>
<div
class=
"subtitle"
>
您正在使用的IE浏览器版本过低,
<br>
我们建议您升级或者更换浏览器,以便体验顺畅、兼容、安全的互联网。
</div>
<div
class=
"title"
>
选择一款
<span>
新
</span>
浏览器吧
</div>
<div
class=
"browser"
>
<a
href=
"http://windows.microsoft.com/zh-CN/internet-explorer/downloads/ie"
class=
"ie"
target=
"_blank"
title=
"ie浏览器"
>
ie浏览器
</a>
<a
href=
"http://www.google.cn/chrome/"
class=
"chrome"
target=
"_blank"
title=
"谷歌浏览器"
>
谷歌浏览器
</a>
<a
href=
"http://www.firefox.com.cn"
class=
"firefox"
target=
"_blank"
title=
"火狐浏览器"
>
火狐浏览器
</a>
<a
href=
"http://www.opera.com"
class=
"opera"
target=
"_blank"
title=
"opera浏览器"
>
opera浏览器
</a>
<a
href=
"http://www.apple.com.cn/safari"
class=
"safari"
target=
"_blank"
title=
"safari浏览器"
>
safari浏览器
</a>
</div>
<div
class=
"bottomtitle"
>
[
<a
href=
"http://www.baidu.com/search/theie6countdown.html"
target=
"_blank"
>
对IE6说再见
</a>
]
</div>
</div>
<!-- 桌面 -->
<div
id=
"desktop"
>
<div
id=
"zoom-tip"
><div><i>
</i>
<span></span></div><a
href=
"javascript:;"
class=
"close"
onclick=
"HROS.zoom.close();"
>
×
</a></div>
<div
id=
"desk"
>
<div
id=
"desk-1"
class=
"desktop-container"
><div
class=
"scrollbar scrollbar-x"
></div><div
class=
"scrollbar scrollbar-y"
></div></div>
<div
id=
"dock-bar"
>
<div
id=
"dock-container"
>
<div
class=
"dock-middle"
>
<div
class=
"dock-applist"
></div>
<div
class=
"dock-toollist"
>
<a
id=
"loginOut"
href=
"#"
>
<img
src=
"
<%=
path
%>
/js/HoorayOS_mini/img/exit.png"
style=
"height:50px;width:50px;"
>
</a>
<span
style=
"text-align:center;color:white; position:absolute;top:435px; left:15px;"
>
${sessionScope.user.username}
</span>
</div>
</div>
<!-- 桌面 -->
<div
id=
"desktop"
>
<div
id=
"zoom-tip"
>
<div><i>
</i>
<span></span></div>
<a
href=
"javascript:;"
class=
"close"
onclick=
"HROS.zoom.close();"
>
×
</a></div>
<div
id=
"desk"
>
<div
id=
"desk-1"
class=
"desktop-container"
>
<div
class=
"scrollbar scrollbar-x"
></div>
<div
class=
"scrollbar scrollbar-y"
></div>
</div>
<div
id=
"dock-bar"
>
<div
id=
"dock-container"
>
<div
class=
"dock-middle"
>
<div
class=
"dock-applist"
></div>
<div
class=
"dock-toollist"
>
<a
id=
"loginOut"
href=
"#"
>
<img
src=
"
<%=
path
%>
/js/HoorayOS_mini/img/exit.png"
style=
"height:50px;width:50px;"
>
</a>
<span
style=
"text-align:center;color:white; position:absolute;top:435px; left:15px;"
>
${sessionScope.user.username}
</span>
</div>
</div>
</div>
</div>
<div
id=
"task-bar-bg1"
></div>
<div
id=
"task-bar-bg2"
></div>
<div
id=
"task-bar"
>
<div
id=
"task-next"
><a
href=
"javascript:;"
id=
"task-next-btn"
hidefocus=
"true"
></a></div>
<div
id=
"task-content"
>
<div
id=
"task-content-inner"
></div>
</div>
<div
id=
"task-pre"
><a
href=
"javascript:;"
id=
"task-pre-btn"
hidefocus=
"true"
></a></div>
</div>
<div
id=
"task-bar-bg1"
></div>
<div
id=
"task-bar-bg2"
></div>
<div
id=
"task-bar"
>
<div
id=
"task-next"
><a
href=
"javascript:;"
id=
"task-next-btn"
hidefocus=
"true"
></a></div>
<div
id=
"task-content"
>
<div
id=
"task-content-inner"
></div>
</div>
<div
id=
"task-pre"
><a
href=
"javascript:;"
id=
"task-pre-btn"
hidefocus=
"true"
></a></div>
</div>
<script
src=
"
<%=
path
%>
/js/HoorayOS_mini/js/jquery-1.8.3.min.js"
></script>
<script
src=
"
<%=
path
%>
/js/HoorayOS_mini/js/HoorayLibs/hooraylibs.js"
></script>
<script
src=
"
<%=
path
%>
/js/HoorayOS_mini/js/templates.js"
></script>
<script
src=
"
<%=
path
%>
/js/HoorayOS_mini/js/core.js"
></script>
<script
src=
"
<%=
path
%>
/js/HoorayOS_mini/js/hros.app.js"
></script>
<script
src=
"
<%=
path
%>
/js/HoorayOS_mini/js/hros.base.js"
></script>
<script
src=
"
<%=
path
%>
/js/HoorayOS_mini/js/hros.desktop.js"
></script>
<script
src=
"
<%=
path
%>
/js/HoorayOS_mini/js/hros.dock.js"
></script>
<script
src=
"
<%=
path
%>
/js/HoorayOS_mini/js/hros.grid.js"
></script>
<script
src=
"
<%=
path
%>
/js/HoorayOS_mini/js/hros.maskBox.js"
></script>
<script
src=
"
<%=
path
%>
/js/HoorayOS_mini/js/hros.taskbar.js"
></script>
<script
src=
"
<%=
path
%>
/js/HoorayOS_mini/js/hros.popupMenu.js"
></script>
<script
src=
"
<%=
path
%>
/js/HoorayOS_mini/js/hros.wallpaper.js"
></script>
<script
src=
"
<%=
path
%>
/js/HoorayOS_mini/js/hros.widget.js"
></script>
<script
src=
"
<%=
path
%>
/js/HoorayOS_mini/js/hros.window.js"
></script>
<script
src=
"
<%=
path
%>
/js/HoorayOS_mini/js/hros.zoom.js"
></script>
</div>
<script
src=
"
<%=
path
%>
/js/HoorayOS_mini/js/jquery-1.8.3.min.js"
></script>
<script
src=
"
<%=
path
%>
/js/HoorayOS_mini/js/HoorayLibs/hooraylibs.js"
></script>
<script
src=
"
<%=
path
%>
/js/HoorayOS_mini/js/templates.js"
></script>
<script
src=
"
<%=
path
%>
/js/HoorayOS_mini/js/core.js"
></script>
<script
src=
"
<%=
path
%>
/js/HoorayOS_mini/js/hros.app.js"
></script>
<script
src=
"
<%=
path
%>
/js/HoorayOS_mini/js/hros.base.js"
></script>
<script
src=
"
<%=
path
%>
/js/HoorayOS_mini/js/hros.desktop.js"
></script>
<script
src=
"
<%=
path
%>
/js/HoorayOS_mini/js/hros.dock.js"
></script>
<script
src=
"
<%=
path
%>
/js/HoorayOS_mini/js/hros.grid.js"
></script>
<script
src=
"
<%=
path
%>
/js/HoorayOS_mini/js/hros.maskBox.js"
></script>
<script
src=
"
<%=
path
%>
/js/HoorayOS_mini/js/hros.taskbar.js"
></script>
<script
src=
"
<%=
path
%>
/js/HoorayOS_mini/js/hros.popupMenu.js"
></script>
<script
src=
"
<%=
path
%>
/js/HoorayOS_mini/js/hros.wallpaper.js"
></script>
<script
src=
"
<%=
path
%>
/js/HoorayOS_mini/js/hros.widget.js"
></script>
<script
src=
"
<%=
path
%>
/js/HoorayOS_mini/js/hros.window.js"
></script>
<script
src=
"
<%=
path
%>
/js/HoorayOS_mini/js/hros.zoom.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/easyui-1.3.5/jquery.easyui.min.js"
></script>
<link
href=
"
<%=
path
%>
/js/easyui-1.3.5/themes/default/easyui.css"
rel=
"stylesheet"
type=
"text/css"
/>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/easyui-1.3.5/jquery.easyui.min.js"
></script>
<link
href=
"
<%=
path
%>
/js/easyui-1.3.5/themes/default/easyui.css"
rel=
"stylesheet"
type=
"text/css"
/>
<script>
$
(
function
()
{
$
(
'
#loginOut
'
).
click
(
function
()
{
if
(
confirm
(
"
确认要退出系统吗?
"
))
location
.
href
=
'
<%=
path
%>
/user/logout.action?clientIp=
<%=
clientIp
%>
'
;
})
//IE下禁止选中
document
.
body
.
onselectstart
=
document
.
body
.
ondrag
=
function
()
{
return
false
;
}
//隐藏加载遮罩层
$
(
'
.loading
'
).
hide
();
//IE6升级提示
if
(
$
.
browser
.
msie
&&
$
.
browser
.
version
<
7
)
{
if
(
$
.
browser
.
version
<
7
)
{
//虽然不支持IE6,但还是得修复PNG图片透明的问题
DD_belatedPNG
.
fix
(
'
.update_browser .browser
'
);
}
$
(
'
.update_browser_box
'
).
show
();
}
else
{
$
(
'
#desktop
'
).
show
();
//初始化一些桌面信息
HROS
.
CONFIG
.
wallpaper
=
'
<%=
path
%>
/js/HoorayOS_mini/img/wallpaper/wallpaper.jpg
'
;
//加载桌面
HROS
.
base
.
init
();
<script>
$
(
function
()
{
$
(
'
#loginOut
'
).
click
(
function
()
{
if
(
confirm
(
"
确认要退出系统吗?
"
))
location
.
href
=
'
<%=
path
%>
/user/logout.action?clientIp=
<%=
clientIp
%>
'
;
})
//IE下禁止选中
document
.
body
.
onselectstart
=
document
.
body
.
ondrag
=
function
()
{
return
false
;
}
//隐藏加载遮罩层
$
(
'
.loading
'
).
hide
();
//IE6升级提示
if
(
$
.
browser
.
msie
&&
$
.
browser
.
version
<
7
)
{
if
(
$
.
browser
.
version
<
7
)
{
//虽然不支持IE6,但还是得修复PNG图片透明的问题
DD_belatedPNG
.
fix
(
'
.update_browser .browser
'
);
}
//判断是否存在session,如果不存在就跳到登录界面
function
UserOut
()
{
var
kid
=
$
{
sessionScope
.
user
.
id
};
if
(
!
kid
){
top
.
location
.
href
=
'
../../
'
;
}
$
(
'
.update_browser_box
'
).
show
();
}
else
{
$
(
'
#desktop
'
).
show
();
//初始化一些桌面信息
HROS
.
CONFIG
.
wallpaper
=
'
<%=
path
%>
/js/HoorayOS_mini/img/wallpaper/wallpaper.jpg
'
;
//加载桌面
HROS
.
base
.
init
();
}
//判断是否存在session,如果不存在就跳到登录界面
function
UserOut
()
{
var
kid
=
$
{
sessionScope
.
user
.
id
};
if
(
!
kid
)
{
top
.
location
.
href
=
'
../../
'
;
}
setInterval
(
UserOut
,
5000
);
//每5秒检测一次
});
}
setInterval
(
UserOut
,
5000
);
//每5秒检测一次
});
</script>
</script>
</body>
</html>
\ No newline at end of file
src/main/webapp/pages/common/menu.jsp
View file @
7a436d1c
<%@ page
language=
"java"
import=
"java.util.*"
pageEncoding=
"utf-8"
%>
<%@ page
language=
"java"
pageEncoding=
"utf-8"
%>
<%
String
path
=
request
.
getContextPath
();
String
basePath
=
request
.
getScheme
()
+
"://"
+
request
.
getServerName
()
+
":"
+
request
.
getServerPort
()
+
path
+
"/"
;
String
path
=
request
.
getContextPath
();
String
basePath
=
request
.
getScheme
()
+
"://"
+
request
.
getServerName
()
+
":"
+
request
.
getServerPort
()
+
path
+
"/"
;
%>
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta
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
rel=
"stylesheet"
type=
"text/css"
href=
"
<%=
path
%>
/js/easyui-1.3.5/themes/default/easyui.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
<%=
path
%>
/js/easyui-1.3.5/themes/icon.css"
/>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"
<%=
path
%>
/css/common.css"
/>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/jquery-1.8.0.min.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/easyui-1.3.5/jquery.easyui.min.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/easyui-1.3.5/outlook.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/common/common.js"
></script>
<meta
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
rel=
"stylesheet"
type=
"text/css"
href=
"
<%=
path
%>
/js/easyui-1.3.5/themes/default/easyui.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
<%=
path
%>
/js/easyui-1.3.5/themes/icon.css"
/>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"
<%=
path
%>
/css/common.css"
/>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/jquery-1.8.0.min.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/easyui-1.3.5/jquery.easyui.min.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/easyui-1.3.5/outlook.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/common/common.js"
></script>
<script
type=
"text/javascript"
>
function
NewTab
(
name
,
url
,
funId
)
{
window
.
funId
=
funId
;
window
.
funId
=
funId
;
addTab
(
name
,
url
,
''
);
}
</script>
</head>
<body
class=
"easyui-layout"
style=
"overflow-y: hidden"
scroll=
"no"
>
<script>
var
pageid
=
getUrlParam
(
'
id
'
);
//获取传值id
var
id
=
$
{
sessionScope
.
user
.
id
};
//alert(pageid);
var
pageid
=
getUrlParam
(
'
id
'
);
//获取传值id
var
id
=
$
{
sessionScope
.
user
.
id
};
//alert(pageid);
var
userBusinessList
=
null
;
var
userBusinessID
=
null
;
var
type
=
null
;
var
options
=
""
;
var
kid
=
null
;
var
lei
=
null
;
var
last
=
""
;
var
functions
=
""
;
var
btnStrList
=
[];
//按钮权限列表
var
userBusinessList
=
null
;
var
userBusinessID
=
null
;
var
type
=
null
;
var
options
=
""
;
var
kid
=
null
;
var
lei
=
null
;
var
last
=
""
;
var
functions
=
""
;
var
btnStrList
=
[];
//按钮权限列表
//初始化界面
$
(
function
()
{
//初始化系统基础信息
initSystemData
(
id
,
'
UserRole
'
);
initSelectInfo
(
0
);
initSelect
();
//ceshi();
});
//初始化界面
$
(
function
()
{
//初始化系统基础信息
initSystemData
(
id
,
'
UserRole
'
);
initSelectInfo
(
0
);
//初始化系统基础信息
function
initSystemData
(
kid
,
type
)
{
$
.
ajax
({
type
:
"
post
"
,
url
:
"
<%=
path
%>
/userBusiness/getBasicData.action
"
,
data
:
({
KeyId
:
kid
,
Type
:
type
}),
//设置为同步
async
:
false
,
dataType
:
"
json
"
,
success
:
function
(
systemInfo
)
{
if
(
systemInfo
)
{
userBusinessList
=
systemInfo
.
showModel
.
map
.
userBusinessList
;
var
msgTip
=
systemInfo
.
showModel
.
msgTip
;
if
(
msgTip
==
"
exceptoin
"
)
{
$
.
messager
.
alert
(
'
提示
'
,
'
查找UserBusiness异常,请与管理员联系!
'
,
'
error
'
);
return
;
}
}
else
{
userBusinessList
=
null
;
}
}
});
}
//初始化页面选项卡
function
initSelectInfo
(
lei
)
{
if
(
userBusinessList
!=
null
)
{
if
(
userBusinessList
.
length
>
0
)
{
options
=
userBusinessList
[
0
].
value
;
if
(
options
!=
""
)
{
options
=
options
.
substring
(
1
,
options
.
length
-
1
);
}
//app内列表赋值
if
(
lei
==
1
)
{
last
+=
options
+
'
][
'
;
}
//功能菜单列表
else
if
(
lei
==
2
)
{
functions
+=
options
+
'
][
'
;
}
//按钮权限列表
else
if
(
lei
==
3
)
{
var
btnStr
=
userBusinessList
[
0
].
btnStr
;
if
(
btnStr
!=
null
){
btnStr
=
JSON
.
parse
(
btnStr
);
for
(
var
j
=
0
;
j
<
btnStr
.
length
;
j
++
){
btnStrList
.
push
(
btnStr
[
j
]);
}
}
}
}
}
}
initSelect
();
//初始化页面
function
initSelect
()
{
var
arr
=
options
.
split
(
'
][
'
);
for
(
var
i
in
arr
){
initSystemData
(
arr
[
i
],
'
RoleAPP
'
);
//根据角色找app
initSelectInfo
(
1
);
//app内列表赋值
//ceshi();
});
initSystemData
(
arr
[
i
],
'
RoleFunctions
'
);
//根据角色找functions
initSelectInfo
(
2
);
//功能菜单列表
initSelectInfo
(
3
);
//查询角色对应的按钮权限
}
if
(
last
!=
""
)
{
last
=
"
[
"
+
last
.
substring
(
0
,
last
.
length
-
1
);
//alert(last);
//初始化系统基础信息
function
initSystemData
(
kid
,
type
)
{
$
.
ajax
({
type
:
"
post
"
,
url
:
"
<%=
path
%>
/userBusiness/getBasicData.action
"
,
data
:
({
KeyId
:
kid
,
Type
:
type
}),
//设置为同步
async
:
false
,
dataType
:
"
json
"
,
success
:
function
(
systemInfo
)
{
if
(
systemInfo
)
{
userBusinessList
=
systemInfo
.
showModel
.
map
.
userBusinessList
;
var
msgTip
=
systemInfo
.
showModel
.
msgTip
;
if
(
msgTip
==
"
exceptoin
"
)
{
$
.
messager
.
alert
(
'
提示
'
,
'
查找UserBusiness异常,请与管理员联系!
'
,
'
error
'
);
return
;
}
}
else
{
userBusinessList
=
null
;
}
}
});
if
(
last
.
indexOf
(
"
[
"
+
pageid
+
"
]
"
)
!=-
1
)
{
//alert("存在");
$
(
"
#west
"
).
show
();
$
(
"
#mainPanle
"
).
show
();
$
(
"
#mm
"
).
show
();
}
else
{
//alert("不存在");
$
(
"
div
"
).
remove
();
$
(
"
<div style='width:100%;text-align:center;padding-top:20px'><b>抱歉,您没有该权限!</b></div>
"
).
appendTo
(
"
body
"
);
}
}
if
(
functions
!=
""
)
{
functions
=
"
[
"
+
functions
.
substring
(
0
,
functions
.
length
-
1
);
//alert(functions);
}
if
(
btnStrList
.
length
>
0
){
window
.
winBtnStrList
=
JSON
.
stringify
(
btnStrList
);
//将按钮功能列表存为全局变量
}
}
}
//测试自定义hql
function
ceshi
()
{
$
.
ajax
({
type
:
"
post
"
,
url
:
"
<%=
path
%>
/userBusiness/getceshi.action
"
,
data
:
({
Type
:
"
UserRole
"
}),
//设置为同步
async
:
false
,
dataType
:
"
json
"
,
success
:
function
(
systemInfo
)
{
if
(
systemInfo
)
{
userBusinessList
=
systemInfo
.
showModel
.
map
.
userBusinessList
;
var
msgTip
=
systemInfo
.
showModel
.
msgTip
;
if
(
msgTip
==
"
exceptoin
"
)
{
$
.
messager
.
alert
(
'
提示
'
,
'
查找UserBusiness异常,请与管理员联系!
'
,
'
error
'
);
return
;
}
}
else
{
userBusinessList
=
null
;
}
}
});
if
(
userBusinessList
!=
null
)
{
if
(
userBusinessList
.
length
>
0
)
{
alert
(
userBusinessList
[
0
][
0
]);
alert
(
userBusinessList
[
0
][
1
]);
}
}
}
//初始化页面选项卡
function
initSelectInfo
(
lei
)
{
if
(
userBusinessList
!=
null
)
{
if
(
userBusinessList
.
length
>
0
)
{
options
=
userBusinessList
[
0
].
value
;
if
(
options
!=
""
)
{
options
=
options
.
substring
(
1
,
options
.
length
-
1
);
}
//app内列表赋值
if
(
lei
==
1
)
{
last
+=
options
+
'
][
'
;
}
//功能菜单列表
else
if
(
lei
==
2
)
{
functions
+=
options
+
'
][
'
;
}
//按钮权限列表
else
if
(
lei
==
3
)
{
var
btnStr
=
userBusinessList
[
0
].
btnStr
;
if
(
btnStr
!=
null
)
{
btnStr
=
JSON
.
parse
(
btnStr
);
for
(
var
j
=
0
;
j
<
btnStr
.
length
;
j
++
)
{
btnStrList
.
push
(
btnStr
[
j
]);
}
}
}
}
}
}
//初始化页面
function
initSelect
()
{
var
arr
=
options
.
split
(
'
][
'
);
for
(
var
i
in
arr
)
{
initSystemData
(
arr
[
i
],
'
RoleAPP
'
);
//根据角色找app
initSelectInfo
(
1
);
//app内列表赋值
initSystemData
(
arr
[
i
],
'
RoleFunctions
'
);
//根据角色找functions
initSelectInfo
(
2
);
//功能菜单列表
initSelectInfo
(
3
);
//查询角色对应的按钮权限
}
if
(
last
!=
""
)
{
last
=
"
[
"
+
last
.
substring
(
0
,
last
.
length
-
1
);
//alert(last);
if
(
last
.
indexOf
(
"
[
"
+
pageid
+
"
]
"
)
!=
-
1
)
{
//alert("存在");
$
(
"
#west
"
).
show
();
$
(
"
#mainPanle
"
).
show
();
$
(
"
#mm
"
).
show
();
}
else
{
//alert("不存在");
$
(
"
div
"
).
remove
();
$
(
"
<div style='width:100%;text-align:center;padding-top:20px'><b>抱歉,您没有该权限!</b></div>
"
).
appendTo
(
"
body
"
);
}
}
if
(
functions
!=
""
)
{
functions
=
"
[
"
+
functions
.
substring
(
0
,
functions
.
length
-
1
);
//alert(functions);
}
if
(
btnStrList
.
length
>
0
)
{
window
.
winBtnStrList
=
JSON
.
stringify
(
btnStrList
);
//将按钮功能列表存为全局变量
}
}
//测试自定义hql
function
ceshi
()
{
$
.
ajax
({
type
:
"
post
"
,
url
:
"
<%=
path
%>
/userBusiness/getceshi.action
"
,
data
:
({
Type
:
"
UserRole
"
}),
//设置为同步
async
:
false
,
dataType
:
"
json
"
,
success
:
function
(
systemInfo
)
{
if
(
systemInfo
)
{
userBusinessList
=
systemInfo
.
showModel
.
map
.
userBusinessList
;
var
msgTip
=
systemInfo
.
showModel
.
msgTip
;
if
(
msgTip
==
"
exceptoin
"
)
{
$
.
messager
.
alert
(
'
提示
'
,
'
查找UserBusiness异常,请与管理员联系!
'
,
'
error
'
);
return
;
}
}
else
{
userBusinessList
=
null
;
}
}
});
if
(
userBusinessList
!=
null
)
{
if
(
userBusinessList
.
length
>
0
)
{
alert
(
userBusinessList
[
0
][
0
]);
alert
(
userBusinessList
[
0
][
1
]);
}
}
}
</script>
<div
region=
"west"
hide=
"true"
split=
"true"
title=
"导航菜单"
style=
"width:125px;"
id=
"west"
>
<div
id=
"nav"
fit=
"true"
border=
"false"
>
<!-- 导航内容 -->
<div>
<ul
id=
"tt"
></ul>
<script>
var
PNumber
=
getUrlParam
(
'
appID
'
);
//获取传值appid
$
(
function
(){
$
(
'
#tt
'
).
tree
({
url
:
'
<%=
path
%>
/functions/findMenu.action?PNumber=
'
+
PNumber
+
'
&hasFunctions=
'
+
functions
,
animate
:
true
});
});
</script>
</div>
<div
region=
"west"
hide=
"true"
split=
"true"
title=
"导航菜单"
style=
"width:125px;"
id=
"west"
>
<div
id=
"nav"
fit=
"true"
border=
"false"
>
<!-- 导航内容 -->
<div>
<ul
id=
"tt"
></ul>
<script>
var
PNumber
=
getUrlParam
(
'
appID
'
);
//获取传值appid
$
(
function
()
{
$
(
'
#tt
'
).
tree
({
url
:
'
<%=
path
%>
/functions/findMenu.action?PNumber=
'
+
PNumber
+
'
&hasFunctions=
'
+
functions
,
animate
:
true
});
});
</script>
</div>
</div>
<div
id=
"mainPanle"
region=
"center"
style=
"background: #eee; overflow-y: hidden"
>
<div
id=
"tabs"
class=
"easyui-tabs"
fit=
"true"
border=
"false"
></div>
</div>
<div
id=
"mainPanle"
region=
"center"
style=
"background: #eee; overflow-y: hidden"
>
<div
id=
"tabs"
class=
"easyui-tabs"
fit=
"true"
border=
"false"
></div>
</div>
<div
id=
"mm"
class=
"easyui-menu"
style=
"width: 120px;"
>
<div
id=
"mm-tabupdate"
>
刷新
</div>
<div
id=
"mm"
class=
"easyui-menu"
style=
"width: 120px;"
>
<div
id=
"mm-tabupdate"
>
刷新
</div>
<div
class=
"menu-sep"
>
</div>
<div
id=
"mm-tabclose"
>
关闭
</div>
<div
id=
"mm-tabcloseall"
>
全部关闭
</div>
<div
id=
"mm-tabcloseother"
>
关闭其他页
</div>
<div
class=
"menu-sep"
>
</div>
<div
id=
"mm-tabcloseright"
>
关闭右侧页面
</div>
<div
id=
"mm-tabcloseleft"
>
关闭左侧页面
</div>
<div
class=
"menu-sep"
>
</div>
<div
id=
"mm-version"
>
华夏ERP官网
</div>
<div
class=
"menu-sep"
>
</div>
<div
id=
"mm-tabclose"
>
关闭
</div>
<div
id=
"mm-tabcloseall"
>
全部关闭
</div>
<div
id=
"mm-tabcloseother"
>
关闭其他页
</div>
<div
class=
"menu-sep"
>
</div>
<div
id=
"mm-tabcloseright"
>
关闭右侧页面
</div>
<div
id=
"mm-tabcloseleft"
>
关闭左侧页面
</div>
<div
class=
"menu-sep"
>
</div>
<div
id=
"mm-version"
>
华夏ERP官网
</div>
</div>
</body>
</html>
\ No newline at end of file
src/main/webapp/pages/common/templateforjsp.jsp
View file @
7a436d1c
<%@page
import=
"com.jsh.util.Tools"
%>
<%@ page
language=
"java"
import=
"java.util.*"
pageEncoding=
"utf-8"
%>
<%@page
import=
"com.jsh.util.Tools"
%>
<%@ page
language=
"java"
pageEncoding=
"utf-8"
%>
<%
String
path
=
request
.
getContextPath
();
String
basePath
=
request
.
getScheme
()
+
"://"
+
request
.
getServerName
()
+
":"
+
request
.
getServerPort
()
+
path
+
"/"
;
String
clientIp
=
Tools
.
getLocalIp
(
request
);
String
path
=
request
.
getContextPath
();
String
basePath
=
request
.
getScheme
()
+
"://"
+
request
.
getServerName
()
+
":"
+
request
.
getServerPort
()
+
path
+
"/"
;
String
clientIp
=
Tools
.
getLocalIp
(
request
);
%>
<!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>
<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
type=
"text/css"
rel=
"stylesheet"
href=
"
<%=
path
%>
/css/css.css"
/>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/jquery-1.8.0.min.js"
></script>
</head>
<body>
<script
type=
"text/javascript"
>
//初始化界面
$
(
function
()
{
init
();
});
function
init
()
{
}
</script>
</body>
<head>
<title>
资产管理
</title>
<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
type=
"text/css"
rel=
"stylesheet"
href=
"
<%=
path
%>
/css/css.css"
/>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/jquery-1.8.0.min.js"
></script>
</head>
<body>
<script
type=
"text/javascript"
>
//初始化界面
$
(
function
()
{
init
();
});
function
init
()
{
}
</script>
</body>
</html>
\ No newline at end of file
src/main/webapp/pages/financial/advance_in.jsp
View file @
7a436d1c
<%@page
import=
"com.jsh.util.Tools"
%>
<%@ page
language=
"java"
import=
"java.util.*"
pageEncoding=
"utf-8"
%>
<%@page
import=
"com.jsh.util.Tools"
%>
<%@ page
language=
"java"
pageEncoding=
"utf-8"
%>
<%
String
path
=
request
.
getContextPath
();
String
clientIp
=
Tools
.
getLocalIp
(
request
);
String
path
=
request
.
getContextPath
();
String
clientIp
=
Tools
.
getLocalIp
(
request
);
%>
<!DOCTYPE html>
<html>
<head>
<title>
收预付款
</title>
<meta
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
rel=
"stylesheet"
type=
"text/css"
href=
"
<%=
path
%>
/js/easyui-1.3.5/themes/default/easyui.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
<%=
path
%>
/js/easyui-1.3.5/themes/icon.css"
/>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"
<%=
path
%>
/css/common.css"
/>
<script
src=
"
<%=
path
%>
/js/jquery-1.8.0.min.js"
></script>
<script
src=
"
<%=
path
%>
/js/easyui-1.3.5/jquery.easyui.min.js"
></script>
<script
src=
"
<%=
path
%>
/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"
></script>
<script
src=
"
<%=
path
%>
/js/My97DatePicker/WdatePicker.js"
></script>
<script
src=
"
<%=
path
%>
/js/common/common.js"
></script>
<script
src=
"
<%=
path
%>
/js/pages/financial/financial_base.js"
></script>
<script>
var
kid
=
$
{
sessionScope
.
user
.
id
};
var
path
=
"
<%=
path
%>
"
;
var
clientIp
=
"
<%=
clientIp
%>
"
;
</script>
</head>
<body>
<!-- 查询 -->
<div
id =
"searchPanel"
class=
"easyui-panel"
style=
"padding:3px;"
title=
"查询窗口"
iconCls=
"icon-search"
collapsible=
"true"
closable=
"false"
>
<table
id=
"searchTable"
>
<tr>
<td>
单据编号:
</td>
<td>
<input
type=
"text"
name=
"searchBillNo"
id=
"searchBillNo"
style=
"width:100px;"
/>
</td>
<td>
单据日期:
</td>
<td>
<input
type=
"text"
name=
"searchBeginTime"
id=
"searchBeginTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd'})"
class=
"txt Wdate"
style=
"width:100px;"
/>
</td>
<td>
-
</td>
<td>
<input
type=
"text"
name=
"searchEndTime"
id=
"searchEndTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd'})"
class=
"txt Wdate"
style=
"width:100px;"
/>
</td>
<td>
</td>
<td>
<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>
</tr>
</table>
</div>
<!-- 数据显示table -->
<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=
"accountHeadDlg"
class=
"easyui-dialog"
style=
"width:1200px;padding:10px 20px;top:20px"
closed=
"true"
buttons=
"#dlg-buttons"
modal=
"true"
cache=
"false"
collapsible=
"false"
closable=
"true"
>
<form
id=
"accountHeadFM"
method=
"post"
novalidate
>
<table>
<tr>
<td
style=
"width:60px;"
>
付款会员:
</td>
<td
style=
"padding:5px;width:170px;"
>
<select
name=
"OrganId"
id=
"OrganId"
style=
"width:110px;"
></select>
</td>
<td
style=
"width:70px;"
>
经手人:
</td>
<td
style=
"padding:5px;width:170px;"
>
<select
name=
"HandsPersonId"
id=
"HandsPersonId"
style=
"width:110px;"
></select>
</td>
<td
style=
"width:70px;"
>
单据日期:
</td>
<td
style=
"padding:5px;width:170px;"
>
<input
type=
"text"
name=
"BillTime"
id=
"BillTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
style=
"width:140px;"
/>
</td>
<td
style=
"width:80px;"
>
单据编号:
</td>
<td
style=
"padding:5px;width:170px;"
>
<input
name=
"BillNo"
id=
"BillNo"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
/>
</td>
<td
style=
"width:100px;"
></td>
</tr>
<tr>
<td
colspan=
"9"
>
<!-- 单据列表table -->
<table
id=
"accountData"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
</td>
</tr>
<tr>
<td
colspan=
"9"
>
<textarea
name=
"Remark"
id=
"Remark"
rows=
"2"
cols=
"2"
placeholder=
"暂无备注信息"
style=
"width: 1130px; height:35px;"
></textarea>
</td>
</tr>
<tr>
<td>
优惠金额:
</td>
<td
style=
"padding:5px"
>
<input
type=
"text"
name=
"ChangeAmount"
id=
"ChangeAmount"
class=
"easyui-numberbox"
data-options=
"min:0,precision:2"
style=
"width: 110px;"
/>
</td>
</tr>
</table>
<input
type=
"hidden"
name=
"clientIp"
id=
"clientIp"
value=
"
<%=
clientIp
%>
"
/>
</form>
</div>
<div
id=
"dlg-buttons"
>
<a
href=
"javascript:void(0)"
id=
"saveAccountHead"
class=
"easyui-linkbutton"
iconCls=
"icon-ok"
>
保存
</a>
<a
href=
"javascript:void(0)"
id=
"cancelAccountHead"
class=
"easyui-linkbutton"
iconCls=
"icon-cancel"
onclick=
"javascript:$('#accountHeadDlg').dialog('close')"
>
取消
</a>
</div>
<div
id=
"accountHeadDlgShow"
class=
"easyui-dialog"
style=
"width:1200px;padding:10px 20px;top:20px"
closed=
"true"
modal=
"true"
cache=
"false"
collapsible=
"false"
closable=
"true"
>
<table>
<tr>
<td
style=
"width:60px;"
>
付款会员:
</td>
<td
style=
"padding:5px;width:140px;"
>
<span
id=
"OrganIdShow"
></span>
</td>
<td
style=
"width:70px;"
>
经手人:
</td>
<td
style=
"padding:5px;width:130px;"
>
<span
id=
"HandsPersonIdShow"
></span>
</td>
<td
style=
"width:70px;"
>
单据日期:
</td>
<td
style=
"padding:5px;width:130px;"
>
<span
id=
"BillTimeShow"
></span>
</td>
<td
style=
"width:80px;"
>
单据编号:
</td>
<td
style=
"padding:5px;width:130px;"
>
<span
id=
"BillNoShow"
></span>
</td>
<td
style=
"width:100px;"
></td>
</tr>
<tr>
<td
colspan=
"9"
style=
"width: 1130px;"
>
<!-- 单据列表table -->
<table
id=
"accountDataShow"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
</td>
</tr>
<tr>
<td
style=
"width:60px;"
>
单据备注:
</td>
<td
colspan=
"8"
style=
"height:35px;"
>
<span
id=
"RemarkShow"
style=
"width: 1070px; height:35px;"
></span>
</td>
</tr>
<tr>
<td>
优惠金额:
</td>
<td
style=
"padding:5px;width:120px;"
>
<span
id=
"ChangeAmountShow"
></span>
</td>
</tr>
</table>
</div>
</body>
<head>
<title>
收预付款
</title>
<meta
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
rel=
"stylesheet"
type=
"text/css"
href=
"
<%=
path
%>
/js/easyui-1.3.5/themes/default/easyui.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
<%=
path
%>
/js/easyui-1.3.5/themes/icon.css"
/>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"
<%=
path
%>
/css/common.css"
/>
<script
src=
"
<%=
path
%>
/js/jquery-1.8.0.min.js"
></script>
<script
src=
"
<%=
path
%>
/js/easyui-1.3.5/jquery.easyui.min.js"
></script>
<script
src=
"
<%=
path
%>
/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"
></script>
<script
src=
"
<%=
path
%>
/js/My97DatePicker/WdatePicker.js"
></script>
<script
src=
"
<%=
path
%>
/js/common/common.js"
></script>
<script
src=
"
<%=
path
%>
/js/pages/financial/financial_base.js"
></script>
<script>
var
kid
=
$
{
sessionScope
.
user
.
id
};
var
path
=
"
<%=
path
%>
"
;
var
clientIp
=
"
<%=
clientIp
%>
"
;
</script>
</head>
<body>
<!-- 查询 -->
<div
id=
"searchPanel"
class=
"easyui-panel"
style=
"padding:3px;"
title=
"查询窗口"
iconCls=
"icon-search"
collapsible=
"true"
closable=
"false"
>
<table
id=
"searchTable"
>
<tr>
<td>
单据编号:
</td>
<td>
<input
type=
"text"
name=
"searchBillNo"
id=
"searchBillNo"
style=
"width:100px;"
/>
</td>
<td>
单据日期:
</td>
<td>
<input
type=
"text"
name=
"searchBeginTime"
id=
"searchBeginTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd'})"
class=
"txt Wdate"
style=
"width:100px;"
/>
</td>
<td>
-
</td>
<td>
<input
type=
"text"
name=
"searchEndTime"
id=
"searchEndTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd'})"
class=
"txt Wdate"
style=
"width:100px;"
/>
</td>
<td>
</td>
<td>
<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>
</tr>
</table>
</div>
<!-- 数据显示table -->
<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=
"accountHeadDlg"
class=
"easyui-dialog"
style=
"width:1200px;padding:10px 20px;top:20px"
closed=
"true"
buttons=
"#dlg-buttons"
modal=
"true"
cache=
"false"
collapsible=
"false"
closable=
"true"
>
<form
id=
"accountHeadFM"
method=
"post"
novalidate
>
<table>
<tr>
<td
style=
"width:60px;"
>
付款会员:
</td>
<td
style=
"padding:5px;width:170px;"
>
<select
name=
"OrganId"
id=
"OrganId"
style=
"width:110px;"
></select>
</td>
<td
style=
"width:70px;"
>
经手人:
</td>
<td
style=
"padding:5px;width:170px;"
>
<select
name=
"HandsPersonId"
id=
"HandsPersonId"
style=
"width:110px;"
></select>
</td>
<td
style=
"width:70px;"
>
单据日期:
</td>
<td
style=
"padding:5px;width:170px;"
>
<input
type=
"text"
name=
"BillTime"
id=
"BillTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
style=
"width:140px;"
/>
</td>
<td
style=
"width:80px;"
>
单据编号:
</td>
<td
style=
"padding:5px;width:170px;"
>
<input
name=
"BillNo"
id=
"BillNo"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
/>
</td>
<td
style=
"width:100px;"
></td>
</tr>
<tr>
<td
colspan=
"9"
>
<!-- 单据列表table -->
<table
id=
"accountData"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
</td>
</tr>
<tr>
<td
colspan=
"9"
>
<textarea
name=
"Remark"
id=
"Remark"
rows=
"2"
cols=
"2"
placeholder=
"暂无备注信息"
style=
"width: 1130px; height:35px;"
></textarea>
</td>
</tr>
<tr>
<td>
优惠金额:
</td>
<td
style=
"padding:5px"
>
<input
type=
"text"
name=
"ChangeAmount"
id=
"ChangeAmount"
class=
"easyui-numberbox"
data-options=
"min:0,precision:2"
style=
"width: 110px;"
/>
</td>
</tr>
</table>
<input
type=
"hidden"
name=
"clientIp"
id=
"clientIp"
value=
"
<%=
clientIp
%>
"
/>
</form>
</div>
<div
id=
"dlg-buttons"
>
<a
href=
"javascript:void(0)"
id=
"saveAccountHead"
class=
"easyui-linkbutton"
iconCls=
"icon-ok"
>
保存
</a>
<a
href=
"javascript:void(0)"
id=
"cancelAccountHead"
class=
"easyui-linkbutton"
iconCls=
"icon-cancel"
onclick=
"javascript:$('#accountHeadDlg').dialog('close')"
>
取消
</a>
</div>
<div
id=
"accountHeadDlgShow"
class=
"easyui-dialog"
style=
"width:1200px;padding:10px 20px;top:20px"
closed=
"true"
modal=
"true"
cache=
"false"
collapsible=
"false"
closable=
"true"
>
<table>
<tr>
<td
style=
"width:60px;"
>
付款会员:
</td>
<td
style=
"padding:5px;width:140px;"
>
<span
id=
"OrganIdShow"
></span>
</td>
<td
style=
"width:70px;"
>
经手人:
</td>
<td
style=
"padding:5px;width:130px;"
>
<span
id=
"HandsPersonIdShow"
></span>
</td>
<td
style=
"width:70px;"
>
单据日期:
</td>
<td
style=
"padding:5px;width:130px;"
>
<span
id=
"BillTimeShow"
></span>
</td>
<td
style=
"width:80px;"
>
单据编号:
</td>
<td
style=
"padding:5px;width:130px;"
>
<span
id=
"BillNoShow"
></span>
</td>
<td
style=
"width:100px;"
></td>
</tr>
<tr>
<td
colspan=
"9"
style=
"width: 1130px;"
>
<!-- 单据列表table -->
<table
id=
"accountDataShow"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
</td>
</tr>
<tr>
<td
style=
"width:60px;"
>
单据备注:
</td>
<td
colspan=
"8"
style=
"height:35px;"
>
<span
id=
"RemarkShow"
style=
"width: 1070px; height:35px;"
></span>
</td>
</tr>
<tr>
<td>
优惠金额:
</td>
<td
style=
"padding:5px;width:120px;"
>
<span
id=
"ChangeAmountShow"
></span>
</td>
</tr>
</table>
</div>
</body>
</html>
src/main/webapp/pages/financial/giro.jsp
View file @
7a436d1c
<%@page
import=
"com.jsh.util.Tools"
%>
<%@ page
language=
"java"
import=
"java.util.*"
pageEncoding=
"utf-8"
%>
<%@page
import=
"com.jsh.util.Tools"
%>
<%@ page
language=
"java"
pageEncoding=
"utf-8"
%>
<%
String
path
=
request
.
getContextPath
();
String
clientIp
=
Tools
.
getLocalIp
(
request
);
String
path
=
request
.
getContextPath
();
String
clientIp
=
Tools
.
getLocalIp
(
request
);
%>
<!DOCTYPE html>
<html>
<head>
<title>
转账单
</title>
<meta
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
rel=
"stylesheet"
type=
"text/css"
href=
"
<%=
path
%>
/js/easyui-1.3.5/themes/default/easyui.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
<%=
path
%>
/js/easyui-1.3.5/themes/icon.css"
/>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"
<%=
path
%>
/css/common.css"
/>
<script
src=
"
<%=
path
%>
/js/jquery-1.8.0.min.js"
></script>
<script
src=
"
<%=
path
%>
/js/easyui-1.3.5/jquery.easyui.min.js"
></script>
<script
src=
"
<%=
path
%>
/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"
></script>
<script
src=
"
<%=
path
%>
/js/My97DatePicker/WdatePicker.js"
></script>
<script
src=
"
<%=
path
%>
/js/common/common.js"
></script>
<script
src=
"
<%=
path
%>
/js/pages/financial/financial_base.js"
></script>
<script>
var
kid
=
$
{
sessionScope
.
user
.
id
};
var
path
=
"
<%=
path
%>
"
;
var
clientIp
=
"
<%=
clientIp
%>
"
;
</script>
</head>
<body>
<!-- 查询 -->
<div
id =
"searchPanel"
class=
"easyui-panel"
style=
"padding:3px;"
title=
"查询窗口"
iconCls=
"icon-search"
collapsible=
"true"
closable=
"false"
>
<table
id=
"searchTable"
>
<tr>
<td>
单据编号:
</td>
<td>
<input
type=
"text"
name=
"searchBillNo"
id=
"searchBillNo"
style=
"width:100px;"
/>
</td>
<td>
单据日期:
</td>
<td>
<input
type=
"text"
name=
"searchBeginTime"
id=
"searchBeginTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd'})"
class=
"txt Wdate"
style=
"width:100px;"
/>
</td>
<td>
-
</td>
<td>
<input
type=
"text"
name=
"searchEndTime"
id=
"searchEndTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd'})"
class=
"txt Wdate"
style=
"width:100px;"
/>
</td>
<td>
</td>
<td>
<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>
</tr>
</table>
</div>
<!-- 数据显示table -->
<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=
"accountHeadDlg"
class=
"easyui-dialog"
style=
"width:1200px;padding:10px 20px;top:20px"
closed=
"true"
buttons=
"#dlg-buttons"
modal=
"true"
cache=
"false"
collapsible=
"false"
closable=
"true"
>
<form
id=
"accountHeadFM"
method=
"post"
novalidate
>
<table>
<tr>
<td
style=
"width:60px;"
>
经手人:
</td>
<td
style=
"padding:5px;width:170px;"
>
<select
name=
"HandsPersonId"
id=
"HandsPersonId"
style=
"width:110px;"
></select>
</td>
<td
style=
"width:70px;"
>
单据日期:
</td>
<td
style=
"padding:5px;width:170px;"
>
<input
type=
"text"
name=
"BillTime"
id=
"BillTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
style=
"width:140px;"
/>
</td>
<td
style=
"width:80px;"
>
单据编号:
</td>
<td
style=
"padding:5px;width:170px;"
>
<input
name=
"BillNo"
id=
"BillNo"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
/>
</td>
<td
style=
"width:70px;"
></td>
<td
style=
"padding:5px"
>
</td>
<td
style=
"width:100px;"
></td>
</tr>
<tr>
<td
colspan=
"9"
>
<!-- 单据列表table -->
<table
id=
"accountData"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
</td>
</tr>
<tr>
<td
colspan=
"9"
>
<textarea
name=
"Remark"
id=
"Remark"
rows=
"2"
cols=
"2"
placeholder=
"暂无备注信息"
style=
"width: 1130px; height:35px;"
></textarea>
</td>
</tr>
<tr>
<td>
付款账户:
</td>
<td
style=
"padding:5px"
>
<select
id=
"AccountId"
name=
"AccountId"
style=
"width:110px;"
></select>
</td>
<td>
实付金额:
</td>
<td
style=
"padding:5px"
>
<input
type=
"text"
name=
"ChangeAmount"
id=
"ChangeAmount"
class=
"easyui-numberbox"
data-options=
"min:0,precision:2"
style=
"width: 110px;"
></input>
</td>
</tr>
</table>
<input
type=
"hidden"
name=
"clientIp"
id=
"clientIp"
value=
"
<%=
clientIp
%>
"
/>
</form>
</div>
<div
id=
"dlg-buttons"
>
<a
href=
"javascript:void(0)"
id=
"saveAccountHead"
class=
"easyui-linkbutton"
iconCls=
"icon-ok"
>
保存
</a>
<a
href=
"javascript:void(0)"
id=
"cancelAccountHead"
class=
"easyui-linkbutton"
iconCls=
"icon-cancel"
onclick=
"javascript:$('#accountHeadDlg').dialog('close')"
>
取消
</a>
</div>
<div
id=
"accountHeadDlgShow"
class=
"easyui-dialog"
style=
"width:1200px;padding:10px 20px;top:20px"
closed=
"true"
modal=
"true"
cache=
"false"
collapsible=
"false"
closable=
"true"
>
<table>
<tr>
<td
style=
"width:60px;"
>
经手人:
</td>
<td
style=
"padding:5px;width:130px;"
>
<span
id=
"HandsPersonIdShow"
></span>
</td>
<td
style=
"width:70px;"
>
单据日期:
</td>
<td
style=
"padding:5px;width:130px;"
>
<span
id=
"BillTimeShow"
></span>
</td>
<td
style=
"width:80px;"
>
单据编号:
</td>
<td
style=
"padding:5px;width:130px;"
>
<span
id=
"BillNoShow"
></span>
</td>
<td
style=
"width:50px;"
></td>
<td
style=
"padding:5px;width:110px;"
></td>
<td
style=
"width:100px;"
></td>
</tr>
<tr>
<td
colspan=
"9"
style=
"width: 1130px;"
>
<!-- 单据列表table -->
<table
id=
"accountDataShow"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
</td>
</tr>
<tr>
<td
style=
"width:60px;"
>
单据备注:
</td>
<td
colspan=
"8"
style=
"height:35px;"
>
<span
id=
"RemarkShow"
style=
"width: 1070px; height:35px;"
></span>
</td>
</tr>
<tr>
<td>
付款账户:
</td>
<td
style=
"padding:5px"
>
<span
id=
"AccountIdShow"
></span>
</td>
<td>
实付金额:
</td>
<td
style=
"padding:5px"
>
<span
id=
"ChangeAmountShow"
></span>
</td>
</tr>
</table>
</div>
</body>
<head>
<title>
转账单
</title>
<meta
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
rel=
"stylesheet"
type=
"text/css"
href=
"
<%=
path
%>
/js/easyui-1.3.5/themes/default/easyui.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
<%=
path
%>
/js/easyui-1.3.5/themes/icon.css"
/>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"
<%=
path
%>
/css/common.css"
/>
<script
src=
"
<%=
path
%>
/js/jquery-1.8.0.min.js"
></script>
<script
src=
"
<%=
path
%>
/js/easyui-1.3.5/jquery.easyui.min.js"
></script>
<script
src=
"
<%=
path
%>
/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"
></script>
<script
src=
"
<%=
path
%>
/js/My97DatePicker/WdatePicker.js"
></script>
<script
src=
"
<%=
path
%>
/js/common/common.js"
></script>
<script
src=
"
<%=
path
%>
/js/pages/financial/financial_base.js"
></script>
<script>
var
kid
=
$
{
sessionScope
.
user
.
id
};
var
path
=
"
<%=
path
%>
"
;
var
clientIp
=
"
<%=
clientIp
%>
"
;
</script>
</head>
<body>
<!-- 查询 -->
<div
id=
"searchPanel"
class=
"easyui-panel"
style=
"padding:3px;"
title=
"查询窗口"
iconCls=
"icon-search"
collapsible=
"true"
closable=
"false"
>
<table
id=
"searchTable"
>
<tr>
<td>
单据编号:
</td>
<td>
<input
type=
"text"
name=
"searchBillNo"
id=
"searchBillNo"
style=
"width:100px;"
/>
</td>
<td>
单据日期:
</td>
<td>
<input
type=
"text"
name=
"searchBeginTime"
id=
"searchBeginTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd'})"
class=
"txt Wdate"
style=
"width:100px;"
/>
</td>
<td>
-
</td>
<td>
<input
type=
"text"
name=
"searchEndTime"
id=
"searchEndTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd'})"
class=
"txt Wdate"
style=
"width:100px;"
/>
</td>
<td>
</td>
<td>
<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>
</tr>
</table>
</div>
<!-- 数据显示table -->
<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=
"accountHeadDlg"
class=
"easyui-dialog"
style=
"width:1200px;padding:10px 20px;top:20px"
closed=
"true"
buttons=
"#dlg-buttons"
modal=
"true"
cache=
"false"
collapsible=
"false"
closable=
"true"
>
<form
id=
"accountHeadFM"
method=
"post"
novalidate
>
<table>
<tr>
<td
style=
"width:60px;"
>
经手人:
</td>
<td
style=
"padding:5px;width:170px;"
>
<select
name=
"HandsPersonId"
id=
"HandsPersonId"
style=
"width:110px;"
></select>
</td>
<td
style=
"width:70px;"
>
单据日期:
</td>
<td
style=
"padding:5px;width:170px;"
>
<input
type=
"text"
name=
"BillTime"
id=
"BillTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
style=
"width:140px;"
/>
</td>
<td
style=
"width:80px;"
>
单据编号:
</td>
<td
style=
"padding:5px;width:170px;"
>
<input
name=
"BillNo"
id=
"BillNo"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
/>
</td>
<td
style=
"width:70px;"
></td>
<td
style=
"padding:5px"
>
</td>
<td
style=
"width:100px;"
></td>
</tr>
<tr>
<td
colspan=
"9"
>
<!-- 单据列表table -->
<table
id=
"accountData"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
</td>
</tr>
<tr>
<td
colspan=
"9"
>
<textarea
name=
"Remark"
id=
"Remark"
rows=
"2"
cols=
"2"
placeholder=
"暂无备注信息"
style=
"width: 1130px; height:35px;"
></textarea>
</td>
</tr>
<tr>
<td>
付款账户:
</td>
<td
style=
"padding:5px"
>
<select
id=
"AccountId"
name=
"AccountId"
style=
"width:110px;"
></select>
</td>
<td>
实付金额:
</td>
<td
style=
"padding:5px"
>
<input
type=
"text"
name=
"ChangeAmount"
id=
"ChangeAmount"
class=
"easyui-numberbox"
data-options=
"min:0,precision:2"
style=
"width: 110px;"
></input>
</td>
</tr>
</table>
<input
type=
"hidden"
name=
"clientIp"
id=
"clientIp"
value=
"
<%=
clientIp
%>
"
/>
</form>
</div>
<div
id=
"dlg-buttons"
>
<a
href=
"javascript:void(0)"
id=
"saveAccountHead"
class=
"easyui-linkbutton"
iconCls=
"icon-ok"
>
保存
</a>
<a
href=
"javascript:void(0)"
id=
"cancelAccountHead"
class=
"easyui-linkbutton"
iconCls=
"icon-cancel"
onclick=
"javascript:$('#accountHeadDlg').dialog('close')"
>
取消
</a>
</div>
<div
id=
"accountHeadDlgShow"
class=
"easyui-dialog"
style=
"width:1200px;padding:10px 20px;top:20px"
closed=
"true"
modal=
"true"
cache=
"false"
collapsible=
"false"
closable=
"true"
>
<table>
<tr>
<td
style=
"width:60px;"
>
经手人:
</td>
<td
style=
"padding:5px;width:130px;"
>
<span
id=
"HandsPersonIdShow"
></span>
</td>
<td
style=
"width:70px;"
>
单据日期:
</td>
<td
style=
"padding:5px;width:130px;"
>
<span
id=
"BillTimeShow"
></span>
</td>
<td
style=
"width:80px;"
>
单据编号:
</td>
<td
style=
"padding:5px;width:130px;"
>
<span
id=
"BillNoShow"
></span>
</td>
<td
style=
"width:50px;"
></td>
<td
style=
"padding:5px;width:110px;"
></td>
<td
style=
"width:100px;"
></td>
</tr>
<tr>
<td
colspan=
"9"
style=
"width: 1130px;"
>
<!-- 单据列表table -->
<table
id=
"accountDataShow"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
</td>
</tr>
<tr>
<td
style=
"width:60px;"
>
单据备注:
</td>
<td
colspan=
"8"
style=
"height:35px;"
>
<span
id=
"RemarkShow"
style=
"width: 1070px; height:35px;"
></span>
</td>
</tr>
<tr>
<td>
付款账户:
</td>
<td
style=
"padding:5px"
>
<span
id=
"AccountIdShow"
></span>
</td>
<td>
实付金额:
</td>
<td
style=
"padding:5px"
>
<span
id=
"ChangeAmountShow"
></span>
</td>
</tr>
</table>
</div>
</body>
</html>
src/main/webapp/pages/financial/item_in.jsp
View file @
7a436d1c
<%@page
import=
"com.jsh.util.Tools"
%>
<%@ page
language=
"java"
import=
"java.util.*"
pageEncoding=
"utf-8"
%>
<%@page
import=
"com.jsh.util.Tools"
%>
<%@ page
language=
"java"
pageEncoding=
"utf-8"
%>
<%
String
path
=
request
.
getContextPath
();
String
clientIp
=
Tools
.
getLocalIp
(
request
);
String
path
=
request
.
getContextPath
();
String
clientIp
=
Tools
.
getLocalIp
(
request
);
%>
<!DOCTYPE html>
<html>
<head>
<title>
收入单
</title>
<meta
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
rel=
"stylesheet"
type=
"text/css"
href=
"
<%=
path
%>
/js/easyui-1.3.5/themes/default/easyui.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
<%=
path
%>
/js/easyui-1.3.5/themes/icon.css"
/>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"
<%=
path
%>
/css/common.css"
/>
<script
src=
"
<%=
path
%>
/js/jquery-1.8.0.min.js"
></script>
<script
src=
"
<%=
path
%>
/js/easyui-1.3.5/jquery.easyui.min.js"
></script>
<script
src=
"
<%=
path
%>
/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"
></script>
<script
src=
"
<%=
path
%>
/js/My97DatePicker/WdatePicker.js"
></script>
<script
src=
"
<%=
path
%>
/js/common/common.js"
></script>
<script
src=
"
<%=
path
%>
/js/pages/financial/financial_base.js"
></script>
<script>
var
kid
=
$
{
sessionScope
.
user
.
id
};
var
path
=
"
<%=
path
%>
"
;
var
clientIp
=
"
<%=
clientIp
%>
"
;
</script>
</head>
<body>
<!-- 查询 -->
<div
id =
"searchPanel"
class=
"easyui-panel"
style=
"padding:3px;"
title=
"查询窗口"
iconCls=
"icon-search"
collapsible=
"true"
closable=
"false"
>
<table
id=
"searchTable"
>
<tr>
<td>
单据编号:
</td>
<td>
<input
type=
"text"
name=
"searchBillNo"
id=
"searchBillNo"
style=
"width:100px;"
/>
</td>
<td>
单据日期:
</td>
<td>
<input
type=
"text"
name=
"searchBeginTime"
id=
"searchBeginTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd'})"
class=
"txt Wdate"
style=
"width:100px;"
/>
</td>
<td>
-
</td>
<td>
<input
type=
"text"
name=
"searchEndTime"
id=
"searchEndTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd'})"
class=
"txt Wdate"
style=
"width:100px;"
/>
</td>
<td>
</td>
<td>
<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>
</tr>
</table>
</div>
<!-- 数据显示table -->
<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=
"accountHeadDlg"
class=
"easyui-dialog"
style=
"width:1200px;padding:10px 20px;top:20px"
closed=
"true"
buttons=
"#dlg-buttons"
modal=
"true"
cache=
"false"
collapsible=
"false"
closable=
"true"
>
<form
id=
"accountHeadFM"
method=
"post"
novalidate
>
<table>
<tr>
<td
style=
"width:60px;"
>
往来单位:
</td>
<td
style=
"padding:5px;width:170px;"
>
<select
name=
"OrganId"
id=
"OrganId"
style=
"width:130px;"
></select>
</td>
<td
style=
"width:70px;"
>
经手人:
</td>
<td
style=
"padding:5px;width:170px;"
>
<select
name=
"HandsPersonId"
id=
"HandsPersonId"
style=
"width:110px;"
></select>
</td>
<td
style=
"width:70px;"
>
单据日期:
</td>
<td
style=
"padding:5px;width:170px;"
>
<input
type=
"text"
name=
"BillTime"
id=
"BillTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
style=
"width:140px;"
/>
</td>
<td
style=
"width:70px;"
>
单据编号:
</td>
<td
style=
"padding:5px;width:170px;"
>
<input
name=
"BillNo"
id=
"BillNo"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
/>
</td>
<td
style=
"width:100px;"
></td>
</tr>
<tr>
<td
colspan=
"9"
>
<!-- 单据列表table -->
<table
id=
"accountData"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
</td>
</tr>
<tr>
<td
colspan=
"9"
>
<textarea
name=
"Remark"
id=
"Remark"
rows=
"2"
cols=
"2"
placeholder=
"暂无备注信息"
style=
"width: 1130px; height:35px;"
></textarea>
</td>
</tr>
<tr>
<td>
收款账户:
</td>
<td
style=
"padding:5px"
>
<select
id=
"AccountId"
name=
"AccountId"
style=
"width:110px;"
></select>
</td>
<td>
收款金额:
</td>
<td>
<input
type=
"text"
name=
"ChangeAmount"
id=
"ChangeAmount"
class=
"easyui-numberbox"
data-options=
"min:0,precision:2"
style=
"width: 120px;"
/>
</td>
</tr>
</table>
<input
type=
"hidden"
name=
"clientIp"
id=
"clientIp"
value=
"
<%=
clientIp
%>
"
/>
</form>
</div>
<div
id=
"dlg-buttons"
>
<a
href=
"javascript:void(0)"
id=
"saveAccountHead"
class=
"easyui-linkbutton"
iconCls=
"icon-ok"
>
保存
</a>
<a
href=
"javascript:void(0)"
id=
"cancelAccountHead"
class=
"easyui-linkbutton"
iconCls=
"icon-cancel"
onclick=
"javascript:$('#accountHeadDlg').dialog('close')"
>
取消
</a>
</div>
<div
id=
"accountHeadDlgShow"
class=
"easyui-dialog"
style=
"width:1200px;padding:10px 20px;top:20px"
closed=
"true"
modal=
"true"
cache=
"false"
collapsible=
"false"
closable=
"true"
>
<table>
<tr>
<td
style=
"width:60px;"
>
往来单位:
</td>
<td
style=
"padding:5px;width:130px;"
>
<span
id=
"OrganIdShow"
></span>
</td>
<td
style=
"width:70px;"
>
经手人:
</td>
<td
style=
"padding:5px;width:130px;"
>
<span
id=
"HandsPersonIdShow"
></span>
</td>
<td
style=
"width:70px;"
>
单据日期:
</td>
<td
style=
"padding:5px;width:130px;"
>
<span
id=
"BillTimeShow"
></span>
</td>
<td
style=
"width:80px;"
>
单据编号:
</td>
<td
style=
"padding:5px;width:140px;"
>
<span
id=
"BillNoShow"
></span>
</td>
<td
style=
"width:100px;"
></td>
</tr>
<tr>
<td
colspan=
"9"
style=
"width: 1130px;"
>
<!-- 单据列表table -->
<table
id=
"accountDataShow"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
</td>
</tr>
<tr>
<td
style=
"width:60px;"
>
单据备注:
</td>
<td
colspan=
"8"
style=
"height:35px;"
>
<span
id=
"RemarkShow"
style=
"width: 1070px; height:35px;"
></span>
</td>
</tr>
<tr>
<td>
收款账户:
</td>
<td
style=
"padding:5px;"
>
<span
id=
"AccountIdShow"
></span>
</td>
<td>
收款金额:
</td>
<td
style=
"padding:5px;"
>
<span
id=
"ChangeAmountShow"
></span>
</td>
</tr>
</table>
</div>
</body>
<head>
<title>
收入单
</title>
<meta
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
rel=
"stylesheet"
type=
"text/css"
href=
"
<%=
path
%>
/js/easyui-1.3.5/themes/default/easyui.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
<%=
path
%>
/js/easyui-1.3.5/themes/icon.css"
/>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"
<%=
path
%>
/css/common.css"
/>
<script
src=
"
<%=
path
%>
/js/jquery-1.8.0.min.js"
></script>
<script
src=
"
<%=
path
%>
/js/easyui-1.3.5/jquery.easyui.min.js"
></script>
<script
src=
"
<%=
path
%>
/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"
></script>
<script
src=
"
<%=
path
%>
/js/My97DatePicker/WdatePicker.js"
></script>
<script
src=
"
<%=
path
%>
/js/common/common.js"
></script>
<script
src=
"
<%=
path
%>
/js/pages/financial/financial_base.js"
></script>
<script>
var
kid
=
$
{
sessionScope
.
user
.
id
};
var
path
=
"
<%=
path
%>
"
;
var
clientIp
=
"
<%=
clientIp
%>
"
;
</script>
</head>
<body>
<!-- 查询 -->
<div
id=
"searchPanel"
class=
"easyui-panel"
style=
"padding:3px;"
title=
"查询窗口"
iconCls=
"icon-search"
collapsible=
"true"
closable=
"false"
>
<table
id=
"searchTable"
>
<tr>
<td>
单据编号:
</td>
<td>
<input
type=
"text"
name=
"searchBillNo"
id=
"searchBillNo"
style=
"width:100px;"
/>
</td>
<td>
单据日期:
</td>
<td>
<input
type=
"text"
name=
"searchBeginTime"
id=
"searchBeginTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd'})"
class=
"txt Wdate"
style=
"width:100px;"
/>
</td>
<td>
-
</td>
<td>
<input
type=
"text"
name=
"searchEndTime"
id=
"searchEndTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd'})"
class=
"txt Wdate"
style=
"width:100px;"
/>
</td>
<td>
</td>
<td>
<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>
</tr>
</table>
</div>
<!-- 数据显示table -->
<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=
"accountHeadDlg"
class=
"easyui-dialog"
style=
"width:1200px;padding:10px 20px;top:20px"
closed=
"true"
buttons=
"#dlg-buttons"
modal=
"true"
cache=
"false"
collapsible=
"false"
closable=
"true"
>
<form
id=
"accountHeadFM"
method=
"post"
novalidate
>
<table>
<tr>
<td
style=
"width:60px;"
>
往来单位:
</td>
<td
style=
"padding:5px;width:170px;"
>
<select
name=
"OrganId"
id=
"OrganId"
style=
"width:130px;"
></select>
</td>
<td
style=
"width:70px;"
>
经手人:
</td>
<td
style=
"padding:5px;width:170px;"
>
<select
name=
"HandsPersonId"
id=
"HandsPersonId"
style=
"width:110px;"
></select>
</td>
<td
style=
"width:70px;"
>
单据日期:
</td>
<td
style=
"padding:5px;width:170px;"
>
<input
type=
"text"
name=
"BillTime"
id=
"BillTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
style=
"width:140px;"
/>
</td>
<td
style=
"width:70px;"
>
单据编号:
</td>
<td
style=
"padding:5px;width:170px;"
>
<input
name=
"BillNo"
id=
"BillNo"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
/>
</td>
<td
style=
"width:100px;"
></td>
</tr>
<tr>
<td
colspan=
"9"
>
<!-- 单据列表table -->
<table
id=
"accountData"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
</td>
</tr>
<tr>
<td
colspan=
"9"
>
<textarea
name=
"Remark"
id=
"Remark"
rows=
"2"
cols=
"2"
placeholder=
"暂无备注信息"
style=
"width: 1130px; height:35px;"
></textarea>
</td>
</tr>
<tr>
<td>
收款账户:
</td>
<td
style=
"padding:5px"
>
<select
id=
"AccountId"
name=
"AccountId"
style=
"width:110px;"
></select>
</td>
<td>
收款金额:
</td>
<td>
<input
type=
"text"
name=
"ChangeAmount"
id=
"ChangeAmount"
class=
"easyui-numberbox"
data-options=
"min:0,precision:2"
style=
"width: 120px;"
/>
</td>
</tr>
</table>
<input
type=
"hidden"
name=
"clientIp"
id=
"clientIp"
value=
"
<%=
clientIp
%>
"
/>
</form>
</div>
<div
id=
"dlg-buttons"
>
<a
href=
"javascript:void(0)"
id=
"saveAccountHead"
class=
"easyui-linkbutton"
iconCls=
"icon-ok"
>
保存
</a>
<a
href=
"javascript:void(0)"
id=
"cancelAccountHead"
class=
"easyui-linkbutton"
iconCls=
"icon-cancel"
onclick=
"javascript:$('#accountHeadDlg').dialog('close')"
>
取消
</a>
</div>
<div
id=
"accountHeadDlgShow"
class=
"easyui-dialog"
style=
"width:1200px;padding:10px 20px;top:20px"
closed=
"true"
modal=
"true"
cache=
"false"
collapsible=
"false"
closable=
"true"
>
<table>
<tr>
<td
style=
"width:60px;"
>
往来单位:
</td>
<td
style=
"padding:5px;width:130px;"
>
<span
id=
"OrganIdShow"
></span>
</td>
<td
style=
"width:70px;"
>
经手人:
</td>
<td
style=
"padding:5px;width:130px;"
>
<span
id=
"HandsPersonIdShow"
></span>
</td>
<td
style=
"width:70px;"
>
单据日期:
</td>
<td
style=
"padding:5px;width:130px;"
>
<span
id=
"BillTimeShow"
></span>
</td>
<td
style=
"width:80px;"
>
单据编号:
</td>
<td
style=
"padding:5px;width:140px;"
>
<span
id=
"BillNoShow"
></span>
</td>
<td
style=
"width:100px;"
></td>
</tr>
<tr>
<td
colspan=
"9"
style=
"width: 1130px;"
>
<!-- 单据列表table -->
<table
id=
"accountDataShow"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
</td>
</tr>
<tr>
<td
style=
"width:60px;"
>
单据备注:
</td>
<td
colspan=
"8"
style=
"height:35px;"
>
<span
id=
"RemarkShow"
style=
"width: 1070px; height:35px;"
></span>
</td>
</tr>
<tr>
<td>
收款账户:
</td>
<td
style=
"padding:5px;"
>
<span
id=
"AccountIdShow"
></span>
</td>
<td>
收款金额:
</td>
<td
style=
"padding:5px;"
>
<span
id=
"ChangeAmountShow"
></span>
</td>
</tr>
</table>
</div>
</body>
</html>
src/main/webapp/pages/financial/item_out.jsp
View file @
7a436d1c
<%@page
import=
"com.jsh.util.Tools"
%>
<%@ page
language=
"java"
import=
"java.util.*"
pageEncoding=
"utf-8"
%>
<%@page
import=
"com.jsh.util.Tools"
%>
<%@ page
language=
"java"
pageEncoding=
"utf-8"
%>
<%
String
path
=
request
.
getContextPath
();
String
clientIp
=
Tools
.
getLocalIp
(
request
);
String
path
=
request
.
getContextPath
();
String
clientIp
=
Tools
.
getLocalIp
(
request
);
%>
<!DOCTYPE html>
<html>
<head>
<title>
支出单
</title>
<meta
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
rel=
"stylesheet"
type=
"text/css"
href=
"
<%=
path
%>
/js/easyui-1.3.5/themes/default/easyui.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
<%=
path
%>
/js/easyui-1.3.5/themes/icon.css"
/>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"
<%=
path
%>
/css/common.css"
/>
<script
src=
"
<%=
path
%>
/js/jquery-1.8.0.min.js"
></script>
<script
src=
"
<%=
path
%>
/js/easyui-1.3.5/jquery.easyui.min.js"
></script>
<script
src=
"
<%=
path
%>
/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"
></script>
<script
src=
"
<%=
path
%>
/js/My97DatePicker/WdatePicker.js"
></script>
<script
src=
"
<%=
path
%>
/js/common/common.js"
></script>
<script
src=
"
<%=
path
%>
/js/pages/financial/financial_base.js"
></script>
<script>
var
kid
=
$
{
sessionScope
.
user
.
id
};
var
path
=
"
<%=
path
%>
"
;
var
clientIp
=
"
<%=
clientIp
%>
"
;
</script>
</head>
<body>
<!-- 查询 -->
<div
id =
"searchPanel"
class=
"easyui-panel"
style=
"padding:3px;"
title=
"查询窗口"
iconCls=
"icon-search"
collapsible=
"true"
closable=
"false"
>
<table
id=
"searchTable"
>
<tr>
<td>
单据编号:
</td>
<td>
<input
type=
"text"
name=
"searchBillNo"
id=
"searchBillNo"
style=
"width:100px;"
/>
</td>
<td>
单据日期:
</td>
<td>
<input
type=
"text"
name=
"searchBeginTime"
id=
"searchBeginTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd'})"
class=
"txt Wdate"
style=
"width:100px;"
/>
</td>
<td>
-
</td>
<td>
<input
type=
"text"
name=
"searchEndTime"
id=
"searchEndTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd'})"
class=
"txt Wdate"
style=
"width:100px;"
/>
</td>
<td>
</td>
<td>
<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>
</tr>
</table>
</div>
<!-- 数据显示table -->
<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=
"accountHeadDlg"
class=
"easyui-dialog"
style=
"width:1200px;padding:10px 20px;top:20px"
closed=
"true"
buttons=
"#dlg-buttons"
modal=
"true"
cache=
"false"
collapsible=
"false"
closable=
"true"
>
<form
id=
"accountHeadFM"
method=
"post"
novalidate
>
<table>
<tr>
<td
style=
"width:60px;"
>
往来单位:
</td>
<td
style=
"padding:5px;width:170px;"
>
<select
name=
"OrganId"
id=
"OrganId"
style=
"width:130px;"
></select>
</td>
<td
style=
"width:70px;"
>
单据日期:
</td>
<td
style=
"padding:5px;width:170px;"
>
<input
type=
"text"
name=
"BillTime"
id=
"BillTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
style=
"width:140px;"
/>
</td>
<td
style=
"width:70px;"
>
单据编号:
</td>
<td
style=
"padding:5px;width:170px;"
>
<input
name=
"BillNo"
id=
"BillNo"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
/>
</td>
<td
style=
"width:70px;"
></td>
<td
style=
"padding:5px"
>
</td>
<td
style=
"width:100px;"
></td>
</tr>
<tr>
<td
colspan=
"9"
>
<!-- 单据列表table -->
<table
id=
"accountData"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
</td>
</tr>
<tr>
<td
colspan=
"9"
>
<textarea
name=
"Remark"
id=
"Remark"
rows=
"2"
cols=
"2"
placeholder=
"暂无备注信息"
style=
"width: 1130px; height:35px;"
></textarea>
</td>
</tr>
<tr>
<td>
付款账户:
</td>
<td
style=
"padding:5px"
>
<select
id=
"AccountId"
name=
"AccountId"
style=
"width:110px;"
></select>
</td>
<td>
付款金额:
</td>
<td>
<input
type=
"text"
name=
"ChangeAmount"
id=
"ChangeAmount"
class=
"easyui-numberbox"
data-options=
"min:0,precision:2"
style=
"width: 120px;"
/>
</td>
</tr>
</table>
<input
type=
"hidden"
name=
"clientIp"
id=
"clientIp"
value=
"
<%=
clientIp
%>
"
/>
</form>
</div>
<div
id=
"dlg-buttons"
>
<a
href=
"javascript:void(0)"
id=
"saveAccountHead"
class=
"easyui-linkbutton"
iconCls=
"icon-ok"
>
保存
</a>
<a
href=
"javascript:void(0)"
id=
"cancelAccountHead"
class=
"easyui-linkbutton"
iconCls=
"icon-cancel"
onclick=
"javascript:$('#accountHeadDlg').dialog('close')"
>
取消
</a>
</div>
<div
id=
"accountHeadDlgShow"
class=
"easyui-dialog"
style=
"width:1200px;padding:10px 20px;top:20px"
closed=
"true"
modal=
"true"
cache=
"false"
collapsible=
"false"
closable=
"true"
>
<table>
<tr>
<td
style=
"width:60px;"
>
往来单位:
</td>
<td
style=
"padding:5px;width:130px;"
>
<span
id=
"OrganIdShow"
></span>
</td>
<td
style=
"width:70px;"
>
单据日期:
</td>
<td
style=
"padding:5px;width:130px;"
>
<span
id=
"BillTimeShow"
></span>
</td>
<td
style=
"width:80px;"
>
单据编号:
</td>
<td
style=
"padding:5px;width:140px;"
>
<span
id=
"BillNoShow"
></span>
</td>
<td
style=
"width:70px;"
></td>
<td
style=
"width:140px;"
></td>
<td
style=
"width:100px;"
></td>
</tr>
<tr>
<td
colspan=
"9"
style=
"width: 1130px;"
>
<!-- 单据列表table -->
<table
id=
"accountDataShow"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
</td>
</tr>
<tr>
<td
style=
"width:60px;"
>
单据备注:
</td>
<td
colspan=
"8"
style=
"height:35px;"
>
<span
id=
"RemarkShow"
style=
"width: 1070px; height:35px;"
></span>
</td>
</tr>
<tr>
<td>
付款账户:
</td>
<td
style=
"padding:5px;"
>
<span
id=
"AccountIdShow"
></span>
</td>
<td>
付款金额:
</td>
<td
style=
"padding:5px;"
>
<span
id=
"ChangeAmountShow"
></span>
</td>
</tr>
</table>
</div>
</body>
<head>
<title>
支出单
</title>
<meta
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
rel=
"stylesheet"
type=
"text/css"
href=
"
<%=
path
%>
/js/easyui-1.3.5/themes/default/easyui.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
<%=
path
%>
/js/easyui-1.3.5/themes/icon.css"
/>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"
<%=
path
%>
/css/common.css"
/>
<script
src=
"
<%=
path
%>
/js/jquery-1.8.0.min.js"
></script>
<script
src=
"
<%=
path
%>
/js/easyui-1.3.5/jquery.easyui.min.js"
></script>
<script
src=
"
<%=
path
%>
/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"
></script>
<script
src=
"
<%=
path
%>
/js/My97DatePicker/WdatePicker.js"
></script>
<script
src=
"
<%=
path
%>
/js/common/common.js"
></script>
<script
src=
"
<%=
path
%>
/js/pages/financial/financial_base.js"
></script>
<script>
var
kid
=
$
{
sessionScope
.
user
.
id
};
var
path
=
"
<%=
path
%>
"
;
var
clientIp
=
"
<%=
clientIp
%>
"
;
</script>
</head>
<body>
<!-- 查询 -->
<div
id=
"searchPanel"
class=
"easyui-panel"
style=
"padding:3px;"
title=
"查询窗口"
iconCls=
"icon-search"
collapsible=
"true"
closable=
"false"
>
<table
id=
"searchTable"
>
<tr>
<td>
单据编号:
</td>
<td>
<input
type=
"text"
name=
"searchBillNo"
id=
"searchBillNo"
style=
"width:100px;"
/>
</td>
<td>
单据日期:
</td>
<td>
<input
type=
"text"
name=
"searchBeginTime"
id=
"searchBeginTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd'})"
class=
"txt Wdate"
style=
"width:100px;"
/>
</td>
<td>
-
</td>
<td>
<input
type=
"text"
name=
"searchEndTime"
id=
"searchEndTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd'})"
class=
"txt Wdate"
style=
"width:100px;"
/>
</td>
<td>
</td>
<td>
<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>
</tr>
</table>
</div>
<!-- 数据显示table -->
<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=
"accountHeadDlg"
class=
"easyui-dialog"
style=
"width:1200px;padding:10px 20px;top:20px"
closed=
"true"
buttons=
"#dlg-buttons"
modal=
"true"
cache=
"false"
collapsible=
"false"
closable=
"true"
>
<form
id=
"accountHeadFM"
method=
"post"
novalidate
>
<table>
<tr>
<td
style=
"width:60px;"
>
往来单位:
</td>
<td
style=
"padding:5px;width:170px;"
>
<select
name=
"OrganId"
id=
"OrganId"
style=
"width:130px;"
></select>
</td>
<td
style=
"width:70px;"
>
单据日期:
</td>
<td
style=
"padding:5px;width:170px;"
>
<input
type=
"text"
name=
"BillTime"
id=
"BillTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
style=
"width:140px;"
/>
</td>
<td
style=
"width:70px;"
>
单据编号:
</td>
<td
style=
"padding:5px;width:170px;"
>
<input
name=
"BillNo"
id=
"BillNo"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
/>
</td>
<td
style=
"width:70px;"
></td>
<td
style=
"padding:5px"
>
</td>
<td
style=
"width:100px;"
></td>
</tr>
<tr>
<td
colspan=
"9"
>
<!-- 单据列表table -->
<table
id=
"accountData"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
</td>
</tr>
<tr>
<td
colspan=
"9"
>
<textarea
name=
"Remark"
id=
"Remark"
rows=
"2"
cols=
"2"
placeholder=
"暂无备注信息"
style=
"width: 1130px; height:35px;"
></textarea>
</td>
</tr>
<tr>
<td>
付款账户:
</td>
<td
style=
"padding:5px"
>
<select
id=
"AccountId"
name=
"AccountId"
style=
"width:110px;"
></select>
</td>
<td>
付款金额:
</td>
<td>
<input
type=
"text"
name=
"ChangeAmount"
id=
"ChangeAmount"
class=
"easyui-numberbox"
data-options=
"min:0,precision:2"
style=
"width: 120px;"
/>
</td>
</tr>
</table>
<input
type=
"hidden"
name=
"clientIp"
id=
"clientIp"
value=
"
<%=
clientIp
%>
"
/>
</form>
</div>
<div
id=
"dlg-buttons"
>
<a
href=
"javascript:void(0)"
id=
"saveAccountHead"
class=
"easyui-linkbutton"
iconCls=
"icon-ok"
>
保存
</a>
<a
href=
"javascript:void(0)"
id=
"cancelAccountHead"
class=
"easyui-linkbutton"
iconCls=
"icon-cancel"
onclick=
"javascript:$('#accountHeadDlg').dialog('close')"
>
取消
</a>
</div>
<div
id=
"accountHeadDlgShow"
class=
"easyui-dialog"
style=
"width:1200px;padding:10px 20px;top:20px"
closed=
"true"
modal=
"true"
cache=
"false"
collapsible=
"false"
closable=
"true"
>
<table>
<tr>
<td
style=
"width:60px;"
>
往来单位:
</td>
<td
style=
"padding:5px;width:130px;"
>
<span
id=
"OrganIdShow"
></span>
</td>
<td
style=
"width:70px;"
>
单据日期:
</td>
<td
style=
"padding:5px;width:130px;"
>
<span
id=
"BillTimeShow"
></span>
</td>
<td
style=
"width:80px;"
>
单据编号:
</td>
<td
style=
"padding:5px;width:140px;"
>
<span
id=
"BillNoShow"
></span>
</td>
<td
style=
"width:70px;"
></td>
<td
style=
"width:140px;"
></td>
<td
style=
"width:100px;"
></td>
</tr>
<tr>
<td
colspan=
"9"
style=
"width: 1130px;"
>
<!-- 单据列表table -->
<table
id=
"accountDataShow"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
</td>
</tr>
<tr>
<td
style=
"width:60px;"
>
单据备注:
</td>
<td
colspan=
"8"
style=
"height:35px;"
>
<span
id=
"RemarkShow"
style=
"width: 1070px; height:35px;"
></span>
</td>
</tr>
<tr>
<td>
付款账户:
</td>
<td
style=
"padding:5px;"
>
<span
id=
"AccountIdShow"
></span>
</td>
<td>
付款金额:
</td>
<td
style=
"padding:5px;"
>
<span
id=
"ChangeAmountShow"
></span>
</td>
</tr>
</table>
</div>
</body>
</html>
src/main/webapp/pages/financial/money_in.jsp
View file @
7a436d1c
<%@page
import=
"com.jsh.util.Tools"
%>
<%@ page
language=
"java"
import=
"java.util.*"
pageEncoding=
"utf-8"
%>
<%@page
import=
"com.jsh.util.Tools"
%>
<%@ page
language=
"java"
pageEncoding=
"utf-8"
%>
<%
String
path
=
request
.
getContextPath
();
String
clientIp
=
Tools
.
getLocalIp
(
request
);
String
path
=
request
.
getContextPath
();
String
clientIp
=
Tools
.
getLocalIp
(
request
);
%>
<!DOCTYPE html>
<html>
<head>
<title>
收款单
</title>
<meta
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
rel=
"stylesheet"
type=
"text/css"
href=
"
<%=
path
%>
/js/easyui-1.3.5/themes/default/easyui.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
<%=
path
%>
/js/easyui-1.3.5/themes/icon.css"
/>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"
<%=
path
%>
/css/common.css"
/>
<script
src=
"
<%=
path
%>
/js/jquery-1.8.0.min.js"
></script>
<script
src=
"
<%=
path
%>
/js/easyui-1.3.5/jquery.easyui.min.js"
></script>
<script
src=
"
<%=
path
%>
/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"
></script>
<script
src=
"
<%=
path
%>
/js/My97DatePicker/WdatePicker.js"
></script>
<script
src=
"
<%=
path
%>
/js/common/common.js"
></script>
<script
src=
"
<%=
path
%>
/js/pages/financial/financial_base.js"
></script>
<script>
var
kid
=
$
{
sessionScope
.
user
.
id
};
var
path
=
"
<%=
path
%>
"
;
var
clientIp
=
"
<%=
clientIp
%>
"
;
</script>
</head>
<body>
<!-- 查询 -->
<div
id =
"searchPanel"
class=
"easyui-panel"
style=
"padding:3px;"
title=
"查询窗口"
iconCls=
"icon-search"
collapsible=
"true"
closable=
"false"
>
<table
id=
"searchTable"
>
<tr>
<td>
单据编号:
</td>
<td>
<input
type=
"text"
name=
"searchBillNo"
id=
"searchBillNo"
style=
"width:100px;"
/>
</td>
<td>
单据日期:
</td>
<td>
<input
type=
"text"
name=
"searchBeginTime"
id=
"searchBeginTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd'})"
class=
"txt Wdate"
style=
"width:100px;"
/>
</td>
<td>
-
</td>
<td>
<input
type=
"text"
name=
"searchEndTime"
id=
"searchEndTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd'})"
class=
"txt Wdate"
style=
"width:100px;"
/>
</td>
<td>
</td>
<td>
<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>
</tr>
</table>
</div>
<!-- 数据显示table -->
<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=
"accountHeadDlg"
class=
"easyui-dialog"
style=
"width:1200px;padding:10px 20px;top:20px"
closed=
"true"
buttons=
"#dlg-buttons"
modal=
"true"
cache=
"false"
collapsible=
"false"
closable=
"true"
>
<form
id=
"accountHeadFM"
method=
"post"
novalidate
>
<table>
<tr>
<td
style=
"width:60px;"
>
付款单位:
</td>
<td
style=
"padding:5px;width:170px;"
>
<select
name=
"OrganId"
id=
"OrganId"
style=
"width:130px;"
></select>
</td>
<td
style=
"width:70px;"
>
经手人:
</td>
<td
style=
"padding:5px;width:170px;"
>
<select
name=
"HandsPersonId"
id=
"HandsPersonId"
style=
"width:110px;"
></select>
</td>
<td
style=
"width:70px;"
>
单据日期:
</td>
<td
style=
"padding:5px;width:170px;"
>
<input
type=
"text"
name=
"BillTime"
id=
"BillTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
style=
"width:140px;"
/>
</td>
<td
style=
"width:70px;"
>
单据编号:
</td>
<td
style=
"padding:5px;width:170px;"
>
<input
name=
"BillNo"
id=
"BillNo"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
/>
</td>
<td
style=
"width:100px;"
></td>
</tr>
<tr>
<td
colspan=
"9"
>
<!-- 单据列表table -->
<table
id=
"accountData"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
</td>
</tr>
<tr>
<td
colspan=
"9"
>
<textarea
name=
"Remark"
id=
"Remark"
rows=
"2"
cols=
"2"
placeholder=
"暂无备注信息"
style=
"width: 1130px; height:35px;"
></textarea>
</td>
</tr>
<tr>
<td>
优惠金额:
</td>
<td
style=
"padding:5px"
>
<input
type=
"text"
name=
"ChangeAmount"
id=
"ChangeAmount"
class=
"easyui-numberbox"
data-options=
"min:0,precision:2"
style=
"width: 110px;"
/>
</td>
</tr>
</table>
<input
type=
"hidden"
name=
"clientIp"
id=
"clientIp"
value=
"
<%=
clientIp
%>
"
/>
</form>
</div>
<div
id=
"dlg-buttons"
>
<a
href=
"javascript:void(0)"
id=
"saveAccountHead"
class=
"easyui-linkbutton"
iconCls=
"icon-ok"
>
保存
</a>
<a
href=
"javascript:void(0)"
id=
"cancelAccountHead"
class=
"easyui-linkbutton"
iconCls=
"icon-cancel"
onclick=
"javascript:$('#accountHeadDlg').dialog('close')"
>
取消
</a>
</div>
<div
id=
"accountHeadDlgShow"
class=
"easyui-dialog"
style=
"width:1200px;padding:10px 20px;top:20px"
closed=
"true"
modal=
"true"
cache=
"false"
collapsible=
"false"
closable=
"true"
>
<table>
<tr>
<td
style=
"width:60px;"
>
付款单位:
</td>
<td
style=
"padding:5px;width:130px;"
>
<span
id=
"OrganIdShow"
></span>
</td>
<td
style=
"width:70px;"
>
经手人:
</td>
<td
style=
"padding:5px;width:130px;"
>
<span
id=
"HandsPersonIdShow"
></span>
</td>
<td
style=
"width:70px;"
>
单据日期:
</td>
<td
style=
"padding:5px;width:130px;"
>
<span
id=
"BillTimeShow"
></span>
</td>
<td
style=
"width:80px;"
>
单据编号:
</td>
<td
style=
"padding:5px;width:140px;"
>
<span
id=
"BillNoShow"
></span>
</td>
<td
style=
"width:100px;"
></td>
</tr>
<tr>
<td
colspan=
"9"
style=
"width: 1130px;"
>
<!-- 单据列表table -->
<table
id=
"accountDataShow"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
</td>
</tr>
<tr>
<td
style=
"width:60px;"
>
单据备注:
</td>
<td
colspan=
"8"
style=
"height:35px;"
>
<span
id=
"RemarkShow"
style=
"width: 1070px; height:35px;"
></span>
</td>
</tr>
<tr>
<td>
优惠金额:
</td>
<td
style=
"padding:5px;width:120px;"
>
<span
id=
"ChangeAmountShow"
></span>
</td>
</tr>
</table>
</div>
</body>
<head>
<title>
收款单
</title>
<meta
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
rel=
"stylesheet"
type=
"text/css"
href=
"
<%=
path
%>
/js/easyui-1.3.5/themes/default/easyui.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
<%=
path
%>
/js/easyui-1.3.5/themes/icon.css"
/>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"
<%=
path
%>
/css/common.css"
/>
<script
src=
"
<%=
path
%>
/js/jquery-1.8.0.min.js"
></script>
<script
src=
"
<%=
path
%>
/js/easyui-1.3.5/jquery.easyui.min.js"
></script>
<script
src=
"
<%=
path
%>
/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"
></script>
<script
src=
"
<%=
path
%>
/js/My97DatePicker/WdatePicker.js"
></script>
<script
src=
"
<%=
path
%>
/js/common/common.js"
></script>
<script
src=
"
<%=
path
%>
/js/pages/financial/financial_base.js"
></script>
<script>
var
kid
=
$
{
sessionScope
.
user
.
id
};
var
path
=
"
<%=
path
%>
"
;
var
clientIp
=
"
<%=
clientIp
%>
"
;
</script>
</head>
<body>
<!-- 查询 -->
<div
id=
"searchPanel"
class=
"easyui-panel"
style=
"padding:3px;"
title=
"查询窗口"
iconCls=
"icon-search"
collapsible=
"true"
closable=
"false"
>
<table
id=
"searchTable"
>
<tr>
<td>
单据编号:
</td>
<td>
<input
type=
"text"
name=
"searchBillNo"
id=
"searchBillNo"
style=
"width:100px;"
/>
</td>
<td>
单据日期:
</td>
<td>
<input
type=
"text"
name=
"searchBeginTime"
id=
"searchBeginTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd'})"
class=
"txt Wdate"
style=
"width:100px;"
/>
</td>
<td>
-
</td>
<td>
<input
type=
"text"
name=
"searchEndTime"
id=
"searchEndTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd'})"
class=
"txt Wdate"
style=
"width:100px;"
/>
</td>
<td>
</td>
<td>
<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>
</tr>
</table>
</div>
<!-- 数据显示table -->
<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=
"accountHeadDlg"
class=
"easyui-dialog"
style=
"width:1200px;padding:10px 20px;top:20px"
closed=
"true"
buttons=
"#dlg-buttons"
modal=
"true"
cache=
"false"
collapsible=
"false"
closable=
"true"
>
<form
id=
"accountHeadFM"
method=
"post"
novalidate
>
<table>
<tr>
<td
style=
"width:60px;"
>
付款单位:
</td>
<td
style=
"padding:5px;width:170px;"
>
<select
name=
"OrganId"
id=
"OrganId"
style=
"width:130px;"
></select>
</td>
<td
style=
"width:70px;"
>
经手人:
</td>
<td
style=
"padding:5px;width:170px;"
>
<select
name=
"HandsPersonId"
id=
"HandsPersonId"
style=
"width:110px;"
></select>
</td>
<td
style=
"width:70px;"
>
单据日期:
</td>
<td
style=
"padding:5px;width:170px;"
>
<input
type=
"text"
name=
"BillTime"
id=
"BillTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
class=
"txt Wdate"
style=
"width:140px;"
/>
</td>
<td
style=
"width:70px;"
>
单据编号:
</td>
<td
style=
"padding:5px;width:170px;"
>
<input
name=
"BillNo"
id=
"BillNo"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
/>
</td>
<td
style=
"width:100px;"
></td>
</tr>
<tr>
<td
colspan=
"9"
>
<!-- 单据列表table -->
<table
id=
"accountData"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
</td>
</tr>
<tr>
<td
colspan=
"9"
>
<textarea
name=
"Remark"
id=
"Remark"
rows=
"2"
cols=
"2"
placeholder=
"暂无备注信息"
style=
"width: 1130px; height:35px;"
></textarea>
</td>
</tr>
<tr>
<td>
优惠金额:
</td>
<td
style=
"padding:5px"
>
<input
type=
"text"
name=
"ChangeAmount"
id=
"ChangeAmount"
class=
"easyui-numberbox"
data-options=
"min:0,precision:2"
style=
"width: 110px;"
/>
</td>
</tr>
</table>
<input
type=
"hidden"
name=
"clientIp"
id=
"clientIp"
value=
"
<%=
clientIp
%>
"
/>
</form>
</div>
<div
id=
"dlg-buttons"
>
<a
href=
"javascript:void(0)"
id=
"saveAccountHead"
class=
"easyui-linkbutton"
iconCls=
"icon-ok"
>
保存
</a>
<a
href=
"javascript:void(0)"
id=
"cancelAccountHead"
class=
"easyui-linkbutton"
iconCls=
"icon-cancel"
onclick=
"javascript:$('#accountHeadDlg').dialog('close')"
>
取消
</a>
</div>
<div
id=
"accountHeadDlgShow"
class=
"easyui-dialog"
style=
"width:1200px;padding:10px 20px;top:20px"
closed=
"true"
modal=
"true"
cache=
"false"
collapsible=
"false"
closable=
"true"
>
<table>
<tr>
<td
style=
"width:60px;"
>
付款单位:
</td>
<td
style=
"padding:5px;width:130px;"
>
<span
id=
"OrganIdShow"
></span>
</td>
<td
style=
"width:70px;"
>
经手人:
</td>
<td
style=
"padding:5px;width:130px;"
>
<span
id=
"HandsPersonIdShow"
></span>
</td>
<td
style=
"width:70px;"
>
单据日期:
</td>
<td
style=
"padding:5px;width:130px;"
>
<span
id=
"BillTimeShow"
></span>
</td>
<td
style=
"width:80px;"
>
单据编号:
</td>
<td
style=
"padding:5px;width:140px;"
>
<span
id=
"BillNoShow"
></span>
</td>
<td
style=
"width:100px;"
></td>
</tr>
<tr>
<td
colspan=
"9"
style=
"width: 1130px;"
>
<!-- 单据列表table -->
<table
id=
"accountDataShow"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
</td>
</tr>
<tr>
<td
style=
"width:60px;"
>
单据备注:
</td>
<td
colspan=
"8"
style=
"height:35px;"
>
<span
id=
"RemarkShow"
style=
"width: 1070px; height:35px;"
></span>
</td>
</tr>
<tr>
<td>
优惠金额:
</td>
<td
style=
"padding:5px;width:120px;"
>
<span
id=
"ChangeAmountShow"
></span>
</td>
</tr>
</table>
</div>
</body>
</html>
src/main/webapp/pages/financial/money_out.jsp
View file @
7a436d1c
<%@page
import=
"com.jsh.util.Tools"
%>
<%@ page
language=
"java"
import=
"java.util.*"
pageEncoding=
"utf-8"
%>
<%@page
import=
"com.jsh.util.Tools"
%>
<%@ page
language=
"java"
pageEncoding=
"utf-8"
%>
<%
String
path
=
request
.
getContextPath
();
String
clientIp
=
Tools
.
getLocalIp
(
request
);
String
path
=
request
.
getContextPath
();
String
clientIp
=
Tools
.
getLocalIp
(
request
);
%>
<!DOCTYPE html>
<html>
<head>
<title>
付款单
</title>
<meta
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
rel=
"stylesheet"
type=
"text/css"
href=
"
<%=
path
%>
/js/easyui-1.3.5/themes/default/easyui.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
<%=
path
%>
/js/easyui-1.3.5/themes/icon.css"
/>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"
<%=
path
%>
/css/common.css"
/>
<script
src=
"
<%=
path
%>
/js/jquery-1.8.0.min.js"
></script>
<script
src=
"
<%=
path
%>
/js/easyui-1.3.5/jquery.easyui.min.js"
></script>
<script
src=
"
<%=
path
%>
/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"
></script>
<script
src=
"
<%=
path
%>
/js/My97DatePicker/WdatePicker.js"
></script>
<script
src=
"
<%=
path
%>
/js/common/common.js"
></script>
<script
src=
"
<%=
path
%>
/js/pages/financial/financial_base.js"
></script>
<script>
var
kid
=
$
{
sessionScope
.
user
.
id
};
var
path
=
"
<%=
path
%>
"
;
var
clientIp
=
"
<%=
clientIp
%>
"
;
</script>
</head>
<body>
<!-- 查询 -->
<div
id =
"searchPanel"
class=
"easyui-panel"
style=
"padding:3px;"
title=
"查询窗口"
iconCls=
"icon-search"
collapsible=
"true"
closable=
"false"
>
<table
id=
"searchTable"
>
<tr>
<td>
单据编号:
</td>
<td>
<input
type=
"text"
name=
"searchBillNo"
id=
"searchBillNo"
style=
"width:100px;"
/>
</td>
<td>
单据日期:
</td>
<td>
<input
type=
"text"
name=
"searchBeginTime"
id=
"searchBeginTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd'})"
class=
"txt Wdate"
style=
"width:100px;"
/>
</td>
<td>
-
</td>
<td>
<input
type=
"text"
name=
"searchEndTime"
id=
"searchEndTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd'})"
class=
"txt Wdate"
style=
"width:100px;"
/>
</td>
<td>
</td>
<td>
<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>
</tr>
</table>
</div>
<!-- 数据显示table -->
<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=
"accountHeadDlg"
class=
"easyui-dialog"
style=
"width:1200px;padding:10px 20px;top:20px"
closed=
"true"
buttons=
"#dlg-buttons"
modal=
"true"
cache=
"false"
collapsible=
"false"
closable=
"true"
>
<form
id=
"accountHeadFM"
method=
"post"
novalidate
>
<table>
<tr>
<td
style=
"width:60px;"
>
收款单位:
</td>
<td
style=
"padding:5px;width:170px;"
>
<select
name=
"OrganId"
id=
"OrganId"
style=
"width:130px;"
></select>
</td>
<td
style=
"width:70px;"
>
经手人:
</td>
<td
style=
"padding:5px;width:170px;"
>
<select
name=
"HandsPersonId"
id=
"HandsPersonId"
style=
"width:110px;"
></select>
</td>
<td
style=
"width:70px;"
>
单据日期:
</td>
<td
style=
"padding:5px;width:170px;"
>
<input
type=
"text"
name=
"BillTime"
id=
"BillTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd'})"
class=
"txt Wdate"
style=
"width:140px;"
/>
</td>
<td
style=
"width:70px;"
>
单据编号:
</td>
<td
style=
"padding:5px;width:170px;"
>
<input
name=
"BillNo"
id=
"BillNo"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
/>
</td>
<td
style=
"width:100px;"
></td>
</tr>
<tr>
<td
colspan=
"9"
>
<!-- 单据列表table -->
<table
id=
"accountData"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
</td>
</tr>
<tr>
<td
colspan=
"9"
>
<textarea
name=
"Remark"
id=
"Remark"
rows=
"2"
cols=
"2"
placeholder=
"暂无备注信息"
style=
"width: 1130px; height:35px;"
></textarea>
</td>
</tr>
<tr>
<td>
优惠金额:
</td>
<td
style=
"padding:5px"
>
<input
type=
"text"
name=
"ChangeAmount"
id=
"ChangeAmount"
class=
"easyui-numberbox"
data-options=
"min:0,precision:2"
style=
"width: 110px;"
/>
</td>
</tr>
</table>
<input
type=
"hidden"
name=
"clientIp"
id=
"clientIp"
value=
"
<%=
clientIp
%>
"
/>
</form>
</div>
<div
id=
"dlg-buttons"
>
<a
href=
"javascript:void(0)"
id=
"saveAccountHead"
class=
"easyui-linkbutton"
iconCls=
"icon-ok"
>
保存
</a>
<a
href=
"javascript:void(0)"
id=
"cancelAccountHead"
class=
"easyui-linkbutton"
iconCls=
"icon-cancel"
onclick=
"javascript:$('#accountHeadDlg').dialog('close')"
>
取消
</a>
</div>
<div
id=
"accountHeadDlgShow"
class=
"easyui-dialog"
style=
"width:1200px;padding:10px 20px;top:20px"
closed=
"true"
modal=
"true"
cache=
"false"
collapsible=
"false"
closable=
"true"
>
<table>
<tr>
<td
style=
"width:60px;"
>
收款单位:
</td>
<td
style=
"padding:5px;width:130px;"
>
<span
id=
"OrganIdShow"
></span>
</td>
<td
style=
"width:70px;"
>
经手人:
</td>
<td
style=
"padding:5px;width:130px;"
>
<span
id=
"HandsPersonIdShow"
></span>
</td>
<td
style=
"width:70px;"
>
单据日期:
</td>
<td
style=
"padding:5px;width:130px;"
>
<span
id=
"BillTimeShow"
></span>
</td>
<td
style=
"width:80px;"
>
单据编号:
</td>
<td
style=
"padding:5px;width:140px;"
>
<span
id=
"BillNoShow"
></span>
</td>
<td
style=
"width:100px;"
></td>
</tr>
<tr>
<td
colspan=
"9"
style=
"width: 1130px;"
>
<!-- 单据列表table -->
<table
id=
"accountDataShow"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
</td>
</tr>
<tr>
<td
style=
"width:60px;"
>
单据备注:
</td>
<td
colspan=
"8"
style=
"height:35px;"
>
<span
id=
"RemarkShow"
style=
"width: 1070px; height:35px;"
></span>
</td>
</tr>
<tr>
<td>
优惠金额:
</td>
<td
style=
"padding:5px;width:120px;"
>
<span
id=
"ChangeAmountShow"
></span>
</td>
</tr>
</table>
</div>
</body>
<head>
<title>
付款单
</title>
<meta
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
rel=
"stylesheet"
type=
"text/css"
href=
"
<%=
path
%>
/js/easyui-1.3.5/themes/default/easyui.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
<%=
path
%>
/js/easyui-1.3.5/themes/icon.css"
/>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"
<%=
path
%>
/css/common.css"
/>
<script
src=
"
<%=
path
%>
/js/jquery-1.8.0.min.js"
></script>
<script
src=
"
<%=
path
%>
/js/easyui-1.3.5/jquery.easyui.min.js"
></script>
<script
src=
"
<%=
path
%>
/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"
></script>
<script
src=
"
<%=
path
%>
/js/My97DatePicker/WdatePicker.js"
></script>
<script
src=
"
<%=
path
%>
/js/common/common.js"
></script>
<script
src=
"
<%=
path
%>
/js/pages/financial/financial_base.js"
></script>
<script>
var
kid
=
$
{
sessionScope
.
user
.
id
};
var
path
=
"
<%=
path
%>
"
;
var
clientIp
=
"
<%=
clientIp
%>
"
;
</script>
</head>
<body>
<!-- 查询 -->
<div
id=
"searchPanel"
class=
"easyui-panel"
style=
"padding:3px;"
title=
"查询窗口"
iconCls=
"icon-search"
collapsible=
"true"
closable=
"false"
>
<table
id=
"searchTable"
>
<tr>
<td>
单据编号:
</td>
<td>
<input
type=
"text"
name=
"searchBillNo"
id=
"searchBillNo"
style=
"width:100px;"
/>
</td>
<td>
单据日期:
</td>
<td>
<input
type=
"text"
name=
"searchBeginTime"
id=
"searchBeginTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd'})"
class=
"txt Wdate"
style=
"width:100px;"
/>
</td>
<td>
-
</td>
<td>
<input
type=
"text"
name=
"searchEndTime"
id=
"searchEndTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd'})"
class=
"txt Wdate"
style=
"width:100px;"
/>
</td>
<td>
</td>
<td>
<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>
</tr>
</table>
</div>
<!-- 数据显示table -->
<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=
"accountHeadDlg"
class=
"easyui-dialog"
style=
"width:1200px;padding:10px 20px;top:20px"
closed=
"true"
buttons=
"#dlg-buttons"
modal=
"true"
cache=
"false"
collapsible=
"false"
closable=
"true"
>
<form
id=
"accountHeadFM"
method=
"post"
novalidate
>
<table>
<tr>
<td
style=
"width:60px;"
>
收款单位:
</td>
<td
style=
"padding:5px;width:170px;"
>
<select
name=
"OrganId"
id=
"OrganId"
style=
"width:130px;"
></select>
</td>
<td
style=
"width:70px;"
>
经手人:
</td>
<td
style=
"padding:5px;width:170px;"
>
<select
name=
"HandsPersonId"
id=
"HandsPersonId"
style=
"width:110px;"
></select>
</td>
<td
style=
"width:70px;"
>
单据日期:
</td>
<td
style=
"padding:5px;width:170px;"
>
<input
type=
"text"
name=
"BillTime"
id=
"BillTime"
onClick=
"WdatePicker({dateFmt:'yyyy-MM-dd'})"
class=
"txt Wdate"
style=
"width:140px;"
/>
</td>
<td
style=
"width:70px;"
>
单据编号:
</td>
<td
style=
"padding:5px;width:170px;"
>
<input
name=
"BillNo"
id=
"BillNo"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 140px;"
/>
</td>
<td
style=
"width:100px;"
></td>
</tr>
<tr>
<td
colspan=
"9"
>
<!-- 单据列表table -->
<table
id=
"accountData"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
</td>
</tr>
<tr>
<td
colspan=
"9"
>
<textarea
name=
"Remark"
id=
"Remark"
rows=
"2"
cols=
"2"
placeholder=
"暂无备注信息"
style=
"width: 1130px; height:35px;"
></textarea>
</td>
</tr>
<tr>
<td>
优惠金额:
</td>
<td
style=
"padding:5px"
>
<input
type=
"text"
name=
"ChangeAmount"
id=
"ChangeAmount"
class=
"easyui-numberbox"
data-options=
"min:0,precision:2"
style=
"width: 110px;"
/>
</td>
</tr>
</table>
<input
type=
"hidden"
name=
"clientIp"
id=
"clientIp"
value=
"
<%=
clientIp
%>
"
/>
</form>
</div>
<div
id=
"dlg-buttons"
>
<a
href=
"javascript:void(0)"
id=
"saveAccountHead"
class=
"easyui-linkbutton"
iconCls=
"icon-ok"
>
保存
</a>
<a
href=
"javascript:void(0)"
id=
"cancelAccountHead"
class=
"easyui-linkbutton"
iconCls=
"icon-cancel"
onclick=
"javascript:$('#accountHeadDlg').dialog('close')"
>
取消
</a>
</div>
<div
id=
"accountHeadDlgShow"
class=
"easyui-dialog"
style=
"width:1200px;padding:10px 20px;top:20px"
closed=
"true"
modal=
"true"
cache=
"false"
collapsible=
"false"
closable=
"true"
>
<table>
<tr>
<td
style=
"width:60px;"
>
收款单位:
</td>
<td
style=
"padding:5px;width:130px;"
>
<span
id=
"OrganIdShow"
></span>
</td>
<td
style=
"width:70px;"
>
经手人:
</td>
<td
style=
"padding:5px;width:130px;"
>
<span
id=
"HandsPersonIdShow"
></span>
</td>
<td
style=
"width:70px;"
>
单据日期:
</td>
<td
style=
"padding:5px;width:130px;"
>
<span
id=
"BillTimeShow"
></span>
</td>
<td
style=
"width:80px;"
>
单据编号:
</td>
<td
style=
"padding:5px;width:140px;"
>
<span
id=
"BillNoShow"
></span>
</td>
<td
style=
"width:100px;"
></td>
</tr>
<tr>
<td
colspan=
"9"
style=
"width: 1130px;"
>
<!-- 单据列表table -->
<table
id=
"accountDataShow"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
</td>
</tr>
<tr>
<td
style=
"width:60px;"
>
单据备注:
</td>
<td
colspan=
"8"
style=
"height:35px;"
>
<span
id=
"RemarkShow"
style=
"width: 1070px; height:35px;"
></span>
</td>
</tr>
<tr>
<td>
优惠金额:
</td>
<td
style=
"padding:5px;width:120px;"
>
<span
id=
"ChangeAmountShow"
></span>
</td>
</tr>
</table>
</div>
</body>
</html>
Prev
1
…
8
9
10
11
12
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