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
a7d1cf99
Commit
a7d1cf99
authored
Apr 10, 2019
by
dahai
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
82f3f5fb
95e3e57c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
11 deletions
+55
-11
tagPrint.html
src/main/resources/static/views/tagPrint/tagPrint.html
+22
-1
tagPrint.js
src/main/resources/static/views/tagPrint/tagPrint.js
+33
-10
No files found.
src/main/resources/static/views/tagPrint/tagPrint.html
View file @
a7d1cf99
...
...
@@ -124,7 +124,7 @@
</div>
</section>
<div
style=
"display: none;"
>
<div
id=
"div1"
>
<
!--<
div id="div1">
<p>
<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>
...
...
@@ -133,5 +133,26 @@
<div style="font-family:'黑体';height:7mm;position: absolute;top:5mm;left:4mm;">{{json.policeData}}</div>
<div style="font-family:'黑体';height:7mm;position: absolute;top:12mm;left:3mm;">{{json.policeName}}</div>
<div style="font-family:'黑体';height:7mm;position: absolute;top:20mm;left:5mm;">数量:{{json.count}}张</div>
</div>-->
<div
id=
"tagDiv"
>
<p>
<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>
</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
style=
"text-align:center;margin:1.7mm 0mm 0mm 0mm;"
>
<span
style=
"font-size: 3.5mm;"
>
{{json.policeName}}
</span>
</p
>
<p
style=
"text-align:center;margin:1.7mm 0mm 0mm 0mm;"
>
<span
style=
""
>
数量:
<span
style=
"font-size:5mm;"
>
{{json.count}}
</span>
张
</span>
</p
>
</div>
</div>
</div>
src/main/resources/static/views/tagPrint/tagPrint.js
View file @
a7d1cf99
...
...
@@ -146,27 +146,50 @@ 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.SET_LICENSES("", "
15
F0BE661E7F32F37491843CB2510905
", "
C94CEE276DB2187AE6B65D56B3FC2848
", "");
// LODOP.SET_PRINT_STYLE("
FontName
", "
黑体
");
// LODOP.PRINT_INIT("
标签
");
// LODOP.SET_PRINT_PAGESIZE(1, "
70
mm
", "
40
mm
", "");
// LODOP = getLodop(document.getElementById('LODOP1'), document.getElementById('LODOP_EM'));
// LODOP.SET_PRINT_STYLE("
FontName
", "
黑体
");
// LODOP.ADD_PRINT_BARCODE(7, 20, 242, 60, "
128
A
", $scope.json.policeCardsList[0].ACCEPT_NO.substring(0, 8));
// LODOP.ADD_PRINT_HTM(60, 80, 300, 300, document.getElementById("
div1
").innerHTML);
// LODOP.SET_PRINT_STYLEA(0, "
AngleOfPageInside
", 0);
// LODOP.PREVIEW();
// // LODOP.PRINT();
// })
// })
// }
$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.SET_LICENSES("", "
15
F0BE661E7F32F37491843CB2510905
", "
C94CEE276DB2187AE6B65D56B3FC2848
", "");
LODOP.SET_PRINT_STYLE("
FontName
", "
黑体
");
LODOP.PRINT_INIT("
标签
");
LODOP.SET_PRINT_PAGESIZE(1, "
70
mm
", "
40
mm
", "");
LODOP = getLodop(document.getElementById('LODOP1'), document.getElementById('LODOP_EM'));
LODOP.SET_PRINT_STYLE("
FontName
", "
黑体
");
LODOP.ADD_PRINT_BARCODE(7, 20, 242, 60, "
128
A
", $scope.json.policeCardsList[0].ACCEPT_NO.substring(0,8));
LODOP.ADD_PRINT_HTM(60, 80, 300, 300, document.getElementById("
div1
").innerHTML);
LODOP.SET_PRINT_STYLEA(0, "
AngleOfPageInside
", 0);
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();
})
})
};
});
...
...
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