Commit 79dcf199 authored by liboyang's avatar liboyang

打印条数限制

parent 28b7f30b
...@@ -156,19 +156,19 @@ ...@@ -156,19 +156,19 @@
<table cellpadding="0" cellspacing="0" border="1" style="text-align: center;"> <table cellpadding="0" cellspacing="0" border="1" style="text-align: center;">
<thead> <thead>
<tr> <tr>
<th width="60"> <th width="60" style="text-align: center;">
序号 序号
</th> </th>
<th width="130"> <th width="130" style="text-align: center;">
身份证受理组号 身份证受理组号
</th> </th>
<th colspan="2"> <th colspan="2" style="text-align: center;">
身份证所属派出所名称 身份证所属派出所名称
</th> </th>
<th width="80"> <th width="80" style="text-align: center;">
数量 数量
</th> </th>
<th width="145"> <th width="145" style="text-align: center;">
备注 备注
</th> </th>
</tr> </tr>
......
...@@ -127,7 +127,11 @@ angular.module('AvatarCheck.receitp', ['ngRoute', 'AvatarCheck.http']) ...@@ -127,7 +127,11 @@ angular.module('AvatarCheck.receitp', ['ngRoute', 'AvatarCheck.http'])
endDate:endDate, endDate:endDate,
list:[] list:[]
} }
var checks = $(".checkAllPolice:checked") 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 i=0;i<checks.length;i++){
for(var j=0;j<JSON.parse(checks[i].value).length;j++){ for(var j=0;j<JSON.parse(checks[i].value).length;j++){
json.list.push(JSON.parse(checks[i].value)[j].POLICE_CODE) json.list.push(JSON.parse(checks[i].value)[j].POLICE_CODE)
...@@ -161,10 +165,13 @@ angular.module('AvatarCheck.receitp', ['ngRoute', 'AvatarCheck.http']) ...@@ -161,10 +165,13 @@ angular.module('AvatarCheck.receitp', ['ngRoute', 'AvatarCheck.http'])
LODOP.ADD_PRINT_TABLE(110, 3, 740, "100%", document.getElementById("divPrint").innerHTML); LODOP.ADD_PRINT_TABLE(110, 3, 740, "100%", document.getElementById("divPrint").innerHTML);
LODOP.SET_PRINT_STYLEA(0, "HOrient", 2); LODOP.SET_PRINT_STYLEA(0, "HOrient", 2);
LODOP.SET_PRINT_STYLEA(0, "Vorient", 3); LODOP.SET_PRINT_STYLEA(0, "Vorient", 3);
LODOP.SET_PRINTER_INDEXA(-1);
LODOP.PREVIEW(); LODOP.PREVIEW();
// LODOP.PRINT(); // LODOP.PRINT();
}) })
}) })
}
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment