You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
2.2 KiB
58 lines
2.2 KiB
LODOP.SET_PRINT_PAGESIZE(1,"5cm","3cm","");
|
|
var rheaderHeightpy;
|
|
var rfooterHeightpy;
|
|
var pagewidth=5;
|
|
var pageheight=3;
|
|
var leftmargin=0;
|
|
var rightmargin=0;
|
|
var topmargin=0;
|
|
var bottommargin=0;
|
|
var top;
|
|
var left;
|
|
var width;
|
|
var height;
|
|
var top2;
|
|
var left2;
|
|
rheaderHeightpy=parseFloat(3.20146)-parseFloat(1.40229)-parseFloat(0.582083);
|
|
top = parseFloat(1.40229)+"cm";
|
|
left = parseFloat(leftmargin)+parseFloat(0)+"cm";
|
|
width = 4.78896+"cm";
|
|
height = (parseFloat(pageheight)-parseFloat(topmargin)-parseFloat(bottommargin)-parseFloat(1.40229))+"cm";
|
|
LODOP.ADD_PRINT_TEXT(top,left,width,height,"医疗机构:$choscode@num@$");
|
|
LODOP.SET_PRINT_STYLEA(0,"FontName","宋体");
|
|
LODOP.SET_PRINT_STYLEA(0,"FontSize","9.000000000000");
|
|
top = parseFloat(2.40771)+"cm";
|
|
left = parseFloat(leftmargin)+parseFloat(0)+"cm";
|
|
width = 2.77813+"cm";
|
|
height = 0.582083+"cm";
|
|
LODOP.ADD_PRINT_TEXT(top,left,width,height,"时间:$dysj@num@$");
|
|
LODOP.SET_PRINT_STYLEA(0,"FontName","宋体");
|
|
LODOP.SET_PRINT_STYLEA(0,"FontSize","9.000000000000");
|
|
top = parseFloat(1.89917)+"cm";
|
|
left = parseFloat(leftmargin)+parseFloat(2.30771)+"cm";
|
|
width = 2.6+"cm";
|
|
height = 0.582083+"cm";
|
|
LODOP.ADD_PRINT_TEXT(top,left,width,height,"医生姓名:$name@num@@ysxm$");
|
|
LODOP.SET_PRINT_STYLEA(0,"FontName","宋体");
|
|
LODOP.SET_PRINT_STYLEA(0,"FontSize","9.000000000000");
|
|
top = parseFloat(1.89917)+"cm";
|
|
left = parseFloat(leftmargin)+parseFloat(0)+"cm";
|
|
width = 2.4+"cm";
|
|
height = 0.582083+"cm";
|
|
LODOP.ADD_PRINT_TEXT(top,left,width,height,"样本类型:$yblx@num@@yblx$");
|
|
LODOP.SET_PRINT_STYLEA(0,"FontName","宋体");
|
|
LODOP.SET_PRINT_STYLEA(0,"FontSize","9.000000000000");
|
|
top = parseFloat(2.40771)+"cm";
|
|
left = parseFloat(leftmargin)+parseFloat(2.90458)+"cm";
|
|
width = 1.79917+"cm";
|
|
height = 0.582083+"cm";
|
|
LODOP.ADD_PRINT_TEXT(top,left,width,height,"试管:$sglx@num@@sglx$");
|
|
LODOP.SET_PRINT_STYLEA(0,"FontName","宋体");
|
|
LODOP.SET_PRINT_STYLEA(0,"FontSize","9.000000000000");
|
|
top = parseFloat(0.000)+"cm";
|
|
left = parseFloat(leftmargin)+parseFloat(0.0000)+"cm";
|
|
width = 4.97729+"cm";
|
|
height = 1.19063+"cm";
|
|
LODOP.ADD_PRINT_BARCODE(top,left,width,height,"128auto","$btmh@num@$");
|
|
LODOP.SET_PRINT_STYLEA(0,"NotOnlyHighPrecision",1);
|
|
rfooterHeightpy=parseFloat(pageheight)-parseFloat(bottommargin);
|
|
|