Files
jshERP/erp_web/js/print/print_form.html
2020-02-15 00:37:43 +08:00

35 lines
1.6 KiB
Java
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!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>
<link rel="stylesheet" type="text/css" href="/js/easyui/themes/default/easyui.css"/>
<link rel="stylesheet" type="text/css" href="/js/easyui/themes/icon.css"/>
<script src="/js/jquery-1.8.0.min.js"></script>
<script src="/js/easyui/jquery.easyui.min.js"></script>
<script src="/js/easyui/locale/easyui-lang-zh_CN.js"></script>
<style type="text/css">
body{background:white;margin:0px;padding:0px;font-size:13px;text-align:left;}
.pb th{font-weight:bold;text-align:center;border:1px solid #333333;padding:2px;}
.pb td{border:1px solid #333333;padding:2px;}
#dlg-buttons-show {
visibility: hidden;
}
  </style>
</head>
<body>
<script type="text/javascript">
var tableString = localStorage.getItem("tableString");
document.write(tableString);
var rowLen = $(".datagrid .datagrid-view2 .datagrid-body .datagrid-row").length;
if(rowLen > 7) {
var allHeight = (rowLen+2)*25;
var rowHeight = rowLen*25;
$(".datagrid .datagrid-wrap").height(allHeight);
$(".datagrid .datagrid-view").height(allHeight);
$(".datagrid .datagrid-view1 .datagrid-body").height(rowHeight);
$(".datagrid .datagrid-view2 .datagrid-body").height(rowHeight);
}
window.print();
</script>
</body>
</html>