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
5ead670d
Commit
5ead670d
authored
Apr 15, 2019
by
dahai
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
1297bf15
dee82d8f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
80 additions
and
36 deletions
+80
-36
tagPrint.html
src/main/resources/static/views/tagPrint/tagPrint.html
+14
-13
tagPrint.js
src/main/resources/static/views/tagPrint/tagPrint.js
+66
-23
No files found.
src/main/resources/static/views/tagPrint/tagPrint.html
View file @
5ead670d
...
@@ -118,7 +118,7 @@
...
@@ -118,7 +118,7 @@
</div>
</div>
</section>
</section>
<div
style=
"display: none;"
>
<div
style=
"display: none;"
>
<!--<div id="div1">
<!--<div id="div1">
<p>
<p>
<object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0>
<object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0>
<embed id="LODOP_EM" type="application/x-print-lodop" width=0 height=0 pluginspage="install_lodop32.exe"></embed>
<embed id="LODOP_EM" type="application/x-print-lodop" width=0 height=0 pluginspage="install_lodop32.exe"></embed>
...
@@ -135,18 +135,19 @@
...
@@ -135,18 +135,19 @@
<embed
id=
"LODOP_EM"
type=
"application/x-print-lodop"
<embed
id=
"LODOP_EM"
type=
"application/x-print-lodop"
width=
0
height=
0
pluginspage=
"install_lodop32.exe"
></embed>
width=
0
height=
0
pluginspage=
"install_lodop32.exe"
></embed>
</object>
</object>
</p
><div
style=
"font-size:3mm ;"
>
<p
style=
"text-align:center;margin:1mm 0mm 0mm 0mm;"
>
<span
style=
"font-size:5mm ;"
>
{{json.policeData}}
</span>
</p
>
</p
>
<p
style=
"text-align:center;margin:1.7mm 0mm 0mm 0mm;"
>
<!--<div style="font-size:3mm ;">
<span
style=
"font-size: 3.5mm;"
>
{{json.policeName}}
</span>
<p style="text-align:center;margin:1mm 0mm 0mm 0mm;">
</p
>
<span style="font-size:5mm ;">{{json.policeData}}</span>
<p
style=
"text-align:center;margin:1.7mm 0mm 0mm 0mm;"
>
</p>
<span
style=
""
>
数量:
<p style="text-align:center;margin:1.7mm 0mm 0mm 0mm;">
<span
style=
"font-size:5mm;"
>
{{json.count}}
</span>
张
<span style="font-size: 3.5mm;">{{json.policeName}}</span>
</span>
</p>
</p
>
<p style="text-align:center;margin:1.7mm 0mm 0mm 0mm;">
</div>
<span style="">数量:
<span style="font-size:5mm;">{{json.count}}</span>张
</span>
</p>
</div>-->
</div>
</div>
</div>
</div>
src/main/resources/static/views/tagPrint/tagPrint.js
View file @
5ead670d
...
@@ -173,30 +173,73 @@ angular.module('AvatarCheck.tagPrint', ['ngRoute', 'AvatarCheck.http', 'tm.pagin
...
@@ -173,30 +173,73 @@ angular.module('AvatarCheck.tagPrint', ['ngRoute', 'AvatarCheck.http', 'tm.pagin
// })
// })
// }
// }
// $scope.PreviewMytableRotate = function(){
// HttpService.getPoliceName($scope.json.policeCode,function(data) {
// $scope.json.policeData = data[0].POLICE_NAME;
// console.log($scope.json.policeData)
// $timeout(function () {
// var LODOP = getLodop();
// LODOP = getLodop(document.getElementById('LODOP1'), document.getElementById('LODOP_EM'));
// if (!LODOP) { alert("
请先安装控件!
"); return; }
// LODOP.SET_LICENSES("
民软网
(
www
.
minsoft
.
cn
)
", "
158703810611011350109107113120
", "", "");
// //初始化
// LODOP.PRINT_INIT("
打印封口签
");
// //设置纸张大小
// // LODOP.SET_PRINT_PAGESIZE(1, "
80
mm
", "
50
mm
", "
CreateCustomPage
");
// LODOP.SET_PRINT_PAGESIZE(1, "
84
mm
", "
54
mm
", "");
// // LODOP.SET_PRINT_STYLE("
FontName
", "
黑体
");
// //设定该条形码在纸张内的位置和大小【Top, Left,Width, Height, CodeType, CodeValue】
// LODOP.ADD_PRINT_BARCODE("
2
mm
", "
2
mm
", "
74
mm
", "
20
mm
", "
128
A
", $scope.json.policeCardsList[0].ACCEPT_NO.substring(0,8));
// //设定该打印项在纸张内的位置和区域大小【Top,Left,Width,Height,strHtmlContent】
// LODOP.ADD_PRINT_HTM("
22
mm
", "
0
", "
78
mm
", "
24
mm
", document.getElementById("
tagDiv
").innerHTML);
// LODOP.PREVIEW();
// // LODOP.PRINT();
// })
// })
// };
$scope.PreviewMytableRotate = function(){
$scope.PreviewMytableRotate = function(){
HttpService.getPoliceName($scope.json.policeCode,function(data) {
HttpService.getPoliceName($scope.json.policeCode,function(data) {
$scope.json.policeData = data[0].POLICE_NAME;
$scope.json.policeData = data[0].POLICE_NAME;
console.log($scope.json.policeData)
console.log($scope.json.policeData)
$timeout(function () {
$timeout(function () {
var LODOP = getLodop();
var LODOP = getLodop();
LODOP = getLodop(document.getElementById('LODOP1'), document.getElementById('LODOP_EM'));
LODOP = getLodop(document.getElementById('LODOP1'), document.getElementById('LODOP_EM'));
if (!LODOP) { alert("
请先安装控件!
"); return; }
if (!LODOP) { alert("
请先安装控件!
"); return; }
LODOP.SET_LICENSES("
民软网
(
www
.
minsoft
.
cn
)
", "
158703810611011350109107113120
", "", "");
// LODOP.SET_LICENSES("
民软网
(
www
.
minsoft
.
cn
)
", "
158703810611011350109107113120
", "", "");
//初始化
//初始化
LODOP.PRINT_INIT("
打印封口签
");
LODOP.PRINT_INIT("
打印封口签
");
//设置纸张大小
//设置纸张大小
// LODOP.SET_PRINT_PAGESIZE(1, "
80
mm
", "
50
mm
", "
CreateCustomPage
");
// LODOP.SET_PRINT_PAGESIZE(1, "
80
mm
", "
50
mm
", "
CreateCustomPage
");
LODOP.SET_PRINT_PAGESIZE(1, "
84
mm
", "
54
mm
", "");
LODOP.SET_PRINT_PAGESIZE(1, "
80
mm
", "
50
mm
", "");
// LODOP.SET_PRINT_STYLE("
FontName
", "
黑体
");
// LODOP.SET_PRINT_STYLE("
FontName
", "
黑体
");
//设定该条形码在纸张内的位置和大小【Top, Left,Width, Height, CodeType, CodeValue】
//设定该条形码在纸张内的位置和大小【Top, Left,Width, Height, CodeType, CodeValue】
LODOP.ADD_PRINT_BARCODE("
2
mm
", "
2
mm
", "
74
mm
", "
20
mm
", "
128
A
", $scope.json.policeCardsList[0].ACCEPT_NO.substring(0,8));
LODOP.ADD_PRINT_BARCODE(15,9, "
78
mm
", "
20
mm
", "
128
A
", $scope.json.policeCardsList[0].ACCEPT_NO.substring(0,8));
//设定该打印项在纸张内的位置和区域大小【Top,Left,Width,Height,strHtmlContent】
LODOP.SET_PRINT_STYLEA(0, "
FontSize
", 14);
LODOP.ADD_PRINT_HTM("
22
mm
", "
0
", "
78
mm
", "
24
mm
", document.getElementById("
tagDiv
").innerHTML);
LODOP.SET_PRINT_STYLEA(0, "
Alignment
", 2);
LODOP.PREVIEW();
// LODOP.PRINT();
//设定该打印项在纸张内的位置和区域大小【Top,Left,Width,Height,strHtmlContent】
})
// LODOP.ADD_PRINT_HTM("
24
mm
", "
0
", "
80
mm
", "
24
mm
", document.getElementById("
tagDiv
").innerHTML);
LODOP.ADD_PRINT_TEXT(102, 0, "
100
%
", 20, $scope.json.policeData.toString());
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(132, 0, "
100
%
", 20, $scope.json.policeName.toString());
LODOP.SET_PRINT_STYLEA(0, "
Bold
", 1);
LODOP.SET_PRINT_STYLEA(0, "
Alignment
", 2);
LODOP.SET_PRINT_STYLEA(0, "
VOrient
", 0);
LODOP.SET_PRINT_STYLEA(0, "
FontSize
", 13);
LODOP.ADD_PRINT_TEXT(165, 0, "
100
%
", 20, "
数量:
"+$scope.json.count.toString()+"
张
");
LODOP.SET_PRINT_STYLEA(0, "
Bold
", 1);
LODOP.SET_PRINT_STYLEA(0, "
Alignment
", 2);
LODOP.SET_PRINT_STYLEA(0, "
FontSize
", 15);
// 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