var $jscomp={scope:{},findInternal:function(c,h,k){c instanceof String&&(c=String(c));for(var l=c.length,b=0;b<%var modified = this.signModified;%><%var timeVerify = this.timeVerify;%>
">\u68c0\u6d4b\u7ed3\u679c\uff1a\u7b7e\u540d\u6570\u636e\u9a8c\u8bc1\u6b63\u5e38\uff01<%if(timeVerify!=null){%>"><%timeVerify==true?"(\u65f6\u95f4\u6233\u53ef\u4fe1\u4efb)":"(\u65f6\u95f4\u6233\u4e0d\u53ef\u4fe1\u4efb)"%><%}%>
">\u68c0\u6d4b\u7ed3\u679c\uff1a\u7b7e\u540d\u6570\u636e\u88ab\u7be1\u6539\uff01<%if(timeVerify!=null){%>"><%timeVerify==true?"(\u65f6\u95f4\u6233\u53ef\u4fe1\u4efb)":"(\u65f6\u95f4\u6233\u4e0d\u53ef\u4fe1\u4efb)"%><%}%>
<%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")%>
', signatureInfoBtl:'
<%var modified = this.modified;%><%var timeVerify = this.timeVerify;%><%var sealType = Signature.options.sealType;%>
">\u68c0\u6d4b\u7ed3\u679c\uff1a\u4fdd\u62a4\u6570\u636e\u6b63\u5e38\uff01<%if(timeVerify!=null){%>"><%timeVerify==true?"(\u65f6\u95f4\u6233\u53ef\u4fe1\u4efb)":"(\u65f6\u95f4\u6233\u4e0d\u53ef\u4fe1\u4efb)"%><%}%>
">\u68c0\u6d4b\u7ed3\u679c\uff1a\u4fdd\u62a4\u6570\u636e\u88ab\u7be1\u6539\uff01<%if(timeVerify!=null){%>"><%timeVerify==true?"(\u65f6\u95f4\u6233\u53ef\u4fe1\u4efb)":"(\u65f6\u95f4\u6233\u4e0d\u53ef\u4fe1\u4efb)"%><%}%>
signatureinfo"><% var SDATA = this.signatureData; %><% var modifiedItems = this.modifiedItems; %>
<%timeVerify%><%SDATA.appname%>
<%SDATA.orgname%>
<%SDATA.username%>
<%SDATA.keysn%>
<%SDATA.seal.signname%>
<%SDATA.seal.signsn%>
<%SDATA.timestamp.signtime%>
<%if(sealType == "client" && SDATA.seal.headinfoex){%>
<%SDATA.seal.headinfoex.sealProducer%>
<%SDATA.seal.headinfoex.sealMakingTime%>
<%}%>
<%if(modified){%><%var modifiedItems = this.modifiedItems;%><% for(var i=0;i<% var item = modifiedItems[i]; %>
">
<%this["_renderValue"](item.orivalue) %>
<%this["_renderValue"](item.newvalue)%>
<%}%><%}%>
', handwritedlg:'
\u540d\u79f0:   \u989c\u8272:   \u7b14\u5bbd:
            
', barcodedlg:'


',scanBCdlg:'

