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
a21a403a
Commit
a21a403a
authored
Sep 03, 2017
by
季圣华
Browse files
继续增加4张报表的打印功能
parent
463baec5
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/main/webapp/js/print/print.js
View file @
a21a403a
...
@@ -3,9 +3,15 @@
...
@@ -3,9 +3,15 @@
function
CreateFormPage
(
strPrintName
,
printDatagrid
)
{
function
CreateFormPage
(
strPrintName
,
printDatagrid
)
{
var
beginDate
=
$
(
"
#searchBeginTime
"
).
val
();
var
beginDate
=
$
(
"
#searchBeginTime
"
).
val
();
var
endDate
=
$
(
"
#searchEndTime
"
).
val
();
var
endDate
=
$
(
"
#searchEndTime
"
).
val
();
var
tableString
=
'
<div class="div-title">上海某某某某有限责任公司
\n
</div>
'
+
var
getMonth
=
$
(
"
#searchMonth
"
).
val
();
'
\n
<div class="div-time">日期:
'
+
beginDate
+
'
至
'
+
endDate
+
'
\n
</div>
'
+
var
tableString
=
'
<div class="div-title">上海某某某某有限责任公司
\n
</div>
'
;
'
\n
<table cellspacing="0" class="pb">
'
;
if
(
beginDate
&&
endDate
)
{
tableString
+=
'
\n
<div class="div-time">日期:
'
+
beginDate
+
'
至
'
+
endDate
+
'
\n
</div>
'
;
}
if
(
getMonth
)
{
tableString
+=
'
\n
<div class="div-time">月份:
'
+
getMonth
+
'
\n
</div>
'
;
}
tableString
+=
'
\n
<table cellspacing="0" class="pb">
'
;
var
frozenColumns
=
printDatagrid
.
datagrid
(
"
options
"
).
frozenColumns
;
// 得到frozenColumns对象
var
frozenColumns
=
printDatagrid
.
datagrid
(
"
options
"
).
frozenColumns
;
// 得到frozenColumns对象
var
columns
=
printDatagrid
.
datagrid
(
"
options
"
).
columns
;
// 得到columns对象
var
columns
=
printDatagrid
.
datagrid
(
"
options
"
).
columns
;
// 得到columns对象
var
nameList
=
''
;
var
nameList
=
''
;
...
...
src/main/webapp/pages/reports/account_report.jsp
View file @
a21a403a
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=EmulateIE8"
/>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=EmulateIE8"
/>
<link
rel=
"shortcut icon"
href=
"
<%=
path
%>
/images/favicon.ico"
type=
"image/x-icon"
/>
<link
rel=
"shortcut icon"
href=
"
<%=
path
%>
/images/favicon.ico"
type=
"image/x-icon"
/>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/jquery-1.8.0.min.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/jquery-1.8.0.min.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/print/print.js"
></script>
<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/default/easyui.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
<%=
path
%>
/js/easyui-1.3.5/themes/icon.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"
/>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"
<%=
path
%>
/css/common.css"
/>
...
@@ -39,6 +40,8 @@
...
@@ -39,6 +40,8 @@
<td>
</td>
<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-search"
id=
"searchBtn"
>
查询
</a>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-print"
id=
"printBtn"
>
打印
</a>
</td>
</td>
</tr>
</tr>
</table>
</table>
...
@@ -55,6 +58,7 @@
...
@@ -55,6 +58,7 @@
{
{
initTableData
();
initTableData
();
ininPager
();
ininPager
();
print
();
});
});
//初始化表格数据
//初始化表格数据
...
@@ -180,6 +184,12 @@
...
@@ -180,6 +184,12 @@
}
}
});
});
}
}
//报表打印
function
print
()
{
$
(
"
#printBtn
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
(){
CreateFormPage
(
'
打印报表
'
,
$
(
'
#tableData
'
));
});
}
</script>
</script>
</body>
</body>
</html>
</html>
\ No newline at end of file
src/main/webapp/pages/reports/buy_in_report.jsp
View file @
a21a403a
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=EmulateIE8"
/>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=EmulateIE8"
/>
<link
rel=
"shortcut icon"
href=
"
<%=
path
%>
/images/favicon.ico"
type=
"image/x-icon"
/>
<link
rel=
"shortcut icon"
href=
"
<%=
path
%>
/images/favicon.ico"
type=
"image/x-icon"
/>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/jquery-1.8.0.min.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/jquery-1.8.0.min.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/print/print.js"
></script>
<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/default/easyui.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
<%=
path
%>
/js/easyui-1.3.5/themes/icon.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"
/>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"
<%=
path
%>
/css/common.css"
/>
...
@@ -34,6 +35,8 @@
...
@@ -34,6 +35,8 @@
<td>
</td>
<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-search"
id=
"searchBtn"
>
查询
</a>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-print"
id=
"printBtn"
>
打印
</a>
</td>
</td>
</tr>
</tr>
</table>
</table>
...
@@ -53,6 +56,7 @@
...
@@ -53,6 +56,7 @@
initTableData
();
initTableData
();
ininPager
();
ininPager
();
search
();
search
();
print
();
});
});
//初始化表格数据
//初始化表格数据
...
@@ -226,6 +230,12 @@
...
@@ -226,6 +230,12 @@
}
}
});
});
}
}
//报表打印
function print() {
$("#printBtn").off("click").on("click",function(){
CreateFormPage(
'
打印报表
'
, $(
'
#
tableData
'
));
});
}
</script>
</script>
</body>
</body>
</html>
</html>
\ No newline at end of file
src/main/webapp/pages/reports/in_out_stock_report.jsp
View file @
a21a403a
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=EmulateIE8"
/>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=EmulateIE8"
/>
<link
rel=
"shortcut icon"
href=
"
<%=
path
%>
/images/favicon.ico"
type=
"image/x-icon"
/>
<link
rel=
"shortcut icon"
href=
"
<%=
path
%>
/images/favicon.ico"
type=
"image/x-icon"
/>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/jquery-1.8.0.min.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/jquery-1.8.0.min.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/print/print.js"
></script>
<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/default/easyui.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
<%=
path
%>
/js/easyui-1.3.5/themes/icon.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"
/>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"
<%=
path
%>
/css/common.css"
/>
...
@@ -40,8 +41,11 @@
...
@@ -40,8 +41,11 @@
</td>
</td>
<td>
</td>
<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-search"
id=
"searchBtn"
>
查询
</a>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-redo"
id=
"exprotBtn"
>
导出
</a>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-redo"
id=
"exprotBtn"
>
导出
</a>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-print"
id=
"printBtn"
>
打印
</a>
<span
class=
"total-count"
></span>
<span
class=
"total-count"
></span>
</td>
</td>
</tr>
</tr>
...
@@ -71,6 +75,7 @@
...
@@ -71,6 +75,7 @@
ininPager
();
ininPager
();
search
();
search
();
exportExcel
();
exportExcel
();
print
();
});
});
//导出EXCEL
//导出EXCEL
...
@@ -401,7 +406,13 @@
...
@@ -401,7 +406,13 @@
return;
return;
}
}
});
});
}
}
//报表打印
function print() {
$(
"
#
printBtn
"
).off(
"
click
"
).on(
"
click
"
,function(){
CreateFormPage('打印报表', $('#tableData'));
});
}
</script>
</script>
</body>
</body>
</html>
</html>
\ No newline at end of file
src/main/webapp/pages/reports/sale_out_report.jsp
View file @
a21a403a
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=EmulateIE8"
/>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=EmulateIE8"
/>
<link
rel=
"shortcut icon"
href=
"
<%=
path
%>
/images/favicon.ico"
type=
"image/x-icon"
/>
<link
rel=
"shortcut icon"
href=
"
<%=
path
%>
/images/favicon.ico"
type=
"image/x-icon"
/>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/jquery-1.8.0.min.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/jquery-1.8.0.min.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/print/print.js"
></script>
<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/default/easyui.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
<%=
path
%>
/js/easyui-1.3.5/themes/icon.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"
/>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"
<%=
path
%>
/css/common.css"
/>
...
@@ -34,6 +35,8 @@
...
@@ -34,6 +35,8 @@
<td>
</td>
<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-search"
id=
"searchBtn"
>
查询
</a>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-print"
id=
"printBtn"
>
打印
</a>
</td>
</td>
<td><span
class=
"tip"
>
注:此处包含零售+批发销售
</span></td>
<td><span
class=
"tip"
>
注:此处包含零售+批发销售
</span></td>
</tr>
</tr>
...
@@ -55,6 +58,7 @@
...
@@ -55,6 +58,7 @@
initTableData
();
initTableData
();
ininPager
();
ininPager
();
search
();
search
();
print
();
});
});
//初始化表格数据
//初始化表格数据
...
@@ -227,7 +231,13 @@
...
@@ -227,7 +231,13 @@
return;
return;
}
}
});
});
}
}
//报表打印
function print() {
$("#printBtn").off("click").on("click",function(){
CreateFormPage(
'
打印报表
'
, $(
'
#
tableData
'
));
});
}
</script>
</script>
</body>
</body>
</html>
</html>
\ No newline at end of file
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