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
ef1530e8
Commit
ef1530e8
authored
Jun 30, 2017
by
季圣华
Browse files
完善报表信息,初始化查询
parent
016cf60b
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/main/webapp/js/common/common.js
View file @
ef1530e8
...
...
@@ -105,6 +105,20 @@ function getNowFormatDateTime() {
return
currentdate
;
}
/**
* js获取当前时间, 格式“yyyy-MM”
*/
function
getNowFormatMonth
()
{
var
date
=
new
Date
();
var
seperator1
=
"
-
"
;
var
month
=
date
.
getMonth
()
+
1
;
if
(
month
>=
1
&&
month
<=
9
)
{
month
=
"
0
"
+
month
;
}
var
currentdate
=
date
.
getFullYear
()
+
seperator1
+
month
;
return
currentdate
;
}
/**
* js获取当前时间, 格式“yyyy-MM-dd”
*/
...
...
src/main/webapp/pages/materials/person.jsp
View file @
ef1530e8
...
...
@@ -28,11 +28,11 @@
<tr>
<td>
姓名:
</td>
<td>
<input
name=
"searchName"
id=
"searchName"
style=
"width:
23
0px;"
/>
<input
name=
"searchName"
id=
"searchName"
style=
"width:
7
0px;"
/>
</td>
<td>
类型:
</td>
<td>
<select
name=
"searchType"
id=
"searchType"
style=
"width:
23
0px;"
>
<select
name=
"searchType"
id=
"searchType"
style=
"width:
7
0px;"
>
<option
value=
""
>
全部
</option>
<option
value=
"仓管员"
>
仓管员
</option>
<option
value=
"财务员"
>
财务员
</option>
...
...
src/main/webapp/pages/reports/buy_in_report.jsp
View file @
ef1530e8
...
...
@@ -48,8 +48,11 @@
//初始化界面
$
(
function
()
{
var
thisDate
=
getNowFormatMonth
();
//当前月份
$
(
"
#searchMonth
"
).
val
(
thisDate
);
initTableData
();
ininPager
();
search
();
});
//初始化表格数据
...
...
@@ -132,26 +135,28 @@
$.messager.alert(
'
异常处理提示
'
,"分页信息异常 : " + e.name + ": " + e.message,
'
error
'
);
}
}
function search() {
showDetails(1,initPageSize);
var opts = $("#tableData").datagrid(
'
options
'
);
var pager = $("#tableData").datagrid(
'
getPager
'
);
opts.pageNumber = 1;
opts.pageSize = initPageSize;
pager.pagination(
'
refresh
'
,
{
pageNumber:1,
pageSize:initPageSize
});
}
//搜索处理
$("#searchBtn").unbind().bind({
click:function()
{
showDetails(1,initPageSize);
var opts = $("#tableData").datagrid(
'
options
'
);
var pager = $("#tableData").datagrid(
'
getPager
'
);
opts.pageNumber = 1;
opts.pageSize = initPageSize;
pager.pagination(
'
refresh
'
,
{
pageNumber:1,
pageSize:initPageSize
});
search();
}
});
function showDetails(pageNo,pageSize)
{
function showDetails(pageNo,pageSize) {
$.ajax({
type:"post",
url: "
<%=
path
%>
/depotHead/findByMonth.action",
...
...
@@ -219,7 +224,7 @@
return;
}
});
}
}
</script>
</body>
</html>
\ No newline at end of file
src/main/webapp/pages/reports/in_out_stock_report.jsp
View file @
ef1530e8
...
...
@@ -7,7 +7,7 @@
<!DOCTYPE html>
<html>
<head>
<title>
进销存管理
</title>
<title>
库存状况
</title>
<meta
charset=
"utf-8"
>
<!-- 指定以IE8的方式来渲染 -->
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=EmulateIE8"
/>
...
...
@@ -53,8 +53,11 @@
//初始化界面
$
(
function
()
{
var
thisDate
=
getNowFormatMonth
();
//当前月份
$
(
"
#searchMonth
"
).
val
(
thisDate
);
initTableData
();
ininPager
();
search
();
exportExcel
();
});
...
...
@@ -173,19 +176,22 @@
var orgPerson =
""
;
//搜索处理
function search() {
showPersonDetails(1,initPageSize);
var opts = $(
"
#
tableData
"
).datagrid('options');
var pager = $(
"
#
tableData
"
).datagrid('getPager');
opts.pageNumber = 1;
opts.pageSize = initPageSize;
pager.pagination('refresh',
{
pageNumber:1,
pageSize:initPageSize
});
}
$(
"
#
searchBtn
"
).unbind().bind({
click:function()
{
showPersonDetails(1,initPageSize);
var opts = $(
"
#
tableData
"
).datagrid('options');
var pager = $(
"
#
tableData
"
).datagrid('getPager');
opts.pageNumber = 1;
opts.pageSize = initPageSize;
pager.pagination('refresh',
{
pageNumber:1,
pageSize:initPageSize
});
search();
}
});
...
...
src/main/webapp/pages/reports/sale_out_report.jsp
View file @
ef1530e8
...
...
@@ -50,8 +50,11 @@
$
(
function
()
{
$
(
"
#searchTable .tip
"
).
css
(
"
padding-left
"
,
"
15px
"
).
css
(
"
color
"
,
"
red
"
);
var
thisDate
=
getNowFormatMonth
();
//当前月份
$
(
"
#searchMonth
"
).
val
(
thisDate
);
initTableData
();
ininPager
();
search
();
});
//初始化表格数据
...
...
@@ -136,19 +139,21 @@
}
//搜索处理
$("#searchBtn").unbind().bind({
click:function()
function search() {
showDetails(1,initPageSize);
var opts = $("#tableData").datagrid(
'
options
'
);
var pager = $("#tableData").datagrid(
'
getPager
'
);
opts.pageNumber = 1;
opts.pageSize = initPageSize;
pager.pagination(
'
refresh
'
,
{
showDetails(1,initPageSize);
var opts = $("#tableData").datagrid(
'
options
'
);
var pager = $("#tableData").datagrid(
'
getPager
'
);
opts.pageNumber = 1;
opts.pageSize = initPageSize;
pager.pagination(
'
refresh
'
,
{
pageNumber:1,
pageSize:initPageSize
});
pageNumber:1,
pageSize:initPageSize
});
}
$("#searchBtn").unbind().bind({
click:function() {
search();
}
});
...
...
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