<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
<head>
|
<title>单个打印</title>
|
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/>
|
<meta http-equiv="description" content="this is my page"/>
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
|
<script language="javascript" src="${common_static}/static/plugins/print/LodopFuncs.js"></script>
|
<script language="javascript" type="text/javascript">
|
var LODOP; //声明为全局变量
|
function prn1_preview() {
|
LODOP=getLodop();
|
CreateOneFormPage();
|
LODOP.PREVIEW();
|
};
|
function prn1_print(){
|
CreateOneFormPage();
|
LODOP.PRINT();
|
};
|
function prn1_printA() {
|
CreateOneFormPage();
|
LODOP.PRINTA();
|
};
|
function CreateOneFormPage(){
|
LODOP.SET_PRINT_PAGESIZE(2,290,900,'');
|
LODOP.ADD_PRINT_TEXT(8,95,220,32,"编号:${detail.SEACHCODE}/${detail.MEMBERCODE}");
|
LODOP.ADD_PRINT_TEXT(25,95,260,32,"名称:${detail.CINAME}");
|
LODOP.ADD_PRINT_TEXT(45,95,220,32,"负责人:${detail.CIADMIN}");
|
LODOP.ADD_PRINT_TEXT(65,95,260,32,"位置:${detail.POSITION}");
|
LODOP.ADD_PRINT_TEXT(85,95,220,32,"${Constants.company_name}服务热线:${Constants.company_tell}");
|
LODOP.ADD_PRINT_BARCODE(5,2,140,140,"QRCode","${QRKEY}");
|
LODOP.SET_PRINT_STYLEA(0,"QRCodeVersion",7);
|
|
};
|
function closeWin(index){
|
window.top.closeDialog(index);
|
}
|
|
|
//点击事件
|
function onDialogBtnClick(btnID, dialogID, config){
|
if(btnID=="print"){
|
prn1_preview();
|
}
|
}
|
</script>
|
<style>
|
a{
|
background:#444;
|
border:1px solid #aaa;
|
border-radius:5px;
|
color:#eee;
|
display:inline-block;
|
font:12px "微软雅黑";
|
text-decoration:none;
|
}
|
</style>
|
</head>
|
|
<body>
|
<form id="crCode">
|
<table style="font:12px '微软雅黑'; width:90mm; height:24mm;margin-top:-3px;margin-left:-5px;">
|
<tr>
|
<td rowspan="6"><img src="${base}/upload/qrCode/${detail.SEACHCODE}.png" style="width:23.2mm;height:23.2mm" alt="" /></td>
|
<td colspan="2" width="386" align="left">编号:${detail.SEACHCODE}/${detail.MEMBERCODE}</td>
|
</tr>
|
<tr><td colspan="2" align="left">名称:${detail.CINAME}</td></tr>
|
<tr><td colspan="2" align="left">负责人:${detail.EMPLOYEE_NAME}</td></tr>
|
<tr><td colspan="2" align="left">位置:${detail.POSITION}</td></tr>
|
<tr><td colspan="2" align="left">${Constants.company_name}服务热线:${Constants.company_tell}</td></tr>
|
</table>
|
</form>
|
</body>
|
</html>
|