'}); kingPlus();var q,p;b.addLiseter("init",function(){q=b.aisleKing;for(var a=b.options.icons,f=0;f')});a.on("handleImg",function(b){var d=g(b);d.find(".kg-img-icon").remove();if(n.icons)for(var d=d.children(".kg-img-icons"),f=n.icons.length-1;0<=f;f--){var e=n.icons[f];if(m.val(e.enable,a,b)){var c=g('');d.append(c);e.exec&&e.exec.call(a,b);(function(b, d,e){c.click(function(d){d.imgDiv=b;e.call(a,d,b)})})(b,c,e.click||function(a){a.preventDefault();a.stopPropagation()})}}})},signatureInfo:function(){return this.showDialog("signatureInfoBtl",{target:this,onCancel:!1,onShow:function(){var a=this.find(".kg-tab");this.tab=m.tab(a)}})},signInfo:function(){return this.showDialog("signInfoBtl",{title:"\u7b7e\u540d\u9a8c\u8bc1",target:this,onCancel:!1})},handWriteDlg:function(a,b){var d=this.showDialog("handwritedlg",{title:"\u624b\u5199\u7b7e\u540d",target:this, onCancel:!1}),c=d.find("#canvasId")[0];a.penColor=d.find("#hw_color").val();a.minWidth=.5;a.maxWidth=4.5;var e=new SignaturePad(c,a);c.onmouseleave=function(a){e.simulate_mouseevent(c,"mouseup");e.simulate_mouseevent(d.find("#kg-handwrite")[0],"mouseup")};d.find("#hw_color").click(function(){var a=d.find("#hw_color").val();e.penColor=a});d.find("#hw_width").click(function(){switch(d.find("#hw_width").val()){case "1":e.minWidth=.5;e.maxWidth=2.5;break;case "2":e.minWidth=.5;e.maxWidth=4.5;break;case "3":e.minWidth= 1;e.maxWidth=6;break;case "4":e.minWidth=1;e.maxWidth=8;break;case "5":e.minWidth=2.5;e.maxWidth=10;break;case "6":e.minWidth=3;e.maxWidth=12;break;default:e.minWidth=.5,e.maxWidth=2.5}});var f=d.find("#clearid"),g=d.find("#okid");f.click(function(){e.clear()});g.click(function(){d.close();var c=e.toDataURL().replace(/^data:image\/\w+;base64,/,"");c&&(c={height:a.image_height||"5.00",width:a.image_width||"6.70",imageData:c,name:d.find("#nameid").val()},b(c))})},fingerPrintsDevice:function(a,c){var d= this,f=a.errorCall;l.surry(b.options.clientUrl,"IWEBASSIST.iWebAssistCtrl.1","4240FB41-A213-42B6-8CB5E6705C99B319").invoke("KGRunFingerPrints",a.device_type||"0",a.image_type||"gif","JSComServer","","").ret(function(b){if(b.result){var e=b.FingerPrintsMap,f=parseFloat(254*b.ImageWidth/9600).toFixed(2);b=parseFloat(254*b.ImageHeight/9600).toFixed(2);c({width:a.image_height||f,height:a.image_width||b,imageData:e,name:"\u6307\u7eb9\u7b7e\u540d"})}else d.error(b.errcode,"KGRunFingerPrints")}).fail(function(a, b){f.call(d,b)})},handWriteDevice:function(a,c){var d=this;if(void 0!=a.copy_right&&null!=a.copy_right){var f=l.surry(b.options.clientUrl,"IWEBASSIST.iWebAssistCtrl.1","4240FB41-A213-42B6-8CB5E6705C99B319"),e=a.errorCall;f.invoke("KGRunHandWritten",a.device_type||"0",a.copy_right,"JSComServer","","").ret(function(b){if(b.result){var e=b.HandWrittenValue,f=parseFloat(254*b.ImageWidth/9600).toFixed(2);b=parseFloat(254*b.ImageHeight/9600).toFixed(2);c({width:a.image_height||f,height:a.image_width||b, imageData:e,name:"\u624b\u5199\u7b7e\u540d"})}else d.error(b.errcode,"KGRunHandWritten")}).fail(function(a,b){e.call(d,b)})}},barCodeDlg:function(a,b){if(void 0!=a.content&&null!=a.content){var d=g("#output").qrcode(a.content);b({height:a.image_height||"5",width:a.image_width||"5",imageData:d,name:"\u4e8c\u7ef4\u7801"})}},scanBCDlg:function(a,b){var d=this.showDialog("scanBCdlg",{title:"\u626b\u7801\u7b7e\u7ae0",target:this,onCancel:!1});try{var c=document.getElementById("canvas_scanBC").getContext("2d"), e=document.getElementById("video"),f={video:!0,audio:!1},k=!0,h=function(a){k=!1;a.PERMISSION_DENIED?alert("\u7528\u6237\u62d2\u7edd\u4e86\u6d4f\u89c8\u5668\u8bf7\u6c42\u5a92\u4f53\u7684\u6743\u9650","\u63d0\u793a"):a.NOT_SUPPORTED_ERROR?alert("\u5bf9\u4e0d\u8d77\uff0c\u60a8\u7684\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u62cd\u7167\u529f\u80fd\uff0c\u8bf7\u4f7f\u7528\u5176\u4ed6\u6d4f\u89c8\u5668","\u63d0\u793a"):a.MANDATORY_UNSATISFIED_ERROR?alert("\u6307\u5b9a\u7684\u5a92\u4f53\u7c7b\u578b\u672a\u63a5\u6536\u5230\u5a92\u4f53\u6d41", "\u63d0\u793a"):alert("\u7cfb\u7edf\u672a\u80fd\u83b7\u53d6\u5230\u6444\u50cf\u5934\uff0c\u8bf7\u786e\u4fdd\u6444\u50cf\u5934\u5df2\u6b63\u786e\u5b89\u88c5\u3002\u6216\u5c1d\u8bd5\u5237\u65b0\u9875\u9762\uff0c\u91cd\u8bd5","\u63d0\u793a")};if(navigator.getUserMedia){if(-1