var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(f,H,E){f instanceof String&&(f=String(f));for(var Y=f.length,J=0;J<Y;J++){var ma=f[J];if(H.call(E,ma,J,f))return{i:J,v:ma}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(f,H,E){if(f==Array.prototype||f==Object.prototype)return f;f[H]=E.value;return f};$jscomp.getGlobal=function(f){f=["object"==typeof globalThis&&globalThis,f,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var H=0;H<f.length;++H){var E=f[H];if(E&&E.Math==Math)return E}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);
$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(f,H){var E=$jscomp.propertyToPolyfillSymbol[H];if(null==E)return f[H];E=f[E];return void 0!==E?E:f[H]};
$jscomp.polyfill=function(f,H,E,Y){H&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(f,H,E,Y):$jscomp.polyfillUnisolated(f,H,E,Y))};$jscomp.polyfillUnisolated=function(f,H,E,Y){E=$jscomp.global;f=f.split(".");for(Y=0;Y<f.length-1;Y++){var J=f[Y];if(!(J in E))return;E=E[J]}f=f[f.length-1];Y=E[f];H=H(Y);H!=Y&&null!=H&&$jscomp.defineProperty(E,f,{configurable:!0,writable:!0,value:H})};
$jscomp.polyfillIsolated=function(f,H,E,Y){var J=f.split(".");f=1===J.length;Y=J[0];Y=!f&&Y in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var ma=0;ma<J.length-1;ma++){var Ba=J[ma];if(!(Ba in Y))return;Y=Y[Ba]}J=J[J.length-1];E=$jscomp.IS_SYMBOL_NATIVE&&"es6"===E?Y[J]:null;H=H(E);null!=H&&(f?$jscomp.defineProperty($jscomp.polyfills,J,{configurable:!0,writable:!0,value:H}):H!==E&&(void 0===$jscomp.propertyToPolyfillSymbol[J]&&(E=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[J]=
$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(J):$jscomp.POLYFILL_PREFIX+E+"$"+J),$jscomp.defineProperty(Y,$jscomp.propertyToPolyfillSymbol[J],{configurable:!0,writable:!0,value:H})))};$jscomp.polyfill("Array.prototype.find",function(f){return f?f:function(H,E){return $jscomp.findInternal(this,H,E).v}},"es6","es3");$jscomp.polyfill("Object.is",function(f){return f?f:function(H,E){return H===E?0!==H||1/H===1/E:H!==H&&E!==E}},"es6","es3");
$jscomp.polyfill("Array.prototype.includes",function(f){return f?f:function(H,E){var Y=this;Y instanceof String&&(Y=String(Y));var J=Y.length;E=E||0;for(0>E&&(E=Math.max(E+J,0));E<J;E++){var ma=Y[E];if(ma===H||Object.is(ma,H))return!0}return!1}},"es7","es3");
$jscomp.checkStringArgs=function(f,H,E){if(null==f)throw new TypeError("The 'this' value for String.prototype."+E+" must not be null or undefined");if(H instanceof RegExp)throw new TypeError("First argument to String.prototype."+E+" must not be a regular expression");return f+""};$jscomp.polyfill("String.prototype.includes",function(f){return f?f:function(H,E){return-1!==$jscomp.checkStringArgs(this,H,"includes").indexOf(H,E||0)}},"es6","es3");
(function(){function f(){var t=this,K,x,pa,M,Z,c,Aa,Ha;this.getFileSize=function(){return Ha};this.setFileSize=function(C){Ha=C};this.getId=function(){return K};this.setId=function(C){K=C};this.getName=function(){return x};this.setName=function(C){x=C};this.getConfigId=function(){return pa};this.setConfigId=function(C){pa=C};this.getPublishId=function(){return M};this.setPublishId=function(C){M=C};this.getSendEmailsStatus=function(){return Z};this.setSendEmailsStatus=function(C){Z=C};this.getCreateTime=
function(){return c};this.setCreateTime=function(C){c=C};this.getCreateFormatTime=function(){return Aa};this.setCreateFormatTime=function(C){Aa=C};this.fromJsonObject=function(C){C&&(t.setId(C.id),t.setName(C.name),t.setConfigId(C.configId),t.setPublishId(C.publishId),t.setCreateTime(C.createTime),t.setCreateFormatTime(C.createFormatTime),t.setSendEmailsStatus(C.sendEmailsStatus),t.setFileSize(C.fileSize))};this.toJsonObject=function(){var C={};C.id=K;C.name=x;C.configId=pa;C.publishId=M;C.createTime=
c;C.sendEmailsStatus=Z;C.fileSize=Ha;return C}}function H(t,K,x,pa,M){this.getRegExp=function(){return t};this.getSmtpHost=function(){return K};this.isSSL=function(){return pa};this.getPort=function(){return M};this.getSendType=function(){return x}}function E(){var t=this,K,x,pa,M,Z,c,Aa,Ha;this.getId=function(){return K};this.setId=function(C){K=C};this.getName=function(){return x};this.setName=function(C){x=C};this.getAccount=function(){return pa};this.setAccount=function(C){pa=C};this.getPwd=function(){return M};
this.setPwd=function(C){M=C};this.getSmtpHost=function(){return Z};this.setSmtpHost=function(C){Z=C};this.isSSL=function(){return c};this.setIsSSL=function(C){c=C};this.getPort=function(){return Aa};this.setPort=function(C){Aa=C};this.setSendType=function(C){Ha=C};this.getSendType=function(){return Ha};this.doCheck=function(){if(!$.trim(x))return R.get("emailNameEmpty","\u8bf7\u8f93\u5165\u540d\u79f0\u3002");if(100<x.length)return R.get("emailNameTooLong","\u957f\u5ea6\u4e0d\u80fd\u8d85\u8fc7100\u4e2a\u5b57\u7b26\u3002");
if(!$.trim(Z))return R.get("smtpHostEmpty","\u8bf7\u8f93\u5165\u90ae\u7bb1\u670d\u52a1\u5668smtp\u3002");if(100<Z.length)return R.get("smtpHostTooLong","\u957f\u5ea6\u4e0d\u80fd\u8d85\u8fc7100\u4e2a\u5b57\u7b26\u3002");if($.trim(pa)){if(!RegExp("^[A-Za-z0-9._-\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+([.][a-zA-Z0-9._-]+)$").test(pa))return R.get("accountFormatError","\u90ae\u7bb1\u5730\u5740\u683c\u5f0f\u4e0d\u6b63\u786e\u3002");if(100<pa.length)return R.get("accountTooLong","\u957f\u5ea6\u4e0d\u80fd\u8d85\u8fc7100\u4e2a\u5b57\u7b26\u3002")}else return R.get("accountEmpty",
"\u8bf7\u8f93\u5165\u90ae\u7bb1\u5730\u5740\u3002");return $.trim(M)?100<M.length?R.get("pwdTooLong","\u957f\u5ea6\u4e0d\u80fd\u8d85\u8fc7100\u4e2a\u5b57\u7b26\u3002"):""===c?R.get("isSSLEmpty","\u8bf7\u8f93\u5165\u662f\u5426SSL\u3002"):""===Aa?R.get("portEmpty","\u8bf7\u8f93\u5165\u7aef\u53e3\u3002"):(new RegExp(/^[0-9]*[1-9][0-9]*$/)).test(Aa)?6<Aa.length?R.get("portTooLong","\u7aef\u53e3\u8fc7\u957f\uff0c\u8bf7\u8f93\u5165\u957f\u5ea6\u5c11\u4e8e6\u7684\u6b63\u6574\u6570\u3002"):""===Ha?R.get("sendTypeEmpty",
"\u90ae\u4ef6\u53d1\u9001\u65b9\u5f0f\u4e0d\u80fd\u4e3a\u7a7a\u3002"):null:R.get("portMustNum","\u7aef\u53e3\u5fc5\u987b\u4e3a\u6b63\u6574\u6570\u3002"):R.get("pwdEmpty","\u8bf7\u8f93\u5165\u90ae\u7bb1\u5bc6\u7801/\u6388\u6743\u7801\u3002")};this.toJsonObject=function(){var C={};C.id=K;C.name=x;C.account=pa;C.pwd=M;C.smtpHost=Z;C.isSSL=c;C.port=Aa;C.sendType=Ha;return C};this.fromJsonObject=function(C){C&&(t.setId(C.id),t.setName(C.name),t.setAccount(C.account),t.setPwd(C.pwd),t.setSmtpHost(C.smtpHost),
t.setIsSSL(C.isSSL),t.setPort(C.port),t.setSendType(C.sendType))}}function Y(t,K){this.toString=function(){return t};this.getValue=function(){return K}}function J(){var t=this,K,x,pa,M,Z;this.getName=function(){return K};this.setName=function(c){K=c};this.getType=function(){return x};this.setType=function(c){x=c};this.getDateFormat=function(){return pa};this.setDateFormat=function(c){pa=c};this.getSerialStartValue=function(){return M};this.setSerialStartValue=function(c){M=c};this.getSerialStepSize=
function(){return Z};this.setSerialStepSize=function(c){Z=c};this.toString=function(){var c;J.TYPE_FIXED==x?c=K:J.TYPE_DATE==x?c=R.get("nameDateStr","#1-\u7cfb\u7edf\u65e5\u671f").replace("#1",K):J.TYPE_SERIALNUM==x&&(c=R.get("nameSerialStr","#1-\u6d41\u6c34\u53f7 \u8d77\u59cb\u503c\uff1a#2\uff0c\u6b65\u957f\uff1a#3").replace("#1",K).replace("#2",M).replace("#3",Z));return c};this.check=function(){if(!$.trim(K))return R.get("nameEmpty","\u8bf7\u8f93\u5165\u540d\u79f0");if(100<K.length)return R.get("nameTooLong",
"\u957f\u5ea6\u4e0d\u80fd\u8d85\u8fc7100\u4e2a\u5b57\u7b26");if(!x)return R.get("pleaseSelectRule","\u8bf7\u9009\u62e9\u89c4\u5219");if(J.TYPE_DATE==x){if(!pa)return R.get("pleaseSelectTheDateFormat","\u8bf7\u9009\u62e9\u65e5\u671f\u683c\u5f0f")}else if(J.TYPE_SERIALNUM==x){if(!M)return R.get("serialStartValueEmpty","\u6d41\u6c34\u53f7\u8d77\u59cb\u503c\u4e0d\u80fd\u4e3a\u7a7a");var c=new RegExp(/^[0-9]*[0-9][0-9]*$$/);if(!c.test(M))return R.get("serialStartValueBeNum","\u6d41\u6c34\u53f7\u8d77\u59cb\u503c\u5fc5\u987b\u4e3a\u81ea\u7136\u6570");
if(!Z)return R.get("serialStepSizeEmpty","\u6d41\u6c34\u53f7\u6b65\u957f\u4e0d\u80fd\u4e3a\u7a7a");c=new RegExp(/^[0-9]*[1-9][0-9]*$$/);if(!c.test(Z))return R.get("serialStepSizeBeNum","\u6d41\u6c34\u53f7\u6b65\u957f\u5fc5\u987b\u4e3a\u6b63\u6574\u6570")}return null};this.toJsonObject=function(){var c={};c.name=K;c.type=x;c.dateFormat=pa;c.serialStartValue=M;c.serialStepSize=Z;return c};this.fromJsonObject=function(c){c&&(t.setName(c.name),t.setType(c.type),t.setDateFormat(c.dateFormat),t.setSerialStartValue(c.serialStartValue),
t.setSerialStepSize(c.serialStepSize))};this.copy=function(){var c=t.toJsonObject(),Aa=new J;Aa.fromJsonObject(c);return Aa}}"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.timedpush&&(com.kingdee.bos.qing.timedpush={});"undefined"==typeof com.kingdee.bos.qing.timedpush.model&&(com.kingdee.bos.qing.timedpush.model=
{});var ma=com.kingdee.bos.qing.timedpush.model,Ba=com.kingdee.bos.qing.schedule.QingSchedule,R=com.kingdee.bos.qing.framework.common.MultilanguageManager.createPackageAccessor(com.kingdee.bos.qing.timedpush),Oa=com.kingdee.bos.qing.common.Util;ma.EmailSender=E;ma.EmailNameRule=J;ma.EmailConfig=function(){var t=this,K,x,pa,M,Z,c,Aa=!0,Ha=!0,C=!0,Qa=!1,Ra,Sa,ha,v,S,l,a,sa,Ca,wa,g=!0;this.setNoOperValueMap=function(d){Ca=d};this.getNoOperValueMap=function(){return Ca};this.setTotalPushRecordSize=function(d){sa=
d};this.getTotalPushRecordSize=function(){return sa};this.setsTotalPushRecordSizeToNoFormat=function(d){};this.getId=function(){return K};this.setId=function(d){K=d};this.getTagId=function(){return x};this.setTagId=function(d){x=d};this.getSchemaSourceType=function(){return pa};this.setSchemaSourceType=function(d){pa=d};this.getPublishSourceType=function(){return M};this.setPublishSourceType=function(d){M=d};this.getNameRule=function(){return Z};this.setNameRule=function(d){Z=d};this.getSchedule=
function(){return c};this.setSchedule=function(d){c=d};this.getScheduleSwitch=function(){return Aa};this.setScheduleSwitch=function(d){Aa=d};this.isAnonymousView=function(){return Ha};this.setIsAnonymousView=function(d){Ha=d};this.isHasPermission=function(){return C};this.setIsHasPermission=function(d){C=d};this.isSourceNameNotFound=function(){return Qa};this.setIsSourceNameNotFound=function(d){Qa=d};this.getSenderId=function(){return Ra};this.setSenderId=function(d){Ra=d};this.getReceivers=function(){return Sa};
this.setReceivers=function(d){Sa=d};this.getContent=function(){return ha};this.setContent=function(d){ha=d};this.getCreateTime=function(){return v};this.setCreateTime=function(d){v=d};this.getCreateFormatTime=function(){return S};this.setCreateFormatTime=function(d){S=d};this.getPublishSourceName=function(){return l};this.setPublishSourceName=function(d){l=d};this.getPublishSourceGroupName=function(){return a};this.setPublishSourceGroupName=function(d){a=d};this.getWarningRuleName=function(){return wa};
this.setWarningRuleName=function(d){wa=d};this.getWarningRuleStatus=function(){return g};this.setWarningRuleStatus=function(d){g=d};this.getSourceName=function(){var d=com.kingdee.bos.qing.publish.model.PublishSourceType,B="";l?B=R.get(M,M)+":"+l:M==d.SUBJECT?B=R.get("subjectDeleted","\u8be5\u4e1a\u52a1\u4e3b\u9898\u5df2\u88ab\u5220\u9664"):M==d.DASHBOARD&&(B=R.get("dashboardDeleted","\u8be5\u4eea\u8868\u677f\u5df2\u88ab\u5220\u9664"));return B};this.toJsonObject=function(){var d={};d.id=K;d.tagId=
x;d.schemaSourceType=pa;d.publishSourceType=M;Z&&(d.nameRule=Z.toJsonObject());c&&(d.schedule=c.toJsonObject());d.scheduleSwitch=Aa;d.isAnonymousView=Ha;d.isHasPermission=C;d.isSourceNameNotFound=Qa;d.senderId=Ra;d.receivers=Sa;d.content=ha;d.createTime=v;d.publishSourceName=l;d.publishSourceGroupName=a;d.totalPushRecordSize=sa;var B;if(B=sa){var oa=B.substring(0,B.length-2),qa="";B=qa=B.indexOf("MB")?qa+1048576*oa:qa+1024*oa}else B=void 0;d.sTotalPushRecordSizeToNoFormat=B;d.noOperValueMap=Ca;d.warningRuleName=
wa;d.warningRuleStatus=g;return d};this.fromJsonObject=function(d){d&&(t.setId(d.id),t.setTagId(d.tagId),t.setSchemaSourceType(d.schemaSourceType),t.setPublishSourceType(d.publishSourceType),d.nameRule&&(Z=new J,Z.fromJsonObject(d.nameRule)),d.schedule&&(c=new Ba,c.fromJsonObject(d.schedule)),t.setScheduleSwitch(d.scheduleSwitch),t.setIsAnonymousView(d.isAnonymousView),t.setIsHasPermission(d.isHasPermission),t.setIsSourceNameNotFound(d.isSourceNameNotFound),t.setSenderId(d.senderId),t.setReceivers(d.receivers),
t.setContent(d.content),t.setCreateTime(d.createTime),t.setCreateFormatTime(d.createFormatTime),t.setPublishSourceName(d.publishSourceName),t.setPublishSourceGroupName(d.publishSourceGroupName),t.setTotalPushRecordSize(d.totalPushRecordSize),t.setsTotalPushRecordSizeToNoFormat(d.sTotalPushRecordSizeToNoFormat),t.setNoOperValueMap(d.noOperValueMap),t.setWarningRuleName(d.warningRuleName),t.setWarningRuleStatus(d.warningRuleStatus))};this.check=function(){return Z?c?Ra?Sa?RegExp("^(([A-Za-z0-9._-\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+([.][a-zA-Z0-9._-]+)[;,,\uff0c,\uff1b,])*([A-Za-z0-9._-\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+([.][a-zA-Z0-9._-]+)))$").test(Sa)?
2E3<Sa.length?R.get("receiversTooLong","\u957f\u5ea6\u4e0d\u80fd\u8d85\u8fc72000\u4e2a\u5b57\u7b26"):65535<ha.length?R.get("contentTooLong","\u957f\u5ea6\u4e0d\u80fd\u8d85\u8fc765535\u4e2a\u5b57\u7b26"):null:R.get("receiversFormatError","\u6536\u4ef6\u90ae\u7bb1\u683c\u5f0f\u4e0d\u6b63\u786e"):R.get("receiversEmpty","\u8bf7\u8f93\u5165\u6536\u4ef6\u90ae\u7bb1"):R.get("senderEmpty","\u8bf7\u8f93\u5165\u53d1\u4ef6\u90ae\u7bb1"):R.get("scheduleEmpty","\u8bf7\u8f93\u5165\u63a8\u9001\u65f6\u95f4"):R.get("nameRuleEmpty",
"\u8bf7\u8f93\u5165\u90ae\u4ef6\u540d\u79f0")}};ma.EmailSendLog=f;ma.EmailPushRecordConfig=function(){var t=this,K,x,pa,M,Z;this.setId=function(c){K=c};this.getId=function(){return K};this.setUserId=function(c){x=c};this.getUserId=function(){return x};this.setPushTargetType=function(c){pa=c};this.getPushTargetType=function(){return pa};this.setStrategy=function(c){M=c};this.getStrategy=function(){return M};this.setValue=function(c){Z=c};this.getValue=function(){return Z};this.toJsonObject=function(){var c=
{};c.id=K;c.userId=x;c.pushTargetType=pa;c.strategy=M;c.value=Z;return c};this.fromJsonObject=function(c){c&&(t.setId(c.id),t.setUserId(c.userId),t.setPushTargetType(c.pushTargetType),t.setStrategy(c.strategy),t.setValue(c.value))}};f.SENDEMAILSSTATUS_FAIL=0;f.SENDEMAILSSTATUS_SUCCESS=1;f.SENDEMAILSSTATUS_PARTSUCCESS=2;f.INSUFFICIENT_SCHEDULING_TIMES=3;f.SENDEMAILSSTATUS_WARNINGRULE_UNMATCHED=4;E.ARR_COMMON_EMAIL_INFO=[new H(".*@qq.com$","smtp.qq.com","smtp",!0,465),new H(".*@vip.qq.com$","smtp.qq.com",
"smtp",!0,465),new H(".*@foxmail.com$","smtp.qq.com","smtp",!0,465),new H(".*@gmail.com$","smtp.gmail.com","smtp",!0,465),new H(".*@163.com$","smtp.163.com","smtp",!1,25),new H(".*@163.com.cn$","smtp.163.com","smtp",!1,25),new H(".*@126.com$","smtp.126.com","smtp",!1,25),new H(".*@sina.com$","smtp.sina.com","smtp",!1,25),new H(".*@hotmail.com$","smtp-mail.outlook.com","smtp",!1,25),new H(".*@tom.com$","smtp.tom.com","smtp",!1,25),new H(".*@yahoo.com$","smtp.mail.yahoo.com","smtp",!1,25),new H(".*@sohu.com",
"smtp.sohu.com","smtp",!1,25),new H(".*@189.cn$","smtp.189.cn","smtp",!1,25),new H(".*@qiye.aliyun.com$","smtp.qiye.aliyun.com","smtp",!1,25),new H(".*@aliyun.com$","smtp.aliyun.com","smtp",!1,25),new H(".*@mxhichina.com$","smtp.mxhichina.com","smtp",!1,25),new H(".*@kingdee.com$","mail.kingdee.com","smtp",!1,25)];E.SEND_TYPE_SMTP="smtp";E.SEND_TYPE_EXCHANGE="exchange";E.DEFAULT_SMTP_PORT="25";E.DEFAULT_SMTP_SSL_PORT="465";E.DEFAULT_EXCHANGE_PORT="80";E.DEFAULT_EXCHANGE_SSL_PORT="443";E.PWD_ENCRYPT_PUBLICKEY=
"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDOPTpBwk83pZpzM5S5GUCJjw3cr9jTXiva6p669MM1vn94Ya7VTHgqTkoVTKKXT/5fPrMhZHYt7zZcd2Di+pDDcu0pcV1Ukq6vBVzD4U5TbRstgJ0UGjnbBODQkfe81NBqnDD1Ba9mbF/PLPonNbnaj+9pyJsn1xzi/h9NRDcOKQIDAQAB";J.TYPE_FIXED="fixed";J.TYPE_DATE="date";J.TYPE_SERIALNUM="serialNum";J.getArrDateFormat=function(){return"en"==Oa.decodeParamFromUrl(window.location.search,"language")?[new Y("March 14, 2019","MMM d, yyyy"),new Y("2019-03-14","yyyy-MM-dd"),new Y("2019/3/14","yyyy/M/d"),new Y("20190314",
"yyyyMMdd"),new Y("March, 2019","MMM, yyyy"),new Y("2019/03","yyyy/MM"),new Y("201903","yyyyMM"),new Y("March 14","MMM d"),new Y("03/14","MM/dd"),new Y("0314","MMdd")]:[new Y("2019\u5e743\u670814\u65e5","yyyy\u5e74M\u6708d\u65e5"),new Y("2019-03-14","yyyy-MM-dd"),new Y("2019/3/14","yyyy/M/d"),new Y("20190314","yyyyMMdd"),new Y("2019\u5e743\u6708","yyyy\u5e74M\u6708"),new Y("2019/03","yyyy/MM"),new Y("201903","yyyyMM"),new Y("3\u670814\u65e5","M\u6708d\u65e5"),new Y("03/14","MM/dd"),new Y("0314","MMdd")]};
J.searchDateFormatObj=function(t){for(var K=J.getArrDateFormat(),x=0;x<K.length;x++)if(K[x].getValue()==t)return K[x];return null}})();(function(){function f(){Ba.call(this);var ha=this,v=this.protectedMethod,S,l=[],a=[f.SAVEALLPUSHDETAIL,f.SAVEPUSHDETAILBYTIME,f.SAVEPUSHDETAILBYNUMBER],sa={},Ca={},wa=[x.get("day","\u5929"),x.get("week","\u5468"),x.get("month","\u6708"),x.get("year","\u5e74")],g,d=new c;(function(){v.setTitle(x.get("pushRecordDetailSet","\u63a8\u9001\u660e\u7ec6\u8bbe\u7f6e"));ha.setSize(460,330);v.setContentPaneCreator(function(){return oa()});v.setClosingAction(function(ia){ia&&(ia=Z.createFeedbackDialog(),ia.setOptionType(Z.OPTION_OK_CANCEL),
ia.setMsgImageType(Z.MSG_DELETE),ia.setMessage(B()),ia.setClosingChecker(function(Ka){if(Ka==Z.RETURN_OK)for(Ka=0;Ka<a.length;Ka++)if(l[a[Ka]].isChecked()){var Da=0!=Ka?sa[a[Ka]].getValue():null;if(a[Ka]==f.SAVEPUSHDETAILBYTIME){var Fa=Ca[f.SAVEPUSHDETAILBYTIME].getSelected();Fa=za(Fa);Da+=","+Fa}g&&g(a[Ka],Da);break}return!0}),ia.showDialog())})})();var B=function(){for(var ia=0;ia<a.length;ia++)if(l[a[ia]].isChecked())switch(a[ia]){case f.SAVEALLPUSHDETAIL:return x.get("allPushDetailTip","\u786e\u5b9a\u4fdd\u7559\u6240\u6709\u7684\u63a8\u9001\u660e\u7ec6\u5417\uff1f\u82e5\u4fdd\u5b58\u8bbe\u7f6e\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u751f\u6210\u5927\u91cf\u7684\u5b9a\u65f6\u63a8\u9001\u6570\u636e\u6587\u4ef6");
case f.SAVEPUSHDETAILBYTIME:ia=sa[a[ia]].getValue();var Ka=Ca.time.getSelected();return ia=x.get("saveRecentTip","\u786e\u5b9a\u4fdd\u7559\u6700\u8fd1")+ia+Ka+x.get("savePushDetailByTimeTip","\u7684\u63a8\u9001\u660e\u7ec6\u5417\uff1f\u82e5\u4fdd\u5b58\u8bbe\u7f6e\uff0c\u5176\u4ed6\u63a8\u9001\u660e\u7ec6\u5c06\u4f1a\u88ab\u5220\u9664");case f.SAVEPUSHDETAILBYNUMBER:return ia=sa[a[ia]].getValue(),ia=x.get("saveRecentTip","\u786e\u5b9a\u4fdd\u7559\u6700\u8fd1")+ia+x.get("savePushDetailByNumTip","\u6761\u63a8\u9001\u660e\u7ec6\u5417\uff1f\u82e5\u4fdd\u5b58\u8bbe\u7f6e\uff0c\u5176\u4ed6\u63a8\u9001\u660e\u7ec6\u5c06\u4f1a\u88ab\u5220\u9664")}},
oa=function(){d.setFontSize(13);var ia=new t,Ka=$("<div>");Ka.addClass("push-record-set-content");Ka.css("padding","15px");var Da=$("<div>");Da.addClass("each-record-set");Da.text(x.get("eachPushSet","\u9488\u5bf9\u6bcf\u4e2a\u63a8\u9001\u914d\u7f6e\uff1a"));Ka.append(Da);Da=$("<div>");Da.addClass("first-choice-set-item");var Fa=$("<div>");Fa.addClass("first-choice-set-item-left");var Ua=new R;Ua.setChecked(!0);l[f.SAVEALLPUSHDETAIL]=Ua;ia.addElement(Ua);Ua=Ua.getJqUi();Fa.append(Ua);var Va=$("<div>");
Va.addClass("first-choice-set-item-right");var bb=x.get("saveAllPushRecord","\u4fdd\u7559\u6240\u6709\u7684\u63a8\u9001\u660e\u7ec6\uff08\u4e0d\u63a8\u8350\uff09");Ua=d.measureWidth(bb);Va.text(bb);Da.append(Fa);Da.append(Va);Va=$("<div>");Va.addClass("second-choice-set-item");var Wa=$("<div>");Wa.addClass("second-choice-set-item-left");Fa=new R;l[f.SAVEPUSHDETAILBYTIME]=Fa;ia.addElement(Fa);Fa=Fa.getJqUi();Wa.append(Fa);var cb=$("<div>");cb.addClass("save-recent-record-sec");Fa=x.get("saveRecent",
"\u4fdd\u7559\u6700\u8fd1");bb=d.measureWidth(Fa);cb.text(Fa);var Xa=$("<div>");Xa.addClass("second-spinner-ctrl");var $a=new Oa;$a.setConstraint(1,999,1);$a.setValue(3);$a.addValueChangedListener(function(qb,lb,kb,gb){$a.setValue(kb,gb)});sa[f.SAVEPUSHDETAILBYTIME]=$a;Fa=$a.getJqUi();ma.layoutCtrl(Fa,46+bb,39,55,22);Xa.append(Fa);var Ya=$("<div>");Ya.addClass("second-combobox-ctrl");Fa=new K;Fa.setItemModels(wa);Fa.setSelected(x.get("day","\u5929"));Ca[f.SAVEPUSHDETAILBYTIME]=Fa;var db=Fa.getJqUi();
ma.layoutCtrl(db,101+bb,39,55,22);Ya.append(db);db=$("<div>");db.text(x.get("pushOfRecord","\u7684\u63a8\u9001\u660e\u7ec6"));ma.layoutCtrl(db,156+bb,42,75,17);Va.append(Wa);Va.append(cb);Va.append(Xa);Va.append(Ya);Va.append(db);Wa=$("<div>");Wa.addClass("third-choice-set-item");cb=$("<div>");cb.addClass("third-choice-set-item-left");Xa=new R;l[f.SAVEPUSHDETAILBYNUMBER]=Xa;ia.addElement(Xa);ia=Xa.getJqUi();cb.append(ia);ia=$("<div>");ia.addClass("save-recent-record-trd");ia.text(x.get("saveRecent",
"\u4fdd\u7559\u6700\u8fd1"));Xa=$("<div>");Xa.addClass("third-spinner-ctrl");var Ma=new Oa;Ma.setConstraint(1,999,1);Ma.setValue(100);Ma.addValueChangedListener(function(qb,lb,kb,gb){Ma.setValue(kb,gb)});sa[f.SAVEPUSHDETAILBYNUMBER]=Ma;Ya=Ma.getJqUi();ma.layoutCtrl(Ya,61+bb,125,55,22);Xa.append(Ya);Ya=$("<div>");Ya.text(x.get("pushRecordItem","\u6761\u63a8\u9001\u660e\u7ec6"));ma.layoutCtrl(Ya,116+bb,128,75,17);Wa.append(cb);Wa.append(ia);Wa.append(Xa);Wa.append(Ya);Ka.append(Da);Ka.append(Va);Ka.append(Wa);
Da=new Ra;Da.setIconType(Ra.ICON_TYPE_QUESTION);Da.setTipsSize(320,54);Da.setTipsText(x.get("saveAllPushRecordSuggestion","\u4fdd\u7559\u6240\u6709\u7684\u63a8\u9001\u660e\u7ec6\u53ef\u80fd\u4f1a\u5bfc\u81f4\u751f\u6210\u5927\u91cf\u7684\u5b9a\u65f6\u63a8\u9001\u6570\u636e\u6587\u4ef6\uff0c\u5efa\u8bae\u53ea\u4fdd\u7559\u90e8\u5206\u63a8\u9001\u660e\u7ec6\u3002"));Da=Da.getJqUi();ma.layoutCtrl(Da,70+Ua,54,16,16);Ka.append(Da);if(S)switch(Da=S.getValue(),Ua=S.getStrategy(),l[Ua].setChecked(!0),Ua){case f.SAVEPUSHDETAILBYTIME:Da=
Da.split(",");$a.setValue(parseInt(Da[0]));Fa.setSelected(qa(parseInt(Da[1])));break;case f.SAVEPUSHDETAILBYNUMBER:Ma.setValue(parseInt(Da))}return Ka},qa=function(ia){switch(ia){case f.DAY:return x.get("day","\u5929");case f.WEEK:return x.get("week","\u5468");case f.MONTH:return x.get("month","\u6708");case f.YEAR:return x.get("year","\u5e74");default:return x.get("day","\u5929")}},za=function(ia){switch(ia){case x.get("day","\u5929"):return f.DAY;case x.get("week","\u5468"):return f.WEEK;case x.get("month",
"\u6708"):return f.MONTH;case x.get("year","\u5e74"):return f.YEAR;default:return f.DAY}};this.setPushRecordConfig=function(ia){S=ia};this.setPushDetailSettingAfter=function(ia){g=ia};this.setContentPane=function(ia){}}function H(){var ha,v,S,l;this.setGroupName=function(a){l=a};this.getGroupName=function(){return l};this.setPropertyName=function(a){v=a};this.getPropertyName=function(){return v};this.setDescName=function(a){ha=a};this.getDescName=function(){return ha};this.setUserObject=function(a){S=
a};this.getUserObject=function(){return S}}function E(){var ha=this,v=[],S,l,a,sa,Ca=E.SORT_TYPE_DESC;this.sort=function(){sa&&sa(a,Ca)};this.setFunSortModel=function(d){sa=d};this.setSortTitle=function(d){S=d};this.setArrSortField=function(d){v=d};this.getArrSortField=function(){return v};this.getSortMenuModel=function(){if(!l&&v&&0!==v.length){l=new Ha;var d=S?S:x.get("sort","\u6392\u5e8f");l.setText(d);l.setGroupName(d);for(var B in v){d=v[B];var oa=!1;0==B&&(oa=!0,a=d);d=wa(d,oa);l.addItemModel(d)}l.addSeperator();
B=new H;B.setDescName(x.get("DESC","\u964d\u5e8f"));B.setGroupName("SortType");B.setPropertyName(E.SORT_TYPE_DESC);B=wa(B,!0);l.addItemModel(B);B=new H;B.setDescName(x.get("ASC","\u5347\u5e8f"));B.setGroupName("SortType");B.setPropertyName(E.SORT_TYPE_ASC);B=wa(B,!1);l.addItemModel(B)}return l};var wa=function(d,B){B=Aa.createRadio(d.getDescName(),d.getPropertyName(),B,g);B.setUserObject(d);B.setGroupName(d.getGroupName());return B},g=function(d){if(d=d.getUserObject()){var B=d.getPropertyName();
B==E.SORT_TYPE_DESC||B==E.SORT_TYPE_ASC?Ca=B:a=d;ha.sort()}}}"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.timedpush&&(com.kingdee.bos.qing.timedpush={});"undefined"==typeof com.kingdee.bos.qing.timedpush.common&&(com.kingdee.bos.qing.timedpush.common={});var Y=com.kingdee.bos.qing.timedpush.common;
Y.PushRecordDetailSetting=function(){var ha,v,S,l="0KB",a="0KB",sa,Ca,wa;this.setTotalRowNum=function(B){wa=B};this.setPushRecordConfig=function(B){};this.setPushDetailSettingAfter=function(B){};this.setPushDetailSettingDisplayPrev=function(B){Ca=B};this.setMarkClassName=function(B){sa=B};this.setTotalFileSize=function(B){a=B};this.setTotalPushRecordFileSize=function(B){l=B};this.setIsEmailPush=function(B){S=B};this.setBatchHandleEvent=function(B){v=B};this.setContentPane=function(B){ha=B};this.paintPushDetailSetting=
function(){var B=$("<div>");B.addClass("push-record-storage-set");var oa=$("<div>");oa.addClass("push-record-storage-left");var qa=$("<div>");qa.addClass("push-record-icon-setting");Sa.background(qa,"icon-setting");var za=$("<div>");za.addClass("push-record-storage-left-text");var ia=x.get("pushRecordDetailSet","\u63a8\u9001\u660e\u7ec6\u8bbe\u7f6e");za.text(ia);oa.attr("title",ia);oa.append(qa);oa.append(za);oa.on("click",function(){Ca&&Ca()});qa=$("<div>");qa.addClass("push-record-storage-right");
qa.text(x.get("totalFileSize","\u603b\u6587\u4ef6\u5927\u5c0f\uff1a"));za=$("<span>");za.addClass(sa&&sa);za.text(a);qa.append(za);B.append(oa);B.append(qa);return B};this.paintBatchDelUI=function(){var B=$("<div>");B.addClass("batch-del-item");var oa=$("<div>");oa.addClass("batch-del-item-left");var qa=new pa(x.get("deletePushRecord","\u5220\u9664"));qa.addActionListener(g);qa=qa.getJqUi();ma.layoutCtrl(qa,0,0,60,28);qa.css({"border-radius":"4px","font-size":"12px"});qa.find(".sa-ctrl-button-border-highlight").css("border",
"none");oa.append(qa);qa=$("<div>");qa.addClass("batch-del-display-content");var za=$("<div>");za.addClass("total-row-number");za.html(x.get("total","\u5171")+"<span class='push-detail-total-row-count'>"+wa+"</span>"+x.get("row","\u884c"));qa.append(za);za=$("<div>");za.addClass("batch-del-item-left-right");za.text(x.get("totalFileSize","\u603b\u6587\u4ef6\u5927\u5c0f\uff1a"));var ia=$("<span>");ia.addClass("total-file-value push-record-total-value");ia.text(l);za.append(ia);qa.append(za);B.append(oa);
B.append(qa);return B};var g=function(){var B=d();if(0==B.length){var oa=new M;oa.getJqUi().appendTo(ha);oa.showPrompt(x.get("chooseDelPushRecord","\u8bf7\u9009\u62e9\u8981\u5220\u9664\u7684\u63a8\u9001\u8bb0\u5f55\u3002"))}else oa=Z.createFeedbackDialog(),oa.setOptionType(Z.OPTION_OK_CANCEL),oa.setMsgImageType(Z.MSG_DELETE),oa.setMessage(x.get("pushRecordDelTips","\u5220\u9664\u8bb0\u5f55\u540e\u5c06\u65e0\u6cd5\u6062\u590d\uff0c\u5bf9\u5e94\u65f6\u95f4\u70b9\u63a8\u9001\u7684\u6570\u636e\u5185\u5bb9\u5c06\u65e0\u6cd5\u67e5\u770b\uff0c\u786e\u5b9a\u5220\u9664\u9009\u4e2d\u8bb0\u5f55\u5417\uff1f")),
oa.setClosingChecker(function(qa){qa==Z.RETURN_OK&&v&&v(B);return!0}),oa.showDialog()},d=function(){for(var B=[],oa=$(".push-detail-name-left"),qa=0;qa<oa.length;qa++){var za=oa[qa],ia=$(za).data("checkBoxModel"),Ka=S?$(za).data("emailSendLogModel"):$(za).data("yzjPushRecordModel"),Da=$(za).data("tableModel");za=$(za).attr("rowIndex");ia.isChecked()&&B.push({pushRecordModel:Ka,tableModel:Da,rowIndex:za})}return B}};Y.PushDetailSettingDialog=f;Y.SortWidget=E;Y.SortField=H;Y.TimedPushManagerSortPanel=
function(){var ha,v=[],S,l,a=function(){S=$("<div>");var sa=new H;sa.setDescName(x.get("PushCreateTime","\u521b\u5efa\u65f6\u95f4"));sa.setGroupName("SortField");sa.setPropertyName("createTime");var Ca=new H;Ca.setDescName(x.get("pushName","\u540d\u79f0"));Ca.setGroupName("SortField");Ca.setPropertyName("name");v.push(sa);v.push(Ca);ha=new E;ha.setArrSortField(v);ha.setFunSortModel(l);var wa=ha.getSortMenuModel();sa=x.get("sort","\u6392\u5e8f");Ca=new C;Ca.setSelectedModel(sa);Ca.setDropdownCreator(function(g,
d,B,oa){d=new Aa;d.setModel(wa);d.setHideListener(function(){oa()});d=d.getJqUi();g.append(d);return[d.prop("offsetWidth"),d.prop("offsetHeight")]});sa=Ca.getJqUi();ma.layoutCtrlWithLRTB(sa,null,20,53);ma.layoutCtrlMiddleAlign(sa,24);sa.appendTo(S);sa.css({"margin-top":"-11px",top:"19px"});return S};this.getJqUi=function(){S||(S=a());return S};this.setSortModel=function(sa){l=sa};this.sort=function(){ha.sort()}};Y.PubshSearchPanel=function(){var ha,v,S;this.getInputContent=function(){return S.getText()};
this.getJqUi=function(){if(!ha){var l=$("<div>");S=new Qa;S.setPlaceholder(x.get("searchPushContent","\u641c\u7d22\u63a8\u9001\u540d\u79f0"));S.setSearchListenerDelay(1E3);S.setShowSearchIcon(!0);S.addSearchListener(v);var a=S.getJqUi();a.addClass("sa-qing-publish-manager-searchBox");a.appendTo(l);ha=l}return ha};this.setSearchListener=function(l){v=l}};var J,ma,Ba,R,Oa,t,K,x,pa,M,Z,c,Aa,Ha,C,Qa,Ra;(function(){var ha=com.kingdee.bos.qing.ui.component;Ba=ha.AbstractModalDialog;R=ha.RadioButton;Oa=
ha.Spinner;t=ha.RadioButtonGroup;K=ha.ComboBox;pa=ha.Button;M=ha.MessageCurtain;Z=ha.MessageDialog;Aa=ha.Menu;Ha=ha.MenuModel;C=ha.DropdownSelector;Qa=ha.SearchBox;Ra=ha.HelpIcon;ha=com.kingdee.bos.qing.framework.common;J=ha.AbstractIcons;x=ha.MultilanguageManager.createPackageAccessor(com.kingdee.bos.qing.timedpush);ha=com.kingdee.bos.qing.common;ma=ha.DomUtil;c=ha.TextMeasurer})();var Sa=new function(){J.call(this);var ha=this.protectedMethod;this.protectedInit=function(S,l){S=com.kingdee.bos.qing.timedpush.common.ComboIcon;
if(!S)throw Error("com.kingdee.bos.qing.timedpush.common.ComboIcon not found.");S.define(l,"timedpush-sprite");l.setGap(1);l.setStartPosition(1,1);l.setIconSize(18,18);v(0,0,"btn_orderup");v(1,0,"btn_orderup_hover");v(0,1,"btn_edit");v(1,1,"btn_edit_on");v(0,2,"btn_delete");v(1,2,"btn_delete_on");l.setStartPosition(1,51);l.setIconSize(18,18);v(0,0,"btn_edit_white");v(0,1,"icon_lapp_setting");v(0,2,"publish_manager");l.setStartPosition(1,77);l.setIconSize(8,8);v(0,0,"icon_dragchunk");l.setStartPosition(1,
121);l.setIconSize(16,16);v(0,0,"icon-setting");v(0,1,"icon_sort-asc-esc");v(0,2,"icon_sort-asc-desc");v(0,3,"icon_sortable-v");l.setStartPosition(1,81);l.setIconSize(16,14);v(0,0,"high-set-up");v(1,0,"high-set-down");v(0,1,"icon-rule-setting");v(1,1,"icon-rule-setting_hover");l.setStartPosition(0,140);l.setIconSize(8,8);v(0,0,"icon_drag");S.define(l,"icon_thirdapp.png");v(0,0,"icon_yzj");v(1,0,"icon_wxqyh");v(2,0,"icon_missioncloud");v(3,0,"icon_dingding");v(3,0,"icon_dingdingoffline");v(4,0,"icon_welink");
v(5,0,"icon_wxxcx");v(0,1,"icon_yzj_off");v(1,1,"icon_wxqyh_off");v(2,1,"icon_missioncloud_off");v(3,1,"icon_dingding_off");v(3,1,"icon_dingdingoffline_off");v(4,1,"icon_welink_off");v(5,1,"icon_wxxcx_off");S.define(l,"icon_help.png");v(0,0,"icon_help");v(0,1,"icon_help_white");S.define(l,"tm-publish");l.setGap(0);l.setStartPosition(0,0);l.setIconSize(17,14);v(0,0,"icon-side-close");l.setStartPosition(33,0);l.setIconSize(17,14);v(0,0,"icon-side-open");l.setStartPosition(55,0);l.setIconSize(16,16);
v(0,0,"dataAnalysis");l.setStartPosition(77,0);l.setIconSize(16,16);v(0,0,"dashboard");l.setStartPosition(102,0);l.setIconSize(16,16);v(0,0,"squareData");l.setStartPosition(126,0);l.setIconSize(15,16);v(0,0,"del");l.setStartPosition(199,0);l.setIconSize(15,16);v(0,0,"del_on");l.setStartPosition(150,0);l.setIconSize(16,16);v(0,0,"edit");l.setStartPosition(175,0);l.setIconSize(16,16);v(0,0,"edit_on");l.setStartPosition(221,0);l.setIconSize(16,16);v(0,0,"add");l.setStartPosition(244,0);l.setIconSize(16,
16);v(0,0,"add_on");l.setStartPosition(295,0);l.setIconSize(18,18);v(0,0,"btn_delete");l.setStartPosition(269,0);l.setIconSize(18,18);v(0,0,"btn_delete_on");l.setStartPosition(320,0);l.setIconSize(18,18);v(0,0,"card2picN");l.setStartPosition(346,0);l.setIconSize(18,18);v(0,0,"card2listN");l.setStartPosition(372,0);l.setIconSize(18,18);v(0,0,"card2pic");l.setStartPosition(398,0);l.setIconSize(18,18);v(0,0,"card2list");S.define(l,"icon_blue_sprite");l.setStartPosition(1,1);l.setGap(1);l.setIconSize(40,
40);v(0,0,"icon_add_blue");v(0,1,"icon_thumbedit_blue");S.define(l,"no-data.png");l.setStartPosition(0,0);l.setGap(0);l.setIconSize(220,220);v(0,0,"no-data")};var v=function(S,l,a){ha.registIcon(S,l,a)}};Y.MyIcons=Sa;f.SAVEALLPUSHDETAIL="all";f.SAVEPUSHDETAILBYTIME="time";f.SAVEPUSHDETAILBYNUMBER="number";f.DAY=0;f.WEEK=1;f.MONTH=2;f.YEAR=3;E.SORT_TYPE_DESC=1;E.SORT_TYPE_ASC=2})();(function(){function f(q,aa,F,ja){Ca.call(this,q,aa,F,ja);var N=this.protectedMethod;this.getUserEmailSender=function(k){N.remote("getUserEmailSender",{publishTargetType:k})};this.saveEmailSender=function(k,h){k={publishTargetType:k,emailSender:JSON.stringify(h.toJsonObject())};N.remote("saveEmailSender",k)};this.connectTest=function(k,h){k={publishTargetType:k,emailSender:JSON.stringify(h.toJsonObject())};N.remote("connectTest",k)};this.saveEmailConfig=function(k,h,O,n,P,z){k={publishTargetType:k,
eamilConfModel:JSON.stringify(h.toJsonObject()),sceneModel:O?JSON.stringify(O):null,publishedRuntimeUrl:n,dsbPublishId:P,scene:z};N.remote("saveEmailConfig",k);Ra.occur(Ra.COMMUNICATE_TYPE,Ra.EMAIL_SCHEDULE_PUSH)};this.updateEmailConfig=function(k,h,O){k={publishTargetType:k,eamilConfModel:JSON.stringify(h.toJsonObject()),publishedRuntimeUrl:O};N.remote("updateEmailConfig",k)};this.loadEmailConfigs=function(k){N.remote("loadEmailConfigs",{publishTargetType:k})};this.deleteEmailConfigById=function(k,
h){N.remote("deleteEmailConfigById",{publishTargetType:k,id:h})};this.loadPublishInfos=function(k,h){N.remote("loadPublishInfos",{publishTargetType:k,path:h})};this.loadExceptionLog=function(k,h){N.remote("loadExceptionLog",{publishTargetType:k,id:h})};this.deleteEmailPublishInfoById=function(k,h){k={publishTargetType:k,arrEmailSendLogModel:JSON.stringify(h)};N.remote("deleteEmailPublishInfoById",k)};this.loadPushRecordConfigInfo=function(k){N.remote("loadPushRecordConfigInfo",{publishTargetType:k})};
this.saveEmailPushRecordConfig=function(k,h,O){N.remote("saveEmailPushRecordConfig",{publishTargetType:k,strategy:h,value:O})};this.loadPublishOperModel=function(k,h,O){N.remote("loadPublishOperModel",{publishTargetType:M.EMAIL,biztag:k,isEdit:h,dsbRefToPublishId:O})};this.updateScheduleState=function(k,h,O,n){N.remote("updateScheduleState",{publishTargetType:k,openSchedule:h,configId:O,publishedRuntimeUrl:n})};this.loadPushSchema=function(k,h,O){N.remote("loadPushSchema",{publishTargetType:k,configId:h,
publishSourceType:O})};this.updatePushSchema=function(k,h,O,n){k={publishTargetType:k,configId:h,publishSourceType:O,model:JSON.stringify(n)};N.remote("updatePushSchema",k)};this.cronExpression=function(k,h){N.remote("cronExpression",{publishTargetType:k,cron:h})};this.doPush=function(k,h,O){return N.remote("doPush",{publishTargetType:M.EMAIL,configId:k,publishedRuntimeUrl:h,timeStamp:O})};this.getServerTimeStamp=function(){N.remote("getServerTimeStamp",{publishTargetType:M.EMAIL})};this.getServerTimeStampForDoPush=
function(){N.remote("getServerTimeStampForDoPush",{publishTargetType:M.EMAIL})}}function H(q,aa,F,ja){oa.call(this);var N=this,k=this.protectedMethod,h,O,n;(function(){n||Ma.setCallback(function(){n=new com.kingdee.bos.qing.biz.common.SimplePaginationBar});k.setTitle(a.get("emailSchedulePushManager","\u90ae\u4ef6\u5b9a\u65f6\u63a8\u9001\u7ba1\u7406"));N.setSize(840,570);k.setSelectable(!0);k.getDialogCtrl().setMinSize(840,570);k.getDialogCtrl().setFullScreenEnabled();k.getDialogCtrl().setResizeEnabled();
k.getDialogCtrl().addResizeListener(function(){h&&h.relayoutViews()});k.setContentPaneCreator(function(){h=new E(q,aa,F,ja);h.setOuterMessageCurtain(k.getMessageCurtain());h.setClickTimedPushManager(O);return h.getJqUi()});k.setFooterClosingOnly(!0);k.setClosingChecker2(null,function(P){k.destroy();return!0});k.setClosingAction(function(P){})})();this.setClickTimedPushManager=function(P){O=P}}function E(q,aa,F,ja){function N(b){KTDefaultCellRender.call(this,b);var e=this,p=this.paintCellUI;this.paintCellUI=
function(w,m){var ta=e.getCurrentRowIdx(),U=e.getCurrentRow(),fa=e.getCurrentColIdx(),V=U.getUserObject();if(1==ta){p(w,m);var D=$(w).find("span");D.css({"padding-right":"12px","padding-left":"2px"});if(!/Trident|MSIE/.test(window.navigator.userAgent)&&(y&&1!=fa&&2!=fa&&4!=fa&&6!=fa&&y.addSortingTips($(w),T[fa]),!y&&3==fa&&!W)){W=new k;ua=[];for(D=0;D<Q.length;D++)ua.push(Q[D].toJsonObject());W.setArrJson(ua);W.setFunSortchangeListener(function(Ia,Ta){Ta?y.setShowSortingModel(W.getShowSortingModel()):
(Ta=new h,Ta.setField("PushCreateTime"),Ta.setOrder(h.ORDER_DESC));Ia=[];for(var Za=0;Za<Q.length;Za++)Ia.push(Q[Za].toJsonObject());W.setArrJson(Ia);W.sortArrJson(Ia,Ta,function(eb){Q=[];for(var ab=0;ab<eb.length;ab++){var ib=new Ha;ib.fromJsonObject(eb[ab]);Q.push(ib)}L()},function(eb){return"fileSize"==eb?"sTotalPushRecordSizeToNoFormat":eb})});W.addPushCreateTimeSortingTips($(w),T[fa])}}if(ta<S.getHeadRowCount()||6!=fa&&4!=fa&&0!=fa&&3!=fa&&1!=fa)p(w,m),D=$(w).find("span"),D.css({"padding-right":"12px",
"padding-left":"5px"});else if(0==fa)p(w,m),D=$(w).find("span"),D.css({"padding-right":"8px","padding-left":"6px",left:"8px"}),D.attr("title",U.getCell(0).getValue()),D.addClass("sa-publish-item-list-head"),V.isSourceNameNotFound()?(m=V.getSourceName(),U=db.createWarning(),U.attr("title",m),l.layoutCtrl(U,0,8),$(w).append(U)):V.getWarningRuleStatus()||(m=a.get("warningRuleInvalidTips","\u9884\u8b66\u89c4\u5219\u4e0d\u5b58\u5728"),U=db.createWarning(),U.attr("title",m),l.layoutCtrl(U,0,8),$(w).append(U));
else if(1==fa)p(w,m),D=$(w).find("span"),D.css({"padding-right":"8px","padding-left":"6px",left:"8px"}),D.attr("title",U.getCell(1).getValue());else if(3==fa)m=V.getCreateFormatTime(),U=$("<span>"),U.text(m),U.attr("title",m),U.css("line-height","28px"),U.css("padding-left","6px"),U.css("padding-right","8px"),U.appendTo(w);else if(6==fa){m=new za(a.get("scheduleDetails","\u63a8\u9001\u660e\u7ec6"));m.addActionListener(function(){(new J(n,V.getId(),F,b,ta,5)).showDialog()});m=m.getJqUi();m.addClass("sa-qing-publish-email-manager-op-query");
m.appendTo(w);m=[ub,vb];U=[a.get("editPushInfoItem","\u7f16\u8f91\u63a8\u9001\u4fe1\u606f"),a.get("editPushContentItem","\u7f16\u8f91\u63a8\u9001\u65b9\u6848")];var ba=new v($(u.getUI()),U,m);m=new za(a.get("edit","\u7f16\u8f91"));var la=m.getJqUi();la.addClass("sa-qing-publish-email-manager-op-edit");la.appendTo(w);m.addActionListener(function(){ba.show(la,V);var Ia=z.find(".sa-qing-publish-manager-editcontent-selector"),Ta=la.offset().left-82;Ia.offset({left:Ta})});m=new za(a.get("del","\u5220\u9664"));
m.addActionListener(function(){var Ia=qa.createFeedbackDialog();Ia.setOptionType(qa.OPTION_OK_CANCEL);Ia.setMsgImageType(qa.MSG_DELETE);Ia.setMessage(a.get("emailDelTips","\u5220\u9664\u8be5\u8bb0\u5f55\u540e\u5c06\u540c\u65f6\u6e05\u7a7a\u8be5\u8bb0\u5f55\u4e0b\u751f\u6210\u7684\u6240\u6709\u63a8\u9001\u660e\u7ec6\u6570\u636e\uff0c\u786e\u5b9a\u5220\u9664\u8be5\u8bb0\u5f55\u5417\uff1f"));Ia.setClosingChecker(function(Ta){Ta==qa.RETURN_OK&&wb(b,ta,V);return!0});Ia.showDialog()});m=m.getJqUi();m.addClass("sa-qing-publish-email-manager-op-delete");
m.appendTo(w);m=new za(a.get("pushImmediately","\u7acb\u5373\u63a8\u9001"));U=V.isHasPermission()&&V.getWarningRuleStatus();m.setEnabled(U);m.addActionListener(function(){var Ia=new com.kingdee.bos.qing.publish.common.SchedulePushDialog;Ia.setConfirmListener(function(){xb(V)});Ia.showDialog(V.getNameRule().toString(),a.get("targetEmail","\u76ee\u6807\u90ae\u7bb1"))});m=m.getJqUi();m.addClass("sa-qing-publish-email-manager-op-push");m.appendTo(w)}else if(4==fa){var I=new ia;I.setOn(V.getScheduleSwitch()&&
V.getWarningRuleStatus()&&!V.isSourceNameNotFound());I.setEnabled(V.isHasPermission());var Ga=I.isOn();I.addStateChangeListener(function(Ia,Ta,Za){Ta&&(Za=Ia.isOn(),V.setScheduleSwitch(Za),yb(I,Za,Ga,V))});m=I.getJqUi();m.addClass("sa-qing-publish-email-manager-schedule-switchbutton");m.appendTo(w);U=$("<div>");U.addClass("sa-qing-publish-email-manager-schedule-switchbutton-tips");fa=$("<span>");fa.css({opacity:"0","z-index":"100"});l.layoutCtrl(fa,5,5,100,23);V.isHasPermission()||(m=a.get("sourceIsPublishNoPermissionOrNotFound",
"\u539f\u53d1\u5e03\u4e0d\u5b58\u5728\u6216\u672a\u6388\u6743"),V.isSourceNameNotFound()&&(m=V.getSourceName()),fa.attr("title",m),fa.appendTo(U),U.appendTo(w));V.isHasPermission()&&!V.getWarningRuleStatus()&&(I.setEnabled(!1),m=a.get("warningRuleInvalidTips","\u9884\u8b66\u89c4\u5219\u4e0d\u5b58\u5728"),fa.attr("title",m),fa.appendTo(U),U.appendTo(w))}}}function k(){var b,e,p,w;this.setShowSortingModel=function(D){e=D};this.getShowSortingModel=function(){return e};this.setFunSortchangeListener=function(D){p=
D};this.setArrJson=function(D){w=D};this.showSortingTips=function(D,ba){var la=D.find(".resourceinfo-detaillist-sort-box");0==la.length&&(la=new h,la.setField(ba),la.setOrder(null),la=V(D,la),D.append(la));la.addClass("resourceinfo-detaillist-sort-box_clickable")};this.hideSortingTips=function(D){D=D.find(".resourceinfo-detaillist-sort-box");D.removeClass("resourceinfo-detaillist-sort-box_clickable");ta(D)};this.addSortingTips=function(D,ba){e&&null!=e.getOrder()&&e.getField()==ba&&(ba=V(D,e),D.append(ba))};
this.addPushCreateTimeSortingTips=function(D,ba){var la=new h;la.setField(ba);la.setOrder(h.ORDER_DESC);ba=V(D,la);D.append(ba)};this.sortArrJson=function(D,ba,la,I){switch(ba.getOrder()){case h.ORDER_ASC:var Ga=!0;break;case h.ORDER_DESC:Ga=!1;break;default:Ga=!1}ba=ba.getField();I&&(ba=I(ba));D=[].concat(D);D.sort(m(ba,Ga));I=[];for(var Ia=[],Ta=[],Za=[],eb=[],ab=0;ab<D.length;ab++){var ib=D[ab][ba];ib||0===ib?/^\d+?.*$/.test(ib)?(Ia=Ia||[],Ia.push(D[ab])):/^[a-zA-Z]+?.*$/.test(ib)?(Ta=Ta||[],Ta.push(D[ab])):
/^[\u4e00-\u9fa5]+?.*$/.test(ib)?(Za=Za||[],Za.push(D[ab])):(eb=eb||[],eb.push(D[ab])):(I=I||[],I.push(D[ab]))}D=Ga?[].concat(Ia||[]).concat(Ta||[]).concat(Za||[]).concat(eb||[]).concat(I||[]):[].concat(I||[]).concat(eb||[]).concat(Za||[]).concat(Ta||[]).concat(Ia||[]);la&&la(D)};var m=function(D,ba){return function(la,I){if("rName"==D){var Ga=la.nameRule.name;var Ia=I.nameRule.name}else"PushCreateTime"==D?(Ga=la.createTime,Ia=I.createTime):"sTotalPushRecordSizeToNoFormat"==D&&(Ga=la.sTotalPushRecordSizeToNoFormat,
Ia=I.sTotalPushRecordSizeToNoFormat);la=Ga-Ia;isNaN(la)&&(la=String(Ga).localeCompare(String(Ia),"zh-CN",{sensitivity:"accent"}));return ba?la:-la}},ta=function(D){var ba=D.data("sortable-data");ba&&null==ba.getOrder()&&D.remove()},U=function(D,ba){var la=k.BOX_LEN-2,I=$("<div>");Qa.background(I,"icon_sortable-v");I.attr("title",a.get("sort","\u6392\u5e8f"));I.addClass("resourceinfo-detaillist-sort-box");I.css("left",D);I.css("top",ba);I.css("width",la);I.css("height",la);return I},fa=function(D){var ba=
D.data("sortable-data");ba.getOrder()==h.ORDER_ASC?Qa.background(D,"icon_sort-asc-esc"):ba.getOrder()==h.ORDER_DESC?Qa.background(D,"icon_sort-asc-desc"):ba.getOrder()||Qa.background(D,"icon_sortable-v")},V=function(D,ba){var la=D.width();D=D.height();la=U(la-k.BOX_LEN-1,D-k.BOX_LEN-1);la.data("sortable-data",ba);fa(la);la.on("click",function(I){I=$(I.currentTarget);var Ga=I.data("sortable-data");"PushCreateTime"==Ga.getField()?Ga.getOrder()==h.ORDER_ASC?Ga.setOrder(h.ORDER_DESC):Ga.getOrder()==h.ORDER_DESC?
Ga.setOrder(h.ORDER_ASC):Ga.getOrder()||Ga.setOrder(h.ORDER_ASC):Ga.getOrder()==h.ORDER_ASC?Ga.setOrder(h.ORDER_DESC):Ga.getOrder()==h.ORDER_DESC?Ga.setOrder(null):Ga.getOrder()||Ga.setOrder(h.ORDER_ASC);I.data("sortable-data",Ga);fa(I);ta(I);b&&b[0]!=I[0]&&b&&b.remove();b=I;e=Ga;p&&p(w,b?b.data("sortable-data"):null)});return la}}function h(){var b,e;this.getOrder=function(){return b};this.setOrder=function(p){b=p};this.getField=function(){return e};this.setField=function(p){e=p}}Sa.call(this,q,
M.EMAIL);var O=this.protectedMethod,n=q,P=this,z,r,u,X,Q=[],ca=[],ua=[],ra,Ea,Pa,ya;ya||(Ma.setRootPath("."),Ma.setCallback(function(){ya=new com.kingdee.bos.qing.biz.common.SimplePaginationBar}),Ma.loadJs("biz-common/qing-biz-common.js"),Ma.loadSkinCss("biz-common","biz-common"),Ma.loadSkinJs("biz-common","skin"),Ma.loadI18n("biz-common","biz-common"));var Na,y,A,W,T="rName source pushSchedule PushCreateTime scheduleOnOff fileSize operation".split(" "),G,ea,da;this.setClickTimedPushManager=function(b){da=
b};this.getTitle=function(){return a.get("Email","\u90ae\u4ef6")};this.getJqUi=function(){if(!z){var b=$("<div>");b.addClass("sa-qing-publish-manager");da&&b.css("top","3px");var e=new Va;e.setSearchListener(L);ra=e;Ea=ra.getJqUi();l.layoutCtrl(Ea,-15,-3,171,25);ea=P.getAutoSelectedData();Na=ka();Na.css("margin-top","36px");Na.css("border-top","1px solid #ccc");r=$("<div>");r.addClass("sa-qing-publish-manager-content-emptytip");r.text(a.get("loading","\u52a0\u8f7d\u4e2d"));r.appendTo(b);xa();z=b}return z};
this.relayoutViews=function(){u&&"none"==r.css("display")&&(S.refresh(u),u.relayoutViews());if(G&&G.hasSelected()){var b=G.getSelected();G.removeAllSelecteds();b&&G.addSelected(b)}b=z.find(".sa-publish-item-list-head");for(var e in ca)va(b[e],ca[e].getNameRule().toString(),Pa)};var xa=function(){setTimeout(function(){var b=new f(n,function(e){if(null==e||0==e.length)mb();else{rb(e);ya.resetPaginationAndJumpToFirstPage(Q.length);for(var p="0KB",w=0;w<e.length;w++){var m=new Ha;m.fromJsonObject(e[w]);
m=m.getTotalPushRecordSize();p=nb(p,m,!0)}e=new Da;e.setMarkClassName("email-push-manage-fileSize");p=parseFloat(p.match(/^\d+(?:\.\d{0,4})?/)).toFixed(2)+p.substring(p.length-2,p.length);e.setTotalFileSize("0.00KB"==p?"0KB":p);e.setPushDetailSettingDisplayPrev(zb);e.paintPushDetailSetting().appendTo(z);Ea.appendTo(z);Na.appendTo(z);X=Ab();X.appendTo(z);r.hide();ca=Q.slice(0,20);Ja(ca)}},ob);b.setShowBlocking(!0);b.loadEmailConfigs(M.EMAIL)},0)},ka=function(){ya.setJumpToPageListener(function(b,e,
p){var w=Q.length;0<w&&w<=b*e&&(ca=Q.slice((b-1)*e,w));0<w&&w>b*e&&(ca=Q.slice((b-1)*e,b*e));p?p(w):ya.refreshPagination();Ja(ca)});ya.setComboBoxItemModelsAndSelectedItem([5,10,20,50,100,500,1E3],2);return ya.getJqUi()},na=function(b){ya.resetPaginationAndJumpToFirstPage(b.length);ca=b.slice(0,ya.getPageSize());ya.setJumpToPageListener(function(e,p,w){var m=b.length;0<m&&m<=e*p&&(ca=b.slice((e-1)*p,m));0<m&&m>e*p&&(ca=b.slice((e-1)*p,e*p));w?w(m):ya.refreshPagination();Ja(ca)})},La=function(b){var e=
"0KB";for(var p=0;p<b.length;p++){var w=b[p];w=w.getTotalPushRecordSize();e=nb(e,w,!0)}e=parseFloat(e.match(/^\d+(?:\.\d{0,4})?/)).toFixed(2)+e.substring(e.length-2,e.length);e="0.00KB"==e?"0KB":e;$(".email-push-manage-fileSize").text(e)},zb=function(){var b=new f(n,function(e){if(e){var p=new C;p.fromJsonObject(e)}e=new Ua;e.setPushRecordConfig(p);e.setContentPane(z);e.setPushDetailSettingAfter(sb);e.showDialog()},ob);b.setShowBlocking(!1);b.loadPushRecordConfigInfo(M.EMAIL)},sb=function(b,e){var p=
new f(n,function(w){w&&fb(!0)},function(){O.getOuterMessageCurtain().showError(a.get("emailPushStorageSetError","\u90ae\u4ef6\u7684\u63a8\u9001\u660e\u7ec6\u8bbe\u7f6e\u5931\u8d25\u3002"));return!1});p.setBlockingPrompt(a.get("savePushDetailConfigInfo","\u6b63\u5728\u4fdd\u5b58\u63a8\u9001\u660e\u7ec6\u8bbe\u7f6e"));p.saveEmailPushRecordConfig(M.EMAIL,b,e)},fb=function(b){var e=new f(n,function(p){null==p||0==p.length?mb():(rb(p),L());b&&O.getOuterMessageCurtain().showSuccess(a.get("pushDetailSetSuccess",
"\u63a8\u9001\u660e\u7ec6\u8bbe\u7f6e\u4fdd\u5b58\u6210\u529f\u3002"))},ob);e.setShowBlocking(!1);e.loadEmailConfigs(M.EMAIL)},ob=function(){r.hide();return!1},rb=function(b){Q=[];for(var e=0;e<b.length;e++){var p=new Ha;p.fromJsonObject(b[e]);Q.push(p)}},Ja=function(b){S.clearWithoutHead(u);G.removeAllSelecteds();var e=!1;if(b)for(var p=0;p<b.length;p++){var w=b[p],m=w.getSourceName();w.getPublishSourceGroupName()&&(m=w.getPublishSourceGroupName()+"/"+m);var ta=S.createRow(u,!1),U=new KTBorderStyle;
U.setBottomBorderWidth(1);U.setBottomBorderPen("solid");U.setBottomBorderColor("#E5E5E5");ta.setBorder(U);ta.setUserObject(w);ta.setHeight(30);ta.getCell(0).setValue(w.getNameRule().toString());ta.getCell(1).setValue(m);ta.getCell(2).setValue(w.getSchedule().toString());ta.getCell(5).setValue(w.getTotalPushRecordSize());if(ea&&w.getId()==ea.id){e=!0;var fa=p}}S.refresh(u);e&&(fa+=S.getHeadRowCount(),e=G.createRowTarget(fa),G.addSelected(e),u.scrollCellVisible(fa,0,!1));fa=z.find(".sa-publish-item-list-head");
for(p in b)va(fa[p],b[p].getNameRule().toString(),Pa)},Ab=function(){u=S.createTable();S.setupSingleRowSelection(u);G=u.getSelectionModel();u.setDraggableAdjusting(!0,2,0,new ha);u.setColumnFitVisibleWidth(!0);var b=new N(u);b.setOutsideVisible(!1);u.setCellRender(b);u.setSyncUIWhenModelChanged(!0);u.addColumns(7);u.getColumn(0).setWidth(130);u.getColumn(1).setWidth(155);u.getColumn(2).setWidth(65);u.getColumn(3).setWidth(138);u.getColumn(4).setWidth(63);u.getColumn(5).setWidth(80);u.getColumn(6).setWidth(212);
b=S.createHeadRow(u);b.getCell(0).setValue(a.get("rName","\u540d\u79f0"));b.getCell(1).setValue(a.get("source","\u6765\u6e90"));b.getCell(2).setValue(a.get("pushSchedule","\u63a8\u9001\u9891\u7387"));b.getCell(3).setValue(a.get("PushCreateTime","\u521b\u5efa\u65f6\u95f4"));b.getCell(4).setValue(a.get("scheduleOnOff","\u542f\u7528\u72b6\u6001"));b.getCell(6).setValue(a.get("operate","\u64cd\u4f5c"));b.getCell(5).setValue(a.get("fileSize","\u6587\u4ef6\u5927\u5c0f"));/Trident|MSIE/.test(window.navigator.userAgent)||
u.setCellAcrossListener(function(e,p,w){z&&z.find(".resourceinfo-detaillist-table-op").remove();var m=e&&0<e.length?e[0]:null;if(A!=m&&(A&&(y.hideSortingTips($(A)),A=null),1==p&&1!=w&&2!=w&&4!=w&&6!=w)){if(!y){y=new k;ua=[];for(p=0;p<Q.length;p++)ua.push(Q[p].toJsonObject());y.setArrJson(ua);y.setFunSortchangeListener(function(ta,U){U||(U=new h,U.setField("PushCreateTime"),U.setOrder(h.ORDER_DESC));ta=[];for(var fa=0;fa<Q.length;fa++)ta.push(Q[fa].toJsonObject());y.setArrJson(ta);y.sortArrJson(ta,
U,function(V){Q=[];for(var D=0;D<V.length;D++){var ba=new Ha;ba.fromJsonObject(V[D]);Q.push(ba)}L()},function(V){return"fileSize"==V?"sTotalPushRecordSizeToNoFormat":V})})}y.showSortingTips(e,T[w]);A=m}});b=$(u.getUI());b.addClass("sa-qing-publish-manager-content-table");b.css("margin-top","67px");b.children("div:first-child").css("overflow-y","overlay");return b},mb=function(){z.empty();r.detach();r=$("<div>");var b=$("<div>");b.addClass("no-data-image");Qa.background(b,"no-data");b.appendTo(r);
b=$("<div>");b.addClass("no-push-config-data");b.text(a.get("noData","\u6682\u65e0\u76f8\u5173\u6570\u636e"));b.appendTo(r);r.appendTo(z);r.show()},Bb=function(){r.detach();r=$("<div>");var b=$("<div>");b.addClass("no-data-image");Qa.background(b,"no-data");b.appendTo(r);b=$("<div>");b.addClass("no-search-push-config-data");b.text(a.get("noSearchData","\u6ca1\u6709\u7b26\u5408\u641c\u7d22\u6761\u4ef6\u7684\u7ed3\u679c"));b.appendTo(r);r.appendTo(z);r.show()},ub=function(b){b=new Y(n,b,aa,F);b.setOuterMessageCurtain(O.getOuterMessageCurtain());
b.setSuccessCallBack(function(e){fb()});b.showDialog()},vb=function(b){ja(b)},xb=function(b){var e=new f(n,function(p){var w="ExtractData"+p,m=new qb;Cb(m,w);var ta=F;b.isAnonymousView()&&(ta=aa);var U=b.getId(),fa=new f(n,function(V){pb(m,w);m.destroy();fb();O.getOuterMessageCurtain().showSuccess(a.get("pushImmediatelySuccess","\u63a8\u9001\u6210\u529f\u3002"))},function(V,D,ba){pb(m,w);m.destroy();var la=new qa;if(-1==V)return!0;D=2314104==V?a.get("sendEmailsSenderException","\u53d1\u4ef6\u90ae\u7bb1\u914d\u7f6e\u6709\u8bef\uff0c\u8bf7\u91cd\u65b0\u914d\u7f6e"):
2314105==V?a.get("sendEmailsInvalidReceiversException","\u90e8\u5206\u6536\u4ef6\u90ae\u7bb1\u63a8\u9001\u5931\u8d25\uff0c\u8bf7\u4ed4\u7ec6\u6838\u5b9e\u6536\u4ef6\u90ae\u7bb1\uff0c\u63a8\u9001\u5931\u8d25\u7684\u6536\u4ef6\u90ae\u7bb1\u6709\uff1a#1\u3002").replace("#1",D):2101001==V?a.get("publishSourceSubjectNotExist","\u539f\u4e1a\u52a1\u4e3b\u9898\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664"):2106001==V?a.get("publishSourceDashboardNotExist","\u539f\u4eea\u8868\u677f\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664"):
2101010==V||2301010==V?a.get("themeFileSizeLimit","\u8f7b\u5b58\u50a8\u7a7a\u95f4\u4e0d\u8db3"):2100001==V?a.get("qingStorageNoSpace","\u78c1\u76d8\u7a7a\u95f4\u4e0d\u8db3\uff0c\u8bf7\u8054\u7cfb\u8fd0\u7ef4\u4eba\u5458\u6dfb\u52a0\u78c1\u76d8"):21000008==V?a.get("noQingModelerLicense","\u5f53\u524d\u7cfb\u7edf\u6ca1\u6709\u3010\u8f7b\u5efa\u6a21\u3011\u6a21\u5757\u7684\u4f7f\u7528\u8bb8\u53ef\uff0c\u8bf7\u4e0e\u7cfb\u7edf\u7ba1\u7406\u5458\u8054\u7cfb"):2101019==V?a.get("noModelerPermission","\u5c1a\u672a\u83b7\u5f97\u6570\u636e\u8868\u6a21\u578b\u7684\u6570\u636e\u6743\u9650\u3002"):
2101006==V?a.get(V.toString(),"\u5c1a\u672a\u83b7\u5f97\u5b9e\u4f53\u6570\u636e\u8868\u7684\u67e5\u770b\u6743\u9650"):"2101018"==V?a.get("pushError","\u63a8\u9001\u5931\u8d25")+"\uff0c"+a.get("entityNotSupportQingAnalysis","\u4e1a\u52a1\u5b9e\u4f53\u672a\u5f00\u542f\u201c\u652f\u6301\u8f7b\u5206\u6790\u201d\u8bbe\u7f6e\u9879\uff0c\u8bf7\u5728\u5f00\u53d1\u5e73\u53f0\u7684\u5bf9\u5e94\u8868\u5355\u4e2d\u8fdb\u884c\u8bbe\u7f6e   "):a.get("sendEmailsOtherException","\u5176\u4ed6\u9519\u8bef\uff1a#1").replace("#1",
D);la.setOptionType(qa.OPTION_OK);la.setMessage(D);ba&&la.setDetail(ba);la.showDialog();return!0});fa.setCancelable(!0);fa.setShowBlocking(!1);p=fa.doPush(U,ta,p);m.setClosedListener(p);m.showDialog()},function(p,w){return!1});e.setShowBlocking(!1);e.getServerTimeStampForDoPush()},Cb=function(b,e){lb.subscribeChannel(e,function(p){tb(b,p)})},pb=function(b,e){lb.unsubscribeChannel(e,function(p){tb(b,p)})},tb=function(b,e){if("pushing"==e)b.setText(a.get("pushing","\u63a8\u9001\u4e2d"));else if("connectEmail"==
e)b.setText(a.get("connectEmail","\u6b63\u5728\u8fde\u63a5\u90ae\u7bb1"));else{var p=com.kingdee.bos.qing.CodeLoader;p.setRootPath(".");p.setCallback(function(){var w=JSON.parse(e),m=new com.kingdee.bos.qing.prepare.model.ProgressModel;m.fromJsonObject(w);m.isFinshed()||b.setText(m.toText())});p.loadJs("prepare/publish-prepare.js");p.loadI18n("prepare","prepare")}},yb=function(b,e,p,w){var m=F;w.isAnonymousView()&&(m=aa);var ta=w.getId();(new f(n,function(U){},function(U,fa){w.setScheduleSwitch(p);
b.setOn(p);return 2314106==U?(O.getOuterMessageCurtain().showError(a.get("failToChangScheduleState","\u4fee\u6539\u72b6\u6001\u5931\u8d25\u3002")),!0):2301005==U?(O.getOuterMessageCurtain().showError(a.get("sourceIsPublishAndNoPermission","\u539f\u53d1\u5e03\u672a\u6388\u6743\u3002")),!0):2301006==U?(O.getOuterMessageCurtain().showError(a.get("publishSourcePublishNotExistException","\u539f\u53d1\u5e03\u4fe1\u606f\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664\u3002")),!0):!1})).updateScheduleState(M.EMAIL,
e,ta,m)},wb=function(b,e,p){var w=new f(q,function(){for(var m="0KB",ta=b.getRow(e).getUserObject(),U=0;U<Q.length;U++){var fa=Q[U];ta.getId()==fa.getId()?Q[U].setTotalPushRecordSize("0KB"):(fa=fa.getTotalPushRecordSize(),m=nb(m,fa,!0))}m=parseFloat(m.match(/^\d+(?:\.\d{0,4})?/)).toFixed(2)+m.substring(m.length-2,m.length);m="0.00KB"==m?"0KB":m;$(".email-push-manage-fileSize").text(m);fb();O.getOuterMessageCurtain().showSuccess(a.get("deleteSuccess","\u5220\u9664\u6210\u529f\u3002"))},function(m,
ta){return!1});w.setShowBlocking(!0);w.deleteEmailConfigById(M.EMAIL,p.getId())},nb=function(b,e,p){b=hb(b);e=hb(e);b=p?jb.add(e,b):jb.sub(e,b);b=1024>b?0==b?b+"KB":b.toFixed(2)+"KB":jb.div(b,1024)+"MB";return b},hb=function(b){var e=b.substring(0,b.length-2);return e="MB"==b.substring(b.length-2,b.length)?jb.mul(e,1024):e},L=function(){Pa=ra.getInputContent().trim();var b=[];if(y&&y.getShowSortingModel()){ua=[];for(var e=0;e<Q.length;e++)ua.push(Q[e].toJsonObject());y.setArrJson(ua);y.sortArrJson(ua,
y.getShowSortingModel(),function(p){Q=[];for(var w=0;w<p.length;w++){var m=new Ha;m.fromJsonObject(p[w]);Q.push(m)}},function(p){return"fileSize"==p?"sTotalPushRecordSizeToNoFormat":p})}if(0<Pa.length){Pa=Pa.toUpperCase();for(e in Q)-1<Q[e].getNameRule().toString().toUpperCase().indexOf(Pa)&&b.push(Q[e]);0<b.length?(r.hide(),Na.show(),X.show(),La(b),na(b),Ja(ca)):(ya.resetPaginationAndJumpToFirstPage(0),Na.hide(),Bb(),X.hide(),ya.setJumpToPageListener(function(p,w,m){m?m(0):ya.refreshPagination()}),
$(".email-push-manage-fileSize").text("0KB"))}else r.hide(),Na.show(),X.show(),La(Q),na(Q),Ja(ca)},va=function(b,e,p){if(b&&e&&p){p=p.toUpperCase();var w=e.toUpperCase(),m=w.split(p),ta=p.length,U=$("<span>");U.addClass("sa-publish-item-list-head-name");for(var fa in m){var V=w.indexOf(m[fa]),D=e.substr(0,m[fa].length);V+=m[fa].length;var ba=w.length-V;w=w.substr(V,ba);e=e.substr(V,ba);V=$("<span>");V.text(D);V.appendTo(U);if(fa!==m.length-1&&1<m.length){ba=w.indexOf(p);D=e.substr(ba,ta);ba+=ta;var la=
w.length-ba;w=w.substr(ba,la);e=e.substr(ba,la);ba=$("<span>");ba.text(D);ba.css("color","#FF0000");ba.appendTo(V)}$(b).children(".sa-publish-item-list-head-name").remove()}$(b).text("");U.appendTo($(b));$(b).attr("title",U.text())}};k.BOX_LEN=15;h.ORDER_DESC="DESC";h.ORDER_ASC="ASC"}function Y(q,aa,F,ja){oa.call(this);var N=this,k=this.protectedMethod,h,O,n;(function(){k.setTitle(a.get("emailPushEdit","\u7f16\u8f91\u90ae\u4ef6\u63a8\u9001"));N.setSize(480,570);k.setSelectable(!0);h=new Ba(q,F,ja,
k.getMessageCurtain());h.setEmailConfigModel(aa);h.setIsEdit(!0);h.setFuncReSize(k.getDialogCtrl().setBounds);k.setContentPaneCreator(function(){return h.createUi()});k.setClosingChecker(function(z){P(z)},!0);k.setClosingAction(function(z){})})();this.setOuterMessageCurtain=function(z){n=z};this.setSuccessCallBack=function(z){O=z};var P=function(z){var r=h.getEmailConfigModel(),u=r.check();if(u)return k.getMessageCurtain().showPrompt(u,2E3),z(!1),!1;if(!h.checkWarningRuleExist())return k.getMessageCurtain().showPrompt(a.get("saveWarningRuleTips",
"\u9884\u8b66\u89c4\u5219\u4e0d\u5b58\u5728\uff0c\u8bf7\u91cd\u65b0\u9009\u62e9\u6216\u5220\u9664\u3002")),z(!1),!1;u=ja;r.isAnonymousView()&&(u=F);(new f(q,function(X){O&&O(r);n&&n.showSuccess(a.get("successToSaveConfigInfo","\u4fdd\u5b58\u914d\u7f6e\u4fe1\u606f\u6210\u529f\u3002"));z(!0)},function(X,Q){if(2301005==X)return k.getMessageCurtain().showError(a.get("sourceIsPublishAndNoPermission","\u539f\u53d1\u5e03\u672a\u6388\u6743\u3002")),z(!1),!0;if(2301006==X)return k.getMessageCurtain().showError(a.get("publishSourcePublishNotExistException",
"\u539f\u53d1\u5e03\u4fe1\u606f\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664\u3002")),z(!1),!0;z(!1);return!1})).updateEmailConfig(M.EMAIL,r,u)};this.getFunBound=function(){return k.getDialogCtrl().setBounds}}function J(q,aa,F,ja,N,k){oa.call(this);var h=this.protectedMethod,O=this,n;(function(){h.setTitle(a.get("scheduleDetails","\u63a8\u9001\u660e\u7ec6"));O.setSize(800,570);h.setSelectable(!0);h.getDialogCtrl().setMinSize(800,570);h.getDialogCtrl().setFullScreenEnabled();h.getDialogCtrl().addResizeListener(function(){n&&
n.relayoutViews()});n=new ma(q,aa,F);n.setParentRowIdx(N);n.setParentCellIndex(k);n.setParentTableModel(ja);n.setOuterMessageCurtain(h.getMessageCurtain());h.setContentPaneCreator(function(){return n.getJqUi()});h.setClosingAction(function(P){h.destroy()});h.setFooterClosingOnly(!0);h.setClosingChecker2(null,function(P){h.destroy();return!0})})()}function ma(q,aa,F){function ja(y){KTDefaultCellRender.call(this,y);var A=this,W=this.paintCellUI;this.paintCellUI=function(T,G){var ea=A.getCurrentRowIdx(),
da=A.getCurrentRow(),xa=A.getCurrentColIdx();if(ea<S.getHeadRowCount()||0!=xa&&4!=xa&&2!=xa){W(T,G);if(1==ea&&0==xa){ea=$("<div>");ea.addClass("total-checkbox-ctrl");var ka=new Fa;ea.data("checkBoxModel",ka);G=ka.getJqUi();ea.append(G);ea.on("click",Ea);G=u&&0!=$(".push-detail-name-left").length&&u.length==$(".push-detail-name-left").length;ka.setChecked(G);ea.appendTo(T)}$(T).find("span").css({"padding-right":"8px","padding-left":"6px"})}else if(0==xa){var na=da.getUserObject();da=$("<div>");da.addClass("push-detail-name-left");
ka=new Fa;G=ka.getJqUi();da.data("checkBoxModel",ka);da.data("emailSendLogModel",na);da.data("tableModel",y);da.attr("rowIndex",ea);da.attr("table-emailSendLog-id",na.getId());da.on("click",ra);ka.setChecked(ua(na.getId()));da.append(G);ka=$("<div>");ka.addClass("push-detail-name-right");ka.text(na.getName());da.appendTo(T);ka.appendTo(T)}else 4==xa?(na=da.getUserObject(),na.getPublishId()&&(ka=new za(a.get("open","\u6253\u5f00")),ka.addActionListener(function(){var La=F.indexOf("?");La=F.substring(0,
-1!==La?La:F.length);La=Ya.appendParamToUrl(La,"publishId",na.getPublishId());La=Ya.appendParamToUrl(La,"timedPush",!0);sa.openNewTabInAppId(na.getName(),La,La,sa.QING_ANALYSIS)}),ka=ka.getJqUi(),ka.addClass("sa-qing-publish-email-publishinfo-manager-op-open"),ka.appendTo(T))):2==xa&&(na=da.getUserObject(),Z.SENDEMAILSSTATUS_SUCCESS==na.getSendEmailsStatus()?(G="green",ea=a.get("pushSuccess","\u6210\u529f")):Z.SENDEMAILSSTATUS_WARNINGRULE_UNMATCHED==na.getSendEmailsStatus()?(G="#ff831f",ea=a.get("unPush",
"\u672a\u63a8\u9001")):(G="red",ea=a.get("pushFailure","\u5931\u8d25")),da=$("<div style='border: solid 1px;text-align:center;height: 16px'>"),da.text(ea),da.css("color",G),da.css("width","60px"),da.css("position","absolute"),da.css("top","0"),da.css("bottom","0"),da.css("margin","auto"),da.appendTo(T),Z.SENDEMAILSSTATUS_PARTSUCCESS==na.getSendEmailsStatus()?ka=a.get("sendEmailsStatusPartSuccess","\u90e8\u5206\u6210\u529f"):Z.INSUFFICIENT_SCHEDULING_TIMES==na.getSendEmailsStatus()?ka=a.get("insufficientSchedulingTimes",
"\u8c03\u5ea6\u6b21\u6570\u4e0d\u8db3"):Z.SENDEMAILSSTATUS_WARNINGRULE_UNMATCHED==na.getSendEmailsStatus()&&(ka=a.get("warningRuleUnMatched","\u4e0d\u6ee1\u8db3\u9884\u8b66\u89c4\u5219")),Z.SENDEMAILSSTATUS_SUCCESS!=na.getSendEmailsStatus()&&(Z.INSUFFICIENT_SCHEDULING_TIMES==na.getSendEmailsStatus()||Z.SENDEMAILSSTATUS_WARNINGRULE_UNMATCHED==na.getSendEmailsStatus()?(ea=$("<div style='text-align:center;width:75px;height: 16px'>"),ea.text(ka),ea.css("position","absolute"),ea.css("top","0"),ea.css("bottom",
"0"),ea.css("left","70px"),ea.css("margin","auto"),ea.appendTo(T)):(ka=new za(a.get("errorDetail","\u8be6\u60c5")),ka.addActionListener(function(La){Na(na.getId())}),ka=ka.getJqUi(),ka.addClass("push-failure-detail"),ka.appendTo(T))))}}Sa.call(this,q,M.EMAIL);var N=this.protectedMethod,k,h,O,n,P,z,r,u;this.setParentRowIdx=function(y){k=y};this.setParentCellIndex=function(y){h=y};this.setParentTableModel=function(y){O=y};this.getJqUi=function(){if(!n){var y=$("<div>");y.addClass("sa-qing-publish-manager");
P=$("<div>");P.addClass("sa-qing-publish-manager-content-emptytip");P.text(a.get("loading","\u52a0\u8f7d\u4e2d"));P.appendTo(y);z=S.createTable();z.setDraggableAdjusting(!0,2,0,new ha);z.setColumnFitVisibleWidth(!0);var A=new ja(z);A.setOutsideVisible(!1);z.setCellRender(A);z.setSyncUIWhenModelChanged(!0);z.addColumns(5);z.getColumn(0).setWidth(200);z.getColumn(1).setWidth(150);z.getColumn(2).setWidth(100);z.getColumn(3).setWidth(100);z.getColumn(4).setWidth(60);A=S.createHeadRow(z);A.getCell(0).setValue(a.get("rName",
"\u540d\u79f0"));A.getCell(1).setValue(a.get("createTime","\u751f\u6210\u65f6\u95f4"));A.getCell(2).setValue(a.get("sendEmailsStatus","\u63a8\u9001\u72b6\u6001"));A.getCell(3).setValue(a.get("fileSize","\u6587\u4ef6\u5927\u5c0f"));A.getCell(4).setValue(a.get("operate","\u64cd\u4f5c"));r=$(z.getUI());l.layoutCtrlWithLRTB(r,0,0,null,65,0,null);r.appendTo(y);X();n=y}return n};var X=function(){var y=new f(q,function(A){P.hide();if(null==A||0==A.length)A=$("<div>"),A.addClass("no-data-image"),Qa.background(A,
"no-data"),A.appendTo(n),A=$("<div>"),A.addClass("no-push-config-data"),A.text(a.get("noData","\u6682\u65e0\u76f8\u5173\u6570\u636e")),A.appendTo(n),r.hide();else{for(var W="0KB",T=0;T<A.length;T++){var G=new Z;G.fromJsonObject(A[T]);G=G.getFileSize();W=Pa(G,W,!0)}T=new Da;T.setTotalRowNum(A.length);T.setContentPane(n);T.setTotalPushRecordFileSize(W);T.setIsEmailPush(!0);T.setBatchHandleEvent(function(ea){Q(ea)});T.paintBatchDelUI().appendTo(n);r.show();ca(A)}},function(A,W){P.hide();return!1});y.setShowBlocking(!1);
y.loadPublishInfos(M.EMAIL,aa)},Q=function(y){for(var A,W=[],T=[],G=0;G<y.length;G++){var ea=y[G];!A&&(A=ea.tableModel);W.push(ea.rowIndex);T.push(ea.pushRecordModel.toJsonObject())}(new f(q,function(){N.getOuterMessageCurtain().showSuccess(a.get("deleteSuccess","\u5220\u9664\u6210\u529f\u3002"));for(var da=0,xa=0;xa<W.length;xa++)A.removeRow(W[xa]-da),da++;A.updateUI(!0);var ka=A.getRowsCount();da="0KB";for(xa=3;xa<ka;xa++){var na=A.getRow(xa).getUserObject().getFileSize();da=Pa(na,da,!0)}$(".push-record-total-value").text(da);
xa=$(".push-detail-total-row-count").text();xa=parseInt(xa);$(".push-detail-total-row-count").text(xa-W.length);xa=O.getRow(k);xa.getCell(h).setValue(da);ka=xa.getUserObject();ka.setTotalPushRecordSize(da);xa.setUserObject(ka);da=O.getRowsCount();ka="0KB";for(na=3;na<da;na++)xa=O.getRow(na).getUserObject().getTotalPushRecordSize(),ka=Pa(xa,ka,!0);$(".email-push-manage-fileSize").text(ka)},function(da,xa){return!1})).deleteEmailPublishInfoById(M.EMAIL,T)},ca=function(y){S.clearWithoutHead(z);if(y)for(var A=
0;A<y.length;A++){var W=new Z;W.fromJsonObject(y[A]);var T=S.createRow(z);T.setUserObject(W);T.setHeight(30);T.getCell(0).setValue(W.getName());T.getCell(1).setValue(W.getCreateFormatTime());T.getCell(3).setValue(W.getFileSize())}S.refresh(z)},ua=function(y){if(u)for(var A=0;A<u.length;A++)if(y==u[A])return!0;return!1},ra=function(y){var A=$(y.currentTarget).data("checkBoxModel").isChecked();y=$(".total-checkbox-ctrl");y=$(y).data("checkBoxModel");if(A){a:{A=$(".push-detail-name-left");for(var W=
0;W<A.length;W++)if(!$(A[W]).data("checkBoxModel").isChecked()){A=!1;break a}A=!0}y.setChecked(A)}else y.setChecked(A)},Ea=function(y){y=$(y.currentTarget).data("checkBoxModel").isChecked();for(var A=$(".push-detail-name-left"),W=0;W<A.length;W++)$(A[W]).data("checkBoxModel").setChecked(y)},Pa=function(y,A,W){y=ya(y);A=ya(A);y=W?jb.add(A,y):jb.sub(A,y);y=1024>y?0==y?y+"KB":y.toFixed(2)+"KB":jb.div(y,1024).toFixed(2)+"MB";return y},ya=function(y){var A=y.substring(0,y.length-2);return A="MB"==y.substring(y.length-
2,y.length)?jb.mul(A,1024):A},Na=function(y){var A=new f(q,function(W){if(W){var T=W.errorCode,G=W.errorMessage,ea=W.errorStackTrace;W=new qa;if(2314104==T)G=a.get("sendEmailsSenderException","\u53d1\u4ef6\u90ae\u7bb1\u914d\u7f6e\u6709\u8bef\uff0c\u8bf7\u91cd\u65b0\u914d\u7f6e");else if(2314105==T)G=a.get("sendEmailsInvalidReceiversException","\u90e8\u5206\u6536\u4ef6\u90ae\u7bb1\u63a8\u9001\u5931\u8d25\uff0c\u8bf7\u4ed4\u7ec6\u6838\u5b9e\u6536\u4ef6\u90ae\u7bb1\uff0c\u63a8\u9001\u5931\u8d25\u7684\u6536\u4ef6\u90ae\u7bb1\u6709\uff1a#1\u3002").replace("#1",
G);else if(2101001==T)G=a.get("publishSourceSubjectNotExist","\u539f\u4e1a\u52a1\u4e3b\u9898\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664");else if(2106001==T)G=a.get("publishSourceDashboardNotExist","\u539f\u4eea\u8868\u677f\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664");else if(2101010==T||2301010==T)G=a.get("themeFileSizeLimit","\u8f7b\u5b58\u50a8\u7a7a\u95f4\u4e0d\u8db3");else if(2100001==T)G=a.get("qingStorageNoSpace","\u78c1\u76d8\u7a7a\u95f4\u4e0d\u8db3\uff0c\u8bf7\u8054\u7cfb\u8fd0\u7ef4\u4eba\u5458\u6dfb\u52a0\u78c1\u76d8");
else if(21000008==T)G=a.get("noQingModelerLicense","\u5f53\u524d\u7cfb\u7edf\u6ca1\u6709\u3010\u8f7b\u5efa\u6a21\u3011\u6a21\u5757\u7684\u4f7f\u7528\u8bb8\u53ef\uff0c\u8bf7\u4e0e\u7cfb\u7edf\u7ba1\u7406\u5458\u8054\u7cfb");else if(2101019==T)G=a.get("noModelerPermission","\u5c1a\u672a\u83b7\u5f97\u6570\u636e\u8868\u6a21\u578b\u7684\u6570\u636e\u6743\u9650\u3002");else if(2101006==T)G=a.get(T.toString(),"\u5c1a\u672a\u83b7\u5f97\u5b9e\u4f53\u6570\u636e\u8868\u7684\u67e5\u770b\u6743\u9650"),(T=ea.match(/(\(|\uff08)([^(\)|\uff09)]+)(\)|\uff09)/))&&
T[2]&&(ea=T[2]),ea=a.get("noAuthorityForTheseEntities","\u5c1a\u672a\u83b7\u5f97\u4ee5\u4e0b\u5b9e\u4f53\u6570\u636e\u8868\u7684\u67e5\u770b\u6743\u9650\uff1a")+"\r  "+ea.replace(/,/g,a.get("semicolon","\uff1b")+"\r  ");else if(2101018==T){if(T=/(?:\u3010\s)(.+)(?=\s\u3011)/.exec(ea))G=T[1],G=a.get("notSupportQingAnalysis","\u4ee5\u4e0b\u4e1a\u52a1\u5b9e\u4f53\u5c1a\u672a\u5f00\u542f\u201c\u652f\u6301\u8f7b\u5206\u6790\u201d\u8bbe\u7f6e\u9879\uff1a")+"\r  "+G,ea=G.replace(/,/g,a.get("semicolon","\uff1b")+
"\r  ");G=a.get("entityNotSupportQingAnalysis","\u4e1a\u52a1\u5b9e\u4f53\u672a\u5f00\u542f\u201c\u652f\u6301\u8f7b\u5206\u6790\u201d\u8bbe\u7f6e\u9879\uff0c\u8bf7\u5728\u5f00\u53d1\u5e73\u53f0\u7684\u5bf9\u5e94\u8868\u5355\u4e2d\u8fdb\u884c\u8bbe\u7f6e   ");var da=kb.getSupportQingAnalysisUrl();W.setCustomPainter(function(xa,ka){var na=$("<div class='sa-ctrl-msgdlg-text'>");na.css("bottom",20);var La=$("<a onclick='javascript:window.open(\""+da+"\");' href='#'>");La.css("cursor","pointer");La.css("color",
"#5582f3");La.text(a.get("viewDocument","\u67e5\u770b\u5e2e\u52a9\u6587\u6863"));na.text(ka);na.append(La);xa.append(na)})}else G=a.get("sendEmailsOtherException","\u5176\u4ed6\u9519\u8bef\uff1a#1").replace("#1",G);W.setOptionType(qa.OPTION_OK);W.setMessage(G);ea&&W.setDetail(ea);W.showDialog()}else N.getOuterMessageCurtain().showPrompt(a.get("notFindExceptionLog","\u672a\u627e\u5230\u5bf9\u5e94\u7684\u4fe1\u606f\u3002"))},function(W,T){return!1});A.setShowBlocking(!1);A.loadExceptionLog(M.EMAIL,
y)};this.relayoutViews=function(){if(z){u=[];for(var y=$(".push-detail-name-left"),A=0;A<y.length;A++){var W=y[A];$(W).data("checkBoxModel").isChecked()&&(W=$(W).attr("table-emailSendLog-id"),u.push(W))}S.refresh(z);z.relayoutViews()}}}function Ba(q,aa,F,ja,N,k){var h=this,O,n,P,z,r,u,X,Q,ca,ua,ra,Ea,Pa=!1,ya=!1,Na,y,A=!1,W,T,G,ea,da,xa,ka=!1,na,La;this.setFuncReSize=function(L){T=L};this.getFunResize=function(){return T};this.setPublishContext=function(L){W=L};this.getPublishContext=function(){return W};
this.setEmailConfigModel=function(L){n=L};this.getEmailConfigModel=function(){n.setNameRule(ua);n.setSchedule(ra);Ea&&n.setSenderId(Ea.getId());n.setReceivers(u.getText());n.setContent(ca.getText());n.setScheduleSwitch(X.isOn());n.setIsAnonymousView(Q.isOn());n.setNoOperValueMap(y.getNoOperValueMap());n.setWarningRuleName(da);n.setWarningRuleStatus(!0);return n};this.setIsEdit=function(L){ya=L};this.createUi=function(){if(!O){var L=new wa;L.setRequired(!0);L.setText(a.get("emailName","\u90ae\u4ef6\u540d\u79f0"));
L=L.getJqUi();P=new gb;P.addActionListener(Bb);var va=P.getJqUi(),b=new wa;b.setRequired(!0);b.setText(a.get("pushSchedule","\u63a8\u9001\u9891\u7387"));b=b.getJqUi();b.attr("title",a.get("pushSchedule","\u63a8\u9001\u9891\u7387"));z=new gb;z.addActionListener(ub);var e=z.getJqUi(),p=new wa;p.setRequired(!0);p.setText(a.get("senderEmail","\u53d1\u4ef6\u90ae\u7bb1"));p=p.getJqUi();r=new gb;r.addActionListener(rb);var w=r.getJqUi();if(!fb()){var m=new wa;m.setText(a.get("warningRule","\u9884\u8b66\u89c4\u5219"));
m=m.getJqUi();m.attr("title",a.get("warningRule","\u9884\u8b66\u89c4\u5219"));ea=new gb;ea.addActionListener(Cb);ea.addClearListener(tb);na=ea.getJqUi();if(!ya){var ta=$("<span>");ta.addClass("sa-qing-publish-edit-icon");ta.attr("title",a.get("warningRuleEdit","\u7f16\u8f91\u9884\u8b66\u89c4\u5219"));Qa.backgroundWithHover(ta,"icon-rule-setting");ta.on("click",yb)}}var U=new wa;U.setRequired(!0);U.setText(a.get("receiverEmails","\u6536\u4ef6\u90ae\u7bb1"));U=U.getJqUi();u=new g;u.setPlaceholder(a.get("receiverEmailsTips",
"\u591a\u4e2a\u90ae\u7bb1\u53ef\u7528\u9017\u53f7\u6216\u5206\u53f7\u5206\u9694"));var fa=u.getJqUi();fa.attr("title",a.get("receiverEmailsTips","\u591a\u4e2a\u90ae\u7bb1\u53ef\u7528\u9017\u53f7\u6216\u5206\u53f7\u5206\u9694"));var V=new wa;V.setText(a.get("emailContent","\u90ae\u4ef6\u6b63\u6587"));V=V.getJqUi();ca=new Ka;var D=ca.getJqUi(),ba=new wa;ba.setText(a.get("enabled","\u542f\u7528"));ba=ba.getJqUi();X=new ia;X.setOn(!0);var la=X.getJqUi();(new wa).setText(a.get("anonymousView","\u533f\u540d\u67e5\u770b"));
Q=new ia;Q.setOn(!1);var I=Wa.LONGER_VIEW;fb()&&(I=Wa.DSB_VIEW);y||(y=bb.createPublishAdvancePanel(I,W,n),y.setInitSuccessCallBackHandler(zb),y.setRemoteImpl(q),y.setPublishTargetType(M.EMAIL),y.setTimedPush(!0),y.loadPublishOperModel());Na=$("<div>");Na.addClass("sa-qing-publish-advance-set-btn");Na.text(a.get("advanceSetting","\u9ad8\u7ea7\u8bbe\u7f6e")+" >>");G=$("<div>");I=0;if(!ya){var Ga=ob();Ja(G,Ga,335,0,100,23);I+=25}Ja(G,L,18,I,70,23);Ja(G,va,90,I,335,23);I+=43;Ja(G,p,18,I,70,23);Ja(G,w,
90,I,335,23);I+=43;Ja(G,U,18,I,70,23);Ja(G,fa,90,I,335,23);I+=43;Ja(G,b,18,I,70,23);Ja(G,e,90,I,335,23);fb()?(I+=43,Ja(G,V,18,I,70,23),Ja(G,D,90,I,315,215),ya||(I+=231,Ja(G,ba,18,I,70,23),Ja(G,la,90,I+3,31,19)),Ja(G,Na,338,ya?I+237:I+17,70,23)):(I+=43,Ja(G,m,18,I,70,23),Ja(G,na,90,I,ya?335:315,23),ya||Ja(G,ta,408,I-20,20,16),I+=43,Ja(G,V,18,I,70,23),Ja(G,D,90,I,315,ya?180:165),ya||(I+=181,Ja(G,ba,18,I,70,23),Ja(G,la,90,I+3,31,19)),Ja(G,Na,338,ya?I+188:I+22,70,23));n?(ua=n.getNameRule(),ra=n.getSchedule(),
P.setModel(n.getNameRule().toString()),z.setModel(n.getSchedule().toString()),u.setText(n.getReceivers()),ca.setText(n.getContent()),X.setOn(n.getScheduleSwitch()),Q.setOn(n.isAnonymousView()),fb()||(da=n.getWarningRuleName(),nb())):(n=new Ha,fb()||hb());Ab();ta=$("<div>");G.appendTo(ta);O=ta}return O};var zb=function(L){L.appendTo(O);n&&n.getNoOperValueMap()&&0!=(n.getNoOperValueMap()[$a.LONGER]|n.getNoOperValueMap()[$a.SQUARE_LONGER]|n.getNoOperValueMap()[$a.SQUARE])&&(A=!0,sb(L,A));Na.on("click",
function(){A=!A;sb(L,A)})},sb=function(L,va){var b=$(document.body),e=b.prop("clientWidth");b=b.prop("clientHeight");y.showOrHide(L,va);va?(G.css({width:"50%"}),Na.text(a.get("advanceSetting","\u9ad8\u7ea7\u8bbe\u7f6e")+" <<"),T&&T((e-928)/2,parseInt((b-595)/2),928,ya?570:595)):(G.css({width:"100%"}),Na.text(a.get("advanceSetting","\u9ad8\u7ea7\u8bbe\u7f6e")+" >>"),T&&T((e-480)/2,parseInt((b-595)/2),480,ya?570:595))},fb=function(){return ya?n.getPublishSourceType()==cb.DASHBOARD:W.getCurrentSourceType()==
cb.DASHBOARD},ob=function(){var L=new za;L.setText(a.get("schedulePushManager","\u5b9a\u65f6\u63a8\u9001\u7ba1\u7406"));L.addActionListener(function(){La||Ma.setCallback(function(){La=new com.kingdee.bos.qing.biz.common.SimplePaginationBar});var va=new H(q,aa,F,N);va.setClickTimedPushManager(!0);va.showDialog()});return L.getJqUi()},rb=function(){Pa&&(Ma.setCallback(function(){var L=new K(q,Ea,ja);L.setConfirmCallback(mb);L.showDialog()}),Ma.loadJs("timedpush/jsencrypt.min-2.1.0.js"))},Ja=function(L,
va,b,e,p,w){va.css("position","absolute");va.css("left",b+"px");va.css("top",e+"px");va.css("width",p+"px");va.css("height",w+"px");va.appendTo(L)},Ab=function(){var L=new f(q,function(va){if(va){var b=new c;b.fromJsonObject(va);mb(b)}Pa=!0},function(va,b){return!1});L.setShowBlocking(!1);L.getUserEmailSender(M.EMAIL)},mb=function(L){if(L){var va;L.getName()&&(va=L.getName());L.getAccount()&&(va=va+"("+L.getAccount()+")");r.setModel(va)}Ea=L},Bb=function(L){L=new R(ua);L.setConfirmCallback(vb);L.showDialog()},
ub=function(L){L=new Oa(ra,q);L.setConfirmCallback(xb);L.showDialog()},vb=function(L){P.setModel(L.toString());ua=L},xb=function(L){z.setModel(L.toString());ra=L},Cb=function(L){ya?(new com.kingdee.bos.qing.core.ui.WarningRuleSelector).showDialog(xa,da,pb,function(va){ka=h.checkWarningRuleExist();hb()}):k.getConductor().popupWarningRuleSelector(da,pb,function(va){ka=h.checkWarningRuleExist();hb()})},pb=function(L){da=L},tb=function(L){da=null;hb()},yb=function(L){ya||k.getConductor().popupWarningRuleEditor(function(va){va&&
(W.getCurrentContentModel().schemaContent=k.getJsonModelBook(),ka=h.checkWarningRuleExist(),hb())})};this.checkWarningRuleExist=function(){return null==da||null!=k&&k.getConductor().checkWarningRuleExist(da)||null!=xa&&com.kingdee.bos.qing.core.ui.WarningRuleSelector.checkWarningRuleExist(xa,da)?!0:!1};var wb=function(L){var va=new f(q,function(p){L(p.model)}),b=n.getId(),e=n.getPublishSourceType();va.loadPushSchema(M.EMAIL,b,e)},nb=function(){wb(function(L){var va=com.kingdee.bos.qing.CodeLoader;
va.setCallback(function(){xa=com.kingdee.bos.qing.ModelHelper.fromJson(L);ka=h.checkWarningRuleExist();hb()});va.setRootPath(".");va.loadJs("core/qing-scene.js")})},hb=function(){na.css("color","#666666");var L=na.find(".warning-rule-item-notexist");L&&L.remove();L=na.find(".sa-ctrl-f7selector-text");L.css("margin-left","0px");null==da&&(ea.setModel(a.get("warningRuleTips","\u8bf7\u9009\u62e9\u9884\u8b66\u89c4\u5219")),na.css("color","#b2b2b2"),na.attr("title",a.get("warningRuleTips","\u8bf7\u9009\u62e9\u9884\u8b66\u89c4\u5219")));
null!=da&&ka&&(ea.setModel(a.get("selectedWarningRule","\u5df2\u9009\u62e9\u9884\u8b66\u89c4\u5219")+da),na.attr("title",""));if(null!=da&&!ka){ea.setModel(a.get("TheWarningRuleNotExist","\u9884\u8b66\u89c4\u5219#1\u4e0d\u5b58\u5728").replace("#1",da));na.attr("title","");var va=db.createWarning();va.addClass("warning-rule-item-notexist");va.attr("title",a.get("warningRuleNotExist","\u9884\u8b66\u89c4\u5219\u4e0d\u5b58\u5728"));na.append(va);L.css("margin-left","16px")}da?ea.setClearable(!0):ea.setClearable(!1)}}
function R(q){oa.call(this);var aa=this,F=this.protectedMethod,ja,N,k;(function(){F.setTitle(a.get("emailName","\u90ae\u4ef6\u540d\u79f0"));aa.setSize(400,320);F.setSelectable(!0);ja=new t;q&&(N=q.copy());ja.setEmailNameRuleModel(N);ja.setMessageCurtain(F.getMessageCurtain());F.setContentPaneCreator(function(){return ja.getJqUi()});F.setClosingChecker(function(h){N=ja.getEmailNameRuleModel();var O=N.check();O?(F.getMessageCurtain().showPrompt(O),h(!1)):(k&&k(N),h(!0))},!0);F.setClosingAction(function(h){})})();
this.setConfirmCallback=function(h){k=h}}function Oa(q,aa){oa.call(this);var F=this,ja=this.protectedMethod,N,k=q,h,O;(function(){ja.setTitle(a.get("pushSchedule","\u63a8\u9001\u65f6\u95f4"));F.setSize(400,320);ja.setSelectable(!0);ja.setContentPaneCreator(function(){N=new com.kingdee.bos.qing.schedule.ScheduleSelector;N.isOnlyPeriod(!0);N.setCronAnalysisFacade(n);var P=N.getJqUi();P.css("left","60px");k&&N.setSchedule(k.copy());return P});ja.setClosingChecker(function(P){var z=N.getSchedule();if("Custom"==
z.getPeriod()){var r=z.getCron();"undefined"==typeof r||""==r?(h.showPrompt(a.get("cronErrorMessage","\u8bf7\u8f93\u5165\u8868\u8fbe\u5f0f\u3002")),P(!1)):z.getCronFlag()||(h.showPrompt(a.get("cornInCheckOrError","cron\u8868\u8fbe\u5f0f\u6709\u8bef\u6216cron\u8868\u8fbe\u5f0f\u6b63\u5728\u89e3\u6790\u6821\u9a8c\u3002")),P(!1))}k=N.getSchedule();O&&O(k);P(!0)},!0);ja.setClosingAction(function(P){});h=ja.getMessageCurtain()})();var n=function(P,z,r){z=new f(aa,z,r);z.setShowBlocking(!0);z.cronExpression(M.EMAIL,
P)};this.setConfirmCallback=function(P){O=P}}function t(){function q(r,u,X){this.toString=function(){return r};this.getType=function(){return u};this.getSettingPane=function(){return X}}var aa,F,ja,N,k,h,O,n=[new q(a.get("nameFixed","\u56fa\u5b9a\u540d\u79f0"),Aa.TYPE_FIXED,new function(){var r;this.getJqUi=function(){r||(r=$("<div>"));return r}}),new q(a.get("nameDate","\u540d\u79f0-\u7cfb\u7edf\u65e5\u671f"),Aa.TYPE_DATE,new function(){var r;this.getJqUi=function(){if(!r){var X=r=$("<div>"),Q=new wa;
Q.setText(a.get("dateFormat","\u65e5\u671f\u683c\u5f0f"));Q=Q.getJqUi();h=new B;var ca=h.getJqUi();u(X,Q,0,0,90,23);u(X,ca,95,0,220,23);X=Aa.getArrDateFormat();h.setItemModels(X);ja&&h.setSelected(Aa.searchDateFormatObj(ja.getDateFormat()))}return r};var u=function(X,Q,ca,ua,ra,Ea){Q.css("position","absolute");Q.css("left",ca+"px");Q.css("top",ua+"px");Q.css("width",ra+"px");Q.css("height",Ea+"px");Q.appendTo(X)}})];this.getJqUi=function(){if(!aa){var r=new wa;r.setText(a.get("rule","\u89c4\u5219"));
r=r.getJqUi();k=new B;k.setItemModels(n);k.addSelectedChangedListener(z);var u=k.getJqUi(),X=new wa;X.setRequired(!0);X.setText(a.get("rName","\u540d\u79f0"));X=X.getJqUi();N=new g;var Q=N.getJqUi();aa=$("<div>");O=$("<div>");P(aa,r,18,2,64,23);P(aa,u,115,2,220,23);P(aa,X,18,45,64,23);P(aa,Q,115,45,220,23);P(aa,O,18,88,320,190);if(ja){N.setText(ja.getName());a:{r=ja.getType();for(u=0;u<n.length;u++)if(n[u].getType()==r){r=n[u];break a}r=null}k.setSelected(r);r=r.getSettingPane();r=r.getJqUi()}else r=
n[0],k.setSelected(r),r=r.getSettingPane(),r=r.getJqUi();r.addClass("sa-qing-publish-rule-pane");r.appendTo(O)}return aa};this.setEmailNameRuleModel=function(r){ja=r};this.getEmailNameRuleModel=function(){ja||(ja=new Aa);ja.setName(N.getText());var r=k.getSelected();ja.setType(r.getType());h&&h.getSelected()&&ja.setDateFormat(h.getSelected().getValue());return ja};this.setMessageCurtain=function(r){F=r};this.getMessageCurtain=function(){return F};var P=function(r,u,X,Q,ca,ua){u.css("position","absolute");
u.css("left",X+"px");u.css("top",Q+"px");u.css("width",ca+"px");u.css("height",ua+"px");u.appendTo(r)},z=function(r,u,X){r=X.getSettingPane();O.find(".sa-qing-publish-rule-pane").detach();r=r.getJqUi();r.addClass("sa-qing-publish-rule-pane");r.appendTo(O)}}function K(q,aa,F){oa.call(this);var ja=this,N=this.protectedMethod,k,h;(function(){N.setTitle(a.get("senderEmail","\u53d1\u4ef6\u90ae\u7bb1"));ja.setSize(400,415);N.setSelectable(!0);k=new x(q,aa);N.setContentPaneCreator(function(){return k.getJqUi()});
N.setClosingChecker(function(P){var z=k.getEmailSenderModel(),r=new c;r.fromJsonObject(z.toJsonObject());var u=new JSEncrypt;u.setPublicKey(c.PWD_ENCRYPT_PUBLICKEY);u=u.encrypt(r.getPwd());r.setPwd(u);(u=z.doCheck())?(N.getMessageCurtain().showPrompt(u),P(!1)):O(r,z,P)},!0);N.setClosingAction(function(P){})})();this.setConfirmCallback=function(P){h=P};var O=function(P,z,r){var u=new f(q,function(){n(P,z,r)},function(X,Q){N.getMessageCurtain().showPrompt(a.get("connectedFail","\u8fde\u63a5\u90ae\u7bb1\u5931\u8d25\uff1a")+
Q,3E5);r(!1);return!0});u.setShowBlocking(!0);u.connectTest(M.EMAIL,P)},n=function(P,z,r){var u=new f(q,function(X){z.getId()||z.setId(X);F.showSuccess(a.get("saveSuceess","\u4fdd\u5b58\u6210\u529f\u3002"));h&&h(z);r(!0)},function(X,Q){r(!1);return!1});u.setShowBlocking(!1);u.saveEmailSender(M.EMAIL,P)}}function x(q,aa){var F,ja,N,k,h,O,n,P;this.getEmailSenderModel=function(){var ca=new c;aa&&ca.setId(aa.getId());ca.setName(ja.getText());ca.setAccount(N.getText());ca.setPwd(k.getPassword());ca.setPort(h.getText());
ca.setIsSSL(n.getSelected());ca.setSmtpHost(O.getText());ca.setSendType(P.getSelected());return ca};this.getJqUi=function(){if(F)return F;F=$("<div>");var ca=new wa;ca.setRequired(!0);ca.setText(a.get("rName","\u540d\u79f0"));ca=ca.getJqUi();ja=new g;var ua=ja.getJqUi(),ra=new wa;ra.setRequired(!0);ra.setText(a.get("emailAccount","\u90ae\u7bb1\u5730\u5740"));ra=ra.getJqUi();N=new g;N.addBlurListener(z);var Ea=N.getJqUi(),Pa=new wa;Pa.setText(a.get("emailPwd","\u90ae\u7bb1\u5bc6\u7801/\u6388\u6743\u7801"));
Pa=Pa.getJqUi();k=new d;var ya=k.getJqUi(),Na=new wa;Na.setRequired(!0);Na.setText(a.get("sendType","\u90ae\u4ef6\u53d1\u9001\u65b9\u5f0f"));Na=Na.getJqUi();P=new B;P.setItemModels([c.SEND_TYPE_SMTP,c.SEND_TYPE_EXCHANGE]);P.setCustomPainter(function(xa,ka,na){var La;na===c.SEND_TYPE_EXCHANGE?La="Exchange":na===c.SEND_TYPE_SMTP&&(La="SMTP");ka.text(La)});P.addSelectedChangedListener(u);var y=P.getJqUi(),A=new wa;A.setRequired(!0);A.setText(a.get("smtpHost","\u90ae\u7bb1\u670d\u52a1\u5668"));A=A.getJqUi();
O=new g;var W=O.getJqUi(),T=new wa;T.setRequired(!0);T.setText(a.get("isSSL","\u662f\u5426SSL\u52a0\u5bc6"));T=T.getJqUi();n=new B;n.setItemModels([!0,!1]);n.setCustomPainter(function(xa,ka,na){xa=1==na?a.get("yes","\u662f"):0==na?a.get("no","\u5426"):"";ka.text(xa)});n.addSelectedChangedListener(r);var G=n.getJqUi(),ea=new wa;ea.setRequired(!0);ea.setText(a.get("port","\u7aef\u53e3"));ea=ea.getJqUi();h=new g;var da=h.getJqUi();X(F,ca,18,0,110,23);X(F,ua,130,0,200,23);X(F,ra,18,45,110,23);X(F,Ea,
130,45,200,23);X(F,Pa,18,88,110,23);X(F,ya,130,88,200,23);X(F,Na,18,131,110,23);X(F,y,130,131,200,23);X(F,A,18,174,110,23);X(F,W,130,174,200,23);X(F,T,18,217,110,23);X(F,G,130,217,200,23);X(F,ea,18,260,110,23);X(F,da,130,260,200,23);aa&&(ja.setText(aa.getName()),N.setText(aa.getAccount()),k.setPassword(aa.getPwd()),P.setSelected(aa.getSendType()),O.setText(aa.getSmtpHost()),n.setSelected(aa.isSSL()),h.setText(aa.getPort()));return F};var z=function(ca){var ua=!1;if(ca.getText())for(var ra=0;ra<c.ARR_COMMON_EMAIL_INFO.length;ra++){var Ea=
c.ARR_COMMON_EMAIL_INFO[ra];if((new RegExp(Ea.getRegExp())).test(ca.getText().toLowerCase())){ua=!0;P.setSelected(Ea.getSendType());O.setText(Ea.getSmtpHost());n.setSelected(Ea.isSSL());h.setText(Ea.getPort());break}}ua||(O.setText(""),n.setSelected(!1),h.setText(c.DEFAULT_SMTP_PORT))},r=function(ca,ua,ra){ca=P.getSelected();ra=Q(ra,ca);h.setText(ra)},u=function(ca,ua,ra){ca=n.getSelected();ra=Q(ca,ra);h.setText(ra)},X=function(ca,ua,ra,Ea,Pa,ya){ua.css("position","absolute");ua.css("left",ra+"px");
ua.css("top",Ea+"px");ua.css("width",Pa+"px");ua.css("height",ya+"px");ua.appendTo(ca)},Q=function(ca,ua){return ca?ua===c.SEND_TYPE_EXCHANGE?c.DEFAULT_EXCHANGE_SSL_PORT:c.DEFAULT_SMTP_SSL_PORT:ua===c.SEND_TYPE_EXCHANGE?c.DEFAULT_EXCHANGE_PORT:c.DEFAULT_SMTP_PORT}}"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.timedpush&&
(com.kingdee.bos.qing.timedpush={});var pa=com.kingdee.bos.qing.timedpush;pa.EmailPublishConfigDialog=function(q,aa,F,ja,N,k,h){oa.call(this);var O=this,n=this.protectedMethod,P,z;(function(){n.setTitle(q);O.setSize(480,595);n.setSelectable(!0);z=new Ba(aa,ja,N,n.getMessageCurtain(),k,h);z.setPublishContext(F);z.setFuncReSize(n.getDialogCtrl().setBounds);n.setContentPaneCreator(function(){return z.createUi()});n.setClosingChecker(function(u){r(u)},!0);n.setClosingAction(function(u){})})();this.setOuterMessageCurtain=
function(u){P=u};var r=function(u){var X=z.getEmailConfigModel(),Q=X.check();if(Q)return n.getMessageCurtain().showPrompt(Q,2E3),u(!1),!1;if(!z.checkWarningRuleExist())return n.getMessageCurtain().showPrompt(a.get("saveWarningRuleTips","\u9884\u8b66\u89c4\u5219\u4e0d\u5b58\u5728\uff0c\u8bf7\u91cd\u65b0\u9009\u62e9\u6216\u5220\u9664\u3002")),u(!1),!1;X.setTagId(F.getBizTag());X.setPublishSourceType(F.getCurrentSourceType());Q=N;X.isAnonymousView()&&(Q=ja);var ca=new f(aa,function(ra){P&&P.showSuccess(a.get("successToSaveConfigInfo",
"\u4fdd\u5b58\u914d\u7f6e\u4fe1\u606f\u6210\u529f\u3002"));u(!0);ra=com.kingdee.bos.qing.behavior.BehaviorManager;ra.recordResourceOperation(ra.OperationType.QING_PUSH)},function(ra,Ea){Ea=!1;2301006==ra?(n.getMessageCurtain().showPrompt(a.get("publishSourcePublishNotExistException","\u539f\u53d1\u5e03\u4fe1\u606f\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664\u3002"),2E3),Ea=!0):2301007==ra?(n.getMessageCurtain().showPrompt(a.get("publishSourceSubjectNotExist","\u539f\u4e1a\u52a1\u4e3b\u9898\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664\u3002"),
2E3),Ea=!0):2301008==ra?(n.getMessageCurtain().showPrompt(a.get("publishSourceDashboardNotExist","\u539f\u4eea\u8868\u677f\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664\u3002"),2E3),Ea=!0):2314104==ra?(n.getMessageCurtain().showPrompt(a.get("sendEmailsSenderException","\u53d1\u4ef6\u90ae\u7bb1\u914d\u7f6e\u6709\u8bef\uff0c\u8bf7\u91cd\u65b0\u914d\u7f6e\u3002"),2E3),Ea=!0):2301005==ra?(n.getMessageCurtain().showError(a.get("sourceIsPublishAndNoPermission","\u539f\u53d1\u5e03\u672a\u6388\u6743\u3002")),
Ea=!0):2301016==ra&&(n.getMessageCurtain().showPrompt(a.get("publishNoOperAuthException","\u6ca1\u6709\u64cd\u4f5c\u6743\u9650\u3002"),2E3),Ea=!0);u(!1);return Ea}),ua=F.getCurrentContentModel();ca.saveEmailConfig(M.EMAIL,X,ua,Q,F.getDsbPublishId(),F.getScene())}};pa.EmailConfigManagePanel=E;pa.EmailPublishFacade=f;var M,Z,c,Aa,Ha,C,Qa,Ra,Sa,ha,v,S,l,a,sa,Ca,wa,g,d,B,oa,qa,za,ia,Ka,Da,Fa,Ua,Va,bb,Wa,cb,Xa,$a,Ya,db,Ma,qb,lb,kb,gb;(function(){var q=com.kingdee.bos.qing.common.ui;S=q.TableUtil;db=q.CommonIconUtil;
q=com.kingdee.bos.qing.framework.common;a=q.MultilanguageManager.createPackageAccessor(pa);sa=q.TabbedUiUtil;Ca=q.AbstractFacade;lb=q.RemoteFramework;kb=q.OfficialArticleUtil;q=com.kingdee.bos.qing.common;l=q.DomUtil;Ya=q.Util;q=com.kingdee.bos.qing.publish.common;ha=q.MyCustomExpendor;Sa=q.AbstractPublishManagerPanel;v=q.MultiOperationContainer;Ra=q.UserOperationReporter;qb=q.SchedulePushingDialog;bb=q.PublishAdvancePanelFactory;Wa=q.PublishAdvanceViewType;Xa=q.PublishFactory;q=com.kingdee.bos.qing.timedpush.common;
Qa=q.MyIcons;Da=q.PushRecordDetailSetting;Ua=q.PushDetailSettingDialog;Va=q.PubshSearchPanel;q=com.kingdee.bos.qing.publish.model;M=q.PublishTargetType;cb=q.PublishSourceType;$a=q.OperType;q=com.kingdee.bos.qing.timedpush.model;Z=q.EmailSendLog;c=q.EmailSender;Aa=q.EmailNameRule;Ha=q.EmailConfig;C=q.EmailPushRecordConfig;q=com.kingdee.bos.qing.ui.component;wa=q.Label;g=q.TextField;d=q.PasswordField;B=q.ComboBox;oa=q.AbstractModalDialog;qa=q.MessageDialog;ia=q.SwitchButton;za=q.WorkButton;Ka=q.TextArea;
Fa=q.CheckBox;gb=q.F7Selector;q=com.kingdee.bos.qing;Ma=q.CodeLoader})();Ma.setRootPath(".");Ma.loadJs("biz-common/qing-biz-common.js");Ma.loadSkinCss("biz-common","biz-common");Ma.loadSkinJs("biz-common","skin");Ma.loadI18n("biz-common","biz-common");Xa.addPublishFacade(M.EMAIL,f);var jb=new function(){this.add=function(q,aa){sArr=q.toString().split(".");var F=1<sArr.length?sArr[1].length:0;sArr=aa.toString().split(".");F=Math.pow(10,Math.max(F,1<sArr.length?sArr[1].length:0));return(this.mul(q,
F)+this.mul(aa,F))/F};this.sub=function(q,aa){sArr=q.toString().split(".");var F=1<sArr.length?sArr[1].length:0;sArr=aa.toString().split(".");F=Math.pow(10,Math.max(F,1<sArr.length?sArr[1].length:0));return(this.mul(q,F)-this.mul(aa,F))/F};this.mul=function(q,aa){var F=0;q=q.toString();aa=aa.toString();sArr=q.split(".");1<sArr.length&&(F+=sArr[1].length);sArr=aa.split(".");1<sArr.length&&(F+=sArr[1].length);return Number(q.replace(".",""))*Number(aa.replace(".",""))/Math.pow(10,F)};this.div=function(q,
aa){var F=0,ja=0;sArr=q.toString().split(".");1<sArr.length&&(F=sArr[1].length);sArr=aa.toString().split(".");1<sArr.length&&(ja=sArr[1].length);q=Number(q.toString().replace(".",""));aa=Number(aa.toString().replace(".",""));return this.mul(q/aa,Math.pow(10,ja-F))}}})();(function(){function f(){var J,ma,Ba,R,Oa,t,K,x,pa,M,Z,c="NORMAL",Aa,Ha,C,Qa,Ra,Sa,ha,v,S,l,a,sa,Ca,wa=!0;this.setFileSize=function(g){sa=g};this.getFileSize=function(){return sa};this.setApeLeft=function(g){v=g};this.getApeLeft=function(){return v};this.setApeTop=function(g){S=g};this.getApeTop=function(){return S};this.setScoLeft=function(g){Sa=g};this.getScoLeft=function(){return Sa};this.setScoTop=function(g){ha=g};this.getScoTop=function(){return ha};this.setApeWidth=function(g){Qa=g};this.getApeWidth=
function(){return Qa};this.setApeHeight=function(g){Ra=g};this.getApeHeight=function(){return Ra};this.setId=function(g){J=g};this.getId=function(){return J};this.setName=function(g){ma=g};this.getName=function(){return ma};this.setNameRule=function(g){Ba=g};this.getNameRule=function(){return Ba};this.setDescText=function(g){R=g};this.getDescText=function(){return R};this.setTagId=function(g){Oa=g};this.getTagId=function(){return Oa};this.setSourceType=function(g){t=g};this.getSourceType=function(){return t};
this.setSchedule=function(g){K=g};this.getSchedule=function(){return K};this.setOpenSchedule=function(g){x=g};this.getOpenSchedule=function(){return x};this.setThumbnailPath=function(g){pa=g};this.getThumbnailPath=function(){return pa};this.getSourceName=function(){return M};this.setSourceName=function(g){M=g};this.getSourceGroupName=function(){return Z};this.setSourceGroupName=function(g){Z=g};this.getLayoutType=function(g){return c};this.setLayoutType=function(g){c=g};this.getPushTargetType=function(){return Aa};
this.setPushTargetType=function(g){Aa=g};this.getCreateTime=function(){return Ha};this.setCreateTime=function(g){Ha=g};this.getCreateFormatTime=function(){return C};this.setCreateFormatTime=function(g){C=g};this.isHasPermission=function(){return l};this.setHasPermission=function(g){l=g};this.getSchemaType=function(){return a};this.setSchemaType=function(g){a=g};this.getWarningRuleName=function(){return Ca};this.setWarningRuleName=function(g){Ca=g};this.getWarningRuleStatus=function(){return wa};this.setWarningRuleStatus=
function(g){wa=g};this.toJsonObject=function(){var g={};g.id=J;g.name=ma;g.nameRule=Ba;g.schedule=K.toJsonObject();g.descText=R;g.tagId=Oa;g.sourceType=t;g.openSchedule=x;g.thumbnailPath=pa;g.sourceName=M;g.sourceGroupName=Z;g.layoutType=c;g.pushTargetType=Aa;g.createTime=Ha;g.apeWidth=Qa;g.apeHeight=Ra;g.scoLeft=Sa;g.scoTop=ha;g.apeLeft=v;g.apeTop=S;g.schemaType=a;g.isHasPermission=l;g.fileSize=sa;var d;if(d=sa){var B=d.substring(0,d.length-2),oa="";d=oa=d.includes("MB")?oa+1048576*B:oa+1024*B}else d=
void 0;g.sFileSizeNoFormat=d;g.warningRuleName=Ca;g.warningRuleStatus=wa;return g};this.fromJsonObject=function(g){J=g.id;ma=g.name;Ba=g.nameRule;g.schedule&&(K=new Y,K.fromJsonObject(g.schedule));R=g.descText;Oa=g.tagId;t=g.sourceType;x=g.openSchedule;M=g.sourceName;Z=g.sourceGroupName;c=g.layoutType;Aa=g.pushTargetType;Ha=g.createTime;C=g.createFormatTime;l=g.isHasPermission;a=g.schemaType;pa=g.thumbnailPath;sa=g.fileSize;Ca=g.warningRuleName;wa=g.warningRuleStatus}}function H(){f.call(this);var J,
ma,Ba;this.getPushTargetCategory=function(){return f.MISSION_CLOUD_PUSH};this.setPushToTarget=function(t){J=t};this.getPushToTarget=function(){return J};this.setUserIds=function(t){ma=t};this.getUserIds=function(){return ma};this.setGroupIds=function(t){Ba=t};this.getGroupIds=function(){return Ba};var R=this.toJsonObject;this.toJsonObject=function(){var t={};t.lappSchedulePushConfigModel=R();t.pushToTarget=J;t.userIds=ma;t.groupIds=Ba;return t};var Oa=this.fromJsonObject;this.fromJsonObject=function(t){t&&
(Oa(t.lappSchedulePushConfigModel),J=t.pushToTarget,ma=t.userIds,Ba=t.groupIds)}}"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.timedpush&&(com.kingdee.bos.qing.timedpush={});"undefined"==typeof com.kingdee.bos.qing.timedpush.model&&(com.kingdee.bos.qing.timedpush.model={});var E=com.kingdee.bos.qing.timedpush.model,
Y=com.kingdee.bos.qing.schedule.QingSchedule;E.LappSchedulePushConfigModel=f;E.ChatRobotSchedulePushConfigModel=function(){f.call(this);var J;this.getPushTargetCategory=function(){return f.CHAT_ROBOT_PUSH};this.setWebhook=function(R){J=R};this.getWebhook=function(){return J};var ma=this.toJsonObject;this.toJsonObject=function(){var R={};R.lappSchedulePushConfigModel=ma();R.webhook=J;return R};var Ba=this.fromJsonObject;this.fromJsonObject=function(R){R&&(Ba(R.lappSchedulePushConfigModel),J=R.webhook)}};
E.MissionCloudPushConfigModel=H;E.PushRecordModel=function(){var J,ma,Ba,R,Oa,t,K,x,pa,M,Z;this.setFileSize=function(c){x=c};this.getFileSize=function(){return x};this.setId=function(c){J=c};this.getId=function(){return J};this.setName=function(c){ma=c};this.getName=function(){return ma};this.setPushTime=function(c){Ba=c};this.getPushTime=function(){return Ba};this.setPushFormatTime=function(c){R=c};this.getPushFormatTime=function(){return R};this.setAnalysisId=function(c){Oa=c};this.getAnalysisId=
function(){return Oa};this.setConfigId=function(c){t=c};this.getConfigId=function(){return t};this.setPublishId=function(c){K=c};this.getPublishId=function(){return K};this.setErrorCode=function(c){pa=c};this.getErrorCode=function(){return pa};this.setErrorMessage=function(c){M=c};this.getErrorMessage=function(){return M};this.setErrorStack=function(c){Z=c};this.getErrorStack=function(){return Z};this.toJsonObject=function(){var c={};c.id=J;c.name=ma;c.pushTime=Ba;c.analysisId=Oa;c.configId=t;c.publishId=
K;c.fileSize=x;return c};this.fromJsonObject=function(c){J=c.id;ma=c.name;Ba=c.pushTime;R=c.pushFormatTime;Oa=c.analysisId;t=c.configId;K=c.publishId;pa=c.errorCode;M=c.errorMessage;Z=c.errorStack;x=c.fileSize};this.fromErrorInfoJsonObject=function(c){pa=c.errorCode;M=c.errorMessage;Z=c.errorStackTrace}};E.LappPushRecordConfig=function(){var J=this,ma,Ba,R,Oa,t;this.setId=function(K){ma=K};this.getId=function(){return ma};this.setUserId=function(K){Ba=K};this.getUserId=function(){return Ba};this.setPushTargetType=
function(K){R=K};this.getPushTargetType=function(){return R};this.setStrategy=function(K){Oa=K};this.getStrategy=function(){return Oa};this.setValue=function(K){t=K};this.getValue=function(){return t};this.toJsonObject=function(){var K={};K.id=ma;K.userId=Ba;K.pushTargetType=R;K.strategy=Oa;K.value=t;return K};this.fromJsonObject=function(K){K&&(J.setId(K.id),J.setUserId(K.userId),J.setPushTargetType(K.pushTargetType),J.setStrategy(K.strategy),J.setValue(K.value))}};f.CHAT_ROBOT_PUSH="CHAT_ROBOT_PUSH";
f.MISSION_CLOUD_PUSH="MISSION_CLOUD_PUSH";H.PUSH_TO_USER=0;H.PUSH_TO_GROUP=1})();
//qingVersionTag: 20250415