var $jscomp={scope:{},findInternal:function(d,f,g){d instanceof String&&(d=String(d));for(var m=d.length,n=0;n=this.delta&&30>Math.abs(this.preTapPosition.x-this.x1)&&30> Math.abs(this.preTapPosition.y-this.y1));this.preTapPosition.x=this.x1;this.preTapPosition.y=this.y1;this.last=this.now;var b=this.preV;if(1a.touches.length&& this.multipointEnd(a);this.x2&&30=Math.abs(c-e)?0<%var modified = this.modified;%><%var canSign = this.signatureData.signMeta|| this.canSign(); %>
signatureinfo"><% var SDATA = this.signatureData; %><% var modifiedItems = this.modifiedItems; %>
<%modified?"\u4fdd\u62a4\u6570\u636e\u88ab\u7be1\u6539\uff01":"\u4fdd\u62a4\u6570\u636e\u6b63\u5e38\uff01"%>
<%SDATA.appname%>
<%SDATA.orgname%>
<%SDATA.username%>
<%SDATA.keysn%>
<%SDATA.seal.signname%>
<%SDATA.seal.signsn%>
<%SDATA.timestamp.signtime%>
<%if(this.icon_remove == null || this.icon_remove == true){%>
<%}%>
<%if(canSign){%>
<%var noCertInfo = !this.signatureData.signMeta; %><%if(!noCertInfo){%><%var certinfo = this.signatureData.signMeta.certinfo; %>
V<%certinfo.version%>
<%certinfo.serialNumber%>
<%certinfo.algName%>
<%certinfo.issuerDN%>
<%certinfo.subjectDN%>
<%kinggrid.Utils.formatDate(new Date(certinfo.notBefore) , "yyyy-MM-dd hh:mm:ss")%>
<%kinggrid.Utils.formatDate(new Date(certinfo.notAfter) , "yyyy-MM-dd hh:mm:ss")%>
<%}else{%>
----------------------------------------------------------------------------------------------------------------------
\u5f53\u524d\u6587\u6863\u672a\u505a\u6570\u5b57\u7b7e\u540d
--------------------------------------------------------------------
<%}%><%if(noCertInfo){%>
<%}else{%>
<%}%>
<%}%>
', handwritedlg:'
\u540d\u79f0:   \u989c\u8272:   \u7b14\u5bbd:
', barcodedlg:'


',scanbarcodedlg:'

'}); h._create.prototype.onshowSealsDialog=function(a){var b=this;a.find(".arrow").hide();a=a.find("#kg-switcher");b.switcher.animate=!1;new t(a[0],{swipe:function(a){b.switcher["Left"===a.direction?"swipePrev":"swipeNext"]()},tap:function(){b.switcher.swipeNext()}})};h.prototype.onhandleImg=function(a){var b=this,c=function(a){b.verify();b.signatureInfo()},e=function(){if(void 0!==h.options.extra){var b=a.attributes.signatureid.nodeValue;if(b&&(b=h.options.extra[b],null!=b))return b.icon_move()}}(),e= void 0==e?!0:e;b.canMove(a)&&e?p.addEvent(a,"mousedown touchstart",function(e){e.originalEvent=e;b.runMove(e,a,function(a){a||c()});e.preventDefault();e.stopPropagation()}):p.addEvent(a,"click",c)};h.prototype.signatureInfo=function(){var a=this;return a.showDialog("infoBtl",{title:!1,target:a,onShow:function(){var b=this,c=b.find(".kg-tab");b.tab=p.tab(c);if(c=b.find("#verifysign_"+a.signatureid)[0])c.onclick=function(){a.verifySignData(function(b){b.result?h.alert(q.msg("normal_signdata","KG_MSG")): b.errcode?a.error(b):h.alert(q.msg("modify_signdata","KG_MSG"))})};if(c=b.find("#sign_"+a.signatureid)[0])c.onclick=function(){a.signSignature(function(a){a.result&&(h.alert(q.msg("success_signdata","KG_MSG")),b.remove())})};if(null==a.icon_remove||1==a.icon_remove)b.find("#revoke_"+a.signatureid)[0].onclick=function(){a.revokeSignature(function(a){a.result&&b.remove()})}}})};h.prototype.handWriteDlg=function(a,b){if(a.width&&a.height){var c=h.options.template.handwritedlg,e=c.substring(0,c.indexOf("width=")+ 6),d=c.substring(c.indexOf("px "),c.length),e=e+a.width,e=e+d,c=e.substring(0,e.indexOf("height=")+7),d=e.substring(e.indexOf("px>"),e.length),c=c+a.height;h.options.template.handwritedlg=c+d}var k=this.showDialog("handwritedlg",a),c=document.getElementById("canvasId");a.penColor=document.getElementById("hw_color").value;a.minWidth=.5;a.maxWidth=4.5;var l=new SignaturePad(c,a),f=document.getElementById("hw_color");f.onchange=function(){l.penColor=f.value};var g=document.getElementById("hw_width"); g.onchange=function(){switch(g.value){case "1":l.minWidth=.5;l.maxWidth=2.5;break;case "2":l.minWidth=.5;l.maxWidth=4.5;break;case "3":l.minWidth=1;l.maxWidth=6;break;case "4":l.minWidth=1;l.maxWidth=8;break;case "5":l.minWidth=2.5;l.maxWidth=10;break;case "6":l.minWidth=3;l.maxWidth=12;break;default:l.minWidth=.5,l.maxWidth=2.5}};c=document.getElementById("clearid");e=document.getElementById("okid");c&&(c.onclick=function(){l.clear()});e&&(e.onclick=function(){k.close();var c=l.toDataURL().replace(/^data:image\/\w+;base64,/, "");c&&(c={height:a.image_height||"3.00",width:a.image_width||"7.00",imageData:c,name:document.getElementById("nameid").value},b(c),k.remove())})};h.prototype.barCodeDlg=function(a,b){var c=this.showDialog("barcodedlg",{title:"\u4e8c\u7ef4\u7801",target:this,onCancel:!1}),e=document.getElementById("bc_clearid"),d=document.getElementById("bc_okid"),k=document.getElementById("bcId");e&&(e.onclick=function(){k.value=""});d&&(d.onclick=function(){c.close();var d=r("#output").qrcode(k.value);b({height:a.image_height|| "5",width:a.image_width||"5",imageData:d,name:"\u4e8c\u7ef4\u7801"})})};h.prototype.scanBCDlg=function(a,b){var c={title:q.msg("scanBCSignature","KG_TITLE"),target:this,onCancel:!1},d=this.showDialog("scanbarcodedlg",c);try{var f=document.getElementById("qr-canvas").getContext("2d"),k=document.getElementById("html5_qrcode_video"),c={video:!0,audio:!1};window.navigator.getUserMedia=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia;window.URL= window.URL||window.webkitURL||window.mozURL||window.msURL||window.oURL;window.navigator.getUserMedia&&window.navigator.getUserMedia(c,function(a){k.src=window.URL.createObjectURL(a);k.play()},function(a){alert("\u51fa\u9519\u4fe1\u606f: "+a.name)});var g=setInterval(function(){if(f){f.drawImage(k,0,0,640,480);var c=f.getImageData(0,0,640,480);if(c=jsQR.decodeQRFromImage(c.data,c.width,c.height))d.close(),window.clearInterval(g),a.content=c,c={height:a.image_height||"5",width:a.image_width||"5",imageData:r("#output").qrcode(c), name:"\u4e8c\u7ef4\u7801"},b(c)}},2E3)}catch(u){printHtml("\u6d4f\u89c8\u5668\u4e0d\u652f\u6301HTML5 CANVAS")}};h.prototype.onshowSealsDialog_PW=function(a){var b=this.keysn||this.keyData.keysn;"true"==m("ck")&&a.find("#kg-remenberPwd").attr("checked","checked");if(a.find("#kg-remenberPwd").is(":checked")){var c=m("ksn");b==c&&(a=a.find("#kg-password"),b=m("pwd"),h.options.pw_enc_save&&(b=p.Base64.of().decode(b)),null!=b?a.val(b):a.val("123"))}};h.prototype.onexecSuccess=function(a,b,c){var d=this.keysn|| this.keyData.keysn;if(c){var f=m("ksn");a=h.options.pw_timeout;c=function(a){if(d!=f){if("undefined"==typeof a||0>a.indexOf("s")&&0>a.indexOf("h")&&0>a.indexOf("d"))a="s1800";h.options.pw_enc_save&&(b=p.Base64.of().encode(b));g("ksn",d,a);g("pwd",b,a);g("ck","true",a)}};h.options.pw_server_timeout?this.sealService.getPwdSaveTime(c,a):c(a)}else n("ksn"),n("pwd"),n("ck")};d=kingPlus();p.extend(d.alertConfig,{cancelDisplay:!0,quickClose:!1,backdropOpacity:.1});p.extend(d.loadingConfig,{cancelDisplay:!0, quickClose:!1,backdropOpacity:.1});p.extend(d.dialogConfig,{cancelDisplay:!1,quickClose:!0});return h}); // V1.0.0.340 //# sourceMappingURL=c:/signature.pc.min.map