";
- tableHtml += ""+name+"";
-// tableHtml += " ";
+
+ var css="table{margin:0px;padding:0px;width: 100%; height: 100%; border-collapse: collapse;table-layout:fixed;}";
+ css+="tr{padding:0px;margin:0px;height:20px;}td{padding:0px;margin:0px;border:1px solid black;font-size: 14px;text-align:center;}";
+ css+="td.name{font-size: 20px;font-weight:bold;}td.thin{width:10%;text-align:right;}td.fat{width:40%;text-align:left;}td.inner{border-width:0px;}";
+ css+="table.chld td{border-top-width: 0px;text-align:center;}table.chld td.fat{width:35%;}table.chld td.thin{width:11%;}table.chld td.first{width:8%;}";
+ var tableHtml ="";
+ tableHtml +="";
+ tableHtml += "";
+ tableHtml += ""+name+"";
tableHtml += " | ";
tableHtml += " ";
- tableHtml += "";
- tableHtml += "住院号: | ";
- tableHtml += ""+hospitalNumber+" | ";
- tableHtml += "床号: | ";
- tableHtml += ""+bedNumber+" | ";
+ tableHtml += " ";
+ tableHtml += "住院号: | ";
+ tableHtml += ""+hospitalNumber+" | ";
+ tableHtml += "床号: | ";
+ tableHtml += ""+bedNumber+" | ";
tableHtml += " ";
- tableHtml += "";
- tableHtml += "病人姓名: | ";
- tableHtml += ""+patient+" | ";
- tableHtml += "医生姓名: | ";
- tableHtml += ""+doctor+" | ";
+ tableHtml += " ";
+ tableHtml += "病人姓名: | ";
+ tableHtml += ""+patient+" | ";
+ tableHtml += "医生姓名: | ";
+ tableHtml += ""+doctor+" | ";
tableHtml += " ";
- tableHtml += "";
- tableHtml += "厂家: | ";
- tableHtml += ""+supplierName+" | ";
+ tableHtml += " ";
+ tableHtml += "厂家: | ";
+ tableHtml += ""+supplierName+" | ";
tableHtml += " ";
var toolsAmount = 0;
@@ -912,24 +917,24 @@
toolsAmount += parseInt(gds.amount);
}
}
- tableHtml += "";
- tableHtml += "工具件数: | ";
- tableHtml += ""+toolsAmount+" | ";
+ tableHtml += " ";
+ tableHtml += "工具件数: | ";
+ tableHtml += ""+toolsAmount+" | ";
tableHtml += " ";
- var goodsTable = "";
- goodsTable += "";
+ var goodsTable = "";
+ goodsTable += "";
var rowCount = parseInt((goodsTableItem.length + 3) / 2); //有一行表头
if(goodsTableItem.length == 0){
//没有植入物
rowCount = 2;//一行表头,一行空行
}
var minRowCount = 10;
- goodsTable += "植入物 | "
- goodsTable += "材料名称 | ";
- goodsTable += "数量 | ";
- goodsTable += "材料名称 | ";
- goodsTable += "数量 | ";
+ goodsTable += "植入物 | "
+ goodsTable += "材料名称 | ";
+ goodsTable += "数量 | ";
+ goodsTable += "材料名称 | ";
+ goodsTable += "数量 | ";
goodsTable += " ";
for(var i = 0; i < goodsTableItem.length;i+=2){
var gds1 = goodsTableItem[i];
@@ -942,19 +947,19 @@
gd2Name = gds2.name;
gd2Amount = gds2.amount;
}
- goodsTable += "";
- goodsTable += ""+getDefaultString(gd1Name," ")+" | ";
- goodsTable += ""+getDefaultString(gd1Amount," ")+" | ";
- goodsTable += ""+getDefaultString(gd2Name," ")+" | ";
- goodsTable += ""+getDefaultString(gd2Amount," ")+" | ";
+ goodsTable += " ";
+ goodsTable += ""+getDefaultString(gd1Name," ")+" | ";
+ goodsTable += ""+getDefaultString(gd1Amount," ")+" | ";
+ goodsTable += ""+getDefaultString(gd2Name," ")+" | ";
+ goodsTable += ""+getDefaultString(gd2Amount," ")+" | ";
goodsTable += " ";
}
function addEmptyRow(){
- goodsTable += "";
- goodsTable += " | ";
- goodsTable += " | ";
- goodsTable += " | ";
- goodsTable += " | ";
+ goodsTable += " ";
+ goodsTable += " | ";
+ goodsTable += " | ";
+ goodsTable += " | ";
+ goodsTable += " | ";
goodsTable += " ";
}
if(goodsTableItem.length == 0){
@@ -970,11 +975,11 @@
goodsTable += " ";
tableHtml += " ";
- tableHtml += ""+goodsTable+" | ";
+ tableHtml += ""+goodsTable+" | ";
tableHtml += " ";
- tableHtml += " ";
- LODOP.ADD_PRINT_HTM(0,0,"100%","100%",""+tableHtml+"");
+ tableHtml += " ";
+ LODOP.ADD_PRINT_HTM(0,0,"100%","100%",tableHtml);
// LODOP.SET_PRINT_MODE("PRINT_PAGE_PERCENT","Full-Page");
}
var foreignTousseLargeLabelConfig = {
|