var printState = 0,LODOP = perCerPrintUtil.getLodop();
        LODOP.PRINT_INITA("0mm", 0, "210mm", "148.51mm", "宁夏保安员证书打印");
        LODOP.SET_PRINT_MODE("BKIMG_IN_PREVIEW", 1);
        LODOP.PRINT_INITA("0mm", 0, "210mm", "148.51mm", "宁夏保安员证书打印");
        LODOP.SET_PRINT_MODE("PRINT_NOCOLLATE", 1);
        LODOP.ADD_PRINT_TEXT(219, 430, 133, 20, detail.xm);
        LODOP.SET_PRINT_STYLEA(0, "FontSize", 12);
        LODOP.SET_PRINT_STYLEA(0, "Bold", 1);
        LODOP.ADD_PRINT_TEXT(277, 428, 214, 56, detail.address == null ? '' : detail.address.substring(0, 9) + "\r\n" + detail.address.substring(9, detail.address.length));
        LODOP.SET_PRINT_STYLEA(2, "ReadOnly", 0);
        LODOP.SET_PRINT_STYLEA(0, "FontSize", 12);
        LODOP.SET_PRINT_STYLEA(0, "Bold", 1);
        LODOP.SET_PRINT_STYLEA(0, "LineSpacing", 3);
        LODOP.ADD_PRINT_TEXT(248, 429, 163, 20, changeBirthFormat(getBirthdayFromIDNo(detail.idnum)));
        LODOP.SET_PRINT_STYLEA(0, "FontSize", 12);
        LODOP.SET_PRINT_STYLEA(0, "Bold", 1);
        LODOP.SET_PRINT_STYLEA(0, "LetterSpacing", -1);
        LODOP.ADD_PRINT_TEXT(363, 450, 239, 20, detail.idnum);
        LODOP.SET_PRINT_STYLEA(0, "FontSize", 12);
        LODOP.SET_PRINT_STYLEA(0, "Bold", 1);
        LODOP.SET_PRINT_STYLEA(0, "LetterSpacing", -1);
        LODOP.ADD_PRINT_TEXT(308, 183, 200, 20, (detail.fzrq == null ? "" : changeBirthFormatFZRQ(detail.fzrq.substring(0, 10))));
        LODOP.SET_PRINT_STYLEA(0, "FontSize", 12);
        LODOP.SET_PRINT_STYLEA(0, "Bold", 1);
        LODOP.SET_PRINT_STYLEA(0, "LetterSpacing", -1);
        LODOP.ADD_PRINT_TEXT(365, 124, 186, 20, detail.zsbh);
        LODOP.SET_PRINT_STYLEA(0, "FontSize", 16);
        LODOP.SET_PRINT_STYLEA(0, "Bold", 1);
        LODOP.SET_PRINT_STYLEA(0, "LetterSpacing", -2);
        LODOP.ADD_PRINT_TEXT(61, 107, 111, 20, detail.xm);
        LODOP.SET_PRINT_STYLEA(0, "FontSize", 16);
        LODOP.SET_PRINT_STYLEA(0, "Bold", 1);
        LODOP.ADD_PRINT_IMAGE(45, 419, "26.01mm", "31.99mm", detail.photo);
        LODOP.SET_PRINT_STYLEA(0, "Stretch", 2);
        LODOP.ADD_PRINT_IMAGE(136, 280, 99, 99, detail.qrcode);
        LODOP.SET_PRINT_STYLEA(0, "Stretch", 2);
        //谷歌浏览器
        if (LODOP.CVERSION) {
            CLODOP.On_Return = function (TaskID, Value) {
                //打印状态
                printState = Value;
                if(printState >= 1){
                    perCerPrintUtil.updatePrinted(detail.securitypersonid,detail.snapshotId);
                    //查询刷新
                    setTimeout("refresh();",1000);
                    setTimeout("layer.closeAll();",1500);
                }
            };
        }
        printState = LODOP.PRINT_SETUP();