var paramjson=null;var LODOP;var printWidth,printHeight;function setLabelDisplayArea(w,p,c,z){var o=w.rows[0];paramjson=JSON.parse(o.paramjson);var v=paramjson.grid;var m=paramjson.propertygrid;var a,b,k,d,y,h;if(paramjson.propertygrid){for(var t=0;t";n+="";n+="";n+=""}$(".labelDisplayArea").html(n);if(c){if(z&&z==1){printDataBox(c)}else{printPerviewBox(c)}}}function getLabelDataByIndex(r,h){var g="";if(r){for(var e=0;e0){a+="margin-left:"+parseInt(h[e].fldx)+"mm;";l+="margin-left:"+parseInt(h[e].fldx)+"mm;"}if(parseInt(h[e].fldy)>0){a+="margin-top:"+h[e].fldy+"mm;";l+="margin-top:0mm;"}if(parseInt(h[e].fszie)>0){a+="font-size:"+parseInt(h[e].fszie)+"px;";l+="font-size:"+parseInt(h[e].fszie)+"px;"}if(h[e].aligntype){a+="text-align:"+h[e].aligntype+";";l+="text-align:"+h[e].aligntype+";"}if(h[e].fweight){a+="font-weight:"+h[e].fweight+";";l+="font-weight:"+h[e].fweight+";"}if(b>0){l+="margin-top:"+b+"mm;"}var n=h[e].flds;var o=parseInt(h[e].fldn);if(q){if(n.length>0){var f=q.split(n);if(o>0){for(var d=0;d"+f[d]+""}else{if(d>0&&d"+f[d]+""}else{if(d>0&&d==o){var m="";for(var c=d;c"+m+""}}}}}else{for(var d=0;d0){g+="
  • "+f[d]+"
  • "}}}}else{g+=bulidQrcode(h,e,r,a,q)}}else{g+=bulidQrcode(h,e,r,a,q)}}}return g}function bulidQrcode(f,d,j,a,h){var e="";if(f[d].code=="barcode"){var c=j.barcode;if(c&&parseInt(f[d].qrcode)>0){if(paramjson.barcodefs){a+="font-size: "+paramjson.barcodefs+"mm"}e+="
  • ";if(paramjson.barcodeName){e+="
    "+paramjson.barcodeName+"
    "}var g="";if(paramjson.barcodePadding){g="padding:"+paramjson.barcodePadding+";"}var b=2;if(paramjson.barcodewidth){b=paramjson.barcodewidth}e+="
    ';e+='