Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
YX_IDENT_beijing_auxiliary_YD
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhangyusheng
YX_IDENT_beijing_auxiliary_YD
Commits
79dcf199
Commit
79dcf199
authored
Apr 23, 2019
by
liboyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打印条数限制
parent
28b7f30b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
41 deletions
+48
-41
receitp.html
src/main/resources/static/views/receitp/receitp.html
+5
-5
receitp.js
src/main/resources/static/views/receitp/receitp.js
+43
-36
No files found.
src/main/resources/static/views/receitp/receitp.html
View file @
79dcf199
...
...
@@ -156,19 +156,19 @@
<table
cellpadding=
"0"
cellspacing=
"0"
border=
"1"
style=
"text-align: center;"
>
<thead>
<tr>
<th
width=
"60"
>
<th
width=
"60"
style=
"text-align: center;"
>
序号
</th>
<th
width=
"130"
>
<th
width=
"130"
style=
"text-align: center;"
>
身份证受理组号
</th>
<th
colspan=
"2"
>
<th
colspan=
"2"
style=
"text-align: center;"
>
身份证所属派出所名称
</th>
<th
width=
"80"
>
<th
width=
"80"
style=
"text-align: center;"
>
数量
</th>
<th
width=
"145"
>
<th
width=
"145"
style=
"text-align: center;"
>
备注
</th>
</tr>
...
...
src/main/resources/static/views/receitp/receitp.js
View file @
79dcf199
...
...
@@ -127,44 +127,51 @@ angular.module('AvatarCheck.receitp', ['ngRoute', 'AvatarCheck.http'])
endDate
:
endDate
,
list
:[]
}
var
checks
=
$
(
".checkAllPolice:checked"
)
for
(
var
i
=
0
;
i
<
checks
.
length
;
i
++
){
for
(
var
j
=
0
;
j
<
JSON
.
parse
(
checks
[
i
].
value
).
length
;
j
++
){
json
.
list
.
push
(
JSON
.
parse
(
checks
[
i
].
value
)[
j
].
POLICE_CODE
)
var
checks
=
$
(
".checkAllPolice:checked"
);
if
(
checks
.
length
>
37
){
$scope
.
chooseCount
=
checks
.
length
;
MessageService
.
showAlert
(
"一张纸上只能显示37条数据,本次已选择"
+
$scope
.
chooseCount
+
"条,请去掉"
+
37
-
$scope
.
chooseCount
+
"条数据再打印"
)
}
else
{
for
(
var
i
=
0
;
i
<
checks
.
length
;
i
++
){
for
(
var
j
=
0
;
j
<
JSON
.
parse
(
checks
[
i
].
value
).
length
;
j
++
){
json
.
list
.
push
(
JSON
.
parse
(
checks
[
i
].
value
)[
j
].
POLICE_CODE
)
}
}
}
console
.
log
(
json
)
HttpService
.
printReceitpData
(
json
,
function
(
data
)
{
$scope
.
receitpDataToPrint
=
data
;
$timeout
(
function
()
{
var
LODOP
=
getLodop
();
LODOP
.
SET_LICENSES
(
""
,
"15F0BE661E7F32F37491843CB2510905"
,
"C94CEE276DB2187AE6B65D56B3FC2848"
,
""
);
//初始化
LODOP
.
PRINT_INIT
(
"打印交接单"
);
LODOP
.
SET_PRINT_PAGESIZE
(
1
,
0
,
0
,
"A4"
);
LODOP
.
ADD_PRINT_TEXT
(
10
,
0
,
"100%"
,
20
,
"北京市公安局证件制作管理中心交接岗位"
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"Bold"
,
1
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"Alignment"
,
2
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"FontSize"
,
15
);
LODOP
.
ADD_PRINT_TEXT
(
35
,
0
,
"100%"
,
20
,
"身份证交接单"
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"Bold"
,
1
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"Alignment"
,
2
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"FontSize"
,
15
);
LODOP
.
ADD_PRINT_TEXT
(
70
,
30
,
"100%"
,
20
,
"交接日期:"
+
$scope
.
receitpDataToPrint
.
date
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"Bold"
,
1
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"Alignment"
,
1
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"FontSize"
,
12
);
LODOP
.
ADD_PRINT_TEXT
(
90
,
30
,
"100%"
,
20
,
"送至:"
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"Bold"
,
1
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"Alignment"
,
1
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"FontSize"
,
12
);
LODOP
.
ADD_PRINT_TABLE
(
110
,
3
,
740
,
"100%"
,
document
.
getElementById
(
"divPrint"
).
innerHTML
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"HOrient"
,
2
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"Vorient"
,
3
);
LODOP
.
PREVIEW
();
// LODOP.PRINT();
console
.
log
(
json
)
HttpService
.
printReceitpData
(
json
,
function
(
data
)
{
$scope
.
receitpDataToPrint
=
data
;
$timeout
(
function
()
{
var
LODOP
=
getLodop
();
LODOP
.
SET_LICENSES
(
""
,
"15F0BE661E7F32F37491843CB2510905"
,
"C94CEE276DB2187AE6B65D56B3FC2848"
,
""
);
//初始化
LODOP
.
PRINT_INIT
(
"打印交接单"
);
LODOP
.
SET_PRINT_PAGESIZE
(
1
,
0
,
0
,
"A4"
);
LODOP
.
ADD_PRINT_TEXT
(
10
,
0
,
"100%"
,
20
,
"北京市公安局证件制作管理中心交接岗位"
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"Bold"
,
1
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"Alignment"
,
2
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"FontSize"
,
15
);
LODOP
.
ADD_PRINT_TEXT
(
35
,
0
,
"100%"
,
20
,
"身份证交接单"
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"Bold"
,
1
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"Alignment"
,
2
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"FontSize"
,
15
);
LODOP
.
ADD_PRINT_TEXT
(
70
,
30
,
"100%"
,
20
,
"交接日期:"
+
$scope
.
receitpDataToPrint
.
date
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"Bold"
,
1
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"Alignment"
,
1
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"FontSize"
,
12
);
LODOP
.
ADD_PRINT_TEXT
(
90
,
30
,
"100%"
,
20
,
"送至:"
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"Bold"
,
1
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"Alignment"
,
1
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"FontSize"
,
12
);
LODOP
.
ADD_PRINT_TABLE
(
110
,
3
,
740
,
"100%"
,
document
.
getElementById
(
"divPrint"
).
innerHTML
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"HOrient"
,
2
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"Vorient"
,
3
);
LODOP
.
SET_PRINTER_INDEXA
(
-
1
);
LODOP
.
PREVIEW
();
// LODOP.PRINT();
})
})
})
}
}
...
...
Write
Preview
Markdown
is supported
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