var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(t,e,u){t instanceof String&&(t=String(t));for(var L=t.length,ba=0;ba<L;ba++){var la=t[ba];if(e.call(u,la,ba,t))return{i:ba,v:la}}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(t,e,u){if(t==Array.prototype||t==Object.prototype)return t;t[e]=u.value;return t};$jscomp.getGlobal=function(t){t=["object"==typeof globalThis&&globalThis,t,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var e=0;e<t.length;++e){var u=t[e];if(u&&u.Math==Math)return u}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(t,e){var u=$jscomp.propertyToPolyfillSymbol[e];if(null==u)return t[e];u=t[u];return void 0!==u?u:t[e]};
$jscomp.polyfill=function(t,e,u,L){e&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(t,e,u,L):$jscomp.polyfillUnisolated(t,e,u,L))};$jscomp.polyfillUnisolated=function(t,e,u,L){u=$jscomp.global;t=t.split(".");for(L=0;L<t.length-1;L++){var ba=t[L];if(!(ba in u))return;u=u[ba]}t=t[t.length-1];L=u[t];e=e(L);e!=L&&null!=e&&$jscomp.defineProperty(u,t,{configurable:!0,writable:!0,value:e})};
$jscomp.polyfillIsolated=function(t,e,u,L){var ba=t.split(".");t=1===ba.length;L=ba[0];L=!t&&L in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var la=0;la<ba.length-1;la++){var Ba=ba[la];if(!(Ba in L))return;L=L[Ba]}ba=ba[ba.length-1];u=$jscomp.IS_SYMBOL_NATIVE&&"es6"===u?L[ba]:null;e=e(u);null!=e&&(t?$jscomp.defineProperty($jscomp.polyfills,ba,{configurable:!0,writable:!0,value:e}):e!==u&&(void 0===$jscomp.propertyToPolyfillSymbol[ba]&&(u=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[ba]=
$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(ba):$jscomp.POLYFILL_PREFIX+u+"$"+ba),$jscomp.defineProperty(L,$jscomp.propertyToPolyfillSymbol[ba],{configurable:!0,writable:!0,value:e})))};$jscomp.polyfill("Array.prototype.find",function(t){return t?t:function(e,u){return $jscomp.findInternal(this,e,u).v}},"es6","es3");$jscomp.arrayIteratorImpl=function(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}};$jscomp.arrayIterator=function(t){return{next:$jscomp.arrayIteratorImpl(t)}};
$jscomp.initSymbol=function(){};$jscomp.polyfill("Symbol",function(t){if(t)return t;var e=function(la,Ba){this.$jscomp$symbol$id_=la;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:Ba})};e.prototype.toString=function(){return this.$jscomp$symbol$id_};var u="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",L=0,ba=function(la){if(this instanceof ba)throw new TypeError("Symbol is not a constructor");return new e(u+(la||"")+"_"+L++,la)};return ba},"es6","es3");
$jscomp.polyfill("Symbol.iterator",function(t){if(t)return t;t=Symbol("Symbol.iterator");for(var e="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),u=0;u<e.length;u++){var L=$jscomp.global[e[u]];"function"===typeof L&&"function"!=typeof L.prototype[t]&&$jscomp.defineProperty(L.prototype,t,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return t},"es6",
"es3");$jscomp.iteratorPrototype=function(t){t={next:t};t[Symbol.iterator]=function(){return this};return t};$jscomp.iteratorFromArray=function(t,e){t instanceof String&&(t+="");var u=0,L=!1,ba={next:function(){if(!L&&u<t.length){var la=u++;return{value:e(la,t[la]),done:!1}}L=!0;return{done:!0,value:void 0}}};ba[Symbol.iterator]=function(){return ba};return ba};
$jscomp.polyfill("Array.prototype.keys",function(t){return t?t:function(){return $jscomp.iteratorFromArray(this,function(e){return e})}},"es6","es3");$jscomp.owns=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};$jscomp.polyfill("Object.values",function(t){return t?t:function(e){var u=[],L;for(L in e)$jscomp.owns(e,L)&&u.push(e[L]);return u}},"es8","es3");
$jscomp.polyfill("String.prototype.replaceAll",function(t){return t?t:function(e,u){if(e instanceof RegExp&&!e.global)throw new TypeError("String.prototype.replaceAll called with a non-global RegExp argument.");return e instanceof RegExp?this.replace(e,u):this.replace(new RegExp(String(e).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),u)}},"es_2021","es3");
$jscomp.checkStringArgs=function(t,e,u){if(null==t)throw new TypeError("The 'this' value for String.prototype."+u+" must not be null or undefined");if(e instanceof RegExp)throw new TypeError("First argument to String.prototype."+u+" must not be a regular expression");return t+""};
$jscomp.polyfill("String.prototype.startsWith",function(t){return t?t:function(e,u){var L=$jscomp.checkStringArgs(this,e,"startsWith");e+="";var ba=L.length,la=e.length;u=Math.max(0,Math.min(u|0,L.length));for(var Ba=0;Ba<la&&u<ba;)if(L[u++]!=e[Ba++])return!1;return Ba>=la}},"es6","es3");
var KEXTCommonUtil=new function(){var t=this,e=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;this.isDarkColor=function(u){if(!u)return!1;0==u.indexOf("#")&&(u=t.getRgbIntArr(u));return 128>=Math.round(.299*u[0]+.587*u[1]+.114*u[2])?!0:!1};this.getRgbaString=function(u){return"RGBA("+u.join(",")+")"};this.getRgbIntArr=function(u){if(!u)return u;if((u=u.toLowerCase())&&e.test(u)){if(4===u.length){for(var L="#",ba=1;4>ba;ba++)L+=u.slice(ba,ba+1).concat(u.slice(ba,ba+1));u=L}L=[];for(ba=1;7>ba;ba+=2)L.push(parseInt("0x"+
u.slice(ba,ba+2)));return L}return u}};var Constants={REPORT_EXT:"ext",CHANGE_SHEET:"changeSheet",TREE_ROW_COUNT:200},KReportUtil=function(){var t=function(e){var u=typeof e;if("string"==u)return'"'+e.replace(/["\\\x00-\x1f\x7f-\x9f]/g,function(Ba){Ba=Ba.charCodeAt();return"\\u00"+Math.floor(Ba/16).toString(16)+(Ba%16).toString(16)})+'"';if("number"==u){if(isNaN(e)||!isFinite(e))throw Error("SueError: Invalid JSON number type.");return""+e}if("boolean"==u||null===e)return""+e;if("undefined"==u)return"null";if(e instanceof Array){var L=
"";u=0;for(var ba=e.length;u<ba;u++){var la=t(e[u]);L+=la;u<ba-1&&(L+=",")}return"["+L+"]"}if("object"==u){u=[];for(L in e)u.push('"'+L+'":'+t(e[L]));return"{"+u.join(",")+"}"}if("function"!=u)throw Error("SueError: Invalid JSON type.");};return{toJson:function(e){try{return eval("("+e+")")}catch(u){return null}},toStr:t,toJsonEscapeString:function(e){e&&(e=e.replace(/"/g,'\\"'),e=e.replace(/\r/g,"\\r"),e=e.replace(/\n/g,"\\n"),e=e.replace(/\t/g,"\\t"));return e},fromJsonEscapeString:function(e){e&&
(e=e.replace(/\\"/g,'"'),e=e.replace(/\\r/g,"\r"),e=e.replace(/\\n/g,"\n"),e=e.replace(/\\t/g,"\t"));return e},getCssStyle:function(e){var u=new KTStyle;u.setFontName(e.fontName);u.setFontSize(e.fontSize);u.setBold(e.isBold);u.setItalic(e.isItalic);u.setUnderLine(e.isUnderLine);u.setLineThrough(e.isLineThrough);u.setColor(e.color);u.setBackgroundColor(e.backgroundColor);u.setTextAlign(e.textAlign);u.setVerticalAlign(e.verticalAlign);u.setWrapText(e.isWrapText);u.setVerticalText(e.isVerticalText);
u.setIndent(e.indentation);u.setRotation(e.rotation);u.setShrinkText(e.isShrinkText);return u},getCssBorder:function(e){var u=new KTBorderStyle;u.setTopBorderPen(e.top.pen);u.setRightBorderPen(e.right.pen);u.setBottomBorderPen(e.bottom.pen);u.setLeftBorderPen(e.left.pen);u.setTopBorderWidth(e.top.width);u.setRightBorderWidth(e.right.width);u.setBottomBorderWidth(e.bottom.width);u.setLeftBorderWidth(e.left.width);u.setTopBorderColor(e.top.color);u.setRightBorderColor(e.right.color);u.setBottomBorderColor(e.bottom.color);
u.setLeftBorderColor(e.left.color);return u},getCssDiagonal:function(e){var u=new KTBorderStyle;u.setLeftBorderPen(e.pen);u.setLeftBorderWidth(e.width);u.setLeftBorderColor(e.color);return u},getCssWidth:function(e,u){var L=$("<div/>");L.css({left:"-1000px",top:"-1000px",position:"absolute",overflow:"hidden",fontSize:u});L.text(e);$(document.body).append(L);e=L.width();L.remove();return e},getCssIntValue:function(e){return parseInt(e.substr(0,e.lastIndexOf("px")))},isNullString:function(e){return"string"==
typeof e&&"null"==e?!0:!1},stopPropagation:function(e){e&&e.stopPropagation?e.stopPropagation():window.event.cancelBubble=!0},preventDefault:function(e){e&&e.preventDefault?e.preventDefault():window.event.returnValue=!1;return!1}}}();
function StringUtil(){this.toJsonEscapeString=function(t){t&&(t=t.replace(/"/g,'\\"'),t=t.replace(/\r/g,"\\r"),t=t.replace(/\n/g,"\\n"),t=t.replace(/\t/g,"\\t"));return t};this.fromJsonEscapeString=function(t){t&&(t=t.replace(/\\"/g,'"'),t=t.replace(/\\r/g,"\r"),t=t.replace(/\\n/g,"\n"),t=t.replace(/\\t/g,"\t"));return t}}
function KRListenerProxy(){var t={};this.addListener=function(e,u){var L=t[e];L||(L=[],t[e]=L);for(e=0;e<L.length;e++)if(L[e]==u)return;L.push(u)};this.removeListener=function(e,u){if(e=t[e])for(var L=e.length-1;0<=L;L--)if(e[L]==u){e.splice(L,1);break}};this.fireEvent=function(e){var u=e.type||e.getType();if(u=t[u])for(var L=u.length-1;0<=L;L--)u[L](e)}}KRListenerProxy.Event=function(t){this.getType=function(){return t}};
var KReportToast=function(){var t,e,u;return{toast:function(L){t||(t=$("<div class='my-toast' style=\"top: 2px; z-index: 9999;margin-left: 30%;font-family: 'Microsoft YaHei'; position: absolute;width: 40%;background-color: #fff5cb; border: 1px solid #f7e492;color: #e37b00; font-size: 12px; font-weight: bold; padding:0px 10px;\"><div class='my-toast-text'  style=\"word-break: break-all;text-align: center\"></div></div>"),e=t.find(".my-toast-text"));t.hide();t.remove();clearTimeout(u);var ba=L.delay||
6E3;e.html(L.text||"empty info...");L=$("body");t.appendTo(L).show();u=setTimeout(function(){clearTimeout(u);t.hide();t.remove()},ba);return t}}}();function ValueTextModel(){var t,e;this.setValue=function(u){t=u};this.getValue=function(){return t};this.setText=function(u){e=u};this.getText=function(){return e};this.toJsonObject=function(){var u={};u.value=this.getValue();u.text=this.getText();return u};this.fromJsonObject=function(u){var L=u.value;L=(new StringUtil).fromJsonEscapeString(L);this.setValue("null"==L?null:L);u=u.text;u=(new StringUtil).fromJsonEscapeString(u);this.setText("null"==u?null:u)};this.toJsonString=function(){var u='{"value":',
L=this.getValue();L||""===L?(L=JSON.stringify(L),u+=L):u+="null";u+=',"text":';(L=this.getText())||""===L?(L=JSON.stringify(L),u+=L):u+="null";return u+"}"}}
function ParamValue(){var t,e,u=[];this.setParamName=function(ba){t=ba};this.getParamName=function(){return t};this.setDataType=function(ba){e=ba};this.getDataType=function(){return e};this.clearValues=function(){u=[]};this.addValue=function(ba){if(!(ba instanceof ValueTextModel||ba instanceof ValueTextTreeNodeModel))throw Error("Illegal argument.");u.push(ba)};this.getValuesCount=function(){return u.length};this.getValue=function(ba){return u[ba]};this.getValues=function(){for(var ba=[],la=0;la<
this.getValuesCount();la++)ba.push(this.getValue(la));return ba};this.toJsonObject=function(){var ba={};ba.paramName=this.getParamName();ba.dataType=this.getDataType();for(var la=[],Ba=0;Ba<this.getValuesCount();Ba++){var Za=this.getValue(Ba);la.push(Za.toJsonObject())}ba.values=la;return ba};this.fromJsonObject=function(ba){this.setParamName(ba.paramName);this.setDataType(ba.dataType);this.clearValues();ba=ba.values;for(var la=0;la<ba.length;la++){var Ba=ba[la],Za=new ValueTextModel;Za.fromJsonObject(Ba);
this.addValue(Za)}};var L=/\d{4}(-|\/)(0[1-9]|1[0-2])(-|\/)(0[1-9]|[12][0-9]|3[01])\s([01]\d|2[0-3])(:[0-5][0-9]){2}/g;this.toJsonString=function(ba){var la='{"paramName":"'+this.getParamName()+'",';la+='"dataType":"'+e+'",';la+='"paramVars":[';ba||(ba=/;/g);for(var Ba=0;Ba<this.getValuesCount();Ba++){0<Ba&&(la+=",");var Za=this.getValue(Ba),va=Za.getValue();ba.lastIndex=0;if(va&&ba.test(va)){var wa=[];if(-1<ba.toString().indexOf("s"))if(wa=va.match(L),null!=wa)for(var Na=0;Na<wa.length;Na++)va=va.replace(wa[Na],
" ");else wa=[];va=va.trim();ba.lastIndex=0;va&&ba.test(va)&&(wa=wa.concat(va.split(ba)));for(va=0;va<wa.length;va++)(Na=wa[va])&&""!==Na.trim()&&(Za.setValue(Na),Za.setText(Na),la+=Za.toJsonString(),la+=",");la=la.substring(0,la.length-1)}else la+=Za.toJsonString()}return la+"]}"}}
function ValueTextTreeNodeModel(){var t,e,u,L,ba,la,Ba,Za;this.setEntry=function(va){Ba=va};this.getEntry=function(){return Ba};this.setEntryHeadMap=function(va){Za=va};this.getEntryHeadMap=function(){return Za};this.setLevel=function(va){la=va};this.getLevel=function(){return la};this.setValue=function(va){t=va};this.getValue=function(){return t};this.setText=function(va){e=va};this.getText=function(){return e};this.setId=function(va){u=va};this.getId=function(){return u};this.setParentId=function(va){L=
va};this.getParentId=function(){return L};this.setChildren=function(va){ba=va};this.getChildren=function(){return ba};this.addChild=function(va){if(!(va instanceof ValueTextTreeNodeModel))throw Error("Illegal argument. Argument should be instanceof ValueTextTreeNodeModel");null==ba&&(ba=[]);ba.push(va)};this.addChildren=function(va){if(!(va instanceof Array))throw Error("Illegal argument.");null==ba&&(ba=[]);ba.concat(va)};this.toJsonObject=function(){var va={};va.value=this.getValue();va.text=this.getText();
va.id=this.getId();va.parentId=this.getParentId();va.children=this.getChildren();return va};this.fromJsonObject=function(va){var wa=va.value;wa=(new StringUtil).fromJsonEscapeString(wa);this.setValue("null"==wa?null:wa);wa=va.text;wa=(new StringUtil).fromJsonEscapeString(wa);this.setText("null"==wa?null:wa);wa=va.id;wa=(new StringUtil).fromJsonEscapeString(wa);this.setId("null"==wa?null:wa);wa=va.parentId;wa=(new StringUtil).fromJsonEscapeString(wa);this.setparentId("null"==wa?null:wa);va=va.children;
this.setChildren("null"==va?null:va)};this.toJsonString=function(){var va='{"value":',wa=this.getValue();wa||""===wa?(wa=(new StringUtil).toJsonEscapeString(wa),va+='"'+wa+'"'):va+="null";va+=',"text":';(wa=this.getText())||""===wa?(wa=(new StringUtil).toJsonEscapeString(wa),va+='"'+wa+'"'):va+="null";return va+"}"}}
function ValueTextTreeModel(){var t;this.getRootArray=function(){return t};this.buildTree=function(e){if(!(e instanceof Array))throw Error("Illegal argument.");t=[];if(e&&0!=e.length){if(!(e[0]instanceof ValueTextTreeNodeModel))throw Error("Illegal argument. Elements in Array should be instance of ValueTextTreeNodeModel.");for(var u=e.length,L={},ba,la,Ba=0;Ba<u;Ba++)ba=e[Ba],la=ba.getId(),la||(la="treeAutoId_"+Ba,ba.setId(la)),L[la]=ba;for(Ba=0;Ba<u;Ba++)ba=e[Ba],la=null,ba.getParentId()&&(la=L[ba.getParentId()]),
la?la.addChild(ba):t.push(ba)}};this.clear=function(){t=[]}};function ReportParamDescription(){var t,e,u,L,ba,la,Ba,Za,va,wa,Na,Va,xb,Sa,jb,kb,qb;this.setMaxRestrictNumber=function(Ka){jb="null"==Ka?"":Ka};this.getMaxRestrictNumber=function(){return jb};this.setName=function(Ka){t="null"==Ka?"":Ka};this.getName=function(){return t};this.setText=function(Ka){e="null"==Ka?"":Ka};this.getText=function(){return e};this.getCaption=function(){return e?e:t};this.setRequired=function(Ka){u=Ka};this.isRequired=function(){return u};this.setDataType=function(Ka){L=Ka};
this.getDataType=function(){return L};this.setCtrlType=function(Ka){ba=Ka};this.getCtrlType=function(){return ba};this.setState=function(Ka){la=Ka};this.getState=function(){return la};this.setReadOnly=function(Ka){Ba=Ka};this.isReadOnly=function(){return Ba};this.setMultiSelectable=function(Ka){Za=Ka};this.isMultiSelectable=function(){return Za};this.setIsTree=function(Ka){va=Ka};this.isTree=function(){return va};this.setTreeExpandLevel=function(Ka){wa=Ka};this.getTreeExpandLevel=function(){return wa};
this.setSuppliedValue=function(Ka){Na="null"==Na?"":Ka};this.getSuppliedValue=function(){return Na};this.setDefaultValue=function(Ka){"null"!=Ka&&(Va=Ka)};this.getDefaultValue=function(){return Va};this.setSuppliedValueDescription=function(Ka){Sa=Ka};this.getSuppliedValueDescription=function(){return Sa};this.setEditable=function(Ka){xb=Ka};this.isEditable=function(){return xb};this.setPattern=function(Ka){kb=Ka};this.getPattern=function(){return kb};this.setDescription=function(Ka){qb=Ka};this.getDescription=
function(){return qb}}ReportParamDescription.Y_M_D_PATTERN="yyyy-MM-dd";ReportParamDescription.Y_PATTERN="yyyy";ReportParamDescription.Y_M_PATTERN="yyyy-MM";ReportParamDescription.Y_Q_PATTERN="yyyy-'Q'q";
function KEXTParamsAssociateModel(){var t={},e={};this.addOneAffectAnother=function(L,ba){var la=t[L];la||(la={},t[L]=la);la[ba]=!0;la=e[ba];la||(la={},e[ba]=la);la[L]=!0};this.isOneAffectOthers=function(L){return t[L]?!0:!1};this.isOneAffectAnother=function(L,ba){return u(t,L,ba)};this.isOneAffectedByAnother=function(L,ba){return u(e,L,ba)};var u=function(L,ba,la){return(L=L[ba])?L[la]?!0:!1:!1}}
function SwitchButtonSuppliedValue(){var t,e;this.setChecked=function(u){if(!(u instanceof ValueTextModel))throw Error("Illegal argument.");t=u};this.getChecked=function(){return t};this.setUnchecked=function(u){if(!(u instanceof ValueTextModel))throw Error("Illegal argument.");e=u};this.getUnchecked=function(){return e}}
function NumberStepperSuppliedValue(){var t,e,u;this.setMin=function(L){t=L};this.getMin=function(){return t};this.setMax=function(L){e=L};this.getMax=function(){return e};this.setStep=function(L){u=L};this.getStep=function(){return u}}
function ListDelaySuppliedValueDescription(){var t,e,u,L,ba;this.setValueField=function(la){t=la};this.getValueField=function(){return t};this.setTextField=function(la){e=la};this.getTextField=function(){return e};this.setDatasetPersistenceModel=function(la){u=la};this.getDatasetPersistenceModel=function(){return u};this.setDataSourceType=function(la){L=la};this.getDataSourceType=function(){return L};this.setReportId=function(la){ba=la};this.getReportId=function(){return ba}};(function(){function t(v){u.call(this,v);var b=this.protectedMethod,f=new a;this.protectedCreateItemUi=function(r,p,D,Z){var Oa=p.getValue();r=b.isSelected(Oa);D=new J;D.setText(p.getText());D.setChecked(r);D.addCheckedListener(function(K,w){w&&b.selectOnlyOne(Oa)});f.addElement(D);return D.getJqUi()}}function e(v){u.call(this,v);var b=this,f=this.protectedMethod,r=!0,p,D,Z;this.protectedInitBar=function(w,W,ca){Z=new R;Z.setText(d.get("includeSubs","\u9009\u62e9\u65f6\u5305\u542b\u4e0b\u7ea7\u8282\u70b9"));
Z.setChecked(r);Z.addCheckedListener(K);var Ta=Z.getJqUi(),nb="en"==da.getUrlParamValue("language")?163:130;E.layoutCtrlWithLRTB(Ta,null,0,nb,30,null,21);Ta.appendTo(w);p=new R;p.setText(d.get("selectAll","\u5168\u9009"));p.setChecked(W);p.addCheckedListener(function(Da,ab){if(ab){Da=Da.isChecked();for(ab=0;ab<ca.getRowsCount();ab++){var ob=ca.getRow(ab);if(!ob.isHide()||Z.isEnabled()&&Z.isChecked())ob=ob.getCell(0).getValue(),f.select(ob.getValue(),Da)}b.resetScrollStatus(ca);ca.updateUI(!0);Oa()}});
Ta=p.getJqUi();W="en"==da.getUrlParamValue("language")?26:0;E.layoutCtrlWithLRTB(Ta,0,null,50+W,30,null,21);Ta.appendTo(w);D=new ta;Oa();Ta=D.getJqUi();E.layoutCtrlWithLRTB(Ta,60+W,null,110,30,null,21);Ta.find(".sa-ctrl-label-text").css({overflow:"visible"});Ta.appendTo(w)};this.protectedGetBarHeight=function(){return 58};this.protectedAfterUpdateTree=function(w,W){p.setChecked(w);Z.setEnabled(!W)};this.protectedIsIncludeSubs=function(){return r};this.protectedCreateItemUi=function(w,W,ca,Ta){var nb=
W.getValue();nb=f.isSelected(nb);var Da=new R;Da.setUserObject(ca);Da.setText(W.getText());Da.setChecked(nb);Da.addCheckedListener(function(ab,ob){if(ob){ob=ab.getUserObject();ab=ab.isChecked();var Xa=w.getRow(ob).getCell(0),fb=Xa.getValue();f.select(fb.getValue(),ab);if(r&&!Ta()){fb=Xa.getTreeModel();var Fa=fb.getLevel();for(ob+=1;ob<w.getRowsCount();ob++){Xa=w.getRow(ob).getCell(0);fb=Xa.getTreeModel();if(fb.getLevel()<=Fa)break;fb=Xa.getValue();f.select(fb.getValue(),ab)}}w.updateUI(!0);ob=!0;
ab=!1;for(Xa=0;Xa<w.getRowsCount();Xa++)if(Fa=w.getRow(Xa),!Fa.isHide()&&(ab=!0,Fa=Fa.getCell(0).getValue(),!f.isSelected(Fa.getValue()))){ob=!1;break}p.setChecked(ab&&ob);Oa()}});return Da.getJqUi()};var Oa=function(){var w=0;for(var W=b.getSelectableItems(),ca=0;ca<W.length;ca++)f.isSelected(W[ca].getValue())&&w++;w=d.get("selectedCount","(\u5df2\u9009\u62e9#1\u9879)").replace("#1",w);D.setText(w)},K=function(w,W){W&&(r=w.isChecked())}}function u(v){function b(Fa){KTDefaultTreeHandlerRender.call(this,
Fa);var $a=this.create;this.create=function(gb,Ga,Ha,ka,Aa,rb,cb){return ob()?[]:$a(gb,Ga,Ha,ka,Aa,rb,cb)}}function f(Fa){KTDefaultCellRender.call(this,Fa);var $a=this;this.paintCellUI=function(gb,Ga){var Ha=$a.getCell().getValue(),ka=$a.getCurrentRowIdx();Ha=p.protectedCreateItemUi(Fa,Ha,ka,ob);Ha.css("overflow","visible");Ha.children().css("overflow","visible");gb=$(gb);gb.css("overflow","visible");Ga?(Ga=$(Ga),Ga.css("overflow","visible"),Ha.appendTo(Ga),E.layoutCtrlWithLRTB(Ha,4,0,null,0,null,
"100%")):(Ha.appendTo(gb),E.layoutCtrlWithLRTB(Ha,0,0,null,0,null,"100%"))}}var r=23,p=this,D,Z,Oa,K=!1,w=[],W=[],ca;this.getJqUi=function(){if(!D){D=$("<div>");for(var Fa={},$a=0,gb=W.length;$a<gb;$a++)W[$a].getValue()&&(Fa[W[$a].getValue()]=!0);Z=Fa;K=!1;Fa=new KTable;Fa.setCellRender(new f(Fa));Fa.setTreeHandlerRender(new b(Fa));Fa.setSyncUIWhenModelChanged(!1);w&&1024<=w.length?Fa.setLargeDataMode(!0,!1):Fa.setLargeDataMode(!1);Fa.addColumn().setWidth(320);$a=new KTStyle;$a.setVerticalAlign("middle");
Fa.setStyle($a);var Ga=w;if(0==Ga.length)$a=!1;else{$a=!0;var Ha=fb(),ka=!Ha;for(gb=0;gb<Ga.length;gb++){var Aa=Ga[gb],rb=Xa(Aa.getValue()),cb=Fa.addRow();cb.setHeight(r);var hb=cb.getCell(0);hb.setValue(Aa);Aa=Aa.getLevel();Aa=new KTCellTreeModel(Aa);ka&&nb(cb,Aa);hb.setTreeModel(Aa);$a=$a&&rb}if(Ha){var x;Ga={};for(gb=Fa.getRowsCount()-1;0<=gb;gb--){cb=Fa.getRow(gb);hb=cb.getCell(0);Ha=hb.getTreeModel();ka=Ha.getLevel();Aa=hb.getValue();if(Xa(Aa.getValue())){cb.setHide(!1);var c=Aa.getParentId();
(hb=Ga[ka])&&0!=hb.length||(hb=[]);hb.push(Aa);Ga[ka]=hb}if(x&&x===ka+1)if((hb=Ga[x])&&0<hb.length){rb=!1;for(x=0;x<hb.length;x++){var U=hb[x];if(c===Aa.getId()||U&&U.getParentId()===Aa.getId()){rb=!0;break}}if(rb){var S=!0;Ha.setExpanded(!0);cb.setHide(!1);(hb=Ga[ka])&&0!=hb.length||(hb=[]);hb.push(Aa);Ga[ka]=hb}else Ha.setExpanded(!1)}else Ha.setExpanded(!1);0===gb&&S&&(cb.setHide(!1),Ha.setExpanded(!0));x=ka}cb=0;c=Object.values(Ga);for(gb=0;gb<c.length;gb++)for(S=c[gb],x=0;x<S.length;x++)Aa=S[x],
cb=Aa.getLevel()>cb?Aa.getLevel():cb;for(gb=Fa.getRowsCount()-1;0<=gb;gb--)if(cb=Fa.getRow(gb),hb=cb.getCell(0),Ha=hb.getTreeModel(),Aa=hb.getValue(),c=Ha.getLevel(),(S=Ga[c])&&0<S.length){hb=!1;for(x=0;x<S.length;x++)if((ka=S[x])&&ka.getParentId()===Aa.getParentId()){hb=!0;break}hb?(cb.setHide(!1),c<v-1&&Ha.setExpanded(!0)):nb(cb,Ha)}else nb(cb,Ha)}}Fa.updateUI();gb=p.protectedGetBarHeight()+6;cb=$(Fa.getUI());E.layoutCtrlWithLRTB(cb,0,0,null,gb,0,null);D.append(cb);Fa=[$a,Fa];Ta(Fa[0],Fa[1])}return D};
this.setSelectableItems=function(Fa){w=Fa};this.getSelectableItems=function(){return w};this.setSelected=function(Fa){W=Fa};this.getSelected=function(){var Fa=[];if(!Z)return Fa;for(var $a=0,gb=w.length;$a<gb;$a++){var Ga=w[$a].getValue();Z[Ga]&&Fa.push(w[$a])}return Fa};this.setItemHeight=function(Fa){r=Fa};this.protectedIsIncludeSubs=function(){return!1};this.resetScrollStatus=function(Fa){if(Fa&&Fa.isLargeDataMode()){var $a=Fa.keepScrollStatus();$a.v&&($a.v=0);Fa.restoreScrollStatus($a)}};var Ta=
function(Fa,$a){var gb=$("<div>");gb.css("border-bottom","1px solid #eee");var Ga=p.protectedGetBarHeight();E.layoutCtrlWithLRTB(gb,0,0,null,0,null,Ga);Oa=new Sa;Oa.setSearchingHandler(function(){var ka=Da($a);p.resetScrollStatus($a);$a.updateUI(!0);ab(ka)});Ga=Oa.getJqUi();E.layoutCtrlWithLRTB(Ga,0,null,"66%",0,null,23);Ga.css({"min-width":"214px !important","max-width":"500px !important"});Ga.appendTo(gb);Ga=new R;Ga.setText(d.get("showOnlySelected","\u4ec5\u663e\u793a\u9009\u4e2d\u9879"));Ga.setChecked(K);
Ga.addCheckedListener(function(ka,Aa){Aa&&(K=ka.isChecked(),ka=Da($a),p.resetScrollStatus($a),$a.updateUI(!0),ab(ka))});Ga=Ga.getJqUi();var Ha="en"==da.getUrlParamValue("language")?140:106;E.layoutCtrlWithLRTB(Ga,null,23,Ha,0,null,21);Ga.appendTo(gb);p.protectedInitBar(gb,Fa,$a);gb.appendTo(D)};this.protectedInitBar=function(Fa,$a,gb){};this.protectedGetBarHeight=function(){return 30};var nb=function(Fa,$a){$a.getLevel()<v-1?($a.setExpanded(!0),Fa.setHide(!1)):$a.getLevel()===v-1?($a.setExpanded(!1),
Fa.setHide(!1)):($a.setExpanded(!1),Fa.setHide(!0))},Da=function(Fa){for(var $a=ob(),gb=!0,Ga=!1,Ha=65535,ka=!1,Aa=0;Aa<Fa.getRowsCount();Aa++){var rb=Fa.getRow(Aa),cb=rb.getCell(0),hb=cb.getTreeModel(),x=!0;hb.getLevel()<=Ha&&(x=!1);var c=cb.getValue();cb=Xa(c.getValue());c=K&&!cb||Oa.isSearching()&&!Oa.check(c.getText());var U=x;U=$a?c:U;rb.setHide(U);U||(ka=!0);c||(Ga=Ga||cb,gb=gb&&cb);x||(Ha=hb.isExpanded()?65535:hb.getLevel())}p.protectedAfterUpdateTree(Ga?gb:!1,$a);return ka};this.protectedAfterUpdateTree=
function(Fa,$a){};this.protectedCreateItemUi=function(Fa,$a,gb,Ga){throw Error("Override");};var ab=function(Fa){Fa?(ca&&ca.remove(),ca=null):ca||(Fa=new ta,Fa.setText(d.get("nothingSearched","\u627e\u4e0d\u5230\u7b26\u5408\u7684\u7ed3\u679c")),Fa.setEnabled(!1),ca=Fa.getJqUi(),E.layoutCtrlWithLRTB(ca,0,0,null,60,null,16),Fa.setAlign(ta.ALIGN_CENTER),ca.appendTo(D))},ob=function(){return K||Oa&&Oa.isSearching()},Xa=function(Fa){return 1==Z[Fa]},fb=function(){if(Z&&0<Object.keys(Z).length){var Fa=
w;if(0==Fa.length)return!1;for(var $a=0;$a<Fa.length;$a++)if(Xa(Fa[$a].getValue()))return!0}return!1};this.protectedMethod={isSelected:Xa,select:function(Fa,$a){$a?Z[Fa]=!0:delete Z[Fa]},selectOnlyOne:function(Fa){Z={};Z[Fa]=!0}}}function L(){Ba.call(this);var v=this.protectedMethod,b=[],f=[];this.setSelectableItems=function(r){b=r};this.setSelected=function(r){f=r};this.protectedGetSelectableItems=function(){return b};this.protectedCloneSelectedValue=function(){var r={};if(f)for(var p=0,D=f.length;p<
D;p++)r[f[p].getValue()]=!0;return r};this.getSelected=function(){var r=v.acceptSelectingResult(),p=[];if(!r)return p;for(var D=0,Z=b.length;D<Z;D++){var Oa=b[D].getValue();if(r[Oa]){p.push(b[D]);break}}return p}}function ba(){la.call(this);var v=this.protectedMethod,b=[],f=[];this.setSelectableItems=function(r){b=r};this.setSelected=function(r){f=r};this.protectedGetSelectableItems=function(){return b};this.protectedCloneSelectedValue=function(){var r={};if(f)for(var p=0,D=f.length;p<D;p++)r[f[p].getValue()]=
!0;return r};this.getSelected=function(){var r=v.acceptSelectingResult(),p=[];if(!r)return p;for(var D=0,Z=b.length;D<Z;D++){var Oa=b[D].getValue();r[Oa]&&p.push(b[D])}return p}}function la(){Za.call(this);var v=this,b=this.protectedMethod,f,r;this.protectedInitBar=function(K){f=new R;f.setText(d.get("selectAll","\u5168\u9009"));f.addCheckedListener(Oa);var w=f.getJqUi();E.layoutCtrlWithLRTB(w,0,null,80,30,null,21);w.appendTo(K);r=new ta;w=r.getJqUi();E.layoutCtrlWithLRTB(w,80,0,null,30,null,21);
w.find(".sa-ctrl-label-text").css({overflow:"visible"});w.appendTo(K);p();return 55};this.protectedItemCreator=function(K){var w=K.getValue();w=b.isSelected(w);var W=K.getText(),ca=new R;ca.addCheckedListener(Z);ca.setUserObject(K);ca.setText(W);ca.setChecked(w);v.protectedIsExcludeMode()&&ca.setCustomStyle("text-decoration","line-through");K=ca.getJqUi();E.layoutCtrlWithLRTB(K,0,0,null);return K};this.protectedIsExcludeMode=function(){return!1};this.protectedAfterUpdateDynamicScroller=function(){D()};
var p=function(){var K=0;for(var w=v.protectedGetSelectableItems(),W=0;W<w.length;W++)b.isSelected(w[W].getValue())&&K++;K=d.get("selectedCount","(\u5df2\u9009\u62e9#1\u9879)").replace("#1",K);r.setText(K)},D=function(){var K=!0,w=!1;b.visitAllVisibleSelectableItems(function(W){var ca=!1;w=!0;b.isSelected(W.getValue())||(K=!1,ca=!0);return ca});f.setChecked(w&&K)},Z=function(K,w){w&&(w=K.getUserObject(),K=K.isChecked(),b.select(w.getValue(),K),D(),p())},Oa=function(K,w){if(w){var W=K.isChecked();
b.visitAllVisibleSelectableItems(function(ca){b.select(ca.getValue(),W)});b.repaintWithScrollState();p()}}}function Ba(){Za.call(this);var v=this.protectedMethod;this.protectedItemCreator=function(f){var r=f.getValue();r=v.isSelected(r);var p=f.getText(),D=new J;D.addCheckedListener(b);D.setUserObject(f);D.setText(p);D.setChecked(r);f=D.getJqUi();E.layoutCtrlWithLRTB(f,0,0,null);return f};var b=function(f,r){r&&(f.isChecked()?(f=f.getUserObject(),v.selectOnlyOne(f.getValue()),v.repaintWithScrollState()):
f.setChecked(!0))}}function Za(){var v=21,b=this,f,r,p,D,Z,Oa,K,w={};this.getJqUi=function(){f||(f=$("<div>"),W(f));return f};this.protectedGetSelectableItems=function(){throw Error("Impl");};var W=function(Xa){r=Xa;w=b.protectedCloneSelectedValue();Oa=!1;var fb=$("<div>");fb.appendTo(Xa);var Fa=ca(fb);E.layoutCtrlWithLRTB(fb,0,0,null,0,null,Fa);Z=new fa;Z.setItemHeight(v);Z.setItemUiCreator(function($a){return b.protectedItemCreator(K[$a])});Z.getJqUi().appendTo(Xa);E.layoutCtrlWithLRTB(Z.getJqUi(),
0,0,null,Fa,0,null);Ta()};this.protectedCloneSelectedValue=function(){throw Error("Impl");};this.protectedItemCreator=function(Xa){throw Error("Impl");};var ca=function(Xa){D=new Sa;D.setSearchingHandler(ab);var fb=D.getJqUi();E.layoutCtrlWithLRTB(fb,0,null,"66%",0,null,23);fb.css({"min-width":"214px !important","max-width":"500px !important"});fb.appendTo(Xa);fb=new R;fb.setText(d.get("showOnlySelected","\u4ec5\u663e\u793a\u9009\u4e2d\u9879"));fb.setChecked(Oa);fb.addCheckedListener(ob);fb=fb.getJqUi();
var Fa="en"==da.getUrlParamValue("language")?140:106;E.layoutCtrlWithLRTB(fb,null,0,Fa,0,null,21);fb.appendTo(Xa);return b.protectedInitBar(Xa)};this.protectedInitBar=function(Xa){return 28};var Ta=function(){var Xa=b.protectedGetSelectableItems();K=D.isSearching()||Oa?$.grep(Xa,function(fb){var Fa=D.check(fb.getText());fb=!Oa||Da(fb.getValue());return Fa&&fb}):Xa;Z.setItemCount(K.length);Z.repaint();b.protectedAfterUpdateDynamicScroller()};this.protectedAfterUpdateDynamicScroller=function(){};this.setItemHeight=
function(Xa){v=Xa};var nb=function(){if(0==K.length){if(!p){var Xa=new ta;Xa.setText(d.get("nothingSearched","\u627e\u4e0d\u5230\u7b26\u5408\u7684\u7ed3\u679c"));Xa.setEnabled(!1);p=Xa.getJqUi();E.layoutCtrlWithLRTB(p,0,0,null,60,null,16);Xa.setAlign(ta.ALIGN_CENTER);p.appendTo(r)}}else p&&p.remove(),p=null},Da=function(Xa){return 1==w[Xa]},ab=function(){Ta();nb()},ob=function(Xa,fb){Oa=Xa.isChecked();Ta();nb()};this.protectedMethod={repaintWithScrollState:function(){Z.keepState();Z.repaint();Z.restoreState()},
visitAllVisibleSelectableItems:function(Xa){for(var fb=0;fb<K.length&&!Xa(K[fb]);fb++);},isSelected:Da,select:function(Xa,fb){fb?w[Xa]=!0:delete w[Xa]},selectOnlyOne:function(Xa){w={};w[Xa]=!0},acceptSelectingResult:function(){return w}}}function va(){Va.call(this);var v=this.protectedMethod,b=[],f=[];this.setSelectableItems=function(r){b=r};this.setSelected=function(r){f=r};this.protectedGetSelectableItems=function(){return b};this.protectedCloneSelectedValue=function(){var r={};if(f)for(var p=0,
D=f.length;p<D;p++)r[f[p].getValue()]=!0;return r};this.getSelected=function(){var r=v.acceptSelectingResult(),p=[];if(!r)return p;for(var D=0,Z=b.length;D<Z;D++){var Oa=b[D].getValue();if(r[Oa]){p.push(b[D]);break}}return p}}function wa(){Na.call(this);var v=this.protectedMethod,b=[],f=[];this.setSelectableItems=function(r){b=r};this.setSelected=function(r){f=r};this.protectedGetSelectableItems=function(){return b};this.protectedCloneSelectedValue=function(){var r={};if(f)for(var p=0,D=f.length;p<
D;p++)r[f[p].getValue()]=!0;return r};this.getSelected=function(){var r=v.acceptSelectingResult(),p=[];if(!r)return p;for(var D=0,Z=b.length;D<Z;D++){var Oa=b[D].getValue();r[Oa]&&p.push(b[D])}return p}}function Na(){xb.call(this);var v=this,b=this.protectedMethod,f,r=[],p;this.protectedInitBar=function(w){f=new R;f.setText(d.get("selectAll","\u5168\u9009"));f.addCheckedListener(K);var W=f.getJqUi();E.layoutCtrlWithLRTB(W,0,null,80,30,null,21);W.appendTo(w);p=new ta;W=p.getJqUi();E.layoutCtrlWithLRTB(W,
80,0,null,30,null,21);W.find(".sa-ctrl-label-text").css({overflow:"visible"});W.appendTo(w);D();return 55};this.protectedItemCreator=function(w){var W=w.getValue();W=b.isSelected(W);var ca=new R;ca.addCheckedListener(Oa);ca.setUserObject(w);ca.setChecked(W);v.protectedIsExcludeMode()&&ca.setCustomStyle("text-decoration","line-through");r.push(ca);return ca.getJqUi()};this.protectedIsExcludeMode=function(){return!1};this.protectedAfterUpdateTable=function(){Z()};var D=function(){var w=0;for(var W=
v.protectedGetSelectableItems(),ca=0;ca<W.length;ca++)b.isSelected(W[ca].getValue())&&w++;w=d.get("selectedCount","(\u5df2\u9009\u62e9#1\u9879)").replace("#1",w);p.setText(w)},Z=function(){var w=!0,W=!1;b.visitAllVisibleSelectableItems(function(ca){var Ta=!1;W=!0;b.isSelected(ca.getValue())||(w=!1,Ta=!0);return Ta});f.setChecked(W&&w)},Oa=function(w,W){W&&(W=w.getUserObject(),w=w.isChecked(),b.select(W.getValue(),w),Z(),D())},K=function(w,W){if(W){var ca=w.isChecked();for(w=0;w<r.length;w++)r[w]&&
r[w].setChecked(ca);b.visitAllVisibleSelectableItems(function(Ta){b.select(Ta.getValue(),ca)});D()}}}function Va(){xb.call(this);var v=this.protectedMethod,b=new a;this.protectedItemCreator=function(r){var p=r.getValue();p=v.isSelected(p);var D=new J;D.addCheckedListener(f);D.setUserObject(r);D.setChecked(p);b.addElement(D);return D.getJqUi()};var f=function(r,p){p&&(r.isChecked()?(r=r.getUserObject(),v.selectOnlyOne(r.getValue())):r.setChecked(!0))}}function xb(){function v(Ha){KTDefaultCellRender.call(this,
Ha);var ka=this,Aa=this.paintCellUI;this.paintCellUI=function(rb,cb){var hb=ka.getCurrentRowIdx(),x=ka.getCurrentRow(),c=ka.getCurrentColIdx(),U=x.getUserObject(),S=ob&&-1!=ob.indexOf(c-1);hb<na.getHeadRowCount()?S&&1==hb?(c=x.getCell(c).getValue(),S=new l,S.setIconType(l.ICON_TYPE_QUESTION),S.setTipsText(d.get("noFieldPermTips","\u60a8\u6ca1\u6709\u6743\u9650\u67e5\u770b\u8be5\u5b57\u6bb5\u6570\u636e\u3002")),S=S.getJqUi(),S.css({display:"inline-block",margin:"5px 0 0 3px"}),cb=$("<div>"),cb.attr("title",
c),cb.text(c),cb.css({"margin-top":"5px",display:"inline-block"}),cb.appendTo(rb),S.appendTo(rb)):Aa(rb,cb):0==c?(c=f.protectedItemCreator(U),c.css({position:"absolute",left:"30%",top:"2px",width:"23px",height:"23px"}),c.appendTo(rb)):(cb=U.getEntry(),c=S?"***":cb?cb[W[c-1]]:"",S=$("<div>"),S.attr("title",c),S.text(c),S.css({"line-height":"28px","padding-left":"10px","padding-right":"10px","text-align":"left",overflow:"hidden","text-overflow":"ellipsis"}),S.appendTo(rb))}}function b(){KTableUIDraggableAdjustingHandler.CustomExpendor.call(this);
this.getTailBlankForDragging=function(){return 10}}var f=this,r,p,D,Z,Oa,K,w,W,ca=[],Ta,nb,Da,ab={},ob=[];this.getJqUi=function(){if(!r){var Ha=r=$("<div>");p=Ha;ab=f.protectedCloneSelectedValue();nb=!1;var ka=$("<div>");ka.appendTo(Ha);Ta=new Sa;Ta.setSearchingHandler(gb);var Aa=Ta.getJqUi();E.layoutCtrlWithLRTB(Aa,0,null,"66%",0,null,23);Aa.css({"min-width":"214px !important","max-width":"500px !important"});Aa.appendTo(ka);Aa=new R;Aa.setText(d.get("showOnlySelected","\u4ec5\u663e\u793a\u9009\u4e2d\u9879"));
Aa.setChecked(nb);Aa.addCheckedListener(Ga);Aa=Aa.getJqUi();var rb="en"==da.getUrlParamValue("language")?140:106;E.layoutCtrlWithLRTB(Aa,null,0,rb,0,null,21);Aa.appendTo(ka);Aa=f.protectedInitBar(ka);E.layoutCtrlWithLRTB(ka,0,0,null,0,null,Aa);Z=new KTable;Z.setFrozenRows(na.getHeadRowCount());Z.setDraggableAdjusting(!0,na.getHeadRowCount(),0,new b);ka=new KTStyle;ka.setVerticalAlign("middle");ka.setFontSize(k.getFontSize());ka.setFontUnit("px");ka.setFontName(k.getFontName());ka.setColor(com.kingdee.bos.qing.common.CommonTableSkin.COLOR);
Z.setStyle(ka);ka=new v(Z);ka.setOutsideVisible(!1);Z.setCellRender(ka);Z.setSyncUIWhenModelChanged(!1);ka=Aa+6;Oa=$(Z.getUI());E.layoutCtrlWithLRTB(Oa,0,0,null,ka,0,null);Oa.appendTo(Ha)}return r};this.setNoPermFieldIndex=function(Ha){ob=Ha};this.protectedGetSelectableItems=function(){throw Error("Impl");};var Xa=function(){Da&&1024<=Da.length?Z.setLargeDataMode(!0,!1):Z.setLargeDataMode(!1);var Ha=Da[0].getEntryHeadMap();w||(Ha?(w=Object.values(Ha),W=Object.keys(Ha)):((Ha=Da[0].getEntry())||(Ha=
f.protectedGetSelectableItems()[0].getEntry()),w=Object.keys(Ha),W=Object.keys(Ha)));K=w.length+1;if(0==ca.length){var ka=Da,Aa,rb;Ha=[];for(Aa=0;Aa<w.length;Aa++)Ha[Aa]=0;for(Aa=0;Aa<ka.length;Aa++){var cb=ka[Aa].getEntry();for(rb=0;rb<w.length;rb++){var hb=cb[W[rb]];20>Aa&&(hb=hb?hb.toString().length:0,hb=200<hb?200:hb,hb=10>hb?10:hb,Ha[rb]+=hb)}}if(0==ka.length)for(Aa=0;Aa<w.length;Aa++)Ha[Aa]+=w[Aa].length+10;Aa=0;rb=[];cb=20<=Da.length?20:Da.length;cb=0===cb?1:cb;for(ka=0;ka<w.length;ka++){hb=
Ha[ka]/cb;var x=w[ka]?w[ka].length:0;hb=hb<x?x:hb;Aa+=hb;rb.push(hb)}for(ka=0;ka<w.length;ka++)ca.push(rb[ka]/Aa)}Z.addColumns(K);ka=na.createHeadRow(Z);Z.getColumn(0).setWidth(32);for(Ha=1;Ha<K;Ha++)Aa=Ha-1,rb=556,cb=140,hb=w.length*cb,rb||(rb=hb),x=Math.floor(rb/hb),2<=x&&(cb*=x,hb=w.length*cb),Aa=hb<rb&&Aa===w.length-1?ca[Aa]*cb*w.length+(rb-hb):ca[Aa]*cb*w.length,Z.getColumn(Ha).setWidth(Aa),ka.getCell(Ha).setValue(w[Ha-1].toUpperCase());for(Ha=0;Ha<Da.length;Ha++)ka=Da[Ha],na.createRow(Z).setUserObject(ka)},
fb=function(){na.clear(Z);var Ha=f.protectedGetSelectableItems();if(Ta.isSearching()||nb){var ka=Ta.getSelectedSearcherImplLogic();Da=$.grep(Ha,function(Aa){var rb=!1,cb=!nb||$a(Aa.getValue());Aa=Aa.getEntry();for(var hb=Object.keys(Aa).length,x=0;x<hb;x++)if(Aa[W[x]]&&(rb=Ta.check(""+Aa[W[x]])),ka){if(rb)break}else if(!rb)break;return rb&&cb})}else Da=Ha;0<Da.length&&Xa();na.refresh(Z);f.protectedAfterUpdateTable()};this.protectedAfterUpdateTable=function(){};this.updateTable=function(){fb()};this.protectedCloneSelectedValue=
function(){throw Error("Impl");};this.protectedItemCreator=function(Ha){throw Error("Impl");};this.protectedInitBar=function(Ha){return 28};this.setItemHeight=function(Ha){};var Fa=function(){if(0==Da.length){if(!D){var Ha=new ta;Ha.setText(d.get("nothingSearched","\u627e\u4e0d\u5230\u7b26\u5408\u7684\u7ed3\u679c"));Ha.setEnabled(!1);D=Ha.getJqUi();E.layoutCtrlWithLRTB(D,0,0,null,60,null,16);Ha.setAlign(ta.ALIGN_CENTER);D.appendTo(p)}}else D&&D.remove(),D=null},$a=function(Ha){return 1==ab[Ha]},gb=
function(){fb();Fa()},Ga=function(Ha,ka){nb=Ha.isChecked();fb();Fa()};this.protectedMethod={visitAllVisibleSelectableItems:function(Ha){for(var ka=0;ka<Da.length&&!Ha(Da[ka]);ka++);},isSelected:$a,select:function(Ha,ka){ka?ab[Ha]=!0:delete ab[Ha]},selectOnlyOne:function(Ha){ab={};ab[Ha]=!0},acceptSelectingResult:function(){return ab},protectedUpdateTable:fb}}function Sa(){jb.call(this);var v=this.protectedMethod,b;this.protectedInitUi=function(f,r){var p=new ta;p.setText(d.get("searcherTitle","\u641c\u7d22"));
var D=v.createAllSearchImpl();b=D[0];v.changeSearchImpl(D[0],!1);var Z=new db;Z.setItemModels(D);Z.setSelected(D[0]);Z.setCustomPainter(function(Oa,K,w){w&&K.text(w.getCaption())});Z.addSelectedChangedListener(function(Oa,K,w){b=w;v.changeSearchImpl(w,!0)});p=p.getJqUi();Z=Z.getJqUi();D="en"==da.getUrlParamValue("language")?10:0;E.layoutCtrlWithLRTB(p,0,null,40+D,0,null,23);E.layoutCtrlWithLRTB(Z,33+D,null,74,0,null,23);E.layoutCtrlWithLRTB(r,114+D,null,"45%",0,null,23);r.css({"min-width":"100px !important",
"max-width":"278px !important","margin-right":"5px"});f.append(p);f.append(Z);f.append(r)};this.getSelectedSearcherImplLogic=function(){return b.getLogic()}}function jb(){var v=this,b,f,r,p;this.setSearchingHandler=function(Z){p=Z};this.isSearching=function(){return f&&f.getText()?!0:!1};this.check=function(Z){return!(f&&f.getText())||r.check(Z.toLowerCase(),(f?f.getText():null).toLowerCase())};this.clear=function(){f&&f.clear()};this.getJqUi=function(){b||(b=$("<div>"),v.protectedInitUi(b,D().getJqUi()));
return b};this.protectedInitUi=function(Z,Oa){throw Error("Implement");};var D=function(){f=new g;f.setPlaceholder(d.get("searcherTips","\u641c\u7d22\u5185\u5bb9"));f.addSearchListener(function(Z){p()});f.setSearchListenerDelay(1E3);return f};this.protectedMethod={createAllSearchImpl:function(){return[new qb(!0),new qb(!1),new tb(!0),new tb(!1),new wb(!0),new wb(!1),new Ka(!0),new Ka(!1)]},changeSearchImpl:function(Z,Oa){r=Z;Oa&&p()}}}function kb(v){var b=this;this.getLogic=function(){return v};this.getCaption=
function(){return b.protectedGetCaption(!v)};this.protectedGetCaption=function(f){throw Error("Override");};this.check=function(f,r){f=b.protectedCheckImpl(f,r);return v?f:!f};this.protectedCheckImpl=function(f,r){throw Error("Override");}}function qb(v){kb.call(this,v);this.protectedGetCaption=function(b){return b?d.get("searchNotInclude","\u4e0d\u5305\u542b"):d.get("searchInclude","\u5305\u542b")};this.protectedCheckImpl=function(b,f){return 0<=b.indexOf(f)}}function Ka(v){kb.call(this,v);this.protectedGetCaption=
function(b){return b?d.get("searchNotEqual","\u4e0d\u7b49\u4e8e"):d.get("searchEqual","\u7b49\u4e8e")};this.protectedCheckImpl=function(b,f){return b===f}}function tb(v){kb.call(this,v);this.protectedGetCaption=function(b){return b?d.get("searchNotStartOf","\u5f00\u5934\u4e0d\u662f"):d.get("searchStartOf","\u5f00\u5934\u662f")};this.protectedCheckImpl=function(b,f){return 0==b.indexOf(f)}}function wb(v){kb.call(this,v);this.protectedGetCaption=function(b){return b?d.get("searchNotEndOf","\u7ed3\u5c3e\u4e0d\u662f"):
d.get("searchEndOf","\u7ed3\u5c3e\u662f")};this.protectedCheckImpl=function(b,f){var r=b.lastIndexOf(f);return 0<=r&&r==b.length-f.length}}function ub(){var v=this,b,f=!0;this.setUserObject=function(D){b=D};this.getUserObject=function(){return b};this.setEnabled=function(D){f=D;v.protectedUpdateEnabledState()};this.isEnabled=function(){return f};this.setTooltips=function(D){v.getJqUi().attr("title",D)};this.getJqUi=function(){throw Error("Override me.");};this.protectedUpdateEnabledState=function(){};
var r=function(D,Z){p(D,Z,"sa-ctrl-common-singlelineborder","sa-ctrl-common-singlelineborder_disabled")},p=function(D,Z,Oa,K){Z?(D.addClass(Oa),D.removeClass(K)):(D.removeClass(Oa),D.addClass(K))};this.protectedMethod={superSetEnabled:function(D){f=D;v.protectedUpdateEnabledState()},createBorder:function(D){var Z=$("<div>");Z.addClass("sa-ctrl-common-border");E.layoutCtrlWithLRTB(Z,0,0,null,0,0,null);Z.appendTo(D);return Z},setUiBorderVisible:function(D,Z){Z?r(D,f):(D.removeClass("sa-ctrl-common-singlelineborder"),
D.removeClass("sa-ctrl-common-singlelineborder_disabled"))},setUiBorderEnabled:r,setUiForegroundEnabled:function(D,Z){p(D,Z,"sa-ctrl-common-foreground_enabled","sa-ctrl-common-foreground_disabled")},setUiBackgroundEnabled:function(D,Z){p(D,Z,"sa-ctrl-common-background_enabled","sa-ctrl-common-background_disabled")}}}function db(){ub.call(this);var v=this.protectedMethod,b=this,f=[],r,p,D=$("<div>"),Z,Oa,K,w,W,ca=[],Ta,nb=!1,Da=!1,ab,ob,Xa;this.setItemModels=function(B,Q){K=Q;f=B;W=null};this.setEditable=
function(B,Q){ab=(Da=B)?Q:null};this.setSelected=function(B){r=B;Aa();W&&Ga()};this.getSelected=function(){return r};this.setCustomPainter=function(B){Oa=B;Aa();W&&Ha()};this.setDropdownAsLongAsPossible=function(B){nb=B};this.setDropdownListener=function(B){Ta=B};this.addSelectedChangedListener=function(B){ca.push(B)};this.getJqUi=function(){p||fb();return p};this.protectedUpdateEnabledState=function(){p&&(v.setUiBorderEnabled(p,b.isEnabled()),v.setUiBackgroundEnabled(p,b.isEnabled()),v.setUiForegroundEnabled(p,
b.isEnabled()),b.isEnabled()?Z.addClass("extreport-runtime-filter-combobox-arrow_enabled"):Z.removeClass("extreport-runtime-filter-combobox-arrow_enabled"))};this.isChildOfPopup=function(B){return w?E.isDescendent(B,w[0]):!1};var fb=function(){p=$("<div>");p.addClass("extreport-runtime-filter-combobox");D.addClass("extreport-runtime-filter-combobox-text");D.appendTo(p);Z=$("<div>");Z.addClass("extreport-runtime-filter-combobox-arrow");Z.appendTo(p);Z.on("mouseenter",function(B){b.isEnabled()&&ka(!0)});
Z.on("mouseleave",function(B){b.isEnabled()&&ka(!1)});ka(!1);if(Da)D.on("click",Fa),Z.on("click",rb),ob=$("<input>"),ob.addClass("extreport-runtime-filter-textfield-input"),ob.on("blur",c),ob.on("keydown",U),ob.appendTo(p),ob.hide();else p.on("click",rb);b.protectedUpdateEnabledState()},Fa=function(B){ob&&(D.hide(),ob.show(),ob.focus(),ob.val(D.text()))},$a=function(){W=new q;W.setToggleSelectingEnabled(!1);W.setItemModels(f,K);Ga();W.addSelectedChangedListener(function(B,Q,ma){if(!gb)for(B=r,ma=
0<ma.length?ma[0]:null,b.setSelected(ma),Q=0;Q<ca.length;Q++)(0,ca[Q])(b,B,ma)});W.addPressedListener(function(B,Q){cb()});Ha()},gb=!1,Ga=function(){gb=!0;W.setSelecteds(r||0===r||!1===r?[r]:[]);gb=!1},Ha=function(){Oa?W.setCustomItemPainter(function(B,Q){Oa(!1,B,Q)}):W.setCustomItemPainter(null)},ka=function(B){var Q=w?"arrow-up":"arrow-down";B&&(Q+="_hover");pa.background(Z,Q)},Aa=function(){D.empty();Oa?Oa(!0,D,r):D.text(r||0===r||!1===r?r:"");D.show();ob&&ob.hide()},rb=function(B){if(b.isEnabled())if(w)cb();
else{W||$a();B=$(document.body);var Q=p.outerHeight(),ma=p.outerWidth(),oa=[0,Q-1];oa=E.upwardCoordinate(p[0],oa,B[0]);Q=oa[0];var ua=oa[1];oa=B.prop("clientHeight");var Pa=Math.min(20*Math.max(1,Math.min(f.length,nb?65535:10))+2,(oa>>1)-10);ua+Pa>oa&&(oa=[0,0],oa=E.upwardCoordinate(p[0],oa,B[0]),oa=oa[1]-Pa+1,0<=oa&&(ua=oa));w=$("<div>");w.addClass("sa-ctrl-common-popup");w.addClass("sa-ctrl-common-unselectable");w.css("position","absolute");w.css("left",Q+"px");w.css("top",ua+"px");w.css("width",
ma+"px");w.css("height",Pa+"px");w.appendTo(B);ma=W.getJqUi();ma.appendTo(w);ma.css("position","absolute");ma.css("left","0px");ma.css("top","0px");ma.css("width","100%");ma.css("height","100%");W.scrollSelectedToVisible();B.on("mousedown",x);B.on("mousewheel",hb);ka(!1);Ta&&Ta(b,!0)}},cb=function(){if(w){var B=$(document.body);B.off("mousedown",x);B.off("mousewheel",hb);w.detach();w=null;ka(!1);Ta&&Ta(b,!1)}},hb=function(B){E.isDescendent(B.target,W.getJqUi()[0])||cb()},x=function(B){p.is(":visible")&&
(E.isDescendent(B.target,p[0])||E.isDescendent(B.target,w[0]))||cb()},c=function(B){S()},U=function(B){Xa=!0;13==B.keyCode?(S(),B.preventDefault()):27==B.keyCode&&(Aa(),Xa=!1)},S=function(){if(Xa){var B=$.trim(ob.val());B=ab?ab(B):B;b.setSelected(B);Xa=!1}}}function P(){ub.call(this);var v=this.protectedMethod,b=this,f,r,p,D=$("<div>"),Z,Oa,K,w,W=[],ca=["arrow-down","arrow-up"],Ta=!1,nb,Da,ab;this.setEditable=function(c,U){nb=(Ta=c)?U:null};this.getSelectedModel=function(){return f};this.setSelectedModel=
function(c){f=c;gb();ob(!1)};this.addSelectionListener=function(c){W.push(c)};this.removeSelectionListener=function(c){for(var U=W.length-1;0<=U;U--)W[U]==c&&W.splice(U,1)};var ob=function(c){for(var U=0;U<W.length;U++)(0,W[U])(b,c)};this.setCustomPainter=function(c){w=c;gb()};this.setDropdownCreator=function(c){Oa=c};var Xa=function(c){return Oa(c,f,function(U){ka();f=U;gb();ob(!0)},function(){ka()},function(U){K=U})};this.getJqUi=function(){r||fb();return r};this.setIconName=function(c,U){ca=[c,
U?U:c]};var fb=function(){r=$("<div>");r.addClass("extreport-runtime-filter-combobox");D.addClass("extreport-runtime-filter-combobox-text");D.appendTo(r);p=$("<div>");p.addClass("extreport-runtime-filter-combobox-arrow");p.appendTo(r);p.on("mouseenter",function(c){b.isEnabled()&&Ga(!0)});p.on("mouseleave",function(c){b.isEnabled()&&Ga(!1)});Ga(!1);gb();if(Ta)D.on("click",Fa),p.on("click",Ha),Da=$("<input>"),Da.addClass("extreport-runtime-filter-textfield-input"),Da.on("blur",cb),Da.on("keydown",hb),
Da.appendTo(r),Da.hide();else r.on("click",Ha);b.protectedUpdateEnabledState()},Fa=function(c){Da&&b.isEnabled()&&(D.hide(),Da.show(),Da.focus(),Da.val(D.text()))},$a=function(c,U){U.text(c?c:"")},gb=function(){D&&(w?w:$a)(f,D);D.show();Da&&Da.hide()},Ga=function(c){var U=Z?ca[1]:ca[0];c&&(U+="_hover");com.kingdee.bos.qing.ui.component.Icons.background(p,U)};this.protectedUpdateEnabledState=function(){r&&(v.setUiBorderEnabled(r,b.isEnabled()),v.setUiBackgroundEnabled(r,b.isEnabled()),v.setUiForegroundEnabled(r,
b.isEnabled()),b.isEnabled()?(p.addClass("extreport-runtime-filter-combobox-arrow_enabled"),p.css({cursor:"pointer",opacity:""}),Ta&&Da.removeAttr("disabled")):(p.removeClass("extreport-runtime-filter-combobox-arrow_enabled"),p.css({cursor:"",opacity:"0.4"}),Ta&&Da.attr("disabled","disabled")))};var Ha=function(c){if(b.isEnabled())if(Z)ka();else{c=$(document.body);Z=$("<div>");Z.addClass("sa-ctrl-common-popup");Z.addClass("sa-ctrl-common-unselectable");Z.appendTo(c);var U=Xa(Z),S=U?U[0]:-1,B=U?U[1]:
-1;U=c.prop("clientWidth");var Q=c.prop("clientHeight"),ma=Q>>1,oa=r.outerWidth(),ua=r.outerHeight(),Pa=Math.max(0,ma-ua-28),ha=[0,ua-1];ha=E.upwardCoordinate(r[0],ha,c[0]);var Ya=ha[0],eb=ha[1];S=0>S?oa:S;B=0>B?Pa:B;eb+B>Q&&(eb>ma+ua?(ha=[0,0],ha=E.upwardCoordinate(r[0],ha,c[0]),Q=ha[1]-B+1,0<=Q?eb=Q:(eb=2,B=ha[1]-2)):B=Q-eb-2);Ya+S>U-10&&(Ya=U-S-10,0>Ya&&(Ya=0));E.layoutCtrl(Z,Ya,eb,S,B);c.on("mousedown",rb);c.on("mousewheel",Aa);Ga(!1);K&&K()}},ka=function(){if(Z){var c=$(document.body);c.off("mousedown",
rb);c.off("mousewheel",Aa);Z.remove();Z=null;Ga(!1)}},Aa=function(c){E.isDescendent(c.target,Z[0])||ka()},rb=function(c){r.is(":visible")&&(E.isDescendent(c.target,r[0])||E.isDescendent(c.target,Z[0]))||ka()},cb=function(c){x()},hb=function(c){ab=!0;13==c.keyCode?(x(),c.preventDefault()):27==c.keyCode&&(gb(),ab=!1)},x=function(){if(ab){var c=$.trim(Da.val());c=nb?nb(c):c;b.setSelectedModel(c);ab=!1}}}"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==
typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.extreport&&(com.kingdee.bos.extreport={});"undefined"==typeof com.kingdee.bos.extreport.runtime&&(com.kingdee.bos.extreport.runtime={});"undefined"==typeof com.kingdee.bos.extreport.runtime.filter&&(com.kingdee.bos.extreport.runtime.filter={});var aa=com.kingdee.bos.extreport.runtime.filter;aa.F7Selector=function(){ub.call(this);var v=this.protectedMethod,b=this,f,r,p,D,Z,Oa=!1,K=!1,w=!1,W,ca,Ta=[],nb=[];this.setClearable=
function(ka){Oa=ka};this.setEditable=function(ka,Aa){ca=(K=ka)?Aa:null};this.setEnabled=function(ka){f||Xa();v.superSetEnabled(ka);var Aa=f.parent();v.setUiBorderEnabled(Aa,ka);ka?(p.css({color:"#666"}),p.removeAttr("disabled"),p.attr("title",K?p.val():p.text()),f.find(".extreport-runtime-filter-f7selector-btn").css("display",""),Oa=!0):(p.css({color:"#c0c0c0"}),p.attr("disabled","disabled"),p.removeAttr("title"),f.find(".extreport-runtime-filter-f7selector-btn").css("display","none"),Oa=!1)};this.setModel=
function(ka){Z=ka;$a()};this.getModel=function(){return Z};this.setCustomPainter=function(ka){W=ka;$a()};this.addActionListener=function(ka){Ta.push(ka)};this.removeActionListener=function(ka){for(var Aa=Ta.length-1;0<=Aa;Aa--)Ta[Aa]==ka&&Ta.splice(Aa,1)};this.addClearListener=function(ka){nb.push(ka)};this.removeClearListener=function(ka){for(var Aa=nb.length-1;0<=Aa;Aa--)nb[Aa]==ka&&nb.splice(Aa,1)};var Da=function(){Oa&&Z?D?D.show():(D=$("<div>"),D.addClass("extreport-runtime-filter-f7selector-btn"),
D.addClass("extreport-runtime-filter-f7selector-btnclear"),D.on("click",ob),pa.background(D,"delete"),r.append(D),b.protectedUpdateEnabledState()):D&&D.hide()},ab=function(){D&&D.hide()},ob=function(){if(b.isEnabled()&&Oa){b.setModel(null);D&&D.hide();for(var ka=nb.length,Aa=0;Aa<ka;Aa++)(0,nb[Aa])(b)}};this.getJqUi=function(){f||Xa();return f};var Xa=function(){r=$("<div>");r.on("mouseenter",Da);r.on("mouseleave",ab);r.addClass("extreport-runtime-filter-f7selector-textcontainer");K?(p=$("<input>"),
p.addClass("extreport-runtime-filter-textfield-input"),p.on("blur",gb),p.on("keydown",Ga)):(p=$("<div>"),p.addClass("extreport-runtime-filter-f7selector-text"));p.appendTo(r);var ka=$("<div>");ka.addClass("extreport-runtime-filter-f7selector-btn");ka.addClass("extreport-runtime-filter-f7selector-btnedit");ka.on("click",fb);pa.background(ka,"search");f=$("<div>");f.addClass("extreport-runtime-filter-f7selector");f.append(r);f.append(ka);$a();b.protectedUpdateEnabledState()},fb=function(){if(b.isEnabled())for(var ka=
Ta.length,Aa=0;Aa<ka;Aa++)(0,Ta[Aa])(b)},Fa=function(ka){return ka?ka:""};this.protectedUpdateEnabledState=function(){if(f){v.setUiBorderEnabled(f,b.isEnabled());v.setUiBackgroundEnabled(f,b.isEnabled());v.setUiForegroundEnabled(f,b.isEnabled());var ka=f.find(".extreport-runtime-filter-f7selector-btn");b.isEnabled()?ka.addClass("extreport-runtime-filter-f7selector-btn_enabled"):ka.removeClass("extreport-runtime-filter-f7selector-btn_enabled")}};var $a=function(){if(p){var ka=(W?W:Fa)(Z);K?p.val(ka):
p.text(ka);p.attr("title",ka)}},gb=function(ka){Ha()},Ga=function(ka){w=!0;13==ka.keyCode?(Ha(),ka.preventDefault()):27==ka.keyCode&&($a(),w=!1)},Ha=function(){if(w){var ka=$.trim(p.val());ka=ca?ca(ka):ka;b.setModel(ka);w=!1}}};aa.F7Dialog=function(){ea.call(this);var v=this,b=this.protectedMethod,f,r=[],p=[],D=!1,Z,Oa=!1,K,w,W=[];(function(){b.setTitle(d.get("f7dialog","\u5f39\u7a97\u9009\u62e9\u5668"));v.setSize(640,480);b.setSelectable(!0);b.setContentPaneCreator(function(){if(Oa)f=D?new e(K):
new t(K);else{var ca=r[0]?r[0].getEntry():null;D?ca&&0<Object.keys(ca).length?(f=new wa,f.setNoPermFieldIndex(W)):f=new ba:ca&&0<Object.keys(ca).length?(f=new va,f.setNoPermFieldIndex(W)):f=new L}f.setSelectableItems(r);f.setSelected(p);return f.getJqUi()});b.setClosingChecker2(function(ca){ca=f.getSelected();if(w&&!isNaN(w)&&ca.length>w)return ca=d.get("exceedMaxSelect","\u9009\u62e9\u6570\u91cf\u8d85\u8fc7\u9650\u5236\uff0c\u6700\u591a\u53ef\u9009#1\u4e2a\u53c2\u6570\u3002").replace("#1",w),b.getMessageCurtain().showPrompt(ca),
!1;Z&&Z(ca);b.destroy();return!0},function(ca){b.destroy();return!0});b.setClosingAction(function(ca){})})();this.setTreeNodeStyle=function(ca){Oa=ca};this.setTreeExpandLevel=function(ca){K=ca};this.setSelectabledItems=function(ca){r=ca;f&&f.setSelectableItems(r)};this.getPanel=function(){return f};this.setConfirmCallback=function(ca){Z=ca};this.setMultiSelect=function(ca){D=ca};this.setSelected=function(ca){ca||(ca=[]);p=ca};this.setMaxSelect=function(ca){w=ca};this.setNoPermFieldIndex=function(ca){W=
ca}};aa.ComboBox=db;aa.DropdownSelector=P;aa.ChooseItemPane=function(){var v=[],b,f,r,p;this.setItemModel=function(D){v=D};this.setRawTypeSwitchListener=function(D){};this.setSearchListener=function(D){b=D};this.setListItemPainter=function(D){f=D};this.createJqPopup=function(D,Z,Oa){r=$("<div>");r.appendTo(D);p=$("<div>");r.addClass("extreport-runtime-filter-field-popup");D=d.get("search","\u641c\u7d22");var K=new g;K.setSearchListenerDelay(200);K.setPlaceholder(D);K.addSearchListener(function(){b(v,
K.getText(),p,Z,f)});D=K.getJqUi();D.addClass("extreport-runtime-filter-field-popup-search");D.appendTo(r);p.addClass("extreport-runtime-filter-field-popup-list-owner");p.on("click",function(W){var ca=$(W.currentTarget);W=$(W.target);if(W=E.upwardSearchHasClass(W,ca,"extreport-runtime-filter-field-popup-list-item"))W.addClass("extreport-runtime-filter-list-item_selected_enabled"),ca=W.data("model"),Oa(ca)});p.appendTo(r);var w=r.find(".extreport-runtime-filter-search-textfield-input");w.css("top",
"0px");w.css("height","100%");for(w=0;w<v.length;w++)f(v[w],p,Z,!1);return[-1,10<v.length?200+D.height():20*v.length+D.height()+3]}};aa.DateSelector=function(){com.kingdee.bos.qing.ui.component.DateSelector.call(this);var v=this;this.protectedCreatePopupUi=function(b,f,r,p){p.addSelectedChangedListener(function(Z){Z=new Date;Z.setHours(0,0,0,0);Z.setFullYear(p.getSelectedYear(),p.getSelectedMonth()-1,p.getSelectedDay());r(Z)});f=p.suggestSize()[1];var D=$("<div>");D.addClass("sa-ctrl-date-foot");
b.append(D);E.layoutCtrlWithLRTB(D,0,0,null,null,0,32);f+=32;v.isSelectedNullable()&&(b=new z,b.setText(d.get("clean","\u6e05\u7a7a")),b.addActionListener(function(Z){r(null)}),D.append(b.getJqUi()),E.layoutCtrlWithLRTB(b.getJqUi(),4,null,60,null,4,24));b=new z;b.setText(d.get("today","\u4eca\u5929"));b.addActionListener(function(Z){Z=new Date;Z.setHours(0,0,0,0);r(Z)});b.getJqUi().appendTo(D);E.layoutCtrlWithLRTB(b.getJqUi(),null,4,60,null,4,24);E.layoutCtrlWithLRTB(p.getJqUi(),0,0,null,0,32,null);
return[230,f]}};aa.DateTimeSelector=function(){com.kingdee.bos.qing.ui.component.DateTimeSelector.call(this);var v=this;this.protectedCreatePopupUi=function(b,f,r,p){p.setCurrentMonthNavigatorListener(function(Da,ab){Oa.css("display",ab?"":"none")});p.addSelectedChangedListener(function(Da){W.setEnabled(!0)});var D=$("<div>"),Z=$("<div>"),Oa=$([D[0],Z[0]]);Oa.css("display","none");Oa.addClass("sa-ctrl-date-mask");var K=new T;K.getJqUi().addClass("sa-ctrl-date-separater");setTimeout(function(){f?K.setSelected(f.getHours(),
f.getMinutes(),f.getSeconds()):K.setSelected(0,0,0)},0);var w=$("<div>");w.addClass("sa-ctrl-date-foot");var W=new z;W.setText(d.get("ok","\u786e\u5b9a"));W.setEnabled(p.isSelected());W.addActionListener(function(Da){Da=h.createDateObject(p.getSelectedYear(),p.getSelectedMonth()-1,p.getSelectedDay());Da.setHours(K.getHour(),K.getMinute(),K.getSecond(),0);r(Da)});W.getJqUi().appendTo(w);E.layoutCtrlWithLRTB(W.getJqUi(),null,4,60,null,4,24);if(v.isSelectedNullable()){var ca=new z;ca.setText(d.get("clean",
"\u6e05\u7a7a"));ca.addActionListener(function(Da){r(null)});ca.getJqUi().appendTo(w);E.layoutCtrlWithLRTB(ca.getJqUi(),4,null,60,null,4,24)}ca=new z;ca.setText(d.get("now","\u73b0\u5728"));ca.addActionListener(function(Da){Da=new Date;Da.setMilliseconds(0);r(Da)});ca.getJqUi().appendTo(w);E.layoutCtrlWithLRTB(ca.getJqUi(),null,K.suggestSize()[0],60,null,4,24);b.append(K.getJqUi());b.append(w);b.append(D);b.append(Z);b=p.suggestSize();ca=K.suggestSize();var Ta=b[0]+ca[0],nb=Math.max(b[1],ca[1])+32;
E.layoutCtrlWithLRTB(p.getJqUi(),0,null,b[0],0,32,null);E.layoutCtrlWithLRTB(K.getJqUi(),null,0,ca[0],0,32,null);E.layoutCtrlWithLRTB(D,null,0,ca[0],0,32,null);E.layoutCtrlWithLRTB(w,0,0,null,null,0,32);E.layoutCtrlWithLRTB(Z,0,0,null,null,0,32);return[Ta,nb]}};aa.TimeSelector=function(){ub.call(this);var v=this,b=this.protectedMethod,f,r=!1,p=[0,0,0];this.setEnabled=function(K){Oa().setEnabled(K)};this.isEnabled=function(){return Oa().isEnabled()};this.addSelectionListener=function(K){Oa().addSelectionListener(function(w,
W){W&&(p=w.getSelectedModel(),K(v))})};this.getJqUi=function(){return Oa().getJqUi()};this.setSelectedNullable=function(K){r=K};this.setSelected=function(K,w,W){if(!r&&null===K)throw Error("Illegal argument");p=null===K?null:[K,w,W];Oa().setSelectedModel(p)};this.isSelectedNull=function(){return null===p};this.getHour=function(){return p[0]};this.getMinute=function(){return p[1]};this.getSecond=function(){return p[2]};var D=function(K){return(10>K?"0":"")+K},Z=function(K,w){var W="";K&&(W=D(K[0])+
" : "+D(K[1])+" : "+D(K[2]));w.text(W)},Oa=function(){f||(f=new P,f.setIconName("time"),f.setCustomPainter(Z),f.setDropdownCreator(function(K,w,W,ca){ca=$("<div>");ca.addClass("sa-ctrl-date-foot");if(r){var Ta=new z;Ta.setText(d.get("clean","\u6e05\u7a7a"));Ta.addActionListener(function(Da){W(null)});Ta.getJqUi().appendTo(ca);E.layoutCtrlWithLRTB(Ta.getJqUi(),4,null,60,null,5,22)}Ta=new z;Ta.setText(d.get("ok","\u786e\u5b9a"));Ta.addActionListener(function(Da){W([nb.getHour(),nb.getMinute(),nb.getSecond()])});
Ta.getJqUi().appendTo(ca);E.layoutCtrlWithLRTB(Ta.getJqUi(),null,4,60,null,5,22);var nb=new T;setTimeout(function(){nb.setSelected(w?w[0]:0,w?w[1]:0,w?w[2]:0)},0);K.append(nb.getJqUi());K.append(ca);E.layoutCtrlWithLRTB(nb.getJqUi(),0,0,null,0,32,null);E.layoutCtrlWithLRTB(ca,0,0,null,null,0,32);b.setUiBackgroundEnabled(K,!0);nb.suggestSize();K=new z;K.setText(d.get("now","\u73b0\u5728"));K.addActionListener(function(Da){Da=new Date;W([Da.getHours(),Da.getMinutes(),Da.getSeconds()])});K.getJqUi().appendTo(ca);
E.layoutCtrlWithLRTB(K.getJqUi(),85,null,60,null,5,22);return[230,300]}));return f}};aa.SwitchButton=function(){ub.call(this);var v=this,b,f,r,p=!0,D=[],Z,Oa,K=0,w,W=new H;this.setText=function(Da,ab){Z=Da;Oa=ab;nb(!1)};this.addStateChangeListener=function(Da){D.push(Da)};var ca=function(Da){for(var ab=0;ab<D.length;ab++)(0,D[ab])(v,Da,p)};this.setOn=function(Da){p=Da;nb(!0);ca(!1)};this.isOn=function(){return p};this.getJqUi=function(){if(!b){var Da=$("<div>");b=$("<div>");b.on("click",Ta);b.appendTo(Da);
f=$("<div>");f.addClass("sa-ctrl-switcher-thumb");f.appendTo(b);r=$("<div>");r.addClass("extreport-runtime-filter-switch-text");r.appendTo(b);nb(!1);b.css("border-radius","10px");E.layoutCtrlMiddleAlign(b,19);E.layoutCtrlMiddleAlign(f,15);f.css("border-radius","8px");f.css("width",15);f.css("margin-top","-8px")}return b.parent()};var Ta=function(){v.isEnabled()&&(p=!p,nb(!0),ca(!0))};this.protectedUpdateEnabledState=function(){nb(!1)};var nb=function(Da){var ab=p?Z:Oa;ab?(W.setFontSize(12,"Microsoft YaHei"),
K=W.measureWidth(ab),w=15+K+12):(w=38,K=0);65<w&&(K-=w-65,w=65);if(b){b.css("width",w);r.css("width",K);v.isEnabled()?(b.css("cursor","pointer"),b.css("opacity","")):(b.css("cursor",""),b.css("opacity","0.5"));p?(b.addClass("sa-ctrl-switcher_on"),b.removeClass("sa-ctrl-switcher_off"),r.text(Z),r.attr("title",Z)):(b.removeClass("sa-ctrl-switcher_on"),b.addClass("sa-ctrl-switcher_off"),r.text(Oa),r.attr("title",Oa));ab=4;var ob=23;p&&(ob=4,ab=0<K?K+8:w-4-15);Da?(f.animate({left:ab+"px"},"fast"),r.animate({left:ob+
"px"},"fast")):(f.css("left",ab+"px"),r.css("left",ob+"px"))}}};aa.SingleValueDiscreteFilterPane=L;aa.MultiValueDiscreteFilterPane=ba;aa.SingleValueTreeFilterPane=t;aa.MultiValueTreeFilterPane=e;aa.MultiValueDiscreteTableFilterPanel=wa;aa.SingleValueDiscreteTableFilterPanel=va;var ea,ta,g,fa,q,J,a,R,z,T,h,l,da,E,na,d,k,H,pa;(function(){var v=com.kingdee.bos.qing.ui.component;ea=v.AbstractModalDialog;ta=v.Label;g=v.SearchBox;fa=v.DynamicScroller;q=v.List;J=v.RadioButton;a=v.RadioButtonGroup;R=v.CheckBox;
z=v.WorkButton;T=v.TimeList;h=v.AbstractMonthlyCalendar;l=v.HelpIcon;v=com.kingdee.bos.qing;da=v.Seer;v=com.kingdee.bos.qing.common;E=v.DomUtil;H=v.TextMeasurer;v=com.kingdee.bos.qing.common.ui;na=v.TableUtil;v=com.kingdee.bos.qing.framework.common;d=v.MultilanguageManager.createPackageAccessor(aa);k=v.GlobalFont;v=com.kingdee.bos.extreport.runtime;pa=v.MyIcons})()})();(function(){function t(g,fa){var q=this,J;this.getParamDescription=function(){return g};this.getContext=function(){return fa};this.createUI=function(z){throw Error("Override me.");};this.setSuppliedValue=function(z){throw Error("Override me.");};this.setSelectedValue=function(z){throw Error("Override me.");};this.getSelectedValue=function(){throw Error("Override me.");};this.setSuppliedValueDescription=function(z){};this.resetSuppliedValue=function(z,T){};this.setSelectedValueChangedListener=function(z){J=
z};this.fireSelectedValueChanged=function(){J&&J(q)};var a=function(){var z=$("<div>"),T=new ea;T.setFontSize(ta.getFontSize(),ta.getFontName());var h=T.measureWidth(g.getCaption())+4,l=g.isRequired();l&&(h+=8);h=Math.min(h,97);z.css({display:"inline-block",width:Math.max(108,108+(h-80))+"px",height:"24px",position:"relative",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"});var da=new com.kingdee.bos.qing.ui.component.Label;da.setRequired(l);da.setText(g.getCaption());da.setTooltips(g.getCaption());
l=da.getJqUi();l.css({position:"absolute",left:"6px",top:0,width:h+"px",height:"24px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",verticalAlign:"middle"});l.appendTo(z);if(da=g.getDescription())l=new db,l.setIconType(db.ICON_TYPE_QUESTION),l.setTipsText(da),T=T.measureWidth(da),l.setTipsSize(300<T?300:T+40,20*(Math.ceil(T/300)+1)),T=l.getJqUi(),h+=10,T.css({"z-index":2}),aa.layoutCtrlWithLRTB(T,h,null,16,4,null,16),T.appendTo(z);return z},R=function(z,T){z.prop(T,!0);z.css("background-color",
"transparent")};this.protectedMethod={createUiWithLabel:function(z,T){var h="ctrl_"+g.getName();T.attr("id",h);var l=a();l.css("verticalAlign","middle");T.css({position:"relative",height:"24px",width:"230px",display:"inline-block",verticalAlign:"middle","font-size":"12px"});l.attr("for",h);z.append(l);z.append(T);"Hidden"==g.getState()?z.css("display","none"):g.isReadOnly()?(T.addClass("r-filter-disable"),z=T.find("input"),T.is("input")?R(T,"readonly"):z.is("input")?R(z,"readonly"):(z=$(T[0]),R(z,
"disabled")),z.addClass("r-filter-disable")):T.addClass("extreport-runtime-filter-enabled")},createUiWithFieldset:function(z,T){var h=$("<div>");h.attr("data-role","controlgroup");var l=a();l.css({"margin-top":"8px",verticalAlign:"top"});var da=$("<ul>");da.css({position:"relative",width:"85%",display:"inline-block"});h.append(l);h.append(da);if(T instanceof Array)for(l=0;l<T.length;l++){var E=$("<li>");E.css({margin:"8px 24px 8px 0px",display:"inline-block","font-size":"12px"});E.append(T[l]);da.append(E);
g.isReadOnly()?T[l].prop("disabled",!0):T[l].addClass("extreport-runtime-filter-enabled")}else l="ctrl_"+q.getParamDescription().getName(),T.attr("id",l),da.append(T);z.append(h);"Hidden"==q.getParamDescription().getState()?z.css("display","none"):g.isReadOnly()&&da.addClass("r-filter-disable")},createUiWithLabel2:function(z,T){var h="ctrl_"+q.getParamDescription().getName();T.attr("id",h);z.append(T);"Hidden"==q.getParamDescription().getState()&&z.css("display","none")}}}"undefined"==typeof com&&
(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.extreport&&(com.kingdee.bos.extreport={});"undefined"==typeof com.kingdee.bos.extreport.runtime&&(com.kingdee.bos.extreport.runtime={});"undefined"==typeof com.kingdee.bos.extreport.runtime.filter&&(com.kingdee.bos.extreport.runtime.filter={});var e=com.kingdee.bos.extreport.runtime.filter;e.FilterTextField=function(g,fa){var q=this;t.call(this,g,
fa);var J,a,R=this.protectedMethod;this.createUI=function(T){J||z();var h=J.getJqUi();R.createUiWithLabel(T,h)};this.setSuppliedValue=function(T){};this.setSelectedValue=function(T){var h;T&&0<T.length&&(h=T[0].getValue());J||z();J.setText(null==h?"":h);q.fireSelectedValueChanged()};this.getSelectedValue=function(){J||z();var T=null==J.getText()?"":J.getText(),h=new ValueTextModel;h.setValue(T);h.setText(T);return[h]};var z=function(){J=new u;J.addEditedListener(function(T){clearTimeout(a);a=setTimeout(function(){q.fireSelectedValueChanged()},
1E3)})}};e.FilterComboBox=function(g,fa){var q=this;t.call(q,g,fa);var J=this.protectedMethod,a,R,z=[];this.createUI=function(h){a||T();var l=a.getJqUi();J.createUiWithLabel(h,l)};this.createUIWithoutLabel=function(h){T();a.setItemModels(z,function(da,E){return da&&E?da.getValue()==E.getValue():!1});var l=a.getJqUi();J.createUiWithLabel2(h,l)};this.setEnabled=function(h){a&&a.setEnabled(h)};var T=function(){a=new qb;g.isEditable()&&a.setEditable(!0,function(h){if(!h||""==h&&g.isRequired())return null;
for(var l=0,da=z.length;l<da;l++)if(z[l].getText()==h)return z[l];l=new ValueTextModel;l.setText(h);l.setValue(h);return l});g.isReadOnly()&&a.setEnabled(!1);a.setCustomPainter(function(h,l,da){da&&l.text(da.getText())});a.addSelectedChangedListener(q.fireSelectedValueChanged)};this.setSuppliedValue=function(h){a||T();if(h){var l=q.getParamDescription(),da=l.getCtrlType();l=l.isRequired();"combobox"!=da.toLowerCase()||l||(da=new ValueTextModel,da.setValue(""),da.setText(""),h.unshift(da));a.setItemModels(h,
function(E,na){return E&&na?E.getValue()==na.getValue():!1});z=h}};this.setSelectedValue=function(h){var l;h&&0<h.length&&(l=h[0]);if(l){a||T();h=l;l=0;for(var da=z.length;l<da;l++)if(z[l].getValue()==h.getValue()){var E=z[l];break}a.setSelected(E)}};this.getSelectedValue=function(){a||T();var h=a.getSelected();if(h){var l=new ValueTextModel;l.setValue(h.getValue());l.setText(h.getText());return[l]}return[]};this.setSuppliedValueDescription=function(h){R=h};this.resetSuppliedValue=function(h,l){var da=
q.getParamDescription().getName();q.getContext().delaySuppliedValueRemoteGetter(da,R,function(E){var na=[];if(E){E=E.entryList;for(var d=0;d<E.length;d++){var k=new ValueTextModel,H=E[d];k.setText(H.text);k.setValue(H.value);na.push(k)}}q.setSuppliedValue(na);q.setSelectedValue(null);q.fireSelectedValueChanged();h&&h(l)})}};e.FilterComboBoxSearch=function(g,fa){var q=this;t.call(q,g,fa);var J=this.protectedMethod,a,R,z=[],T;this.createUI=function(d){a||h();var k=a.getJqUi();J.createUiWithLabel(d,
k)};this.createUIWithoutLabel=function(d){h();T.setItemModel(z);var k=a.getJqUi();J.createUiWithLabel2(d,k)};this.setEnabled=function(d){a&&a.setEnabled(d)};var h=function(){T=new Ka;T.setListItemPainter(da);T.setSearchListener(l);a=new tb;g.isEditable()&&a.setEditable(!0,function(d){if(!d||""==d&&g.isRequired())return null;for(var k=0,H=z.length;k<H;k++)if(z[k].getText()==d)return z[k];k=new ValueTextModel;k.setText(d);k.setValue(d);return k});g.isReadOnly()&&a.setEnabled(!1);a.setDropdownCreator(function(d,
k,H){return T.createJqPopup(d,k,H)});a.addSelectionListener(q.fireSelectedValueChanged);a.setCustomPainter(function(d,k){k.text(d?d.getText():"")})},l=function(d,k,H,pa,v){k=k.toLowerCase().trim();for(var b=[],f,r=0;r<d.length;r++)(f=-1!=d[r].getText().toLowerCase().indexOf(k)?!0:!1)&&b.push(d[r]);H.children().remove();if(0<b.length){for(r=0;r<b.length;r++)v(b[r],H,pa);b.length=0}else d=new Va,d.setText(Na.get("nothingSearched","\u627e\u4e0d\u5230\u7b26\u5408\u7684\u7ed3\u679c")),d.setEnabled(!1),
d.setAlign(Va.ALIGN_CENTER),d=d.getJqUi(),d.addClass("extreport-runtime-filter-field-popup-search-result"),d.appendTo(H)},da=function(d,k,H){var pa=$("<div>");pa.addClass("extreport-runtime-filter-field-popup-list-item");pa.data("model",d);var v=d?d.getText():"",b=$("<span>");b.text(v);b.attr("title",v);b.addClass("extreport-runtime-filter-field-popup-list-item-text");pa.append(b);k.append(pa);H&&H.getText()==d.getText()&&E(k,pa)},E=function(d,k){var H=null;0<d.height()?(clearTimeout(H),k.addClass("extreport-runtime-filter-list-item_selected_enabled"),
d.prop("scrollTop",0)):H=setTimeout(function(){E(d,k)},0)};this.setSuppliedValue=function(d){a||h();if(d){var k=q.getParamDescription(),H=k.getCtrlType();k=k.isRequired();"combobox"!=H.toLowerCase()||k||(H=new ValueTextModel,H.setValue(""),H.setText(""),d.unshift(H));T.setItemModel(d);z=d}};this.setSelectedValue=function(d){var k;d&&0<d.length&&(k=d[0]);a||h();k?na(k):(d=new ValueTextModel,d.setText(""),na(d))};this.getSelectedValue=function(){a||h();var d=a.getSelectedModel();if(d){var k=new ValueTextModel;
k.setValue(d.getValue());k.setText(d.getText());return[k]}return[]};this.setSuppliedValueDescription=function(d){R=d};this.resetSuppliedValue=function(d,k){var H=q.getParamDescription().getName();q.getContext().delaySuppliedValueRemoteGetter(H,R,function(pa){var v=[];if(pa){pa=pa.entryList;for(var b=0;b<pa.length;b++){var f=new ValueTextModel,r=pa[b];f.setText(r.text);f.setValue(r.value);v.push(f)}}q.setSuppliedValue(v);q.setSelectedValue(null);q.fireSelectedValueChanged();d&&d(k)})};var na=function(d){for(var k=
d,H=0,pa=z.length;H<pa;H++)if(z[H].getValue()==d.getValue()){k=z[H];break}a.setSelectedModel(k)}};e.FilterForwardSelector=function(g,fa){t.call(this,g,fa);var q=this,J=this.protectedMethod,a,R=[],z=[],T=!0,h;this.createUI=function(d){a||l();var k=a.getJqUi();J.createUiWithLabel(d,k)};this.createUIWithoutLabel=function(d){l();var k=a.getJqUi();J.createUiWithLabel2(d,k)};this.setEnabled=function(d){a&&a.setEnabled(d)};this.setSuppliedValueInner=function(d){T=!1;R=d};this.setSuppliedValue=function(d){};
this.setSelectedValue=function(d){a||l();d&&0==d.length?a.setModel(null):a.setModel(d);q.fireSelectedValueChanged()};this.getSelectedValue=function(){return a&&a.getModel()?a.getModel():[]};this.setSuppliedValueDescription=function(d){h=d};this.resetSuppliedValue=function(d,k){T=!0;a&&a.setModel(null);q.fireSelectedValueChanged();d&&d(k)};var l=function(){a=new kb;a.setClearable(!0);g.isEditable()&&a.setEditable(!0,function(d){if(!d||""==d)return null;for(var k=[],H=0,pa=R.length;H<pa;H++)if(R[H].getText()==
d){k.push(R[H]);break}0==k.length&&(H=new ValueTextTreeNodeModel,H.setText(d),H.setValue(d),k.push(H));return k});g.isReadOnly()&&a.setEnabled(!1);a.addActionListener(na);a.setCustomPainter(function(d){var k="";if(!d)return k;for(var H=d.length,pa=3>H?H:3,v=0;v<pa;v++)k+=d[v].getText(),v<pa-1&&(k+="; ");3<H&&(k=Na.get("selectNumInTotal","#1\u7b49#2\u9879").replace("#1",k),k=k.replace("#2",H));return k})},da=function(d){d=new jb;d.setSelectabledItems(R);d.setSelected(a.getModel());d.setMultiSelect(q.getParamDescription().isMultiSelectable());
d.setConfirmCallback(function(k){a.setModel(k);q.fireSelectedValueChanged()});d.setTreeNodeStyle(q.getParamDescription().isTree());d.setTreeExpandLevel(q.getParamDescription().getTreeExpandLevel());d.setMaxSelect(q.getParamDescription().getMaxRestrictNumber());d.setNoPermFieldIndex(z);d.showDialog();d=d.getPanel();(d instanceof com.kingdee.bos.extreport.runtime.filter.MultiValueDiscreteTableFilterPanel||d instanceof com.kingdee.bos.extreport.runtime.filter.SingleValueDiscreteTableFilterPanel)&&d.updateTable()},
E=function(d,k,H){for(var pa=0;pa<d.length;pa++){var v=d[pa];v.setLevel(k);H.push(v);(v=v.getChildren())&&E(v,k+1,H)}},na=function(d){T?(d=q.getParamDescription().getName(),q.getContext().delaySuppliedValueRemoteGetter(d,h,function(k){z=k?k.noPermFieldIndex:[];if(k){var H=k.entryList;R=[];for(var pa,v,b=0;b<H.length;b++)pa=H[b],v=new ValueTextTreeNodeModel,v.setText(pa.text),v.setValue(pa.value),v.setId(pa.id),v.setParentId(pa.parentId),v.setEntry(pa.rows),v.setEntryHeadMap(k.head),R.push(v);if(q.getParamDescription().isTree()){k=
R;if(!(k instanceof Array))throw Error("Illegal argument. Argument should be instance of Array.");if(k&&0!=k.length){if(!(k[0]instanceof ValueTextTreeNodeModel))throw Error("Illegal argument. Elements in Array should be instance of ValueTextTreeNodeModel.");H=new ValueTextTreeModel;H.buildTree(k);k=H.getRootArray();H=[];E(k,0,H);R=H}else R=void 0}}da()})):da()}};e.FilterNumberInput=function(g,fa){var q=this;t.call(this,g,fa);var J,a=this.protectedMethod;this.createUI=function(z){J||R();var T=J.getJqUi(),
h=T.find(".sa-ctrl-spinner-text");h&&h.css("background-color","#fafafa");a.createUiWithLabel(z,T)};var R=function(){J=new L;J.supportDecimal(2);g.isReadOnly()&&J.setEnabled(!1);J.addValueChangedListener(q.fireSelectedValueChanged)};this.setSuppliedValue=function(z){J||R();var T=z.getMin(),h=z.getMax();z=z.getStep();J.setConstraint(T?Number(T):-Infinity,h?Number(h):Infinity,z?Number(z):1)};this.setDefaultValue=function(z){};this.setSelectedValue=function(z){z&&0<z.length&&(z=z[0],J||R(),J.setValue(Number(z.getValue())))};
this.getSelectedValue=function(){J||R();var z=new ValueTextModel;z.setValue(J.getValue()+"");z.setText(z.getValue());return[z]}};e.FilterDate=function(g,fa){var q=this;t.call(this,g,fa);var J,a,R=this.protectedMethod;this.createUI=function(l){J||z();var da=J.getJqUi();R.createUiWithLabel(l,da)};var z=function(){J=new ba;J.setSelectedNullable(!0);J.addModelChangedListener(q.fireSelectedValueChanged);g.isReadOnly()&&J.setEnabled(!1)};this.setSuppliedValue=function(l){};this.setSelectedValue=function(l){l&&
0<l.length?(l=l[0],(l=l.getValue())&&"string"==typeof l&&T(l)):T("")};this.getSelectedValue=function(){var l=h(),da=new ValueTextModel;da.setValue(l);da.setText(da.getValue());return[da]};var T=function(l){J||z();if(l){if(-1<l.indexOf("-")){var da=l.split("-");if(3>da.length)return;l=parseInt(da[0]);var E=parseInt(da[1]);da=parseInt(da[2]);var na=new Date;na.setYear(l);na.setMonth(E-1);na.setDate(da)}else na=new Date(Number(l));J.setDateObject(na)}else J.setDateObject(null)},h=function(){if(!J)return"";
var l=J.getDateObject();if(!l)return"";a||(a=new wa,a.setFormatString("yyyy-MM-dd"));return a.format(l)}};e.FilterSimilarDate=function(g,fa){function q(H,pa,v){z.call(this,Na.get("month","\u6708"),new xb,H,pa,v);var b=this;b.setOkBtnListener(function(f){if(f instanceof xb){var r=f.getSelectedYear();f=f.getSelectedMonth();v(10>f?r+"-0"+f:r+"-"+f)}});setTimeout(function(){var f=b.getPanel();if(f instanceof xb){var r=pa?pa:na((new Date).getTime()+""),p=r?parseInt(r.substring(0,4)):(new Date).getFullYear();
r=r?parseInt(r.substring(5)):(new Date).getMonth()+1;f.setSelectedYear(p);f.setSelectedMonth(r);f.scrollSelectedToVisible()}},0);return[230,300]}function J(H,pa,v){z.call(this,Na.get("quarter","\u5b63"),new Sa,H,pa,v);var b=this;b.setOkBtnListener(function(f){if(f instanceof Sa){var r=f.getSelectedYear();f=f.getSelectedQuarter();r=Sa.toDateRange(r,f);v(na(r[0]+""))}});setTimeout(function(){var f=b.getPanel();if(f instanceof Sa){var r=pa?pa:na((new Date).getTime()+""),p=parseInt(r.substring(0,4));
r=parseInt(r.substring(6))-1;f.setSelectedYear(p);f.setSelectedQuarter(r);f.scrollSelectedToVisible()}},0);return[230,300]}function a(H,pa,v){z.call(this,Na.get("year","\u5e74"),new R,H,pa,v);var b=this;b.setOkBtnListener(function(f){f instanceof R&&(f=f.getDateRange(),v(na(f[0]+"")))});setTimeout(function(){var f=b.getPanel();if(f instanceof R){var r=pa?pa:na((new Date).getTime()+"");f.setDateRange(r);f.into()}},0);return[230,300]}function R(){var H;this.getJqUi=function(){return pa().getJqUi()};
this.setDateRange=function(v,b){v=(v?new Date(v):new Date).getFullYear();pa().setSelecteds([v])};this.getDateRange=function(){var v=pa().getSelecteds()[0],b=new Date;b.setFullYear(v,0,1);b.setHours(0,0,0,0);var f=new Date;f.setFullYear(v,11,31);f.setHours(23,59,59,999);return[b.getTime(),f.getTime()]};this.into=function(){pa().scrollSelectedToVisible()};var pa=function(){if(!H){for(var v=[],b=1970;2099>=b;b++)v.push(b);H=new ub;H.setToggleSelectingEnabled(!1);H.setBorderVisible(!1);H.setItemModels(v)}return H}}
function z(H,pa,v,b,f){var r=pa.getJqUi();b=$("<div>");b.addClass("sa-ctrl-date-foot");b.css({background:"#fff"});v.append(r);v.append(b);aa.layoutCtrlWithLRTB(r,0,0,null,0,32,null);aa.layoutCtrlWithLRTB(b,0,0,null,null,0,32);v=new wb;v.setText(Na.get("clean","\u6e05\u7a7a"));v.addActionListener(function(D){f(null)});v.getJqUi().appendTo(b);aa.layoutCtrlWithLRTB(v.getJqUi(),6,null,40,null,5,22);v=new wb;"en"==va.getUrlParamValue("language")?v.setText("Now"):v.setText(Na.get("this","\u672c")+H);v.addActionListener(function(D){f(na((new Date).getTime()+
""))});v.getJqUi().appendTo(b);aa.layoutCtrlCenterAlign(v.getJqUi(),40);aa.layoutCtrlMiddleAlign(v.getJqUi(),22);var p=new wb;p.setText(Na.get("ok","\u786e\u5b9a"));p.getJqUi().appendTo(b);aa.layoutCtrlWithLRTB(p.getJqUi(),null,6,40,null,5,22);this.setOkBtnListener=function(D){p.addActionListener(function(Z){D(pa)})};this.getPanel=function(){return pa}}t.call(this,g,fa);var T=this,h=this.protectedMethod,l,da;this.createUI=function(H){l||E();h.createUiWithLabel(H,l.getJqUi())};this.createUIWithoutLabel=
function(H){E();h.createUiWithLabel2(H,l.getJqUi())};this.setEnabled=function(H){l&&l.setEnabled(H)};var E=function(){l=new tb;g.isReadOnly()&&l.setEnabled(!1);l.setIconName("calendar");g.getDefaultValue();var H=l,pa=H.setSelectedModel,v;(v=g.getDefaultValue())&&0<v.length?(v=v[0].getValue(),v=na(v)):v="";pa.call(H,v);l.setCustomPainter(d);l.setDropdownCreator(k());l.addSelectionListener(T.fireSelectedValueChanged)};this.setSuppliedValue=function(H){};this.setSelectedValue=function(H){l||E();H&&0<
H.length&&(H=H[0],H=H.getValue(),l.setSelectedModel(na(H)))};this.protectedGetFormatString=function(){var H=g.getPattern();return ReportParamDescription.Y_M_PATTERN===H?ReportParamDescription.Y_M_PATTERN:ReportParamDescription.Y_Q_PATTERN===H?ReportParamDescription.Y_Q_PATTERN:ReportParamDescription.Y_PATTERN===H?ReportParamDescription.Y_PATTERN:ReportParamDescription.Y_M_D_PATTERN};var na=function(H){if(H&&"string"==typeof H){var pa=new wa;pa.setFormatString(T.protectedGetFormatString());return 0>
H.indexOf("-")?pa.format(Number(H)):pa.format(H)}return""},d=function(H,pa){pa.text(H);da=H};this.getSelectedValue=function(){var H=g.getPattern(),pa=new ValueTextModel;if(da&&4<=da.length){var v=da.substring(0,4);if(ReportParamDescription.Y_M_PATTERN===H)H=da.substring(5,7);else if(ReportParamDescription.Y_Q_PATTERN===H)H=da.substring(6),H=3*parseInt(H);else if(ReportParamDescription.Y_PATTERN===H)H=12;else throw Error(H+"type will be implemented");var b=parseInt(H);switch(b){case 1:case 3:case 5:case 7:case 8:case 10:case 12:10>
b&&(H="0"+b);H+="-31";break;case 4:case 6:case 9:case 11:10>b&&(H="0"+b);H+="-30";break;case 2:H="0"+b,H=0==parseInt(v)%4&&0!=parseInt(v)%400?H+"-29":H+"-28"}pa.setValue(v+"-"+H);pa.setText(pa.getValue())}return[pa]};var k=function(){var H=g.getPattern();if(ReportParamDescription.Y_M_PATTERN===H)return q;if(ReportParamDescription.Y_Q_PATTERN===H)return J;if(ReportParamDescription.Y_PATTERN===H)return a;throw Error(H+"type will be implemented");}};e.FilterDateAndTime=function(g,fa){var q=this;t.call(this,
g,fa);var J,a,R=this.protectedMethod;this.createUI=function(l){J||z();var da=J.getJqUi();R.createUiWithLabel(l,da)};var z=function(){J=new la;J.setSelectedNullable(!0);J.isSelectedNullable(!0);J.addModelChangedListener(q.fireSelectedValueChanged);g.isReadOnly()&&J.setEnabled(!1)};this.setSuppliedValue=function(l){};this.setSelectedValue=function(l){l&&0<l.length?(l=l[0],(l=l.getValue())&&"string"==typeof l&&T(l)):T("")};this.getSelectedValue=function(){var l=h(),da=new ValueTextModel;da.setValue(l);
da.setText(da.getValue());return[da]};var T=function(l){J||z();if(l){if(-1<l.indexOf("-")){var da=l.split(" ");if(2>da.length)return;l=da[1];var E=da[0].split("-"),na=l.split(":");if(3>E.length||3>na.length)return;l=parseInt(E[0]);da=parseInt(E[1]);E=parseInt(E[2]);var d=parseInt(na[0]),k=parseInt(na[1]);na=parseInt(na[2]);var H=new Date;H.setYear(l);H.setMonth(da-1);H.setDate(E);H.setHours(d);H.setMinutes(k);H.setSeconds(na)}else H=new Date(Number(l));J.setDateObject(H)}else J.setDateObject(null)},
h=function(){if(!J)return"";var l=J.getDateObject();if(!l)return"";a||(a=new wa,a.setFormatString("yyyy-MM-dd HH:mm:ss"));return a.format(l)}};e.FilterTime=function(g,fa){var q=this;t.call(this,g,fa);var J,a,R=this.protectedMethod;this.createUI=function(h){J||z();var l=J.getJqUi();R.createUiWithLabel(h,l)};this.setSuppliedValue=function(h){};this.setSelectedValue=function(h){h&&0<h.length?(h=h[0],(h=h.getValue())&&"string"==typeof h&&T(h)):T("")};this.getSelectedValue=function(){var h=new ValueTextModel,
l=h.setValue;if(!J||J.isSelectedNull())var da="";else a||(a=new wa,a.setFormatString("HH:mm:ss")),da=new Date,da.setHours(J.getHour()),da.setMinutes(J.getMinute()),da.setSeconds(J.getSecond()),da=a.format(da);l.call(h,da);h.setText(h.getValue());return[h]};var z=function(){J=new Za;J.setSelectedNullable(!0);J.setSelected(null);J.addSelectionListener(q.fireSelectedValueChanged);g.isReadOnly()&&J.setEnabled(!1)},T=function(h){J||z();if(h)if(-1<h.indexOf(":")){var l=h.split(":");if(!(3>l.length)){h=
parseInt(l[0]);var da=parseInt(l[1]);l=parseInt(l[2]);J.setSelected(h,da,l)}}else h=new Date(Number(h)),J.setSelected(h.getHours(),h.getMinutes(),h.getSeconds());else J.setSelected(null)}};e.FilterCheckBoxGroup=function(g,fa){var q=this;t.call(q,g,fa);var J=this.protectedMethod,a,R=[],z={},T,h;this.createUI=function(na){h=na;a||l();var d=[];a.getJqUi().css({overflow:"hidden"});d.push(a.getJqUi());for(var k=0,H=R.length;k<H;k++)d.push(R[k].getJqUi());J.createUiWithFieldset(na,d)};this.setSuppliedValue=
function(na){R=[];z={};if(na)for(var d=0,k=na.length;d<k;d++){var H=E(na[d]);H&&R.push(H)}};this.setSelectedValue=function(na){da();for(var d=0,k=R.length,H=0,pa=na.length;H<pa;H++)for(var v=na[H].getValue().split(";"),b=0;b<v.length;b++)for(var f=v[b],r=0;r<k;r++){var p=R[r];p.getUserObject().getValue()==f&&(d++,g.isReadOnly()&&p.getJqUi().addClass("rpt-filter-togglebutton-important-disabled"),p.setSelected(!0))}na=d==k;a||l();a.setSelected(na);na&&da();q.fireSelectedValueChanged()};this.getSelectedValue=
function(){for(var na=[],d=a?a.isSelected():!1,k=0,H=R.length;k<H;k++){var pa=R[k];if(d||pa.isSelected()){pa=pa.getUserObject();var v=new ValueTextModel;v.setValue(pa.getValue());v.setText(pa.getText());na.push(v)}}return na};this.setSuppliedValueDescription=function(na){T=na};this.resetSuppliedValue=function(na,d){var k=q.getParamDescription().getName();q.getContext().delaySuppliedValueRemoteGetter(k,T,function(H){var pa=[];if(H){H=H.entryList;for(var v=0;v<H.length;v++){var b=new ValueTextModel,
f=H[v];b.setText(f.text);b.setValue(f.value);pa.push(b)}}q.setSuppliedValue(pa);h&&(h.empty(),l(),q.createUI(h));q.setSelectedValue([]);q.fireSelectedValueChanged();na&&na(d)})};var l=function(){a=new Ba;g.isReadOnly()&&a.setEnabled(!1);a.setText(Na.get("noLimit","\u4e0d\u9650"));a.setTooltips(Na.get("noLimit","\u4e0d\u9650"));a.addActionListener(function(na,d){d?da():na.setSelected(!0);q.fireSelectedValueChanged()})},da=function(){for(var na=0,d=R.length;na<d;na++)R[na].setSelected(!1)},E=function(na){var d=
na.getValue();if(!z[d]){z[d]="1";d=na.getText();var k=new Ba;k.setUserObject(na);k.setText(""===d?Na.get("emptyText","\uff08\u7a7a\uff09"):d);k.setTooltips(""===d?Na.get("emptyText","\uff08\u7a7a\uff09"):d);k.getJqUi().css({"max-width":"230px","text-overflow":"ellipsis",overflow:"hidden","white-space":"nowrap"});g.isReadOnly()&&k.setEnabled(!1);k.addActionListener(function(H,pa){a&&(pa&&a.setSelected(!1),q.fireSelectedValueChanged())});return k}}};e.FilterLabel=function(g,fa){t.call(this,g,fa);var q=
this.protectedMethod,J=$(g.getDefaultValue()[0].getValue()).css({padding:"0 0.2em",fontSize:"12px",marginLeft:"0.2em",lineHeight:"1.7em",verticalAlign:"middle",color:"#666"});this.createUI=function(a){q.createUiWithLabel2(a,J)};this.setSuppliedValue=function(a){};this.setSelectedValue=function(a){var R;a&&0<a.length&&(R=a[0].getValue());J.attr("value",R)};this.getSelectedValue=function(){var a=J.attr("value"),R=new ValueTextModel;R.setValue(a);R.setText(a);return[R]}};e.FilterSwitch=function(g,fa){var q=
this;t.call(this,g,fa);var J=this.protectedMethod,a,R,z;this.createUI=function(h){a||T();var l=a.getJqUi();J.createUiWithLabel(h,l)};this.createUIWithoutLabel=function(h){T();var l=R?R.getText():"",da=z?z.getText():"";a.setText(l,da);l=a.getJqUi();J.createUiWithLabel2(h,l)};this.setEnabled=function(h){a&&a.setEnabled(h)};var T=function(){a=new P;g.isReadOnly()&&a.setEnabled(!1);a.addStateChangeListener(q.fireSelectedValueChanged)};this.setSuppliedValue=function(h){a||T();h?(R=h.getChecked(),z=h.getUnchecked()):
z=R=void 0;h=R?R.getText():"";var l=z?z.getText():"";a.setText(h,l)};this.setSelectedValue=function(h){var l;h&&0<h.length&&(l=h[0]);l&&(a||T(),h=z&&z.getValue()==l.getValue(),a.setOn(!h))};this.getSelectedValue=function(){a||T();var h=a.isOn()?R:z;if(h){var l=new ValueTextModel;l.setValue(h.getValue());l.setText(h.getText());return[l]}return[]}};e.AbstractFilterCtrl=t;var u,L,ba,la,Ba,Za,va,wa,Na,Va,xb,Sa,jb,kb,qb,Ka,tb,wb,ub,db,P,aa,ea,ta;(function(){var g=com.kingdee.bos.qing.ui.component;u=g.TextField;
L=g.Spinner;Ba=g.ToggleButton;wb=g.WorkButton;ub=g.List;db=g.HelpIcon;g=com.kingdee.bos.qing;va=g.Seer;g=com.kingdee.bos.qing.common;wa=g.DateFormater;aa=g.DomUtil;ea=g.TextMeasurer;g=com.kingdee.bos.qing.framework.common;Na=g.MultilanguageManager.createPackageAccessor(e);ta=g.GlobalFont;g=com.kingdee.bos.qing.ui.component;Va=g.Label;xb=g.DateOfYearMonthPanel;Sa=g.DateOfYearQuarterPanel;jb=e.F7Dialog;kb=e.F7Selector;qb=e.ComboBox;tb=e.DropdownSelector;Ka=e.ChooseItemPane;ba=e.DateSelector;la=e.DateTimeSelector;
Za=e.TimeSelector;P=e.SwitchButton})()})();function ReportFilter(t,e,u,L){var ba=[],la=new FilterContext(this,e,t),Ba=null,Za=new KEXTParamsAssociateModel,va,wa,Na,Va,xb,Sa=!1,jb=com.kingdee.bos.qing.framework.common.MultilanguageManager.createPackageAccessor(com.kingdee.bos.extreport.runtime.filter),kb=function(P){var aa=new ReportParamDescription;aa.setName(P.name);aa.setText(P.text);aa.setDataType(P.dataType);aa.setState(P.state);aa.setReadOnly("ReadOnly"==P.state);aa.setCtrlType(P.ctrlType);aa.setRequired(1==P.required);aa.setMultiSelectable(1==
P.multiSelectable);aa.setIsTree(P.isTree);aa.setTreeExpandLevel(P.treeExpandLevel);aa.setMaxRestrictNumber(P.maxRestrictNumber);aa.setEditable(1==P.editable);aa.setPattern(P.pattern);aa.setDescription(P.description);var ea=Ka(P.suppliedValue);aa.setSuppliedValue(ea);ea=tb(P.defaultValue,aa.getDataType());aa.setDefaultValue(ea);var ta=P.suppliedValueDescription;if(ta){P=ta.reportId;ea=ta.dataSourceType;var g=ta.persistenceModel,fa=ta.valueFieldName;ta=ta.textFieldName;if(g&&fa&&ta){var q=new ListDelaySuppliedValueDescription;
q.setDatasetPersistenceModel(g);q.setValueField(fa);q.setTextField(ta);q.setDataSourceType(ea);q.setReportId(P);P=q}else P=null}else P=null;aa.setSuppliedValueDescription(P);return aa},qb=function(P){for(var aa=[],ea=0;ea<P.length;ea++){var ta=P[ea],g=new ValueTextModel;g.setText("");g.setValue("");ta.text&&!KReportUtil.isNullString(ta.text)&&g.setText(ta.text);ta.value&&!KReportUtil.isNullString(ta.value)&&g.setValue(ta.value);aa.push(g)}return aa},Ka=function(P){if(!P)return null;var aa=P.min,ea=
P.max,ta=P.step;if(ta)return P=new NumberStepperSuppliedValue,P.setMin(aa),P.setMax(ea),P.setStep(ta),P;ta=P.checked;aa=P.unChecked;return ta&&aa?(ea=new ValueTextModel,ea.setValue(ta.value),ea.setText(ta.text),ta=new ValueTextModel,ta.setValue(aa.value),ta.setText(aa.text),P=new SwitchButtonSuppliedValue,P.setChecked(ea),P.setUnchecked(ta),P):P&&!KReportUtil.isNullString(P)?qb(P):null},tb=function(P,aa){if(null==P||KReportUtil.isNullString(P))return null;if(P instanceof Array)return qb(P);var ea=
P.selectedValue,ta=P.valueField,g=P.textField;if(ea&&ta&&g){aa=[];for(P=0;P<ea.length;P++){for(var fa=ea[P].columnDatas,q=new ValueTextModel,J=0;J<fa.length;J++){var a=fa[J];ta==a.value&&q.setValue(a.text);g==a.value&&q.setText(a.text)}aa.push(q)}return aa}ea=P.value;ta=P.text;if(void 0!=ea&&void 0!=ta)return aa=new ValueTextModel,KReportUtil.isNullString(ea)&&(ea=ta=""),aa.setValue(ea),aa.setText(ta),[aa];if(ea=P.value)return g=new Date,g.setTime(ea),P=g.getFullYear(),fa=g.getMonth()+1,q=g.getDate(),
ea=g.getHours(),ta=g.getMinutes(),g=g.getSeconds(),P=P+"-"+fa+"-"+q,ea=ea+":"+ta+":"+g,aa="Date"==aa?P:"Time"==aa?ea:P+" "+ea,ea=new ValueTextModel,ea.setValue(aa),ea.setText(aa),[ea];ea=P instanceof Object?null:P.toString();aa=new ValueTextModel;aa.setValue(ea);aa.setText(ea);return[aa]},wb=function(P,aa){wa&&(wa.children().detach(),wa.append(aa?aa:Na),wa.trigger("pagecreate"))};this.forRpcReduced=function(P,aa,ea){va=[];Ba={};P={};if(u)for(var ta=0;ta<u.length;ta++){var g=u[ta],fa=new ParamValue;
fa.fromJsonObject(g);P[fa.getParamName()]=fa.getValues()}for(ta=0;ta<aa.length;ta++){var q=aa[ta];g=kb(q);"Hidden"!=g.getState()&&(xb=!0);va.push(g.getName());fa=(new FilterCtrlFactory).create(g,la,L);Ba[g.getName()]=fa;fa.setSuppliedValue(g.getSuppliedValue());fa.setSuppliedValueDescription(g.getSuppliedValueDescription());"numberstepper"==(g.getCtrlType()?g.getCtrlType().toLowerCase():null)&&fa.setDefaultValue(q.defaultValue);q=P[g.getName()];fa instanceof com.kingdee.bos.extreport.runtime.filter.FilterLabel||
(q?fa.setSelectedValue(q):fa.setSelectedValue(g.getDefaultValue()),fa.setSelectedValueChangedListener(ub))}if(ea)for(var J in ea)for(aa=ea[J],ta=0;ta<aa.length;ta++)Za.addOneAffectAnother(J,aa[ta]);ea=[];ba=[];for(var a in Ba){aa=Ba[a].getParamDescription();J=new ParamValue;J.setParamName(a);J.setDataType(aa.getDataType());if(aa=aa.getDefaultValue())for(P=0;P<aa.length;P++)J.addValue(aa[P]);ea.push(J.toJsonObject());ba.push(J)}return ea};this.isDispalay=function(){return xb};this.render=function(P,
aa){wa=$(P);wa.attr("data-role","page");aa=wa;P=$("<div>");P.appendTo(aa);P.css("position","relative");aa=$("<div>");aa.attr("data-role","listview");aa.appendTo(P);aa.css({fontSize:"13px"});for(var ea in Ba){var ta=Ba[ea],g=ta instanceof com.kingdee.bos.extreport.runtime.filter.FilterCheckBoxGroup?$("<div>").css({position:"relative",display:"inline-block",width:"100%","min-height":"24px"}):ta instanceof com.kingdee.bos.extreport.runtime.filter.FilterLabel?$("<div>").css({position:"relative",display:"inline-block",
width:"100%"}):$("<div>").css({position:"relative",display:"inline-block",margin:"8px 70px 8px 0"});g.attr("data-role","fieldcontain");g.appendTo(aa);ta.createUI(g)}Na=P;ea=$(window).height()-270;100>=ea&&(ea=100);wa.css({padding:"0px 10px 0px 10px",maxHeight:ea,overflowY:"auto",position:"relative"});wb()};this.execute=function(P,aa){var ea=!1,ta="[";ba=[];var g={};for(z in Ba){var fa=Ba[z];if(!(fa instanceof com.kingdee.bos.extreport.runtime.filter.FilterLabel)){var q=new ParamValue;q.setParamName(z);
q.setDataType(fa.getParamDescription().getDataType());var J=fa.getSelectedValue();!ea&&fa.getParamDescription().isRequired()&&(ea=!J||0==J.length);if(J){fa.getParamDescription().isRequired()&&(ea=!0);for(var a=0;a<J.length;a++){var R=J[a];q.addValue(R);fa.getParamDescription().isRequired()&&R.getValue()&&(ea=!1)}}if(ea)return{success:!1,errMsg:fa.getParamDescription().getText()+jb.get("paramValEmptyError"," \u53c2\u6570\u503c\u4e0d\u80fd\u4e3a\u7a7a\u3002")};1<ta.length&&(ta+=",",ta+="\r\n");ta="TextField"==
fa.getParamDescription().getCtrlType()?ta+q.toJsonString(/,|;|\uff0c|\uff1b|\s+/g):ta+q.toJsonString();ba.push(q)}}var z={};z.pageId=t;z.schemeName=P;z.isDefaultChange=aa;z.flag="1";z.paramValues=ta+"]";return ea?{success:!1,errMsg:jb.get("incompleteParamError","\u53c2\u6570\u503c\u4e0d\u5b8c\u6574\u3002")}:{success:!0,data:z,selectAll:JSON.stringify(g)}};this.getCtrl=function(P){return Ba[P]};this.updateParamByName=function(P,aa){P=Ba[P];for(var ea=aa.length,ta=[],g=0;g<ea;g++){var fa=aa[g],q=new ValueTextModel;
q.setValue(fa);q.setText(fa);ta.push(q)}P.setSelectedValue(ta)};this.getDataSetParamValues=function(){var P=!1,aa="[";ba=[];for(var ea in Ba){var ta=Ba[ea];if(!(ta instanceof com.kingdee.bos.extreport.runtime.filter.FilterLabel)){var g=new ParamValue;g.setParamName(ea);g.setDataType(ta.getParamDescription().getDataType());var fa=ta.getSelectedValue();!P&&ta.getParamDescription().isRequired()&&(P=!fa||0==fa.length);if(fa){ta.getParamDescription().isRequired()&&(P=!0);for(var q=0;q<fa.length;q++){var J=
fa[q];g.addValue(J);ta.getParamDescription().isRequired()&&J.getValue()&&(P=!1)}}if(P)return{success:!1,errMsg:ta.getParamDescription().getText()+jb.get("paramValEmptyError"," \u53c2\u6570\u503c\u4e0d\u80fd\u4e3a\u7a7a\u3002")};1<aa.length&&(aa+=",",aa+="\r\n");aa="TextField"==ta.getParamDescription().getCtrlType()?aa+g.toJsonString(/,|;|\uff0c|\uff1b|\s+/g):aa+g.toJsonString();ba.push(g)}}ea={};ea.paramValues=aa+"]";return P?{success:!1,errMsg:jb.get("incompleteParamError","\u53c2\u6570\u503c\u4e0d\u5b8c\u6574\u3002")}:
{success:!0,data:ea}};this.setSchemeParams=function(P,aa,ea){for(var ta in Ba){for(var g="",fa="",q=Ba[ta].getSelectedValue(),J=0;J<q.length;J++){var a=q[J];g+=a.getValue();fa+=a.getText();J!=q.length-1&&(g+="0xx1xx",fa+="0xx1xx")}P.push([g]);aa.push([fa]);ea.push([ta])}};this.updateFilterByScheme=function(P,aa){for(var ea=function(da,E,na){return function(){da.setSelectedValue(E);db(da,na,aa)}},ta=function(){for(var da=0,E={};;){var na=P.match(new RegExp("N"+da+"=(.*?)\u0001"));if(!na||!na[1])break;
na=na[1];var d=P.match(new RegExp("V"+da+"=(.*?)\u0001"))[1],k=P.match(new RegExp("C"+da+"=(.*?)\u0001"))[1];E[na]=[d,k];da++}for(var H in Ba){if(!E[H])break;var pa=E[H][0];k=E[H][1];da=Ba[H];na=da.getParamDescription().getCtrlType();d="";na&&(d=na.toLowerCase());na=[];if("combobox"==d||"f7"==d||"checkboxgroup"==d){pa=pa.split("0xx1xx");k=k.split("0xx1xx");for(var v=0,b=pa.length;v<b;v++)d=new ValueTextModel,d.setText(k[v]),d.setValue(pa[v]),na.push(d)}else"datetime"==d?pa&&(d=new ValueTextModel,
d.setText(k),d.setValue(pa),na.push(d)):("textfield"==d&&(k=k.replaceAll("0xx1xx",";"),pa=pa.replaceAll("0xx1xx",";")),d=new ValueTextModel,d.setText(k),d.setValue(pa),na.push(d));da.setSelectedValue(na)}wb()},g=0,fa={};;){var q=P.match(new RegExp("N"+g+"=(.*?)\u0001"));if(!q||!q[1])break;q=q[1];var J=P.match(new RegExp("V"+g+"=(.*?)\u0001"))[1],a=P.match(new RegExp("C"+g+"=(.*?)\u0001"))[1];fa[q]=[J,a];g++}for(var R in Ba){if(!fa[R])break;var z=fa[R][0];q=fa[R][1];J=Ba[R];a=J.getParamDescription().getCtrlType();
var T="";a&&(T=a.toLowerCase());a=[];if("combobox"==T||"f7"==T||"checkboxgroup"==T){z=z.split("0xx1xx");var h=q.split("0xx1xx");q="";T=0;for(var l=h.length;T<l;T++)q+=h[T]+";";q=q.substring(0,q.length-1);T=0;for(l=z.length;T<l;T++)h=new ValueTextModel,h.setText(q),h.setValue(z[T]),a.push(h)}else"datetime"==T?z&&(h=new ValueTextModel,h.setText(q),h.setValue(z),a.push(h)):("textfield"==T&&(q=q.replaceAll("0xx1xx",";"),z=z.replaceAll("0xx1xx",";")),h=new ValueTextModel,h.setText(q),h.setValue(z),a.push(h));
ta=ea(J,a,ta);g++}ta()};this.getCurrentValueCaption=function(){for(var P="",aa=0;aa<ba.length;aa++){var ea=ba[aa],ta=ea.getParamName();ta=Ba[ta].getParamDescription().getCaption();0<aa&&(P+="    ");P+=ta;P+=":";ta=ea.getValuesCount();if(0==ta)P+="(\u65e0)";else for(var g=0;g<ta;g++){0<g&&(P+=";");var fa=ea.getValue(g);P+=fa.getText()}}return P};this.close=function(){};this.isEditable=function(P){return Ba[P].getParamDescription().isEditable()};this.getSuppliedValue=function(P){return Ba[P].getParamDescription().getSuppliedValue()};
this.getAssociatedFiltersJsonValue=function(P){var aa="[",ea;for(ea in Ba)if(ea!=P&&Za.isOneAffectedByAnother(P,ea)){1<aa.length&&(aa+=",");var ta=Ba[ea];aa+='{"paramName":"';aa+=ea;aa+='","paramValues":[';if(ta=ta.getSelectedValue())for(var g=0;g<ta.length;g++){0<g&&(aa+=",");var fa=ta[g];fa.getValue()?(aa+='"',aa+=fa.getValue(),aa+='"'):aa+="null"}aa+="]}"}return aa+"]"};this.setSchemeList=function(P){Va=P};this.getSchemeList=function(){return Va};var ub=function(P){Sa?Sa=!1:db(P)},db=function(P,
aa,ea){var ta=P.getParamDescription().getName();if(Za&&Za.isOneAffectOthers(ta)){if(aa){var g={};var fa=function(J){Sa=g[J]=!0;for(var a in g)if(!g[a]){Sa=!1;break}Sa&&(aa(),ea&&ea())}}for(var q=0;q<va.length;q++)P=va[q],Za.isOneAffectAnother(ta,P)&&(P=Ba[P],aa?(g[q]=!1,P.resetSuppliedValue(fa,q)):P.resetSuppliedValue())}else aa&&aa()};this.setArrParamsName=function(P){va=P};this.pushArrParamsName=function(P){va.push(P)};this.setMapCtrls=function(P){Ba=P};this.getMapCtrls=function(){return Ba};this.pushMapCtrls=
function(P,aa){Ba[P]=aa};this.setDisplay=function(P){xb=P};this.addOneAffectAnother=function(P,aa){Za.addOneAffectAnother(P,aa)};this.protectedMethod={decodeParamDesc:kb,ctrlSelectedValueChanged:ub,updateUI:wb}}
function FilterContext(t,e,u){var L=this;this.objReportFilter=t;this.reportDiv=e.reportDiv;this.oGlobal=e.oGlobal;this.strReportId=u;this.constructParam=function(ba,la){var Ba=la.getDatasetPersistenceModel(),Za=la.getValueField(),va=la.getTextField(),wa=la.getDataSourceType();la=la.getReportId();Ba=(new StringUtil).toJsonEscapeString(Ba);var Na=this.objReportFilter.getAssociatedFiltersJsonValue(ba);return{datasetXml:Ba,paramValues:Na,textName:va,valueName:Za,dataSourceType:wa,reportId:la,paramName:ba,
pageId:this.strReportId}};this.delaySuppliedValueRemoteGetter=function(ba,la,Ba){this.oGlobal.createFacade(function(Za){Ba(Za)},function(Za,va){if(8099002===Za||8099007===Za||8099008===Za||8077016===Za||8099101===Za||8099010<=Za&&8099014>=Za){Za=com.kingdee.bos.qing.ui.component.MessageDialog;var wa=new Za;wa.setOptionType(Za.OPTION_OK);wa.setMessage(va);wa.showDialog();return!0}return!1}).getDelaySuppliedValue(L.constructParam(ba,la))}}
function FilterCtrlFactory(){this.create=function(t,e,u){var L=com.kingdee.bos.extreport.runtime.filter;if(!(t instanceof ReportParamDescription))throw Error("Illegal argument.");var ba=t.getCtrlType()?t.getCtrlType().toLowerCase():null;if(u)switch(ba){case "checkbox":return new L.FilterSwitch(t,e);case "combobox":return new L.FilterComboBoxMobile(t,e);case "f7":return new L.FilterForwardSelectorMobile(t,e);case "numberstepper":return new L.FilterNumberInputMobile(t,e);case "checkboxgroup":return new L.FilterCheckBoxGroup(t,
e);case "datetime":if("Date"==t.getDataType())return e=new L.DateTimeSliderSelector(t,e),u=t.getPattern(),ReportParamDescription.Y_M_PATTERN===u?e.setSelectorType(L.DateTimeSliderSelector.DATE_YM):ReportParamDescription.Y_Q_PATTERN===u?e.setSelectorType(L.DateTimeSliderSelector.DATE_YQ):ReportParamDescription.Y_PATTERN===u?e.setSelectorType(L.DateTimeSliderSelector.DATE_Y):e.setSelectorType(L.DateTimeSliderSelector.DATE),e;if("DateTime"==t.getDataType())return e=new L.DateTimeSliderSelector(t,e),
e.setSelectorType(L.DateTimeSliderSelector.DATE_TIME),e;if("Time"==t.getDataType())return e=new L.DateTimeSliderSelector(t,e),e.setSelectorType(L.DateTimeSliderSelector.TIME),e;throw Error("Illegal datetime!");case "label":return new L.FilterLabel(t,e);default:return new L.FilterTextField(t,e)}else switch(ba){case "checkbox":return new L.FilterSwitch(t,e);case "combobox":return new L.FilterComboBoxSearch(t,e);case "f7":return new L.FilterForwardSelector(t,e);case "numberstepper":return new L.FilterNumberInput(t,
e);case "checkboxgroup":return new L.FilterCheckBoxGroup(t,e);case "datetime":if("Date"==t.getDataType())return u=t.getPattern(),ReportParamDescription.Y_M_PATTERN===u||ReportParamDescription.Y_Q_PATTERN===u||ReportParamDescription.Y_PATTERN===u?new L.FilterSimilarDate(t,e):new L.FilterDate(t,e);if("DateTime"==t.getDataType())return new L.FilterDateAndTime(t,e);if("Time"==t.getDataType())return new L.FilterTime(t,e);throw Error("Illegal datetime!");case "label":return new L.FilterLabel(t,e);default:return new L.FilterTextField(t,
e)}}}ReportFilter.CONSTANTS={getDelaySuppliedValue:"getDelaySuppliedValue"};(function(){function t(x,c,U){r.call(this);var S=this,B=this.protectedMethod,Q,ma,oa;(function(){B.setTitle(x);S.setSize(500,540);B.setSelectable(!1);B.setContentPaneCreator(function(){Q||(Q=new e(c,U));return Q.getJqUi()});B.setClosingChecker2(function(Pa){ua(Pa)},function(Pa){Pa(!0)},!0);B.setClosingAction(function(Pa){})})();this.setSelectedModel=function(Pa){oa=Pa;Q&&Q.setSelected(oa)};this.setSelectedCallback=function(Pa){ma=Pa};var ua=function(Pa){var ha=Q.checkUIInput(function(Ya){oa=Q.getModelFromUI();
ma&&ma(oa);Pa(!0)});ha&&(B.getMessageCurtain().showPrompt(ha,2E3),Pa(!1))}}function e(x,c){var U=this,S,B=x.oGlobal,Q,ma,oa,ua,Pa,ha,Ya,eb,lb,A,n;this.getJqUi=function(){S||(F(),M());return S};this.setSelected=function(C){Q=C;S&&M()};this.getSelectedModel=function(){if(ua.isChecked())Q=eb.getSelected();else if(Pa.isChecked())Q=n.getSelectedModel();else if(ma&&ma.isChecked())Q=new L($a,E.get("firstData","\u7b2c\u4e00\u6761\u6570\u636e"));else if(c instanceof ub){var C=ha.getSelectedValue();Q=(C=0<
C.length?C[0]:null)?new L(C.getValue(),C.getText()):null}else c instanceof P?(C=ha.getSelectedValue(),1==C.length?(C=0<C.length?C[0]:null,Q=new L(C.getValue(),C.getText())):Q=1<C.length?new ba(ha.getSelectedValue()):null):Q=new L(ha.getText(),ha.getText());return Q};this.checkUIInput=function(C){if(Pa.isChecked()){if(!n.getSelectedModel())return E.get("selectVar","\u8bf7\u9009\u62e9\u4e00\u4e2a\u53d8\u91cf\u3002")}else if(oa.isChecked()&&c instanceof wb){var I=ha.getText();if(null==I||0==$.trim(I).length)return E.get("inputConst",
"\u8bf7\u8f93\u5165\u4e00\u4e2a\u5e38\u91cf\u3002")}C(!0)};this.getModelFromUI=function(){return U.getSelectedModel()};var M=function(){if(Q){var C=hb(Q)?"macro_var":Q.getVariableType();C==Xa?(ua.setChecked(!0),eb.setSelected(Q)):"macro_var"==C?(Pa.setChecked(!0),n&&n.setSelected(Q)):(C=Q.getValue(),ma&&$a==C?ma.setChecked(!0):(oa.setChecked(!1),oa.setChecked(!0),c instanceof ub?(C=new ValueTextModel,C.setValue(Q.getValue()),C.setText(Q.getText()),ha.setSelectedValue([C])):c instanceof P?Q instanceof
L?(C=new ValueTextTreeNodeModel,C.setValue(Q.getValue()),C.setText(Q.getText()),ha.setSelectedValue([C])):Q instanceof ba&&ha.setSelectedValue(Q.getValue()):ha.setText(C)))}},F=function(){S=$("<div>");var C=0,I=new D;if(c instanceof ub){ma=new p;ma.setText(E.get("firstData","\u7b2c\u4e00\u6761\u6570\u636e"));var Y=ma.getJqUi();Y.appendTo(S);l.layoutCtrl(Y,0,C,200,23);I.addElement(ma);ma.addCheckedListener(function(){ha&&ha.setEnabled(!1);eb&&eb.setEnabled(!1);n&&n.setEnabled(!1)});C+=43}oa=new p;
oa.setText(E.get("constant","\u5e38\u91cf"));Y=oa.getJqUi();Y.appendTo(S);l.layoutCtrl(Y,0,C,200,23);I.addElement(oa);oa.addCheckedListener(function(){eb&&eb.setEnabled(!1);n&&n.setEnabled(!1);ha&&ha.setEnabled(!0)});c instanceof P?(ha=c.getFilterForwardSelector(),Ya=$("<div>"),Ya.addClass("sa-ctrl-common-singlelineborder"),ha.createUIWithoutLabel(Ya)):c instanceof ub?(ha=c.getFilterCombox(),Ya=$("<div>"),ha.createUIWithoutLabel(Ya)):(ha=new K,ha.setPlaceholder(E.get("constantPlaceholder","\u53ef\u4ee5\u81ea\u5b9a\u4e49\u5e38\u91cf\u503c")),
Ya=ha.getJqUi());Ya.appendTo(S);l.layoutCtrl(Ya,0,C+=33,200,23);ua=new p;ua.setChecked(!1);ua.setText(E.get("systemVar","\u7cfb\u7edf\u53d8\u91cf"));Y=ua.getJqUi();Y.appendTo(S);l.layoutCtrl(Y,0,C+=43,200,23);I.addElement(ua);ua.addCheckedListener(function(){ha&&ha.setEnabled(!1);n&&n.setEnabled(!1);eb&&eb.setEnabled(!0)});eb=new Z;eb.setItemModels(la.SUPPORTED_VAR_TYPE);eb.setSelected(la.SUPPORTED_VAR_TYPE[0]);lb=eb.getJqUi();l.layoutCtrl(lb,0,C+=33,200,23);lb.appendTo(S);Pa=new p;Pa.setText(E.get("macroVar",
"\u5b8f\u53d8\u91cf"));Y=Pa.getJqUi();Y.appendTo(S);l.layoutCtrl(Y,0,C+=43,200,23);I.addElement(Pa);Pa.addCheckedListener(function(){ha&&ha.setEnabled(!1);eb&&eb.setEnabled(!1);n&&n.setEnabled(!0)});n||(u(B),n=new ab,hb(Q)&&n.setSelected(Q),A=n.getJqUi(),I=ma?195:230,l.layoutCtrl(A,0,C+=33,465,I),A.appendTo(S),A&&A.show());ma&&ma.setChecked(!1);oa.setChecked(!0);eb.setEnabled(!1);Pa.setChecked(!1)}}function u(x){if(!ab){var c=com.kingdee.bos.qing.data.MacroVariateSelectorRegister;ab=com.kingdee.bos.qing.macro.MacroVarSelector;
c.registerConstructor(com.kingdee.bos.qing.macro.MacroVarSelector);ab.registerRemoteImpl(x.getMacroManageRemoteImpl());com.kingdee.bos.qing.dbmanage.BizMetaSourceCreatorRegister.setCreator(new function(){this.createBizMetaSource=function(U){var S=com.kingdee.bos.qing.scene.ERPCloudDBCenterSource,B=com.kingdee.bos.qing.scene.SuperQuerySource,Q=null;U.bizMetaType==S.DBCENTER?(Q=new S,Q.fromJsonObject(U)):U.bizMetaType==B.ENTITY&&(Q=new B,Q.fromJsonObject(U));return Q}})}}function L(x,c){this.getValue=
function(){return x};this.getText=function(){return c};this.getVariableType=function(){return ob}}function ba(x){var c;this.getValue=function(){return x};this.getText=function(){c||(c=ka(x));return c};this.getVariableType=function(){return"const_arr_var"}}function la(x,c,U,S){this.toString=function(){return E.get(U,S)};this.getValue=function(){return x};this.getExtRptTypeId=function(){return c};this.getVariableType=function(){return Xa}}function Ba(){var x=this,c,U,S;this.getVersion=function(){return"2"};
this.getDateGran=function(){return c};this.setDateGran=function(B){c=B};this.getDateType=function(){return U};this.setDateType=function(B){U=B};this.getValue=function(){return S};this.setValue=function(B){S=B};this.fromJsonObject=function(B){x.setDateGran(B.dateGran);x.setDateType(B.dateType);x.setValue(B.value)};this.toJsonObject=function(){var B={version:"2"};B.dateGran=c;B.dateType=U;B.value=S;return B}}function Za(x,c,U){this.toString=function(){return E.get(c,U)};this.getValue=function(){return x}}
function va(x,c,U){this.toString=function(){return E.get(c,U)};this.getValue=function(){return x}}function wa(x,c,U){this.toString=function(){return E.get(c,U)};this.getValue=function(){return x}}function Na(x,c,U){this.toString=function(){return E.get(c,U)};this.getValue=function(){return x}}function Va(x,c,U){r.call(this);var S=this,B=this.protectedMethod,Q,ma;(function(){B.setTitle(x);S.setSize(c.getWidth(),c.getHeight());B.setSelectable(!1);B.setContentPaneCreator(function(){return c.getJqUi()});
B.setClosingChecker2(function(ua){oa(ua)},function(ua){ua(!0)},!0);B.setClosingAction(function(ua){})})();this.setSelectedModel=function(ua){ma=ua;c&&c.setSelected(ma)};this.setSelectedCallback=function(ua){Q=ua};var oa=function(ua){var Pa=c.checkUIInput(function(ha){ma=c.getModelFromUI();Q&&Q(ma);ua(!0)});Pa&&(B.getMessageCurtain().showPrompt(Pa,2E3),ua(!1))}}function xb(x,c,U){Va.call(this,x,new Sa(c,U),c)}function Sa(x,c){var U=this,S,B,Q,ma,oa,ua,Pa,ha,Ya,eb,lb,A,n,M,F,C,I;var Y=new da;Y.setFormatString("yyyy-MM-dd");
this.getJqUi=function(){S||(ia(),Ja());return S};this.getWidth=function(){return 435};this.getHeight=function(){return 360};this.setSelected=function(O){B=O;S&&Ja()};this.getSelectedModel=function(){B=new ValueTextModel;var O,m=Q.getSelected().getValue(),qa=new Ba;qa.setDateGran(m);if(ma.isChecked()){qa.setDateType("PERM");if(ua)var ra=O=(O=ua.getDateObject())?Y.format(O):"";else if(m=oa.getSelectedValue()[0])O=m.getValue(),ra=m.getText();qa.setValue(O)}else ha.isChecked()?(qa.setDateType("EXPR"),
O=Ga.EXPRESSION+eb.getText(),qa.setValue(O),ra=O):Ya.isChecked()&&(qa.setDateType("RELATIVE"),O=n.getSelected().getValue(),m==Ga.Y_M_D&&"DAY"==O?(qa.setValue(lb.getSelected().getValue()+"!@#ORANGE#@!"+A.getValue()+"!@#ORANGE#@!"+O),ra=E.get("sysDate","\u670d\u52a1\u7aef\u7cfb\u7edf\u65e5\u671f")+lb.getSelected().toString()+A.getValue()+n.getSelected().toString()):(O=lb.getSelected().getValue()+"!@#ORANGE#@!"+A.getValue()+"!@#ORANGE#@!"+O,ra=E.get("sysDate","\u670d\u52a1\u7aef\u7cfb\u7edf\u65e5\u671f")+
lb.getSelected().toString()+A.getValue()+n.getSelected().toString(),m==Ga.Y_M_D&&(O=O+"!@#ORANGE#@!"+C.getSelected().getValue(),ra=ra+M.getText()+C.getSelected().toString()),qa.setValue(O)));B.setValue(JSON.stringify(qa.toJsonObject()));B.setText(ra);return B};this.checkUIInput=function(O){if(ha.isChecked()){var m=eb.getText();if(null==m||0==$.trim(m).length)return E.get("inputExpression","\u8bf7\u8f93\u5165\u8868\u8fbe\u5f0f\u3002")}O(!0)};this.getModelFromUI=function(){return U.getSelectedModel()};
var xa=function(O){if(-1<O.indexOf("-")){var m=O.split("-");if(3!=m.length)return null;O=parseInt(m[0]);var qa=parseInt(m[1]);m=parseInt(m[2]);if(isNaN(O)||isNaN(qa)||isNaN(m))return null;var ra=new Date;ra.setYear(O);ra.setMonth(qa-1);ra.setDate(m);return ra}ra=new Date(Number(O));return ra.getTime()?ra:null},Ja=function(){if(B){var O=B;B instanceof ValueTextModel&&(O=B.getValue());O=O?O:"";var m=Q.getSelected(),qa=m.getValue();if(O.startsWith(gb)){var ra=new Ba;ra.fromJsonObject(JSON.parse(O));
qa==ra.getDateGran()&&(O=ra.getDateType(),"PERM"==O?(ma.setChecked(!0),m=new ValueTextModel,ua?(m=ra.getValue(),ra=ReportParamDescription.Y_M_D_PATTERN,m&&"string"==typeof m?(O=new da,O.setFormatString(ra),ra=0>m.indexOf("-")?O.format(Number(m)):O.format(m)):ra="",(m=xa(ra))&&ua.setDateObject(m)):(ra=ra.getValue(),m.setValue(ra),m.setText(ra),m=[m],oa.setSelectedValue(m))):"EXPR"==O?(ha.setChecked(!0),m=ra.getValue(),m=m.substring(Ga.EXPRESSION.length,m.length),eb.setText(m)):(Ya.setChecked(!0),O=
ra.getValue().split("!@#ORANGE#@!"),lb.setSelected(va.getDateFrontBehindTypeByValue(O[0])),A.setValue(parseInt(O[1])),ra=y(ra.getDateGran()),n.setItemModels(ra),n.setSelected(wa.getDateOffsetUnitTypeByValue(O[2])),za(m.getValue(),O[2]),3<O.length&&C.setSelected(Na.getDateFirstLastDayTypeByValue(O[3]))))}else O.startsWith(Ga.SYS_DATE)?Ya.setChecked(!0):O.startsWith(Ga.DATE_ADD)?(Ya.setChecked(!0),ra=O.substring(Ga.DATE_ADD.length,O.length-1),lb.setSelected(va.SUPPORTED_VAR_TYPE[1]),ra=parseInt(ra),
A.setValue(100<ra?100:ra),n.setItemModels(wa.SUPPORTED_VAR_TYPE),n.setSelected(wa.SUPPORTED_VAR_TYPE[0]),za(m.getValue(),wa.SUPPORTED_VAR_TYPE[0].getValue())):O.startsWith(Ga.DATE_SUB)?(Ya.setChecked(!0),ra=O.substring(Ga.DATE_SUB.length,O.length-1),lb.setSelected(va.SUPPORTED_VAR_TYPE[0]),ra=parseInt(ra),A.setValue(100<ra?100:ra),n.setItemModels(wa.SUPPORTED_VAR_TYPE),n.setSelected(wa.SUPPORTED_VAR_TYPE[0]),za(m.getValue(),wa.SUPPORTED_VAR_TYPE[0].getValue())):O.startsWith(Ga.DAY_BEGIN)?(Ya.setChecked(!0),
n.setItemModels(wa.SUPPORTED_VAR_TYPE),n.setSelected(wa.SUPPORTED_VAR_TYPE[2]),za(m.getValue(),wa.SUPPORTED_VAR_TYPE[2].getValue()),C.setSelected(Na.SUPPORTED_VAR_TYPE[0])):O.startsWith(Ga.DAY_END)?(Ya.setChecked(!0),n.setItemModels(wa.SUPPORTED_VAR_TYPE),n.setSelected(wa.SUPPORTED_VAR_TYPE[2]),za(m.getValue(),wa.SUPPORTED_VAR_TYPE[2].getValue()),C.setSelected(Na.SUPPORTED_VAR_TYPE[1])):O.startsWith(Ga.EXPRESSION)?(ha.setChecked(!0),m=O.substring(Ga.EXPRESSION.length,O.length),eb.setText(m)):(ma.setChecked(!0),
x.pattern&&ReportParamDescription.Y_M_D_PATTERN!=x.pattern?(O instanceof Array?m=O:O instanceof ValueTextModel?m=[O]:(m=new ValueTextModel,m.setValue(O),m.setText(O),m=[m]),oa.setSelectedValue(m)):(m=xa(O))&&ua.setDateObject(m))}},ia=function(){S=$("<div>");var O=0;"en"==h.getUrlParamValue("language")&&(O=18);var m=20,qa=new W;qa.setText(E.get("dateType","\u65f6\u95f4\u7c92\u5ea6\uff1a"));qa=qa.getJqUi();qa.appendTo(S);l.layoutCtrl(qa,20,m,60+O,23);Q=new Z;Q.setEnabled(!1);Q.setItemModels(Za.SUPPORTED_VAR_TYPE);
qa=Q.getJqUi();l.layoutCtrl(qa,110,m,270,23);qa.appendTo(S);qa=new W;qa.setText(E.get("dateSetting","\u65e5\u671f\u8bbe\u7f6e\uff1a"));qa=qa.getJqUi();qa.appendTo(S);l.layoutCtrl(qa,20,m+=43,60+O,23);qa=new D;ma=new p;ma.setText(E.get("designatedDate","\u56fa\u5b9a\u65e5\u671f"));var ra=ma.getJqUi();ra.attr("title",E.get("designatedDate","\u56fa\u5b9a\u65e5\u671f"));ra.appendTo(S);l.layoutCtrl(ra,110,m,80,23);qa.addElement(ma);ma.addCheckedListener(function(){ua&&ua.setEnabled(!0);oa&&oa.setEnabled(!0);
eb.setEnabled(!1);lb.setEnabled(!1);A.setEnabled(!1);n.setEnabled(!1);C.setEnabled(!1)});x.pattern&&ReportParamDescription.Y_M_D_PATTERN!=x.pattern?(oa=c.getFilterSimilarDate(),Pa=$("<div>"),oa.createUIWithoutLabel(Pa)):(ua=new ca,ua.setSelectedNullable(!0),ua.addModelChangedListener(function(){}),Pa=ua.getJqUi());Pa.appendTo(S);l.layoutCtrl(Pa,190,m,190,23);Ya=new p;Ya.setText(E.get("dateRelative","\u76f8\u5bf9\u4e8e\u670d\u52a1\u7aef\u7684\u65e5\u671f"));ra=Ya.getJqUi();ra.attr("title",E.get("dateRelative",
"\u76f8\u5bf9\u4e8e\u670d\u52a1\u7aef\u7684\u65e5\u671f"));ra.appendTo(S);l.layoutCtrl(ra,110,m+=43,180,23);qa.addElement(Ya);Ya.addCheckedListener(function(){ua&&ua.setEnabled(!1);oa&&oa.setEnabled(!1);eb.setEnabled(!1);lb.setEnabled(!0);A.setEnabled(!0);n.setEnabled(!0);C.setEnabled(!0)});lb=new Z;lb.setItemModels(va.SUPPORTED_VAR_TYPE);lb.setSelected(va.SUPPORTED_VAR_TYPE[0]);ra=lb.getJqUi();l.layoutCtrl(ra,130,m+=43,50+O,23);ra.appendTo(S);A=new w;A.setValue(0);A.setConstraint(0,100,1);ra=A.getJqUi();
ra.appendTo(S);l.layoutCtrl(ra,180+O,m,50,23);n=new Z;ra=n.getJqUi();l.layoutCtrl(ra,230+O,m,50+O,23);ra.appendTo(S);M=new W;M.setText(E.get("de","\u7684"));F=M.getJqUi();F.css("text-align","center");F.appendTo(S);l.layoutCtrl(F,280+2*O,m,20,23);C=new Z;C.setItemModels(Na.SUPPORTED_VAR_TYPE);C.setSelected(Na.SUPPORTED_VAR_TYPE[0]);I=C.getJqUi();l.layoutCtrl(I,300+2*O,m,80,23);I.appendTo(S);ha=new p;ha.setChecked(!1);ha.setText(E.get("expression","\u8868\u8fbe\u5f0f\u5b9a\u4e49"));O=ha.getJqUi();O.attr("title",
E.get("expression","\u8868\u8fbe\u5f0f\u5b9a\u4e49"));O.appendTo(S);l.layoutCtrl(O,110,m+=43,90,23);qa.addElement(ha);ha.addCheckedListener(function(){ua&&ua.setEnabled(!1);oa&&oa.setEnabled(!1);eb.setEnabled(!0);lb.setEnabled(!1);A.setEnabled(!1);n.setEnabled(!1);C.setEnabled(!1)});eb=new K;eb.setPlaceholder(E.get("expressionPlaceholder","\u4f7f\u7528\u65e5\u671f\u51fd\u6570"));O=eb.getJqUi();(qa=O.find(".sa-ctrl-textfield-input"))&&qa.css({"text-overflow":"ellipsis",padding:"0px 20px"});O.appendTo(S);
l.layoutCtrl(O,200,m,180,23);G(O,x.pattern);m=wa.SUPPORTED_VAR_TYPE;n.addSelectedChangedListener(function(zb,ya,ja){za(Q.getSelected().getValue(),ja.getValue())});n.setItemModels(m);n.setSelected(m[0]);sa();za(Q.getSelected().getValue(),m[0].getValue());ma.setChecked(!0)},G=function(O,m){switch(m){case ReportParamDescription.Y_M_D_PATTERN:var qa=E.get("exprTips","\u53d6\u8868\u8fbe\u5f0f\u8fd4\u56de\u65e5\u671f\u503c\u7684#1\u90e8\u5206").replace("#1",E.get("yMD","\u5e74\u6708\u65e5"));break;case ReportParamDescription.Y_M_PATTERN:qa=
E.get("exprTips","\u53d6\u8868\u8fbe\u5f0f\u8fd4\u56de\u65e5\u671f\u503c\u7684#1\u90e8\u5206").replace("#1",E.get("yM","\u5e74\u6708"));break;case ReportParamDescription.Y_Q_PATTERN:qa=E.get("exprTips","\u53d6\u8868\u8fbe\u5f0f\u8fd4\u56de\u65e5\u671f\u503c\u7684#1\u90e8\u5206").replace("#1",E.get("yQ","\u5e74\u5b63"));break;case ReportParamDescription.Y_PATTERN:qa=E.get("exprTips","\u53d6\u8868\u8fbe\u5f0f\u8fd4\u56de\u65e5\u671f\u503c\u7684#1\u90e8\u5206").replace("#1",E.get("y","\u5e74"))}qa&&
(m=new Da,m.setIconType(Da.ICON_TYPE_QUESTION),m.setTipsText(qa),qa=m.getJqUi(),l.layoutCtrlWithLRTB(qa,null,3,16,2,null,16),qa.appendTo(O))},y=function(O){var m=wa.SUPPORTED_VAR_TYPE;switch(O){case Ga.Y_M:m=wa.SUPPORTED_VAR_TYPE.slice(2);break;case Ga.Y_S:m=wa.SUPPORTED_VAR_TYPE.slice(3);break;case Ga.Y:m=wa.SUPPORTED_VAR_TYPE.slice(4)}return m},sa=function(){var O=x.pattern,m=Za.SUPPORTED_VAR_TYPE[0];if(O)switch(O){case ReportParamDescription.Y_M_PATTERN:m=Za.SUPPORTED_VAR_TYPE[1];break;case ReportParamDescription.Y_Q_PATTERN:m=
Za.SUPPORTED_VAR_TYPE[2];break;case ReportParamDescription.Y_PATTERN:m=Za.SUPPORTED_VAR_TYPE[3]}Q.setSelected(m);O=m.getValue();m=y(O);n.setItemModels(m);n.setSelected(m[0]);za(O,m[0].getValue())},za=function(O,m){Ga.Y_M_D==O&&"DAY"!=m?(F&&F.css("display","block"),I&&I.css("display","block")):(F&&F.css("display","none"),I&&I.css("display","none"))}}function jb(x,c){Va.call(this,x,new kb(c),c)}function kb(x){var c,U,S,B,Q,ma,oa,ua,Pa,ha,Ya,eb,lb,A,n,M,F;var C=new da;C.setFormatString("yyyy-MM-dd HH:mm:ss");
var I=new da;I.setFormatString("HH:mm:ss");this.getJqUi=function(){c||(Y(),ia());return c};this.getWidth=function(){return 390};this.getHeight=function(){return 400};var Y=function(){c=$("<div>");var y=0,sa=0;"en"==h.getUrlParamValue("language")&&(y=18,sa=10);var za=20,O=new D;S=new p;S.setText(E.get("designatedDateTime","\u56fa\u5b9a\u65e5\u671f\u65f6\u95f4"));var m=S.getJqUi();m.attr("title",E.get("designatedDateTime","\u56fa\u5b9a\u65e5\u671f\u65f6\u95f4"));m.appendTo(c);l.layoutCtrl(m,20-sa,za,
100,23);O.addElement(S);S.addCheckedListener(function(){B.setEnabled(!0);ma.setEnabled(!1);ua.setEnabled(!1);Pa.setEnabled(!1);ha.setEnabled(!1);lb.setEnabled(!1);n.setEnabled(!1);M.setEnabled(!1);F.setEnabled(!1)});B=new Ta;B.setSelectedNullable(!0);B.isSelectedNullable(!0);B.addModelChangedListener(function(){});m=B.getJqUi();m.appendTo(c);l.layoutCtrl(m,120-sa,za,210+2*y,23);oa=new p;oa.setText(E.get("dateTimeRelative","\u76f8\u5bf9\u4e8e\u670d\u52a1\u7aef\u7684\u65e5\u671f\u65f6\u95f4"));m=oa.getJqUi();
m.attr("title",E.get("dateTimeRelative","\u76f8\u5bf9\u4e8e\u670d\u52a1\u7aef\u7684\u65e5\u671f\u65f6\u95f4"));m.appendTo(c);l.layoutCtrl(m,20-sa,za+=43,180,23);O.addElement(oa);oa.addCheckedListener(function(){n.setEnabled(!0);M.setEnabled(!0);B.setEnabled(!1);ma.setEnabled(!1);ua.setEnabled(!0);Pa.setEnabled(!0);ha.setEnabled(!0);lb.setEnabled(!0);M.isChecked()&&F.setEnabled(!0)});m=new W;m.setText(E.get("dateCol","\u65e5\u671f\uff1a"));m=m.getJqUi();m.attr("title",E.get("dateCol","\u65e5\u671f\uff1a"));
m.appendTo(c);l.layoutCtrl(m,40-sa,za+=43,40,23);ua=new Z;ua.setItemModels(va.SUPPORTED_VAR_TYPE);ua.setSelected(va.SUPPORTED_VAR_TYPE[0]);m=ua.getJqUi();l.layoutCtrl(m,80-sa,za,50+y,23);m.appendTo(c);Pa=new w;Pa.setValue(0);Pa.setConstraint(0,100,1);m=Pa.getJqUi();m.appendTo(c);l.layoutCtrl(m,130+y-sa,za,50,23);ha=new Z;ha.setItemModels(wa.SUPPORTED_VAR_TYPE);m=ha.getJqUi();l.layoutCtrl(m,180+y-sa,za,50+y,23);m.appendTo(c);Ya=new W;Ya.setText(E.get("de","\u7684"));eb=Ya.getJqUi();eb.css("text-align",
"center");eb.appendTo(c);l.layoutCtrl(eb,230+2*y-sa,za,20,23);lb=new Z;lb.setItemModels(Na.SUPPORTED_VAR_TYPE);lb.setSelected(Na.SUPPORTED_VAR_TYPE[0]);A=lb.getJqUi();l.layoutCtrl(A,250+2*y-sa,za,80,23);A.appendTo(c);m=new W;m.setText(E.get("timeCol","\u65f6\u95f4\uff1a"));m=m.getJqUi();m.attr("title",E.get("timeCol","\u65f6\u95f4\uff1a"));m.appendTo(c);l.layoutCtrl(m,40-sa,za+=43,40,23);m=new D;n=new p;n.setText(E.get("sysTime","\u670d\u52a1\u7aef\u5f53\u524d\u65f6\u95f4"));var qa=n.getJqUi();qa.attr("title",
E.get("sysTime","\u670d\u52a1\u7aef\u5f53\u524d\u65f6\u95f4"));qa.appendTo(c);l.layoutCtrl(qa,80-sa,za,120,23);m.addElement(n);n.addCheckedListener(function(){F.setEnabled(!1)});M=new p;M.setText(E.get("designatedTime","\u56fa\u5b9a\u65f6\u95f4"));qa=M.getJqUi();qa.attr("title",E.get("designatedTime","\u56fa\u5b9a\u65f6\u95f4"));qa.appendTo(c);l.layoutCtrl(qa,80-sa,za+=43,90,23);m.addElement(M);M.addCheckedListener(function(){F.setEnabled(!0)});F=new nb;F.addSelectionListener(function(){});m=new Date;
F.setSelected(m.getHours(),m.getMinutes(),m.getSeconds());m=F.getJqUi();m.appendTo(c);l.layoutCtrl(m,170-sa,za,100,23);Q=new p;Q.setChecked(!1);Q.setText(E.get("expression","\u8868\u8fbe\u5f0f\u5b9a\u4e49"));m=Q.getJqUi();m.attr("title",E.get("expression","\u8868\u8fbe\u5f0f\u5b9a\u4e49"));m.appendTo(c);l.layoutCtrl(m,20-sa,za+=43,90,23);O.addElement(Q);Q.addCheckedListener(function(){B.setEnabled(!1);ma.setEnabled(!0);ua.setEnabled(!1);Pa.setEnabled(!1);ha.setEnabled(!1);lb.setEnabled(!1);n.setEnabled(!1);
M.setEnabled(!1);F.setEnabled(!1)});ma=new K;ma.setPlaceholder(E.get("expressionPlaceholder","\u4f7f\u7528\u65e5\u671f\u51fd\u6570"));O=ma.getJqUi();(m=O.find(".sa-ctrl-textfield-input"))&&m.css({"text-overflow":"ellipsis",padding:"0px 20px"});O.appendTo(c);l.layoutCtrl(O,110-sa,za,220+2*y,23);ha.addSelectedChangedListener(function(ra,zb,ya){xa(ya.getValue())});ha.setSelected(wa.SUPPORTED_VAR_TYPE[0]);xa(wa.SUPPORTED_VAR_TYPE[0].getValue());n.setChecked(!0);S.setChecked(!0)},xa=function(y){"DAY"==
y?(eb&&eb.css("display","none"),A&&A.css("display","none")):(eb&&eb.css("display","block"),A&&A.css("display","block"))};this.setSelected=function(y){y&&(U=y,c&&ia())};this.checkUIInput=function(y){if(Q.isChecked()){var sa=ma.getText();if(null==sa||0==$.trim(sa).length)return E.get("inputExpression","\u8bf7\u8f93\u5165\u8868\u8fbe\u5f0f\u3002")}if(oa.isChecked()&&M.isChecked()&&F.isSelectedNull())return E.get("setTimeValue","\u8bf7\u8bbe\u7f6e\u56fa\u5b9a\u65f6\u95f4");y(!0)};this.getModelFromUI=
function(){U=new ValueTextModel;var y,sa=new Ba;sa.setDateGran(Ga.Y_M_D);if(S.isChecked()){sa.setDateType("PERM");var za=y=(y=B.getDateObject())?C.format(y):"";sa.setValue(y)}else if(Q.isChecked())sa.setDateType("EXPR"),y=Ga.EXPRESSION+ma.getText(),sa.setValue(y),za=y;else if(oa.isChecked()){sa.setDateType("RELATIVE");za=ha.getSelected().getValue();F&&!F.isSelectedNull()&&(y=new Date,y.setHours(F.getHour()),y.setMinutes(F.getMinute()),y.setSeconds(F.getSecond()),y=I.format(y));y=n.isChecked()?Ga.SYS_TIME:
y;var O=Ga.SYS_TIME==y?"|"+E.get("sysTime","\u670d\u52a1\u7aef\u5f53\u524d\u65f6\u95f4"):y?"|"+y:"";"DAY"==za?(sa.setValue(ua.getSelected().getValue()+"!@#ORANGE#@!"+Pa.getValue()+"!@#ORANGE#@!"+za+"!@#ORANGE#@!"+y),za=E.get("sysDate","\u670d\u52a1\u7aef\u7cfb\u7edf\u65e5\u671f")+ua.getSelected().toString()+Pa.getValue()+ha.getSelected().toString()+O):(sa.setValue(ua.getSelected().getValue()+"!@#ORANGE#@!"+Pa.getValue()+"!@#ORANGE#@!"+za+"!@#ORANGE#@!"+lb.getSelected().getValue()+"!@#ORANGE#@!"+y),
za=E.get("sysDate","\u670d\u52a1\u7aef\u7cfb\u7edf\u65e5\u671f")+ua.getSelected().toString()+Pa.getValue()+ha.getSelected().toString()+Ya.getText()+lb.getSelected().toString()+O)}U.setValue(JSON.stringify(sa.toJsonObject()));U.setText(za);return U};var Ja=function(y){if(-1<y.indexOf("-")){var sa=y.split(" ");if(2!=sa.length)return null;y=sa[1];var za=sa[0].split("-"),O=y.split(":");if(3!=za.length||3!=O.length)return null;y=parseInt(za[0]);sa=parseInt(za[1]);za=parseInt(za[2]);var m=parseInt(O[0]),
qa=parseInt(O[1]);O=parseInt(O[2]);if(isNaN(y)||isNaN(sa)||isNaN(za)||isNaN(m)||isNaN(qa)||isNaN(O))return null;var ra=new Date;ra.setYear(y);ra.setMonth(sa-1);ra.setDate(za);ra.setHours(m);ra.setMinutes(qa);ra.setSeconds(O);return ra}ra=new Date(Number(y));return ra.getTime()?ra:null},ia=function(){if(U){var y=U;U instanceof ValueTextModel&&(y=U.getValue());if(y.startsWith(gb)){var sa=new Ba;sa.fromJsonObject(JSON.parse(y));y=sa.getDateType();if("PERM"==y)S.setChecked(!0),S.setChecked(!0),(y=Ja(sa.getValue()))&&
B.setDateObject(y);else if("EXPR"==y)Q.setChecked(!0),y=sa.getValue(),y=y.substring(Ga.EXPRESSION.length,y.length),ma.setText(y);else if(oa.setChecked(!0),y=sa.getValue().split("!@#ORANGE#@!"),ua.setSelected(va.getDateFrontBehindTypeByValue(y[0])),Pa.setValue(parseInt(y[1])),ha.setItemModels(wa.SUPPORTED_VAR_TYPE),ha.setSelected(wa.getDateOffsetUnitTypeByValue(y[2])),xa(y[2]),"DAY"!=y[2]&&3<y.length?(lb.setSelected(Na.getDateFirstLastDayTypeByValue(y[3])),y=y[4]):y=y[3],Ga.SYS_TIME==y)n.setChecked(!0);
else if(M.setChecked(!0),-1<y.indexOf(":")){var za=y.split(":");3==za.length&&(y=parseInt(za[0]),sa=parseInt(za[1]),za=parseInt(za[2]),isNaN(y)||isNaN(sa)||isNaN(za)||F.setSelected(y,sa,za))}else y=new Date(Number(y)),y.getTime()&&F.setSelected(y.getHours(),y.getMinutes(),y.getSeconds())}else y.startsWith(Ga.SYS_DATE)?(oa.setChecked(!0),n.setChecked(!0)):y.startsWith(Ga.DATE_ADD)?(oa.setChecked(!0),sa=y.substring(Ga.DATE_ADD.length,y.length-1),ua.setSelected(va.SUPPORTED_VAR_TYPE[1]),sa=parseInt(sa),
Pa.setValue(100<sa?100:sa),ha.setItemModels(wa.SUPPORTED_VAR_TYPE),ha.setSelected(wa.SUPPORTED_VAR_TYPE[0]),xa(wa.SUPPORTED_VAR_TYPE[0].getValue()),G(y)):y.startsWith(Ga.DATE_SUB)?(oa.setChecked(!0),sa=y.substring(Ga.DATE_SUB.length,y.length-1),ua.setSelected(va.SUPPORTED_VAR_TYPE[0]),sa=parseInt(sa),Pa.setValue(100<sa?100:sa),ha.setItemModels(wa.SUPPORTED_VAR_TYPE),ha.setSelected(wa.SUPPORTED_VAR_TYPE[0]),xa(wa.SUPPORTED_VAR_TYPE[0].getValue()),G(y)):y.startsWith(Ga.DAY_BEGIN)?(oa.setChecked(!0),
ha.setItemModels(wa.SUPPORTED_VAR_TYPE),ha.setSelected(wa.SUPPORTED_VAR_TYPE[2]),xa(wa.SUPPORTED_VAR_TYPE[2].getValue()),lb.setSelected(Na.SUPPORTED_VAR_TYPE[0]),G(y)):y.startsWith(Ga.DAY_END)?(oa.setChecked(!0),ha.setItemModels(wa.SUPPORTED_VAR_TYPE),ha.setSelected(wa.SUPPORTED_VAR_TYPE[2]),xa(wa.SUPPORTED_VAR_TYPE[2].getValue()),lb.setSelected(Na.SUPPORTED_VAR_TYPE[1]),G(y)):y.startsWith(Ga.EXPRESSION)?(Q.setChecked(!0),y=y.substring(Ga.EXPRESSION.length,y.length),ma.setText(y)):(S.setChecked(!0),
(y=Ja(y))&&B.setDateObject(y))}},G=function(y){var sa=y.indexOf("|");if(-1!=sa)if(y=y.substring(sa+1,y.length),y.startsWith(Ga.SYS_TIME))n.setChecked(!0);else if(M.setChecked(!0),-1<y.indexOf(":")){var za=y.split(":");3==za.length&&(y=parseInt(za[0]),sa=parseInt(za[1]),za=parseInt(za[2]),isNaN(y)||isNaN(sa)||isNaN(za)||F.setSelected(y,sa,za))}else y=new Date(Number(y)),y.getTime()&&F.setSelected(y.getHours(),y.getMinutes(),y.getSeconds());else F.setSelected(null)}}function qb(x,c){Va.call(this,x,
new Ka(c),c)}function Ka(x){var c=this,U,S,B,Q,ma;var oa=new da;oa.setFormatString("HH:mm:ss");this.getJqUi=function(){U||(Pa(),ua());return U};this.getWidth=function(){return 360};this.getHeight=function(){return 250};this.setSelected=function(ha){S=ha;U&&ua()};this.getSelectedModel=function(){if(B.isChecked())if(!Q||Q.isSelectedNull())S="";else{var ha=new Date;ha.setHours(Q.getHour());ha.setMinutes(Q.getMinute());ha.setSeconds(Q.getSecond());S=oa.format(ha)}else ma.isChecked()&&(S=Ga.SYS_TIME);
return S};this.checkUIInput=function(ha){ha(!0)};this.getModelFromUI=function(){return c.getSelectedModel()};var ua=function(){if(S)if(S instanceof ValueTextModel&&(S=S.getValue()),S.startsWith(Ga.SYS_TIME))ma.setChecked(!0);else if(B.setChecked(!0),-1<S.indexOf(":")){var ha=S.split(":");if(3==ha.length){var Ya=parseInt(ha[0]),eb=parseInt(ha[1]);ha=parseInt(ha[2]);isNaN(Ya)||isNaN(eb)||isNaN(ha)||Q.setSelected(Ya,eb,ha)}}else Ya=new Date(Number(S)),Ya.getTime()&&Q.setSelected(Ya.getHours(),Ya.getMinutes(),
Ya.getSeconds())},Pa=function(){U=$("<div>");var ha=0,Ya=0;"en"==h.getUrlParamValue("language")&&(Ya=10,ha=30);var eb=30,lb=new D;B=new p;B.setChecked(!0);B.setText(E.get("designatedTime","\u56fa\u5b9a\u65f6\u95f4"));var A=B.getJqUi();A.attr("title",E.get("designatedTime","\u56fa\u5b9a\u65f6\u95f4"));l.layoutCtrl(A,60-Ya,eb,90+ha,23);A.appendTo(U);lb.addElement(B);B.addCheckedListener(function(n,M){Q.setEnabled(M&&n.isChecked())});Q=new nb;Q.setSelectedNullable(!0);Q.addSelectionListener(function(){});
Q.setSelected(null);A=Q.getJqUi();A.appendTo(U);l.layoutCtrl(A,150+ha-Ya,eb,100,23);ma=new p;ma.setText(E.get("sysTime","\u670d\u52a1\u7aef\u5f53\u524d\u65f6\u95f4"));ma.addCheckedListener(function(){Q.setEnabled(!1)});lb.addElement(ma);ha=ma.getJqUi();ha.attr("title",E.get("sysTime","\u670d\u52a1\u7aef\u5f53\u524d\u65f6\u95f4"));ha.appendTo(U);l.layoutCtrl(ha,60-Ya,eb+=43,180,23)}}function tb(){var x;this.setVarF7SelectorModel=function(c){x=c};this.getVarF7SelectorModel=function(){return x}}function wb(x,
c,U){J.call(this,null,c,U,!0);tb.call(this);var S=this;this.createFilterUI=function(B){S.createUI(B);cb(S,x,B,c.isReadOnly())}}function ub(x,c,U){J.call(this,null,c,U,!0);tb.call(this);var S=this,B;B||(B=new d(c,U));this.createFilterUI=function(Q){S.createUI(Q);cb(S,x,Q,c.isReadOnly())};this.getFilterCombox=function(){return B};this.setSuppliedValue=function(Q){if(Q&&0<Q.length)for(var ma=0;ma<Q.length;ma++){var oa=Q[0].getValue();void 0!=oa&&(oa.startsWith(fb)||oa.startsWith(Fa)||oa.startsWith($a))&&
Q.splice(ma,1)}Q&&0<Q.length&&B.setSuppliedValue(Q)};this.setSuppliedValueDescription=function(Q){B.setSuppliedValueDescription(Q)};this.setSelectedValueChangedListener=function(Q){B.setSelectedValueChangedListener(Q)};this.setSelectedValue=function(Q){S.setOutterSelectedValue(Q);if(Q&&0<Q.length){var ma=Q[0].getValue();void 0==ma||ma.startsWith(fb)||ma.startsWith(Fa)||ma.startsWith($a)||B.setSelectedValue(Q)}};this.resetSuppliedValue=function(Q,ma){B.resetSuppliedValue(Q,ma)}}function db(x,c){var U=
this;k.call(this,x,c);this.setSuppliedValue=function(S){if(S&&0!=S.length){for(var B=[],Q,ma,oa=0;oa<S.length;oa++)Q=S[oa],ma=new ValueTextTreeNodeModel,ma.setText(Q.getText()),ma.setValue(Q.getValue()),ma.setId(Q.getValue()),ma.setParentId(""),B.push(ma);U.setSuppliedValueInner(B)}}}function P(x,c,U){J.call(this,null,c,U,!0);tb.call(this);var S=this,B;B||(B=new db(c,U));this.createFilterUI=function(Q){S.createUI(Q);cb(S,x,Q,c.isReadOnly())};this.getFilterForwardSelector=function(){return B};this.setSuppliedValue=
function(Q){B.setSuppliedValue(Q)};this.setSuppliedValueDescription=function(Q){B.setSuppliedValueDescription(Q)};this.setSelectedValueChangedListener=function(Q){B.setSelectedValueChangedListener(Q)};this.setSelectedValue=function(Q){S.setOutterSelectedValue(Q);B.setSelectedValue(Q)};this.resetSuppliedValue=function(Q,ma){B.resetSuppliedValue(Q,ma)}}function aa(x,c,U){H.call(this,c,U);var S=this;this.createFilterUI=function(B){S.createUI(B);B.find(".sa-ctrl-spinner-text").css("background-color",
"#ffffff")}}function ea(x,c,U){J.call(this,Ha.SCHEDULE_FILTER_DATE,c,U,!0);tb.call(this);var S=this,B=$.extend(!0,{},x),Q;B.pattern=c.getPattern();!Q&&B.pattern&&ReportParamDescription.Y_M_D_PATTERN!=B.pattern&&(Q=new b(c,U));this.getFilterSimilarDate=function(){return Q};this.createFilterUI=function(ma){S.createUI(ma);cb(S,B,ma,c.isReadOnly())}}function ta(x,c,U){J.call(this,Ha.SCHEDULE_FILTER_DATETIME,c,U,!0);tb.call(this);var S=this;this.createFilterUI=function(B){S.createUI(B);cb(S,x,B,c.isReadOnly())}}
function g(x,c,U){J.call(this,Ha.SCHEDULE_FILTER_TIME,c,U,!0);tb.call(this);var S=this;this.createFilterUI=function(B){S.createUI(B);cb(S,x,B,c.isReadOnly())}}function fa(x,c,U){pa.call(this,c,U);var S=this;this.createFilterUI=function(B){S.createUI(B)}}function q(x,c,U){f.call(this,c,U);var S=this;this.createFilterUI=function(B){S.createUI(B);B.find(".extreport-runtime-filter-enabled").removeClass("extreport-runtime-filter-enabled")}}function J(x,c,U,S){var B=this;v.call(this,c,U);var Q,ma,oa,ua,
Pa=this.protectedMethod,ha=new da,Ya=new da,eb=new da;ha.setFormatString("yyyy-MM-dd");Ya.setFormatString("yyyy-MM-dd HH:mm:ss");eb.setFormatString("HH:mm:ss");this.createUI=function(n){ma||A();var M=ma.getJqUi();(Q=M.find(".sa-ctrl-textfield-input"))&&Q.css({"text-overflow":"ellipsis",padding:"0px 16px 0px 4px"});Pa.createUiWithLabel(n,M)};this.setSuppliedValue=function(n){};this.setOutterSelectedValue=function(n){B.setTextFieldValue(n)};this.setSelectedValue=function(n){B.setTextFieldValue(n)};
this.setTextFieldValue=function(n){ma||A();if(n&&1==n.length){oa=n[0];var M=n[0].getValue()}else if(n&&1<n.length){ua=n;x?lb(""):lb(ka(n));return}M&&"string"==typeof M?!x||-1<M.indexOf(gb)?lb(oa.getText()):-1<M.indexOf("date")||-1<M.indexOf("day")||-1<M.indexOf("get")||-1<M.indexOf("=")||x!=Ha.SCHEDULE_FILTER_TIME&&-1<M.indexOf("-")||-1<M.indexOf(":")?lb(M):(n=Number(M),isNaN(n)?lb(M):(M=new Date(n),Ha.SCHEDULE_FILTER_DATE==x?lb(ha.format(M)):Ha.SCHEDULE_FILTER_DATETIME==x?lb(Ya.format(M)):Ha.SCHEDULE_FILTER_TIME==
x&&lb(eb.format(M)))):lb("");B.fireSelectedValueChanged()};this.getSelectedValue=function(){ma||A();var n=null==ma.getText()?"":ma.getText();if(oa&&n==oa.getText())return[oa];if(ua&&n==ka(ua))return ua;var M=new ValueTextModel;M.setValue(n);M.setText(n);return[M]};var lb=function(n){ma.setText(n);Q&&Q.attr("title",n)},A=function(){ma=new K;if(S||c.isReadOnly())ma.setReadonly(!0),c.isReadOnly()&&ma.setEnabled(!1);ma.addEditedListener(B.fireSelectedValueChanged)}}function a(){this.create=function(x,
c,U){if(!(c instanceof ReportParamDescription))throw Error("Illegal argument.");switch(c.getCtrlType()?c.getCtrlType().toLowerCase():null){case "checkbox":return new q(x,c,U);case "combobox":return new ub(x,c,U);case "f7":return new P(x,c,U);case "numberstepper":return new aa(x,c,U);case "checkboxgroup":return new P(x,c,U);case "datetime":if("Date"==c.getDataType())return new ea(x,c,U);if("DateTime"==c.getDataType())return new ta(x,c,U);if("Time"==c.getDataType())return new g(x,c,U);throw Error("Illegal datetime!");
case "label":return new fa(x,c,U);default:return new wb(x,c,U)}}}function R(x,c,U,S){FilterContext.call(this,x,c,U);var B=this,Q=c.oGlobal,ma=!1;this.delaySuppliedValueRemoteGetter=function(oa,ua,Pa){ua&&Q.createFacade(function(ha){Pa(ha);ma||(ma=!0,S&&S())},function(ha,Ya){return!0}).getDelaySuppliedValue(B.constructParam(oa,ua))}}"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.extreport&&
(com.kingdee.bos.extreport={});"undefined"==typeof com.kingdee.bos.extreport.snapschedule&&(com.kingdee.bos.extreport.snapschedule={});"undefined"==typeof com.kingdee.bos.extreport.snapschedule.filter&&(com.kingdee.bos.extreport.snapschedule.filter={});var z=com.kingdee.bos.extreport.snapschedule.filter;z.ScheduleFilterTextField=wb;z.ScheduleFilterComboBox=function(x,c,U){na.call(this,c,U);var S=this;this.createFilterUI=function(B){S.createUI(B);B.find(".extreport-runtime-filter-enabled").removeClass("extreport-runtime-filter-enabled")}};
z.ScheduleFilterForwardSelector=P;z.ScheduleFilterNumberInput=aa;z.ScheduleFilterDate=ea;z.ScheduleFilterDateAndTime=ta;z.ScheduleFilterTime=g;z.ScheduleFilterLabel=fa;z.ScheduleFilterSwitch=q;z.ScheduleFilterCtrlFactory=a;z.ScheduleFilterContext=R;z.ScheduleReportFilter=function(x,c,U){ReportFilter.call(this,x,c,null);var S=this,B=this.protectedMethod,Q=new R(this,c,x,U);this.init=function(ma,oa,ua){S.setArrParamsName([]);S.setMapCtrls({});S.setSchemeList(oa);for(oa=0;oa<ma.length;oa++){var Pa=ma[oa],
ha=B.decodeParamDesc(Pa);"Hidden"!=ha.getState()&&S.setDisplay(!0);S.pushArrParamsName(ha.getName());var Ya=(new a).create(c,ha,Q);S.pushMapCtrls(ha.getName(),Ya);Ya instanceof P?ha.getSuppliedValueDescription()||Ya.setSuppliedValue(ha.getSuppliedValue()):Ya.setSuppliedValue(ha.getSuppliedValue());Ya.setSuppliedValueDescription(ha.getSuppliedValueDescription());"numberstepper"==(ha.getCtrlType()?ha.getCtrlType().toLowerCase():null)&&Ya.setDefaultValue(Pa.defaultValue);Ya instanceof fa||(Ya.setSelectedValueChangedListener(B.ctrlSelectedValueChanged),
Ya.setSelectedValue(ha.getDefaultValue()))}if(ua)for(var eb in ua)for(ma=ua[eb],oa=0;oa<ma.length;oa++)S.addOneAffectAnother(eb,ma[oa])};this.render=function(ma){_jqMainOwner=$(ma);_jqMainOwner.attr("data-role","page");var oa=_jqMainOwner;ma=$("<div>");ma.appendTo(oa);ma.css("position","relative");oa=$("<div>");oa.attr("data-role","listview");oa.appendTo(ma);oa.css({fontSize:"12px"});var ua=S.getMapCtrls();for(Ya in ua){var Pa=ua[Ya],ha=Pa instanceof fa?$("<div>").css({position:"relative",display:"inline-block",
width:"100%"}):$("<div>").css({position:"relative",display:"inline-block",margin:"8px 70px 8px 0"});ha.attr("data-role","fieldcontain");ha.appendTo(oa);Pa.createFilterUI(ha)}_jqAllFilter=ma;var Ya=$(window).height()-270;100>=Ya&&(Ya=100);_jqMainOwner.css({padding:"0px 10px 0px 10px",maxHeight:Ya,overflowY:"auto",position:"relative"});B.updateUI()};this.restoreSelectedVarByScheme=function(ma){for(var oa={},ua=0,Pa={};;){var ha=ma.match(new RegExp("N"+ua+"=(.*?)\u0001"));if(!ha||!ha[1])break;var Ya=
ha[1];ha=ma.match(new RegExp("V"+ua+"=(.*?)\u0001"))[1];var eb=ma.match(new RegExp("C"+ua+"=(.*?)\u0001"))[1];Pa[Ya]=[ha,eb];ua++}ma=S.getMapCtrls();for(var lb in ma)if(ua=ma[lb],eb=Pa[lb])if(ha=eb[0],eb=eb[1],ua instanceof wb||ua instanceof ub)ha&&(ha.startsWith(fb)?(ha=la.getSystemVarTypeByExtRptId(ha.substring(1,ha.length)))&&(oa[lb]=ha):ha.startsWith(Fa)?(ha=ha.substring(1,ha.length))&&com.kingdee.bos.qing.macro.MacroVarHelper.loadVarModelAdapter(ha,function(A){oa[lb]=A}):ha==$a?oa[lb]=new L($a,
E.get("firstData","\u7b2c\u4e00\u6761\u6570\u636e")):(ha=ha.replaceAll("0xx1xx",";"),eb=eb.replaceAll("0xx1xx",";"),ha=new L(ha,eb),oa[lb]=ha));else if(ua instanceof ea||ua instanceof ta||ua instanceof g)ua=new ValueTextModel,ua.setText(eb),ua.setValue(ha),oa[lb]=ua;return oa};this.getVarF7SelectorModel=function(){var ma={},oa=S.getMapCtrls(),ua;for(ua in oa){var Pa=oa[ua];"function"==typeof eval(Pa.getVarF7SelectorModel)&&Pa.getVarF7SelectorModel()&&(ma[ua]=Pa.getVarF7SelectorModel())}return ma};
this.updateFilterByF7SelectorModel=function(ma){var oa=S.getMapCtrls(),ua;for(ua in oa){var Pa=oa[ua];if("function"==typeof eval(Pa.getVarF7SelectorModel)&&ma&&ma[ua]){Pa.setVarF7SelectorModel(ma[ua]);var ha=Aa(ma[ua]);Pa.setSelectedValue(ha)}}};this.execute=function(ma,oa){var ua=!1,Pa="[",ha={},Ya=S.getMapCtrls(),eb;for(eb in Ya){var lb=Ya[eb];if(!(lb instanceof fa)){var A=new ParamValue;A.setParamName(eb);A.setDataType(lb.getParamDescription().getDataType());var n=lb.getSelectedValue();!ua&&lb.getParamDescription().isRequired()&&
(ua=!n||0==n.length);if(n)for(var M=0;M<n.length;M++){var F=n[M];A.addValue(F);F=F.getValue();if(lb.getParamDescription().isRequired())if(!F){ua=!0;break}else if((lb instanceof ea||lb instanceof ta)&&F.startsWith('{"version":"2"')){var C=new Ba;C.fromJsonObject(JSON.parse(F));F=C.getValue();if(!F||0==F.trim().length){ua=!0;break}}}if(ua)return{success:!1,errMsg:lb.getParamDescription().getText()+" \u53c2\u6570\u503c\u4e0d\u80fd\u4e3a\u7a7a\u3002"};1<Pa.length&&(Pa+=",",Pa+="\r\n");Pa+=A.toJsonString()}}Ya=
{};Ya.pageId=x;Ya.schemeName=ma;Ya.isDefaultChange=oa;Ya.flag="1";Ya.paramValues=Pa+"]";return ua?{success:!1,errMsg:"\u53c2\u6570\u503c\u4e0d\u5b8c\u6574"}:{success:!0,data:Ya,selectAll:JSON.stringify(ha)}}};z.SystemVarType=la;var T,h,l,da,E,na,d,k,H,pa,v,b,f,r,p,D,Z,Oa,K,w,W,ca,Ta,nb,Da,ab,ob="const_var",Xa="sys_var",fb="@",Fa="$",$a="#@$firstData$@#",gb='{"version":"2"',Ga={DESIGNATED_DATE:"date",SYS_DATE:"getSystemDate()",SYS_TIME:"getSystemTime()",DATE_ADD:"dateAdd + ",DATE_SUB:"dateSub - ",
DAY_BEGIN:"dayBegin",DAY_END:"dayEnd",EXPRESSION:"=",Y_M_D:"Y_M_D",Y_M:"Y_M",Y_S:"Y_S",Y:"Y"},Ha={SCHEDULE_FILTER_DATE:"1",SCHEDULE_FILTER_DATETIME:"2",SCHEDULE_FILTER_TIME:"3"};(function(){var x=com.kingdee.bos.qing;T=x.CodeLoader;h=x.Seer;x=com.kingdee.bos.qing.common;l=x.DomUtil;da=x.DateFormater;x=com.kingdee.bos.qing.framework.common;E=x.MultilanguageManager.createPackageAccessor(com.kingdee.bos.extreport.snapschedule);x=com.kingdee.bos.extreport.runtime.filter;na=x.FilterComboBox;d=x.FilterComboBoxSearch;
k=x.FilterForwardSelector;H=x.FilterNumberInput;pa=x.FilterLabel;v=x.AbstractFilterCtrl;b=x.FilterSimilarDate;f=x.FilterSwitch;ca=x.DateSelector;Ta=x.DateTimeSelector;nb=x.TimeSelector;x=com.kingdee.bos.qing.ui.component;r=x.AbstractModalDialog;p=x.RadioButton;D=x.RadioButtonGroup;Z=x.ComboBox;Oa=x.F7Selector;K=x.TextField;w=x.Spinner;W=x.Label;Da=x.HelpIcon;T.loadJs("biz-common/qing-biz-common.js");T.loadJs("data-modeling/qing-data-modeling.js");T.loadJs("scene/ierp-dm-scene.js");T.loadJs("db-manage/qing-db-manage.js");
T.loadJs("macro/qing-macro-runtime.js");T.loadI18n("macro","macro");T.loadSkinCss("macro","qing-macro");T.loadSkinJs("macro","skin")})();var ka=function(x){var c="";if(!x)return c;for(var U=x.length,S=3>U?U:3,B=0;B<S;B++)c+=x[B].getText(),B<S-1&&(c+="; ");3<U&&(c=E.get("selectNumInTotal","#1\u7b49#2\u9879").replace("#1",c),c=c.replace("#2",U));return c};la.getSystemVarTypeById=function(x){for(var c=0;c<la.SUPPORTED_VAR_TYPE.length;c++){var U=la.SUPPORTED_VAR_TYPE[c];if(U.getValue()==x)return U}return null};
la.getSystemVarTypeByExtRptId=function(x){for(var c=0;c<la.SUPPORTED_VAR_TYPE.length;c++){var U=la.SUPPORTED_VAR_TYPE[c];if(U.getExtRptTypeId()==x)return U}return null};la.SUPPORTED_VAR_TYPE=[new la("USER_ID","ExtRptCurrentUserInfoID","currentUserId","\u5f53\u524d\u7528\u6237ID"),new la("USER_NAME","ExtRptCurrentUserInfoName","currentUserName","\u5f53\u524d\u7528\u6237\u540d\u79f0"),new la("ORG_ID","ExtRptCurrentOrgUnitID","currentGroupID","\u5f53\u524d\u7ec4\u7ec7ID"),new la("ORG_NAME","ExtRptCurrentOrgUnitName",
"currentGroupNAME","\u5f53\u524d\u7ec4\u7ec7\u540d\u79f0"),new la("DEPARTMENT_IDS","ExtRptCurrentUserDepartmentIDS","currentDepartmentIds","\u5f53\u524d\u7528\u6237\u6240\u5c5e\u90e8\u95e8(ID)"),new la("DEPARTMENT_AND_SUBORDINATE_IDS","ExtRptCurrentUserDepartmentWithSubordinateIDS","currentDeptAndSubIds","\u5f53\u524d\u7528\u6237\u6240\u5c5e\u90e8\u95e8\u53ca\u4e0b\u7ea7(ID)"),new la("CHARGE_DEPARTMENT_IDS","ExtRptCurrentUserChargeDepartmentIDS","currentChargeDeptId","\u5f53\u524d\u7528\u6237\u8d1f\u8d23\u7684\u90e8\u95e8(ID)"),
new la("CHARGE_DEPARTMENT_AND_SUBORDINATE_IDS","ExtRptCurrentUserChargeDepartmentWithSubordinateIDS","currentChargeDeptAndSubIds","\u5f53\u524d\u7528\u6237\u8d1f\u8d23\u7684\u90e8\u95e8\u53ca\u4e0b\u7ea7(ID)"),new la("BIZ_UNIT_ORGRANG_ID","ExtRptCurrentBizUnitOrgRangeIds","currentBizUnitOrgRangeIds","\u5f53\u524d\u7528\u6237\u4e1a\u52a1\u5355\u5143\u8303\u56f4(ID)"),new la("I18N","ExtRptCurrentSystemLanguage","currentSystemLanguage","\u5f53\u524d\u7cfb\u7edf\u8bed\u8a00")];Za.SUPPORTED_VAR_TYPE=[new Za(Ga.Y_M_D,
"yMD","\u5e74\u6708\u65e5"),new Za(Ga.Y_M,"yM","\u5e74\u6708"),new Za(Ga.Y_S,"yQ","\u5e74\u5b63"),new Za(Ga.Y,"y","\u5e74")];Za.getDateTypeByValue=function(x){for(var c=0;c<Za.SUPPORTED_VAR_TYPE.length;c++){var U=Za.SUPPORTED_VAR_TYPE[c];if(U.getValue()==x)return U}return null};va.SUPPORTED_VAR_TYPE=[new va("FRONT","front","\u524d"),new va("BEHIND","behind","\u540e")];va.getDateFrontBehindTypeByValue=function(x){for(var c=0;c<va.SUPPORTED_VAR_TYPE.length;c++){var U=va.SUPPORTED_VAR_TYPE[c];if(U.getValue()==
x)return U}return null};wa.SUPPORTED_VAR_TYPE=[new wa("DAY","day2","\u65e5"),new wa("WEEK","week","\u5468"),new wa("MONTH","month","\u6708"),new wa("SEASON","season","\u5b63"),new wa("YEAR","year","\u5e74")];wa.getDateOffsetUnitTypeByValue=function(x){for(var c=0;c<wa.SUPPORTED_VAR_TYPE.length;c++){var U=wa.SUPPORTED_VAR_TYPE[c];if(U.getValue()==x)return U}return null};Na.SUPPORTED_VAR_TYPE=[new Na("FIRST_DAY","firstDay","\u7b2c\u4e00\u5929"),new Na("LAST_DAY","lastDay","\u6700\u540e\u4e00\u5929")];
Na.getDateFirstLastDayTypeByValue=function(x){for(var c=0;c<Na.SUPPORTED_VAR_TYPE.length;c++){var U=Na.SUPPORTED_VAR_TYPE[c];if(U.getValue()==x)return U}return null};var Aa=function(x){if(x instanceof la){var c=fb+x.getExtRptTypeId();x=fb+x.toString()}else if(hb(x))x=c=Fa+(void 0!=x.getUid?x.getUid():x.getId());else if(x instanceof L)c=x.getValue(),x=x.getText();else{if(x instanceof ba)return x.getValue();if(x instanceof ValueTextModel)return[x];c=x}var U=new ValueTextModel;U.setValue(c);U.setText(x);
return[U]},rb=function(x,c){if(c instanceof wb||c instanceof ub||c instanceof P){var U=new t(E.get("settingBox","\u8bbe\u7f6e\u8f93\u5165\u6846"),x,c);U.setSelectedCallback(function(oa){c.setVarF7SelectorModel(oa);oa=Aa(oa);c&&c.setSelectedValue(oa);c&&c.fireSelectedValueChanged()});U.showDialog();if(c.getVarF7SelectorModel())U.setSelectedModel(c.getVarF7SelectorModel());else{var S,B=c.getSelectedValue();if(B&&1==B.length){if(x=B[0].getValue(),B=B[0].getText(),x&&0<x.length){var Q=!0,ma=x.substring(1,
x.length);x.startsWith(fb)?S=la.getSystemVarTypeByExtRptId(ma):x.startsWith(Fa)?com.kingdee.bos.qing.macro.MacroVarHelper.loadVarModelAdapter(ma,function(oa){S=oa;U.setSelectedModel(S);Q=!1}):S=new L(x,B);Q&&U.setSelectedModel(S)}}else B&&1<B.length&&(S=new ba(B),U.setSelectedModel(S))}}else c instanceof ea?(B=new xb(E.get("selectDate","\u8bbe\u7f6e\u65e5\u671f"),x,c),B.setSelectedCallback(function(oa){c.setVarF7SelectorModel(oa);oa=Aa(oa);c&&c.setSuppliedValue(oa);c&&c.setSelectedValue(oa);c&&c.fireSelectedValueChanged()}),
B.showDialog(),c.getVarF7SelectorModel()?B.setSelectedModel(c.getVarF7SelectorModel()):(x=c.getSelectedValue())&&0<x.length&&(x=x[0])&&B.setSelectedModel(x.getValue())):c instanceof ta?(B=new jb(E.get("selectDateAndTime","\u8bbe\u7f6e\u65e5\u671f\u65f6\u95f4"),x),B.setSelectedCallback(function(oa){c.setVarF7SelectorModel(oa);oa=Aa(oa);c&&c.setSuppliedValue(oa);c&&c.setSelectedValue(oa);c&&c.fireSelectedValueChanged()}),B.showDialog(),c.getVarF7SelectorModel()?B.setSelectedModel(c.getVarF7SelectorModel()):
(x=c.getSelectedValue())&&0<x.length&&(x=x[0])&&B.setSelectedModel(x.getValue())):c instanceof g&&(B=new qb(E.get("selectTime","\u8bbe\u7f6e\u65f6\u95f4"),x),B.setSelectedCallback(function(oa){c.setVarF7SelectorModel(oa);var ua=new ValueTextModel;ua.setValue(oa);ua.setText(oa);c&&c.setSuppliedValue([ua]);c&&c.setSelectedValue([ua]);c&&c.fireSelectedValueChanged()}),B.showDialog(),c.getVarF7SelectorModel()?B.setSelectedModel(c.getVarF7SelectorModel()):(x=c.getSelectedValue())&&0<x.length&&(x=x[0])&&
B.setSelectedModel(x.getValue()))},cb=function(x,c,U,S){S||(S=new Oa,S.addActionListener(function(B){rb(c,x)}),S=S.getJqUi(),U.find(".extreport-runtime-filter-enabled").removeClass("extreport-runtime-filter-enabled"),U.append(S))},hb=function(x){if(x)return x.getVariateType&&"macro_var"==x.getVariateType()}})();(function(){function t(g,fa,q){var J=fa?fa:ta,a=Va.RUNTIME==g?285:245,R,z,T,h=new qb,l,da,E,na,d,k,H;var pa=ea.get("publicCategory","\u516c\u5171\u76ee\u5f55");var v=ea.get("personalCategory","\u4e2a\u4eba\u76ee\u5f55");this.setOuterMessageCurtain=function(K){H=K};this.getWidth=function(){return 392};this.getHeight=function(){return a};this.getJqUi=function(){if(!R){Oa();var K=function(){if(b())q.snapGroupTypeName="B"==q.snapGroupTypeId?v:pa,T.setText(q.snapName),l.doAutoSelected(q.snapGroupTypeName,
q.snapGroupTypeId),E.doAutoSelected(q.snapGroupName,q.snapGroupId),l.setEnable(!1);else if(void 0!=q.snapGroupTypeId&&void 0!=q.snapGroupId&&void 0!=q.snapGroupName&&void 0!=q.isHyperLink)q.snapGroupTypeName="B"==q.snapGroupTypeId?v:pa,d.setOn(q.isHyperLink),l.doAutoSelected(q.snapGroupTypeName,q.snapGroupTypeId),E.doAutoSelected(q.snapGroupName,q.snapGroupId),l.setEnable(!0);else{if(da&&1<=da.length){var w=da[0];l.doAutoSelected(w.getName(),w.getId());1==da.length&&l.setEnable(!1)}(w=E.getArrFolderNode())&&
1<=w.length&&(w=w[0],E.doAutoSelected(w.getName(),w.getId()))}};D(l,function(){Z(E,K)})}return R};var b=function(){return q.snapName&&q.snapGroupTypeName&&q.snapGroupTypeId&&q.snapGroupId&&q.snapGroupName},f=function(K){K=new ba(K,null);K.setPlaceholder(ea.get("selectPathType","\u8bf7\u9009\u62e9\u4fdd\u5b58\u76ee\u5f55\u7c7b\u578b"));K.setMaxHeight(118);K.getJqUi().css("background","white");return K},r=function(K){K=new ba(null,K);K.setPlaceholder(ea.get("selectPath","\u8bf7\u9009\u62e9\u4fdd\u5b58\u76ee\u5f55"));
K.setMaxHeight(118);K.getJqUi().css("background","white");return K},p=function(K){var w=[],W=[];if(!K)return W;for(W=0;W<K.length;W++){var ca=new u;ca.fromJsonObject(K[W]);w.push(ca)}return w},D=function(K,w){if(null==da){var W=J.createFacade(function(ca){da=p(ca);K.setArrFolderNode(da);w&&w()},function(ca,Ta){8099101==ca?J.getMessageCurtain().showPrompt(ea.get("querySnapCenterPermExp","\u67e5\u8be2\u5feb\u7167\u4e2d\u5fc3\u6743\u9650\u5f02\u5e38\u3002"),5E3):8099102==ca?J.getMessageCurtain().showPrompt(ea.get("noQuerySnapCenterPermExp",
"\u5f53\u524d\u7528\u6237\u6ca1\u6709\u5feb\u7167\u4e2d\u5fc3\u6743\u9650\u3002"),5E3):_super.getMessageCurtain().showPrompt(Ta,5E3);return!0});Va.SNAP_SCHEDULE==g?W.setShowBlocking(!1):(W.setShowBlocking(!0),W.setBlockingJqUi(R));W.loadSnapGroupTypes(q.snapId)}else K.setArrFolderNode(da)},Z=function(K,w){if(null==na){var W=J.createFacade(function(ca){na=p(ca);K.setArrFolderNode(na);w&&w()},function(ca,Ta){8099101==iErrorCode?J.getMessageCurtain().showPrompt(ea.get("querySnapCenterPermExp","\u67e5\u8be2\u5feb\u7167\u4e2d\u5fc3\u6743\u9650\u5f02\u5e38\u3002"),
5E3):8099102==iErrorCode?J.getMessageCurtain().showPrompt(ea.get("noQuerySnapCenterPermExp","\u5f53\u524d\u7528\u6237\u6ca1\u6709\u5feb\u7167\u4e2d\u5fc3\u6743\u9650\u3002"),5E3):_super.getMessageCurtain().showPrompt(Ta,5E3);return!0});Va.SNAP_SCHEDULE==g?W.setShowBlocking(!1):(W.setShowBlocking(!0),W.setBlockingJqUi(R));W.loadSnapGroupInfo(q.snapId)}else K.setArrFolderNode(na)},Oa=function(){var K=0;R=$("<div>");z=$("<div>");z.addClass("publish-manage-left");if(Va.RUNTIME==g||Va.SNAP_CENTER==g){var w=
new tb,W=w.getJqUi();w.setRequired(!0);w.setText(ea.get("snapName","\u5feb\u7167\u540d\u79f0"));W.attr("title",w.getText());T=new wb;var ca=$("<div>");T.addEditedListener(function(Da){clearTimeout(k);k=setTimeout(function(){var ab=T.getText();if(""!=ab){var ob=J.createFacade(function(Xa){ca.empty();Xa=Xa[T.getText()];if(null!=Xa&&0<Xa.length){h.setCustomItemPainter(function(gb,Ga){gb.on("mousedown",function(Ha){T.setText(Ga);ca.remove();Ha.stopPropagation()});gb.text(Ga);gb.attr("title",Ga)});h.setItemModels(Xa);
h.setSelecteds([Xa[0]]);Xa=h.getJqUi();var fb=Ta.width(),Fa=Ta.css("left"),$a=Ta.position().top+Ta.height();Sa.layoutCtrl(ca,Fa,$a,fb,122);ca.css("z-index","9999");Xa.css({width:fb+"px",height:"122px"});Xa.find(".sa-ctrl-list-owner").css("height","100px");fb=$("<div>");fb.css({position:"absolute","z-index":"9999",color:"#c5c5c5"});fb.text(ea.get("HistorySnapName","\u5386\u53f2\u5feb\u7167\u540d\u79f0"));fb.css({right:"13px",top:"100px"});Xa.appendTo(ca);fb.appendTo(ca);ca.appendTo(z)}else ca.remove()});
ob.setShowBlocking(!1);ob.getSnapNameByInputText(ab)}else ca.remove()},1E3)});T.addBlurListener(function(){ca.remove()});var Ta=T.getJqUi();Sa.layoutCtrl(W,15,K,115,23);Sa.layoutCtrl(Ta,130,K,215,23);W.appendTo(z);Ta.appendTo(z);K+=45}else K+=15;W=new tb;w=W.getJqUi();b()||W.setRequired(!0);W.setText(ea.get("snapSavePathType","\u76ee\u5f55\u7c7b\u578b"));w.attr("title",W.getText());l=f(function(Da){if(Da&&Da!=l.getLastTimeSelectedTailPathId()){var ab=[];$.extend(!0,ab,na);if(ab&&0<ab.length)if(Da&&
0==Da.indexOf("A")){for(Da=0;Da<ab.length;Da++)"B"==ab[Da].getType()&&(ab.splice(Da,1),Da--);ab.sort(function(ob,Xa){return Xa.getOrder()-ob.getOrder()});E.setArrFolderNode(ab);E.clearSelectedTreePath()}else if(Da&&0==Da.indexOf("B")){for(Da=0;Da<ab.length;Da++)"A"==ab[Da].getType()&&(ab.splice(Da,1),Da--);ab.sort(function(ob,Xa){return Xa.getOrder()-ob.getOrder()});E.setArrFolderNode(ab);E.clearSelectedTreePath()}}});W=l.getJqUi();Sa.layoutCtrl(w,15,K,115,23);Sa.layoutCtrl(W,130,K,215,23);w.appendTo(z);
W.appendTo(z);W=new tb;w=W.getJqUi();W.setRequired(!0);W.setText(ea.get("snapSavePath","\u76ee\u5f55"));w.attr("title",W.getText());E=r(function(Da){!l||l.getSelectedTreePath()&&l.getSelectedTreePath().getText()||(Da.clearSelectedTreePath(),H.showPrompt(ea.get("selectPathType","\u8bf7\u9009\u62e9\u76ee\u5f55\u7c7b\u578b\u3002")))});W=E.getJqUi();K+=45;Sa.layoutCtrl(w,15,K,115,23);Sa.layoutCtrl(W,130,K,215,23);w.appendTo(z);W.appendTo(z);if(Va.RUNTIME==g||Va.SNAP_SCHEDULE==g){d=new Ka;d.setOn(!1);
w=d.getJqUi();W=new tb(ea.get("saveSnapHyperLink","\u4fdd\u5b58\u8054\u67e5/\u8054\u52a8\u8bbe\u7f6e"));var nb=W.getJqUi();nb.attr("title",W.getText());K+=45;Sa.layoutCtrl(nb,15,K,115,23);Sa.layoutCtrl(w,130,K,31,23);nb.appendTo(z);w.appendTo(z)}z.appendTo(R)};this.getModelFromUI=function(){var K=new wa;Va.SNAP_SCHEDULE!=g&&K.setSnapName($.trim(T.getText()));var w=E.getSelectedTreePath();K.setSaveSnapGroupPath(w.getValue());K.setSaveSnapGroupPathText(w.getText());K.setSaveSnapGroupName(E.getSelectedTailPathName());
K.setSaveSnapGroupId(E.getSelectedTailPathId());K.setSaveSnapGroupType(l.getSelectedTailPathId());Va.RUNTIME==g?(K.setPageId(q.pageId),K.setPublishId(q.urlParams.publishId),w=d.isOn(),K.setIsHyperLink(w),K.setOldSnapId(q.snapId),K.setReportId(q.extReportId)):Va.SNAP_CENTER==g?(K.setSnapId(q.snapId),K.setReportId(q.reportId)):Va.SNAP_SCHEDULE==g&&(w=d.isOn(),K.setIsHyperLink(w));return K};this.checkUIInput=function(K){if(Va.SNAP_SCHEDULE==g)if(l.getSelectedTreePath())if(E.getSelectedTreePath())K(!0);
else return ea.get("selectPath","\u8bf7\u9009\u62e9\u76ee\u5f55\u3002");else return ea.get("selectPathType","\u8bf7\u9009\u62e9\u76ee\u5f55\u7c7b\u578b\u3002");else{var w=$.trim(T.getText());if(null==w||0==$.trim(w).length)return ea.get("snapNameNotEmpty","\u8bf7\u8f93\u5165\u5feb\u7167\u540d\u79f0\u3002");if(50<w.length)return ea.get("snapNameTooLong","\u957f\u5ea6\u4e0d\u80fd\u8d85\u8fc750\u4e2a\u5b57\u7b26\u3002");if(va.isValidString(w)){if(va.isKeywords(w))return ea.get("isKeywords",'\u65e0\u6cd5\u4f7f\u7528"#1"\u4f5c\u4e3a\u540d\u79f0\uff0c\u8bf7\u91cd\u65b0\u8f93\u5165\u3002').replace("#1",
w);if(l.getSelectedTreePath())if(E.getSelectedTreePath())K(!0);else return ea.get("selectPathWithPeriod","\u8bf7\u9009\u62e9\u76ee\u5f55\u3002");else return ea.get("selectPathType","\u8bf7\u9009\u62e9\u76ee\u5f55\u7c7b\u578b\u3002")}else return ea.get("invalidName","\u540d\u79f0\u53ea\u80fd\u7531\u6c49\u5b57\u3001\u5b57\u6bcd\u3001\u6570\u5b57\u6216\u4e0b\u5212\u7ebf\u7ec4\u6210\uff0c\u4e14\u4e0d\u80fd\u4ee5\u6570\u5b57\u5f00\u5934\u3002")}}}function e(){var g,fa,q,J,a,R;this.setId=function(z){g=
z};this.getId=function(){return g};this.setName=function(z){fa=z};this.getName=function(){return fa};this.setType=function(z){q=z};this.getType=function(){return q};this.setParentId=function(z){J=z};this.getParentId=function(){return J};this.setParentNode=function(z){a=z};this.getParentNode=function(){return a};this.setOrder=function(z){R=z};this.getOrder=function(){return R}}function u(){e.call(this);var g=this,fa=[],q,J;this.setChildren=function(a){fa=a};this.getChildren=function(){return fa};this.setIsOpenDir=
function(a){q=a};this.getIsOpenDir=function(){return q};this.getIsShow=function(){return J};this.setIsShow=function(a){J=a};this.toJsonObject=function(){var a={};a.children=fa;return a};this.fromJsonObject=function(a){g.setName(a.name);g.setId(a.id);g.setType(a.type);g.setParentId(a.parentId);g.setOrder(a.order);g.setIsOpenDir(!0);if(a=a.children)for(var R=0;R<a.length;R++){var z=a[R];if(!z.children||z.children&&0==z.children.length){var T=new L;T.fromJsonObject(z);T.setParentNode(g);fa.push(T)}else T=
new u,T.fromJsonObject(z),T.setParentNode(g),fa.push(T)}}}function L(){e.call(this);var g=this;this.fromJsonObject=function(fa){g.setName(fa.name);g.setId(fa.id);g.setParentId(fa.parentId);g.setOrder(fa.order)}}function ba(g,fa){la.call(this);var q=this,J=this.protectedMethod,a,R=[],z,T,h,l;this.getDropDownContent=function(){q.updateArrFolderNode();q.initTreeSelector();return a.getJqUi()};this.updateArrFolderNode=function(b){g&&g(b)};this.checkClearSelectedTreePath=function(b){fa&&fa(b)};this.clearSelectedTreePath=
function(){z=null;J.updateText(z?z.getText():"")};this.setSelectedTreePath=function(b){z=b;J.updateText(z?z.getText():"")};this.getSelectedTreePath=function(){return z};this.getSelectedTailPathName=function(){return T};this.getSelectedTailPathId=function(){return h};this.getLastTimeSelectedTailPathId=function(){return l};this.initTreeSelector=function(){if(R){a=new kb;a.setRootVisible(!1);a.setNodePainter(H);var b=a,f=b.setRoot,r=R,p=new u;p.setParentId(" ");p.setName("\u65b0\u589e\u76ee\u5f55");
p.setId(" ");p=da(p);na(p,r);f.call(b,p);a.hookLoadingHandler(k);a.addSelectingListener(pa);a.getRoot().setExpanded(!0);a.setLineHeight(30);Sa.layoutCtrl(a.getJqUi(),0,1,"100%",4<R.length?120:30*R.length+2);a.getJqUi().css("border","1px solid rgba(138, 153, 170, 0.4)");a.getJqUi().css("background","white");a.getJqUi().appendTo($(document.body))}else return null};this.setArrFolderNode=function(b){R=b};this.getArrFolderNode=function(){return R};this.doAutoSelected=function(b,f){T=b;l=h;h=f;var r=new Ba;
r.setValue(f);r.setText(b);z=r;J.updateText(z?z.getText():"");q.updateArrFolderNode(f);q.checkClearSelectedTreePath(q)};var da=function(b){var f=new kb.BranchNode;f.setUserObject(b);return f},E=function(b){var f=new kb.LeafNode;f.setUserObject(b);return f},na=function(b,f){if(f&&0<f.length)for(var r=0;r<f.length;r++){var p=f[r];p&&p instanceof u&&0<p.getChildren().length?d(b,p):b.addChild(E(p))}},d=function(b,f){var r=0<f.getChildren().length?da(f):E(f);b.addChild(r);b=f.getChildren();if(0!=b.length)for(f=
0;f<b.length;f++)b[f]&&b[f]instanceof u&&b[f].getChildren()?d(r,b[f]):r.addChild(E(b[f]))},k=function(b,f){setTimeout(function(){na(b);f()},500)},H=function(b,f){b.css("padding-left","4px");b.css("padding-right","4px");b.text(f.getUserObject().getName())},pa=function(b,f){var r=f.getTreePath();f=b="";for(var p,D=1;D<r.length;D++)1<D&&(b+="/",f+="/"),p=r[D],b+=p.getUserObject().getName(),f+=p.getUserObject().getId();T=p.getUserObject().getName();l=h;h=p.getUserObject().getId();p=new Ba;p.setValue(f);
p.setText(b);z=p;J.updateText(z?z.getText():"");J.doDropdown();q.updateArrFolderNode(f);q.checkClearSelectedTreePath(q)},v=200;this.setMaxHeight=function(b){v=b};this.getPopupHeight=function(){return null==R||0==R.length?22:Math.min(30*R.length+2,v+2)}}function la(){var g=this,fa,q,J,a,R,z=!0;this.setEnable=function(na){z=na;z||(J.hide(),q.css({color:"rgb(192, 192, 192)"}))};this.getDropDownContent=function(){throw Error("orrive me");};this.getPopupHeight=function(){throw Error("orrive me");};this.getJqUi=
function(){fa||T();return fa};this.setPlaceholder=function(na){T();"placeholder"in q[0]?q.attr("placeholder",na):(R&&R.remove(),R=$("<div>"),R.text(na),R.css({color:"#ccc","font-size":"12px"}),R.on("mousedown",function(d){q.focus()}),R.appendTo(g.getJqUi()),Sa.layoutCtrlWithLRTB(R,4,4,null,2,2,null),E())};var T=function(){if(!fa){fa=$("<div>");fa.addClass("sa-ctrl-combobox");if(z)fa.on("click",l);fa.css("border-bottom","1px solid #ccc");q=$("<input readonly=readonly>");q.addClass("sa-ctrl-textfield-input");
q.css({color:"#666","font-size":"12px","text-overflow":"ellipsis",padding:"0px 16px 0px 4px"});q.appendTo(fa);J=$("<div>");J.addClass("sa-ctrl-combobox-arrow sa-ctrl-combobox-arrow_enabled");J.appendTo(fa);J.on("mouseenter",function(na){h(!0)});J.on("mouseleave",function(na){h(!1)});h(!1)}},h=function(na){var d=a?"arrow-up":"arrow-down";na&&(d+="_hover");ub.background(J,d)},l=function(){if(z){if(a)$(document.body).off("mousedown",da),a.detach(),a=null;else{var na=$(document.body),d=a=$("<div>"),k=
$("<div>");k.addClass("sa-ctrl-common-border");k.appendTo(d);a.addClass("sa-qing-publish-dropdown-selector");g.getDropDownContent().appendTo(a);var H=g.getPopupHeight();a.css("z-index",999999);a.appendTo(na);var pa=na.prop("clientHeight"),v=fa.outerHeight();d=fa.outerWidth();var b=[0,v-1];b=Sa.upwardCoordinate(fa[0],b,na[0]);k=b[0];var f=b[1];H=0>H?Math.max(0,(pa>>1)-v):H;f+H>pa&&(b=[0,0],b=Sa.upwardCoordinate(fa[0],b,na[0]),na=b[1]-H+1,0<=na&&(f=na));Sa.layoutCtrl(a,k,f,d,H);$(document.body).on("mousedown",
da)}h(!1)}},da=function(na){for(var d=$(document.body),k=$(na.target);k[0]!=d[0];){if(k[0]==fa[0])return;k=k.parent()}for(k=$(na.target);k[0]!=d[0];){if(k[0]==a[0])return;k=k.parent()}l()},E=function(){R&&setTimeout(function(){R.css("display",q.val()?"none":"")},0)};this.protectedMethod={updateText:function(na){T();q.val(na?na:"");na&&q.attr("title",na);"placeholder"in q[0]||E()},doDropdown:l}}function Ba(){var g=this,fa,q,J,a;this.getIsShow=function(){return a};this.setIsShow=function(R){a=R};this.getValue=
function(){return fa};this.setValue=function(R){fa=R};this.getText=function(){return q};this.setText=function(R){q=R};this.getUserObject=function(){return J};this.setUserObject=function(R){J=R};this.toJsonObject=function(){var R={};R.value=fa;R.text=q;return R};this.fromJsonObject=function(R){R&&(R.value&&g.setValue(R.value),R.text&&g.setText(R.text))}}function Za(g,fa,q,J){P.call(this,g,fa,q,J);var a=this.protectedMethod;this.loadSnapGroupTypes=function(R){a.remote("loadSnapGroupTypes",{snapId:R})};
this.loadSnapGroupInfo=function(R){a.remote("loadSnapGroupInfo",{snapId:R})};this.getSnapNameByInputText=function(R){a.remote("getSnapNameByInputText",{inputText:R})};this.saveSnapInfo=function(R){a.remote("saveSnapInfo",R)}}function va(){}function wa(){var g,fa,q,J,a,R,z,T,h,l,da,E,na;this.getSnapId=function(){return g};this.setSnapId=function(d){g=d};this.setOldSnapId=function(d){fa=d};this.getOldSnapId=function(){return fa};this.getReportId=function(){return q};this.setReportId=function(d){q=d};
this.getPageId=function(){return J};this.setPageId=function(d){J=d};this.getPublishId=function(){return a};this.setPublishId=function(d){a=d};this.getSnapName=function(){return R};this.setSnapName=function(d){R=d};this.isHyperLink=function(){return z};this.setIsHyperLink=function(d){z=d};this.getSaveSnapGroupName=function(){return T};this.setSaveSnapGroupName=function(d){T=d};this.getSaveSnapGroupType=function(){return l};this.setSaveSnapGroupType=function(d){l=d};this.getSaveSnapGroupId=function(){return h};
this.setSaveSnapGroupId=function(d){h=d};this.getSaveSnapGroupPath=function(){return da};this.setSaveSnapGroupPath=function(d){da=d};this.getSaveSnapGroupPathText=function(){return E};this.setSaveSnapGroupPathText=function(d){E=d};this.getForceOverwrite=function(){return na};this.setForceOverwrite=function(d){na=d};this.fromJsonObject=function(d){g=d.snapId;J=d.pageId;a=d.publishId;R=d.snapName;z=d.isHyperLink;T=d.saveSnapGroupName;l=d.saveSnapGroupType;h=d.saveSnapGroupId;da=d.saveSnapGroupPath;
E=d.saveSnapGroupPathText;q=d.reportId;na=d.forceOverwrite};this.toJsonObject=function(){var d={};d.snapId=g;d.oldSnapId=fa;d.pageId=J;d.publishId=a;d.snapName=R;d.isHyperLink=z;d.saveSnapGroupName=T;d.saveSnapGroupType=l;d.saveSnapGroupId=h;d.saveSnapGroupPath=da;d.saveSnapGroupPathText=E;d.reportId=q;d.forceOverwrite=na;return d}}"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.extreport&&
(com.kingdee.bos.extreport={});"undefined"==typeof com.kingdee.bos.extreport.snapcenter&&(com.kingdee.bos.extreport.snapcenter={});"undefined"==typeof com.kingdee.bos.extreport.snapcenter.common&&(com.kingdee.bos.extreport.snapcenter.common={});"undefined"==typeof com.kingdee.bos.extreport.snapcenter.common.ui&&(com.kingdee.bos.extreport.snapcenter.common.ui={});var Na=com.kingdee.bos.extreport.snapcenter.common.ui,Va={};Na.SaveSnapDialog=function(g,fa,q){jb.call(this);var J=this,a=this.protectedMethod,
R=ta,z=[],T=new t(g,R,q),h;(function(){a.setTitle(fa);J.setSize(T.getWidth(),T.getHeight());h=a.getMessageCurtain();T.setOuterMessageCurtain(a.getMessageCurtain());a.setContentPaneCreator(function(){return T.getJqUi()});a.setClosingChecker(function(d){l(d)},!0);a.setClosingAction(function(){})})();this.addSuccessCallback=function(d){z.push(d)};var l=function(d){var k=T.checkUIInput(function(H){H?E(d):d(H)});k&&(a.getMessageCurtain().showPrompt(k,5E3),d(!1))},da={8099101:ea.get("querySnapCenterPermExp",
"\u67e5\u8be2\u5feb\u7167\u4e2d\u5fc3\u6743\u9650\u5f02\u5e38\u3002"),8099102:ea.get("noQuerySnapCenterPermExp","\u5f53\u524d\u7528\u6237\u6ca1\u6709\u5feb\u7167\u4e2d\u5fc3\u6743\u9650\u3002"),8099103:ea.get("snapNameNotEmpty","\u5feb\u7167\u540d\u79f0\u4e3a\u7a7a\u3002"),8099104:ea.get("snapNameTooLong","\u5feb\u7167\u540d\u79f0\u957f\u5ea6\u4e0d\u80fd\u8d85\u8fc750\u4e2a\u5b57\u7b26\u3002"),8099105:ea.get("invalidName","\u540d\u79f0\u53ea\u80fd\u7531\u6c49\u5b57\u3001\u5b57\u6bcd\u3001\u6570\u5b57\u6216\u4e0b\u5212\u7ebf\u7ec4\u6210\uff0c\u4e14\u4e0d\u80fd\u4ee5\u6570\u5b57\u5f00\u5934\u3002"),
8099106:ea.get("selectPath","\u76ee\u5f55\u4e3a\u7a7a\u3002"),8099107:ea.get("reportNotFound","\u8be5\u62a5\u8868\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664\u3002"),8099108:ea.get("userNotFound","\u672a\u627e\u5230\u7528\u6237\u3002"),8099109:ea.get("snapGroupNotFound","\u76ee\u5f55\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664\u3002"),8099110:ea.get("sameSnapNameExist","\u76f8\u540c\u5feb\u7167\u540d\u79f0\u5df2\u5b58\u5728\u3002"),8099112:ea.get("checkReportPermExp","\u68c0\u67e5\u7528\u6237\u662f\u5426\u62e5\u6709\u4fdd\u5b58\u5feb\u7167\u6743\u9650\u5f02\u5e38\u3002"),
8099113:ea.get("noReportPerm","\u5f53\u524d\u7528\u6237\u6ca1\u6709\u4fdd\u5b58\u5feb\u7167\u6743\u9650\u3002"),8099115:ea.get("checkSnapCenterModulePermExp","\u68c0\u6d4b\u5feb\u7167\u4e2d\u5fc3\u6a21\u5757\u8bb8\u53ef\u5f02\u5e38\u3002"),8099116:ea.get("noSnapCenterModulePerm","\u5f53\u524d\u7528\u6237\u6ca1\u6709\u5feb\u7167\u4e2d\u5fc3\u6a21\u5757\u8bb8\u53ef\u3002"),8099117:ea.get("isKeywords",'\u65e0\u6cd5\u4f7f\u7528"#1"\u4f5c\u4e3a\u540d\u79f0\uff0c\u8bf7\u91cd\u65b0\u8f93\u5165\u3002')},
E=function(d,k){var H=T.getModelFromUI();k&&H.setForceOverwrite(!0);k=R.createFacade(function(pa){H.setSnapId(pa);if(H.getPublishId()||"A"==H.getSaveSnapGroupType()&&q.snapId){pa=com.kingdee.bos.qing.behavior.BehaviorManager;var v=xb.createUUID();H.getPublishId()?pa.initAccessRecordParams(H.getPublishId(),v,pa.SourceType.QING_PUBLISH,pa.AppType.QING_RPT):pa.initAccessRecordParams(q.snapId,v,pa.SourceType.QING_SNAPSHOT,pa.AppType.QING_RPT);pa.recordResourceOperation(pa.OperationType.QING_SNAPSHOT_SAVE)}if(!z||
0==z.length)h&&h.showSuccess(ea.get("saveSnapSuccess","\u4fdd\u5b58\u5feb\u7167\u6210\u529f\u3002"));else if(z&&0<z.length)for(pa=0;pa<z.length;pa++)(v=z[pa])&&v(H);d(!0)},function(pa,v){if(pa){if(Va.RUNTIME==g&&8099110==pa)return v=ea.get("sameSnapNameConfirmMessage","\u5feb\u7167\u540d\u79f0\u5df2\u5b58\u5728\uff0c\u786e\u5b9a\u8986\u76d6\u5417\uff1f"),na(v,d),!0;pa=da[pa];h.showPrompt(pa?pa:v,5E3);d(!1);return!0}d(!1);return!1});k.setShowBlocking(!1);k.saveSnapInfo(H.toJsonObject())},na=function(d,
k){var H=$(document.body),pa=$("<div class='sa-ctrl-common-modallayer'>");pa.appendTo(H);var v=new db(pa),b=ea.get("operateConfirm","\u64cd\u4f5c\u786e\u8ba4");v.setTitle(b);b=H.prop("clientWidth");var f=H.prop("clientHeight");v.setBounds(b-300>>1,f-200>>1,300,200);v.setToolbarVisible(!1);b=$("<div>");f=$("<div>");var r=$("<span>");r.text(d);r.attr("title",d);r.css({"text-align":"center",display:"inline-block","margin-top":"5px","line-height":"23px","font-size":"14px","text-overflow":"ellipsis",overflow:"hidden"});
Sa.layoutCtrl(f,null,null,300,200);Sa.layoutCtrl(r,0,25,300,60);r.appendTo(f);f.appendTo(b);v.setContent(b);v.addClosingListener(function(p,D){D?E(k,!0):k(!1);p.destroy();pa.remove();return!0});v.showFooterPane();v.show();pa.appendTo(H)}};Na.SnapContentPanel=t;Na.SaveSnapSourceType=Va;Na.ExtReportSnapModel=wa;Na.StringUtil=va;Na.ValueTextPair=Ba;Va.RUNTIME=1;Va.SNAP_CENTER=2;Va.SNAP_SCHEDULE=3;var xb,Sa,jb,kb,qb,Ka,tb,wb,ub,db,P,aa,ea,ta;(function(){var g=com.kingdee.bos.qing.common;xb=g.Util;Sa=
g.DomUtil;g=com.kingdee.bos.qing.ui.component;jb=g.AbstractModalDialog;kb=g.Tree;qb=g.List;Ka=g.SwitchButton;tb=g.Label;wb=g.TextField;ub=g.Icons;db=g.Dialog;g=com.kingdee.bos.qing.framework.common;P=g.AbstractFacade;aa=g.AbstractRemoteCall;ea=g.MultilanguageManager.createPackageAccessor(Na);ta=new function(){function fa(){aa.call(this);var a;this.getRemoteUrl=function(){return a};this.setRemoteUrl=function(R){a=R}}var q;this.createFacade=function(a,R,z){var T=J();return new Za(T,a,function(h,l){return R?
R(h,l):!1},z)};var J=function(){if(!q){var a=xb.decodeParamFromUrl(window.location.search,"path");a=(a?a:"/ierp")+"/qing_rpt/runtime.do";q=new fa;q.setRemoteUrl(a)}return q}}})();va.isValidString=function(g){return/^([\u4E00-\u9FA5a-zA-Z_])[\u4E00-\u9FA5a-zA-Z0-9_]{0,}$/.test(g)};va.isKeywords=function(g){return/\b(null|true|false)\b/i.test(g)}})();(function(){"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.extreport&&(com.kingdee.bos.extreport={});"undefined"==typeof com.kingdee.bos.extreport.snapschedule&&(com.kingdee.bos.extreport.snapschedule={});"undefined"==typeof com.kingdee.bos.extreport.snapschedule.common&&(com.kingdee.bos.extreport.snapschedule.common={});var t=com.kingdee.bos.extreport.snapschedule.common;
t.Facade=function(Ba,Za,va,wa){e.call(this,Ba,Za,va,wa);var Na=this.protectedMethod;this.saveScheduleInfo=function(Va){Va={model:JSON.stringify(Va)};Na.remote("saveScheduleInfo",Va)};this.deleteSchedule=function(Va){Va={scheduleIds:JSON.stringify(Va)};Na.remote("deleteSchedule",Va)};this.operateSchedule=function(Va,xb){Va={scheduleIds:JSON.stringify(Va),enable:xb};Na.remote("operateSchedule",Va)};this.loadScheduleInfo=function(Va,xb,Sa,jb){Na.remote("loadScheduleInfo",{scheduleId:Va,targetPage:xb,
pageSize:Sa,searchText:jb})};this.loadAllScheduleInfoBySearch=function(Va,xb){Na.remote("loadAllScheduleInfoBySearch",{scheduleId:Va,searchText:xb})};this.loadCodingRuleInfo=function(Va){Na.remote("loadCodingRuleInfo",{scheduleId:Va})};this.getScheduleNameByInputText=function(Va){Na.remote("getScheduleNameByInputText",{inputText:Va})};this.getAppMenuTreeIncludePermissionForExtreport=function(){Na.remote("getAppMenuTreeIncludePermissionForExtreport",{publishTargetType:ba.APPMENU})};this.loadAnalysisCenterGroupExtReport=
function(Va){Na.remote("loadAnalysisCenterGroupExtReport",{isPresetSnap:Va})};this.loadAllExtReportInfos=function(Va){Na.remote("loadAllExtReportInfos",{isPreset:Va})};this.getReportFilter=function(Va,xb){Na.remote("getReportFilter",{reportId:Va,publishId:xb})};this.loadFilterParam=function(Va){Na.remote("loadFilterParam",{scheduleId:Va})};this.cronExpression=function(Va){Na.remote("cronExpression",{cron:Va})};this.getDelaySuppliedValue=function(Va){Na.remote("getDelaySuppliedValue",Va)};this.cleanReportRuntimeCache=
function(Va){Va={pageIds:JSON.stringify(Va)};Na.remote("cleanReportRuntimeCache",Va)};this.convertFilterSchemeParam=function(Va,xb,Sa,jb,kb){Na.remote("convertFilterSchemeParam",{flag:Va,pageId:xb,schemeName:Sa,schemeContent:jb,scheduleId:kb})};this.loadSystemDateTypes=function(){Na.remote("loadSystemDateTypes",{})};this.getCodingRuleResultEg=function(Va){Va={model:JSON.stringify(Va.toJsonObject())};Na.remote("getCodingRuleResultEg",Va)};this.getScheduleNotifyUserRoles=function(Va){Na.remote("getScheduleNotifyUserRoles",
{scheduleId:Va})};this.checkPresetPermission=function(){Na.remote("checkPresetPermission",{})}};t.RemoteImpl=function(){u.call(this);var Ba;this.getRemoteUrl=function(){return Ba};this.setRemoteUrl=function(Za){Ba=Za}};var e,u,L,ba;(function(){var Ba=com.kingdee.bos.qing.framework.common;e=Ba.AbstractFacade;u=Ba.AbstractRemoteCall;L=Ba.AbstractIcons;Ba=com.kingdee.bos.qing.publish.model;ba=Ba.PublishTargetType})();var la=new function(){L.call(this);var Ba=this.protectedMethod;this.protectedInit=function(Za,
va){Za=com.kingdee.bos.extreport.snapschedule.ComboIcon;if(!Za)throw Error("com.kingdee.bos.extreport.snapschedule.ComboIcon not found.");Za.define(va,"no-data");Ba.registIcon(0,0,"no-data");Za.define(va,"icon_open_tips_background");va.setStartPosition(0,0);va.setGap(0);va.setIconSize(264,192);Ba.registIcon(0,0,"icon_open_tips_background");Za.define(va,"extreport");va.setGap(1);va.setStartPosition(207,78);va.setIconSize(65,78);Ba.registIcon(0,0,"icon-question")}};t.Icons=la;la=new function(){var Ba;
this.hookCollector=function(Za){Ba=Za};this.occur=function(Za,va){try{Ba&&Ba(Za,va)}catch(wa){window.console&&console.warn(wa)}}};la.CREATE_SNAP_SCHEDULE_TYPE="ext-create-snap-schedule-type";la.UPDATE_SNAP_SCHEDULE_TYPE="ext-update-snap-schedule-type";la.DELETE_SNAP_SCHEDULE_TYPE="ext-delete-snap-schedule-type";la.ENABLE_SNAP_SCHEDULE_TYPE="ext-enable-snap-schedule-type";la.DISABLE_SNAP_SCHEDULE_TYPE="ext-disable-snap-schedule-type";t.UserOperationReporter=la})();(function(){function t(Sa,jb,kb){this.toString=function(){return Za.get(jb,kb)};this.getValue=function(){return Sa}}function e(Sa,jb,kb){this.toString=function(){return Za.get(jb,kb)};this.getValue=function(){return Sa};this.isAptoticValue=function(){return 0==Sa};this.isSysVar=function(){return 1==Sa};this.isSysDate=function(){return 2==Sa};this.isSerialNum=function(){return 3==Sa}}function u(){var Sa,jb;this.setScheduleId=function(kb){Sa=kb};this.getScheduleId=function(){return Sa};this.setCodingRuleEntryInfoList=
function(kb){jb=kb};this.getCodingRuleEntryInfoList=function(){return jb};this.copy=function(){var kb=new u;kb.setScheduleId(Sa);if(jb){for(var qb=[],Ka=0;Ka<jb.length;Ka++)qb.push(jb[Ka].copy());kb.setCodingRuleEntryInfoList(qb)}return kb};this.fromJsonObject=function(kb){Sa=kb.scheduleId;jb=[];kb=kb.codingRuleEntryInfoList;for(var qb=0;qb<kb.length;qb++){var Ka=new L;Ka.fromJsonObject(kb[qb]);jb.push(Ka)}};this.toJsonObject=function(){var kb={};kb.scheduleId=Sa;for(var qb=[],Ka=0;Ka<jb.length;Ka++){var tb=
jb[Ka].toJsonObject();qb.push(tb)}kb.codingRuleEntryInfoList=qb;return kb}}function L(){var Sa,jb,kb,qb,Ka,tb,wb,ub=-1;this.setId=function(db){Sa=db};this.getId=function(){return Sa};this.setType=function(db){jb=db};this.getType=function(){return jb};this.setIndex=function(db){kb=db};this.getIndex=function(){return kb};this.setPrefix=function(db){qb=db};this.getPrefix=function(){return qb};this.setSuffix=function(db){Ka=db};this.getSuffix=function(){return Ka};this.setSeparator=function(db){tb=db};
this.getSeparator=function(){return tb};this.setAttributeValue=function(db){wb=db};this.getAttributeValue=function(){return wb};this.setSerialNumber=function(db){ub=db};this.getSerialNumber=function(){return ub};this.copy=function(){var db=new L;db.setId(Sa);db.setType(jb);db.setIndex(kb);db.setAttributeValue(wb);db.setPrefix(qb);db.setSuffix(Ka);db.setSeparator(tb);db.setSerialNumber(ub);return db};this.fromJsonObject=function(db){Sa=db.id;jb=db.type;kb=db.index;qb=db.prefix;Ka=db.suffix;tb=db.separator;
wb=db.attributeValue;ub=db.serialNumber};this.toJsonObject=function(){var db={};db.id=Sa;db.type=jb;db.index=kb;db.prefix=qb;db.suffix=Ka;db.separator=tb;db.attributeValue=wb;db.serialNumber=ub;return db}}function ba(){var Sa,jb,kb,qb,Ka,tb,wb,ub,db,P,aa,ea,ta,g,fa,q,J,a,R,z,T,h,l,da,E,na,d;this.setScheduleId=function(k){Sa=k};this.getScheduleId=function(){return Sa};this.setScheduleName=function(k){jb=k};this.getScheduleName=function(){return jb};this.setPublishId=function(k){kb=k};this.getPublishId=
function(){return kb};this.setPublishName=function(k){qb=k};this.getPublishName=function(){return qb};this.setPublishCreator=function(k){Ka=k};this.getPublishCreator=function(){return Ka};this.setPublishPath=function(k){tb=k};this.getPublishPath=function(){return tb};this.setPublishPathDisplayText=function(k){wb=k};this.getPublishPathDisplayText=function(){return wb};this.setPublishAuthType=function(k){ub=k};this.getPublishAuthType=function(){return ub};this.setPublishAuthWarningMsg=function(k){db=
k};this.getPublishAuthWarningMsg=function(){return db};this.setReportId=function(k){P=k};this.getReportId=function(){return P};this.setReportName=function(k){aa=k};this.getReportName=function(){return aa};this.setReportCreator=function(k){ea=k};this.getReportCreator=function(){return ea};this.setSchedule=function(k){a=k};this.getSchedule=function(){return a};this.setOverwriteSnap=function(k){q=k};this.getOverwriteSnap=function(){return q};this.setSaveHyperLink=function(k){J=k};this.getSaveHyperLink=
function(){return J};this.getSnapGroupType=function(){return ta};this.setSnapGroupType=function(k){ta=k};this.setSnapGroupId=function(k){g=k};this.getSnapGroupId=function(){return g};this.setSnapGroupName=function(k){fa=k};this.getSnapGroupName=function(){return fa};this.setPlatformName=function(k){R=k};this.getPlatformName=function(){return R};this.setEnableSchedule=function(k){z=k};this.getEnableSchedule=function(){return z};this.setNotifyStrategy=function(k){T=k};this.getNotifyStrategy=function(){return T};
this.getCreatorId=function(){return h};this.setCreatorId=function(k){h=k};this.setCreateDate=function(k){l=k};this.getCreateDate=function(){return l};this.setCreateFormatDate=function(k){da=k};this.getCreateFormatDate=function(){return da};this.setModifierId=function(k){E=k};this.getModifierId=function(){return E};this.setModifyDate=function(k){na=k};this.getModifyDate=function(){return na};this.setModifyFormatDate=function(k){d=k};this.getModifyFormatDate=function(){return d};this.copy=function(){var k=
new ba;k.setScheduleId(Sa);k.setScheduleName(jb);k.setPublishId(kb);k.setPublishName(qb);k.setPublishPath(tb);k.setPublishPathDisplayText(wb);k.setPublishCreator(Ka);k.setPublishAuthType(ub);k.setPublishAuthWarningMsg(db);k.setReportId(P);k.setReportName(aa);k.setReportCreator(ea);k.setSchedule(a.copy());k.setOverwriteSnap(q);k.setSaveHyperLink(J);k.setSnapGroupType(ta);k.setSnapGroupId(g);k.setSnapGroupName(fa);k.setPlatformName(R);k.setEnableSchedule(z);k.setNotifyStrategy(T);k.setCreatorId(h);
k.setCreateDate(l);k.setCreateFormatDate(da);k.setModifierId(E);k.setModifyDate(l);k.setModifyFormatDate(da);return k};this.fromJsonObject=function(k){Sa=k.scheduleId;jb=k.scheduleName;kb=k.publishId;qb=k.publishName;tb=k.publishPath;wb=k.publishPathDisplayText;Ka=k.publishCreator;ub=k.publishAuthType;db=k.publishAuthWarningMsg;P=k.reportId;aa=k.reportName;ea=k.reportCreator;a=new Ba;a.fromJsonObject(k.schedule);q=k.overwriteSnap;J=k.saveHyperLink;ta=k.snapGroupType;g=k.snapGroupId;fa=k.snapGroupName;
R=k.platformName;z=k.enableSchedule;T=k.notifyStrategy;h=k.creatorId;l=k.createDate;da=k.createFormatDate;E=k.modifierId;d=k.modifyFormatDate}}"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.extreport&&(com.kingdee.bos.extreport={});"undefined"==typeof com.kingdee.bos.extreport.snapschedule&&(com.kingdee.bos.extreport.snapschedule={});"undefined"==typeof com.kingdee.bos.extreport.snapschedule.model&&
(com.kingdee.bos.extreport.snapschedule.model={});var la=com.kingdee.bos.extreport.snapschedule.model;la.ScheduleInfoModel=function(){var Sa,jb,kb,qb,Ka,tb,wb,ub,db,P,aa,ea,ta,g,fa,q=[],J=[],a,R,z,T;this.setId=function(h){Sa=h};this.getId=function(){return Sa};this.setScheduleName=function(h){jb=h};this.getScheduleName=function(){return jb};this.setPublishId=function(h){kb=h};this.getPublishId=function(){return kb};this.setPublishName=function(h){qb=h};this.getPublishName=function(){return qb};this.setReportId=
function(h){Ka=h};this.getReportId=function(){return Ka};this.setReportName=function(h){tb=h};this.getReportName=function(){return tb};this.setFilterParam=function(h){wb=h};this.getFilterParam=function(){return wb};this.setSchedule=function(h){ub=h};this.getSchedule=function(){return ub};this.setOverwriteSnap=function(h){db=h};this.getOverwriteSnap=function(){return db};this.setSaveHyperLink=function(h){P=h};this.getSaveHyperLink=function(){return P};this.setSnapGroupType=function(h){aa=h};this.getSnapGroupType=
function(){return aa};this.setSnapGroupId=function(h){ea=h};this.getSnapGroupId=function(){return ea};this.setSnapGroupName=function(h){ta=h};this.getSnapGroupName=function(){return ta};this.setCodingRuleInfo=function(h){g=h};this.getCodingRuleInfo=function(){return g};this.getNotifyStrategy=function(){return fa};this.setNotifyStrategy=function(h){fa=h};this.getUsers=function(){return q};this.setUsers=function(h){q=h};this.getRoles=function(){return J};this.setRoles=function(h){J=h};this.setEnableSchedule=
function(h){a=h};this.getEnableSchedule=function(){return a};this.setPlatformName=function(h){R=h};this.getPlatformName=function(){return R};this.setCreatorId=function(h){z=h};this.getCreatorId=function(){return z};this.setCreateDate=function(h){T=h};this.getCreateDate=function(){return T};this.fromJsonObject=function(h){Sa=h.id;jb=h.scheduleName;kb=h.publishId;qb=h.publishName;Ka=h.reportId;tb=h.reportName;wb=h.filterParam;ub=new Ba;ub.fromJsonObject(h.schedule);db=h.overwriteSnap;P=h.saveHyperLink;
aa=h.snapGroupType;ea=h.snapGroupId;ta=h.snapGroupName;g=new u;g.fromJsonObject(h.codingRuleInfo);fa=h.notifyStrategy;a=h.enableSchedule;R=h.platformName;z=h.creatorId;T=h.createDate};this.toJsonObject=function(){var h={};h.id=Sa;h.scheduleName=jb;h.publishId=kb;h.publishName=qb;h.reportId=Ka;h.reportName=tb;h.filterParam=wb;h.schedule=ub.toJsonObject();h.overwriteSnap=db;h.saveHyperLink=P;h.snapGroupType=aa;h.snapGroupId=ea;h.snapGroupName=ta;h.codingRuleInfo=g.toJsonObject();h.notifyStrategy=fa;
for(var l=[],da=0;da<q.length;da++)l.push(q[da].toJsonObject());h.users=l;l=[];for(da=0;da<J.length;da++)l.push(J[da].toJsonObject());h.roles=l;h.enableSchedule=a;h.platformName=R;h.creatorId=z;h.createDate=T;return h}};la.CodingRuleInfoModel=u;la.CodingRuleEntryInfoModel=L;la.ScheduleVOModel=ba;la.FilterSchemeModel=function(){var Sa,jb,kb,qb;this.setCaption=function(Ka){Sa=Ka};this.getCaption=function(){return Sa};this.setValue=function(Ka){jb=Ka};this.getValue=function(){return jb};this.setIsInvalid=
function(Ka){kb=Ka};this.getIsInvalid=function(){return kb};this.setShareStrategy=function(Ka){qb=Ka};this.getShareStrategy=function(){return qb};this.fromJsonObject=function(Ka){Sa=Ka.caption;jb=Ka.value;kb=Ka.isInvalid;qb=Ka.shareStrategy};this.toJsonObject=function(){var Ka={};Ka.caption=Sa;Ka.value=jb;Ka.isInvalid=kb;Ka.shareStrategy=qb;return Ka}};var Ba,Za,va={},wa={},Na={},Va={},xb={};va.TYPE_ALL="1";va.TYPE_SUCCESS="2";va.TYPE_FAIL="3";wa.OVERWRITE="1";wa.IGNORE="0";Na.YES="1";Na.NO="0";Va.YES=
"1";Va.NO="0";xb.AUTH="true";xb.NO_AUTH="false";la.ScheduleNotifyStrategy=va;la.OverwriteSnapType=wa;la.SaveHyperLinkType=Na;la.EnableScheduleType=Va;la.PublishAuthType=xb;la.CodingRuleItemModel=e;la.ScheduleNotifyStrategyModel=t;(function(){Sa=com.kingdee.bos.qing.framework.common;Za=Sa.MultilanguageManager.createPackageAccessor(com.kingdee.bos.extreport.snapschedule);var Sa=com.kingdee.bos.qing.schedule;Ba=Sa.QingSchedule})();t.SUPPORTED_STRATEGY_TYPE=[new t(va.TYPE_ALL,"notifyAll","\u59cb\u7ec8\u901a\u77e5"),
new t(va.TYPE_SUCCESS,"notifyOnSuccess","\u4ec5\u6210\u529f\u65f6\u901a\u77e5"),new t(va.TYPE_FAIL,"notifyOnFail","\u4ec5\u5931\u8d25\u65f6\u901a\u77e5")];t.getScheduleNotifyStrategyModelByType=function(Sa){for(var jb=0;jb<t.SUPPORTED_STRATEGY_TYPE.length;jb++)if(t.SUPPORTED_STRATEGY_TYPE[jb].getValue()==Sa)return t.SUPPORTED_STRATEGY_TYPE[jb];return null};e.SUPPORTED_RULE_TYPE=[new e(0,"aptoticValue","\u56fa\u5b9a\u503c"),new e(1,"sysVarValue","\u7cfb\u7edf\u9884\u8bbe\u53d8\u91cf"),new e(2,"sysDate",
"\u7cfb\u7edf\u65e5\u671f"),new e(3,"serialNum","\u6d41\u6c34\u53f7")];e.getCodingRuleItemModelByType=function(Sa){for(var jb=0;jb<e.SUPPORTED_RULE_TYPE.length;jb++)if(e.SUPPORTED_RULE_TYPE[jb].getValue()==Sa)return e.SUPPORTED_RULE_TYPE[jb];return null}})();(function(){function t(){function A(m){KTDefaultCellRender.call(this,m);var qa=this,ra=this.paintCellUI;this.paintCellUI=function(ya,ja){var La=qa.getCurrentRowIdx(),bb=qa.getCurrentRow(),Ea=qa.getCurrentColIdx(),Wa=bb.getUserObject();if(La<q.getHeadRowCount())ra(ya,ja),0==Ea&&1==La&&(bb=C&&C.isChecked()?!0:!1,C=new Oa,C.setChecked(bb),C.addCheckedListener(function(V,X){if(X){if(X=V.isChecked())for(var Ia in I)Ja[Ia]=1,ia[Ia]=I[Ia].getUserObject(),I[Ia].setChecked(X);else for(Ia in I)delete Ja[Ia],
delete ia[Ia],I[Ia].setChecked(X);O(V)}}),C.addCheckedListener(O),ja=C.getJqUi(),ja.addClass("extreport-schedule-center-table-checkbox"),ja.appendTo(ya));else if(0==Ea){ja=Wa.getScheduleId();La=new Oa;bb=!1;if(sa){Ea=Object.keys(Ja);for(var N=0;N<Ea.length;N++)if(ja===Ea[N]){bb=!0;break}}else bb=(bb=I[ja])&&bb.isChecked();La.setChecked(bb);La.setUserObject(Wa);La.addCheckedListener(O);La.addCheckedListener(function(V,X){if(X){X=V.isChecked();var Ia=V.getUserObject().getScheduleId();I[Ia].setChecked(X);
if(X){Ja[Ia]=1;ia[Ia]=V.getUserObject();O(V);for(var Ma in I)if(!I[Ma].isChecked())return}else delete Ja[Ia],delete ia[Ia],O(V);C.setChecked(X)}});I[ja]=La;ja=La.getJqUi();ja.addClass("extreport-schedule-center-table-checkbox");ja.appendTo(ya)}else 2==Ea?(ja=new w,ja.addStateChangeListener(function(V,X,Ia){X&&y&&y(Wa.getScheduleId(),Ia?Ga.YES:Ga.NO)}),ja.setOn(Ga.YES==Wa.getEnableSchedule()?!0:!1),ja=ja.getJqUi(),ja.addClass("extreport-schedule-center-table-checkbox"),ja.appendTo(ya)):zb(ya,Ea,Wa)};
var zb=function(ya,ja,La){var bb=!1,Ea="";switch(ja){case 1:var Wa=La.getScheduleName();break;case 3:La.getPublishId()?Wa=La.getPublishPathDisplayText()+La.getPublishName():(bb=!0,Wa=Ea=a.get("publishNotExist","\u53d1\u5e03\u8bb0\u5f55\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664"));break;case 4:Wa=La.getPublishCreator();break;case 5:La.getPublishId()&&!La.getReportId()?(bb=!0,Wa=Ea=a.get("reportNotExist","\u62a5\u8868\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664")):Wa=La.getReportName();break;
case 6:Wa=La.getReportCreator();break;case 7:Wa=La.getPlatformName();break;case 8:Wa=La.getCreateFormatDate();break;case 9:Wa=La.getModifyFormatDate()}bb&&(La=Ea,bb=J.createWarning(),bb.attr("title",La),bb.addClass("extreport-schedule-center-warning-icon"),bb.appendTo(ya));La=$("<div>");La.addClass("extreport-schedule-center-table-cell-text");if(1==ja||5==ja){ja=Wa;if(xa&&ja){Wa=xa.toUpperCase();bb=ja.toUpperCase();Ea=bb.split(Wa);var N=Wa.length,V;for(V in Ea){var X=bb.indexOf(Ea[V]),Ia=ja.substr(pb,
Ea[V].length);X+=Ea[V].length;var Ma=bb.length-X;bb=bb.substr(X,Ma);ja=ja.substr(X,Ma);X=$("<span>");X.text(Ia);X.appendTo(La);if(V!=Ea.length-1&&1<Ea.length){var pb=bb.indexOf(Wa);Ia=ja.substr(pb,N);X=pb+N;Ma=bb.length-X;bb=bb.substr(X,Ma);ja=ja.substr(X,Ma);X=$("<span>");X.text(Ia);X.css("color","red");X.clone().appendTo(La)}}}else La.text(ja);La.attr("title",La.text())}else La.attr("title",Wa),La.text(Wa);La.appendTo(ya)}}var n=this,M,F,C,I={},Y,xa,Ja={},ia={},G,y;this.setItemCheckedCallback=function(m){G=
m};this.setSwitchStateChangeCallback=function(m){y=m};this.setSelectedScheduleId=function(m){Ja={};ia={};if(void 0!==m&&null!==m&&0<m.length)for(var qa=0;qa<m.length;qa++)Ja[m[qa].getScheduleId()]=1,ia[m[qa].getScheduleId()]=m[qa];n.updateUi()};this.getSelectedSchedule=function(){return Object.values(ia)};this.getJqUi=function(){if(!M&&!F){F=q.createTable();var m=new A(F);m.setOutsideVisible(!1);F.setCellRender(m);F.setDraggableAdjusting(!0,3,0,new db);F.setColumnFitVisibleWidth(!0);F.setSyncUIWhenModelChanged(!0);
za();M=$(F.getUI());g.layoutCtrlWithLRTB(M,0,0,null,32,10,null)}return M};this.setSearchText=function(m){xa=m};this.setCheckedBox=function(m){for(var qa=Object.keys(I),ra=0;ra<qa.length;ra++)m==qa[ra]&&I[qa[ra]].setChecked(!0)};var sa=!1;this.updateUi=function(m,qa){q.clear(F);sa=!0;I=m?$.extend(!0,{},m):{};if(Y&&0<Y.length)for(za(),m=0;m<Y.length;m++){var ra=Y[m];q.createRow(F).setUserObject(ra)}q.refresh(F);qa&&F.updateUI(!0,qa);qa=0;ra=Object.keys(I);for(m=0;m<ra.length;m++)I[ra[m]].isChecked()&&
qa++;m=Object.keys(Ja).length;G&&G(qa,m);m=0<qa&&qa==Object.keys(I).length;C&&C.setChecked(m);sa=!1};this.keepScrollStatus=function(){return F.keepScrollStatus()};this.resize=function(){var m=n.keepScrollStatus(),qa=$.extend(!0,{},I);n.updateUi(qa,m)};this.setModel=function(m){Y=m};this.getSelectedRowModel=function(){for(var m=[],qa=Object.keys(I),ra=0,zb=qa.length;ra<zb;ra++){var ya=I[qa[ra]];ya.isChecked()&&m.push(ya.getUserObject())}return m};var za=function(){F.addColumns(10);F.getColumn(0).setWidth(26);
F.getColumn(1).setWidth(100);F.getColumn(3).setWidth(150);F.getColumn(4).setWidth(100);F.getColumn(5).setWidth(100);F.getColumn(6).setWidth(100);F.getColumn(7).setWidth(200);F.getColumn(2).setWidth(50);F.getColumn(8).setWidth(100);F.getColumn(9).setWidth(100);var m=q.createHeadRow(F);m.getCell(1).setValue(a.get("scheduleName","\u8c03\u5ea6\u540d\u79f0"));m.getCell(3).setValue(a.get("publishPath","\u53d1\u5e03\u8def\u5f84"));m.getCell(4).setValue(a.get("publishCreator","\u53d1\u5e03\u4eba"));m.getCell(5).setValue(a.get("reportName",
"\u62a5\u8868\u540d\u79f0"));m.getCell(6).setValue(a.get("reportCreator","\u62a5\u8868\u521b\u5efa\u4eba"));m.getCell(7).setValue(a.get("platformName","\u540e\u53f0\u4e8b\u52a1\u540d\u79f0"));m.getCell(2).setValue(a.get("enableScheduleYesOrNo","\u542f\u7528\u72b6\u6001"));m.getCell(8).setValue(a.get("createTime","\u521b\u5efa\u65f6\u95f4"));m.getCell(9).setValue(a.get("modifyTime","\u4fee\u6539\u65f6\u95f4"))},O=function(m){m=0;for(var qa=Object.keys(I),ra=0;ra<qa.length;ra++)I[qa[ra]].isChecked()&&
m++;qa=Object.keys(Ja).length;G&&G(m,qa)}}function e(A,n){H.call(this);var M=this,F=this.protectedMethod,C,I=new u(A,n),Y=new L(A,n),xa=function(y,sa){sa instanceof u?I.fireTabChangeEvent():Y.fireTabChangeEvent()},Ja=new pa;(function(){F.setTitle(a.get("scheduleSetting","\u8c03\u5ea6\u8bbe\u7f6e"));var y=Math.max(I.getWidth(),Y.getWidth()),sa=Math.max(Y.getHeight(),Y.getHeight());I.setMessageCurtain(F.getMessageCurtain());Y.setMessageCurtain(F.getMessageCurtain());Ja.setTabLevel(pa.SECOND_LEVEL);
Ja.addTab(I,!0);Ja.addTab(Y,!1);Ja.setCurrentTabPane(Y);Ja.addTabChangedListener(xa);M.setSize(y,sa);F.setSelectable(!1);F.setContentPaneCreator(function(){return Ja.getJqUi()});F.setClosingChecker2(function(za){ia(za)},function(za){G();za(!0)},!0);F.setClosingAction(function(za){})})();this.setFunSuccessCallback=function(y){C=y};this.setBasicPanelCurrentTab=function(){Ja.setCurrentTabPane(I)};var ia=function(y){var sa=I.checkUIInput(function(za){if(sa=Y.checkUIInput(function(O){O=I.getModelFromUI();
var m=Y.getModelFromUI();O.setSnapGroupType(m.getSnapGroupType());O.setSnapGroupId(m.getSnapGroupId());O.setSnapGroupName(m.getSnapGroupName());O.setSaveHyperLink(m.getSaveHyperLink());O.setNotifyStrategy(m.getNotifyStrategy());O.setUsers(m.getUsers());O.setRoles(m.getRoles());n&&n.model&&(O.setId(n.model.getScheduleId()),O.setEnableSchedule(n.model.getEnableSchedule()),O.setPlatformName(n.model.getPlatformName()),O.setCreatorId(n.model.getCreatorId()),O.setCreateDate(n.model.getCreateDate()));m=
A.createFacade(function(qa){A.getMessageCurtain().showSuccess(a.get("saveScheduleSuccess","\u4fdd\u5b58\u8c03\u5ea6\u6210\u529f\u3002"));C&&C();G();y(!0)},function(qa,ra){if(8088E3<qa)return F.getMessageCurtain().showPrompt(ra,15<ra.length?5E3:2E3),y(!1),!0;y(!1);return!1});m.setShowBlocking(!1);m.saveScheduleInfo(O.toJsonObject());n&&n.model?Ta.occur(Ta.UPDATE_SNAP_SCHEDULE_TYPE,O.getScheduleName()):Ta.occur(Ta.CREATE_SNAP_SCHEDULE_TYPE,O.getScheduleName())}))F.getMessageCurtain().showPrompt(sa,
2E3),y(!1)});sa&&(F.getMessageCurtain().showPrompt(sa,2E3),y(!1))},G=function(){if(0<I.getFilterParamCachedPage().length){var y=A.createFacade(function(){},function(){return!0});y.setShowBlocking(!1);y.cleanReportRuntimeCache(I.getFilterParamCachedPage());I.clearFilterParamCachedPage()}}}function u(A,n){qb.call(this);var M=this,F,C,I,Y=new v,xa,Ja,ia,G=[],y,sa,za,O;this.getTitle=function(){return a.get("basicSetting","\u57fa\u672c\u9009\u9879")};this.fireTabChangeEvent=function(){};this.getFilterParamCachedPage=
function(){return G};this.clearFilterParamCachedPage=function(){G=[]};this.checkUIInput=function(ya){var ja=$.trim(I.getText());if(void 0==ja||0==ja.length)return a.get("nameNotEmpty","\u8bf7\u8f93\u5165\u8c03\u5ea6\u540d\u79f0\u3002");if(50<ja.length)return a.get("nameTooLong","\u957f\u5ea6\u4e0d\u80fd\u8d85\u8fc750\u4e2a\u5b57\u7b26\u3002");if(!c.isValidString(ja))return a.get("invalidName","\u540d\u79f0\u53ea\u80fd\u7531\u6c49\u5b57\u3001\u5b57\u6bcd\u3001\u6570\u5b57\u6216\u4e0b\u5212\u7ebf\u7ec4\u6210\uff0c\u4e14\u4e0d\u80fd\u4ee5\u6570\u5b57\u5f00\u5934\u3002");
ja=Ja.getSelectedReport();if(!ja)return a.get("selectReport","\u8bf7\u9009\u62e9\u62a5\u8868\u6a21\u677f\u3002");if(!ja.reportName)return a.get("reportNotExistReselect","\u62a5\u8868\u6a21\u677f\u5df2\u88ab\u5220\u9664\uff0c\u8bf7\u91cd\u65b0\u9009\u62e9\u3002");if(ia.isNeedFilterParam()&&!ia.getSelectedFilterParam())return a.get("selectFilterParam","\u8bf7\u8bbe\u7f6e\u8fc7\u6ee4\u53c2\u6570\u3002");if(!y.getSelectedSchedule())return a.get("selectSchedule","\u8bf7\u8bbe\u7f6e\u8c03\u5ea6\u8ba1\u5212\u3002");
if(!O.getSelectedCodingRuleInfo())return a.get("selectCodingRule","\u8bf7\u8bbe\u7f6e\u7f16\u7801\u89c4\u5219\u3002");ya(!0)};this.getModelFromUI=function(){var ya=new ab;ya.setScheduleName($.trim(I.getText()));var ja=Ja.getSelectedReport();ya.setPublishId(ja.publishId);ya.setPublishName(ja.publishName);ya.setReportId(ja.reportId);ya.setReportName(ja.reportName);if(ja=ia.getSelectedFilterParam())delete ja.pageId,delete ja.isDefaultChange,delete ja.flag,ya.setFilterParam(JSON.stringify(ja));ya.setSchedule(y.getSelectedSchedule());
sa.isChecked()?ya.setOverwriteSnap($a.OVERWRITE):za.isChecked()&&ya.setOverwriteSnap($a.IGNORE);ya.setCodingRuleInfo(O.getSelectedCodingRuleInfo());return ya};this.getJqUi=function(){if(!F){F=$("<div>");C=$("<div>");C.addClass("extreport-schedule-center-panel");ra();var ya=new b;ya.setRequired(!0);var ja=ya.getJqUi();ya.setText(a.get("report","\u62a5\u8868\u6a21\u677f"));ja.attr("title",ya.getText());Ja=new Ka(A);Ja.setNeedTooltips(!0);Ja.setMessageCurtain(M.getMessageCurtain());Ja.setFunSelectedItemListener(zb);
ya=Ja.getJqUi();g.layoutCtrl(ja,15,55,115,23);g.layoutCtrl(ya,130,55,211,23);ja.appendTo(C);ya.appendTo(C);ya=new b;ya.setRequired(!1);ja=ya.getJqUi();ya.setText(a.get("filterParam","\u8fc7\u6ee4\u53c2\u6570"));ja.attr("title",ya.getText());ia=new tb(A);ia.setMessageCurtain(M.getMessageCurtain());n&&n.model&&ia.setScheduleId(n.model.getScheduleId());ya=ia.getJqUi();g.layoutCtrl(ja,15,100,115,23);g.layoutCtrl(ya,130,100,211,23);ja.appendTo(C);ya.appendTo(C);ya=new b;ya.setRequired(!0);ja=ya.getJqUi();
ya.setText(a.get("scheduleCron","\u8c03\u5ea6\u8ba1\u5212"));ja.attr("title",ya.getText());y=new wb(A);y.setMessageCurtain(M.getMessageCurtain());ya=y.getJqUi();g.layoutCtrl(ja,15,145,115,23);g.layoutCtrl(ya,130,145,211,23);ja.appendTo(C);ya.appendTo(C);ya=new b;ya.setRequired(!1);ja=ya.getJqUi();ya.setText(a.get("snapOverwriteStrategy","\u540c\u540d\u5feb\u7167\u8986\u76d6\u7b56\u7565"));ja.attr("title",ya.getText());sa=new r;za=new r;sa.setText(a.get("overwrite","\u8986\u76d6"));sa.setChecked(!0);
za.setText(a.get("ignore","\u5ffd\u7565"));ya=sa.getJqUi();var La=za.getJqUi(),bb=new p;bb.addElement(sa);bb.addElement(za);g.layoutCtrl(ja,15,190,115,23);g.layoutCtrl(ya,130,190,100,23);g.layoutCtrl(La,240,190,100,23);ja.appendTo(C);ya.appendTo(C);La.appendTo(C);ya=new b;ja=ya.getJqUi();ya.setRequired(!0);ya.setText(a.get("codingRule","\u7f16\u7801\u89c4\u5219"));ja.attr("title",ya.getText());O=new ub(A);O.setMessageCurtain(M.getMessageCurtain());ya=O.getJqUi();g.layoutCtrl(ja,15,235,115,23);g.layoutCtrl(ya,
130,235,211,23);ja.appendTo(C);ya.appendTo(C);C.appendTo(F);m()}return F};var m=function(){if(n){I.setText(n.model.getScheduleName());I.setTooltips(n.model.getScheduleName());var ya={publishId:n.model.getPublishId(),publishName:n.model.getPublishName(),publishCreatorName:n.model.getPublishCreator(),publishAuthType:n.model.getPublishAuthType(),publishAuthWarningMsg:n.model.getPublishAuthWarningMsg(),path:n.model.getPublishPath(),reportId:n.model.getReportId(),reportName:n.model.getReportName(),reportCreatorName:n.model.getReportCreator()};
Ja.setSelectedReport(ya);y.setSelectedSchedule(n.model.getSchedule());n.model.getOverwriteSnap()==$a.OVERWRITE?(sa.setChecked(!0),za.setChecked(!1)):(sa.setChecked(!1),za.setChecked(!0));ya=A.createFacade(function(ja){var La=new ob;La.fromJsonObject(ja);O.setSelectedCodingRuleInfo(La)},function(ja,La){return 8088E3<ja?(M.getMessageCurtain().showPrompt(La,2E3),!0):!1});ya.setShowBlocking(!0);ya.loadCodingRuleInfo(n.model.getScheduleId())}},qa=function(ya,ja){ia.isNeedFilterParam()?(ja=JSON.parse(ja),
ja.pageId=ya,ja.isDefaultChange=!1,ja.flag="1",ia.setSelectedFilterParam(ja)):ia.setSelectedFilterParam(null)},ra=function(){var ya=new b,ja=ya.getJqUi();ya.setRequired(!0);ya.setText(a.get("scheduleName","\u8c03\u5ea6\u540d\u79f0"));ja.attr("title",ya.getText());I=new f;var La=$("<div>");I.addEditedListener(function(Ea){clearTimeout(xa);xa=setTimeout(function(){var Wa=I.getText();if(""!=Wa){var N=A.createFacade(function(V){La.empty();V=V[I.getText()];if(null!=V&&0<V.length){Y.setCustomItemPainter(function(pb,
Ab){pb.on("mousedown",function(){I.setText(Ab);I.setTooltips(Ab);La.remove()});pb.text(Ab);pb.attr("title",Ab)});Y.setItemModels(V);Y.setSelecteds([V[0]]);V=Y.getJqUi();var X=bb.width(),Ia=bb.css("left"),Ma=bb.position().top+bb.height();g.layoutCtrl(La,Ia,Ma,X,122);La.css("z-index","9999");V.css({width:X+"px",height:"122px"});V.find(".sa-ctrl-list-owner").css("height","100px");X=$("<div>");X.css({position:"absolute","z-index":"9999",color:"#c5c5c5"});X.text(a.get("historyScheduleName","\u5386\u53f2\u8c03\u5ea6\u540d\u79f0"));
X.css({right:"13px",top:"100px"});V.appendTo(La);X.appendTo(La);La.appendTo(C)}else La.remove()},function(){return!0});N.setShowBlocking(!1);N.getScheduleNameByInputText(Wa)}else La.remove()},1E3)});I.addBlurListener(function(){La.remove()});I.protectedMethod.getJqInput().css({"text-overflow":"ellipsis",overflow:"hidden","white-space":"nowrap","font-family":h.getFontName()});var bb=I.getJqUi();g.layoutCtrl(ja,15,15,115,23);g.layoutCtrl(bb,130,15,215,23);ja.appendTo(C);bb.appendTo(C)},zb=function(ya,
ja){var La=Ja.getSelectedReport(),bb=La.reportId,Ea=La.publishId,Wa=La.bRestoreIfGetFilterParamFail;if(bb&&Ea){var N=function(Ia,Ma){ja&&ja(Ia,Ma);Wa?(ia.setSelectedReport(null),ia.setNeedFilterParam(!0),ia.setSelectedFilterParam(null)):(ia.setSelectedReport(Ja.getSelectedReport()),n&&n.model&&n.model.getReportId()==bb&&n.model.getPublishId()==Ea&&(V=function(pb){pb?(ia.setNeedFilterParam(!0),qa(null,pb)):(ia.setNeedFilterParam(!1),ia.updateUI())},N=function(pb,Ab){return 8088E3<pb?(M.getMessageCurtain().showPrompt(Ab,
2E3),!0):!1},X=A.createFacade(V,N),X.setShowBlocking(!0),X.loadFilterParam(n.model.getScheduleId())));return 8088E3<Ia?(M.getMessageCurtain().showPrompt(Ma,2E3),!0):!1},V=function(Ia){ya&&ya();ia.setSelectedReport(Ja.getSelectedReport());-1==G.indexOf(Ia.pageId)&&G.push(Ia.pageId);Ia.hasFilter?(ia.setNeedFilterParam(!0),ia.setFilerInfo(Ia),n&&n.model&&n.model.getReportId()==bb&&n.model.getPublishId()==Ea?(V=function(Ma){Ma?qa(Ia.pageId,Ma):ia.updateUI()},N=function(Ma,pb){return 8088E3<Ma?(M.getMessageCurtain().showPrompt(pb,
2E3),!0):!1},X=A.createFacade(V,N),X.setShowBlocking(!0),X.loadFilterParam(n.model.getScheduleId())):ia.updateUI()):(ia.setNeedFilterParam(!1),ia.updateUI())},X=A.createFacade(V,N);X.setShowBlocking(!0);X.getReportFilter(bb,Ea)}}}function L(A,n){qb.call(this);var M=this,F,C,I,Y,xa;this.getTitle=function(){return a.get("output","\u8f93\u51fa")};this.fireTabChangeEvent=function(){};this.checkUIInput=function(ia){if(!C)return a.get("selectOutputPanel","\u8bf7\u8bbe\u7f6e\u8f93\u51fa\u9762\u677f\u3002");
var G=C.checkUIInput(function(y){ia(y)});if(G)return G};this.getModelFromUI=function(){var ia=C.getModelFromUI(),G=new ab;G.setSnapGroupType(ia.getSaveSnapGroupType());G.setSnapGroupId(ia.getSaveSnapGroupId());G.setSnapGroupName(ia.getSaveSnapGroupName());G.setSaveHyperLink(ia.isHyperLink()?gb.YES:gb.NO);G.setNotifyStrategy(xa.getSelected().getValue());G.setUsers(Y.getSelectedValue());G.setRoles(I.getSelectedValue());return G};this.getJqUi=function(){if(!F){F=$("<div>");var ia={};n&&(ia.snapGroupTypeId=
n.model.getSnapGroupType(),ia.snapGroupId=n.model.getSnapGroupId(),ia.snapGroupName=n.model.getSnapGroupName(),ia.isHyperLink=n.model.getSaveHyperLink()==gb.YES?!0:!1);C=new hb(x.SNAP_SCHEDULE,null,ia);C.setOuterMessageCurtain(M.getMessageCurtain());C.getJqUi().appendTo(F);ia=new b;ia.setText(a.get("msgNotify","\u6d88\u606f\u901a\u77e5"));var G=ia.getJqUi();G.attr("title",ia.getText());I=new B;var y=I.getJqUi();Y=new S;var sa=Y.getJqUi();ia=145;g.layoutCtrl(G,15,ia,115,23);g.layoutCtrl(y,130,ia,211,
23);g.layoutCtrl(sa,130,ia+45,211,23);G.appendTo(F);y.appendTo(F);sa.appendTo(F);ia+=90;G=new b;G.setText(a.get("msgNotifyStrategy","\u6d88\u606f\u901a\u77e5\u7b56\u7565"));y=G.getJqUi();g.layoutCtrl(y,15,ia,115,23);y.appendTo(F);y.attr("title",G.getText());xa=new na;xa.setItemModels(Aa.SUPPORTED_STRATEGY_TYPE);xa.setSelected(Aa.SUPPORTED_STRATEGY_TYPE[0]);G=xa.getJqUi();g.layoutCtrl(G,130,ia,215,23);G.appendTo(F);Ja()}return F};var Ja=function(){if(n){A.createFacade(function(G){var y=[],sa=G[0];
if(sa)for(var za=0;za<sa.length;za++){var O=new U;O.fromJsonObject(sa[za]);y.push(O)}sa=[];if(G=G[1])for(za=0;za<G.length;za++)O=new U,O.fromJsonObject(G[za]),sa.push(O);Y.setSelectedValue(y);I.setSelectedValue(sa)},function(G,y){return 8088E3<G?(M.getMessageCurtain().showPrompt(y,2E3),!0):!1}).getScheduleNotifyUserRoles(n.model.getScheduleId());var ia=n.model.getNotifyStrategy();ia&&xa.setSelected(Aa.getScheduleNotifyStrategyModelByType(ia))}}}function ba(A){var n=this,M,F,C,I,Y,xa,Ja,ia,G,y,sa,
za=[],O,m={},qa={},ra,zb=!1;this.getWidth=function(){return 770};this.getHeight=function(){return 450};this.setMessageCurtain=function(Ca){I=Ca};this.getMessageCurtain=function(){return I};this.getJqUi=function(){M||ya();return M};this.checkUIInput=function(Ca){Ca(!0)};this.modelToUI=function(Ca){sa=Ca;G&&G.setAutoSelectedData(Ca)};this.getModelFromUI=function(){return sa};this.closedCallback=function(){A.removeWindowResizeListener(Wa)};var ya=function(){M=$("<div>");g.layoutCtrlWithLRTB(M,0,0,null,
0,0,null);var Ca=$("<div class='sa-ctrl-dialog-toolbar'>");Ca.addClass("extreport-schedule-center-dialog-toolbar");var Qa=ja(Ya.getCardFilterType(),La).getJqUi();Qa.appendTo(Ca);Ca.appendTo(M);Qa.hide();A.createFacade(function(ib){1==ib.isPresetManagePermission&&(zb=!0,Qa.show())}).checkPresetPermission();bb().appendTo(Ca);Ca.appendTo(M);Ca=$("<div>");Ca.addClass("extreport-schedule-center-dialog");g.layoutCtrlWithLRTB(Ca,5,0,null,41,0,null);N(Ca);Ca.appendTo(M)},ja=function(Ca,Qa){var ib=new ha;
ib.setSearchType(Ca);ib.setSelectedChangedListener(Qa);return ib},La=function(Ca,Qa,ib){Ca=ib.getTypeId();G.setLoadItemListener(Ob(ra,Ca));Ea()},bb=function(){if(F)var Ca=F.getJqUi();else{F=new k;F.addSearchListener(Ea);F.setSearchListenerDelay(1E3);F.setPlaceholder(a.get("searchBoxPlaceholder","\u641c\u7d22\u53d1\u5e03\u540d\u79f0/\u62a5\u8868\u540d\u79f0"));F.setShowSearchIcon(!0);Ca=F.getJqUi();Ca.addClass("extreport-schedule-center-dialog-toolbar-searchbox");var Qa="en"==ea.getUrlParamValue("language")?
"243px":"181px";Ca.css({width:Qa})}return Ca},Ea=function(){C=F.getText().trim();y.setSearchText(C);if(0<C.length){var Ca={};qa={};for(var Qa in m){var ib=pb(Qa),vb=0,Cb=[],Bb=m[Qa];if(Bb&&0<Bb.length)for(var Db=0;Db<Bb.length;Db++){var Eb=Bb[Db],Ib=-1<Eb.publishName.toUpperCase().indexOf(C.toUpperCase()),Kb=-1<Eb.reportName.toUpperCase().indexOf(C.toUpperCase());if(Ib||Kb)Cb.push(Eb),vb++}qa[Qa]=Cb;Ca[ib]=vb}G.setSearchStatus(!0);G.updateTreeUi(O,Ca)}else G.setSearchStatus(!1),G.updateTreeUi(O)},
Wa=function(){G&&G.updateUi()},N=function(Ca){ia=new D;ia.setHorizontalSplit(!0);ia.setEnabled(!0);ia.setSplitLineWide(4);ia.setResizeMode(D.RESIZE_MODE_FIRST_FIXED);ia.setFirstSize(230,110,320);ia.setSecondSize(531);Ca.append(ia.getJqUi());Ja=X();xa=V();ia.setFirstChild(D.createChildWrapper(xa,function(){xa&&xa.css({width:ia.getNonemptyFirstWide()+"px"});Ja&&Ja.css({width:ia.getNonemptySecondWide()+"px"});clearTimeout(Y);Y=setTimeout(function(){G&&G.updateUi();y&&y.updateUi(sa)},100)}));ia.setSecondChild(D.createChildWrapper(Ja));
A.addWindowResizeListener(Wa)},V=function(){var Ca=$("<div>"),Qa=new Ba;Qa.setTreeItemSelectedListener(Ma);Qa.setLoadItemListener(Ob);G=Qa;G.getJqUi().appendTo(Ca);return Ca},X=function(){var Ca=$("<div>");Ca.css({"border-left":"1px solid #E5E5E5"});y=new Va;y.setItemSelectedListener(Ia);y.getJqUi().appendTo(Ca);return Ca},Ia=function(Ca){sa=Ca},Ma=function(Ca){za=[];for(var Qa in m)pb(Qa)==G.getNodePath(Ca)&&(za=C&&0<C.length?qa[Qa]:m[Qa]);za&&za.sort(function(ib,vb){return vb.createTime-ib.createTime});
y.setModel(za);y.updateUi(sa)},pb=function(Ca){try{var Qa=JSON.parse(Ca);if("object"==typeof Qa){var ib=Qa.cloudId+Qa.appId;Qa.appMenuId&&(ib+=Qa.appMenuId);Qa.appMenuId2&&(ib+=Qa.appMenuId2)}else ib=Ca}catch(vb){ib=Ca}return ib},Ab=function(Ca,Qa){Ca.push(Qa);if(Qa instanceof Q&&(Qa=Qa.getChildren()))for(var ib=0;ib<Qa.length;ib++)Ab(Ca,Qa[ib])},Lb=function(Ca,Qa){-1==Ca.indexOf(Qa)&&Ca.push(Qa);if(Qa=Qa.getChildren())for(var ib=0;ib<Qa.length;ib++)Qa[ib]instanceof ua?Lb(Ca,Qa[ib]):-1==Ca.indexOf(Qa[ib])&&
Qa[ib].getId()&&Ca.push(Qa[ib])},Ob=function(Ca,Qa){ra=Ca;var ib=function(Bb,Db){A.getMessageCurtain().showPrompt(Db,2E3);return!0},vb=function(Bb){if(Bb){var Db=new Q;Db.setChildren([]);if(Bb&&Bb.children&&0<Bb.children.length){var Eb=new Q;Eb.fromJsonObject(Bb);Eb.setDisplayName(a.get("appMenu","\u5e94\u7528\u83dc\u5355"));Eb.setParentNode(Db);Db.getChildren().push(Eb)}vb=function(Ib){if(Ib&&0<Ib.length){var Kb=new Q;Kb.setDisplayName(a.get("dataCenter","\u6570\u636e\u5de5\u4f5c\u53f0\u9605\u89c8\u5939"));
Kb.setParentNode(Db);for(var Ra=[],Ua=0;Ua<Ib.length;Ua++){var mb=new ua;mb.fromJsonObject(Ib[Ua]);mb.setParentNode(Kb);Ra.push(mb)}Ib=[];for(Ua=0;Ua<Ra.length;Ua++)Lb(Ib,Ra[Ua]);Kb.setChildren(Ib);Db.getChildren().push(Kb)}Kb=Db.getChildren();O=[];for(Ra=0;Ra<Kb.length;Ra++)Ab(O,Kb[Ra]);Pb(Ca,Qa)};Cb=A.createAnalysisCenterFacade(vb,ib);Cb.setShowBlocking(!1);Cb.loadAnalysisCenterGroupExtReport(zb)}};var Cb=A.createPublishFacade(vb,ib);Cb.setShowBlocking(!1);Cb.getAppMenuTreeIncludePermissionForExtreport()},
Pb=function(Ca,Qa){var ib=A.createFacade(function(vb){m=vb;Ca&&Ca(O)},function(vb,Cb){return 8088E3<vb?(n.getMessageCurtain().showPrompt(Cb,2E3),!0):!1});ib.setShowBlocking(!0);ib.loadAllExtReportInfos(Qa)}}function la(A){var n,M,F,C,I,Y,xa,Ja,ia,G,y,sa,za;this.setScheduleId=function(ja){xa=ja};this.setFilterInfo=function(ja){Ja=ja};this.setSelectedFilterParamAndVar=function(ja,La){ia=ja;G=La};this.setMessageCurtain=function(ja){n=ja};this.getWidth=function(){return 770};this.getHeight=function(){return 450};
this.getJqUi=function(){M||(M=$("<div>"),M.addClass("extreport-schedule-center-dialog"),g.layoutCtrlWithLRTB(M,0,0,null,1,0,null),m(M));return M};var O=function(ja){ia?A.createFacade(function(La){var bb=new Fa;bb.fromJsonObject(La);G||(G=za.restoreSelectedVarByScheme(bb.getValue()));za.setVarF7SelectorModel(G);ja(bb);bb.getIsInvalid()&&n.showPrompt(a.get("paramInvalidPrompt","\u6570\u636e\u96c6\u53c2\u6570\u6709\u53d8\u52a8\u4e14\u4e0e\u8bbe\u7f6e\u503c\u4e0d\u517c\u5bb9\uff0c\u8bf7\u786e\u8ba4\u53c2\u6570\u8bbe\u7f6e\u662f\u5426\u6b63\u786e\u3002"),
1E4)},function(La,bb){ja();return 8088E3<La?(n.showPrompt(bb,2E3),!0):!1}).convertFilterSchemeParam(ia.flag,ia.pageId,ia.schemeName,ia.schemeContent,xa):ja()};this.checkUIInput=function(ja){sa=za.getSelectedFilterParam();if(!sa)return(ja=za.getErrorMsg())?ja:"\u5c1a\u672a\u8bbe\u7f6e\u8fc7\u6ee4\u53c2\u6570";ja(!0)};this.getModelFromUI=function(){return[sa,za.getSelectedVarF7SelectorModel()]};var m=function(ja){I=new D;I.setHorizontalSplit(!0);I.setEnabled(!0);I.setSplitLineWide(4);I.setResizeMode(D.RESIZE_MODE_FIRST_FIXED);
I.setFirstSize(230,110,320);I.setSecondSize(536);ja.append(I.getJqUi());C=ra();F=qa();I.setFirstChild(D.createChildWrapper(F,function(){F&&F.css({width:I.getNonemptyFirstWide()+"px"});C&&C.css({width:I.getNonemptySecondWide()+"px"})}));I.setSecondChild(D.createChildWrapper(C))},qa=function(){var ja=$("<div>"),La=new Za;La.setItemSelectedListener(zb);La.setLoadItemListener(ya);Y=La;Y.getJqUi().appendTo(ja);return ja},ra=function(){var ja=$("<div>");ja.css({"border-left":"1px solid #E5E5E5"});var La=
new xb(A);La.setMessageCurtain(n);za=La;za.getJqUi().appendTo(ja);return ja},zb=function(ja){y=ja;za.setSelectedSchemeModel(y);ja=za.restoreSelectedVarByScheme(y.getValue());za.setVarF7SelectorModel(ja);za.updateUi()},ya=function(ja){var La=Ja.schemeList,bb=[];if(La)for(var Ea=0;Ea<La.length;Ea++){var Wa=new Fa;Wa.fromJsonObject(La[Ea]);var N=new wa;N.setText(Wa.getCaption());N.setUserObject(Wa);bb.push(N)}za.initFilter(Ja);O(function(V){var X=lb,Ia=[],Ma=new wa;V?(Ma.setText(V.getCaption()),Ma.setUserObject(V)):
(V=new Fa,V.setCaption(X),V.setValue(""),V.setIsInvalid(!1),V.setShareStrategy(0),Ma.setText(V.getCaption()),Ma.setUserObject(V));Ia.push(Ma);bb=Ia.concat(bb);ja&&ja(bb)})}}function Ba(){function A(Ea){KTDefaultCellRender.call(this,Ea);var Wa=this;this.paintCellUI=function(V,X){var Ia=Wa.getCurrentRow(),Ma=Ia.getUserObject(),pb=Wa.getCell();Ia=N(Ia,Ma,pb);X?(V=$(X),Ia.appendTo(V)):(V=$(V),Ia.appendTo(V))};var N=function(V,X,Ia){var Ma=void 0==X?"":X instanceof ua||X instanceof Pa?X.getName():X.getDisplayName();
var pb=$("<div>");pb.addClass("sa-qing-publish-menu-item");pb.css({"text-overflow":"ellipsis",overflow:"hidden","white-space":"nowrap"});g.layoutCtrlWithLRTB(pb,0,0,null,0,0,null);var Ab=$("<span>");Ab.text("!");Ab.addClass("sa-qing-publish-menu-item-promt");Ma==oa.CLOUD_HAS_BEEN_DELETED?(Ma=a.get("cloudHasBeenDeleted","\u8be5\u670d\u52a1\u4e91\u5df2\u88ab\u5220\u9664"),pb.append(Ab)):Ma==oa.APP_HAS_BEEN_DELETED?(Ma=a.get("appHasBeenDeleted","\u8be5\u5e94\u7528\u5df2\u88ab\u5220\u9664"),pb.append(Ab)):
Ma==oa.APP_MENU_HAS_BEEN_DELETED&&(Ma=a.get("appMenuHasBeenDeleted","\u8be5\u5e94\u7528\u83dc\u5355\u5df2\u88ab\u5220\u9664"),pb.append(Ab));pb.attr("title",Ma);Ab=$("<span>");Ab.text(Ma);Ab.css({"text-overflow":"ellipsis",overflow:"hidden","white-space":"nowrap"});if(X instanceof ua&&0<X.getSubNodeLevel()||X instanceof Pa&&0<X.getSubNodeLevel()||X instanceof Q&&1<X.getSubNodeLevel()||X instanceof ma&&1<X.getSubNodeLevel())pb.css("cursor","pointer"),Ia.getUserObject()&&pb.addClass("sa-qing-publish-menu-item-selected"),
pb.on("mousedown",function(Lb){ja(V,X,pb,Ia)}),m&&bb(m,V,X,pb,Ia);Ja&&(X instanceof ua&&0<X.getSubNodeLevel()||X instanceof Pa&&0<X.getSubNodeLevel()||X instanceof Q&&1<X.getSubNodeLevel()||X instanceof ma&&1<X.getSubNodeLevel())&&La(Ab,pb,X,Ma);pb.append(Ab);return pb}}var n=this,M,F,C,I,Y,xa,Ja=!1,ia,G,y=!1,sa=!1,za,O,m,qa;this.setSearchStatus=function(Ea){Ja=Ea};this.setAutoSelectedData=function(Ea){sa=!0;if((O=Ea)&&O.path)try{m=JSON.parse(O.path)}catch(Wa){m=O.path}};this.setTreeItemSelectedListener=
function(Ea){M=Ea};this.setLoadItemListener=function(Ea){za=Ea};this.getJqUi=function(){if(!F){F=$("<div>");C=ra();C.text(a.get("loading","\u52a0\u8f7d\u4e2d"));C.appendTo(F);C.show();I=new KTable;Y=$(I.getUI());Y.children().css("overflow-x","auto");I.setColumnFitVisibleWidth(!0);I.setCellRender(new A(I));I.setSyncUIWhenModelChanged(!1);var Ea=new KTStyle;Ea.setVerticalAlign("middle");I.setStyle(Ea);Y.appendTo(F);Y.hide();zb()}return F};this.updateUi=function(){G&&0<G.length?ya():y&&(C=ra(),C.text(a.get("emptyPublish",
"\u6682\u65e0\u53d1\u5e03\u8bb0\u5f55")),C.appendTo(F),Y.hide(),C.show())};this.updateTreeUi=function(Ea,Wa){Ja&&(ia=Wa);G&&0<G.length&&(G=Ea,ya())};var ra=function(){C||(C=$("<div>"),C.addClass("sa-qing-publish-manager-content-emptytip"),C.css({top:"30%"}));return C},zb=function(){G||za(function(Ea){G=Ea;y=!0;n.updateUi()},!1)},ya=function(){C.hide();Y.show();q.clear(I);I.addColumns(1);I.getColumn(0).setWidth(320);for(var Ea=G,Wa=I,N=0;N<Ea.length;N++){var V=Ea[N],X=Wa.addRow();X.setHeight(32);var Ia=
X.getCell(0);X.setUserObject(V);var Ma=V.getSubNodeLevel();(V instanceof ua||V instanceof Pa)&&--Ma;V=new KTCellTreeModel(Ma);!Ja&&!sa&&1<V.getLevel()?(V.setExpanded(!0),2<V.getLevel()&&X.setHide(!1)):V.setExpanded(!0);Ia.setTreeModel(V)}q.refresh(I);qa&&I.scrollCellVisible(I.getRowIndex(qa),0,!1)},ja=function(Ea,Wa,N,V){xa!=V&&(F.find(".sa-qing-publish-menu-item-selected").removeClass("sa-qing-publish-menu-item-selected"),N.addClass("sa-qing-publish-menu-item-selected"),xa&&xa.setUserObject(!1),
V.setUserObject(!0),qa=Ea,xa=V,m=Wa,M&&M(Wa))},La=function(Ea,Wa,N,V){N=ia[n.getNodePath(N)];void 0==N&&(N=0);var X="("+N+")",Ia=$("<div>"),Ma="extreport-schedule-center-search-hits-number";Ma=0<N?Ma+"-with-color":Ma;Ia.addClass("sa-qing-publish-menu-item");Ia.addClass(Ma);Ia.text(X);Ea.append(Ia);Wa.attr("title",V+" "+X)};this.getNodePath=function(Ea){if(Ea instanceof Q||Ea instanceof ma){var Wa=Ea.getCloudId();Ea.getAppId()&&(Wa+=Ea.getAppId(),Ea.getAppMenuId()&&(Wa+=Ea.getAppMenuId(),Ea.getAppMenuId2()&&
(Wa+=Ea.getAppMenuId2())));return Wa}if(Ea instanceof ua||Ea instanceof Pa)return Wa=Ea.getCenterId1(),Ea.getCenterId2()&&(Wa+="/"+Ea.getCenterId2(),Ea.getCenterId3()&&(Wa+="/"+Ea.getCenterId3(),Ea.getCenterId4()&&(Wa+="/"+Ea.getCenterId4()))),Wa};var bb=function(Ea,Wa,N,V,X){if(N instanceof ua||N instanceof Pa)"object"==typeof Ea||Ea instanceof ua?Ea instanceof ua&&n.getNodePath(Ea)==n.getNodePath(N)&&ja(Wa,N,V,X):Ea==n.getNodePath(N)&&ja(Wa,N,V,X);if(N instanceof Q||N instanceof ma){if(Ea instanceof
Q){var Ia=Ea.getAppMenuId2();var Ma=Ea.getAppMenuId();Ea=Ea.getAppId()}else Ia=Ea.appMenuId2,Ma=Ea.appMenuId,Ea=Ea.appId;Ia?Ia==N.getAppMenuId2()&&ja(Wa,N,V,X):Ma?Ma!=N.getAppMenuId()||N.getAppMenuId2()||ja(Wa,N,V,X):Ea&&(Ea!=N.getAppId()||N.getAppMenuId()||ja(Wa,N,V,X))}}}function Za(){var A,n,M,F,C,I,Y;this.setItemSelectedListener=function(G){A=G};this.setLoadItemListener=function(G){n=G};this.handClickListItem=function(G){var y=F.find('div[id="'+encodeURIComponent(G.getText())+'"]');y&&ia(y,G.getUserObject())};
this.getJqUi=function(){M||(M=$("<div>"),C=xa(),C.text(a.get("loading","\u52a0\u8f7d\u4e2d")),C.appendTo(M),Ja());return M};var xa=function(){C||(C=$("<div>"),C.addClass("extreport-schedule-center-content-emptytip"));return C},Ja=function(){I||n(function(G){if((I=G)&&0<I.length){M.empty();F=$("<span>");for(G=0;G<I.length;G++){var y=new va;y.setListModel(I[G]);y.setFunItemClick(ia);y.getJqUi().appendTo(F)}F.appendTo(M);(G=F.find('div[id="'+encodeURIComponent(I[0].getText())+'"]'))&&ia(G,I[0].getUserObject())}else M.empty(),
C=xa(),C.text(a.get("emptyMenuItem","\u6682\u65e0\u83dc\u5355\u9879")),C.appendTo(M)})},ia=function(G,y){F.find(".extreport-schedule-center-menu-item").removeClass("extreport-schedule-center-menu-item-selected");F.find(".extreport-schedule-center-menu-item").removeClass("extreport-schedule-center-menu-item-selected-enabled");G.addClass("extreport-schedule-center-menu-item-selected");G.addClass("extreport-schedule-center-menu-item-selected-enabled");Y=y;A(Y)}}function va(){var A,n,M;this.setListModel=
function(C){n=C};this.getUserObject=function(){return n&&n.getUserObject()};this.setFunItemClick=function(C){M=C};this.getJqUi=function(){A||F();return A};var F=function(){var C=$("<div>");C.addClass("extreport-schedule-center-menu-item");C.attr("id",encodeURIComponent(n.getText()));C.text(n.getText());C.on("click",function(I){M&&M($(I.target),n.getUserObject())});C.on("mouseover",function(I){$(I.target).hasClass("extreport-schedule-center-menu-item-selected")&&$(I.target).addClass("extreport-schedule-center-menu-item-selected-enabled")});
C.on("mouseout",function(I){$(I.target).removeClass("extreport-schedule-center-menu-item-selected-enabled")});A=C}}function wa(){var A,n;this.getText=function(){return A};this.setText=function(M){A=M};this.getUserObject=function(){return n};this.setUserObject=function(M){n=M}}function Na(A,n){this.toString=function(){return n};this.getValue=function(){return A}}function Va(){function A(qa){KTDefaultCellRender.call(this,qa);var ra=this,zb=this.paintCellUI;this.paintCellUI=function(ya,ja){var La=ra.getCurrentRowIdx(),
bb=ra.getCurrentRow(),Ea=ra.getCurrentColIdx();bb=bb.getUserObject();if(La<q.getHeadRowCount())zb(ya,ja);else if(0==Ea){var Wa=new r;Ja&&Ja.reportId==bb.reportId&&Ja.publishId==bb.publishId&&Wa.setChecked(!0);Wa.setUserObject(bb);sa.addElement(Wa);Wa.addCheckedListener(O);Wa=Wa.getJqUi();Wa.addClass("extreport-schedule-center-table-checkbox");Wa.appendTo(ya)}else{ja=$("<div>");switch(Ea){case 1:if(bb.isPreset){var N=$("<div>");N.text(a.get("preset","\u9884\u7f6e"));N.addClass("extreport-schedule-center-table-name-preset-tag");
N.appendTo(ya)}N=bb.publishName;break;case 2:N=bb.publishCreatorName;break;case 3:N=bb.reportName;break;case 4:N=bb.reportCreatorName}ja.addClass("extreport-schedule-center-table-cell-text");if(1==Ea||3==Ea){Ea=N;if(G&&Ea){bb=G.toUpperCase();N=Ea.toUpperCase();La=N.split(bb);var V=bb.length;for(Wa in La){var X=N.indexOf(La[Wa]),Ia=Ea.substr(pb,La[Wa].length);X+=La[Wa].length;var Ma=N.length-X;N=N.substr(X,Ma);Ea=Ea.substr(X,Ma);X=$("<span>");X.text(Ia);X.appendTo(ja);if(Wa!=La.length-1&&1<La.length){var pb=
N.indexOf(bb);Ia=Ea.substr(pb,V);X=pb+V;Ma=N.length-X;N=N.substr(X,Ma);Ea=Ea.substr(X,Ma);X=$("<span>");X.text(Ia);X.css("color","red");X.clone().appendTo(ja)}}}else ja.text(Ea);ja.attr("title",ja.text())}else ja.attr("title",N),ja.text(N);ja.appendTo(ya)}}}var n=this,M,F,C,I,Y,xa,Ja,ia=!0,G,y,sa=new p,za;this.getJqUi=function(){if(!M){M=$("<div>");C=$("<div>");C.appendTo(M);F=$("<div>");F.addClass("extreport-schedule-center-content-emptytip");F.appendTo(M);Y=q.createTable();var qa=new A(Y);qa.setOutsideVisible(!1);
Y.setCellRender(qa);Y.setDraggableAdjusting(!0,3,0,new db);Y.setColumnFitVisibleWidth(!0);Y.setSyncUIWhenModelChanged(!0);m();I=$(Y.getUI());g.layoutCtrlWithLRTB(I,0,0,null,0,0,null);I.appendTo(M)}return M};this.setSearchText=function(qa){G=qa};this.updateUi=function(qa){Ja=qa;q.clear(Y);m();C.css("transform","scaleX(0.85) scaleY(0.85)");if(ia)C.addClass("extreport-schedule-center-no-data-tips"),nb.background(C,"icon_open_tips_background"),F.text(a.get("appMenuClickTips","\u8bf7\u70b9\u51fb\u5de6\u4fa7\u83dc\u5355\u8fdb\u884c\u67e5\u770b")),
C.show(),F.show(),I.hide();else if(!G||y&&0!=y.length)if(y&&0!=y.length){C.hide();F.hide();I.show();for(qa=0;qa<y.length;qa++){var ra=y[qa];q.createRow(Y).setUserObject(ra)}q.refresh(Y)}else C.addClass("extreport-schedule-center-no-data-tips"),nb.background(C,"no-data"),F.text(a.get("emptyReport","\u6682\u65e0\u62a5\u8868\u6a21\u677f")),C.show(),F.show(),I.hide();else C.addClass("extreport-schedule-center-no-data-tips"),nb.background(C,"no-data"),F.text(a.get("nodata","\u6ca1\u6709\u7b26\u5408\u641c\u7d22\u6761\u4ef6\u7684\u7ed3\u679c")),
C.show(),F.show(),I.hide()};this.resize=function(){n.updateUi()};this.setModel=function(qa){ia=!1;y=qa};this.getSelectedRowModel=function(){return xa};this.setItemSelectedListener=function(qa){za=qa};var O=function(qa,ra){Ja=xa=qa.getUserObject();za&&za(xa)},m=function(){Y.addColumns(5);Y.getColumn(0).setWidth(26);Y.getColumn(1).setWidth(100);Y.getColumn(2).setWidth(100);Y.getColumn(3).setWidth(100);Y.getColumn(4).setWidth(100);var qa=q.createHeadRow(Y);qa.getCell(1).setValue(a.get("publishName",
"\u53d1\u5e03\u540d\u79f0"));qa.getCell(2).setValue(a.get("publishCreator","\u53d1\u5e03\u4eba"));qa.getCell(3).setValue(a.get("reportName","\u62a5\u8868\u540d\u79f0"));qa.getCell(4).setValue(a.get("reportCreator","\u62a5\u8868\u521b\u5efa\u4eba"))}}function xb(A){var n,M,F,C,I,Y,xa,Ja;this.setMessageCurtain=function(G){n=G};this.setSelectedSchemeModel=function(G){Y=G};this.setVarF7SelectorModel=function(G){xa=G};this.restoreSelectedVarByScheme=function(G){return I.restoreSelectedVarByScheme(G)};
this.getSelectedVarF7SelectorModel=function(){return I.getVarF7SelectorModel()};this.getSelectedFilterParam=function(){var G=I.execute(lb,!1);if(!G.success)return Ja=G.errMsg,null;Ja=null;G=[];var y=[],sa=[];I.setSchemeParams(G,y,sa);return{pageId:C.pageId,schemeName:lb,isDefaultChange:!1,flag:"1",schemeContent:KReportUtil.toStr({nameParams:sa,valParams:G,capParams:y})}};this.getErrorMsg=function(){return Ja};this.getJqUi=function(){M||(M=$("<div>"));return M};this.initFilter=function(G){if(!I){var y=
{};y.oGlobal=A;y.oMessageCurtain=n;C=G;I=new rb(G.pageId,y,ia);I.init(G.paramList,G.schemeList,G.associate);F=$("<div/>");I.render(F);G=$("<div>");g.layoutCtrlWithLRTB(G,0,0,null,1,0,null);G.css("overflow-x","hidden");G.css("overflow-y","auto");G.append(F);M.append(G)}};this.updateUi=function(){I.updateFilterByScheme(Y.getValue());ia()};var ia=function(){I.updateFilterByF7SelectorModel(xa)}}function Sa(A){var n,M,F;this.getWidth=function(){return 480};this.getHeight=function(){return 340};this.getJqUi=
function(){if(!n){n=$("<div>");F=new Da;F.isOnlyPeriod(!0);F.setCronAnalysisFacade(C);F.setTimingButtonText(a.get("executeRegularly","\u5b9a\u65f6\u6267\u884c"));var I=F.getJqUi();g.layoutCtrl(I,110,30,null,null);I.appendTo(n)}return n};this.setMessageCurtain=function(I){M=I};this.getMessageCurtain=function(){return M};var C=function(I,Y,xa){Y=A.createFacade(Y,xa);Y.setShowBlocking(!0);Y.cronExpression(I)};this.updateUi=function(I){F.setSchedule(I.copy())};this.checkUIInput=function(I){var Y=F.getSchedule();
if("Custom"==Y.getPeriod()){var xa=Y.getCron();if("undefined"==typeof xa||""==xa)return a.get("inputExpression","\u8bf7\u8f93\u5165\u8868\u8fbe\u5f0f\u3002");if(!Y.getCronFlag())return a.get("cornInCheckOrError","\u8868\u8fbe\u5f0f\u6709\u8bef\u6216\u8868\u8fbe\u5f0f\u6b63\u5728\u89e3\u6790\u6821\u9a8c\u4e2d\u3002")}I(!0)};this.getModelFromUI=function(){return F.getSchedule().copy()}}function jb(A){function n(N){KTDefaultCellRender.call(this,N);var V=this,X=this.paintCellUI;this.paintCellUI=function(Ca,
Qa){var ib=V.getCurrentRowIdx(),vb=V.getCurrentColIdx(),Cb=V.getCurrentRow();if(ib<q.getHeadRowCount()||!V.getCell())X(Ca,Qa);else{var Bb=V.getCellWidth(),Db=30>V.getCellHeight()?30:V.getCellHeight();if(0==vb)Qa=V.getCell().getValue(),Ia(Ca,Qa);else if(2==vb)ib=V.getCell().getValue(),Qa=Cb.getUserObject(),Qa.setAttributeValue(""),Qa.setPrefix(""),Qa.setSuffix(""),Qa.setSeparator(""),Ma(Ca,Bb,Db,ib,Cb);else if(3==vb){var Eb=V.getCell().getValue();Qa=Cb.getUserObject();(Qa=ka.getCodingRuleItemModelByType(Qa.getType()))&&
Qa.isSysVar()?Lb(Ca,Bb,Db,Cb,cb.SUPPORTED_VAR_TYPE,Eb):Qa&&Qa.isSysDate()?sa&&0!=sa.length?Lb(Ca,Bb,Db,Cb,sa,Eb):m(function(){Lb(Ca,Bb,Db,Cb,sa,Eb)}):Qa&&Qa.isSerialNum()?Pb(Ca,Bb,Db,Cb,Eb):(Qa=Cb.getUserObject(),Qa.setAttributeValue(Eb),Ab(Ca,Eb))}else ib=V.getCell().getValue(),Qa=Cb.getUserObject(),4==vb?Qa.setPrefix(ib):5==vb?Qa.setSuffix(ib):6==vb&&Qa.setSeparator(ib),Ab(Ca,ib);!I||3!=vb&&4!=vb&&5!=vb&&6!=vb||zb()}};var Ia=function(Ca,Qa){Ca=$(Ca);Ca.find(".extreport-schedule-center-coding-rule-table-prompt").remove();
if(Qa){var ib=J.createWarning();ib.addClass("extreport-schedule-center-coding-rule-table-prompt");ib.attr("title",Qa);ib.appendTo(Ca)}},Ma=function(Ca,Qa,ib,vb,Cb){Ca=q.createCtrlInCell(Ca,Qa,ib,na);Ca.setItemModels(ka.SUPPORTED_RULE_TYPE);Ca.setUserObject(Cb);Ca.addSelectedChangedListener(pb);Ca.setSelected(vb?vb:null)},pb=function(Ca,Qa,ib){Ca=Ca.getUserObject();Ca.getUserObject().setType(ib.getValue());Ca.getCell(2).setValue(ib);ib=Ca.getCell(3);ib.setValue(" ");ib.setValue("")},Ab=function(Ca,
Qa){Ca=$(Ca);var ib=$("<div>");ib.text(Qa);ib.addClass("extreport-schedule-center-coding-rule-tablecell-editable");Ca.empty();Ca.append(ib);Ca.css("cursor","pointer")},Lb=function(Ca,Qa,ib,vb,Cb,Bb){Ca=q.createCtrlInCell(Ca,Qa,ib,na);Ca.setItemModels(Cb,function(Db,Eb){return Db&&Eb?Db.getValue()==Eb.getValue():!1});Ca.setUserObject(vb);Ca.addSelectedChangedListener(Ob);Bb instanceof Na&&(Bb=qa(Bb));Ca.setSelected(Bb);(Bb instanceof Na||Bb instanceof cb)&&vb.getUserObject().setAttributeValue(Bb.getValue())},
Ob=function(Ca,Qa,ib){Ca=Ca.getUserObject();Ca.getUserObject().setAttributeValue(ib.getValue());Ca.getCell(3).setValue(ib);zb()},Pb=function(Ca,Qa,ib,vb,Cb){var Bb=q.createCtrlInCell(Ca,Qa,ib,Z);Bb.setClearable(!0);Bb.addActionListener(function(Db){Db=new kb(A);var Eb=new P(a.get("serialNumSetting","\u6d41\u6c34\u53f7\u8bbe\u7f6e"),A,Db);Eb.setCallback(function(Ib){Ib&&(vb.getUserObject().setAttributeValue(Ib),Bb.setModel(Ib),zb())});Eb.showDialog();vb.getUserObject()&&vb.getUserObject().getAttributeValue()&&
Db.updateUi(vb.getUserObject().getAttributeValue())});Bb.addClearListener(function(){vb.getUserObject().setAttributeValue(null);Bb.setModel(null);zb()});Bb.setModel(Cb);vb.getUserObject().setAttributeValue(Cb)}}var M=this,F,C,I=!1,Y,xa,Ja,ia=[],G,y,sa,za=!1,O=!1;this.getWidth=function(){return 770};this.getHeight=function(){return 450};this.getJqUi=function(){if(!F){F=$("<div>");var N=new b;N.setRequired(!1);var V=N.getJqUi();N.setText(a.get("codingRuleResultEg","\u7f16\u7801\u89c4\u5219\u7ed3\u679c\u793a\u4f8b"));
y=new b;N=y.getJqUi();var X="en"==ea.getUrlParamValue("language")?50:0;g.layoutCtrl(V,8,0,120+X,23);g.layoutCtrl(N,128+X,0,500,23);V.appendTo(F);N.appendTo(F);xa=q.createTable();xa.setDraggableAdjusting(!0,3,0,new db);xa.setColumnFitVisibleWidth(!0);xa.setSyncUIWhenModelChanged(!0);q.bindTextEditor(xa,La,bb);q.bindTableListenerForCtrl(xa,Ea);V=new n(xa);V.setOutsideVisible(!1);xa.setCellRender(V);Wa();Y=$(xa.getUI());g.layoutCtrlWithLRTB(Y,0,0,null,45,0,null);Y.addClass("extreport-schedule-center-coding-rule-table");
Y.appendTo(F);m()}return F};this.setMessageCurtain=function(N){C=N};this.getMessageCurtain=function(){return C};this.beforeClosingCheck=function(N){zb(N,N)};this.checkUIInput=function(N){G=ra();var V=G.getCodingRuleEntryInfoList();if(0==V.length)return a.get("codingRuleNotNull","\u7f16\u7801\u89c4\u5219\u4e0d\u80fd\u4e3a\u7a7a\u3002");if(!za)return a.get("codingRuleChecking","\u7f16\u7801\u89c4\u5219\u68c0\u6d4b\u4e2d\u3002");za=!1;if(1<V.length){for(var X=0,Ia=0;Ia<V.length;Ia++)ka.getCodingRuleItemModelByType(V[Ia].getType()).isSerialNum()&&
(X+=1);if(1<X)return a.get("onlyOneSerialNum","\u4e0d\u5141\u8bb8\u6709\u4e00\u4e2a\u4ee5\u4e0a\u7684\u6d41\u6c34\u53f7\u8bbe\u5b9a\u3002")}V=$.trim(y.getText());if(!V)return a.get("codingRuleNotNull","\u7f16\u7801\u89c4\u5219\u4e0d\u80fd\u4e3a\u7a7a\u3002");if(c.isValidString(V)){if(c.isKeywords(V))return a.get("isKeywords",'\u65e0\u6cd5\u4f7f\u7528"#1"\u4f5c\u4e3a\u540d\u79f0\uff0c\u8bf7\u91cd\u65b0\u8f93\u5165\u3002').replace("#1",V);if(50<V.length)return a.get("nameTooLong","\u957f\u5ea6\u4e0d\u80fd\u8d85\u8fc750\u4e2a\u5b57\u7b26\u3002")}else return a.get("invalidCodingRuleName",
"\u7f16\u7801\u89c4\u5219\u7ed3\u679c\u53ea\u80fd\u7531\u6c49\u5b57\u3001\u5b57\u6bcd\u3001\u6570\u5b57\u6216\u4e0b\u5212\u7ebf\u7ec4\u6210\uff0c\u4e14\u4e0d\u80fd\u4ee5\u6570\u5b57\u5f00\u5934\u3002");N(!0)};this.getModelFromUI=function(){return G};this.updateUi=function(N){I=!1;N&&N.getCodingRuleEntryInfoList()&&0<N.getCodingRuleEntryInfoList().length&&(ia=N.getCodingRuleEntryInfoList());O&&ia.sort(function(Lb,Ob){return Lb.getIndex()-Ob.getIndex()});for(var V=ia.length-1;0<=V&&(!(N=ia[V])||void 0==
N.getType());V--)ia.splice(V,1);q.clear(xa);Wa();V=ia.length;for(var X=Math.max(4,V+1),Ia=0;Ia<X;Ia++){Ia<V?N=ia[Ia]:(N=new Xa,N.setIndex(ia.length+1),ia.splice(ia.length,0,N));N.setIndex(Ia+1);var Ma=q.createRow(xa);Ma.setUserObject(N);Ma.getCell(0).setValue("");Ma.getCell(1).setValue(N.getIndex());var pb=ka.getCodingRuleItemModelByType(N.getType());Ma.getCell(2).setValue(pb);var Ab=N.getAttributeValue()?N.getAttributeValue():"";pb?pb.isSysVar()?Ab instanceof cb?Ma.getCell(3).setValue(Ab):Ma.getCell(3).setValue(cb.getSystemVarTypeById(Ab)):
pb.isSysDate()?Ab instanceof Na?Ma.getCell(3).setValue(Ab):Ma.getCell(3).setValue(new Na(Ab,"suibian")):Ma.getCell(3).setValue(Ab):Ma.getCell(3).setValue(Ab);pb=N.getPrefix()?N.getPrefix():"";Ma.getCell(4).setValue(pb);pb=N.getSuffix()?N.getSuffix():"";Ma.getCell(5).setValue(pb);N=N.getSeparator()?N.getSeparator():"";Ma.getCell(6).setValue(N)}q.refresh(xa);I=!0;zb()};this.doInsertRow=function(N){var V=new Xa;V.setIndex(N+1);var X=ia[N];X?ia.splice(N,1,X,V):ia.splice(ia.length,0,V);O=!0;M.updateUi()};
this.doDeleteRow=function(N){ia.splice(N,1);O=!0;M.updateUi()};this.doTopRow=function(N){var V=ia[N];if(V==ia[0])return!1;ia.splice(N,1);ia.splice(N-1,0,V);O=!1;M.updateUi();return!0};var m=function(N){if(!sa||0==sa.length){var V=A.createFacade(function(X){if(X){sa=[];for(var Ia in X)sa.push(new Na(Ia,X[Ia]))}N&&N();zb()},function(X,Ia){return 8088E3<X?(C.showPrompt(Ia,2E3),!0):!1});V.setShowBlocking(!1);V.loadSystemDateTypes()}},qa=function(N){if(sa&&0<sa.length)for(var V=0;V<sa.length;V++)if(sa[V].getValue()==
N.getValue())return sa[V];return null},ra=function(){for(var N=new ob,V=[],X=xa.getRowsCount(),Ia=0;Ia<X;Ia++){var Ma=xa.getRow(Ia).getUserObject();Ma&&Ma instanceof Xa&&void 0!=Ma.getType()&&$.trim(Ma.getAttributeValue())&&V.push(Ma)}N.setCodingRuleEntryInfoList(V);return N},zb=function(N,V){var X=ra();if(0<X.getCodingRuleEntryInfoList().length){var Ia=A.createFacade(function(Ma){Ma?y.setText(Ma):y.setText("");za=!0;N&&N()},function(Ma,pb){za=!0;if(V)V();else return 8088E3<Ma?(C.showPrompt(pb,2E3),
!0):!1});Ia.setShowBlocking(!1);Ia.getCodingRuleResultEg(X)}else N&&N()},ya=function(N,V,X){if(ja(X))return!0;if(N.getCell(3)!=V){if(V=N.getUserObject(),void 0!=V.getType()&&ka.getCodingRuleItemModelByType(V.getType()).isAptoticValue())return ja(N.getCell(3).getValue())}else{if(N.getCell(4)!=V)return ja(N.getCell(4).getValue());if(N.getCell(5)!=V)return ja(N.getCell(5).getValue());if(N.getCell(6)!=V)return ja(N.getCell(6).getValue())}return!1},ja=function(N){return N&&0!=N.length?!/^[\u4E00-\u9FA5a-zA-Z0-9_]{1,}$/.test(N):
!1},La=function(N,V){if(3!=V&&4!=V&&5!=V&&6!=V)return!1;var X=xa.getRow(N).getUserObject();return void 0==ka.getCodingRuleItemModelByType(X.getType())?(M.getMessageCurtain().showPrompt(a.get("selectType","\u8bf7\u5148\u9009\u62e9\u7c7b\u578b\u3002"),2E3),!1):4!=V&&5!=V&&6!=V||X.getAttributeValue()?3!=V||(X=xa.getRow(N).getUserObject(),void 0!=X.getType()&&ka.getCodingRuleItemModelByType(X.getType()).isAptoticValue())?!0:!1:(M.getMessageCurtain().showPrompt(a.get("selectAttribute","\u8bf7\u5148\u8bbe\u7f6e\u5c5e\u6027\u503c\u3002"),
2E3),!1)},bb=function(N,V,X,Ia,Ma){za=!1;ya(N,X,Ia)?(V=a.get("invalidCodingRuleName","\u7f16\u7801\u89c4\u5219\u7ed3\u679c\u53ea\u80fd\u7531\u6c49\u5b57\u3001\u5b57\u6bcd\u3001\u6570\u5b57\u6216\u4e0b\u5212\u7ebf\u7ec4\u6210\uff0c\u4e14\u4e0d\u80fd\u4ee5\u6570\u5b57\u5f00\u5934\u3002"),N.getCell(0).setValue(V)):N.getCell(0).setValue("");V=N.getUserObject();N.getCell(3)==X?V.getAttributeValue()!=Ia&&V.setAttributeValue(Ia):N.getCell(4)==X?V.getPrefix()!=Ia&&V.setPrefix(Ia):N.getCell(5)==X?V.getSuffix()!=
Ia&&V.setSuffix(Ia):N.getCell(6)==X&&V.getSeparator()!=Ia&&V.setSeparator(Ia);X.setValue(Ia);return!0},Ea=function(N,V,X,Ia){N=null;if(V){N=KTableUIAbstractView.createCellId(xa.getRow(X),xa.getColumn(7));N=M.getJqUi().find("#"+N);var Ma=X-q.getHeadRowCount();X=$("<div>");X.text(a.get("insert","\u63d2\u5165"));X.addClass("extreport-schedule-center-coding-rule-table-op");X.addClass("extreport-schedule-center-coding-rule-table-op-insert");X.appendTo(N);X.on("click",function(pb){M.doInsertRow(Ma)});X=
$("<div>");X.text(a.get("delete","\u5220\u9664"));X.addClass("extreport-schedule-center-coding-rule-table-op");X.addClass("extreport-schedule-center-coding-rule-table-op-delete");X.appendTo(N);X.on("click",function(pb){M.doDeleteRow(Ma)});X=$("<div>");X.text(a.get("top","\u4e0a\u79fb"));X.addClass("extreport-schedule-center-coding-rule-table-op");X.addClass("extreport-schedule-center-coding-rule-table-op-top");0==Ma&&X.css("display","none");X.appendTo(N);X.on("click",function(pb){M.doTopRow(Ma)})}else Ja&&
Ja.find(".extreport-schedule-center-coding-rule-table-op").remove();Ja=N},Wa=function(){xa.addColumns(8);xa.getColumn(0).setWidth(20);xa.getColumn(1).setWidth(50);xa.getColumn(2).setWidth(110);xa.getColumn(3).setWidth(200);xa.getColumn(4).setWidth(80);xa.getColumn(5).setWidth(80);xa.getColumn(6).setWidth(80);xa.getColumn(7).setWidth(162);var N=q.createHeadRow(xa);N.getCell(1).setValue(a.get("sequence","\u5e8f\u53f7"));N.getCell(2).setValue(a.get("type","\u7c7b\u578b"));N.getCell(3).setValue(a.get("attribute",
"\u5c5e\u6027\u503c"));N.getCell(4).setValue(a.get("prefix","\u524d\u7f00"));N.getCell(5).setValue(a.get("suffix","\u540e\u7f00"));N.getCell(6).setValue(a.get("separator","\u5206\u9694\u7b26"))}}function kb(A){var n,M,F,C,I;this.getWidth=function(){return 320};this.getHeight=function(){return 240};this.getJqUi=function(){if(!n){n=$("<div>");var Y=new b;Y.setRequired(!0);var xa=Y.getJqUi();Y.setText(a.get("length","\u957f\u5ea6"));F=new K;F.setValue(0);F.setConstraint(0,10,1);var Ja=F.getJqUi();Y=
0;g.layoutCtrl(xa,45,Y,60,23);g.layoutCtrl(Ja,105,Y,140,23);xa.appendTo(n);Ja.appendTo(n);Y=new b;Y.setRequired(!0);xa=Y.getJqUi();Y.setText(a.get("initial","\u521d\u59cb\u503c"));C=new K;C.setValue(0);C.setConstraint(0,999999999,1);Ja=C.getJqUi();Y=45;g.layoutCtrl(xa,45,Y,60,23);g.layoutCtrl(Ja,105,Y,140,23);xa.appendTo(n);Ja.appendTo(n);Y=new b;Y.setRequired(!0);xa=Y.getJqUi();Y.setText(a.get("step","\u6b65\u957f"));I=new K;I.setValue(0);I.setConstraint(0,999999999,1);Ja=I.getJqUi();Y=90;g.layoutCtrl(xa,
45,Y,60,23);g.layoutCtrl(Ja,105,Y,140,23);xa.appendTo(n);Ja.appendTo(n)}return n};this.setMessageCurtain=function(Y){M=Y};this.getMessageCurtain=function(){return M};this.updateUi=function(Y){Y=Y.split("-");3==Y.length&&(F.setValue(parseInt(Y[0])),C.setValue(parseInt(Y[1])),I.setValue(parseInt(Y[2])))};this.checkUIInput=function(Y){var xa=F.getValue(),Ja=C.getValue(),ia=I.getValue();if(0==xa)return a.get("lengthNotNull","\u957f\u5ea6\u4e0d\u80fd\u4e3a0\u3002");for(var G="",y=0;y<xa;y++)G+="9";xa=
parseInt(G);if(0==ia)return a.get("stepNotNull","\u6b65\u957f\u4e0d\u80fd\u4e3a0\u3002");if(Ja>xa)return a.get("initialExceedMaxValue","\u521d\u59cb\u503c\u4e0d\u80fd\u8d85\u8fc7\u6700\u5927\u503c\u3002");if(ia>xa)return a.get("stepExceedMaxValue","\u6b65\u957f\u4e0d\u80fd\u8d85\u8fc7\u6700\u5927\u503c\u3002");Y(!0)};this.getModelFromUI=function(){return F.getValue()+"-"+C.getValue()+"-"+I.getValue()}}function qb(){pa.AbstractTabPane.call(this);var A;this.getWidth=function(){return 394};this.getHeight=
function(){return 425};this.setMessageCurtain=function(n){A=n};this.getMessageCurtain=function(){return A}}function Ka(A){aa.call(this);var n=this,M=!1,F,C,I=!1,Y=null;this.setSelectedReport=function(ia){(F=ia)&&F.reportId?C&&C(function(){F.bGetFilterParamOK=!0;n.updateUI(xa)},function(G,y){F.bGetFilterParamOK=!1;F.sGetFilterParamWarningMsg=y;n.updateUI(xa)}):n.updateUI(xa)};this.setFunSelectedItemListener=function(ia){C=ia};this.getSelectedReport=function(){return F};this.protectedClickEvent=function(){M||
Ja()};this.getDisplayText=function(){if(F){var ia=F.reportName;if(ia){var G=a.get("selected","\u5df2\u9009\u62e9#1");G=G.replace("#1",ia);F.publishAuthType==Ha.NO_AUTH?(I=!0,Y=F.publishAuthWarningMsg):I=!1}else G=a.get("reportNotFound","\u8be5\u62a5\u8868\u6a21\u677f\u5df2\u88ab\u5220\u9664"),I=!0,Y=G}else G=a.get("selectNoReport","\u5c1a\u672a\u9009\u62e9\u62a5\u8868\u6a21\u677f"),I=!1;return G};var xa=function(){if(I){var ia=n.getF7SelectorUi();ia=ia.children(".sa-ctrl-f7selector-textcontainer");
var G=ia.children(".sa-ctrl-f7selector-text");G.css("left","20px");G=J.createWarning();G.attr("id",Y);G.attr("title",Y);G.addClass("sa-ctrl-f7selector-text");G.css("margin-top","-8px");G.appendTo(ia)}else ia=n.getF7SelectorUi(),ia=ia.children(".sa-ctrl-f7selector-textcontainer"),Y&&(ia.find("#"+Y).remove(),G=ia.children(".sa-ctrl-f7selector-text"),G.css("left","4px"))},Ja=function(){M=!0;var ia=new ba(A),G=new P(a.get("selectReport2","\u9009\u62e9\u62a5\u8868\u6a21\u677f"),A,ia);G.setFunClosedCallback(function(){ia.closedCallback()});
G.setCallback(function(y){M=!1;if(!y)return!0;F=y;F.bRestoreIfGetFilterParamFail=!0;C&&C(function(){n.updateUI(xa)},function(sa,za){F=null;n.updateUI(xa)})});G.showDialog();F&&ia.modelToUI(F)}}function tb(A){aa.call(this);var n=this,M,F,C,I,Y=!0,xa=null,Ja=!1;this.setFilerInfo=function(G){C=G};this.setScheduleId=function(G){I=G};this.setNeedFilterParam=function(G){Y=G};this.isNeedFilterParam=function(){return Y};this.setSelectedReport=function(G){xa=G};this.getSelectedFilterParam=function(){return M?
$.extend(!0,{},M):null};this.setSelectedFilterParam=function(G){M=G;n.updateUI()};this.protectedClickEvent=function(){if(xa)if(xa.publishAuthType==Ha.NO_AUTH){var G=xa.publishAuthWarningMsg;n.getMessageCurtain().showPrompt(G)}else 0==xa.bGetFilterParamOK?(G=xa.sGetFilterParamWarningMsg,n.getMessageCurtain().showPrompt(G)):!Ja&&Y&&C&&ia();else n.getMessageCurtain().showPrompt(a.get("selectReportFirstly","\u8bf7\u5148\u9009\u62e9\u62a5\u8868\u6a21\u677f\u3002"))};this.getDisplayText=function(){return!M&&
Y?a.get("setNoFilterParam","\u5c1a\u672a\u8bbe\u7f6e\u8fc7\u6ee4\u53c2\u6570"):Y?a.get("set","\u5df2\u8bbe\u7f6e"):a.get("noParam","\u65e0\u53c2\u6570")};var ia=function(){Ja=!0;var G=new la(A);G.setFilterInfo(C);G.setScheduleId(I);M&&G.setSelectedFilterParamAndVar(M,F);G=new P(a.get("setFilterParam","\u8bbe\u7f6e\u8fc7\u6ee4\u53c2\u6570"),A,G);G.setCallback(function(y){Ja=!1;if(!y)return!0;M=y[0];F=y[1];n.updateUI()});G.showDialog()}}function wb(A){aa.call(this);var n=this,M,F=!1;this.getSelectedSchedule=
function(){return M};this.setSelectedSchedule=function(I){M=I;n.updateUI()};this.protectedClickEvent=function(){F||C()};this.getDisplayText=function(){return M?a.get("set","\u5df2\u8bbe\u7f6e"):a.get("setNoSchedulePlan","\u5c1a\u672a\u8bbe\u7f6e\u8c03\u5ea6\u8ba1\u5212")};var C=function(){F=!0;var I=new Sa(A),Y=new P(a.get("setSchedulePlan","\u8bbe\u7f6e\u8c03\u5ea6\u8ba1\u5212"),A,I);Y.setCallback(function(xa){F=!1;if(!xa)return!0;M=xa;n.updateUI()});Y.showDialog();M&&I.updateUi(M)}}function ub(A){aa.call(this);
var n=this,M,F=!1;this.getSelectedCodingRuleInfo=function(){return M};this.setSelectedCodingRuleInfo=function(I){M=I;n.updateUI()};this.protectedClickEvent=function(){F||C()};this.getDisplayText=function(){return M?a.get("set","\u5df2\u8bbe\u7f6e"):a.get("setNoCodingRule","\u5c1a\u672a\u8bbe\u7f6e\u7f16\u7801\u89c4\u5219")};var C=function(){F=!0;var I=new jb(A),Y=new P(a.get("setCodingRule","\u8bbe\u7f6e\u7f16\u7801\u89c4\u5219"),A,I);Y.setCallback(function(xa){F=!1;if(!xa)return!0;M=xa.copy();n.updateUI()});
Y.setFuncBeforeClosingCheck(function(xa){I.beforeClosingCheck(xa)});Y.showDialog();I.updateUi(M&&M.copy())}}function db(){this.getTailBlankForDragging=function(){return-1};this.isRowDraggable=function(A,n){return!1};this.isColumnDraggable=function(A,n){return A.getColumnsCount()==n+1?!1:!0};this.getMinRowHeightLimited=function(A,n){return 3};this.getMinColumnWidthLimited=function(A,n){return 4};this.rowDraggedAction=function(A,n,M){var F=A.isSyncUIWhenModelChanged();A.setSyncUIWhenModelChanged(!0);
n=A.getRow(n);n.setHeight(n.getHeight()+M);A.setSyncUIWhenModelChanged(F)};this.setMinColumnWidth=function(A){};this.columnDraggedAction=function(A,n,M){var F=A.isSyncUIWhenModelChanged();A.setSyncUIWhenModelChanged(!0);n=A.getColumn(n);n.setWidth(n.getWidth()+M);A.setSyncUIWhenModelChanged(F)}}function P(A,n,M){H.call(this);var F=this,C=this.protectedMethod,I,Y,xa,Ja;(function(){C.setTitle(A);M.setMessageCurtain(C.getMessageCurtain());F.setSize(M.getWidth(),M.getHeight());C.setSelectable(!1);C.setContentPaneCreator(function(){return M.getJqUi()});
C.setClosingChecker2(function(G){Ja&&Ja();xa?xa(function(){ia(G)}):ia(G)},function(G){Ja&&Ja();Y&&Y(I);G(!0)},!0);C.setClosingAction(function(G){})})();this.setCallback=function(G){Y=G};this.setFuncBeforeClosingCheck=function(G){xa=G};this.setFunClosedCallback=function(G){Ja=G};var ia=function(G){var y=M.checkUIInput(function(sa){I=M.getModelFromUI();Y&&Y(I);G(!0)});y&&(C.getMessageCurtain().showPrompt(y,2E3),G(!1))}}function aa(){var A=this,n,M,F,C=!1;this.getJqUi=function(){n||I();return n};this.getF7SelectorUi=
function(){return M&&M.getJqUi()};this.setMessageCurtain=function(Y){F=Y};this.getMessageCurtain=function(){return F};this.setNeedTooltips=function(Y){C=Y};this.getDisplayText=function(){throw Error("override me");};this.protectedClickEvent=function(){throw Error("override me");};this.updateUI=function(Y){M.setModel(A.getDisplayText());C&&M.setTooltips(A.getDisplayText());Y&&Y()};var I=function(){n=$("<div>");n.addClass("extreport-schedule-center-dialog-selector-input");M=new Z;M.addActionListener(function(Y){A.protectedClickEvent()});
M.getJqUi().appendTo(n);A.updateUI()}}"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.extreport&&(com.kingdee.bos.extreport={});"undefined"==typeof com.kingdee.bos.extreport.snapschedule&&(com.kingdee.bos.extreport.snapschedule={});"undefined"==typeof com.kingdee.bos.extreport.snapschedule.ui&&(com.kingdee.bos.extreport.snapschedule.ui={});com.kingdee.bos.extreport.snapschedule.ui.Main=
function(){var A,n,M,F,C,I,Y,xa,Ja,ia,G,y,sa,za,O,m,qa,ra=new eb,zb,ya=new function(){var Ra,Ua,mb,sb,yb,Gb=new fa;this.addWindowResizeListener=function(Fb){Gb.addListener(Fb)};this.removeWindowResizeListener=function(Fb){Gb.removeListener(Fb)};this.fireWindowResizeEvent=function(){Gb.fireEvent(function(Fb){Fb()})};this.getMessageCurtain=function(){Ra||(Ra=new E,Ra.getJqUi().appendTo($("body")));return Ra};this.getMacroManageRemoteImpl=function(){yb||(yb=Hb("/qing/macroManage.do"));return yb};var Hb=
function(Fb){var Jb=ta.decodeParamFromUrl(window.location.search,"path");Fb=(Jb?Jb:"/ierp")+Fb;Jb=new W;Jb.setRemoteUrl(Fb);return Jb},Nb=function(Fb,Jb,Mb,Qb){return new ca(Fb,Jb,function(Rb,Sb){return Mb?Mb(Rb,Sb):!1},Qb)};this.createFacade=function(Fb,Jb,Mb){Ua||(Ua=Hb("/qing_rpt/snapschedule.do"));return Nb(Ua,Fb,Jb,Mb)};this.createPublishFacade=function(Fb,Jb,Mb){mb||(mb=Hb("/qing/publishTo.do"));return Nb(mb,Fb,Jb,Mb)};this.createAnalysisCenterFacade=function(Fb,Jb,Mb){sb||(sb=Hb("/qing/analysisCenter.do"));
return Nb(sb,Fb,Jb,Mb)}};this.start=function(){R.init();Ta.hookCollector(function(Ua,mb){l.interestInBehavior(Ua,mb)});var Ra=$(document.body);A=$("<div>");A.addClass("extreport-schedule-center");Ja=new d;n=Ja.getJqUi();n.addClass("extreport-schedule-center-toolbar");ia=Ja.createButton(n,!1,Pb,a.get("add","\u65b0\u589e"),a.get("add","\u65b0\u589e"));G=Ja.createButton(n,!1,Ca,a.get("edit","\u7f16\u8f91"),a.get("edit","\u7f16\u8f91"));y=Ja.createButton(n,!1,Qa,a.get("remove","\u5220\u9664"),a.get("remove",
"\u5220\u9664"));sa=Ja.createButton(n,!1,ib,a.get("enable","\u542f\u7528\u8c03\u5ea6"),a.get("enable","\u542f\u7528\u8c03\u5ea6"));za=Ja.createButton(n,!1,vb,a.get("disable","\u7981\u7528\u8c03\u5ea6"),a.get("disable","\u7981\u7528\u8c03\u5ea6"));Ja.createButton(n,!1,Cb,a.get("refresh","\u5237\u65b0"),a.get("refresh","\u5237\u65b0"));Ja.createButton(n,!1,Bb,a.get("close","\u9000\u51fa"),a.get("close","\u9000\u51fa"));n.appendTo(A);Ea();F=$("<div>");F.addClass("extreport-schedule-center-container");
F.appendTo(A);ja();qa||Wa(Ma);V();N();A.appendTo(Ra);l.interestInBehaviorEntrance(l.ENTRANCE_EXTREPORT_SNAP_SCHEDULE_CENTER)};var ja=function(){ra.setJumpToPageListener(function(Ua,mb,sb){ya.createFacade(function(yb){La(yb,sb)},function(yb,Gb){return 8088E3<yb?(ya.getMessageCurtain().showPrompt(Gb,2E3),!0):!1}).loadScheduleInfo(null,Ua,mb,zb)});ra.setSelectedAllOrNotListener(function(Ua,mb){Ua?ya.createFacade(function(sb){for(var yb=[],Gb=0,Hb=sb.length;Gb<Hb;Gb++){var Nb=new fb;Nb.fromJsonObject(sb[Gb]);
yb.push(Nb)}m.setSelectedScheduleId(yb);mb(sb.length)},function(sb,yb){return 8088E3<sb?(ya.getMessageCurtain().showPrompt(yb,2E3),!0):!1}).loadAllScheduleInfoBySearch(null,zb):m.setSelectedScheduleId(null)});ra.setComboBoxItemModelsAndSelectedItem([5,10,20,50,100,500,1E3],2);var Ra=ra.getJqUi();Ra.addClass("extreport-schedule-center-pagination");F.append(Ra)},La=function(Ra,Ua,mb){Ua?Ua(Ra.totalRow):ra.refreshPagination();Ra=Ra.schedules;Ua=ra.getJqUi();Ra&&0<Ra.length?Ua.show():Ua.hide();qa=[];
Ua=0;for(var sb=Ra.length;Ua<sb;Ua++){var yb=new fb;yb.fromJsonObject(Ra[Ua]);qa.push(yb)}zb&&0==qa.length?(Ia(null),X(a.get("nodata","\u6ca1\u6709\u7b26\u5408\u641c\u7d22\u6761\u4ef6\u7684\u7ed3\u679c"))):zb||0!=qa.length?(C&&C.hide(),Ia(qa)):(Ia(null),X(a.get("noScheduledata","\u6682\u65e0\u8c03\u5ea6\u8bb0\u5f55\u3002")));mb&&mb(bb)},bb=function(){var Ra=ya.createFacade(function(mb){for(var sb=[],yb=0,Gb=mb.length;yb<Gb;yb++){var Hb=new fb;Hb.fromJsonObject(mb[yb]);sb.push(Hb)}m.setSelectedScheduleId(sb);
ra.refreshSelectedRowTotal(mb.length)},function(mb,sb){return 8088E3<mb?(ya.getMessageCurtain().showPrompt(sb,2E3),!0):!1}),Ua=ea.getUrlParamValue("scheduleId");Ra.loadAllScheduleInfoBySearch(Ua,zb)},Ea=function(Ra){M||(O=new k,O.setSearchListenerDelay(1E3),O.addSearchListener(Ob),O.setShowSearchIcon(!0),O.setPlaceholder(a.get("searchContent","\u8bf7\u8f93\u5165\u641c\u7d22\u5185\u5bb9")),M=O.getJqUi(),M.addClass("extreport-schedule-center-search-box"),M.find(":input").on("keydown",function(Ua){13==
(Ua.keyCode||Ua.which||Ua.charCode)&&Ob()}),M.appendTo(n));M.css("display","block")},Wa=function(Ra){m=new t;m.setItemCheckedCallback(function(Ua,mb){ra.refreshSelectedRowTotal(mb);ia&&G&&y&&sa&&za&&(0>=Ua&&0>=mb?(G.setEnabled(!1),y.setEnabled(!1),sa.setEnabled(!1),za.setEnabled(!1)):(1==Ua&&1==mb?G.setEnabled(!0):G.setEnabled(!1),y.setEnabled(!0),sa.setEnabled(!0),za.setEnabled(!0)))});m.setSwitchStateChangeCallback(function(Ua,mb){Db([Ua],mb,!0)});xa=m.getJqUi();xa.appendTo(F);pb(Ra)},N=function(){var Ra=
new T;Ra.setCallbackImmediately(function(){V();m.resize();ya.fireWindowResizeEvent()});Ra.setDelay(250);Ra.observe()},V=function(){document.body.style.height=document.documentElement.clientHeight+"px"},X=function(Ra){C||(C=$("<div>"),C.addClass("extreport-schedule-center-nodata"),C.appendTo(F),I=$("<div>"),g.layoutCtrlCenterAlign(I,220),I.appendTo(C),nb.background(I,"no-data"),I.addClass("extreport-schedule-center-nodata-icon"),I.css({"margin-top":I.parent().height()/2-110+"px"}),Y=$("<div>"),g.layoutCtrlCenterAlign(Y,
500),Y.appendTo(C),Y.addClass("extreport-schedule-center-nodata-tip"),Y.css({"margin-top":Y.parent().height()/2-110+270+"px"}),ya.addWindowResizeListener(function(){var Ua=I.parent().height()/2-110;I.css({"margin-top":(0<Ua?Ua:0)+"px"});Ua=Y.parent().height()/2-110+270;Y.css({"margin-top":(0<Ua?Ua:0)+"px"})}));Y.text(Ra);C.show()},Ia=function(Ra){m.setModel(Ra);Ra=m.keepScrollStatus();m.updateUi(null,Ra)},Ma=function(Ra){var Ua=ea.getUrlParamValue("scheduleId");Ua&&(m.setCheckedBox(Ua),Ra&&Ra())},
pb=function(Ra){var Ua=ya.createFacade(function(mb){m.setSelectedScheduleId(null);ra.refreshSelectedRowTotal(0);La(mb,ra.resetPaginationAndJumpToFirstPage,Ra)},function(mb,sb){return 8088E3<mb?(ya.getMessageCurtain().showPrompt(sb,2E3),!0):!1});Ua.setShowBlocking(!0);Ua.loadScheduleInfo(null,1,ra.getPageSize(),zb)},Ab=function(){var Ra=ya.createFacade(function(Ua){m.setSelectedScheduleId(null);ra.refreshSelectedRowTotal(0);La(Ua,ra.resetPaginationAndJumpToFirstPage)},function(Ua,mb){return 8088E3<
Ua?(ya.getMessageCurtain().showPrompt(mb,2E3),!0):!1});Ra.setShowBlocking(!0);Ra.loadScheduleInfo(null,1,ra.getPageSize())},Lb=function(Ra,Ua){var mb=ya.createFacade(function(sb){sb=sb.schedules;var yb=new fb;yb.fromJsonObject(sb[0]);Ua&&Ua(yb)},function(sb,yb){return 8088E3<sb?(ya.getMessageCurtain().showPrompt(yb,2E3),!0):!1});mb.setShowBlocking(!0);mb.loadScheduleInfo(Ra,ra.getCurrentPage(),ra.getPageSize(),zb)},Ob=function(Ra){zb=O.getText().trim();m.setSearchText(zb);pb()},Pb=function(){Eb(0)},
Ca=function(){Eb(1)},Qa=function(){for(var Ra=m.getSelectedSchedule(),Ua=[],mb=0;mb<Ra.length;mb++)Ua.push(Ra[mb].getScheduleId());Ra=a.get("delConfirmMessage","\u5220\u9664\u9009\u4e2d\u7684#1\u6761\u8c03\u5ea6\u540e\u5c06\u65e0\u6cd5\u6062\u590d\uff0c\u786e\u5b9a\u5220\u9664\u5417\uff1f").replace("#1",Ua.length);Kb(Ra,function(){ya.createFacade(function(){ya.getMessageCurtain().showSuccess(a.get("removeScheduleSuccess","\u5220\u9664\u8c03\u5ea6\u6210\u529f\u3002"));pb()},function(sb,yb){return 8088E3<
sb?(ya.getMessageCurtain().showPrompt(yb,2E3),!0):!1}).deleteSchedule(Ua);Ta.occur(Ta.DELETE_SNAP_SCHEDULE_TYPE,Ua.toString())})},ib=function(){for(var Ra=m.getSelectedSchedule(),Ua=[],mb=0;mb<Ra.length;mb++)Ga.NO==Ra[mb].getEnableSchedule()&&Ua.push(Ra[mb].getScheduleId());0<Ua.length?(Ra=a.get("enableConfirmMessage","\u542f\u7528\u9009\u4e2d\u7684#1\u6761\u8c03\u5ea6\uff0c\u786e\u5b9a\u542f\u7528\u5417\uff1f").replace("#1",Ua.length),Kb(Ra,function(){Db(Ua,Ga.YES)})):ya.getMessageCurtain().showPrompt(a.get("enabledSchedule",
"\u8be5\u8c03\u5ea6\u5df2\u7ecf\u542f\u7528\u3002"))},vb=function(){for(var Ra=m.getSelectedSchedule(),Ua=[],mb=0;mb<Ra.length;mb++)Ga.YES==Ra[mb].getEnableSchedule()&&Ua.push(Ra[mb].getScheduleId());0<Ua.length?(Ra=a.get("disableConfirmMessage","\u7981\u7528\u9009\u4e2d\u7684#1\u6761\u8c03\u5ea6\uff0c\u786e\u5b9a\u7981\u7528\u5417\uff1f").replace("#1",Ua.length),Kb(Ra,function(){Db(Ua,Ga.NO)})):ya.getMessageCurtain().showPrompt(a.get("disabledSchedule","\u8be5\u8c03\u5ea6\u5c1a\u672a\u542f\u7528\uff0c\u4e0d\u80fd\u7981\u7528\u3002"))},
Cb=function(){var Ra=ya.createFacade(function(Ua){m.setSelectedScheduleId(null);ra.refreshSelectedRowTotal(0);La(Ua)},function(Ua,mb){return 8088E3<Ua?(ya.getMessageCurtain().showPrompt(mb,2E3),!0):!1});Ra.setShowBlocking(!0);Ra.loadScheduleInfo(null,ra.getCurrentPage(),ra.getPageSize(),zb)},Bb=function(){z.closeCurrentTab()},Db=function(Ra,Ua,mb){ya.createFacade(function(){var sb=Ga.YES==Ua?a.get("enableScheduleSuccess","\u542f\u7528\u8c03\u5ea6\u6210\u529f\u3002"):a.get("disableScheduleSuccess",
"\u7981\u7528\u8c03\u5ea6\u6210\u529f\u3002");ya.getMessageCurtain().showSuccess(sb);Cb()},function(sb,yb){mb&&Cb();return 8088E3<sb?(ya.getMessageCurtain().showPrompt(yb,2E3),!0):!1}).operateSchedule(Ra,Ua);Ta.occur(Ga.YES==Ua?Ta.ENABLE_SNAP_SCHEDULE_TYPE:Ta.DISABLE_SNAP_SCHEDULE_TYPE,Ra.toString())},Eb=function(Ra){var Ua;if(Ra&&0!=Ra){var mb=Ib();if(!mb&&1!=mb.length){ya.getMessageCurtain().showPrompt(a.get("select","\u8bf7\u9009\u62e9\u4e00\u6761\u8bb0\u5f55\u3002"),2E3);return}}mb?Lb(mb[0].getScheduleId(),
function(sb){Ua={model:sb};sb=new e(ya,Ua);sb.setFunSuccessCallback(Cb);sb.showDialog();sb.setBasicPanelCurrentTab()}):(Ra=new e(ya,Ua),Ra.setFunSuccessCallback(Ab),Ra.showDialog(),Ra.setBasicPanelCurrentTab())},Ib=function(){var Ra=m.getSelectedRowModel();Ra&&0!=Ra.length||ya.getMessageCurtain().showPrompt(a.get("select","\u8bf7\u9009\u62e9\u4e00\u6761\u8bb0\u5f55\u3002"),2E3);return Ra},Kb=function(Ra,Ua){var mb=$(document.body),sb=$("<div class='sa-ctrl-common-modallayer'>");sb.appendTo(mb);var yb=
new da(sb),Gb=a.get("operateConfirm","\u64cd\u4f5c\u786e\u8ba4");yb.setTitle(Gb);Gb=mb.prop("clientWidth");var Hb=mb.prop("clientHeight");yb.setBounds(Gb-400>>1,Hb-300>>1,400,300);yb.setToolbarVisible(!1);Gb=$("<div>");Hb=$("<div>");var Nb=$("<span>");nb.background(Nb,"icon-question");var Fb=$("<span>");Fb.text(Ra);Fb.addClass("extreport-schedule-center-dialog-confirm-msg");Fb.attr("title",Ra);g.layoutCtrl(Hb,null,null,368,185);g.layoutCtrl(Nb,150,10,65,78);g.layoutCtrl(Fb,0,115,370,60);Nb.appendTo(Hb);
Fb.appendTo(Hb);Hb.appendTo(Gb);yb.setContent(Gb);yb.addClosingListener(function(Jb,Mb){Mb&&Ua();Jb.destroy();sb.remove()});yb.showFooterPane();yb.show();sb.appendTo(mb)}};var ea,ta,g,fa,q,J,a,R,z,T,h,l,da,E,na,d,k,H,pa,v,b,f,r,p,D,Z,Oa,K,w,W,ca,Ta,nb,Da,ab,ob,Xa,fb,Fa,$a,gb,Ga,Ha,ka,Aa,rb,cb,hb,x,c,U,S,B,Q,ma,oa,ua,Pa,ha,Ya,eb,lb;(function(){var A=com.kingdee.bos.qing;ea=A.Seer;A=com.kingdee.bos.qing.common;ta=A.Util;g=A.DomUtil;fa=A.EventListenerList;A=com.kingdee.bos.qing.common.ui;q=A.TableUtil;
J=A.CommonIconUtil;A=com.kingdee.bos.qing.framework.common;a=A.MultilanguageManager.createPackageAccessor(com.kingdee.bos.extreport.snapschedule);R=A.WebPageInitializer;z=A.TabbedUiUtil;T=A.WindowResizeObserver;h=A.GlobalFont;A=com.kingdee.bos.qing.behavior;l=A.BehaviorManager;A=com.kingdee.bos.qing.ui.component;da=A.Dialog;E=A.MessageCurtain;na=A.ComboBox;d=A.Toolbar;k=A.SearchBox;H=A.AbstractModalDialog;pa=A.TabContainer;v=A.List;b=A.Label;f=A.TextField;r=A.RadioButton;p=A.RadioButtonGroup;D=A.SplitPane;
Z=A.F7Selector;Oa=A.CheckBox;K=A.Spinner;w=A.SwitchButton;A=com.kingdee.bos.extreport.snapschedule.common;W=A.RemoteImpl;ca=A.Facade;Ta=A.UserOperationReporter;nb=A.Icons;A=com.kingdee.bos.qing.schedule;Da=A.ScheduleSelector;A=com.kingdee.bos.extreport.snapschedule.model;ab=A.ScheduleInfoModel;ob=A.CodingRuleInfoModel;Xa=A.CodingRuleEntryInfoModel;fb=A.ScheduleVOModel;Fa=A.FilterSchemeModel;$a=A.OverwriteSnapType;gb=A.SaveHyperLinkType;Ga=A.EnableScheduleType;Ha=A.PublishAuthType;ka=A.CodingRuleItemModel;
Aa=A.ScheduleNotifyStrategyModel;A=com.kingdee.bos.extreport.snapschedule.filter;rb=A.ScheduleReportFilter;cb=A.SystemVarType;A=com.kingdee.bos.extreport.snapcenter.common.ui;hb=A.SnapContentPanel;x=A.SaveSnapSourceType;c=A.StringUtil;U=A.ValueTextPair;A=com.kingdee.bos.qing.publish.env;Q=A.PublishAppMenuFolderNode;ma=A.PublishAppMenuLeafNode;oa=A.AbstractPublishAppMenuNode;A=com.kingdee.bos.qing.publish.model;ua=A.FolderNode;Pa=A.LeafNode;A=com.kingdee.bos.qing.publish.common;ha=A.FilterModelType;
Ya=A.PresetSearchTypeUtil;A=com.kingdee.bos.qing.biz.common;eb=A.ComplexPaginationBar;S=A.UserDialogSelector;B=A.RoleDialogSelector;lb=a.get("autoScheduleFilterScheme","\u81ea\u52a8\u8c03\u5ea6\u8fc7\u6ee4\u65b9\u6848")})()})();
//qingVersionTag: 20250415