var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(n,p,v){n instanceof String&&(n=String(n));for(var L=n.length,R=0;R<L;R++){var ba=n[R];if(p.call(v,ba,R,n))return{i:R,v:ba}}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(n,p,v){if(n==Array.prototype||n==Object.prototype)return n;n[p]=v.value;return n};$jscomp.getGlobal=function(n){n=["object"==typeof globalThis&&globalThis,n,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var p=0;p<n.length;++p){var v=n[p];if(v&&v.Math==Math)return v}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(n,p){var v=$jscomp.propertyToPolyfillSymbol[p];if(null==v)return n[p];v=n[v];return void 0!==v?v:n[p]};
$jscomp.polyfill=function(n,p,v,L){p&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(n,p,v,L):$jscomp.polyfillUnisolated(n,p,v,L))};$jscomp.polyfillUnisolated=function(n,p,v,L){v=$jscomp.global;n=n.split(".");for(L=0;L<n.length-1;L++){var R=n[L];if(!(R in v))return;v=v[R]}n=n[n.length-1];L=v[n];p=p(L);p!=L&&null!=p&&$jscomp.defineProperty(v,n,{configurable:!0,writable:!0,value:p})};
$jscomp.polyfillIsolated=function(n,p,v,L){var R=n.split(".");n=1===R.length;L=R[0];L=!n&&L in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var ba=0;ba<R.length-1;ba++){var W=R[ba];if(!(W in L))return;L=L[W]}R=R[R.length-1];v=$jscomp.IS_SYMBOL_NATIVE&&"es6"===v?L[R]:null;p=p(v);null!=p&&(n?$jscomp.defineProperty($jscomp.polyfills,R,{configurable:!0,writable:!0,value:p}):p!==v&&(void 0===$jscomp.propertyToPolyfillSymbol[R]&&(v=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[R]=$jscomp.IS_SYMBOL_NATIVE?
$jscomp.global.Symbol(R):$jscomp.POLYFILL_PREFIX+v+"$"+R),$jscomp.defineProperty(L,$jscomp.propertyToPolyfillSymbol[R],{configurable:!0,writable:!0,value:p})))};$jscomp.polyfill("Array.prototype.find",function(n){return n?n:function(p,v){return $jscomp.findInternal(this,p,v).v}},"es6","es3");
$jscomp.polyfill("String.prototype.replaceAll",function(n){return n?n:function(p,v){if(p instanceof RegExp&&!p.global)throw new TypeError("String.prototype.replaceAll called with a non-global RegExp argument.");return p instanceof RegExp?this.replace(p,v):this.replace(new RegExp(String(p).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),v)}},"es_2021","es3");$jscomp.arrayIteratorImpl=function(n){var p=0;return function(){return p<n.length?{done:!1,value:n[p++]}:{done:!0}}};
$jscomp.arrayIterator=function(n){return{next:$jscomp.arrayIteratorImpl(n)}};$jscomp.initSymbol=function(){};
$jscomp.polyfill("Symbol",function(n){if(n)return n;var p=function(ba,W){this.$jscomp$symbol$id_=ba;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:W})};p.prototype.toString=function(){return this.$jscomp$symbol$id_};var v="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",L=0,R=function(ba){if(this instanceof R)throw new TypeError("Symbol is not a constructor");return new p(v+(ba||"")+"_"+L++,ba)};return R},"es6","es3");
$jscomp.polyfill("Symbol.iterator",function(n){if(n)return n;n=Symbol("Symbol.iterator");for(var p="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),v=0;v<p.length;v++){var L=$jscomp.global[p[v]];"function"===typeof L&&"function"!=typeof L.prototype[n]&&$jscomp.defineProperty(L.prototype,n,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return n},"es6",
"es3");$jscomp.iteratorPrototype=function(n){n={next:n};n[Symbol.iterator]=function(){return this};return n};$jscomp.iteratorFromArray=function(n,p){n instanceof String&&(n+="");var v=0,L=!1,R={next:function(){if(!L&&v<n.length){var ba=v++;return{value:p(ba,n[ba]),done:!1}}L=!0;return{done:!0,value:void 0}}};R[Symbol.iterator]=function(){return R};return R};
$jscomp.polyfill("Array.prototype.keys",function(n){return n?n:function(){return $jscomp.iteratorFromArray(this,function(p){return p})}},"es6","es3");$jscomp.owns=function(n,p){return Object.prototype.hasOwnProperty.call(n,p)};$jscomp.polyfill("Object.values",function(n){return n?n:function(p){var v=[],L;for(L in p)$jscomp.owns(p,L)&&v.push(p[L]);return v}},"es8","es3");$jscomp.polyfill("Object.is",function(n){return n?n:function(p,v){return p===v?0!==p||1/p===1/v:p!==p&&v!==v}},"es6","es3");
$jscomp.polyfill("Array.prototype.includes",function(n){return n?n:function(p,v){var L=this;L instanceof String&&(L=String(L));var R=L.length;v=v||0;for(0>v&&(v=Math.max(v+R,0));v<R;v++){var ba=L[v];if(ba===p||Object.is(ba,p))return!0}return!1}},"es7","es3");
$jscomp.checkStringArgs=function(n,p,v){if(null==n)throw new TypeError("The 'this' value for String.prototype."+v+" must not be null or undefined");if(p instanceof RegExp)throw new TypeError("First argument to String.prototype."+v+" must not be a regular expression");return n+""};$jscomp.polyfill("String.prototype.includes",function(n){return n?n:function(p,v){return-1!==$jscomp.checkStringArgs(this,p,"includes").indexOf(p,v||0)}},"es6","es3");
$jscomp.polyfill("Array.prototype.values",function(n){return n?n:function(){return $jscomp.iteratorFromArray(this,function(p,v){return v})}},"es8","es3");
var KEXTCommonUtil=new function(){var n=this,p=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;this.isDarkColor=function(v){if(!v)return!1;0==v.indexOf("#")&&(v=n.getRgbIntArr(v));return 128>=Math.round(.299*v[0]+.587*v[1]+.114*v[2])?!0:!1};this.getRgbaString=function(v){return"RGBA("+v.join(",")+")"};this.getRgbIntArr=function(v){if(!v)return v;if((v=v.toLowerCase())&&p.test(v)){if(4===v.length){for(var L="#",R=1;4>R;R++)L+=v.slice(R,R+1).concat(v.slice(R,R+1));v=L}L=[];for(R=1;7>R;R+=2)L.push(parseInt("0x"+
v.slice(R,R+2)));return L}return v}};var Constants={REPORT_EXT:"ext",CHANGE_SHEET:"changeSheet",TREE_ROW_COUNT:200},KReportUtil=function(){var n=function(p){var v=typeof p;if("string"==v)return'"'+p.replace(/["\\\x00-\x1f\x7f-\x9f]/g,function(W){W=W.charCodeAt();return"\\u00"+Math.floor(W/16).toString(16)+(W%16).toString(16)})+'"';if("number"==v){if(isNaN(p)||!isFinite(p))throw Error("SueError: Invalid JSON number type.");return""+p}if("boolean"==v||null===p)return""+p;if("undefined"==v)return"null";if(p instanceof Array){var L="";v=
0;for(var R=p.length;v<R;v++){var ba=n(p[v]);L+=ba;v<R-1&&(L+=",")}return"["+L+"]"}if("object"==v){v=[];for(L in p)v.push('"'+L+'":'+n(p[L]));return"{"+v.join(",")+"}"}if("function"!=v)throw Error("SueError: Invalid JSON type.");};return{toJson:function(p){try{return eval("("+p+")")}catch(v){return null}},toStr:n,toJsonEscapeString:function(p){p&&(p=p.replace(/"/g,'\\"'),p=p.replace(/\r/g,"\\r"),p=p.replace(/\n/g,"\\n"),p=p.replace(/\t/g,"\\t"));return p},fromJsonEscapeString:function(p){p&&(p=p.replace(/\\"/g,
'"'),p=p.replace(/\\r/g,"\r"),p=p.replace(/\\n/g,"\n"),p=p.replace(/\\t/g,"\t"));return p},getCssStyle:function(p){var v=new KTStyle;v.setFontName(p.fontName);v.setFontSize(p.fontSize);v.setBold(p.isBold);v.setItalic(p.isItalic);v.setUnderLine(p.isUnderLine);v.setLineThrough(p.isLineThrough);v.setColor(p.color);v.setBackgroundColor(p.backgroundColor);v.setTextAlign(p.textAlign);v.setVerticalAlign(p.verticalAlign);v.setWrapText(p.isWrapText);v.setVerticalText(p.isVerticalText);v.setIndent(p.indentation);
v.setRotation(p.rotation);v.setShrinkText(p.isShrinkText);return v},getCssBorder:function(p){var v=new KTBorderStyle;v.setTopBorderPen(p.top.pen);v.setRightBorderPen(p.right.pen);v.setBottomBorderPen(p.bottom.pen);v.setLeftBorderPen(p.left.pen);v.setTopBorderWidth(p.top.width);v.setRightBorderWidth(p.right.width);v.setBottomBorderWidth(p.bottom.width);v.setLeftBorderWidth(p.left.width);v.setTopBorderColor(p.top.color);v.setRightBorderColor(p.right.color);v.setBottomBorderColor(p.bottom.color);v.setLeftBorderColor(p.left.color);
return v},getCssDiagonal:function(p){var v=new KTBorderStyle;v.setLeftBorderPen(p.pen);v.setLeftBorderWidth(p.width);v.setLeftBorderColor(p.color);return v},getCssWidth:function(p,v){var L=$("<div/>");L.css({left:"-1000px",top:"-1000px",position:"absolute",overflow:"hidden",fontSize:v});L.text(p);$(document.body).append(L);p=L.width();L.remove();return p},getCssIntValue:function(p){return parseInt(p.substr(0,p.lastIndexOf("px")))},isNullString:function(p){return"string"==typeof p&&"null"==p?!0:!1},
stopPropagation:function(p){p&&p.stopPropagation?p.stopPropagation():window.event.cancelBubble=!0},preventDefault:function(p){p&&p.preventDefault?p.preventDefault():window.event.returnValue=!1;return!1}}}();
function StringUtil(){this.toJsonEscapeString=function(n){n&&(n=n.replace(/"/g,'\\"'),n=n.replace(/\r/g,"\\r"),n=n.replace(/\n/g,"\\n"),n=n.replace(/\t/g,"\\t"));return n};this.fromJsonEscapeString=function(n){n&&(n=n.replace(/\\"/g,'"'),n=n.replace(/\\r/g,"\r"),n=n.replace(/\\n/g,"\n"),n=n.replace(/\\t/g,"\t"));return n}}
function KRListenerProxy(){var n={};this.addListener=function(p,v){var L=n[p];L||(L=[],n[p]=L);for(p=0;p<L.length;p++)if(L[p]==v)return;L.push(v)};this.removeListener=function(p,v){if(p=n[p])for(var L=p.length-1;0<=L;L--)if(p[L]==v){p.splice(L,1);break}};this.fireEvent=function(p){var v=p.type||p.getType();if(v=n[v])for(var L=v.length-1;0<=L;L--)v[L](p)}}KRListenerProxy.Event=function(n){this.getType=function(){return n}};
var KReportToast=function(){var n,p,v;return{toast:function(L){n||(n=$("<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>"),p=n.find(".my-toast-text"));n.hide();n.remove();clearTimeout(v);var R=L.delay||
6E3;p.html(L.text||"empty info...");L=$("body");n.appendTo(L).show();v=setTimeout(function(){clearTimeout(v);n.hide();n.remove()},R);return n}}}();function ValueTextModel(){var n,p;this.setValue=function(v){n=v};this.getValue=function(){return n};this.setText=function(v){p=v};this.getText=function(){return p};this.toJsonObject=function(){var v={};v.value=this.getValue();v.text=this.getText();return v};this.fromJsonObject=function(v){var L=v.value;L=(new StringUtil).fromJsonEscapeString(L);this.setValue("null"==L?null:L);v=v.text;v=(new StringUtil).fromJsonEscapeString(v);this.setText("null"==v?null:v)};this.toJsonString=function(){var v='{"value":',
L=this.getValue();L||""===L?(L=JSON.stringify(L),v+=L):v+="null";v+=',"text":';(L=this.getText())||""===L?(L=JSON.stringify(L),v+=L):v+="null";return v+"}"}}
function ParamValue(){var n,p,v=[];this.setParamName=function(R){n=R};this.getParamName=function(){return n};this.setDataType=function(R){p=R};this.getDataType=function(){return p};this.clearValues=function(){v=[]};this.addValue=function(R){if(!(R instanceof ValueTextModel||R instanceof ValueTextTreeNodeModel))throw Error("Illegal argument.");v.push(R)};this.getValuesCount=function(){return v.length};this.getValue=function(R){return v[R]};this.getValues=function(){for(var R=[],ba=0;ba<this.getValuesCount();ba++)R.push(this.getValue(ba));
return R};this.toJsonObject=function(){var R={};R.paramName=this.getParamName();R.dataType=this.getDataType();for(var ba=[],W=0;W<this.getValuesCount();W++){var ma=this.getValue(W);ba.push(ma.toJsonObject())}R.values=ba;return R};this.fromJsonObject=function(R){this.setParamName(R.paramName);this.setDataType(R.dataType);this.clearValues();R=R.values;for(var ba=0;ba<R.length;ba++){var W=R[ba],ma=new ValueTextModel;ma.fromJsonObject(W);this.addValue(ma)}};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(R){var ba='{"paramName":"'+this.getParamName()+'",';ba+='"dataType":"'+p+'",';ba+='"paramVars":[';R||(R=/;/g);for(var W=0;W<this.getValuesCount();W++){0<W&&(ba+=",");var ma=this.getValue(W),K=ma.getValue();R.lastIndex=0;if(K&&R.test(K)){var A=[];if(-1<R.toString().indexOf("s"))if(A=K.match(L),null!=A)for(var ca=0;ca<A.length;ca++)K=K.replace(A[ca]," ");else A=[];K=K.trim();R.lastIndex=0;K&&R.test(K)&&(A=A.concat(K.split(R)));for(K=0;K<A.length;K++)(ca=A[K])&&""!==ca.trim()&&
(ma.setValue(ca),ma.setText(ca),ba+=ma.toJsonString(),ba+=",");ba=ba.substring(0,ba.length-1)}else ba+=ma.toJsonString()}return ba+"]}"}}
function ValueTextTreeNodeModel(){var n,p,v,L,R,ba,W,ma;this.setEntry=function(K){W=K};this.getEntry=function(){return W};this.setEntryHeadMap=function(K){ma=K};this.getEntryHeadMap=function(){return ma};this.setLevel=function(K){ba=K};this.getLevel=function(){return ba};this.setValue=function(K){n=K};this.getValue=function(){return n};this.setText=function(K){p=K};this.getText=function(){return p};this.setId=function(K){v=K};this.getId=function(){return v};this.setParentId=function(K){L=K};this.getParentId=
function(){return L};this.setChildren=function(K){R=K};this.getChildren=function(){return R};this.addChild=function(K){if(!(K instanceof ValueTextTreeNodeModel))throw Error("Illegal argument. Argument should be instanceof ValueTextTreeNodeModel");null==R&&(R=[]);R.push(K)};this.addChildren=function(K){if(!(K instanceof Array))throw Error("Illegal argument.");null==R&&(R=[]);R.concat(K)};this.toJsonObject=function(){var K={};K.value=this.getValue();K.text=this.getText();K.id=this.getId();K.parentId=
this.getParentId();K.children=this.getChildren();return K};this.fromJsonObject=function(K){var A=K.value;A=(new StringUtil).fromJsonEscapeString(A);this.setValue("null"==A?null:A);A=K.text;A=(new StringUtil).fromJsonEscapeString(A);this.setText("null"==A?null:A);A=K.id;A=(new StringUtil).fromJsonEscapeString(A);this.setId("null"==A?null:A);A=K.parentId;A=(new StringUtil).fromJsonEscapeString(A);this.setparentId("null"==A?null:A);K=K.children;this.setChildren("null"==K?null:K)};this.toJsonString=function(){var K=
'{"value":',A=this.getValue();A||""===A?(A=(new StringUtil).toJsonEscapeString(A),K+='"'+A+'"'):K+="null";K+=',"text":';(A=this.getText())||""===A?(A=(new StringUtil).toJsonEscapeString(A),K+='"'+A+'"'):K+="null";return K+"}"}}
function ValueTextTreeModel(){var n;this.getRootArray=function(){return n};this.buildTree=function(p){if(!(p instanceof Array))throw Error("Illegal argument.");n=[];if(p&&0!=p.length){if(!(p[0]instanceof ValueTextTreeNodeModel))throw Error("Illegal argument. Elements in Array should be instance of ValueTextTreeNodeModel.");for(var v=p.length,L={},R,ba,W=0;W<v;W++)R=p[W],ba=R.getId(),ba||(ba="treeAutoId_"+W,R.setId(ba)),L[ba]=R;for(W=0;W<v;W++)R=p[W],ba=null,R.getParentId()&&(ba=L[R.getParentId()]),
ba?ba.addChild(R):n.push(R)}};this.clear=function(){n=[]}};function ReportParamDescription(){var n,p,v,L,R,ba,W,ma,K,A,ca,ia,va,ja,aa,pa,la;this.setMaxRestrictNumber=function(ea){aa="null"==ea?"":ea};this.getMaxRestrictNumber=function(){return aa};this.setName=function(ea){n="null"==ea?"":ea};this.getName=function(){return n};this.setText=function(ea){p="null"==ea?"":ea};this.getText=function(){return p};this.getCaption=function(){return p?p:n};this.setRequired=function(ea){v=ea};this.isRequired=function(){return v};this.setDataType=function(ea){L=ea};this.getDataType=
function(){return L};this.setCtrlType=function(ea){R=ea};this.getCtrlType=function(){return R};this.setState=function(ea){ba=ea};this.getState=function(){return ba};this.setReadOnly=function(ea){W=ea};this.isReadOnly=function(){return W};this.setMultiSelectable=function(ea){ma=ea};this.isMultiSelectable=function(){return ma};this.setIsTree=function(ea){K=ea};this.isTree=function(){return K};this.setTreeExpandLevel=function(ea){A=ea};this.getTreeExpandLevel=function(){return A};this.setSuppliedValue=
function(ea){ca="null"==ca?"":ea};this.getSuppliedValue=function(){return ca};this.setDefaultValue=function(ea){"null"!=ea&&(ia=ea)};this.getDefaultValue=function(){return ia};this.setSuppliedValueDescription=function(ea){ja=ea};this.getSuppliedValueDescription=function(){return ja};this.setEditable=function(ea){va=ea};this.isEditable=function(){return va};this.setPattern=function(ea){pa=ea};this.getPattern=function(){return pa};this.setDescription=function(ea){la=ea};this.getDescription=function(){return la}}
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 n={},p={};this.addOneAffectAnother=function(L,R){var ba=n[L];ba||(ba={},n[L]=ba);ba[R]=!0;ba=p[R];ba||(ba={},p[R]=ba);ba[L]=!0};this.isOneAffectOthers=function(L){return n[L]?!0:!1};this.isOneAffectAnother=function(L,R){return v(n,L,R)};this.isOneAffectedByAnother=function(L,R){return v(p,L,R)};var v=function(L,R,ba){return(L=L[R])?L[ba]?!0:!1:!1}}
function SwitchButtonSuppliedValue(){var n,p;this.setChecked=function(v){if(!(v instanceof ValueTextModel))throw Error("Illegal argument.");n=v};this.getChecked=function(){return n};this.setUnchecked=function(v){if(!(v instanceof ValueTextModel))throw Error("Illegal argument.");p=v};this.getUnchecked=function(){return p}}
function NumberStepperSuppliedValue(){var n,p,v;this.setMin=function(L){n=L};this.getMin=function(){return n};this.setMax=function(L){p=L};this.getMax=function(){return p};this.setStep=function(L){v=L};this.getStep=function(){return v}}
function ListDelaySuppliedValueDescription(){var n,p,v,L,R;this.setValueField=function(ba){n=ba};this.getValueField=function(){return n};this.setTextField=function(ba){p=ba};this.getTextField=function(){return p};this.setDatasetPersistenceModel=function(ba){v=ba};this.getDatasetPersistenceModel=function(){return v};this.setDataSourceType=function(ba){L=ba};this.getDataSourceType=function(){return L};this.setReportId=function(ba){R=ba};this.getReportId=function(){return R}};function ReportFilter(n,p,v,L){var R=[],ba=new FilterContext(this,p,n),W=null,ma=new KEXTParamsAssociateModel,K,A,ca,ia,va,ja=!1,aa=com.kingdee.bos.qing.framework.common.MultilanguageManager.createPackageAccessor(com.kingdee.bos.extreport.runtime.filter),pa=function(P){var t=new ReportParamDescription;t.setName(P.name);t.setText(P.text);t.setDataType(P.dataType);t.setState(P.state);t.setReadOnly("ReadOnly"==P.state);t.setCtrlType(P.ctrlType);t.setRequired(1==P.required);t.setMultiSelectable(1==P.multiSelectable);
t.setIsTree(P.isTree);t.setTreeExpandLevel(P.treeExpandLevel);t.setMaxRestrictNumber(P.maxRestrictNumber);t.setEditable(1==P.editable);t.setPattern(P.pattern);t.setDescription(P.description);var D=ea(P.suppliedValue);t.setSuppliedValue(D);D=X(P.defaultValue,t.getDataType());t.setDefaultValue(D);var w=P.suppliedValueDescription;if(w){P=w.reportId;D=w.dataSourceType;var b=w.persistenceModel,S=w.valueFieldName;w=w.textFieldName;if(b&&S&&w){var C=new ListDelaySuppliedValueDescription;C.setDatasetPersistenceModel(b);
C.setValueField(S);C.setTextField(w);C.setDataSourceType(D);C.setReportId(P);P=C}else P=null}else P=null;t.setSuppliedValueDescription(P);return t},la=function(P){for(var t=[],D=0;D<P.length;D++){var w=P[D],b=new ValueTextModel;b.setText("");b.setValue("");w.text&&!KReportUtil.isNullString(w.text)&&b.setText(w.text);w.value&&!KReportUtil.isNullString(w.value)&&b.setValue(w.value);t.push(b)}return t},ea=function(P){if(!P)return null;var t=P.min,D=P.max,w=P.step;if(w)return P=new NumberStepperSuppliedValue,
P.setMin(t),P.setMax(D),P.setStep(w),P;w=P.checked;t=P.unChecked;return w&&t?(D=new ValueTextModel,D.setValue(w.value),D.setText(w.text),w=new ValueTextModel,w.setValue(t.value),w.setText(t.text),P=new SwitchButtonSuppliedValue,P.setChecked(D),P.setUnchecked(w),P):P&&!KReportUtil.isNullString(P)?la(P):null},X=function(P,t){if(null==P||KReportUtil.isNullString(P))return null;if(P instanceof Array)return la(P);var D=P.selectedValue,w=P.valueField,b=P.textField;if(D&&w&&b){t=[];for(P=0;P<D.length;P++){for(var S=
D[P].columnDatas,C=new ValueTextModel,T=0;T<S.length;T++){var u=S[T];w==u.value&&C.setValue(u.text);b==u.value&&C.setText(u.text)}t.push(C)}return t}D=P.value;w=P.text;if(void 0!=D&&void 0!=w)return t=new ValueTextModel,KReportUtil.isNullString(D)&&(D=w=""),t.setValue(D),t.setText(w),[t];if(D=P.value)return b=new Date,b.setTime(D),P=b.getFullYear(),S=b.getMonth()+1,C=b.getDate(),D=b.getHours(),w=b.getMinutes(),b=b.getSeconds(),P=P+"-"+S+"-"+C,D=D+":"+w+":"+b,t="Date"==t?P:"Time"==t?D:P+" "+D,D=new ValueTextModel,
D.setValue(t),D.setText(t),[D];D=P instanceof Object?null:P.toString();t=new ValueTextModel;t.setValue(D);t.setText(D);return[t]},na=function(P,t){A&&(A.children().detach(),A.append(t?t:ca),A.trigger("pagecreate"))};this.forRpcReduced=function(P,t,D){K=[];W={};P={};if(v)for(var w=0;w<v.length;w++){var b=v[w],S=new ParamValue;S.fromJsonObject(b);P[S.getParamName()]=S.getValues()}for(w=0;w<t.length;w++){var C=t[w];b=pa(C);"Hidden"!=b.getState()&&(va=!0);K.push(b.getName());S=(new FilterCtrlFactory).create(b,
ba,L);W[b.getName()]=S;S.setSuppliedValue(b.getSuppliedValue());S.setSuppliedValueDescription(b.getSuppliedValueDescription());"numberstepper"==(b.getCtrlType()?b.getCtrlType().toLowerCase():null)&&S.setDefaultValue(C.defaultValue);C=P[b.getName()];S instanceof com.kingdee.bos.extreport.runtime.filter.FilterLabel||(C?S.setSelectedValue(C):S.setSelectedValue(b.getDefaultValue()),S.setSelectedValueChangedListener(ta))}if(D)for(var T in D)for(t=D[T],w=0;w<t.length;w++)ma.addOneAffectAnother(T,t[w]);
D=[];R=[];for(var u in W){t=W[u].getParamDescription();T=new ParamValue;T.setParamName(u);T.setDataType(t.getDataType());if(t=t.getDefaultValue())for(P=0;P<t.length;P++)T.addValue(t[P]);D.push(T.toJsonObject());R.push(T)}return D};this.isDispalay=function(){return va};this.render=function(P,t){A=$(P);A.attr("data-role","page");t=A;P=$("<div>");P.appendTo(t);P.css("position","relative");t=$("<div>");t.attr("data-role","listview");t.appendTo(P);t.css({fontSize:"13px"});for(var D in W){var w=W[D],b=
w instanceof com.kingdee.bos.extreport.runtime.filter.FilterCheckBoxGroup?$("<div>").css({position:"relative",display:"inline-block",width:"100%","min-height":"24px"}):w 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"});b.attr("data-role","fieldcontain");b.appendTo(t);w.createUI(b)}ca=P;D=$(window).height()-270;100>=D&&(D=100);
A.css({padding:"0px 10px 0px 10px",maxHeight:D,overflowY:"auto",position:"relative"});na()};this.execute=function(P,t){var D=!1,w="[";R=[];var b={};for(r in W){var S=W[r];if(!(S instanceof com.kingdee.bos.extreport.runtime.filter.FilterLabel)){var C=new ParamValue;C.setParamName(r);C.setDataType(S.getParamDescription().getDataType());var T=S.getSelectedValue();!D&&S.getParamDescription().isRequired()&&(D=!T||0==T.length);if(T){S.getParamDescription().isRequired()&&(D=!0);for(var u=0;u<T.length;u++){var H=
T[u];C.addValue(H);S.getParamDescription().isRequired()&&H.getValue()&&(D=!1)}}if(D)return{success:!1,errMsg:S.getParamDescription().getText()+aa.get("paramValEmptyError"," \u53c2\u6570\u503c\u4e0d\u80fd\u4e3a\u7a7a\u3002")};1<w.length&&(w+=",",w+="\r\n");w="TextField"==S.getParamDescription().getCtrlType()?w+C.toJsonString(/,|;|\uff0c|\uff1b|\s+/g):w+C.toJsonString();R.push(C)}}var r={};r.pageId=n;r.schemeName=P;r.isDefaultChange=t;r.flag="1";r.paramValues=w+"]";return D?{success:!1,errMsg:aa.get("incompleteParamError",
"\u53c2\u6570\u503c\u4e0d\u5b8c\u6574\u3002")}:{success:!0,data:r,selectAll:JSON.stringify(b)}};this.getCtrl=function(P){return W[P]};this.updateParamByName=function(P,t){P=W[P];for(var D=t.length,w=[],b=0;b<D;b++){var S=t[b],C=new ValueTextModel;C.setValue(S);C.setText(S);w.push(C)}P.setSelectedValue(w)};this.getDataSetParamValues=function(){var P=!1,t="[";R=[];for(var D in W){var w=W[D];if(!(w instanceof com.kingdee.bos.extreport.runtime.filter.FilterLabel)){var b=new ParamValue;b.setParamName(D);
b.setDataType(w.getParamDescription().getDataType());var S=w.getSelectedValue();!P&&w.getParamDescription().isRequired()&&(P=!S||0==S.length);if(S){w.getParamDescription().isRequired()&&(P=!0);for(var C=0;C<S.length;C++){var T=S[C];b.addValue(T);w.getParamDescription().isRequired()&&T.getValue()&&(P=!1)}}if(P)return{success:!1,errMsg:w.getParamDescription().getText()+aa.get("paramValEmptyError"," \u53c2\u6570\u503c\u4e0d\u80fd\u4e3a\u7a7a\u3002")};1<t.length&&(t+=",",t+="\r\n");t="TextField"==w.getParamDescription().getCtrlType()?
t+b.toJsonString(/,|;|\uff0c|\uff1b|\s+/g):t+b.toJsonString();R.push(b)}}D={};D.paramValues=t+"]";return P?{success:!1,errMsg:aa.get("incompleteParamError","\u53c2\u6570\u503c\u4e0d\u5b8c\u6574\u3002")}:{success:!0,data:D}};this.setSchemeParams=function(P,t,D){for(var w in W){for(var b="",S="",C=W[w].getSelectedValue(),T=0;T<C.length;T++){var u=C[T];b+=u.getValue();S+=u.getText();T!=C.length-1&&(b+="0xx1xx",S+="0xx1xx")}P.push([b]);t.push([S]);D.push([w])}};this.updateFilterByScheme=function(P,t){for(var D=
function(z,M,N){return function(){z.setSelectedValue(M);za(z,N,t)}},w=function(){for(var z=0,M={};;){var N=P.match(new RegExp("N"+z+"=(.*?)\u0001"));if(!N||!N[1])break;N=N[1];var a=P.match(new RegExp("V"+z+"=(.*?)\u0001"))[1],l=P.match(new RegExp("C"+z+"=(.*?)\u0001"))[1];M[N]=[a,l];z++}for(var h in W){if(!M[h])break;var q=M[h][0];l=M[h][1];z=W[h];N=z.getParamDescription().getCtrlType();a="";N&&(a=N.toLowerCase());N=[];if("combobox"==a||"f7"==a||"checkboxgroup"==a){q=q.split("0xx1xx");l=l.split("0xx1xx");
for(var g=0,e=q.length;g<e;g++)a=new ValueTextModel,a.setText(l[g]),a.setValue(q[g]),N.push(a)}else"datetime"==a?q&&(a=new ValueTextModel,a.setText(l),a.setValue(q),N.push(a)):("textfield"==a&&(l=l.replaceAll("0xx1xx",";"),q=q.replaceAll("0xx1xx",";")),a=new ValueTextModel,a.setText(l),a.setValue(q),N.push(a));z.setSelectedValue(N)}na()},b=0,S={};;){var C=P.match(new RegExp("N"+b+"=(.*?)\u0001"));if(!C||!C[1])break;C=C[1];var T=P.match(new RegExp("V"+b+"=(.*?)\u0001"))[1],u=P.match(new RegExp("C"+
b+"=(.*?)\u0001"))[1];S[C]=[T,u];b++}for(var H in W){if(!S[H])break;var r=S[H][0];C=S[H][1];T=W[H];u=T.getParamDescription().getCtrlType();var I="";u&&(I=u.toLowerCase());u=[];if("combobox"==I||"f7"==I||"checkboxgroup"==I){r=r.split("0xx1xx");var x=C.split("0xx1xx");C="";I=0;for(var B=x.length;I<B;I++)C+=x[I]+";";C=C.substring(0,C.length-1);I=0;for(B=r.length;I<B;I++)x=new ValueTextModel,x.setText(C),x.setValue(r[I]),u.push(x)}else"datetime"==I?r&&(x=new ValueTextModel,x.setText(C),x.setValue(r),
u.push(x)):("textfield"==I&&(C=C.replaceAll("0xx1xx",";"),r=r.replaceAll("0xx1xx",";")),x=new ValueTextModel,x.setText(C),x.setValue(r),u.push(x));w=D(T,u,w);b++}w()};this.getCurrentValueCaption=function(){for(var P="",t=0;t<R.length;t++){var D=R[t],w=D.getParamName();w=W[w].getParamDescription().getCaption();0<t&&(P+="    ");P+=w;P+=":";w=D.getValuesCount();if(0==w)P+="(\u65e0)";else for(var b=0;b<w;b++){0<b&&(P+=";");var S=D.getValue(b);P+=S.getText()}}return P};this.close=function(){};this.isEditable=
function(P){return W[P].getParamDescription().isEditable()};this.getSuppliedValue=function(P){return W[P].getParamDescription().getSuppliedValue()};this.getAssociatedFiltersJsonValue=function(P){var t="[",D;for(D in W)if(D!=P&&ma.isOneAffectedByAnother(P,D)){1<t.length&&(t+=",");var w=W[D];t+='{"paramName":"';t+=D;t+='","paramValues":[';if(w=w.getSelectedValue())for(var b=0;b<w.length;b++){0<b&&(t+=",");var S=w[b];S.getValue()?(t+='"',t+=S.getValue(),t+='"'):t+="null"}t+="]}"}return t+"]"};this.setSchemeList=
function(P){ia=P};this.getSchemeList=function(){return ia};var ta=function(P){ja?ja=!1:za(P)},za=function(P,t,D){var w=P.getParamDescription().getName();if(ma&&ma.isOneAffectOthers(w)){if(t){var b={};var S=function(T){ja=b[T]=!0;for(var u in b)if(!b[u]){ja=!1;break}ja&&(t(),D&&D())}}for(var C=0;C<K.length;C++)P=K[C],ma.isOneAffectAnother(w,P)&&(P=W[P],t?(b[C]=!1,P.resetSuppliedValue(S,C)):P.resetSuppliedValue())}else t&&t()};this.setArrParamsName=function(P){K=P};this.pushArrParamsName=function(P){K.push(P)};
this.setMapCtrls=function(P){W=P};this.getMapCtrls=function(){return W};this.pushMapCtrls=function(P,t){W[P]=t};this.setDisplay=function(P){va=P};this.addOneAffectAnother=function(P,t){ma.addOneAffectAnother(P,t)};this.protectedMethod={decodeParamDesc:pa,ctrlSelectedValueChanged:ta,updateUI:na}}
function FilterContext(n,p,v){var L=this;this.objReportFilter=n;this.reportDiv=p.reportDiv;this.oGlobal=p.oGlobal;this.strReportId=v;this.constructParam=function(R,ba){var W=ba.getDatasetPersistenceModel(),ma=ba.getValueField(),K=ba.getTextField(),A=ba.getDataSourceType();ba=ba.getReportId();W=(new StringUtil).toJsonEscapeString(W);var ca=this.objReportFilter.getAssociatedFiltersJsonValue(R);return{datasetXml:W,paramValues:ca,textName:K,valueName:ma,dataSourceType:A,reportId:ba,paramName:R,pageId:this.strReportId}};
this.delaySuppliedValueRemoteGetter=function(R,ba,W){this.oGlobal.createFacade(function(ma){W(ma)},function(ma,K){if(8099002===ma||8099007===ma||8099008===ma||8077016===ma||8099101===ma||8099010<=ma&&8099014>=ma){ma=com.kingdee.bos.qing.ui.component.MessageDialog;var A=new ma;A.setOptionType(ma.OPTION_OK);A.setMessage(K);A.showDialog();return!0}return!1}).getDelaySuppliedValue(L.constructParam(R,ba))}}
function FilterCtrlFactory(){this.create=function(n,p,v){var L=com.kingdee.bos.extreport.runtime.filter;if(!(n instanceof ReportParamDescription))throw Error("Illegal argument.");var R=n.getCtrlType()?n.getCtrlType().toLowerCase():null;if(v)switch(R){case "checkbox":return new L.FilterSwitch(n,p);case "combobox":return new L.FilterComboBoxMobile(n,p);case "f7":return new L.FilterForwardSelectorMobile(n,p);case "numberstepper":return new L.FilterNumberInputMobile(n,p);case "checkboxgroup":return new L.FilterCheckBoxGroup(n,
p);case "datetime":if("Date"==n.getDataType())return p=new L.DateTimeSliderSelector(n,p),v=n.getPattern(),ReportParamDescription.Y_M_PATTERN===v?p.setSelectorType(L.DateTimeSliderSelector.DATE_YM):ReportParamDescription.Y_Q_PATTERN===v?p.setSelectorType(L.DateTimeSliderSelector.DATE_YQ):ReportParamDescription.Y_PATTERN===v?p.setSelectorType(L.DateTimeSliderSelector.DATE_Y):p.setSelectorType(L.DateTimeSliderSelector.DATE),p;if("DateTime"==n.getDataType())return p=new L.DateTimeSliderSelector(n,p),
p.setSelectorType(L.DateTimeSliderSelector.DATE_TIME),p;if("Time"==n.getDataType())return p=new L.DateTimeSliderSelector(n,p),p.setSelectorType(L.DateTimeSliderSelector.TIME),p;throw Error("Illegal datetime!");case "label":return new L.FilterLabel(n,p);default:return new L.FilterTextField(n,p)}else switch(R){case "checkbox":return new L.FilterSwitch(n,p);case "combobox":return new L.FilterComboBoxSearch(n,p);case "f7":return new L.FilterForwardSelector(n,p);case "numberstepper":return new L.FilterNumberInput(n,
p);case "checkboxgroup":return new L.FilterCheckBoxGroup(n,p);case "datetime":if("Date"==n.getDataType())return v=n.getPattern(),ReportParamDescription.Y_M_PATTERN===v||ReportParamDescription.Y_Q_PATTERN===v||ReportParamDescription.Y_PATTERN===v?new L.FilterSimilarDate(n,p):new L.FilterDate(n,p);if("DateTime"==n.getDataType())return new L.FilterDateAndTime(n,p);if("Time"==n.getDataType())return new L.FilterTime(n,p);throw Error("Illegal datetime!");case "label":return new L.FilterLabel(n,p);default:return new L.FilterTextField(n,
p)}}}ReportFilter.CONSTANTS={getDelaySuppliedValue:"getDelaySuppliedValue"};(function(){function n(g){v.call(this,g);var e=this.protectedMethod,f=new u;this.protectedCreateItemUi=function(k,c,d,m){var V=c.getValue();k=e.isSelected(V);d=new T;d.setText(c.getText());d.setChecked(k);d.addCheckedListener(function(F,G){G&&e.selectOnlyOne(V)});f.addElement(d);return d.getJqUi()}}function p(g){v.call(this,g);var e=this,f=this.protectedMethod,k=!0,c,d,m;this.protectedInitBar=function(G,O,U){m=new H;m.setText(a.get("includeSubs","\u9009\u62e9\u65f6\u5305\u542b\u4e0b\u7ea7\u8282\u70b9"));
m.setChecked(k);m.addCheckedListener(F);var qa=m.getJqUi(),ra="en"==z.getUrlParamValue("language")?163:130;M.layoutCtrlWithLRTB(qa,null,0,ra,30,null,21);qa.appendTo(G);c=new H;c.setText(a.get("selectAll","\u5168\u9009"));c.setChecked(O);c.addCheckedListener(function(ka,ha){if(ha){ka=ka.isChecked();for(ha=0;ha<U.getRowsCount();ha++){var Z=U.getRow(ha);if(!Z.isHide()||m.isEnabled()&&m.isChecked())Z=Z.getCell(0).getValue(),f.select(Z.getValue(),ka)}e.resetScrollStatus(U);U.updateUI(!0);V()}});qa=c.getJqUi();
O="en"==z.getUrlParamValue("language")?26:0;M.layoutCtrlWithLRTB(qa,0,null,50+O,30,null,21);qa.appendTo(G);d=new w;V();qa=d.getJqUi();M.layoutCtrlWithLRTB(qa,60+O,null,110,30,null,21);qa.find(".sa-ctrl-label-text").css({overflow:"visible"});qa.appendTo(G)};this.protectedGetBarHeight=function(){return 58};this.protectedAfterUpdateTree=function(G,O){c.setChecked(G);m.setEnabled(!O)};this.protectedIsIncludeSubs=function(){return k};this.protectedCreateItemUi=function(G,O,U,qa){var ra=O.getValue();ra=
f.isSelected(ra);var ka=new H;ka.setUserObject(U);ka.setText(O.getText());ka.setChecked(ra);ka.addCheckedListener(function(ha,Z){if(Z){Z=ha.getUserObject();ha=ha.isChecked();var fa=G.getRow(Z).getCell(0),xa=fa.getValue();f.select(xa.getValue(),ha);if(k&&!qa()){xa=fa.getTreeModel();var ua=xa.getLevel();for(Z+=1;Z<G.getRowsCount();Z++){fa=G.getRow(Z).getCell(0);xa=fa.getTreeModel();if(xa.getLevel()<=ua)break;xa=fa.getValue();f.select(xa.getValue(),ha)}}G.updateUI(!0);Z=!0;ha=!1;for(fa=0;fa<G.getRowsCount();fa++)if(ua=
G.getRow(fa),!ua.isHide()&&(ha=!0,ua=ua.getCell(0).getValue(),!f.isSelected(ua.getValue()))){Z=!1;break}c.setChecked(ha&&Z);V()}});return ka.getJqUi()};var V=function(){var G=0;for(var O=e.getSelectableItems(),U=0;U<O.length;U++)f.isSelected(O[U].getValue())&&G++;G=a.get("selectedCount","(\u5df2\u9009\u62e9#1\u9879)").replace("#1",G);d.setText(G)},F=function(G,O){O&&(k=G.isChecked())}}function v(g){function e(ua){KTDefaultTreeHandlerRender.call(this,ua);var Da=this.create;this.create=function(Fa,
Ha,Aa,oa,ya,Ja,Ea){return Z()?[]:Da(Fa,Ha,Aa,oa,ya,Ja,Ea)}}function f(ua){KTDefaultCellRender.call(this,ua);var Da=this;this.paintCellUI=function(Fa,Ha){var Aa=Da.getCell().getValue(),oa=Da.getCurrentRowIdx();Aa=c.protectedCreateItemUi(ua,Aa,oa,Z);Aa.css("overflow","visible");Aa.children().css("overflow","visible");Fa=$(Fa);Fa.css("overflow","visible");Ha?(Ha=$(Ha),Ha.css("overflow","visible"),Aa.appendTo(Ha),M.layoutCtrlWithLRTB(Aa,4,0,null,0,null,"100%")):(Aa.appendTo(Fa),M.layoutCtrlWithLRTB(Aa,
0,0,null,0,null,"100%"))}}var k=23,c=this,d,m,V,F=!1,G=[],O=[],U;this.getJqUi=function(){if(!d){d=$("<div>");for(var ua={},Da=0,Fa=O.length;Da<Fa;Da++)O[Da].getValue()&&(ua[O[Da].getValue()]=!0);m=ua;F=!1;ua=new KTable;ua.setCellRender(new f(ua));ua.setTreeHandlerRender(new e(ua));ua.setSyncUIWhenModelChanged(!1);G&&1024<=G.length?ua.setLargeDataMode(!0,!1):ua.setLargeDataMode(!1);ua.addColumn().setWidth(320);Da=new KTStyle;Da.setVerticalAlign("middle");ua.setStyle(Da);var Ha=G;if(0==Ha.length)Da=
!1;else{Da=!0;var Aa=xa(),oa=!Aa;for(Fa=0;Fa<Ha.length;Fa++){var ya=Ha[Fa],Ja=fa(ya.getValue()),Ea=ua.addRow();Ea.setHeight(k);var Ga=Ea.getCell(0);Ga.setValue(ya);ya=ya.getLevel();ya=new KTCellTreeModel(ya);oa&&ra(Ea,ya);Ga.setTreeModel(ya);Da=Da&&Ja}if(Aa){var La;Ha={};for(Fa=ua.getRowsCount()-1;0<=Fa;Fa--){Ea=ua.getRow(Fa);Ga=Ea.getCell(0);Aa=Ga.getTreeModel();oa=Aa.getLevel();ya=Ga.getValue();if(fa(ya.getValue())){Ea.setHide(!1);var Ca=ya.getParentId();(Ga=Ha[oa])&&0!=Ga.length||(Ga=[]);Ga.push(ya);
Ha[oa]=Ga}if(La&&La===oa+1)if((Ga=Ha[La])&&0<Ga.length){Ja=!1;for(La=0;La<Ga.length;La++){var Ka=Ga[La];if(Ca===ya.getId()||Ka&&Ka.getParentId()===ya.getId()){Ja=!0;break}}if(Ja){var Na=!0;Aa.setExpanded(!0);Ea.setHide(!1);(Ga=Ha[oa])&&0!=Ga.length||(Ga=[]);Ga.push(ya);Ha[oa]=Ga}else Aa.setExpanded(!1)}else Aa.setExpanded(!1);0===Fa&&Na&&(Ea.setHide(!1),Aa.setExpanded(!0));La=oa}Ea=0;Ca=Object.values(Ha);for(Fa=0;Fa<Ca.length;Fa++)for(Na=Ca[Fa],La=0;La<Na.length;La++)ya=Na[La],Ea=ya.getLevel()>Ea?
ya.getLevel():Ea;for(Fa=ua.getRowsCount()-1;0<=Fa;Fa--)if(Ea=ua.getRow(Fa),Ga=Ea.getCell(0),Aa=Ga.getTreeModel(),ya=Ga.getValue(),Ca=Aa.getLevel(),(Na=Ha[Ca])&&0<Na.length){Ga=!1;for(La=0;La<Na.length;La++)if((oa=Na[La])&&oa.getParentId()===ya.getParentId()){Ga=!0;break}Ga?(Ea.setHide(!1),Ca<g-1&&Aa.setExpanded(!0)):ra(Ea,Aa)}else ra(Ea,Aa)}}ua.updateUI();Fa=c.protectedGetBarHeight()+6;Ea=$(ua.getUI());M.layoutCtrlWithLRTB(Ea,0,0,null,Fa,0,null);d.append(Ea);ua=[Da,ua];qa(ua[0],ua[1])}return d};this.setSelectableItems=
function(ua){G=ua};this.getSelectableItems=function(){return G};this.setSelected=function(ua){O=ua};this.getSelected=function(){var ua=[];if(!m)return ua;for(var Da=0,Fa=G.length;Da<Fa;Da++){var Ha=G[Da].getValue();m[Ha]&&ua.push(G[Da])}return ua};this.setItemHeight=function(ua){k=ua};this.protectedIsIncludeSubs=function(){return!1};this.resetScrollStatus=function(ua){if(ua&&ua.isLargeDataMode()){var Da=ua.keepScrollStatus();Da.v&&(Da.v=0);ua.restoreScrollStatus(Da)}};var qa=function(ua,Da){var Fa=
$("<div>");Fa.css("border-bottom","1px solid #eee");var Ha=c.protectedGetBarHeight();M.layoutCtrlWithLRTB(Fa,0,0,null,0,null,Ha);V=new ja;V.setSearchingHandler(function(){var oa=ka(Da);c.resetScrollStatus(Da);Da.updateUI(!0);ha(oa)});Ha=V.getJqUi();M.layoutCtrlWithLRTB(Ha,0,null,"66%",0,null,23);Ha.css({"min-width":"214px !important","max-width":"500px !important"});Ha.appendTo(Fa);Ha=new H;Ha.setText(a.get("showOnlySelected","\u4ec5\u663e\u793a\u9009\u4e2d\u9879"));Ha.setChecked(F);Ha.addCheckedListener(function(oa,
ya){ya&&(F=oa.isChecked(),oa=ka(Da),c.resetScrollStatus(Da),Da.updateUI(!0),ha(oa))});Ha=Ha.getJqUi();var Aa="en"==z.getUrlParamValue("language")?140:106;M.layoutCtrlWithLRTB(Ha,null,23,Aa,0,null,21);Ha.appendTo(Fa);c.protectedInitBar(Fa,ua,Da);Fa.appendTo(d)};this.protectedInitBar=function(ua,Da,Fa){};this.protectedGetBarHeight=function(){return 30};var ra=function(ua,Da){Da.getLevel()<g-1?(Da.setExpanded(!0),ua.setHide(!1)):Da.getLevel()===g-1?(Da.setExpanded(!1),ua.setHide(!1)):(Da.setExpanded(!1),
ua.setHide(!0))},ka=function(ua){for(var Da=Z(),Fa=!0,Ha=!1,Aa=65535,oa=!1,ya=0;ya<ua.getRowsCount();ya++){var Ja=ua.getRow(ya),Ea=Ja.getCell(0),Ga=Ea.getTreeModel(),La=!0;Ga.getLevel()<=Aa&&(La=!1);var Ca=Ea.getValue();Ea=fa(Ca.getValue());Ca=F&&!Ea||V.isSearching()&&!V.check(Ca.getText());var Ka=La;Ka=Da?Ca:Ka;Ja.setHide(Ka);Ka||(oa=!0);Ca||(Ha=Ha||Ea,Fa=Fa&&Ea);La||(Aa=Ga.isExpanded()?65535:Ga.getLevel())}c.protectedAfterUpdateTree(Ha?Fa:!1,Da);return oa};this.protectedAfterUpdateTree=function(ua,
Da){};this.protectedCreateItemUi=function(ua,Da,Fa,Ha){throw Error("Override");};var ha=function(ua){ua?(U&&U.remove(),U=null):U||(ua=new w,ua.setText(a.get("nothingSearched","\u627e\u4e0d\u5230\u7b26\u5408\u7684\u7ed3\u679c")),ua.setEnabled(!1),U=ua.getJqUi(),M.layoutCtrlWithLRTB(U,0,0,null,60,null,16),ua.setAlign(w.ALIGN_CENTER),U.appendTo(d))},Z=function(){return F||V&&V.isSearching()},fa=function(ua){return 1==m[ua]},xa=function(){if(m&&0<Object.keys(m).length){var ua=G;if(0==ua.length)return!1;
for(var Da=0;Da<ua.length;Da++)if(fa(ua[Da].getValue()))return!0}return!1};this.protectedMethod={isSelected:fa,select:function(ua,Da){Da?m[ua]=!0:delete m[ua]},selectOnlyOne:function(ua){m={};m[ua]=!0}}}function L(){W.call(this);var g=this.protectedMethod,e=[],f=[];this.setSelectableItems=function(k){e=k};this.setSelected=function(k){f=k};this.protectedGetSelectableItems=function(){return e};this.protectedCloneSelectedValue=function(){var k={};if(f)for(var c=0,d=f.length;c<d;c++)k[f[c].getValue()]=
!0;return k};this.getSelected=function(){var k=g.acceptSelectingResult(),c=[];if(!k)return c;for(var d=0,m=e.length;d<m;d++){var V=e[d].getValue();if(k[V]){c.push(e[d]);break}}return c}}function R(){ba.call(this);var g=this.protectedMethod,e=[],f=[];this.setSelectableItems=function(k){e=k};this.setSelected=function(k){f=k};this.protectedGetSelectableItems=function(){return e};this.protectedCloneSelectedValue=function(){var k={};if(f)for(var c=0,d=f.length;c<d;c++)k[f[c].getValue()]=!0;return k};this.getSelected=
function(){var k=g.acceptSelectingResult(),c=[];if(!k)return c;for(var d=0,m=e.length;d<m;d++){var V=e[d].getValue();k[V]&&c.push(e[d])}return c}}function ba(){ma.call(this);var g=this,e=this.protectedMethod,f,k;this.protectedInitBar=function(F){f=new H;f.setText(a.get("selectAll","\u5168\u9009"));f.addCheckedListener(V);var G=f.getJqUi();M.layoutCtrlWithLRTB(G,0,null,80,30,null,21);G.appendTo(F);k=new w;G=k.getJqUi();M.layoutCtrlWithLRTB(G,80,0,null,30,null,21);G.find(".sa-ctrl-label-text").css({overflow:"visible"});
G.appendTo(F);c();return 55};this.protectedItemCreator=function(F){var G=F.getValue();G=e.isSelected(G);var O=F.getText(),U=new H;U.addCheckedListener(m);U.setUserObject(F);U.setText(O);U.setChecked(G);g.protectedIsExcludeMode()&&U.setCustomStyle("text-decoration","line-through");F=U.getJqUi();M.layoutCtrlWithLRTB(F,0,0,null);return F};this.protectedIsExcludeMode=function(){return!1};this.protectedAfterUpdateDynamicScroller=function(){d()};var c=function(){var F=0;for(var G=g.protectedGetSelectableItems(),
O=0;O<G.length;O++)e.isSelected(G[O].getValue())&&F++;F=a.get("selectedCount","(\u5df2\u9009\u62e9#1\u9879)").replace("#1",F);k.setText(F)},d=function(){var F=!0,G=!1;e.visitAllVisibleSelectableItems(function(O){var U=!1;G=!0;e.isSelected(O.getValue())||(F=!1,U=!0);return U});f.setChecked(G&&F)},m=function(F,G){G&&(G=F.getUserObject(),F=F.isChecked(),e.select(G.getValue(),F),d(),c())},V=function(F,G){if(G){var O=F.isChecked();e.visitAllVisibleSelectableItems(function(U){e.select(U.getValue(),O)});
e.repaintWithScrollState();c()}}}function W(){ma.call(this);var g=this.protectedMethod;this.protectedItemCreator=function(f){var k=f.getValue();k=g.isSelected(k);var c=f.getText(),d=new T;d.addCheckedListener(e);d.setUserObject(f);d.setText(c);d.setChecked(k);f=d.getJqUi();M.layoutCtrlWithLRTB(f,0,0,null);return f};var e=function(f,k){k&&(f.isChecked()?(f=f.getUserObject(),g.selectOnlyOne(f.getValue()),g.repaintWithScrollState()):f.setChecked(!0))}}function ma(){var g=21,e=this,f,k,c,d,m,V,F,G={};
this.getJqUi=function(){f||(f=$("<div>"),O(f));return f};this.protectedGetSelectableItems=function(){throw Error("Impl");};var O=function(fa){k=fa;G=e.protectedCloneSelectedValue();V=!1;var xa=$("<div>");xa.appendTo(fa);var ua=U(xa);M.layoutCtrlWithLRTB(xa,0,0,null,0,null,ua);m=new S;m.setItemHeight(g);m.setItemUiCreator(function(Da){return e.protectedItemCreator(F[Da])});m.getJqUi().appendTo(fa);M.layoutCtrlWithLRTB(m.getJqUi(),0,0,null,ua,0,null);qa()};this.protectedCloneSelectedValue=function(){throw Error("Impl");
};this.protectedItemCreator=function(fa){throw Error("Impl");};var U=function(fa){d=new ja;d.setSearchingHandler(ha);var xa=d.getJqUi();M.layoutCtrlWithLRTB(xa,0,null,"66%",0,null,23);xa.css({"min-width":"214px !important","max-width":"500px !important"});xa.appendTo(fa);xa=new H;xa.setText(a.get("showOnlySelected","\u4ec5\u663e\u793a\u9009\u4e2d\u9879"));xa.setChecked(V);xa.addCheckedListener(Z);xa=xa.getJqUi();var ua="en"==z.getUrlParamValue("language")?140:106;M.layoutCtrlWithLRTB(xa,null,0,ua,
0,null,21);xa.appendTo(fa);return e.protectedInitBar(fa)};this.protectedInitBar=function(fa){return 28};var qa=function(){var fa=e.protectedGetSelectableItems();F=d.isSearching()||V?$.grep(fa,function(xa){var ua=d.check(xa.getText());xa=!V||ka(xa.getValue());return ua&&xa}):fa;m.setItemCount(F.length);m.repaint();e.protectedAfterUpdateDynamicScroller()};this.protectedAfterUpdateDynamicScroller=function(){};this.setItemHeight=function(fa){g=fa};var ra=function(){if(0==F.length){if(!c){var fa=new w;
fa.setText(a.get("nothingSearched","\u627e\u4e0d\u5230\u7b26\u5408\u7684\u7ed3\u679c"));fa.setEnabled(!1);c=fa.getJqUi();M.layoutCtrlWithLRTB(c,0,0,null,60,null,16);fa.setAlign(w.ALIGN_CENTER);c.appendTo(k)}}else c&&c.remove(),c=null},ka=function(fa){return 1==G[fa]},ha=function(){qa();ra()},Z=function(fa,xa){V=fa.isChecked();qa();ra()};this.protectedMethod={repaintWithScrollState:function(){m.keepState();m.repaint();m.restoreState()},visitAllVisibleSelectableItems:function(fa){for(var xa=0;xa<F.length&&
!fa(F[xa]);xa++);},isSelected:ka,select:function(fa,xa){xa?G[fa]=!0:delete G[fa]},selectOnlyOne:function(fa){G={};G[fa]=!0},acceptSelectingResult:function(){return G}}}function K(){ia.call(this);var g=this.protectedMethod,e=[],f=[];this.setSelectableItems=function(k){e=k};this.setSelected=function(k){f=k};this.protectedGetSelectableItems=function(){return e};this.protectedCloneSelectedValue=function(){var k={};if(f)for(var c=0,d=f.length;c<d;c++)k[f[c].getValue()]=!0;return k};this.getSelected=function(){var k=
g.acceptSelectingResult(),c=[];if(!k)return c;for(var d=0,m=e.length;d<m;d++){var V=e[d].getValue();if(k[V]){c.push(e[d]);break}}return c}}function A(){ca.call(this);var g=this.protectedMethod,e=[],f=[];this.setSelectableItems=function(k){e=k};this.setSelected=function(k){f=k};this.protectedGetSelectableItems=function(){return e};this.protectedCloneSelectedValue=function(){var k={};if(f)for(var c=0,d=f.length;c<d;c++)k[f[c].getValue()]=!0;return k};this.getSelected=function(){var k=g.acceptSelectingResult(),
c=[];if(!k)return c;for(var d=0,m=e.length;d<m;d++){var V=e[d].getValue();k[V]&&c.push(e[d])}return c}}function ca(){va.call(this);var g=this,e=this.protectedMethod,f,k=[],c;this.protectedInitBar=function(G){f=new H;f.setText(a.get("selectAll","\u5168\u9009"));f.addCheckedListener(F);var O=f.getJqUi();M.layoutCtrlWithLRTB(O,0,null,80,30,null,21);O.appendTo(G);c=new w;O=c.getJqUi();M.layoutCtrlWithLRTB(O,80,0,null,30,null,21);O.find(".sa-ctrl-label-text").css({overflow:"visible"});O.appendTo(G);d();
return 55};this.protectedItemCreator=function(G){var O=G.getValue();O=e.isSelected(O);var U=new H;U.addCheckedListener(V);U.setUserObject(G);U.setChecked(O);g.protectedIsExcludeMode()&&U.setCustomStyle("text-decoration","line-through");k.push(U);return U.getJqUi()};this.protectedIsExcludeMode=function(){return!1};this.protectedAfterUpdateTable=function(){m()};var d=function(){var G=0;for(var O=g.protectedGetSelectableItems(),U=0;U<O.length;U++)e.isSelected(O[U].getValue())&&G++;G=a.get("selectedCount",
"(\u5df2\u9009\u62e9#1\u9879)").replace("#1",G);c.setText(G)},m=function(){var G=!0,O=!1;e.visitAllVisibleSelectableItems(function(U){var qa=!1;O=!0;e.isSelected(U.getValue())||(G=!1,qa=!0);return qa});f.setChecked(O&&G)},V=function(G,O){O&&(O=G.getUserObject(),G=G.isChecked(),e.select(O.getValue(),G),m(),d())},F=function(G,O){if(O){var U=G.isChecked();for(G=0;G<k.length;G++)k[G]&&k[G].setChecked(U);e.visitAllVisibleSelectableItems(function(qa){e.select(qa.getValue(),U)});d()}}}function ia(){va.call(this);
var g=this.protectedMethod,e=new u;this.protectedItemCreator=function(k){var c=k.getValue();c=g.isSelected(c);var d=new T;d.addCheckedListener(f);d.setUserObject(k);d.setChecked(c);e.addElement(d);return d.getJqUi()};var f=function(k,c){c&&(k.isChecked()?(k=k.getUserObject(),g.selectOnlyOne(k.getValue())):k.setChecked(!0))}}function va(){function g(Aa){KTDefaultCellRender.call(this,Aa);var oa=this,ya=this.paintCellUI;this.paintCellUI=function(Ja,Ea){var Ga=oa.getCurrentRowIdx(),La=oa.getCurrentRow(),
Ca=oa.getCurrentColIdx(),Ka=La.getUserObject(),Na=Z&&-1!=Z.indexOf(Ca-1);Ga<N.getHeadRowCount()?Na&&1==Ga?(Ca=La.getCell(Ca).getValue(),Na=new B,Na.setIconType(B.ICON_TYPE_QUESTION),Na.setTipsText(a.get("noFieldPermTips","\u60a8\u6ca1\u6709\u6743\u9650\u67e5\u770b\u8be5\u5b57\u6bb5\u6570\u636e\u3002")),Na=Na.getJqUi(),Na.css({display:"inline-block",margin:"5px 0 0 3px"}),Ea=$("<div>"),Ea.attr("title",Ca),Ea.text(Ca),Ea.css({"margin-top":"5px",display:"inline-block"}),Ea.appendTo(Ja),Na.appendTo(Ja)):
ya(Ja,Ea):0==Ca?(Ca=f.protectedItemCreator(Ka),Ca.css({position:"absolute",left:"30%",top:"2px",width:"23px",height:"23px"}),Ca.appendTo(Ja)):(Ea=Ka.getEntry(),Ca=Na?"***":Ea?Ea[O[Ca-1]]:"",Na=$("<div>"),Na.attr("title",Ca),Na.text(Ca),Na.css({"line-height":"28px","padding-left":"10px","padding-right":"10px","text-align":"left",overflow:"hidden","text-overflow":"ellipsis"}),Na.appendTo(Ja))}}function e(){KTableUIDraggableAdjustingHandler.CustomExpendor.call(this);this.getTailBlankForDragging=function(){return 10}}
var f=this,k,c,d,m,V,F,G,O,U=[],qa,ra,ka,ha={},Z=[];this.getJqUi=function(){if(!k){var Aa=k=$("<div>");c=Aa;ha=f.protectedCloneSelectedValue();ra=!1;var oa=$("<div>");oa.appendTo(Aa);qa=new ja;qa.setSearchingHandler(Fa);var ya=qa.getJqUi();M.layoutCtrlWithLRTB(ya,0,null,"66%",0,null,23);ya.css({"min-width":"214px !important","max-width":"500px !important"});ya.appendTo(oa);ya=new H;ya.setText(a.get("showOnlySelected","\u4ec5\u663e\u793a\u9009\u4e2d\u9879"));ya.setChecked(ra);ya.addCheckedListener(Ha);
ya=ya.getJqUi();var Ja="en"==z.getUrlParamValue("language")?140:106;M.layoutCtrlWithLRTB(ya,null,0,Ja,0,null,21);ya.appendTo(oa);ya=f.protectedInitBar(oa);M.layoutCtrlWithLRTB(oa,0,0,null,0,null,ya);m=new KTable;m.setFrozenRows(N.getHeadRowCount());m.setDraggableAdjusting(!0,N.getHeadRowCount(),0,new e);oa=new KTStyle;oa.setVerticalAlign("middle");oa.setFontSize(l.getFontSize());oa.setFontUnit("px");oa.setFontName(l.getFontName());oa.setColor(com.kingdee.bos.qing.common.CommonTableSkin.COLOR);m.setStyle(oa);
oa=new g(m);oa.setOutsideVisible(!1);m.setCellRender(oa);m.setSyncUIWhenModelChanged(!1);oa=ya+6;V=$(m.getUI());M.layoutCtrlWithLRTB(V,0,0,null,oa,0,null);V.appendTo(Aa)}return k};this.setNoPermFieldIndex=function(Aa){Z=Aa};this.protectedGetSelectableItems=function(){throw Error("Impl");};var fa=function(){ka&&1024<=ka.length?m.setLargeDataMode(!0,!1):m.setLargeDataMode(!1);var Aa=ka[0].getEntryHeadMap();G||(Aa?(G=Object.values(Aa),O=Object.keys(Aa)):((Aa=ka[0].getEntry())||(Aa=f.protectedGetSelectableItems()[0].getEntry()),
G=Object.keys(Aa),O=Object.keys(Aa)));F=G.length+1;if(0==U.length){var oa=ka,ya,Ja;Aa=[];for(ya=0;ya<G.length;ya++)Aa[ya]=0;for(ya=0;ya<oa.length;ya++){var Ea=oa[ya].getEntry();for(Ja=0;Ja<G.length;Ja++){var Ga=Ea[O[Ja]];20>ya&&(Ga=Ga?Ga.toString().length:0,Ga=200<Ga?200:Ga,Ga=10>Ga?10:Ga,Aa[Ja]+=Ga)}}if(0==oa.length)for(ya=0;ya<G.length;ya++)Aa[ya]+=G[ya].length+10;ya=0;Ja=[];Ea=20<=ka.length?20:ka.length;Ea=0===Ea?1:Ea;for(oa=0;oa<G.length;oa++){Ga=Aa[oa]/Ea;var La=G[oa]?G[oa].length:0;Ga=Ga<La?
La:Ga;ya+=Ga;Ja.push(Ga)}for(oa=0;oa<G.length;oa++)U.push(Ja[oa]/ya)}m.addColumns(F);oa=N.createHeadRow(m);m.getColumn(0).setWidth(32);for(Aa=1;Aa<F;Aa++)ya=Aa-1,Ja=556,Ea=140,Ga=G.length*Ea,Ja||(Ja=Ga),La=Math.floor(Ja/Ga),2<=La&&(Ea*=La,Ga=G.length*Ea),ya=Ga<Ja&&ya===G.length-1?U[ya]*Ea*G.length+(Ja-Ga):U[ya]*Ea*G.length,m.getColumn(Aa).setWidth(ya),oa.getCell(Aa).setValue(G[Aa-1].toUpperCase());for(Aa=0;Aa<ka.length;Aa++)oa=ka[Aa],N.createRow(m).setUserObject(oa)},xa=function(){N.clear(m);var Aa=
f.protectedGetSelectableItems();if(qa.isSearching()||ra){var oa=qa.getSelectedSearcherImplLogic();ka=$.grep(Aa,function(ya){var Ja=!1,Ea=!ra||Da(ya.getValue());ya=ya.getEntry();for(var Ga=Object.keys(ya).length,La=0;La<Ga;La++)if(ya[O[La]]&&(Ja=qa.check(""+ya[O[La]])),oa){if(Ja)break}else if(!Ja)break;return Ja&&Ea})}else ka=Aa;0<ka.length&&fa();N.refresh(m);f.protectedAfterUpdateTable()};this.protectedAfterUpdateTable=function(){};this.updateTable=function(){xa()};this.protectedCloneSelectedValue=
function(){throw Error("Impl");};this.protectedItemCreator=function(Aa){throw Error("Impl");};this.protectedInitBar=function(Aa){return 28};this.setItemHeight=function(Aa){};var ua=function(){if(0==ka.length){if(!d){var Aa=new w;Aa.setText(a.get("nothingSearched","\u627e\u4e0d\u5230\u7b26\u5408\u7684\u7ed3\u679c"));Aa.setEnabled(!1);d=Aa.getJqUi();M.layoutCtrlWithLRTB(d,0,0,null,60,null,16);Aa.setAlign(w.ALIGN_CENTER);d.appendTo(c)}}else d&&d.remove(),d=null},Da=function(Aa){return 1==ha[Aa]},Fa=
function(){xa();ua()},Ha=function(Aa,oa){ra=Aa.isChecked();xa();ua()};this.protectedMethod={visitAllVisibleSelectableItems:function(Aa){for(var oa=0;oa<ka.length&&!Aa(ka[oa]);oa++);},isSelected:Da,select:function(Aa,oa){oa?ha[Aa]=!0:delete ha[Aa]},selectOnlyOne:function(Aa){ha={};ha[Aa]=!0},acceptSelectingResult:function(){return ha},protectedUpdateTable:xa}}function ja(){aa.call(this);var g=this.protectedMethod,e;this.protectedInitUi=function(f,k){var c=new w;c.setText(a.get("searcherTitle","\u641c\u7d22"));
var d=g.createAllSearchImpl();e=d[0];g.changeSearchImpl(d[0],!1);var m=new za;m.setItemModels(d);m.setSelected(d[0]);m.setCustomPainter(function(V,F,G){G&&F.text(G.getCaption())});m.addSelectedChangedListener(function(V,F,G){e=G;g.changeSearchImpl(G,!0)});c=c.getJqUi();m=m.getJqUi();d="en"==z.getUrlParamValue("language")?10:0;M.layoutCtrlWithLRTB(c,0,null,40+d,0,null,23);M.layoutCtrlWithLRTB(m,33+d,null,74,0,null,23);M.layoutCtrlWithLRTB(k,114+d,null,"45%",0,null,23);k.css({"min-width":"100px !important",
"max-width":"278px !important","margin-right":"5px"});f.append(c);f.append(m);f.append(k)};this.getSelectedSearcherImplLogic=function(){return e.getLogic()}}function aa(){var g=this,e,f,k,c;this.setSearchingHandler=function(m){c=m};this.isSearching=function(){return f&&f.getText()?!0:!1};this.check=function(m){return!(f&&f.getText())||k.check(m.toLowerCase(),(f?f.getText():null).toLowerCase())};this.clear=function(){f&&f.clear()};this.getJqUi=function(){e||(e=$("<div>"),g.protectedInitUi(e,d().getJqUi()));
return e};this.protectedInitUi=function(m,V){throw Error("Implement");};var d=function(){f=new b;f.setPlaceholder(a.get("searcherTips","\u641c\u7d22\u5185\u5bb9"));f.addSearchListener(function(m){c()});f.setSearchListenerDelay(1E3);return f};this.protectedMethod={createAllSearchImpl:function(){return[new la(!0),new la(!1),new X(!0),new X(!1),new na(!0),new na(!1),new ea(!0),new ea(!1)]},changeSearchImpl:function(m,V){k=m;V&&c()}}}function pa(g){var e=this;this.getLogic=function(){return g};this.getCaption=
function(){return e.protectedGetCaption(!g)};this.protectedGetCaption=function(f){throw Error("Override");};this.check=function(f,k){f=e.protectedCheckImpl(f,k);return g?f:!f};this.protectedCheckImpl=function(f,k){throw Error("Override");}}function la(g){pa.call(this,g);this.protectedGetCaption=function(e){return e?a.get("searchNotInclude","\u4e0d\u5305\u542b"):a.get("searchInclude","\u5305\u542b")};this.protectedCheckImpl=function(e,f){return 0<=e.indexOf(f)}}function ea(g){pa.call(this,g);this.protectedGetCaption=
function(e){return e?a.get("searchNotEqual","\u4e0d\u7b49\u4e8e"):a.get("searchEqual","\u7b49\u4e8e")};this.protectedCheckImpl=function(e,f){return e===f}}function X(g){pa.call(this,g);this.protectedGetCaption=function(e){return e?a.get("searchNotStartOf","\u5f00\u5934\u4e0d\u662f"):a.get("searchStartOf","\u5f00\u5934\u662f")};this.protectedCheckImpl=function(e,f){return 0==e.indexOf(f)}}function na(g){pa.call(this,g);this.protectedGetCaption=function(e){return e?a.get("searchNotEndOf","\u7ed3\u5c3e\u4e0d\u662f"):
a.get("searchEndOf","\u7ed3\u5c3e\u662f")};this.protectedCheckImpl=function(e,f){var k=e.lastIndexOf(f);return 0<=k&&k==e.length-f.length}}function ta(){var g=this,e,f=!0;this.setUserObject=function(d){e=d};this.getUserObject=function(){return e};this.setEnabled=function(d){f=d;g.protectedUpdateEnabledState()};this.isEnabled=function(){return f};this.setTooltips=function(d){g.getJqUi().attr("title",d)};this.getJqUi=function(){throw Error("Override me.");};this.protectedUpdateEnabledState=function(){};
var k=function(d,m){c(d,m,"sa-ctrl-common-singlelineborder","sa-ctrl-common-singlelineborder_disabled")},c=function(d,m,V,F){m?(d.addClass(V),d.removeClass(F)):(d.removeClass(V),d.addClass(F))};this.protectedMethod={superSetEnabled:function(d){f=d;g.protectedUpdateEnabledState()},createBorder:function(d){var m=$("<div>");m.addClass("sa-ctrl-common-border");M.layoutCtrlWithLRTB(m,0,0,null,0,0,null);m.appendTo(d);return m},setUiBorderVisible:function(d,m){m?k(d,f):(d.removeClass("sa-ctrl-common-singlelineborder"),
d.removeClass("sa-ctrl-common-singlelineborder_disabled"))},setUiBorderEnabled:k,setUiForegroundEnabled:function(d,m){c(d,m,"sa-ctrl-common-foreground_enabled","sa-ctrl-common-foreground_disabled")},setUiBackgroundEnabled:function(d,m){c(d,m,"sa-ctrl-common-background_enabled","sa-ctrl-common-background_disabled")}}}function za(){ta.call(this);var g=this.protectedMethod,e=this,f=[],k,c,d=$("<div>"),m,V,F,G,O,U=[],qa,ra=!1,ka=!1,ha,Z,fa;this.setItemModels=function(y,J){F=J;f=y;O=null};this.setEditable=
function(y,J){ha=(ka=y)?J:null};this.setSelected=function(y){k=y;ya();O&&Ha()};this.getSelected=function(){return k};this.setCustomPainter=function(y){V=y;ya();O&&Aa()};this.setDropdownAsLongAsPossible=function(y){ra=y};this.setDropdownListener=function(y){qa=y};this.addSelectedChangedListener=function(y){U.push(y)};this.getJqUi=function(){c||xa();return c};this.protectedUpdateEnabledState=function(){c&&(g.setUiBorderEnabled(c,e.isEnabled()),g.setUiBackgroundEnabled(c,e.isEnabled()),g.setUiForegroundEnabled(c,
e.isEnabled()),e.isEnabled()?m.addClass("extreport-runtime-filter-combobox-arrow_enabled"):m.removeClass("extreport-runtime-filter-combobox-arrow_enabled"))};this.isChildOfPopup=function(y){return G?M.isDescendent(y,G[0]):!1};var xa=function(){c=$("<div>");c.addClass("extreport-runtime-filter-combobox");d.addClass("extreport-runtime-filter-combobox-text");d.appendTo(c);m=$("<div>");m.addClass("extreport-runtime-filter-combobox-arrow");m.appendTo(c);m.on("mouseenter",function(y){e.isEnabled()&&oa(!0)});
m.on("mouseleave",function(y){e.isEnabled()&&oa(!1)});oa(!1);if(ka)d.on("click",ua),m.on("click",Ja),Z=$("<input>"),Z.addClass("extreport-runtime-filter-textfield-input"),Z.on("blur",Ca),Z.on("keydown",Ka),Z.appendTo(c),Z.hide();else c.on("click",Ja);e.protectedUpdateEnabledState()},ua=function(y){Z&&(d.hide(),Z.show(),Z.focus(),Z.val(d.text()))},Da=function(){O=new C;O.setToggleSelectingEnabled(!1);O.setItemModels(f,F);Ha();O.addSelectedChangedListener(function(y,J,E){if(!Fa)for(y=k,E=0<E.length?
E[0]:null,e.setSelected(E),J=0;J<U.length;J++)(0,U[J])(e,y,E)});O.addPressedListener(function(y,J){Ea()});Aa()},Fa=!1,Ha=function(){Fa=!0;O.setSelecteds(k||0===k||!1===k?[k]:[]);Fa=!1},Aa=function(){V?O.setCustomItemPainter(function(y,J){V(!1,y,J)}):O.setCustomItemPainter(null)},oa=function(y){var J=G?"arrow-up":"arrow-down";y&&(J+="_hover");q.background(m,J)},ya=function(){d.empty();V?V(!0,d,k):d.text(k||0===k||!1===k?k:"");d.show();Z&&Z.hide()},Ja=function(y){if(e.isEnabled())if(G)Ea();else{O||
Da();y=$(document.body);var J=c.outerHeight(),E=c.outerWidth(),Q=[0,J-1];Q=M.upwardCoordinate(c[0],Q,y[0]);J=Q[0];var Y=Q[1];Q=y.prop("clientHeight");var da=Math.min(20*Math.max(1,Math.min(f.length,ra?65535:10))+2,(Q>>1)-10);Y+da>Q&&(Q=[0,0],Q=M.upwardCoordinate(c[0],Q,y[0]),Q=Q[1]-da+1,0<=Q&&(Y=Q));G=$("<div>");G.addClass("sa-ctrl-common-popup");G.addClass("sa-ctrl-common-unselectable");G.css("position","absolute");G.css("left",J+"px");G.css("top",Y+"px");G.css("width",E+"px");G.css("height",da+
"px");G.appendTo(y);E=O.getJqUi();E.appendTo(G);E.css("position","absolute");E.css("left","0px");E.css("top","0px");E.css("width","100%");E.css("height","100%");O.scrollSelectedToVisible();y.on("mousedown",La);y.on("mousewheel",Ga);oa(!1);qa&&qa(e,!0)}},Ea=function(){if(G){var y=$(document.body);y.off("mousedown",La);y.off("mousewheel",Ga);G.detach();G=null;oa(!1);qa&&qa(e,!1)}},Ga=function(y){M.isDescendent(y.target,O.getJqUi()[0])||Ea()},La=function(y){c.is(":visible")&&(M.isDescendent(y.target,
c[0])||M.isDescendent(y.target,G[0]))||Ea()},Ca=function(y){Na()},Ka=function(y){fa=!0;13==y.keyCode?(Na(),y.preventDefault()):27==y.keyCode&&(ya(),fa=!1)},Na=function(){if(fa){var y=$.trim(Z.val());y=ha?ha(y):y;e.setSelected(y);fa=!1}}}function P(){ta.call(this);var g=this.protectedMethod,e=this,f,k,c,d=$("<div>"),m,V,F,G,O=[],U=["arrow-down","arrow-up"],qa=!1,ra,ka,ha;this.setEditable=function(Ca,Ka){ra=(qa=Ca)?Ka:null};this.getSelectedModel=function(){return f};this.setSelectedModel=function(Ca){f=
Ca;Fa();Z(!1)};this.addSelectionListener=function(Ca){O.push(Ca)};this.removeSelectionListener=function(Ca){for(var Ka=O.length-1;0<=Ka;Ka--)O[Ka]==Ca&&O.splice(Ka,1)};var Z=function(Ca){for(var Ka=0;Ka<O.length;Ka++)(0,O[Ka])(e,Ca)};this.setCustomPainter=function(Ca){G=Ca;Fa()};this.setDropdownCreator=function(Ca){V=Ca};var fa=function(Ca){return V(Ca,f,function(Ka){oa();f=Ka;Fa();Z(!0)},function(){oa()},function(Ka){F=Ka})};this.getJqUi=function(){k||xa();return k};this.setIconName=function(Ca,
Ka){U=[Ca,Ka?Ka:Ca]};var xa=function(){k=$("<div>");k.addClass("extreport-runtime-filter-combobox");d.addClass("extreport-runtime-filter-combobox-text");d.appendTo(k);c=$("<div>");c.addClass("extreport-runtime-filter-combobox-arrow");c.appendTo(k);c.on("mouseenter",function(Ca){e.isEnabled()&&Ha(!0)});c.on("mouseleave",function(Ca){e.isEnabled()&&Ha(!1)});Ha(!1);Fa();if(qa)d.on("click",ua),c.on("click",Aa),ka=$("<input>"),ka.addClass("extreport-runtime-filter-textfield-input"),ka.on("blur",Ea),ka.on("keydown",
Ga),ka.appendTo(k),ka.hide();else k.on("click",Aa);e.protectedUpdateEnabledState()},ua=function(Ca){ka&&e.isEnabled()&&(d.hide(),ka.show(),ka.focus(),ka.val(d.text()))},Da=function(Ca,Ka){Ka.text(Ca?Ca:"")},Fa=function(){d&&(G?G:Da)(f,d);d.show();ka&&ka.hide()},Ha=function(Ca){var Ka=m?U[1]:U[0];Ca&&(Ka+="_hover");com.kingdee.bos.qing.ui.component.Icons.background(c,Ka)};this.protectedUpdateEnabledState=function(){k&&(g.setUiBorderEnabled(k,e.isEnabled()),g.setUiBackgroundEnabled(k,e.isEnabled()),
g.setUiForegroundEnabled(k,e.isEnabled()),e.isEnabled()?(c.addClass("extreport-runtime-filter-combobox-arrow_enabled"),c.css({cursor:"pointer",opacity:""}),qa&&ka.removeAttr("disabled")):(c.removeClass("extreport-runtime-filter-combobox-arrow_enabled"),c.css({cursor:"",opacity:"0.4"}),qa&&ka.attr("disabled","disabled")))};var Aa=function(Ca){if(e.isEnabled())if(m)oa();else{Ca=$(document.body);m=$("<div>");m.addClass("sa-ctrl-common-popup");m.addClass("sa-ctrl-common-unselectable");m.appendTo(Ca);
var Ka=fa(m),Na=Ka?Ka[0]:-1,y=Ka?Ka[1]:-1;Ka=Ca.prop("clientWidth");var J=Ca.prop("clientHeight"),E=J>>1,Q=k.outerWidth(),Y=k.outerHeight(),da=Math.max(0,E-Y-28),wa=[0,Y-1];wa=M.upwardCoordinate(k[0],wa,Ca[0]);var sa=wa[0],Ba=wa[1];Na=0>Na?Q:Na;y=0>y?da:y;Ba+y>J&&(Ba>E+Y?(wa=[0,0],wa=M.upwardCoordinate(k[0],wa,Ca[0]),J=wa[1]-y+1,0<=J?Ba=J:(Ba=2,y=wa[1]-2)):y=J-Ba-2);sa+Na>Ka-10&&(sa=Ka-Na-10,0>sa&&(sa=0));M.layoutCtrl(m,sa,Ba,Na,y);Ca.on("mousedown",Ja);Ca.on("mousewheel",ya);Ha(!1);F&&F()}},oa=function(){if(m){var Ca=
$(document.body);Ca.off("mousedown",Ja);Ca.off("mousewheel",ya);m.remove();m=null;Ha(!1)}},ya=function(Ca){M.isDescendent(Ca.target,m[0])||oa()},Ja=function(Ca){k.is(":visible")&&(M.isDescendent(Ca.target,k[0])||M.isDescendent(Ca.target,m[0]))||oa()},Ea=function(Ca){La()},Ga=function(Ca){ha=!0;13==Ca.keyCode?(La(),Ca.preventDefault()):27==Ca.keyCode&&(Fa(),ha=!1)},La=function(){if(ha){var Ca=$.trim(ka.val());Ca=ra?ra(Ca):Ca;e.setSelectedModel(Ca);ha=!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 t=com.kingdee.bos.extreport.runtime.filter;t.F7Selector=function(){ta.call(this);var g=this.protectedMethod,e=this,f,k,c,d,
m,V=!1,F=!1,G=!1,O,U,qa=[],ra=[];this.setClearable=function(oa){V=oa};this.setEditable=function(oa,ya){U=(F=oa)?ya:null};this.setEnabled=function(oa){f||fa();g.superSetEnabled(oa);var ya=f.parent();g.setUiBorderEnabled(ya,oa);oa?(c.css({color:"#666"}),c.removeAttr("disabled"),c.attr("title",F?c.val():c.text()),f.find(".extreport-runtime-filter-f7selector-btn").css("display",""),V=!0):(c.css({color:"#c0c0c0"}),c.attr("disabled","disabled"),c.removeAttr("title"),f.find(".extreport-runtime-filter-f7selector-btn").css("display",
"none"),V=!1)};this.setModel=function(oa){m=oa;Da()};this.getModel=function(){return m};this.setCustomPainter=function(oa){O=oa;Da()};this.addActionListener=function(oa){qa.push(oa)};this.removeActionListener=function(oa){for(var ya=qa.length-1;0<=ya;ya--)qa[ya]==oa&&qa.splice(ya,1)};this.addClearListener=function(oa){ra.push(oa)};this.removeClearListener=function(oa){for(var ya=ra.length-1;0<=ya;ya--)ra[ya]==oa&&ra.splice(ya,1)};var ka=function(){V&&m?d?d.show():(d=$("<div>"),d.addClass("extreport-runtime-filter-f7selector-btn"),
d.addClass("extreport-runtime-filter-f7selector-btnclear"),d.on("click",Z),q.background(d,"delete"),k.append(d),e.protectedUpdateEnabledState()):d&&d.hide()},ha=function(){d&&d.hide()},Z=function(){if(e.isEnabled()&&V){e.setModel(null);d&&d.hide();for(var oa=ra.length,ya=0;ya<oa;ya++)(0,ra[ya])(e)}};this.getJqUi=function(){f||fa();return f};var fa=function(){k=$("<div>");k.on("mouseenter",ka);k.on("mouseleave",ha);k.addClass("extreport-runtime-filter-f7selector-textcontainer");F?(c=$("<input>"),c.addClass("extreport-runtime-filter-textfield-input"),
c.on("blur",Fa),c.on("keydown",Ha)):(c=$("<div>"),c.addClass("extreport-runtime-filter-f7selector-text"));c.appendTo(k);var oa=$("<div>");oa.addClass("extreport-runtime-filter-f7selector-btn");oa.addClass("extreport-runtime-filter-f7selector-btnedit");oa.on("click",xa);q.background(oa,"search");f=$("<div>");f.addClass("extreport-runtime-filter-f7selector");f.append(k);f.append(oa);Da();e.protectedUpdateEnabledState()},xa=function(){if(e.isEnabled())for(var oa=qa.length,ya=0;ya<oa;ya++)(0,qa[ya])(e)},
ua=function(oa){return oa?oa:""};this.protectedUpdateEnabledState=function(){if(f){g.setUiBorderEnabled(f,e.isEnabled());g.setUiBackgroundEnabled(f,e.isEnabled());g.setUiForegroundEnabled(f,e.isEnabled());var oa=f.find(".extreport-runtime-filter-f7selector-btn");e.isEnabled()?oa.addClass("extreport-runtime-filter-f7selector-btn_enabled"):oa.removeClass("extreport-runtime-filter-f7selector-btn_enabled")}};var Da=function(){if(c){var oa=(O?O:ua)(m);F?c.val(oa):c.text(oa);c.attr("title",oa)}},Fa=function(oa){Aa()},
Ha=function(oa){G=!0;13==oa.keyCode?(Aa(),oa.preventDefault()):27==oa.keyCode&&(Da(),G=!1)},Aa=function(){if(G){var oa=$.trim(c.val());oa=U?U(oa):oa;e.setModel(oa);G=!1}}};t.F7Dialog=function(){D.call(this);var g=this,e=this.protectedMethod,f,k=[],c=[],d=!1,m,V=!1,F,G,O=[];(function(){e.setTitle(a.get("f7dialog","\u5f39\u7a97\u9009\u62e9\u5668"));g.setSize(640,480);e.setSelectable(!0);e.setContentPaneCreator(function(){if(V)f=d?new p(F):new n(F);else{var U=k[0]?k[0].getEntry():null;d?U&&0<Object.keys(U).length?
(f=new A,f.setNoPermFieldIndex(O)):f=new R:U&&0<Object.keys(U).length?(f=new K,f.setNoPermFieldIndex(O)):f=new L}f.setSelectableItems(k);f.setSelected(c);return f.getJqUi()});e.setClosingChecker2(function(U){U=f.getSelected();if(G&&!isNaN(G)&&U.length>G)return U=a.get("exceedMaxSelect","\u9009\u62e9\u6570\u91cf\u8d85\u8fc7\u9650\u5236\uff0c\u6700\u591a\u53ef\u9009#1\u4e2a\u53c2\u6570\u3002").replace("#1",G),e.getMessageCurtain().showPrompt(U),!1;m&&m(U);e.destroy();return!0},function(U){e.destroy();
return!0});e.setClosingAction(function(U){})})();this.setTreeNodeStyle=function(U){V=U};this.setTreeExpandLevel=function(U){F=U};this.setSelectabledItems=function(U){k=U;f&&f.setSelectableItems(k)};this.getPanel=function(){return f};this.setConfirmCallback=function(U){m=U};this.setMultiSelect=function(U){d=U};this.setSelected=function(U){U||(U=[]);c=U};this.setMaxSelect=function(U){G=U};this.setNoPermFieldIndex=function(U){O=U}};t.ComboBox=za;t.DropdownSelector=P;t.ChooseItemPane=function(){var g=
[],e,f,k,c;this.setItemModel=function(d){g=d};this.setRawTypeSwitchListener=function(d){};this.setSearchListener=function(d){e=d};this.setListItemPainter=function(d){f=d};this.createJqPopup=function(d,m,V){k=$("<div>");k.appendTo(d);c=$("<div>");k.addClass("extreport-runtime-filter-field-popup");d=a.get("search","\u641c\u7d22");var F=new b;F.setSearchListenerDelay(200);F.setPlaceholder(d);F.addSearchListener(function(){e(g,F.getText(),c,m,f)});d=F.getJqUi();d.addClass("extreport-runtime-filter-field-popup-search");
d.appendTo(k);c.addClass("extreport-runtime-filter-field-popup-list-owner");c.on("click",function(O){var U=$(O.currentTarget);O=$(O.target);if(O=M.upwardSearchHasClass(O,U,"extreport-runtime-filter-field-popup-list-item"))O.addClass("extreport-runtime-filter-list-item_selected_enabled"),U=O.data("model"),V(U)});c.appendTo(k);var G=k.find(".extreport-runtime-filter-search-textfield-input");G.css("top","0px");G.css("height","100%");for(G=0;G<g.length;G++)f(g[G],c,m,!1);return[-1,10<g.length?200+d.height():
20*g.length+d.height()+3]}};t.DateSelector=function(){com.kingdee.bos.qing.ui.component.DateSelector.call(this);var g=this;this.protectedCreatePopupUi=function(e,f,k,c){c.addSelectedChangedListener(function(m){m=new Date;m.setHours(0,0,0,0);m.setFullYear(c.getSelectedYear(),c.getSelectedMonth()-1,c.getSelectedDay());k(m)});f=c.suggestSize()[1];var d=$("<div>");d.addClass("sa-ctrl-date-foot");e.append(d);M.layoutCtrlWithLRTB(d,0,0,null,null,0,32);f+=32;g.isSelectedNullable()&&(e=new r,e.setText(a.get("clean",
"\u6e05\u7a7a")),e.addActionListener(function(m){k(null)}),d.append(e.getJqUi()),M.layoutCtrlWithLRTB(e.getJqUi(),4,null,60,null,4,24));e=new r;e.setText(a.get("today","\u4eca\u5929"));e.addActionListener(function(m){m=new Date;m.setHours(0,0,0,0);k(m)});e.getJqUi().appendTo(d);M.layoutCtrlWithLRTB(e.getJqUi(),null,4,60,null,4,24);M.layoutCtrlWithLRTB(c.getJqUi(),0,0,null,0,32,null);return[230,f]}};t.DateTimeSelector=function(){com.kingdee.bos.qing.ui.component.DateTimeSelector.call(this);var g=this;
this.protectedCreatePopupUi=function(e,f,k,c){c.setCurrentMonthNavigatorListener(function(ka,ha){V.css("display",ha?"":"none")});c.addSelectedChangedListener(function(ka){O.setEnabled(!0)});var d=$("<div>"),m=$("<div>"),V=$([d[0],m[0]]);V.css("display","none");V.addClass("sa-ctrl-date-mask");var F=new I;F.getJqUi().addClass("sa-ctrl-date-separater");setTimeout(function(){f?F.setSelected(f.getHours(),f.getMinutes(),f.getSeconds()):F.setSelected(0,0,0)},0);var G=$("<div>");G.addClass("sa-ctrl-date-foot");
var O=new r;O.setText(a.get("ok","\u786e\u5b9a"));O.setEnabled(c.isSelected());O.addActionListener(function(ka){ka=x.createDateObject(c.getSelectedYear(),c.getSelectedMonth()-1,c.getSelectedDay());ka.setHours(F.getHour(),F.getMinute(),F.getSecond(),0);k(ka)});O.getJqUi().appendTo(G);M.layoutCtrlWithLRTB(O.getJqUi(),null,4,60,null,4,24);if(g.isSelectedNullable()){var U=new r;U.setText(a.get("clean","\u6e05\u7a7a"));U.addActionListener(function(ka){k(null)});U.getJqUi().appendTo(G);M.layoutCtrlWithLRTB(U.getJqUi(),
4,null,60,null,4,24)}U=new r;U.setText(a.get("now","\u73b0\u5728"));U.addActionListener(function(ka){ka=new Date;ka.setMilliseconds(0);k(ka)});U.getJqUi().appendTo(G);M.layoutCtrlWithLRTB(U.getJqUi(),null,F.suggestSize()[0],60,null,4,24);e.append(F.getJqUi());e.append(G);e.append(d);e.append(m);e=c.suggestSize();U=F.suggestSize();var qa=e[0]+U[0],ra=Math.max(e[1],U[1])+32;M.layoutCtrlWithLRTB(c.getJqUi(),0,null,e[0],0,32,null);M.layoutCtrlWithLRTB(F.getJqUi(),null,0,U[0],0,32,null);M.layoutCtrlWithLRTB(d,
null,0,U[0],0,32,null);M.layoutCtrlWithLRTB(G,0,0,null,null,0,32);M.layoutCtrlWithLRTB(m,0,0,null,null,0,32);return[qa,ra]}};t.TimeSelector=function(){ta.call(this);var g=this,e=this.protectedMethod,f,k=!1,c=[0,0,0];this.setEnabled=function(F){V().setEnabled(F)};this.isEnabled=function(){return V().isEnabled()};this.addSelectionListener=function(F){V().addSelectionListener(function(G,O){O&&(c=G.getSelectedModel(),F(g))})};this.getJqUi=function(){return V().getJqUi()};this.setSelectedNullable=function(F){k=
F};this.setSelected=function(F,G,O){if(!k&&null===F)throw Error("Illegal argument");c=null===F?null:[F,G,O];V().setSelectedModel(c)};this.isSelectedNull=function(){return null===c};this.getHour=function(){return c[0]};this.getMinute=function(){return c[1]};this.getSecond=function(){return c[2]};var d=function(F){return(10>F?"0":"")+F},m=function(F,G){var O="";F&&(O=d(F[0])+" : "+d(F[1])+" : "+d(F[2]));G.text(O)},V=function(){f||(f=new P,f.setIconName("time"),f.setCustomPainter(m),f.setDropdownCreator(function(F,
G,O,U){U=$("<div>");U.addClass("sa-ctrl-date-foot");if(k){var qa=new r;qa.setText(a.get("clean","\u6e05\u7a7a"));qa.addActionListener(function(ka){O(null)});qa.getJqUi().appendTo(U);M.layoutCtrlWithLRTB(qa.getJqUi(),4,null,60,null,5,22)}qa=new r;qa.setText(a.get("ok","\u786e\u5b9a"));qa.addActionListener(function(ka){O([ra.getHour(),ra.getMinute(),ra.getSecond()])});qa.getJqUi().appendTo(U);M.layoutCtrlWithLRTB(qa.getJqUi(),null,4,60,null,5,22);var ra=new I;setTimeout(function(){ra.setSelected(G?
G[0]:0,G?G[1]:0,G?G[2]:0)},0);F.append(ra.getJqUi());F.append(U);M.layoutCtrlWithLRTB(ra.getJqUi(),0,0,null,0,32,null);M.layoutCtrlWithLRTB(U,0,0,null,null,0,32);e.setUiBackgroundEnabled(F,!0);ra.suggestSize();F=new r;F.setText(a.get("now","\u73b0\u5728"));F.addActionListener(function(ka){ka=new Date;O([ka.getHours(),ka.getMinutes(),ka.getSeconds()])});F.getJqUi().appendTo(U);M.layoutCtrlWithLRTB(F.getJqUi(),85,null,60,null,5,22);return[230,300]}));return f}};t.SwitchButton=function(){ta.call(this);
var g=this,e,f,k,c=!0,d=[],m,V,F=0,G,O=new h;this.setText=function(ka,ha){m=ka;V=ha;ra(!1)};this.addStateChangeListener=function(ka){d.push(ka)};var U=function(ka){for(var ha=0;ha<d.length;ha++)(0,d[ha])(g,ka,c)};this.setOn=function(ka){c=ka;ra(!0);U(!1)};this.isOn=function(){return c};this.getJqUi=function(){if(!e){var ka=$("<div>");e=$("<div>");e.on("click",qa);e.appendTo(ka);f=$("<div>");f.addClass("sa-ctrl-switcher-thumb");f.appendTo(e);k=$("<div>");k.addClass("extreport-runtime-filter-switch-text");
k.appendTo(e);ra(!1);e.css("border-radius","10px");M.layoutCtrlMiddleAlign(e,19);M.layoutCtrlMiddleAlign(f,15);f.css("border-radius","8px");f.css("width",15);f.css("margin-top","-8px")}return e.parent()};var qa=function(){g.isEnabled()&&(c=!c,ra(!0),U(!0))};this.protectedUpdateEnabledState=function(){ra(!1)};var ra=function(ka){var ha=c?m:V;ha?(O.setFontSize(12,"Microsoft YaHei"),F=O.measureWidth(ha),G=15+F+12):(G=38,F=0);65<G&&(F-=G-65,G=65);if(e){e.css("width",G);k.css("width",F);g.isEnabled()?
(e.css("cursor","pointer"),e.css("opacity","")):(e.css("cursor",""),e.css("opacity","0.5"));c?(e.addClass("sa-ctrl-switcher_on"),e.removeClass("sa-ctrl-switcher_off"),k.text(m),k.attr("title",m)):(e.removeClass("sa-ctrl-switcher_on"),e.addClass("sa-ctrl-switcher_off"),k.text(V),k.attr("title",V));ha=4;var Z=23;c&&(Z=4,ha=0<F?F+8:G-4-15);ka?(f.animate({left:ha+"px"},"fast"),k.animate({left:Z+"px"},"fast")):(f.css("left",ha+"px"),k.css("left",Z+"px"))}}};t.SingleValueDiscreteFilterPane=L;t.MultiValueDiscreteFilterPane=
R;t.SingleValueTreeFilterPane=n;t.MultiValueTreeFilterPane=p;t.MultiValueDiscreteTableFilterPanel=A;t.SingleValueDiscreteTableFilterPanel=K;var D,w,b,S,C,T,u,H,r,I,x,B,z,M,N,a,l,h,q;(function(){var g=com.kingdee.bos.qing.ui.component;D=g.AbstractModalDialog;w=g.Label;b=g.SearchBox;S=g.DynamicScroller;C=g.List;T=g.RadioButton;u=g.RadioButtonGroup;H=g.CheckBox;r=g.WorkButton;I=g.TimeList;x=g.AbstractMonthlyCalendar;B=g.HelpIcon;g=com.kingdee.bos.qing;z=g.Seer;g=com.kingdee.bos.qing.common;M=g.DomUtil;
h=g.TextMeasurer;g=com.kingdee.bos.qing.common.ui;N=g.TableUtil;g=com.kingdee.bos.qing.framework.common;a=g.MultilanguageManager.createPackageAccessor(t);l=g.GlobalFont;g=com.kingdee.bos.extreport.runtime;q=g.MyIcons})()})();(function(){function n(b,S){var C=this,T;this.getParamDescription=function(){return b};this.getContext=function(){return S};this.createUI=function(r){throw Error("Override me.");};this.setSuppliedValue=function(r){throw Error("Override me.");};this.setSelectedValue=function(r){throw Error("Override me.");};this.getSelectedValue=function(){throw Error("Override me.");};this.setSuppliedValueDescription=function(r){};this.resetSuppliedValue=function(r,I){};this.setSelectedValueChangedListener=function(r){T=
r};this.fireSelectedValueChanged=function(){T&&T(C)};var u=function(){var r=$("<div>"),I=new D;I.setFontSize(w.getFontSize(),w.getFontName());var x=I.measureWidth(b.getCaption())+4,B=b.isRequired();B&&(x+=8);x=Math.min(x,97);r.css({display:"inline-block",width:Math.max(108,108+(x-80))+"px",height:"24px",position:"relative",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"});var z=new com.kingdee.bos.qing.ui.component.Label;z.setRequired(B);z.setText(b.getCaption());z.setTooltips(b.getCaption());
B=z.getJqUi();B.css({position:"absolute",left:"6px",top:0,width:x+"px",height:"24px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",verticalAlign:"middle"});B.appendTo(r);if(z=b.getDescription())B=new za,B.setIconType(za.ICON_TYPE_QUESTION),B.setTipsText(z),I=I.measureWidth(z),B.setTipsSize(300<I?300:I+40,20*(Math.ceil(I/300)+1)),I=B.getJqUi(),x+=10,I.css({"z-index":2}),t.layoutCtrlWithLRTB(I,x,null,16,4,null,16),I.appendTo(r);return r},H=function(r,I){r.prop(I,!0);r.css("background-color",
"transparent")};this.protectedMethod={createUiWithLabel:function(r,I){var x="ctrl_"+b.getName();I.attr("id",x);var B=u();B.css("verticalAlign","middle");I.css({position:"relative",height:"24px",width:"230px",display:"inline-block",verticalAlign:"middle","font-size":"12px"});B.attr("for",x);r.append(B);r.append(I);"Hidden"==b.getState()?r.css("display","none"):b.isReadOnly()?(I.addClass("r-filter-disable"),r=I.find("input"),I.is("input")?H(I,"readonly"):r.is("input")?H(r,"readonly"):(r=$(I[0]),H(r,
"disabled")),r.addClass("r-filter-disable")):I.addClass("extreport-runtime-filter-enabled")},createUiWithFieldset:function(r,I){var x=$("<div>");x.attr("data-role","controlgroup");var B=u();B.css({"margin-top":"8px",verticalAlign:"top"});var z=$("<ul>");z.css({position:"relative",width:"85%",display:"inline-block"});x.append(B);x.append(z);if(I instanceof Array)for(B=0;B<I.length;B++){var M=$("<li>");M.css({margin:"8px 24px 8px 0px",display:"inline-block","font-size":"12px"});M.append(I[B]);z.append(M);
b.isReadOnly()?I[B].prop("disabled",!0):I[B].addClass("extreport-runtime-filter-enabled")}else B="ctrl_"+C.getParamDescription().getName(),I.attr("id",B),z.append(I);r.append(x);"Hidden"==C.getParamDescription().getState()?r.css("display","none"):b.isReadOnly()&&z.addClass("r-filter-disable")},createUiWithLabel2:function(r,I){var x="ctrl_"+C.getParamDescription().getName();I.attr("id",x);r.append(I);"Hidden"==C.getParamDescription().getState()&&r.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 p=com.kingdee.bos.extreport.runtime.filter;p.FilterTextField=function(b,S){var C=this;n.call(this,b,S);var T,
u,H=this.protectedMethod;this.createUI=function(I){T||r();var x=T.getJqUi();H.createUiWithLabel(I,x)};this.setSuppliedValue=function(I){};this.setSelectedValue=function(I){var x;I&&0<I.length&&(x=I[0].getValue());T||r();T.setText(null==x?"":x);C.fireSelectedValueChanged()};this.getSelectedValue=function(){T||r();var I=null==T.getText()?"":T.getText(),x=new ValueTextModel;x.setValue(I);x.setText(I);return[x]};var r=function(){T=new v;T.addEditedListener(function(I){clearTimeout(u);u=setTimeout(function(){C.fireSelectedValueChanged()},
1E3)})}};p.FilterComboBox=function(b,S){var C=this;n.call(C,b,S);var T=this.protectedMethod,u,H,r=[];this.createUI=function(x){u||I();var B=u.getJqUi();T.createUiWithLabel(x,B)};this.createUIWithoutLabel=function(x){I();u.setItemModels(r,function(z,M){return z&&M?z.getValue()==M.getValue():!1});var B=u.getJqUi();T.createUiWithLabel2(x,B)};this.setEnabled=function(x){u&&u.setEnabled(x)};var I=function(){u=new la;b.isEditable()&&u.setEditable(!0,function(x){if(!x||""==x&&b.isRequired())return null;
for(var B=0,z=r.length;B<z;B++)if(r[B].getText()==x)return r[B];B=new ValueTextModel;B.setText(x);B.setValue(x);return B});b.isReadOnly()&&u.setEnabled(!1);u.setCustomPainter(function(x,B,z){z&&B.text(z.getText())});u.addSelectedChangedListener(C.fireSelectedValueChanged)};this.setSuppliedValue=function(x){u||I();if(x){var B=C.getParamDescription(),z=B.getCtrlType();B=B.isRequired();"combobox"!=z.toLowerCase()||B||(z=new ValueTextModel,z.setValue(""),z.setText(""),x.unshift(z));u.setItemModels(x,
function(M,N){return M&&N?M.getValue()==N.getValue():!1});r=x}};this.setSelectedValue=function(x){var B;x&&0<x.length&&(B=x[0]);if(B){u||I();x=B;B=0;for(var z=r.length;B<z;B++)if(r[B].getValue()==x.getValue()){var M=r[B];break}u.setSelected(M)}};this.getSelectedValue=function(){u||I();var x=u.getSelected();if(x){var B=new ValueTextModel;B.setValue(x.getValue());B.setText(x.getText());return[B]}return[]};this.setSuppliedValueDescription=function(x){H=x};this.resetSuppliedValue=function(x,B){var z=
C.getParamDescription().getName();C.getContext().delaySuppliedValueRemoteGetter(z,H,function(M){var N=[];if(M){M=M.entryList;for(var a=0;a<M.length;a++){var l=new ValueTextModel,h=M[a];l.setText(h.text);l.setValue(h.value);N.push(l)}}C.setSuppliedValue(N);C.setSelectedValue(null);C.fireSelectedValueChanged();x&&x(B)})}};p.FilterComboBoxSearch=function(b,S){var C=this;n.call(C,b,S);var T=this.protectedMethod,u,H,r=[],I;this.createUI=function(a){u||x();var l=u.getJqUi();T.createUiWithLabel(a,l)};this.createUIWithoutLabel=
function(a){x();I.setItemModel(r);var l=u.getJqUi();T.createUiWithLabel2(a,l)};this.setEnabled=function(a){u&&u.setEnabled(a)};var x=function(){I=new ea;I.setListItemPainter(z);I.setSearchListener(B);u=new X;b.isEditable()&&u.setEditable(!0,function(a){if(!a||""==a&&b.isRequired())return null;for(var l=0,h=r.length;l<h;l++)if(r[l].getText()==a)return r[l];l=new ValueTextModel;l.setText(a);l.setValue(a);return l});b.isReadOnly()&&u.setEnabled(!1);u.setDropdownCreator(function(a,l,h){return I.createJqPopup(a,
l,h)});u.addSelectionListener(C.fireSelectedValueChanged);u.setCustomPainter(function(a,l){l.text(a?a.getText():"")})},B=function(a,l,h,q,g){l=l.toLowerCase().trim();for(var e=[],f,k=0;k<a.length;k++)(f=-1!=a[k].getText().toLowerCase().indexOf(l)?!0:!1)&&e.push(a[k]);h.children().remove();if(0<e.length){for(k=0;k<e.length;k++)g(e[k],h,q);e.length=0}else a=new ia,a.setText(ca.get("nothingSearched","\u627e\u4e0d\u5230\u7b26\u5408\u7684\u7ed3\u679c")),a.setEnabled(!1),a.setAlign(ia.ALIGN_CENTER),a=a.getJqUi(),
a.addClass("extreport-runtime-filter-field-popup-search-result"),a.appendTo(h)},z=function(a,l,h){var q=$("<div>");q.addClass("extreport-runtime-filter-field-popup-list-item");q.data("model",a);var g=a?a.getText():"",e=$("<span>");e.text(g);e.attr("title",g);e.addClass("extreport-runtime-filter-field-popup-list-item-text");q.append(e);l.append(q);h&&h.getText()==a.getText()&&M(l,q)},M=function(a,l){var h=null;0<a.height()?(clearTimeout(h),l.addClass("extreport-runtime-filter-list-item_selected_enabled"),
a.prop("scrollTop",0)):h=setTimeout(function(){M(a,l)},0)};this.setSuppliedValue=function(a){u||x();if(a){var l=C.getParamDescription(),h=l.getCtrlType();l=l.isRequired();"combobox"!=h.toLowerCase()||l||(h=new ValueTextModel,h.setValue(""),h.setText(""),a.unshift(h));I.setItemModel(a);r=a}};this.setSelectedValue=function(a){var l;a&&0<a.length&&(l=a[0]);u||x();l?N(l):(a=new ValueTextModel,a.setText(""),N(a))};this.getSelectedValue=function(){u||x();var a=u.getSelectedModel();if(a){var l=new ValueTextModel;
l.setValue(a.getValue());l.setText(a.getText());return[l]}return[]};this.setSuppliedValueDescription=function(a){H=a};this.resetSuppliedValue=function(a,l){var h=C.getParamDescription().getName();C.getContext().delaySuppliedValueRemoteGetter(h,H,function(q){var g=[];if(q){q=q.entryList;for(var e=0;e<q.length;e++){var f=new ValueTextModel,k=q[e];f.setText(k.text);f.setValue(k.value);g.push(f)}}C.setSuppliedValue(g);C.setSelectedValue(null);C.fireSelectedValueChanged();a&&a(l)})};var N=function(a){for(var l=
a,h=0,q=r.length;h<q;h++)if(r[h].getValue()==a.getValue()){l=r[h];break}u.setSelectedModel(l)}};p.FilterForwardSelector=function(b,S){n.call(this,b,S);var C=this,T=this.protectedMethod,u,H=[],r=[],I=!0,x;this.createUI=function(a){u||B();var l=u.getJqUi();T.createUiWithLabel(a,l)};this.createUIWithoutLabel=function(a){B();var l=u.getJqUi();T.createUiWithLabel2(a,l)};this.setEnabled=function(a){u&&u.setEnabled(a)};this.setSuppliedValueInner=function(a){I=!1;H=a};this.setSuppliedValue=function(a){};
this.setSelectedValue=function(a){u||B();a&&0==a.length?u.setModel(null):u.setModel(a);C.fireSelectedValueChanged()};this.getSelectedValue=function(){return u&&u.getModel()?u.getModel():[]};this.setSuppliedValueDescription=function(a){x=a};this.resetSuppliedValue=function(a,l){I=!0;u&&u.setModel(null);C.fireSelectedValueChanged();a&&a(l)};var B=function(){u=new pa;u.setClearable(!0);b.isEditable()&&u.setEditable(!0,function(a){if(!a||""==a)return null;for(var l=[],h=0,q=H.length;h<q;h++)if(H[h].getText()==
a){l.push(H[h]);break}0==l.length&&(h=new ValueTextTreeNodeModel,h.setText(a),h.setValue(a),l.push(h));return l});b.isReadOnly()&&u.setEnabled(!1);u.addActionListener(N);u.setCustomPainter(function(a){var l="";if(!a)return l;for(var h=a.length,q=3>h?h:3,g=0;g<q;g++)l+=a[g].getText(),g<q-1&&(l+="; ");3<h&&(l=ca.get("selectNumInTotal","#1\u7b49#2\u9879").replace("#1",l),l=l.replace("#2",h));return l})},z=function(a){a=new aa;a.setSelectabledItems(H);a.setSelected(u.getModel());a.setMultiSelect(C.getParamDescription().isMultiSelectable());
a.setConfirmCallback(function(l){u.setModel(l);C.fireSelectedValueChanged()});a.setTreeNodeStyle(C.getParamDescription().isTree());a.setTreeExpandLevel(C.getParamDescription().getTreeExpandLevel());a.setMaxSelect(C.getParamDescription().getMaxRestrictNumber());a.setNoPermFieldIndex(r);a.showDialog();a=a.getPanel();(a instanceof com.kingdee.bos.extreport.runtime.filter.MultiValueDiscreteTableFilterPanel||a instanceof com.kingdee.bos.extreport.runtime.filter.SingleValueDiscreteTableFilterPanel)&&a.updateTable()},
M=function(a,l,h){for(var q=0;q<a.length;q++){var g=a[q];g.setLevel(l);h.push(g);(g=g.getChildren())&&M(g,l+1,h)}},N=function(a){I?(a=C.getParamDescription().getName(),C.getContext().delaySuppliedValueRemoteGetter(a,x,function(l){r=l?l.noPermFieldIndex:[];if(l){var h=l.entryList;H=[];for(var q,g,e=0;e<h.length;e++)q=h[e],g=new ValueTextTreeNodeModel,g.setText(q.text),g.setValue(q.value),g.setId(q.id),g.setParentId(q.parentId),g.setEntry(q.rows),g.setEntryHeadMap(l.head),H.push(g);if(C.getParamDescription().isTree()){l=
H;if(!(l instanceof Array))throw Error("Illegal argument. Argument should be instance of Array.");if(l&&0!=l.length){if(!(l[0]instanceof ValueTextTreeNodeModel))throw Error("Illegal argument. Elements in Array should be instance of ValueTextTreeNodeModel.");h=new ValueTextTreeModel;h.buildTree(l);l=h.getRootArray();h=[];M(l,0,h);H=h}else H=void 0}}z()})):z()}};p.FilterNumberInput=function(b,S){var C=this;n.call(this,b,S);var T,u=this.protectedMethod;this.createUI=function(r){T||H();var I=T.getJqUi(),
x=I.find(".sa-ctrl-spinner-text");x&&x.css("background-color","#fafafa");u.createUiWithLabel(r,I)};var H=function(){T=new L;T.supportDecimal(2);b.isReadOnly()&&T.setEnabled(!1);T.addValueChangedListener(C.fireSelectedValueChanged)};this.setSuppliedValue=function(r){T||H();var I=r.getMin(),x=r.getMax();r=r.getStep();T.setConstraint(I?Number(I):-Infinity,x?Number(x):Infinity,r?Number(r):1)};this.setDefaultValue=function(r){};this.setSelectedValue=function(r){r&&0<r.length&&(r=r[0],T||H(),T.setValue(Number(r.getValue())))};
this.getSelectedValue=function(){T||H();var r=new ValueTextModel;r.setValue(T.getValue()+"");r.setText(r.getValue());return[r]}};p.FilterDate=function(b,S){var C=this;n.call(this,b,S);var T,u,H=this.protectedMethod;this.createUI=function(B){T||r();var z=T.getJqUi();H.createUiWithLabel(B,z)};var r=function(){T=new R;T.setSelectedNullable(!0);T.addModelChangedListener(C.fireSelectedValueChanged);b.isReadOnly()&&T.setEnabled(!1)};this.setSuppliedValue=function(B){};this.setSelectedValue=function(B){B&&
0<B.length?(B=B[0],(B=B.getValue())&&"string"==typeof B&&I(B)):I("")};this.getSelectedValue=function(){var B=x(),z=new ValueTextModel;z.setValue(B);z.setText(z.getValue());return[z]};var I=function(B){T||r();if(B){if(-1<B.indexOf("-")){var z=B.split("-");if(3>z.length)return;B=parseInt(z[0]);var M=parseInt(z[1]);z=parseInt(z[2]);var N=new Date;N.setYear(B);N.setMonth(M-1);N.setDate(z)}else N=new Date(Number(B));T.setDateObject(N)}else T.setDateObject(null)},x=function(){if(!T)return"";var B=T.getDateObject();
if(!B)return"";u||(u=new A,u.setFormatString("yyyy-MM-dd"));return u.format(B)}};p.FilterSimilarDate=function(b,S){function C(h,q,g){r.call(this,ca.get("month","\u6708"),new va,h,q,g);var e=this;e.setOkBtnListener(function(f){if(f instanceof va){var k=f.getSelectedYear();f=f.getSelectedMonth();g(10>f?k+"-0"+f:k+"-"+f)}});setTimeout(function(){var f=e.getPanel();if(f instanceof va){var k=q?q:N((new Date).getTime()+""),c=k?parseInt(k.substring(0,4)):(new Date).getFullYear();k=k?parseInt(k.substring(5)):
(new Date).getMonth()+1;f.setSelectedYear(c);f.setSelectedMonth(k);f.scrollSelectedToVisible()}},0);return[230,300]}function T(h,q,g){r.call(this,ca.get("quarter","\u5b63"),new ja,h,q,g);var e=this;e.setOkBtnListener(function(f){if(f instanceof ja){var k=f.getSelectedYear();f=f.getSelectedQuarter();k=ja.toDateRange(k,f);g(N(k[0]+""))}});setTimeout(function(){var f=e.getPanel();if(f instanceof ja){var k=q?q:N((new Date).getTime()+""),c=parseInt(k.substring(0,4));k=parseInt(k.substring(6))-1;f.setSelectedYear(c);
f.setSelectedQuarter(k);f.scrollSelectedToVisible()}},0);return[230,300]}function u(h,q,g){r.call(this,ca.get("year","\u5e74"),new H,h,q,g);var e=this;e.setOkBtnListener(function(f){f instanceof H&&(f=f.getDateRange(),g(N(f[0]+"")))});setTimeout(function(){var f=e.getPanel();if(f instanceof H){var k=q?q:N((new Date).getTime()+"");f.setDateRange(k);f.into()}},0);return[230,300]}function H(){var h;this.getJqUi=function(){return q().getJqUi()};this.setDateRange=function(g,e){g=(g?new Date(g):new Date).getFullYear();
q().setSelecteds([g])};this.getDateRange=function(){var g=q().getSelecteds()[0],e=new Date;e.setFullYear(g,0,1);e.setHours(0,0,0,0);var f=new Date;f.setFullYear(g,11,31);f.setHours(23,59,59,999);return[e.getTime(),f.getTime()]};this.into=function(){q().scrollSelectedToVisible()};var q=function(){if(!h){for(var g=[],e=1970;2099>=e;e++)g.push(e);h=new ta;h.setToggleSelectingEnabled(!1);h.setBorderVisible(!1);h.setItemModels(g)}return h}}function r(h,q,g,e,f){var k=q.getJqUi();e=$("<div>");e.addClass("sa-ctrl-date-foot");
e.css({background:"#fff"});g.append(k);g.append(e);t.layoutCtrlWithLRTB(k,0,0,null,0,32,null);t.layoutCtrlWithLRTB(e,0,0,null,null,0,32);g=new na;g.setText(ca.get("clean","\u6e05\u7a7a"));g.addActionListener(function(d){f(null)});g.getJqUi().appendTo(e);t.layoutCtrlWithLRTB(g.getJqUi(),6,null,40,null,5,22);g=new na;"en"==K.getUrlParamValue("language")?g.setText("Now"):g.setText(ca.get("this","\u672c")+h);g.addActionListener(function(d){f(N((new Date).getTime()+""))});g.getJqUi().appendTo(e);t.layoutCtrlCenterAlign(g.getJqUi(),
40);t.layoutCtrlMiddleAlign(g.getJqUi(),22);var c=new na;c.setText(ca.get("ok","\u786e\u5b9a"));c.getJqUi().appendTo(e);t.layoutCtrlWithLRTB(c.getJqUi(),null,6,40,null,5,22);this.setOkBtnListener=function(d){c.addActionListener(function(m){d(q)})};this.getPanel=function(){return q}}n.call(this,b,S);var I=this,x=this.protectedMethod,B,z;this.createUI=function(h){B||M();x.createUiWithLabel(h,B.getJqUi())};this.createUIWithoutLabel=function(h){M();x.createUiWithLabel2(h,B.getJqUi())};this.setEnabled=
function(h){B&&B.setEnabled(h)};var M=function(){B=new X;b.isReadOnly()&&B.setEnabled(!1);B.setIconName("calendar");b.getDefaultValue();var h=B,q=h.setSelectedModel,g;(g=b.getDefaultValue())&&0<g.length?(g=g[0].getValue(),g=N(g)):g="";q.call(h,g);B.setCustomPainter(a);B.setDropdownCreator(l());B.addSelectionListener(I.fireSelectedValueChanged)};this.setSuppliedValue=function(h){};this.setSelectedValue=function(h){B||M();h&&0<h.length&&(h=h[0],h=h.getValue(),B.setSelectedModel(N(h)))};this.protectedGetFormatString=
function(){var h=b.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 N=function(h){if(h&&"string"==typeof h){var q=new A;q.setFormatString(I.protectedGetFormatString());return 0>h.indexOf("-")?q.format(Number(h)):q.format(h)}return""},a=function(h,q){q.text(h);z=h};this.getSelectedValue=
function(){var h=b.getPattern(),q=new ValueTextModel;if(z&&4<=z.length){var g=z.substring(0,4);if(ReportParamDescription.Y_M_PATTERN===h)h=z.substring(5,7);else if(ReportParamDescription.Y_Q_PATTERN===h)h=z.substring(6),h=3*parseInt(h);else if(ReportParamDescription.Y_PATTERN===h)h=12;else throw Error(h+"type will be implemented");var e=parseInt(h);switch(e){case 1:case 3:case 5:case 7:case 8:case 10:case 12:10>e&&(h="0"+e);h+="-31";break;case 4:case 6:case 9:case 11:10>e&&(h="0"+e);h+="-30";break;
case 2:h="0"+e,h=0==parseInt(g)%4&&0!=parseInt(g)%400?h+"-29":h+"-28"}q.setValue(g+"-"+h);q.setText(q.getValue())}return[q]};var l=function(){var h=b.getPattern();if(ReportParamDescription.Y_M_PATTERN===h)return C;if(ReportParamDescription.Y_Q_PATTERN===h)return T;if(ReportParamDescription.Y_PATTERN===h)return u;throw Error(h+"type will be implemented");}};p.FilterDateAndTime=function(b,S){var C=this;n.call(this,b,S);var T,u,H=this.protectedMethod;this.createUI=function(B){T||r();var z=T.getJqUi();
H.createUiWithLabel(B,z)};var r=function(){T=new ba;T.setSelectedNullable(!0);T.isSelectedNullable(!0);T.addModelChangedListener(C.fireSelectedValueChanged);b.isReadOnly()&&T.setEnabled(!1)};this.setSuppliedValue=function(B){};this.setSelectedValue=function(B){B&&0<B.length?(B=B[0],(B=B.getValue())&&"string"==typeof B&&I(B)):I("")};this.getSelectedValue=function(){var B=x(),z=new ValueTextModel;z.setValue(B);z.setText(z.getValue());return[z]};var I=function(B){T||r();if(B){if(-1<B.indexOf("-")){var z=
B.split(" ");if(2>z.length)return;B=z[1];var M=z[0].split("-"),N=B.split(":");if(3>M.length||3>N.length)return;B=parseInt(M[0]);z=parseInt(M[1]);M=parseInt(M[2]);var a=parseInt(N[0]),l=parseInt(N[1]);N=parseInt(N[2]);var h=new Date;h.setYear(B);h.setMonth(z-1);h.setDate(M);h.setHours(a);h.setMinutes(l);h.setSeconds(N)}else h=new Date(Number(B));T.setDateObject(h)}else T.setDateObject(null)},x=function(){if(!T)return"";var B=T.getDateObject();if(!B)return"";u||(u=new A,u.setFormatString("yyyy-MM-dd HH:mm:ss"));
return u.format(B)}};p.FilterTime=function(b,S){var C=this;n.call(this,b,S);var T,u,H=this.protectedMethod;this.createUI=function(x){T||r();var B=T.getJqUi();H.createUiWithLabel(x,B)};this.setSuppliedValue=function(x){};this.setSelectedValue=function(x){x&&0<x.length?(x=x[0],(x=x.getValue())&&"string"==typeof x&&I(x)):I("")};this.getSelectedValue=function(){var x=new ValueTextModel,B=x.setValue;if(!T||T.isSelectedNull())var z="";else u||(u=new A,u.setFormatString("HH:mm:ss")),z=new Date,z.setHours(T.getHour()),
z.setMinutes(T.getMinute()),z.setSeconds(T.getSecond()),z=u.format(z);B.call(x,z);x.setText(x.getValue());return[x]};var r=function(){T=new ma;T.setSelectedNullable(!0);T.setSelected(null);T.addSelectionListener(C.fireSelectedValueChanged);b.isReadOnly()&&T.setEnabled(!1)},I=function(x){T||r();if(x)if(-1<x.indexOf(":")){var B=x.split(":");if(!(3>B.length)){x=parseInt(B[0]);var z=parseInt(B[1]);B=parseInt(B[2]);T.setSelected(x,z,B)}}else x=new Date(Number(x)),T.setSelected(x.getHours(),x.getMinutes(),
x.getSeconds());else T.setSelected(null)}};p.FilterCheckBoxGroup=function(b,S){var C=this;n.call(C,b,S);var T=this.protectedMethod,u,H=[],r={},I,x;this.createUI=function(N){x=N;u||B();var a=[];u.getJqUi().css({overflow:"hidden"});a.push(u.getJqUi());for(var l=0,h=H.length;l<h;l++)a.push(H[l].getJqUi());T.createUiWithFieldset(N,a)};this.setSuppliedValue=function(N){H=[];r={};if(N)for(var a=0,l=N.length;a<l;a++){var h=M(N[a]);h&&H.push(h)}};this.setSelectedValue=function(N){z();for(var a=0,l=H.length,
h=0,q=N.length;h<q;h++)for(var g=N[h].getValue().split(";"),e=0;e<g.length;e++)for(var f=g[e],k=0;k<l;k++){var c=H[k];c.getUserObject().getValue()==f&&(a++,b.isReadOnly()&&c.getJqUi().addClass("rpt-filter-togglebutton-important-disabled"),c.setSelected(!0))}N=a==l;u||B();u.setSelected(N);N&&z();C.fireSelectedValueChanged()};this.getSelectedValue=function(){for(var N=[],a=u?u.isSelected():!1,l=0,h=H.length;l<h;l++){var q=H[l];if(a||q.isSelected()){q=q.getUserObject();var g=new ValueTextModel;g.setValue(q.getValue());
g.setText(q.getText());N.push(g)}}return N};this.setSuppliedValueDescription=function(N){I=N};this.resetSuppliedValue=function(N,a){var l=C.getParamDescription().getName();C.getContext().delaySuppliedValueRemoteGetter(l,I,function(h){var q=[];if(h){h=h.entryList;for(var g=0;g<h.length;g++){var e=new ValueTextModel,f=h[g];e.setText(f.text);e.setValue(f.value);q.push(e)}}C.setSuppliedValue(q);x&&(x.empty(),B(),C.createUI(x));C.setSelectedValue([]);C.fireSelectedValueChanged();N&&N(a)})};var B=function(){u=
new W;b.isReadOnly()&&u.setEnabled(!1);u.setText(ca.get("noLimit","\u4e0d\u9650"));u.setTooltips(ca.get("noLimit","\u4e0d\u9650"));u.addActionListener(function(N,a){a?z():N.setSelected(!0);C.fireSelectedValueChanged()})},z=function(){for(var N=0,a=H.length;N<a;N++)H[N].setSelected(!1)},M=function(N){var a=N.getValue();if(!r[a]){r[a]="1";a=N.getText();var l=new W;l.setUserObject(N);l.setText(""===a?ca.get("emptyText","\uff08\u7a7a\uff09"):a);l.setTooltips(""===a?ca.get("emptyText","\uff08\u7a7a\uff09"):
a);l.getJqUi().css({"max-width":"230px","text-overflow":"ellipsis",overflow:"hidden","white-space":"nowrap"});b.isReadOnly()&&l.setEnabled(!1);l.addActionListener(function(h,q){u&&(q&&u.setSelected(!1),C.fireSelectedValueChanged())});return l}}};p.FilterLabel=function(b,S){n.call(this,b,S);var C=this.protectedMethod,T=$(b.getDefaultValue()[0].getValue()).css({padding:"0 0.2em",fontSize:"12px",marginLeft:"0.2em",lineHeight:"1.7em",verticalAlign:"middle",color:"#666"});this.createUI=function(u){C.createUiWithLabel2(u,
T)};this.setSuppliedValue=function(u){};this.setSelectedValue=function(u){var H;u&&0<u.length&&(H=u[0].getValue());T.attr("value",H)};this.getSelectedValue=function(){var u=T.attr("value"),H=new ValueTextModel;H.setValue(u);H.setText(u);return[H]}};p.FilterSwitch=function(b,S){var C=this;n.call(this,b,S);var T=this.protectedMethod,u,H,r;this.createUI=function(x){u||I();var B=u.getJqUi();T.createUiWithLabel(x,B)};this.createUIWithoutLabel=function(x){I();var B=H?H.getText():"",z=r?r.getText():"";u.setText(B,
z);B=u.getJqUi();T.createUiWithLabel2(x,B)};this.setEnabled=function(x){u&&u.setEnabled(x)};var I=function(){u=new P;b.isReadOnly()&&u.setEnabled(!1);u.addStateChangeListener(C.fireSelectedValueChanged)};this.setSuppliedValue=function(x){u||I();x?(H=x.getChecked(),r=x.getUnchecked()):r=H=void 0;x=H?H.getText():"";var B=r?r.getText():"";u.setText(x,B)};this.setSelectedValue=function(x){var B;x&&0<x.length&&(B=x[0]);B&&(u||I(),x=r&&r.getValue()==B.getValue(),u.setOn(!x))};this.getSelectedValue=function(){u||
I();var x=u.isOn()?H:r;if(x){var B=new ValueTextModel;B.setValue(x.getValue());B.setText(x.getText());return[B]}return[]}};p.AbstractFilterCtrl=n;var v,L,R,ba,W,ma,K,A,ca,ia,va,ja,aa,pa,la,ea,X,na,ta,za,P,t,D,w;(function(){var b=com.kingdee.bos.qing.ui.component;v=b.TextField;L=b.Spinner;W=b.ToggleButton;na=b.WorkButton;ta=b.List;za=b.HelpIcon;b=com.kingdee.bos.qing;K=b.Seer;b=com.kingdee.bos.qing.common;A=b.DateFormater;t=b.DomUtil;D=b.TextMeasurer;b=com.kingdee.bos.qing.framework.common;ca=b.MultilanguageManager.createPackageAccessor(p);
w=b.GlobalFont;b=com.kingdee.bos.qing.ui.component;ia=b.Label;va=b.DateOfYearMonthPanel;ja=b.DateOfYearQuarterPanel;aa=p.F7Dialog;pa=p.F7Selector;la=p.ComboBox;X=p.DropdownSelector;ea=p.ChooseItemPane;R=p.DateSelector;ba=p.DateTimeSelector;ma=p.TimeSelector;P=p.SwitchButton})()})();(function(){function n(la,ea){K.call(this,la,ea);var X=this,na=this.protectedMethod,ta,za,P,t,D,w,b="date",S=[],C=[],T=[],u,H,r,I,x,B,z,M=[],N=[],a=[];this.createUI=function(d){var m=com.kingdee.bos.qing.CodeLoader;m.setCallback(function(){ta||l();na.createUiWithLabel(d,ta)});m.loadCss("lightapp/common/qing-lapp.css")};this.setSuppliedValue=function(d){};this.setSelectedValue=function(d){ta||l();if(d&&0<d.length){d=d[0];d=d.getValue();if(b==n.DATE_Y||b==n.DATE_YQ||b==n.DATE_YM)if(d&&"string"==typeof d){var m=
new ba;b==n.DATE_Y?m.setFormatString("yyyy"):b==n.DATE_YM?m.setFormatString("yyyy-MM"):b==n.DATE_YQ?m.setFormatString("yyyy-'Q'q"):m.setFormatString("yyyy-MM-dd");d=0>d.indexOf("-")?m.format(Number(d)):m.format(d)}else d="";d&&"string"==typeof d&&za.setText(d)}else za.setText("");X.fireSelectedValueChanged()};this.getSelectedValue=function(){var d=za.getText(),m=new ValueTextModel;if(b==n.DATE_Y||b==n.DATE_YQ||b==n.DATE_YM){if(d&&4<=d.length){var V=d.substring(0,4);b==n.DATE_YQ?(d=d.substring(6),
d=3*parseInt(d)):d=b==n.DATE_YM?d.substring(5):12;var F=parseInt(d);switch(F){case 1:case 3:case 5:case 7:case 8:case 10:case 12:10>F&&(d="0"+F);d+="-31";break;case 4:case 6:case 9:case 11:10>F&&(d="0"+F);d+="-30";break;case 2:d="0"+F,d=0==parseInt(V)%4&&0!=parseInt(V)%400?d+"-29":d+"-28"}d&&0<d.length?m.setValue(V+"-"+d):m.setValue(V);m.setText(m.getValue())}}else m.setValue(d),m.setText(m.getValue());return[m]};this.setSelectorType=function(d){b=d};var l=function(){ta=$("<div>");var d=$("<span>");
d.on("click",h);d.appendTo(ta);za=new R;za.setReadonly(!0);var m=za.getJqUi();m.css({display:"inline-block",height:"24px","background-color":"unset",width:"189px"});m.appendTo(d);m=$("<span>");m.css({position:"absolute",width:"16px",height:"16px","margin-left":"-16px","margin-top":"3px"});b==n.TIME?L.background(m,"time"):L.background(m,"calendar");m.appendTo(d);d=$("<span>");d.css({position:"absolute",width:"16px",height:"16px","margin-left":"25px","margin-top":"3px"});pa.background(d,"delete");d.on("click",
function(){za.setText("")});d.appendTo(ta)},h=function(){P=$("<div>");P.addClass("extreport-card-mobile-filter-modallayer");P.css("bottom",-$(document).scrollTop());P.appendTo($("body"));t=$("<div>");t.addClass("extreport-card-mobile-sliderselector");t.appendTo(P);var d=$("<div>");d.addClass("extreport-card-mobile-sliderselector-head");d.appendTo(t);var m=$("<div>");m.addClass("extreport-card-mobile-sliderselector-head-ok");m.text(W.get("OK","\u786e\u5b9a"));m.on("click",f);m.appendTo(d);m=$("<div>");
m.addClass("extreport-card-mobile-sliderselector-head-cancel");m.text(W.get("cancel","\u53d6\u6d88"));m.on("click",k);m.appendTo(d);if(b==n.DATE_Y||b==n.DATE_YQ||b==n.DATE_YM)D||(D=$("<div>"),D.addClass("extreport-card-mobile-sliderselector-content"),D.appendTo(t)),u=q(),u.getJqUi().appendTo(D),u.setSelectedText(W.get("dateSliderSelectorYear","\u5e74")),u.setLoop(!1),b==n.DATE_YQ?(u.getJqUi().css("width","50%"),u.setSelectedTextLeftMargin(55),I=q(),I.setZeroFillBefore(!1),I.getJqUi().appendTo(D),
I.setSelectedText(W.get("dateSliderQuarter","\u5b63\u5ea6")),I.getJqUi().css("width","50%"),I.setSelectedTextLeftMargin(40)):b==n.DATE_YM?(u.getJqUi().css("width","50%"),u.setSelectedTextLeftMargin(55),H=q(),H.getJqUi().appendTo(D),H.setSelectedText(W.get("dateSliderSelectorMonth","\u6708")),H.getJqUi().css("width","50%"),H.setSelectedTextLeftMargin(40)):(u.getJqUi().css("width","100%"),u.setSelectedTextLeftMargin(55)),d=new Date,g(d),b==n.DATE_YQ?(I.setData([1,2,3,4]),I.selectDataIndex(Math.floor(d.getMonth()/
3))):b==n.DATE_YM&&e(d);else{if(b==n.DATE||b==n.DATE_TIME)D||(D=$("<div>"),D.addClass("extreport-card-mobile-sliderselector-content"),D.appendTo(t)),u=q(),H=q(),r=q(),u.getJqUi().appendTo(D),H.getJqUi().appendTo(D),r.getJqUi().appendTo(D),u.setSelectedText(W.get("dateSliderSelectorYear","\u5e74")),u.setChangeListener(c),u.setLoop(!1),H.setSelectedText(W.get("dateSliderSelectorMonth","\u6708")),H.setChangeListener(c),r.setSelectedText(W.get("dateSliderSelectorDay","\u65e5")),r.setChangeListener(c),
u.setSelectedTextLeftMargin(52),H.setSelectedTextLeftMargin(35),r.setSelectedTextLeftMargin(35),d=new Date,g(d),e(d),T=[],c(),r.setData(T),r.selectDataIndex(d.getDate()-1);if(b==n.TIME||b==n.DATE_TIME){D||(D=$("<div>"),D.addClass("extreport-card-mobile-sliderselector-content"),D.appendTo(t));x=q();B=q();z=q();x.getJqUi().appendTo(D);B.getJqUi().appendTo(D);z.getJqUi().appendTo(D);x.setSelectedText(W.get("timeSliderSelectorHour","\u65f6"));B.setSelectedText(W.get("timeSliderSelectorMinute","\u5206"));
z.setSelectedText(W.get("timeSliderSelectorSecond","\u79d2"));x.setSelectedTextLeftMargin(35);B.setSelectedTextLeftMargin(35);z.setSelectedTextLeftMargin(35);M=[];N=[];a=[];d=new Date;for(m=0;60>m;m++)24>m&&M.push(m),N.push(m),a.push(m);x.setData(M);x.selectDataIndex(d.getHours());B.setData(N);B.selectDataIndex(d.getMinutes());z.setData(a);z.selectDataIndex(d.getSeconds())}}a:if(d=za.getText(),b==n.DATE_Y||b==n.DATE_YQ||b==n.DATE_YM)b==n.DATE_Y?u&&u.selectDataIndex(parseInt(d)-1800):b==n.DATE_YQ?
(m=d.substring(0,4),d=d.split("Q"),d=d[1],u&&u.selectDataIndex(parseInt(m)-1800),I&&I.selectDataIndex(parseInt(d)-1)):b==n.DATE_YM&&(m=d.substring(0,4),d=d.split("-"),d=d[1],u&&u.selectDataIndex(parseInt(m)-1800),H&&H.selectDataIndex(parseInt(d)-1));else if(d){if(b==n.DATE_TIME){m=d.split(" ");if(2>m.length)break a;var V=m[0];m=m[1]}else m=V=d;if(-1==d.indexOf("-")&&-1==d.indexOf(":"))d=new Date(Number(d));else{d=new Date;var F=V;V=d;if(-1<F.indexOf("-")){var G=F.split("-");if(!(3>G.length)){F=parseInt(G[0]);
var O=parseInt(G[1]);G=parseInt(G[2]);V.setYear(F);V.setMonth(O-1);V.setDate(G)}}V=m;m=d;-1<V.indexOf(":")&&(O=V.split(":"),3>O.length||(V=parseInt(O[0]),F=parseInt(O[1]),O=parseInt(O[2]),m.setHours(V),m.setMinutes(F),m.setSeconds(O)))}u&&u.selectDataIndex(d.getFullYear()-1800);H&&H.selectDataIndex(d.getMonth());r&&r.selectDataIndex(d.getDate()-1);x&&x.selectDataIndex(d.getHours());B&&B.selectDataIndex(d.getMinutes());z&&z.selectDataIndex(d.getSeconds())}},q=function(){var d=com.kingdee.bos.qing.lapp.component.EventAction.isMobile()?
new com.kingdee.bos.qing.lapp.component.Slider:new com.kingdee.bos.qing.lapp.component.DeskSlider;b==n.DATE_TIME&&d.setWidth("16%");return d},g=function(d){S=[];for(var m=1800;2800>=m;m++)S.push(m);u.setData(S);u.selectDataIndex(d.getFullYear()-1800)},e=function(d){C=[];for(var m=1;12>=m;m++)C.push(m);H.setData(C);H.selectDataIndex(d.getMonth())},f=function(){var d=u?u.getValue():0,m=H?H.getValue():0,V=r?r.getValue():0,F=I?I.getValue():0,G=x?x.getValue():0,O=B?B.getValue():0,U=z?z.getValue():0;if(b==
n.DATE_Y||b==n.DATE_YQ||b==n.DATE_YM){if(b==n.DATE_Y){m=12;var qa="yyyy"}else b==n.DATE_YQ?(m=3*F,qa="yyyy-'Q'q"):qa=b==n.DATE_YM?"yyyy-MM":"yyyy-MM-dd";d=new Date(d,m,V,G,O,U)}else d=new Date(d,m-1,V,G,O,U);w||(w=new ba,b==n.DATE?qa="yyyy-MM-dd":b==n.TIME?qa="HH:mm:ss":b==n.DATE_TIME&&(qa="yyyy-MM-dd HH:mm:ss"),w.setFormatString(qa));za.setText(w.format(d));X.fireSelectedValueChanged();P.remove();D=null},k=function(){P.remove();D=null},c=function(){var d=u.getValue(),m=H.getValue();d=(new Date(d,
m,0)).getDate();m=r.getDataIdx();if(d!=T.length){T=[];for(var V=1;V<=d;V++)T.push(V);r.setData(T);r.selectDataIndex(m)}}}"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 p=com.kingdee.bos.extreport.runtime.filter;p.FilterComboBoxMobile=function(la,ea){var X=this;K.call(X,la,ea);var na=this.protectedMethod,ta,za,P=[];this.createUI=function(w){ta||t();var b=ta.getJqUi();na.createUiWithLabel(w,b);b.css({height:"30px","line-height":"30px"});w.find(".extreport-runtime-filter-combobox-text").css("margin-top","-17px")};var t=function(){ta=new ma;la.isEditable()&&ta.setEditable(!0,function(w){if(!w||""==w&&la.isRequired())return null;for(var b=0,S=P.length;b<S;b++)if(P[b].getText()==
w)return P[b];b=new ValueTextModel;b.setText(w);b.setValue(w);return b});ta.setCustomPainter(function(w,b,S){b.css({height:"30px","line-height":"30px"});S&&b.text(S.getText())});ta.addSelectedChangedListener(X.fireSelectedValueChanged)};this.setSuppliedValue=function(w){ta||t();if(w){var b=X.getParamDescription(),S=b.getCtrlType();b=b.isRequired();"combobox"!=S.toLowerCase()||b||(S=new ValueTextModel,S.setValue(""),S.setText(""),w.unshift(S));ta.setItemModels(w,function(C,T){return C&&T?C.getValue()==
T.getValue():!1});P=w}};this.setSelectedValue=function(w){var b;w&&0<w.length&&(b=w[0]);ta||t();b?D(b):(w=new ValueTextModel,w.setText(""),D(w))};this.getSelectedValue=function(){ta||t();var w=ta.getSelected();if(w){var b=new ValueTextModel;b.setValue(w.getValue());b.setText(w.getText());return[b]}return[]};this.setSuppliedValueDescription=function(w){za=w};this.resetSuppliedValue=function(w,b){var S=X.getParamDescription().getName();X.getContext().delaySuppliedValueRemoteGetter(S,za,function(C){var T=
[];if(C){C=C.entryList;for(var u=0;u<C.length;u++){var H=new ValueTextModel,r=C[u];H.setText(r.text);H.setValue(r.value);T.push(H)}}X.setSuppliedValue(T);X.setSelectedValue(null);X.fireSelectedValueChanged();w&&w(b)})};var D=function(w){for(var b=w,S=0,C=P.length;S<C;S++)if(P[S].getValue()==w.getValue()){b=P[S];break}ta.setSelected(b)}};p.FilterForwardSelectorMobile=function(la,ea){K.call(this,la,ea);var X=this,na=this.protectedMethod,ta,za,P,t,D,w,b=[],S,C=!0,T,u=X.getParamDescription().getMaxRestrictNumber();
this.createUI=function(l){var h=com.kingdee.bos.qing.CodeLoader;h.setCallback(function(){ta||H();na.createUiWithLabel(l,ta)});h.loadCss("lightapp/common/qing-lapp.css")};this.setSuppliedValue=function(l){};this.setSelectedValue=function(l){ta||H();l&&0==l.length?w=null:(w=l,za.setText(B(w)));X.fireSelectedValueChanged()};this.getSelectedValue=function(){return w?w:[]};this.setSuppliedValueDescription=function(l){T=l};this.resetSuppliedValue=function(l,h){C=!0;w=null;za&&za.setText(B(w));X.fireSelectedValueChanged();
l&&l(h)};var H=function(){ta=$("<div>");var l=$("<span>");l.appendTo(ta);za=new R;za.setReadonly(!la.isEditable());za.addAcceptableListener(x);var h=za.getJqUi();h.css({display:"inline-block",height:"24px","background-color":"unset",width:"189px"});h.find(".sa-ctrl-textfield-input").css({width:"173px","text-overflow":"ellipsis"});h.appendTo(l);h=$("<span>");h.css({position:"absolute",width:"16px",height:"16px","margin-left":"-16px","margin-top":"3px"});pa.background(h,"search");h.on("click",N);h.appendTo(l);
l=$("<span>");l.css({position:"absolute",width:"16px",height:"16px","margin-left":"25px","margin-top":"3px"});pa.background(l,"delete");l.on("click",function(){za.setText("")});l.appendTo(ta)},r=function(){P=$("<div>");P.addClass("extreport-card-mobile-filter-modallayer");P.css("bottom",-$(document).scrollTop());P.appendTo($("body"));t=$("<div>");t.addClass("extreport-card-mobile-sliderselector");t.css("max-height","480px");t.appendTo(P);var l=$("<div>");l.addClass("extreport-card-mobile-sliderselector-head");
l.appendTo(t);var h=$("<div>");h.addClass("extreport-card-mobile-sliderselector-head-ok");h.text(W.get("OK","\u786e\u5b9a"));h.on("click",I);h.appendTo(l);h=$("<div>");h.addClass("extreport-card-mobile-sliderselector-head-cancel");h.text(W.get("cancel","\u53d6\u6d88"));h.on("click",z);h.appendTo(l);D||(D=$("<div>"),D.addClass("extreport-card-mobile-sliderselector-content"),D.css({height:"300px",margin:"10px 15px",width:"unset"}),D.appendTo(t));X.getParamDescription().isTree()?S=X.getParamDescription().isMultiSelectable()?
new va(X.getParamDescription().getTreeExpandLevel()):new ia(X.getParamDescription().getTreeExpandLevel()):(l=b[0]?b[0].getEntry():null,S=X.getParamDescription().isMultiSelectable()?l&&0<Object.keys(l).length?new ja:new ca:l&&0<Object.keys(l).length?new aa:new A);S.setSelectableItems(b);S.setSelected(w);S.getJqUi().appendTo(D);(S instanceof com.kingdee.bos.extreport.runtime.filter.MultiValueDiscreteTableFilterPanel||S instanceof com.kingdee.bos.extreport.runtime.filter.SingleValueDiscreteTableFilterPanel)&&
S.updateTable()},I=function(){var l=S.getSelected();if(u&&!isNaN(u)&&l.length>u)return l=W.get("exceedMaxSelect","\u9009\u62e9\u6570\u91cf\u8d85\u8fc7\u9650\u5236\uff0c\u6700\u591a\u53ef\u9009#1\u4e2a\u53c2\u6570\u3002").replace("#1",u),a(l),!1;w=l;za.setText(B(w));X.fireSelectedValueChanged();z()},x=function(){var l;if((l=$.trim(za.getText()))&&""!=l){for(var h=[],q=0,g=b.length;q<g;q++)if(b[q].getText()==l){h.push(b[q]);break}0==h.length&&(q=new ValueTextTreeNodeModel,q.setText(l),q.setValue(l),
h.push(q));l=h}else l=null;w=l;za.setText(B(w))},B=function(l){var h="";if(!l)return h;for(var q=l.length,g=3>q?q:3,e=0;e<g;e++)h+=l[e].getText(),e<g-1&&(h+="; ");3<q&&(h=W.get("selectNumInTotal","#1\u7b49#2\u9879").replace("#1",h),h=h.replace("#2",q));return h},z=function(){P.remove();t.remove();D=null},M=function(l,h,q){for(var g=0;g<l.length;g++){var e=l[g];e.setLevel(h);q.push(e);(e=e.getChildren())&&M(e,h+1,q)}},N=function(l){C?(l=X.getParamDescription().getName(),X.getContext().delaySuppliedValueRemoteGetter(l,
T,function(h){if(h){var q=h.entryList;b=[];for(var g,e,f=0;f<q.length;f++)g=q[f],e=new ValueTextTreeNodeModel,e.setText(g.text),e.setValue(g.value),e.setId(g.id),e.setParentId(g.parentId),e.setEntry(g.rows),e.setEntryHeadMap(h.head),b.push(e);if(X.getParamDescription().isTree()){h=b;if(!(h instanceof Array))throw Error("Illegal argument. Argument should be instance of Array.");if(h&&0!=h.length){if(!(h[0]instanceof ValueTextTreeNodeModel))throw Error("Illegal argument. Elements in Array should be instance of ValueTextTreeNodeModel.");
q=new ValueTextTreeModel;q.buildTree(h);h=q.getRootArray();q=[];M(h,0,q);b=q}else b=void 0}}r()})):r()},a=function(l){var h=new com.kingdee.bos.qing.lapp.component.MobileDialog;h.setHeight(150);h.setTitle(W.get("remind","\u6d88\u606f\u63d0\u793a"));h.setContentCreator(function(){var q=$("<div>");q.addClass("extreport-card-mobile-msg-text");q.text(l);return q});h.showDialog()}};p.DateTimeSliderSelector=n;p.FilterNumberInputMobile=function(la,ea){K.call(this,la,ea);var X=this,na,ta=this.protectedMethod;
this.createUI=function(P){na||za();var t=na.getJqUi(),D=t.find(".sa-ctrl-spinner-text");D&&D.css("background-color","#fafafa");ta.createUiWithLabel(P,t);t.css("height","30px")};var za=function(){na=new v;la.isReadOnly()&&na.setEnabled(!1);na.addValueChangedListener(X.fireSelectedValueChanged)};this.setSuppliedValue=function(P){na||za();var t=P.getMin(),D=P.getMax();P=P.getStep();na.setConstraint(t?Number(t):-Infinity,D?Number(D):Infinity,P?Number(P):1)};this.setDefaultValue=function(P){};this.setSelectedValue=
function(P){P&&0<P.length&&(P=P[0],na||za(),na.setValue(Number(P.getValue())))};this.getSelectedValue=function(){na||za();var P=new ValueTextModel;P.setValue(na.getValue()+"");P.setText(P.getValue());return[P]}};var v,L,R,ba,W,ma,K,A,ca,ia,va,ja,aa,pa;(function(){var la=com.kingdee.bos.qing.ui.component;R=la.TextField;v=la.Spinner;L=la.Icons;R=la.TextField;la=com.kingdee.bos.qing.common;ba=la.DateFormater;la=com.kingdee.bos.qing.framework.common;W=la.MultilanguageManager.createPackageAccessor(p);
ma=p.ComboBox;la=com.kingdee.bos.extreport.runtime.filter;K=la.AbstractFilterCtrl;A=la.SingleValueDiscreteFilterPane;ca=la.MultiValueDiscreteFilterPane;ia=la.SingleValueTreeFilterPane;va=la.MultiValueTreeFilterPane;ja=la.MultiValueDiscreteTableFilterPanel;aa=la.SingleValueDiscreteTableFilterPanel;la=com.kingdee.bos.extreport.runtime;pa=la.MyIcons})();n.TIME="time";n.DATE="date";n.DATE_TIME="datetime";n.DATE_YM="date_ym";n.DATE_YQ="date_yq";n.DATE_Y="date_y"})();function _Report(){var n,p,v,L,R,ba;this.getSheet=function(W){return R[W]};this.getSheetByName=function(W){for(var ma=0;ma<R.length;ma++){var K=R[ma];if(K.getName()==W)return K}return null};this.setSheetIndex=function(W){p=W};this.getSheetIndex=function(){return p};this.setCurrentSheet=function(W){n=W};this.getCurrentSheet=function(){return n};this.setPageId=function(W){v=W};this.getPageId=function(){return v};this.setSheetNames=function(W){L=W};this.getSheetNames=function(){return L};this.setSheetColors=
function(W){ba=W};this.getSheetColors=function(){return ba};this.fillIn=function(W){R=[];this.setPageId(W.pageId);this.setSheetNames(W.sheetNameList);this.setSheetColors(W.sheetColorList);this.setSheetIndex(0);var ma=new Sheet;ma.setName(W.currentSheet.name);R.push(ma);ma.fillIn(W.currentSheet);for(var K=0;K<this.getSheetNames().length;K++){var A=this.getSheetNames();if(A[K]!=W.currentSheet.name){var ca=new Sheet;ca.setName(A[K]);R.push(ca)}}this.setCurrentSheet(ma)}}
function Sheet(){var n,p,v,L,R,ba,W,ma,K=!1;this.setTableRowCount=function(A){n=A};this.getTableRowCount=function(){return n};this.setTableHiddenRowCount=function(A){ba=A};this.getHiddenRowCount=function(){return ba};this.setLoadedRowNum=function(A){p=A};this.getLoadedRowNum=function(){return p};this.setTable=function(A){L=A};this.getTable=function(){return L};this.setName=function(A){v=A};this.getName=function(){return v};this.setTree=function(A){R=A};this.isTree=function(){return R};this.getBorderStyle=
function(A){return W&&W[A]?KReportUtil.getCssBorder(W[A]):null};this.getStyle=function(A){return ma&&ma[A]?KReportUtil.getCssStyle(ma[A]):null};this.setLoadingFragment=function(A){K=A};this.getLoadingFragment=function(){return K};this.fillIn=function(A){this.setLoadedRowNum(A.tableInfo.currentLoadedRowNum);this.setTableRowCount(A.tableRowCount);this.setTableHiddenRowCount(A.tableHiddenRowCount);this.setName(A.name);this.setTree(A.isTree);W=A.tableInfo.borderStyleMap;ma=A.tableInfo.styleMap;var ca=
new KTable;ca.setUICustomStyleMap({"background-color":"transparent"});ca.setMergeBlockTextVisibleAlways(!1);"object"==typeof A.tableStyle&&ca.setStyle(KReportUtil.getCssStyle(A.tableStyle));"object"==typeof A.tableBorder&&ca.setBorder(KReportUtil.getCssBorder(A.tableBorder));"object"==typeof A.header&&(ca.setFrozenRows(A.header.row),ca.setFrozenColumns(A.header.col));ca.setAutoAdjustRowHeight(A.isResized);ca.setDraggableAdjusting(!0,-1,-1);this.setTable(ca)};this.fillInStyle=function(A){if(A.borderStyleMap){var ca=
A.borderStyleMap;for(var ia in ca)!W[ia]&&(W[ia]=ca[ia])}if(A.styleMap)for(ia in A=A.styleMap,A)!ma[ia]&&(ma[ia]=A[ia])};this.isNeedLoadTable=function(){return this.getLoadedRowNum()+1!=this.getTableRowCount()}};(function(){function n(){var v,L,R,ba=!1;this.setShareStrategy=function(W){R=W};this.getShareStrategy=function(){return R};this.setCaption=function(W){v=W};this.getCaption=function(){return v};this.setValue=function(W){L=W};this.getValue=function(){return L};this.setCurrent=function(W){ba=W};this.isCurrent=function(){return ba};this.fromJsonObject=function(W){v=W.caption;L=W.value;R=W.shareStrategy}}"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.model&&(com.kingdee.bos.extreport.runtime.model={});var p=com.kingdee.bos.extreport.runtime.model;p.FilterInfo=function(){var v,L,R,ba=[],W=[];this.setMapAssociate=function(ma){v=ma};this.getMapAssociate=function(){return v};this.setHasDefaultEnter=function(ma){L=
ma};this.getHasDefaultEnter=function(){return L};this.setDefaultSchemaName=function(ma){R=ma};this.getDefaultSchemaName=function(){return R};this.setSchemas=function(ma){ba=ma};this.getSchemas=function(){return ba};this.setParameters=function(ma){W=ma};this.getParameters=function(){return W};this.fromJsonObject=function(ma){v=ma.associate?ma.associate:null;L=ma.hasDefaultEnter;R=ma.defaultEnter;var K,A=ma.schemeList;if(A&&0<A.length)for(K=0;K<A.length;K++){var ca=new n;ca.fromJsonObject(A[K]);ba.push(ca)}W=
ma.paramList}};p.SchemaInfo=n;p.ParameterInfo=function(){var v,L,R,ba,W,ma,K;this.setName=function(A){v=A};this.getName=function(){return v};this.setText=function(A){L=A};this.getText=function(){return L};this.setRequired=function(A){R=A};this.isRequired=function(){return R};this.setState=function(A){ba=A};this.isState=function(){return ba};this.setDataType=function(A){W=A};this.isDataType=function(){return W};this.setDefaultValue=function(A){ma=A};this.isDefaultValue=function(){return ma};this.setIsSuppliedValueOrgRelated=
function(A){K=A};this.isSuppliedValueOrgRelated=function(){return K};this.fromJsonObject=function(A){v=A.name;L=A.text;R=A.required;ba=A.state;W=A.dataType;K=A.isSuppliedValueOrgRelated}};p.ExtreportWidgetInfo=function(){var v,L,R,ba,W,ma,K,A,ca;this.getCardName=function(){return v};this.isDesignTime=function(){return L};this.getExhibitionScene=function(){return R};this.getIframeId=function(){return ba};this.isRequireDecorateCard=function(){return W};this.isRequireOpacity=function(){return ma};this.isInWidgetPanel=
function(){return K};this.getAffectedParams=function(){return A};this.getStyleMap=function(){return ca};this.fromJsonObject=function(ia){v=ia.cardName;L=ia.isDesignTime;R=ia.exhibitionScene;ba=ia.iFrameId;W=ia.isRequireDecorateCard;ma=ia.isRequireOpacity;K=ia.isInWidgetPanel;A=ia.affectedParams;ca=ia.styleMap}};p.RptRunTimeHelpInfoTip=function(v,L){this.getLabel=function(){return v};this.getValue=function(){return L}}})();(function(){function n(){var aa,pa=this,la,ea;this.switchSchema=function(X){throw Error("Override me!");};this.updateListUi=function(){throw Error("Override me!");};this.paint=function(X){throw Error("Override me!");};this.getCurrentSchema=function(){return la};this.setGlobal=function(X){};this.setModels=function(X){ea=X};this.getJqUi=function(){if(!aa){if(!ea||0===ea.length)throw Error("no schema!");aa=$("<div>");la=ea[0]}return aa};this.save=function(X){for(var na=0;na<ea.length;na++)ea[na].getCaption()===
X.getCaption()&&(la=ea[na]=X);pa.updateListUi()};this.saveAs=function(X){ea.push(X);la=X;pa.updateListUi()};this.remove=function(){var X;for(X=0;X<ea.length&&la.getCaption()!==ea[X].getCaption();X++);ea.splice(X,1);la=ea[0];pa.switchSchema(la);pa.updateListUi()};this.protectedMethod={getSchemas:function(){return ea},updateCurrent:function(X){la=X}}}function p(){W.call(this);var aa=this,pa=this.protectedMethod,la,ea,X,na,ta,za;this.getJqUi=function(){la||(la=$("<div>"),aa.setSize(322,165),pa.setTitle(ia.get("saveSchema",
"\u4fdd\u5b58\u8fc7\u6ee4\u65b9\u6848")),pa.setContentPaneCreator(P),pa.setClosingChecker(D,!0),pa.setClosingAction(t));return la};this.setFunClosingCallBack=function(w){X=w};this.setGlobal=function(w){};var P=function(){var w=$("<div>");na=new ma;na.setRequired(!0);na.setText(ia.get("schemaName","\u65b9\u6848\u540d\u79f0"));var b=na.getJqUi();b.css({"float":"left","margin-left":"10px",width:"26%"});w.append(b);ta=new K;b=ta.getJqUi();b.css({height:"20px",left:"0px",width:"66%"});w.append(b);ea=$("<div>");
ea.addClass("runtime-schema-save-as-message-tip");ea.appendTo(w);return w};this.showMessageTip=function(w){ea.text(w);za&&clearTimeout(za);za=setTimeout(function(){ea.text("")},5E3)};var t=function(){},D=function(w){var b=ta.getText().trim();if(!b)return aa.showMessageTip(ia.get("nullSchemaName","\u8fc7\u6ee4\u65b9\u6848\u540d\u79f0\u4e0d\u80fd\u4e3a\u7a7a")),w(!1),!1;b=b.trim();b=b.replace(/(^\s*)|(\s*$)/g,"");b=b.replace(/</g,"&lt;");b=b.replace(/>/g,"&gt;");b=b.replace(/"/g,"&quot;");b=b.replace(/'/g,
"&#039;");if(20<b.length)return aa.showMessageTip(ia.get("limitSchemaNameLength","\u65b9\u6848\u540d\u79f0\u6700\u957f\u4e3a20\u4e2a\u5b57\u7b26")),w(!1),!1;if(!b)return aa.showMessageTip(ia.get("nullSchemaName","\u8fc7\u6ee4\u65b9\u6848\u540d\u79f0\u4e0d\u80fd\u4e3a\u7a7a")),w(!1),!1;b=X(b);w(b)}}function v(){var aa=this,pa,la,ea,X,na,ta,za;this.getJqUi=function(){if(!pa){pa=$("<div>");pa.addClass("runtime-schema-manage-filter");var P={},t=na.getSchemas(),D=na.getParameters(),w=na.getMapAssociate();
P.oGlobal=la;ea=new ReportFilter(za?za:X,P,null,ta);ea.forRpcReduced(null,D,w);ea.setSchemeList(t);ea.isDispalay();P=pa;t=$("<div>");ea.render(t,aa);t.appendTo(P)}return pa};this.setGlobal=function(P){la=P};this.setModels=function(P,t,D){X=P;na=t;za=D};this.getParameByArr=function(P,t,D){ea.setSchemeParams(P,t,D)};this.getParameValues=function(){return ea.getDataSetParamValues()};this.updateFilterByValue=function(P,t){ea.updateFilterByScheme(P,t)};this.isDisplay=function(){return ea.isDispalay()};
this.getFilter=function(){return ea};this.isMobileScene=function(P){ta=P}}"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.common&&(com.kingdee.bos.extreport.runtime.common={});"undefined"==
typeof com.kingdee.bos.extreport.runtime.common.ui&&(com.kingdee.bos.extreport.runtime.common.ui={});var L=com.kingdee.bos.extreport.runtime.common.ui;L.FilterPanel=v;L.SchemaManagePanel=function(){var aa=this,pa,la,ea,X,na,ta,za,P,t,D,w,b,S,C,T=!1,u;this.getJqUi=function(){if(!pa){pa=$("<div>");pa.addClass("runtime-filter-can-hide-panel");var a={save:x,saveAs:B,remove:M};ea.getJqUi();ea.setOpFuns(a);ea.setSwitchCallBack(H);ea.paint(pa);a=pa;X=new v;X.isMobileScene(T);X.setGlobal(la);X.setModels(D,
b,u);X.getJqUi().appendTo(a);a=pa;var l=$("<div>");l.addClass("runtime-schema-manage-footer");var h=$("<div>");h.addClass("runtime-schema-manage-footer-right");h.appendTo(l);ta=new A;var q=ta.getJqUi();q.addClass("runtime-schema-manage-footer-right-check");q.appendTo(h);var g=R.decodeParamFromUrl(location.search,"isPreset");bIsPreset=null!=g?"false"===g?!1:!0:!1;g=$("<div>");g.text(ia.get("directEntry","\u4e0b\u6b21\u76f4\u63a5\u4ee5\u8be5\u65b9\u6848\u8fdb\u5165"));g.css({display:"inline-block"});
g.appendTo(h);if(la.hasSchemeEditPerm&&!la.hasSchemeEditPerm()||bIsPreset)q.hide(),g.hide();q=new ba;g=ia.get("query","\u67e5\u8be2");q.setTooltips(g);q.setText(g);q.addActionListener(za);q=q.getJqUi();q.addClass("runtime-schema-manage-footer-right-btn");q.css({"margin-left":"15px","margin-right":"10px"});q.appendTo(h);l.appendTo(a)}return pa};this.setGlobal=function(a){ea.setGlobal(a);la=a};this.setModels=function(a,l,h,q){D=a;w=h;b=l;C=b.getSchemas();ea.setModels(b.getSchemas());S=C[0];u=q};this.getCurrentSchemaInfo=
function(){return ea.getCurrentSchema()};this.setSchemaListPanel=function(a){ea=a};this.setFunExecute=function(a){za=a};this.setFunSwitchSchemaCallBack=function(a){P=a};this.spreadOrPackUp=function(a,l){a?pa.show():pa.hide();l&&l()};this.executeWithSchema=function(a){var l=b.getMapAssociate();l&&0<Object.keys(l).length?aa.switchSchemaByName(a.getDefaultSchemaName(),function(){za()}):(aa.switchSchemaByName(a.getDefaultSchemaName()),za())};this.switchSchemaByName=function(a,l){if(C&&0<C.length)for(var h=
0;h<C.length;h++)if(a===C[h].getCaption()){var q=C[h];break}ea.switchSchema(q,l)};this.getParameValues=function(){return X.getParameValues()};this.isDisplay=function(){return X.isDisplay()};this.getFilter=function(){return X.getFilter()};this.getJqFilterPanel=function(){return X.getJqUi()};this.getDefaultCheckBoxStatus=function(){return ta.isChecked()};this.setFunMobileMsgListener=function(a){t=a};this.setMobileMode=function(){T=!0};this.getCurrentSelScheme=function(){return ea.getCurrentSchema()};
var H=function(a,l){X.updateFilterByValue(a.getValue(),l);ta&&ta.setChecked(b.getHasDefaultEnter()&&a.getCaption()===b.getDefaultSchemaName());P(a.getCaption())},r=function(a,l){var h=[],q=[],g=[],e=ta.isChecked(),f=b.getDefaultSchemaName()===a;X.getParameByArr(g,q,h);h={nameParams:h,valParams:g,capParams:q};q={};q.sId=D;q.pageId=D;q.schemaBiztagId=w;q.schemeContent=JSON.stringify(h);q.isDefaultChange=e;q.schemeName=a;q.flag=1;q.cacheId=u;la.createFacade(function(k){k.isInvalid&&N(ia.get("invalidInput",
"\u8f93\u5165\u5b57\u7b26\u542b\u6709\u975e\u6cd5\u5b57\u7b26\u3002"),"prompt");N(ia.get("opSuccess","#1\u6210\u529f\u3002").replace("#1",ia.get("save","\u4fdd\u5b58")),"success");var c=new va;c.fromJsonObject(k);l?ea.saveAs(c):ea.save(c);!f&&e&&(b.setHasDefaultEnter(!0),b.setDefaultSchemaName(c.getCaption()));f&&!e&&(b.setHasDefaultEnter(!1),b.setDefaultSchemaName(c.getCaption()))},function(k,c){return 8099001===k?(la.getMessageCurtain().showPrompt(c),!0):8099002===k||8099007===k||8077016===k||8099008===
k||8099010<=k&&8099014>=k?(I(c),!0):!1}).saveFilterScheme(q)},I=function(a){var l=new ca;l.setOptionType(ca.OPTION_OK);l.setButtonText(ca.OPTION_OK,"\u5237\u65b0");l.setClosingChecker(function(h){h===ca.OPTION_OK&&location.replace(location.href);return!0});l.setMessage(a);l.showDialog()},x=function(a){if(a===S.getCaption())N(ia.get("cannotOpDefaultSchema","\u4e0d\u80fd#1\u9ed8\u8ba4\u65b9\u6848\u3002").replace("#1",ia.get("save","\u4fdd\u5b58")),"prompt");else{var l=b.getSchemas();if(l&&0<l.length)for(var h in l){var q=
l[h].getCaption();if(a==q&&0==l[h].getShareStrategy()){N(ia.get("cannotSaveSystemSchema","\u4e0d\u80fd\u4fdd\u5b58\u7cfb\u7edf\u9ed8\u8ba4\u65b9\u6848\u3002"),"prompt");return}}r(a,!1)}},B=function(){na=new p;na.setGlobal(la);na.setFunClosingCallBack(z);na.getJqUi();na.showDialog()},z=function(a){if(C&&0<C.length)for(var l=C.length-1;0<=l;l--){var h=C[l];if(h&&a===h.getCaption())return na.showMessageTip(ia.get("dupSchemaName","\u8fc7\u6ee4\u65b9\u6848\u540d\u79f0\u5df2\u5b58\u5728")),!1}r(a,!0);return!0},
M=function(){var a=ea.getCurrentSchema().getCaption();if(a===S.getCaption())N(ia.get("cannotOpDefaultSchema","\u4e0d\u80fd#1\u9ed8\u8ba4\u65b9\u6848\u3002").replace("#1",ia.get("remove","\u5220\u9664")),"prompt");else{var l=b.getSchemas();if(l&&0<l.length)for(var h in l){var q=l[h].getCaption();if(a==q&&0==l[h].getShareStrategy()){N(ia.get("cannotDelSystemSchema","\u4e0d\u80fd\u5220\u9664\u7cfb\u7edf\u9ed8\u8ba4\u65b9\u6848\u3002"),"prompt");return}}l=ca.createFeedbackDialog();l.setOptionType(ca.OPTION_OK_CANCEL);
l.setMsgImageType(ca.MSG_DELETE);a=ia.get("determineToDeleteSchema","\u60a8\u786e\u8ba4\u8981\u5220\u9664\u8fc7\u6ee4\u65b9\u6848 [#1] \u5417\uff1f").replace("#1",a);var g=function(e){e&&(e={},e.dataSetId=D,e.pageId=D,e.schemaBiztagId=w,e.schemaName=ea.getCurrentSchema().getCaption(),e.flag="1",la.createFacade(function(f){!0===f&&(N(ia.get("opSuccess","#1\u6210\u529f\u3002").replace("#1",ia.get("remove","\u5220\u9664")),"success"),ea.remove())},function(f,k){return 8099001===f?(la.getMessageCurtain().showPrompt(k),
!0):8099002===f||8099007===f||8077016===f||8099008===f||8099010<=f&&8099014>=f?(I(k),!0):!1}).delFilterScheme(e))};t?t("CONFIRM",a,g):(l.setMessage(a),l.setClosingChecker(function(e){g(e===ca.RETURN_OK);return!0}),l.showDialog())}},N=function(a,l,h){if(t)t("MSG",a,null);else{var q=la.getMessageCurtain();switch(l){case "success":q.showSuccess(a,h);break;case "prompt":q.showPrompt(a,h);break;case "error":q.showError(a,h);break;default:throw Error("no support this type");}}}};L.SaveAsSchemaDialog=p;
L.RuntimeSchemaListPanel=function(){n.call(this);var aa,pa=this,la=pa.protectedMethod,ea,X,na;this.setSwitchCallBack=function(t){na=t};this.setOpFuns=function(t){X=t};this.paint=function(t){aa=$("<div>");aa.addClass("runtime-schema-manage-menu");ea=$("<div>");ea.addClass("runtime-schema-manage-menu-list");ea.css("float","left");var D=$("<div>");D.text(ia.get("commonUsedSchema","\u5e38\u7528\u65b9\u6848\uff1a"));D.css("display","inline-block");D.css("float","left");D.appendTo(aa);if((D=la.getSchemas())&&
0<D.length)for(var w=0;w<D.length;w++)ta(D[w],w);ea.appendTo(aa);D=$("<div>");D.css("float","right");w=R.decodeParamFromUrl(location.search,"isPreset");bIsPreset=null!=w?"false"===w?!1:!0:!1;0==bIsPreset&&(P(ia.get("remove","\u5220\u9664"),D,X.remove),P(ia.get("saveAs","\u53e6\u5b58\u4e3a"),D,X.saveAs),P(ia.get("save","\u4fdd\u5b58"),D,function(){X.save(pa.getCurrentSchema().getCaption())}));D.appendTo(aa);aa.appendTo(t)};this.switchSchema=function(t,D){var w=ea.find(".runtime-schema-manage-menu-list-item-active"),
b=ea.find(".runtime-schema-manage-menu-list-item"),S=t.getCaption();la.updateCurrent(t);w.removeClass("runtime-schema-manage-menu-list-item-active");for(w=0;w<b.length;w++){var C=$(b[w]);if(S===C.text()){C.addClass("runtime-schema-manage-menu-list-item-active");break}}na&&na(t,D)};this.updateListUi=function(){ea&&ea.remove();ea=$("<div>");ea.addClass("runtime-schema-manage-menu-list");ea.css("float","left");var t=la.getSchemas();if(t&&0<t.length)for(var D=0;D<t.length;D++)ta(t[D]);ea.appendTo(aa)};
var ta=function(t){var D=$("<div>");D.text(t.getCaption());D.addClass("runtime-schema-manage-menu-list-item");D.css({"max-width":"230px","text-overflow":"ellipsis",overflow:"hidden","white-space":"nowrap","margin-left":"35px","margin-bottom":"20px"});D.attr("title",t.getCaption());t.getCaption()===pa.getCurrentSchema().getCaption()&&D.addClass("runtime-schema-manage-menu-list-item-active");D.data("oSchemaInfo",t);D.on("click",za);D.appendTo(ea)},za=function(t){t=$(t.target).data("oSchemaInfo");pa.switchSchema(t)},
P=function(t,D,w){var b=$("<div>");b.addClass("runtime-schema-manage-menu-btn-op");b.text(t);b.on("click",w);b.appendTo(D)}};L.AbstractSchemaListPanel=n;L.RptHelpIconTipsUI=function(){var aa,pa,la,ea=function(){pa||(pa=new ja,pa.setIconType(ja.ICON_TYPE_INFO),aa=pa.getJqUi(),aa.addClass("sa-rpt-helpinfo"),aa.css({position:"absolute",width:"16px",height:"16px",top:"15px",right:"12px","z-index":"999"}))};this.setRight=function(X){aa||ea();aa.css("right",X+"px")};this.getJqUi=function(){aa||ea();return aa};
this.setTips=function(X){la=X;a:{if(la&&0<la.length){ea();var na="";for(X=0;X<la.length;X++){var ta=la[X],za="";ta&&ta.getLabel()&&ta.getValue()?za="<b>"+ta.getLabel()+"</b>"+ta.getValue()+"</br>":ta&&ta.getLabel()&&(za="<b>"+ta.getLabel()+"</b></br>");na+=za}pa.setTipsHtml(na);if(na){aa.show();break a}}aa&&aa.hide()}}};var R,ba,W,ma,K,A,ca,ia,va,ja;(function(){var aa=com.kingdee.bos.qing.common;R=aa.Util;aa=com.kingdee.bos.qing.ui.component;ba=aa.Button;W=aa.AbstractModalDialog;ma=aa.Label;K=aa.TextField;
A=aa.CheckBox;ca=aa.MessageDialog;ja=aa.HelpIcon;aa=com.kingdee.bos.qing.framework.common;ia=aa.MultilanguageManager.createPackageAccessor(L);aa=com.kingdee.bos.extreport.runtime.model;va=aa.SchemaInfo})()})();(function(){function n(b,S,C){var T=S?S:w,u=ia.RUNTIME==b?285:245,H,r,I,x=new la,B,z,M,N,a,l,h;var q=D.get("publicCategory","\u516c\u5171\u76ee\u5f55");var g=D.get("personalCategory","\u4e2a\u4eba\u76ee\u5f55");this.setOuterMessageCurtain=function(F){h=F};this.getWidth=function(){return 392};this.getHeight=function(){return u};this.getJqUi=function(){if(!H){V();var F=function(){if(e())C.snapGroupTypeName="B"==C.snapGroupTypeId?g:q,I.setText(C.snapName),B.doAutoSelected(C.snapGroupTypeName,C.snapGroupTypeId),
M.doAutoSelected(C.snapGroupName,C.snapGroupId),B.setEnable(!1);else if(void 0!=C.snapGroupTypeId&&void 0!=C.snapGroupId&&void 0!=C.snapGroupName&&void 0!=C.isHyperLink)C.snapGroupTypeName="B"==C.snapGroupTypeId?g:q,a.setOn(C.isHyperLink),B.doAutoSelected(C.snapGroupTypeName,C.snapGroupTypeId),M.doAutoSelected(C.snapGroupName,C.snapGroupId),B.setEnable(!0);else{if(z&&1<=z.length){var G=z[0];B.doAutoSelected(G.getName(),G.getId());1==z.length&&B.setEnable(!1)}(G=M.getArrFolderNode())&&1<=G.length&&
(G=G[0],M.doAutoSelected(G.getName(),G.getId()))}};d(B,function(){m(M,F)})}return H};var e=function(){return C.snapName&&C.snapGroupTypeName&&C.snapGroupTypeId&&C.snapGroupId&&C.snapGroupName},f=function(F){F=new R(F,null);F.setPlaceholder(D.get("selectPathType","\u8bf7\u9009\u62e9\u4fdd\u5b58\u76ee\u5f55\u7c7b\u578b"));F.setMaxHeight(118);F.getJqUi().css("background","white");return F},k=function(F){F=new R(null,F);F.setPlaceholder(D.get("selectPath","\u8bf7\u9009\u62e9\u4fdd\u5b58\u76ee\u5f55"));
F.setMaxHeight(118);F.getJqUi().css("background","white");return F},c=function(F){var G=[],O=[];if(!F)return O;for(O=0;O<F.length;O++){var U=new v;U.fromJsonObject(F[O]);G.push(U)}return G},d=function(F,G){if(null==z){var O=T.createFacade(function(U){z=c(U);F.setArrFolderNode(z);G&&G()},function(U,qa){8099101==U?T.getMessageCurtain().showPrompt(D.get("querySnapCenterPermExp","\u67e5\u8be2\u5feb\u7167\u4e2d\u5fc3\u6743\u9650\u5f02\u5e38\u3002"),5E3):8099102==U?T.getMessageCurtain().showPrompt(D.get("noQuerySnapCenterPermExp",
"\u5f53\u524d\u7528\u6237\u6ca1\u6709\u5feb\u7167\u4e2d\u5fc3\u6743\u9650\u3002"),5E3):_super.getMessageCurtain().showPrompt(qa,5E3);return!0});ia.SNAP_SCHEDULE==b?O.setShowBlocking(!1):(O.setShowBlocking(!0),O.setBlockingJqUi(H));O.loadSnapGroupTypes(C.snapId)}else F.setArrFolderNode(z)},m=function(F,G){if(null==N){var O=T.createFacade(function(U){N=c(U);F.setArrFolderNode(N);G&&G()},function(U,qa){8099101==iErrorCode?T.getMessageCurtain().showPrompt(D.get("querySnapCenterPermExp","\u67e5\u8be2\u5feb\u7167\u4e2d\u5fc3\u6743\u9650\u5f02\u5e38\u3002"),
5E3):8099102==iErrorCode?T.getMessageCurtain().showPrompt(D.get("noQuerySnapCenterPermExp","\u5f53\u524d\u7528\u6237\u6ca1\u6709\u5feb\u7167\u4e2d\u5fc3\u6743\u9650\u3002"),5E3):_super.getMessageCurtain().showPrompt(qa,5E3);return!0});ia.SNAP_SCHEDULE==b?O.setShowBlocking(!1):(O.setShowBlocking(!0),O.setBlockingJqUi(H));O.loadSnapGroupInfo(C.snapId)}else F.setArrFolderNode(N)},V=function(){var F=0;H=$("<div>");r=$("<div>");r.addClass("publish-manage-left");if(ia.RUNTIME==b||ia.SNAP_CENTER==b){var G=
new X,O=G.getJqUi();G.setRequired(!0);G.setText(D.get("snapName","\u5feb\u7167\u540d\u79f0"));O.attr("title",G.getText());I=new na;var U=$("<div>");I.addEditedListener(function(ka){clearTimeout(l);l=setTimeout(function(){var ha=I.getText();if(""!=ha){var Z=T.createFacade(function(fa){U.empty();fa=fa[I.getText()];if(null!=fa&&0<fa.length){x.setCustomItemPainter(function(Fa,Ha){Fa.on("mousedown",function(Aa){I.setText(Ha);U.remove();Aa.stopPropagation()});Fa.text(Ha);Fa.attr("title",Ha)});x.setItemModels(fa);
x.setSelecteds([fa[0]]);fa=x.getJqUi();var xa=qa.width(),ua=qa.css("left"),Da=qa.position().top+qa.height();ja.layoutCtrl(U,ua,Da,xa,122);U.css("z-index","9999");fa.css({width:xa+"px",height:"122px"});fa.find(".sa-ctrl-list-owner").css("height","100px");xa=$("<div>");xa.css({position:"absolute","z-index":"9999",color:"#c5c5c5"});xa.text(D.get("HistorySnapName","\u5386\u53f2\u5feb\u7167\u540d\u79f0"));xa.css({right:"13px",top:"100px"});fa.appendTo(U);xa.appendTo(U);U.appendTo(r)}else U.remove()});
Z.setShowBlocking(!1);Z.getSnapNameByInputText(ha)}else U.remove()},1E3)});I.addBlurListener(function(){U.remove()});var qa=I.getJqUi();ja.layoutCtrl(O,15,F,115,23);ja.layoutCtrl(qa,130,F,215,23);O.appendTo(r);qa.appendTo(r);F+=45}else F+=15;O=new X;G=O.getJqUi();e()||O.setRequired(!0);O.setText(D.get("snapSavePathType","\u76ee\u5f55\u7c7b\u578b"));G.attr("title",O.getText());B=f(function(ka){if(ka&&ka!=B.getLastTimeSelectedTailPathId()){var ha=[];$.extend(!0,ha,N);if(ha&&0<ha.length)if(ka&&0==ka.indexOf("A")){for(ka=
0;ka<ha.length;ka++)"B"==ha[ka].getType()&&(ha.splice(ka,1),ka--);ha.sort(function(Z,fa){return fa.getOrder()-Z.getOrder()});M.setArrFolderNode(ha);M.clearSelectedTreePath()}else if(ka&&0==ka.indexOf("B")){for(ka=0;ka<ha.length;ka++)"A"==ha[ka].getType()&&(ha.splice(ka,1),ka--);ha.sort(function(Z,fa){return fa.getOrder()-Z.getOrder()});M.setArrFolderNode(ha);M.clearSelectedTreePath()}}});O=B.getJqUi();ja.layoutCtrl(G,15,F,115,23);ja.layoutCtrl(O,130,F,215,23);G.appendTo(r);O.appendTo(r);O=new X;G=
O.getJqUi();O.setRequired(!0);O.setText(D.get("snapSavePath","\u76ee\u5f55"));G.attr("title",O.getText());M=k(function(ka){!B||B.getSelectedTreePath()&&B.getSelectedTreePath().getText()||(ka.clearSelectedTreePath(),h.showPrompt(D.get("selectPathType","\u8bf7\u9009\u62e9\u76ee\u5f55\u7c7b\u578b\u3002")))});O=M.getJqUi();F+=45;ja.layoutCtrl(G,15,F,115,23);ja.layoutCtrl(O,130,F,215,23);G.appendTo(r);O.appendTo(r);if(ia.RUNTIME==b||ia.SNAP_SCHEDULE==b){a=new ea;a.setOn(!1);G=a.getJqUi();O=new X(D.get("saveSnapHyperLink",
"\u4fdd\u5b58\u8054\u67e5/\u8054\u52a8\u8bbe\u7f6e"));var ra=O.getJqUi();ra.attr("title",O.getText());F+=45;ja.layoutCtrl(ra,15,F,115,23);ja.layoutCtrl(G,130,F,31,23);ra.appendTo(r);G.appendTo(r)}r.appendTo(H)};this.getModelFromUI=function(){var F=new A;ia.SNAP_SCHEDULE!=b&&F.setSnapName($.trim(I.getText()));var G=M.getSelectedTreePath();F.setSaveSnapGroupPath(G.getValue());F.setSaveSnapGroupPathText(G.getText());F.setSaveSnapGroupName(M.getSelectedTailPathName());F.setSaveSnapGroupId(M.getSelectedTailPathId());
F.setSaveSnapGroupType(B.getSelectedTailPathId());ia.RUNTIME==b?(F.setPageId(C.pageId),F.setPublishId(C.urlParams.publishId),G=a.isOn(),F.setIsHyperLink(G),F.setOldSnapId(C.snapId),F.setReportId(C.extReportId)):ia.SNAP_CENTER==b?(F.setSnapId(C.snapId),F.setReportId(C.reportId)):ia.SNAP_SCHEDULE==b&&(G=a.isOn(),F.setIsHyperLink(G));return F};this.checkUIInput=function(F){if(ia.SNAP_SCHEDULE==b)if(B.getSelectedTreePath())if(M.getSelectedTreePath())F(!0);else return D.get("selectPath","\u8bf7\u9009\u62e9\u76ee\u5f55\u3002");
else return D.get("selectPathType","\u8bf7\u9009\u62e9\u76ee\u5f55\u7c7b\u578b\u3002");else{var G=$.trim(I.getText());if(null==G||0==$.trim(G).length)return D.get("snapNameNotEmpty","\u8bf7\u8f93\u5165\u5feb\u7167\u540d\u79f0\u3002");if(50<G.length)return D.get("snapNameTooLong","\u957f\u5ea6\u4e0d\u80fd\u8d85\u8fc750\u4e2a\u5b57\u7b26\u3002");if(K.isValidString(G)){if(K.isKeywords(G))return D.get("isKeywords",'\u65e0\u6cd5\u4f7f\u7528"#1"\u4f5c\u4e3a\u540d\u79f0\uff0c\u8bf7\u91cd\u65b0\u8f93\u5165\u3002').replace("#1",
G);if(B.getSelectedTreePath())if(M.getSelectedTreePath())F(!0);else return D.get("selectPathWithPeriod","\u8bf7\u9009\u62e9\u76ee\u5f55\u3002");else return D.get("selectPathType","\u8bf7\u9009\u62e9\u76ee\u5f55\u7c7b\u578b\u3002")}else return D.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 p(){var b,S,C,T,u,H;this.setId=function(r){b=r};this.getId=
function(){return b};this.setName=function(r){S=r};this.getName=function(){return S};this.setType=function(r){C=r};this.getType=function(){return C};this.setParentId=function(r){T=r};this.getParentId=function(){return T};this.setParentNode=function(r){u=r};this.getParentNode=function(){return u};this.setOrder=function(r){H=r};this.getOrder=function(){return H}}function v(){p.call(this);var b=this,S=[],C,T;this.setChildren=function(u){S=u};this.getChildren=function(){return S};this.setIsOpenDir=function(u){C=
u};this.getIsOpenDir=function(){return C};this.getIsShow=function(){return T};this.setIsShow=function(u){T=u};this.toJsonObject=function(){var u={};u.children=S;return u};this.fromJsonObject=function(u){b.setName(u.name);b.setId(u.id);b.setType(u.type);b.setParentId(u.parentId);b.setOrder(u.order);b.setIsOpenDir(!0);if(u=u.children)for(var H=0;H<u.length;H++){var r=u[H];if(!r.children||r.children&&0==r.children.length){var I=new L;I.fromJsonObject(r);I.setParentNode(b);S.push(I)}else I=new v,I.fromJsonObject(r),
I.setParentNode(b),S.push(I)}}}function L(){p.call(this);var b=this;this.fromJsonObject=function(S){b.setName(S.name);b.setId(S.id);b.setParentId(S.parentId);b.setOrder(S.order)}}function R(b,S){ba.call(this);var C=this,T=this.protectedMethod,u,H=[],r,I,x,B;this.getDropDownContent=function(){C.updateArrFolderNode();C.initTreeSelector();return u.getJqUi()};this.updateArrFolderNode=function(e){b&&b(e)};this.checkClearSelectedTreePath=function(e){S&&S(e)};this.clearSelectedTreePath=function(){r=null;
T.updateText(r?r.getText():"")};this.setSelectedTreePath=function(e){r=e;T.updateText(r?r.getText():"")};this.getSelectedTreePath=function(){return r};this.getSelectedTailPathName=function(){return I};this.getSelectedTailPathId=function(){return x};this.getLastTimeSelectedTailPathId=function(){return B};this.initTreeSelector=function(){if(H){u=new pa;u.setRootVisible(!1);u.setNodePainter(h);var e=u,f=e.setRoot,k=H,c=new v;c.setParentId(" ");c.setName("\u65b0\u589e\u76ee\u5f55");c.setId(" ");c=z(c);
N(c,k);f.call(e,c);u.hookLoadingHandler(l);u.addSelectingListener(q);u.getRoot().setExpanded(!0);u.setLineHeight(30);ja.layoutCtrl(u.getJqUi(),0,1,"100%",4<H.length?120:30*H.length+2);u.getJqUi().css("border","1px solid rgba(138, 153, 170, 0.4)");u.getJqUi().css("background","white");u.getJqUi().appendTo($(document.body))}else return null};this.setArrFolderNode=function(e){H=e};this.getArrFolderNode=function(){return H};this.doAutoSelected=function(e,f){I=e;B=x;x=f;var k=new W;k.setValue(f);k.setText(e);
r=k;T.updateText(r?r.getText():"");C.updateArrFolderNode(f);C.checkClearSelectedTreePath(C)};var z=function(e){var f=new pa.BranchNode;f.setUserObject(e);return f},M=function(e){var f=new pa.LeafNode;f.setUserObject(e);return f},N=function(e,f){if(f&&0<f.length)for(var k=0;k<f.length;k++){var c=f[k];c&&c instanceof v&&0<c.getChildren().length?a(e,c):e.addChild(M(c))}},a=function(e,f){var k=0<f.getChildren().length?z(f):M(f);e.addChild(k);e=f.getChildren();if(0!=e.length)for(f=0;f<e.length;f++)e[f]&&
e[f]instanceof v&&e[f].getChildren()?a(k,e[f]):k.addChild(M(e[f]))},l=function(e,f){setTimeout(function(){N(e);f()},500)},h=function(e,f){e.css("padding-left","4px");e.css("padding-right","4px");e.text(f.getUserObject().getName())},q=function(e,f){var k=f.getTreePath();f=e="";for(var c,d=1;d<k.length;d++)1<d&&(e+="/",f+="/"),c=k[d],e+=c.getUserObject().getName(),f+=c.getUserObject().getId();I=c.getUserObject().getName();B=x;x=c.getUserObject().getId();c=new W;c.setValue(f);c.setText(e);r=c;T.updateText(r?
r.getText():"");T.doDropdown();C.updateArrFolderNode(f);C.checkClearSelectedTreePath(C)},g=200;this.setMaxHeight=function(e){g=e};this.getPopupHeight=function(){return null==H||0==H.length?22:Math.min(30*H.length+2,g+2)}}function ba(){var b=this,S,C,T,u,H,r=!0;this.setEnable=function(N){r=N;r||(T.hide(),C.css({color:"rgb(192, 192, 192)"}))};this.getDropDownContent=function(){throw Error("orrive me");};this.getPopupHeight=function(){throw Error("orrive me");};this.getJqUi=function(){S||I();return S};
this.setPlaceholder=function(N){I();"placeholder"in C[0]?C.attr("placeholder",N):(H&&H.remove(),H=$("<div>"),H.text(N),H.css({color:"#ccc","font-size":"12px"}),H.on("mousedown",function(a){C.focus()}),H.appendTo(b.getJqUi()),ja.layoutCtrlWithLRTB(H,4,4,null,2,2,null),M())};var I=function(){if(!S){S=$("<div>");S.addClass("sa-ctrl-combobox");if(r)S.on("click",B);S.css("border-bottom","1px solid #ccc");C=$("<input readonly=readonly>");C.addClass("sa-ctrl-textfield-input");C.css({color:"#666","font-size":"12px",
"text-overflow":"ellipsis",padding:"0px 16px 0px 4px"});C.appendTo(S);T=$("<div>");T.addClass("sa-ctrl-combobox-arrow sa-ctrl-combobox-arrow_enabled");T.appendTo(S);T.on("mouseenter",function(N){x(!0)});T.on("mouseleave",function(N){x(!1)});x(!1)}},x=function(N){var a=u?"arrow-up":"arrow-down";N&&(a+="_hover");ta.background(T,a)},B=function(){if(r){if(u)$(document.body).off("mousedown",z),u.detach(),u=null;else{var N=$(document.body),a=u=$("<div>"),l=$("<div>");l.addClass("sa-ctrl-common-border");
l.appendTo(a);u.addClass("sa-qing-publish-dropdown-selector");b.getDropDownContent().appendTo(u);var h=b.getPopupHeight();u.css("z-index",999999);u.appendTo(N);var q=N.prop("clientHeight"),g=S.outerHeight();a=S.outerWidth();var e=[0,g-1];e=ja.upwardCoordinate(S[0],e,N[0]);l=e[0];var f=e[1];h=0>h?Math.max(0,(q>>1)-g):h;f+h>q&&(e=[0,0],e=ja.upwardCoordinate(S[0],e,N[0]),N=e[1]-h+1,0<=N&&(f=N));ja.layoutCtrl(u,l,f,a,h);$(document.body).on("mousedown",z)}x(!1)}},z=function(N){for(var a=$(document.body),
l=$(N.target);l[0]!=a[0];){if(l[0]==S[0])return;l=l.parent()}for(l=$(N.target);l[0]!=a[0];){if(l[0]==u[0])return;l=l.parent()}B()},M=function(){H&&setTimeout(function(){H.css("display",C.val()?"none":"")},0)};this.protectedMethod={updateText:function(N){I();C.val(N?N:"");N&&C.attr("title",N);"placeholder"in C[0]||M()},doDropdown:B}}function W(){var b=this,S,C,T,u;this.getIsShow=function(){return u};this.setIsShow=function(H){u=H};this.getValue=function(){return S};this.setValue=function(H){S=H};this.getText=
function(){return C};this.setText=function(H){C=H};this.getUserObject=function(){return T};this.setUserObject=function(H){T=H};this.toJsonObject=function(){var H={};H.value=S;H.text=C;return H};this.fromJsonObject=function(H){H&&(H.value&&b.setValue(H.value),H.text&&b.setText(H.text))}}function ma(b,S,C,T){P.call(this,b,S,C,T);var u=this.protectedMethod;this.loadSnapGroupTypes=function(H){u.remote("loadSnapGroupTypes",{snapId:H})};this.loadSnapGroupInfo=function(H){u.remote("loadSnapGroupInfo",{snapId:H})};
this.getSnapNameByInputText=function(H){u.remote("getSnapNameByInputText",{inputText:H})};this.saveSnapInfo=function(H){u.remote("saveSnapInfo",H)}}function K(){}function A(){var b,S,C,T,u,H,r,I,x,B,z,M,N;this.getSnapId=function(){return b};this.setSnapId=function(a){b=a};this.setOldSnapId=function(a){S=a};this.getOldSnapId=function(){return S};this.getReportId=function(){return C};this.setReportId=function(a){C=a};this.getPageId=function(){return T};this.setPageId=function(a){T=a};this.getPublishId=
function(){return u};this.setPublishId=function(a){u=a};this.getSnapName=function(){return H};this.setSnapName=function(a){H=a};this.isHyperLink=function(){return r};this.setIsHyperLink=function(a){r=a};this.getSaveSnapGroupName=function(){return I};this.setSaveSnapGroupName=function(a){I=a};this.getSaveSnapGroupType=function(){return B};this.setSaveSnapGroupType=function(a){B=a};this.getSaveSnapGroupId=function(){return x};this.setSaveSnapGroupId=function(a){x=a};this.getSaveSnapGroupPath=function(){return z};
this.setSaveSnapGroupPath=function(a){z=a};this.getSaveSnapGroupPathText=function(){return M};this.setSaveSnapGroupPathText=function(a){M=a};this.getForceOverwrite=function(){return N};this.setForceOverwrite=function(a){N=a};this.fromJsonObject=function(a){b=a.snapId;T=a.pageId;u=a.publishId;H=a.snapName;r=a.isHyperLink;I=a.saveSnapGroupName;B=a.saveSnapGroupType;x=a.saveSnapGroupId;z=a.saveSnapGroupPath;M=a.saveSnapGroupPathText;C=a.reportId;N=a.forceOverwrite};this.toJsonObject=function(){var a=
{};a.snapId=b;a.oldSnapId=S;a.pageId=T;a.publishId=u;a.snapName=H;a.isHyperLink=r;a.saveSnapGroupName=I;a.saveSnapGroupType=B;a.saveSnapGroupId=x;a.saveSnapGroupPath=z;a.saveSnapGroupPathText=M;a.reportId=C;a.forceOverwrite=N;return a}}"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 ca=com.kingdee.bos.extreport.snapcenter.common.ui,ia={};ca.SaveSnapDialog=function(b,S,C){aa.call(this);var T=this,u=this.protectedMethod,H=w,r=[],I=new n(b,H,C),x;(function(){u.setTitle(S);T.setSize(I.getWidth(),I.getHeight());
x=u.getMessageCurtain();I.setOuterMessageCurtain(u.getMessageCurtain());u.setContentPaneCreator(function(){return I.getJqUi()});u.setClosingChecker(function(a){B(a)},!0);u.setClosingAction(function(){})})();this.addSuccessCallback=function(a){r.push(a)};var B=function(a){var l=I.checkUIInput(function(h){h?M(a):a(h)});l&&(u.getMessageCurtain().showPrompt(l,5E3),a(!1))},z={8099101:D.get("querySnapCenterPermExp","\u67e5\u8be2\u5feb\u7167\u4e2d\u5fc3\u6743\u9650\u5f02\u5e38\u3002"),8099102:D.get("noQuerySnapCenterPermExp",
"\u5f53\u524d\u7528\u6237\u6ca1\u6709\u5feb\u7167\u4e2d\u5fc3\u6743\u9650\u3002"),8099103:D.get("snapNameNotEmpty","\u5feb\u7167\u540d\u79f0\u4e3a\u7a7a\u3002"),8099104:D.get("snapNameTooLong","\u5feb\u7167\u540d\u79f0\u957f\u5ea6\u4e0d\u80fd\u8d85\u8fc750\u4e2a\u5b57\u7b26\u3002"),8099105:D.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:D.get("selectPath",
"\u76ee\u5f55\u4e3a\u7a7a\u3002"),8099107:D.get("reportNotFound","\u8be5\u62a5\u8868\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664\u3002"),8099108:D.get("userNotFound","\u672a\u627e\u5230\u7528\u6237\u3002"),8099109:D.get("snapGroupNotFound","\u76ee\u5f55\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664\u3002"),8099110:D.get("sameSnapNameExist","\u76f8\u540c\u5feb\u7167\u540d\u79f0\u5df2\u5b58\u5728\u3002"),8099112:D.get("checkReportPermExp","\u68c0\u67e5\u7528\u6237\u662f\u5426\u62e5\u6709\u4fdd\u5b58\u5feb\u7167\u6743\u9650\u5f02\u5e38\u3002"),
8099113:D.get("noReportPerm","\u5f53\u524d\u7528\u6237\u6ca1\u6709\u4fdd\u5b58\u5feb\u7167\u6743\u9650\u3002"),8099115:D.get("checkSnapCenterModulePermExp","\u68c0\u6d4b\u5feb\u7167\u4e2d\u5fc3\u6a21\u5757\u8bb8\u53ef\u5f02\u5e38\u3002"),8099116:D.get("noSnapCenterModulePerm","\u5f53\u524d\u7528\u6237\u6ca1\u6709\u5feb\u7167\u4e2d\u5fc3\u6a21\u5757\u8bb8\u53ef\u3002"),8099117:D.get("isKeywords",'\u65e0\u6cd5\u4f7f\u7528"#1"\u4f5c\u4e3a\u540d\u79f0\uff0c\u8bf7\u91cd\u65b0\u8f93\u5165\u3002')},M=function(a,
l){var h=I.getModelFromUI();l&&h.setForceOverwrite(!0);l=H.createFacade(function(q){h.setSnapId(q);if(h.getPublishId()||"A"==h.getSaveSnapGroupType()&&C.snapId){q=com.kingdee.bos.qing.behavior.BehaviorManager;var g=va.createUUID();h.getPublishId()?q.initAccessRecordParams(h.getPublishId(),g,q.SourceType.QING_PUBLISH,q.AppType.QING_RPT):q.initAccessRecordParams(C.snapId,g,q.SourceType.QING_SNAPSHOT,q.AppType.QING_RPT);q.recordResourceOperation(q.OperationType.QING_SNAPSHOT_SAVE)}if(!r||0==r.length)x&&
x.showSuccess(D.get("saveSnapSuccess","\u4fdd\u5b58\u5feb\u7167\u6210\u529f\u3002"));else if(r&&0<r.length)for(q=0;q<r.length;q++)(g=r[q])&&g(h);a(!0)},function(q,g){if(q){if(ia.RUNTIME==b&&8099110==q)return g=D.get("sameSnapNameConfirmMessage","\u5feb\u7167\u540d\u79f0\u5df2\u5b58\u5728\uff0c\u786e\u5b9a\u8986\u76d6\u5417\uff1f"),N(g,a),!0;q=z[q];x.showPrompt(q?q:g,5E3);a(!1);return!0}a(!1);return!1});l.setShowBlocking(!1);l.saveSnapInfo(h.toJsonObject())},N=function(a,l){var h=$(document.body),
q=$("<div class='sa-ctrl-common-modallayer'>");q.appendTo(h);var g=new za(q),e=D.get("operateConfirm","\u64cd\u4f5c\u786e\u8ba4");g.setTitle(e);e=h.prop("clientWidth");var f=h.prop("clientHeight");g.setBounds(e-300>>1,f-200>>1,300,200);g.setToolbarVisible(!1);e=$("<div>");f=$("<div>");var k=$("<span>");k.text(a);k.attr("title",a);k.css({"text-align":"center",display:"inline-block","margin-top":"5px","line-height":"23px","font-size":"14px","text-overflow":"ellipsis",overflow:"hidden"});ja.layoutCtrl(f,
null,null,300,200);ja.layoutCtrl(k,0,25,300,60);k.appendTo(f);f.appendTo(e);g.setContent(e);g.addClosingListener(function(c,d){d?M(l,!0):l(!1);c.destroy();q.remove();return!0});g.showFooterPane();g.show();q.appendTo(h)}};ca.SnapContentPanel=n;ca.SaveSnapSourceType=ia;ca.ExtReportSnapModel=A;ca.StringUtil=K;ca.ValueTextPair=W;ia.RUNTIME=1;ia.SNAP_CENTER=2;ia.SNAP_SCHEDULE=3;var va,ja,aa,pa,la,ea,X,na,ta,za,P,t,D,w;(function(){var b=com.kingdee.bos.qing.common;va=b.Util;ja=b.DomUtil;b=com.kingdee.bos.qing.ui.component;
aa=b.AbstractModalDialog;pa=b.Tree;la=b.List;ea=b.SwitchButton;X=b.Label;na=b.TextField;ta=b.Icons;za=b.Dialog;b=com.kingdee.bos.qing.framework.common;P=b.AbstractFacade;t=b.AbstractRemoteCall;D=b.MultilanguageManager.createPackageAccessor(ca);w=new function(){function S(){t.call(this);var u;this.getRemoteUrl=function(){return u};this.setRemoteUrl=function(H){u=H}}var C;this.createFacade=function(u,H,r){var I=T();return new ma(I,u,function(x,B){return H?H(x,B):!1},r)};var T=function(){if(!C){var u=
va.decodeParamFromUrl(window.location.search,"path");u=(u?u:"/ierp")+"/qing_rpt/runtime.do";C=new S;C.setRemoteUrl(u)}return C}}})();K.isValidString=function(b){return/^([\u4E00-\u9FA5a-zA-Z_])[\u4E00-\u9FA5a-zA-Z0-9_]{0,}$/.test(b)};K.isKeywords=function(b){return/\b(null|true|false)\b/i.test(b)}})();(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.runtime&&(com.kingdee.bos.extreport.runtime={});"undefined"==typeof com.kingdee.bos.extreport.runtime.common&&(com.kingdee.bos.extreport.runtime.common={});var n=com.kingdee.bos.extreport.runtime.common;n.Facade=function(R,
ba,W,ma){p.call(this,R,ba,W,ma);var K=this.protectedMethod;this.loadExtReportInfo=function(A,ca,ia,va,ja){K.remote("loadExtReportInfo",{extReportId:A,publishId:ca,isPreview:ia,isGuiPreview:va,dataName:ja})};this.loadExtReportSnapInfo=function(A){K.remote("loadExtReportSnapInfo",{snapId:A})};this.getFilter=function(A){K.remote("getFilter",A)};this.getDelaySuppliedValue=function(A){K.remote("getDelaySuppliedValue",A)};this.getFilterSchemes=function(A,ca){K.remote("getFilterSchemes",{pageId:A,flag:ca})};
this.saveFilterScheme=function(A){K.remote("saveFilterScheme",A)};this.delFilterScheme=function(A){K.remote("delFilterScheme",A)};this.applyFilter=function(A){K.remote("applyFilter",A)};this.excuteExtReport=function(A,ca,ia){K.remote("excuteExtReport",{pageId:A,paramCacheId:ca,isPreview:ia})};this.loadFragment=function(A,ca,ia){K.remote("loadFragment",{pageId:A,currentSheetName:ca,pageIndex:ia})};this.switchSheet=function(A,ca,ia){K.remote("switchSheet",{pageId:A,sheetName:ca,switchOnly:ia})};this.getPager=
function(){K.remote("getPager",{type:"listPaperSize"})};this.exportToFile=function(A,ca){ca=ca?ca:{};ca.exportType=A;ca.OriginPermission=!0;K.remote("exportToFile",ca)};this.cacheParamValues=function(A){K.remote("cacheParamValues",{paramValues:A})};this.lazyLoadTree=function(A,ca,ia){K.remote("lazyLoadTree",{pageId:A,rowIdx:ca,treeLevel:ia})};this.cellInnerLink=function(A){K.remote("cellInnerLink",A)};this.executeExtReportFromSnapContent=function(A){K.remote("executeExtReportFromSnapContent",{pageId:A})};
this.checkSnapOperPermission=function(A,ca,ia){K.remote("checkSnapOperPermission",{snapCenterQueryPerm:A,snapExist:ca,snapId:ia})}};n.DataSetFacade=function(R,ba,W,ma){p.call(this,R,ba,W,ma);var K=this.protectedMethod;this.loadDataSetInfo=function(A,ca){K.remote("loadDataSetInfo",{dataSetId:A,cacheId:ca})};this.getDataSetFilterAndSchemaList=function(A,ca){K.remote("getDataSetFilterAndSchemaList",{dataSetId:A,cacheId:ca})};this.applyDataSetFilter=function(A){K.remote("applyDataSetFilter",A)};this.saveFilterScheme=
function(A){A.dataSetId=A.sId;K.remote("saveDataSetFilterScheme",A)};this.delFilterScheme=function(A){K.remote("delDataSetScheme",A)};this.getDelaySuppliedValue=function(A){A.formDataSet=!0;K.remote("getDataSetDelaySuppliedValue",A)}};n.RemoteImpl=function(){v.call(this);var R;this.getRemoteUrl=function(){return R};this.setRemoteUrl=function(ba){R=ba}};var p,v;(function(){var R=com.kingdee.bos.qing.framework.common;p=R.AbstractFacade;v=R.AbstractRemoteCall})();var L=new function(){var R;this.hookCollector=
function(ba){R=ba};this.occur=function(ba,W){try{R&&R(ba,W)}catch(ma){window.console&&console.warn(ma)}};this.getPreviewSourceName=function(ba){if(!ba)return L.PREVIEW_SOURCE_MANAGE;if("0"===ba)return L.PREVIEW_SOURCE_APPMENU;if("1"===ba)return L.PREVIEW_SOURCE_CENTER}};L.EXPORT_TYPE="export-type";L.PREVIEW_SOURCE_MANAGE="Manege";L.PREVIEW_SOURCE_APPMENU="Appmenu";L.PREVIEW_SOURCE_CENTER="Center";n.UserOperationReporter=L})();(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.runtime&&(com.kingdee.bos.extreport.runtime={});"undefined"==typeof com.kingdee.bos.extreport.runtime.report&&(com.kingdee.bos.extreport.runtime.report={});"undefined"==typeof com.kingdee.bos.extreport.runtime.report.model&&
(com.kingdee.bos.extreport.runtime.report.model={});com.kingdee.bos.extreport.runtime.report.model.ExtReportRuntimeInfo=function(){var n,p,v,L,R,ba,W,ma,K,A,ca,ia,va,ja,aa,pa,la,ea=!0,X;this.getPageId=function(){return n};this.getExtReportName=function(){return p};this.isHasModel=function(){return v};this.isHasFilter=function(){return L};this.isNeedFill=function(){return R};this.isHideMenubarInReport=function(){return ba};this.isPopFilter=function(){return W};this.isHasExportPermission=function(){return ma};
this.isHasPrintPermission=function(){return K};this.isHasSaveSnapshotPermission=function(){return A};this.isAccredited=function(){return ca};this.isModifiedTemplate=function(){return ia};this.getSnapId=function(){return va};this.getCreatorName=function(){return ja};this.getCreateTime=function(){return aa};this.getCurrentUserId=function(){return pa};this.getExportSetting=function(){return la};this.isAvailable=function(){return ea};this.getInvalidData=function(){return X};this.fromJson=function(na){n=
na.pageId;p=na.extReportName;v=na.hasModel;L=na.hasFilter;R=na.isNeedFill;ba=na.isHideMenubarInReport;W=na.isPopFilter;ma=na.hasExportPermission;K=na.hasPrintPermission;A=na.hasSaveSnapshotPermission;ca=na.isAccredited;ia=na.isModifiedTemplate;va=na.snapId;ja=na.creatorName;aa=na.createTime;pa=na.currentUserId;la=JSON.stringify(na.setupModel);ea=na.isAvailable;X=na.invalidData}}})();(function(){function n(){var R=[],ba=[],W,ma,K=[],A=[],ca=[],ia=new v,va=[];this.setCustomSingleColWidth=function(ja){};this.getItemByRow=function(ja){var aa=[];aa.push(K);aa.push(ba[ja]);return aa};this.getItemValueByRow=function(ja){return ba[ja]};this.getCellValue=function(ja,aa){return ba[ja][aa]};this.getOrderedKeys=function(){return K};this.getColCount=function(){return ma};this.getRowCount=function(){return W};this.getAliasAt=function(ja){return R[ja]};this.isMarkAsExcluded=function(ja){return va.includes(ja+
1)};this.getColWidthByCol=function(ja,aa,pa){return ja===ma-1?Math.max(Math.floor(aa+50-pa),70):Math.max(Math.max(Math.floor(A[ja]*aa),ca[ja]),70)};this.fromJsonObject=function(ja){var aa=ja.columnNames,pa=ja.resultList;W=pa.length;R=ja.columnAlias;va=ja.excludedCols;if(!aa||0===aa.length)throw Error("no column!");for(ja=0;ja<aa.length;ja++)K.push(aa[ja].toLowerCase());ma=K.length;var la;aa=[];ia.setFontSize(L.getFontSize(),L.getFontName());for(ja=0;ja<ma;ja++)aa[ja]=0;for(ja=0;ja<W;ja++){var ea=
pa[ja],X=[];for(la=0;la<ma;la++){var na=ea[K[la]];if(ja<n.CALCULATE_ROW_COUNT){var ta=ia.measureWidth(na);ta=ta>n.MAX_CELL_WIDTH?n.MAX_CELL_WIDTH:ta;ta=ta<n.MIN_CELL_WIDTH?n.MIN_CELL_WIDTH:ta;aa[la]+=ta}X.push(na)}ba.push(X)}if(0===W)for(ja=0;ja<ma;ja++)pa=ia.measureWidth(K[ja]),aa[ja]+=pa+n.MIN_CELL_WIDTH;ja=0;la=[];ea=W>=n.CALCULATE_ROW_COUNT?n.CALCULATE_ROW_COUNT:W;ea=0===ea?1:ea;for(pa=0;pa<ma;pa++)X=aa[pa]/ea,na=K[pa]?K[pa].length:0,X=X<na?na:X,ja+=X,la.push(X);for(pa=0;pa<ma;pa++)A.push(la[pa]/
ja),ca.push(la[pa])}}"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.dataset&&(com.kingdee.bos.extreport.runtime.dataset={});"undefined"==typeof com.kingdee.bos.extreport.runtime.dataset.model&&
(com.kingdee.bos.extreport.runtime.dataset.model={});var p=com.kingdee.bos.extreport.runtime.dataset.model;p.DataSetRuntimeInfo=function(){var R,ba,W,ma,K;this.getCacheId=function(){return R};this.setCacheId=function(A){R=A};this.setDataSetId=function(A){ba=A};this.getDataSetId=function(){return ba};this.setDataSetName=function(A){W=A};this.getDataSetName=function(){return W};this.setHasFilter=function(A){ma=A};this.hasFilter=function(){return ma};this.setHasModel=function(A){K=A};this.hasModel=function(){return K};
this.fromJsonObject=function(A){R=A.cacheId;ba=A.dataSetId;W=A.dataSetName;ma=A.hasFilter;K=A.hasModel}};p.DataSetResult=n;var v,L;(function(){var R=com.kingdee.bos.qing.common;v=R.TextMeasurer;R=com.kingdee.bos.qing.framework.common;L=R.GlobalFont})();n.SINGLE_COL_WIDTH=140;n.CALCULATE_ROW_COUNT=20;n.MIN_CELL_WIDTH=10;n.MAX_CELL_WIDTH=200;n.MIN_COL_COUNT_THRESHOLD=13})();(function(){function n(){function t(z){KTDefaultCellRender.call(this,z);var M=this,N=this.paintCellUI;this.paintCellUI=function(a,l){var h=M.getCurrentRowIdx();var q=M.getCurrentColIdx(),g={"line-height":"28px","padding-left":"7px","padding-right":"7px"};M.getCurrentRowIdx()<R.getHeadRowCount()?0<q&&I.isMarkAsExcluded(q-1)?1===h&&(h=I.getAliasAt(q-1),l=aa.get("excludeColumnTips","\u8be5\u5b57\u6bb5\u5728\u201c\u8f93\u51fa\u5b57\u6bb5\u201c\u4e2d\u5df2\u4e0d\u5b58\u5728\u3002"),g=$("<div>"),g.attr("title",
h),g.text(h),g.css({display:"inline-block","line-height":"20px",height:"20px"}),h=new ia,h.setIconType(ia.ICON_TYPE_INFO),h.setTipsText(l),l=h.getJqUi(),l.css({display:"inline-block",margin:"3px 0 0 3px"}),g.appendTo(a),l.appendTo(a)):N(a,l):(0===q?(l=$("<div>"),h=h-3+1):(l=$("<div>"),h=I.getCellValue(h-3,q-1)),l.attr("title",h),l.css(g),l.text(h),l.appendTo(a))}}var D=this,w,b,S,C,T,u,H,r,I;this.getJqUi=function(){if(!w){w=$("<div>");w.addClass("dataset-table-container");u=$("<div>");u.css({background:"#fff"});
L.layoutCtrlWithLRTB(u,10,10,null,10,10,null);H=$("<div>");H.addClass("dataset-head-container");H.appendTo(u);var z=$("<div>");z.addClass("dataset-spinner-prompt");z.text(aa.get("previewLimitSuffix","\u6761\u6570\u636e"));z.appendTo(H);T=new A;T.setItemModels([50,100,200,500,1E3]);T.setSelected(50);T.addSelectedChangedListener(x);z=T.getJqUi();z.addClass("dataset-combobox");z.appendTo(H);z=$("<div>");z.addClass("dataset-spinner-prompt");z.text(aa.get("previewLimitPrefix","\u9884\u89c8\u524d"));z.appendTo(H);
H.hide();S=$("<div>");S.addClass("dataset-table");S.appendTo(u);u.appendTo(w)}return w};this.setFunExecute=function(z){r=z};this.setModelsAndUpdateUi=function(z){I=z;D.updateUi()};this.getPreviewLimitCount=function(){return T?parseInt(T.getSelected()):n.PREVIEW_NUM_DEFAULT};this.updateUi=function(){H&&H.show();S&&S.remove();C&&C.remove();b=new KTable;b.setSyncUIWhenModelChanged(!1);b.setFrozenRows(3);b.setDraggableAdjusting(!0,3,0);b.setLargeDataMode(!0);var z=new t(b);z.setOutsideVisible(!1);b.setCellRender(z);
z=new KTStyle;z.setVerticalAlign("middle");b.setStyle(z);S=$(b.getUI());S.addClass("dataset-table");S.appendTo(u);B()};this.resize=function(){b&&B()};var x=function(z,M,N){z=parseInt(N);if("number"!=typeof z)throw Error("Unexpected error: not number.");r(z)},B=function(){R.clear(b);var z,M=I.getRowCount(),N=I.getColCount(),a=R.createHeadRow(b),l=document.body.clientWidth;b.addColumns(N+1);b.getColumn(0).setWidth(50);a.getCell(0).setValue(aa.get("orderNumber","\u5e8f\u53f7"));var h=50;for(z=0;z<N;z++){var q=
I.getColWidthByCol(z,l-70,h);b.getColumn(z+1).setWidth(q);a.getCell(z+1).setValue(I.getAliasAt(z));h+=q}if(0!==I.getRowCount())for(z=0;z<M;z++)R.createRow(b);else C=$("<div>"),L.layoutCtrlWithLRTB(C,10,10,null,40,10,null),C.css({"background-color":"white"}),z=$("<div>"),z.addClass("dataset-table-no-data-text"),z.text(aa.get("noSearchData","\u6ca1\u6709\u7b26\u5408\u6761\u4ef6\u7684\u7ed3\u679c")),z.appendTo(C),C.appendTo(w);b.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.runtime&&(com.kingdee.bos.extreport.runtime={});"undefined"==typeof com.kingdee.bos.extreport.runtime.dataset&&(com.kingdee.bos.extreport.runtime.dataset={});"undefined"==typeof com.kingdee.bos.extreport.runtime.dataset.ui&&(com.kingdee.bos.extreport.runtime.dataset.ui={});com.kingdee.bos.extreport.runtime.dataset.ui.Main=
function(){function t(){ma.call(this);var c=this.protectedMethod,d=this,m=this.showDialog;this.showDialog=function(){d.setSize(720,480);c.setTitle(aa.get("previewQueryContent","\u67e5\u770b\u6267\u884c\u8bed\u53e5"));c.setFooterPaneCreator(null);c.setContentPaneCreator(function(){return V(I)});c.setClosingAction(function(F){});c.setSelectable(!0);m()};var V=function(F){var G=new ba;G.setText(aa.get("close","\u5173\u95ed"));G.addActionListener(function(U){c.destroy()});var O=$("<div>");O.css({"box-sizing":"border-box",
overflow:"auto","white-space":"pre-wrap","line-height":"20px",padding:"6px",border:"1px solid #ddd"});O.text(F);F=$("<div>");F.append(O);F.append(G.getJqUi());L.layoutCtrlWithLRTB(O,0,0,null,0,40,374);L.layoutCtrlWithLRTB(G.getJqUi(),null,null,null,null,6,26);L.layoutCtrlCenterAlign(G.getJqUi(),80);return F}}var D,w,b,S,C,T,u,H,r,I,x=new function(){var c,d;this.getMessageCurtain=function(){c||(c=new W,c.getJqUi().appendTo($("body")));return c};this.createFacade=function(V,F,G){var O=m();return new la(O,
V,function(U,qa){return F?F(U,qa):!1},G)};this.showExecuteError=function(V){V=V.split("|||");var F=new ca;F.setOptionType(ca.RETURN_OK);F.setMessage(V[0]);F.setDetail(V[1]);F.showDialog()};this.showError=function(V){var F=$("<div>");F.css({position:"absolute",background:"white",top:"0",bottom:"0",left:"0",right:"0",font:"14px PingFangSC-Regular","letter-spacing":"0",color:"#666666","text-align":"center","z-index":"9"});var G=$("<div>");G.addClass("qing-welcome-sub-container");G.css({width:"740px",
height:"410px",position:"absolute",top:"50%",left:"50%","margin-left":"-370px","margin-top":"-205px",background:"white"});var O=$("<img>");O.css({widdisplayth:"block",height:"189px",width:"200px","background-size":"contain",margin:"0 auto"});O.prop("src","qingrpt/runtime/resource/errorBackground.png");var U=$("<span>");U.text(V);U.css({display:"block","font-size":"20px","line-height":"26px",color:"#666666"});G.append(O);G.append(U);F.append(G);F.appendTo($(document.body))};var m=function(){if(!d){var V=
v.decodeParamFromUrl(window.location.search,"path");V=(V?V:"/ierp")+"/qing_rpt/datasetRuntime.do";d=new ea;d.setRemoteUrl(V)}return d};this.showDialogError=function(V){var F=new ca;F.setOptionType(ca.OPTION_OK);F.setButtonText(ca.OPTION_OK,aa.get("refresh","\u5237\u65b0"));F.setClosingChecker(function(G){G===ca.OPTION_OK&&z();return!0});F.setMessage(V);F.showDialog()}},B=function(){document.body.style.height=document.documentElement.clientHeight+"px"};this.start=function(){var c=$(document.body);
D=$("<div class='dataset-web-main'>");D.appendTo(c);va.init();B();c=new ja;c.setCallbackImmediately(function(){B();var d=u&&u.getJqUi();d=d?!d.is(":hidden"):!1;a(d);T&&T.resize()});c.setDelay(250);c.observe();H=p.getUrlParamValue("dataSetId");r=p.getUrlParamValue("cacheId");l()};var z=function(){location.replace(location.href)},M=function(){pa.closeCurrentTab()},N=function(){(new t).showDialog()},a=function(c){var d=u&&u.getJqUi();d=d&&d[0].offsetHeight;var m=T&&T.getJqUi(),V=w&&w.getJqUi();u&&u.isDisplay()?
c?(w&&V.css("top",45+d),T&&m.css("top",91+d)):(w&&V.css("top",45),T&&m.css("top",91)):(w&&V.css("top",0),T&&m.css("top",45))},l=function(){x.createFacade(function(c){var d=new ta;d.fromJsonObject(c);H=d.getDataSetId();r=d.getCacheId();d.hasModel()?(d.hasFilter()?h():(c={},c.dataSetId=H,c.cacheId=r,k(c)),c=D,w=new K,d=w.getJqUi(),L.layoutCtrlWithLRTB(d,0,0,null,0,null,null),d.css({"padding-right":"0",height:"45px","padding-left":"15px"}),w.createButton(d,!1,z,aa.get("refresh","\u5237\u65b0"),aa.get("refresh",
"\u5237\u65b0")),w.createButton(d,!1,N,aa.get("queryContentBtn","\u67e5\u770b\u6267\u884c\u8bed\u53e5"),aa.get("previewQueryContent","\u67e5\u770b\u6267\u884c\u8bed\u53e5")),w.createButton(d,!1,M,aa.get("close","\u9000\u51fa"),aa.get("close","\u9000\u51fa")),d.hide(),d.appendTo(c),T=new n,T.setFunExecute(f),T.getJqUi().appendTo(D)):com.kingdee.bos.qing.framework.common.RemoteFramework.openErrorPage("noDataSetModel")},function(c,d){return 8099002===c||8099007===c||8099008===c||8077016===c||8099009===
c||8099010<=c&&8099014>=c||8099119===c?(x.showDialogError(d),!0):!1}).loadDataSetInfo(H,r)},h=function(){x.createFacade(function(c){var d=new P;d.fromJsonObject(c);u=new na;u.setSchemaListPanel(new X);u.setGlobal(x);u.setModels(H,d,"",r);u.setFunExecute(f);u.setFunSwitchSchemaCallBack(q);c=u.getJqUi();if(u&&u.isDisplay()){var m=$("<div>");m.addClass("runtime-filter-container");var V=$("<div>");V.addClass("runtime-filter-menu");var F=$("<div>");F.addClass("runtime-filter-tips");F.appendTo(V);var G=
$("<div>");G.addClass("runtime-filter-tips-main");G.text(aa.get("filterCondition","\u7b5b\u9009\u6761\u4ef6"));G.appendTo(F);b=$("<div>");b.addClass("runtime-filter-tips-sub");b.appendTo(F);S=$("<div>");S.addClass("runtime-filter-btn-spread");S.appendTo(V);C=$("<div>");C.addClass("runtime-filter-btn-spread-icon");C.appendTo(S);q(u.getCurrentSchemaInfo().getCaption());F=$("<div>");F.addClass("runtime-filter-btn-spread-text");F.text(aa.get("spreadFilter","\u5c55\u5f00\u8fc7\u6ee4"));F.appendTo(S);S.on("click",
g);V.appendTo(m);c.appendTo(m);m.appendTo(D);d.getHasDefaultEnter()?(e(!1),u.executeWithSchema(d)):e(!0)}else d={},d.dataSetId=H,d.cacheId=r,k(d)},function(c,d){return 8099002===c||8099007===c||8099008===c||8077016===c||8099009===c||8099010<=c&&8099014>=c||8099119===c?(x.showDialogError(d),!0):8099101===c?(x.showDialogError(aa.get("noDataCenterPermission","\u6ca1\u6709\u6570\u636e\u4e2d\u5fc3\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458\u5206\u914d\u6743\u9650\u3002")),!0):!1}).getDataSetFilterAndSchemaList(H,
r)},q=function(c){b.text(aa.get("currentSchema","\u5f53\u524d\u65b9\u6848\uff1a")+c)},g=function(){var c=0!==S.find(".runtime-filter-btn-spread-icon").length;e(c)},e=function(c){var d=S.find(".runtime-filter-btn-spread-text");if(c){S.removeClass("runtime-filter-btn-spread");S.addClass("runtime-filter-btn-pack-up");C.removeClass("runtime-filter-btn-spread-icon");C.addClass("runtime-filter-btn-pack-up-icon");var m=aa.get("packUpFilter","\u6536\u8d77\u8fc7\u6ee4")}else S.removeClass("runtime-filter-btn-pack-up"),
S.addClass("runtime-filter-btn-spread"),C.removeClass("runtime-filter-btn-pack-up-icon"),C.addClass("runtime-filter-btn-spread-icon"),m=aa.get("spreadFilter","\u5c55\u5f00\u8fc7\u6ee4");d.text(m);u&&u.spreadOrPackUp(c);a(c)},f=function(){var c={};if(u&&u.isDisplay()){var d=u.getParameValues();if(d.success)c.paramValues=d.data.paramValues;else{e(!0);x.getMessageCurtain().showPrompt(d.errMsg);return}}c.dataSetId=H;c.cacheId=r;k(c)},k=function(c){var d=T?T.getPreviewLimitCount():n.PREVIEW_NUM_DEFAULT;
c.limit=d&&"number"===typeof d?d:50;x.createFacade(function(m){w&&w.getJqUi().show();u&&u.isDisplay()&&e(!1);a(!1);I=m.queryContent;var V=new za;V.fromJsonObject(m);T.setModelsAndUpdateUi(V)},function(m,V){return 8099002===m||8099007===m||8077016===m||8099008===m||8099010<=m&&8099014>=m||8088888===m?(x.showDialogError(V),!0):8099101===m?(x.showDialogError(aa.get("noDataCenterPermission","\u6ca1\u6709\u6570\u636e\u4e2d\u5fc3\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458\u5206\u914d\u6743\u9650\u3002")),
!0):8099102===m?(x.showDialogError(aa.get("noSuperQueryPermission","\u6ca1\u6709\u5f53\u524d\u8d85\u7ea7\u67e5\u8be2\u6a21\u5f0f\u7684\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458\u5206\u914d\u6743\u9650\u3002")),!0):8099005===m?(x.showExecuteError(V),!0):8099006===m?(x.getMessageCurtain().showPrompt(V),!0):!1}).applyDataSetFilter(c)}};var p,v,L,R,ba,W,ma,K,A,ca,ia,va,ja,aa,pa,la,ea,X,na,ta,za,P;(function(){var t=com.kingdee.bos.qing;p=t.Seer;t=com.kingdee.bos.qing.common;v=t.Util;L=t.DomUtil;
t=com.kingdee.bos.qing.common.ui;R=t.TableUtil;t=com.kingdee.bos.qing.ui.component;ba=t.Button;W=t.MessageCurtain;ma=t.AbstractModalDialog;K=t.Toolbar;A=t.ComboBox;ca=t.MessageDialog;ia=t.HelpIcon;t=com.kingdee.bos.qing.framework.common;va=t.WebPageInitializer;ja=t.WindowResizeObserver;aa=t.MultilanguageManager.createPackageAccessor(com.kingdee.bos.extreport.runtime.filter);pa=t.TabbedUiUtil;t=com.kingdee.bos.extreport.runtime.common;la=t.DataSetFacade;ea=t.RemoteImpl;t=com.kingdee.bos.extreport.runtime.common.ui;
na=t.SchemaManagePanel;X=t.RuntimeSchemaListPanel;t=com.kingdee.bos.extreport.runtime.model;P=t.FilterInfo;t=com.kingdee.bos.extreport.runtime.dataset.model;ta=t.DataSetRuntimeInfo;za=t.DataSetResult})();n.PREVIEW_NUM_DEFAULT=50})();function Webreport(n,p,v,L){function R(){var y,J,E,Q,Y;this.getJqUi=function(){y||da();return y};var da=function(){J=$("<div>");J.addClass("sa-ctrl-msgct-icon");E=$("<div>");E.addClass("sa-ctrl-msgct-title");Q=$("<div>");Q.addClass("sa-ctrl-msgct-text");Y=$("<div>");Y.addClass("sa-ctrl-msgct-close");Y.on("click",function(sa){wa()});com.kingdee.bos.qing.ui.component.Icons.background(Y,"msg-close");y=$('<div id="previewLimitShowPrompt">');y.addClass("sa-ctrl-msgct");y.css({display:"none"});y.append(J);
y.append(E);y.append(Q);y.append(Y)};this.show=function(sa,Ba){"none"==y.css("display")&&(com.kingdee.bos.qing.ui.component.Icons.background(J,"msg-prompt"),E.text(sa),Q.text(Ba),Q.attr("title",Ba),y.addClass("sa-ctrl-msgct_prompt"),sa=$(".extreport-reportui-sheet-container-parent",ma).position().top,y.css({"z-index":"0",display:"block",height:"45px",top:sa}),Y.css("display","block"))};var wa=function(){y.animate({height:"0px"},100,function(){y.css({display:"none"})});var sa=$(".extreport-reportui-sheet-container-parent",
ma).first(),Ba=sa.position().top;sa.animate({top:Ba-45},100)}}function ba(){ka.updateUI(!0)}var W=this,ma=p,K,A=v.snapId,ca,ia,va,ja=!v.isHideMenubarInReport,aa=[],pa=[],la=[],ea=[],X,na,ta,za,P,t,D=!0,w=new _Report;p=com.kingdee.bos.extreport.runtime.ui.SheetSwitcher;var b=com.kingdee.bos.extreport.runtime.ui.ReportUiFactory.getReportUi(n.getExhibitScene(),w,ma,n,v,L);b.setSheetSwitcher(new p);b.initUi();var S=new KRListenerProxy,C=com.kingdee.bos.qing.framework.common.MultilanguageManager.createPackageAccessor(com.kingdee.bos.extreport.runtime.filter),
T=com.kingdee.bos.extreport.runtime.chart.change;this.createPage=function(y){K=y.getPageId();va=y.isNeedFill();ia=y.isHasFilter();S.fireEvent({type:"create-page"})};this.loadReport=function(y,J){ca=y;J?(K=J.name,Ca(J.reportInfo),b.showToolBar&&b.showToolBar()):(y=n.createFacade(function(E){Ca(E);b.showToolBar&&b.showToolBar()},function(E,Q){window.parent.postMessage({operation:"showError",iErrorCode:E,sErrorMsg:Q},"*");return 8099001===E||8099006===E?(Na().showPrompt(Q),!0):8099008===E||8099010<=
E&&8099014>=E||8099119===E?(n.showDialogError(Q),!0):!1}),A?y.executeExtReportFromSnapContent(K):y.excuteExtReport(K,ca,v.isPreview))};this.updateUI=function(y){y||"true"!=v.isPreview||(t||(t=new R,t.getJqUi().appendTo(ma)),t.show(C.get("msgPrompt","\u63d0\u793a"),C.get("previewLimitPrompt","\u9884\u89c8\u6570\u636e\u4ec5\u53d6\u90e8\u5206\u6570\u636e\u8ba1\u7b97\uff0c\u53d1\u5e03\u62a5\u8868\u540e\u53ef\u67e5\u770b\u6b63\u786e\u7684\u7edf\u8ba1\u7ed3\u679c\u3002")));b.syncHeight();b.renderReport();
H()};this.updataTable=function(){b&&b.updateTable()};var u,H=function(){L||!za||0>=za||(u=setTimeout(function(){clearTimeout(u);ia?Ea():W.loadReport(ca,null)},za))};this.addReportLoadedListener=function(y){S.addListener("report-loaded",y)};this.addCreatePageListener=function(y){S.addListener("create-page",y)};this.addFilterListener=function(y){S.addListener("filter-ready",y)};this.refresh=function(y){this.loadReport(y,null)};this.applyFilter=function(y){this.loadReport(y,null)};this.repaint=function(){v.dashboardChartId?
repaintDashboardChart():this.updateUI()};this.resize=function(y){b.resize(y)};this.setScrollBarVisible=function(y,J){var E=w.getCurrentSheet().getTable().getUI().firstChild;E&&(E.style.overflowX=y?"auto":"hidden",E.style.overflowY=J?"auto":"hidden")};var r=function(y){var J=w.getCurrentSheet(),E=J.getTable();J.isNeedLoadTable()&&(E.setLargeDataMode(!0),E.addScrollToBottomListener(M));J.isTree()&&J.getTableRowCount()>Constants.TREE_ROW_COUNT&&E.addTreeExpandListener(Ja);E.setEmbedObjectRender(new a);
E.addCellClickListener(fa);E.setSyncUIWhenModelChanged(!1);E.setSyncMergeBlockWhenModelChanged(!1);if(J=y.colList)for(var Q=0;Q<J.length;Q++){var Y=J[Q],da=E.addColumn();da.setWidth(Y.width);da.setHide(Y.isHided);0!=Y.styleID&&da.setStyle(w.getCurrentSheet().getStyle(Y.styleID));0!=Y.borderStyleID&&da.setBorder(w.getCurrentSheet().getBorderStyle(Y.borderStyleID))}I(y)};this.getSchemeDefaultEnter=function(){return ta};var I=function(y){var J=w.getCurrentSheet().getTable();la[X]=0;var E=w.getCurrentSheet().isTree(),
Q=y.rowList;ea[X]=0;if(Q)for(var Y=Q.length,da=0;da<Y;da++){var wa=Q[da],sa=J.addRow();sa.setHeight(wa.height);sa.setHide(wa.isHided);wa.height&&!wa.isHided&&(ea[X]+=wa.height);0!=sa.styleID&&sa.setStyle(w.getCurrentSheet().getStyle(sa.styleID));0!=sa.borderStyleID&&sa.setBorder(w.getCurrentSheet().getBorderStyle(sa.borderStyleID));wa.cellList&&"null"!=wa.cellList&&B(sa,wa);E&&sa.setUserObject(wa.index)}for(E=0;E<J.getFrozenRows();E++)J.getRow(E)&&(la[X]+=J.getRow(E).getHeight());if(y=y.embedChartList)if(ja){for(E=
Y=0;pa[X]&&pa[X].length&&0>E;E++)Y+=pa[X][E];for(E=0;E<y.length;E++)Q=y[E],sa=(Q.name+Math.random()).replace(/\./g,"_"),Ba=Q.left,da=Q.top-Y,Ia=Q.width,wa=Q.height,sa=new KTEmbedObject(sa,Ba,da,Ia,wa),wa=da+wa-ea[X],sa.setType(Q.embedType),Ba="subReport"==Q.embedType?{name:Q.name,anchorMode:0,reportInfo:Q.reportInfo}:{chartID:Q.chartID,name:Q.name,type:Q.type,dataSource:Q.dataSource,dataSrc:Q.dataSrc,transformableChart:Q.transformableChart,anchorMode:Q.anchorMode,positionCellLT:Q.positionCellLT,positionCellRB:Q.positionCellRB,
hasLinkage:Q.hasLinkage},sa.setUserObject(Ba),1<Math.ceil((w.getCurrentSheet().getTableRowCount()-w.getCurrentSheet().getHiddenRowCount())/200)&&0<wa&&0<ea[X]-da&&sa.setHeight(ea[X]-da),Q.frozenFixed&&sa.setFrozenFixed(Q.frozenFixed),J.addEmbedObject(sa)}else for(E=0;E<y.length;E++){Q=y[E];a:{Y=J;da=Q;for(wa=0;wa<Y.getEmbedObjects().length;wa++)if((sa=Y.getEmbedObjects()[wa].getUserObject())&&da.name==sa.name){Y=!0;break a}Y=!1}if(!Y){sa=(Q.name+Math.random()).replace(/\./g,"_");var Ba=Q.left;da=
Q.top;var Ia=Q.width;wa=Q.height;sa=new KTEmbedObject(sa,Ba,da,Ia,wa);sa.setType(Q.embedType);Ba="subReport"==Q.embedType?{name:Q.name,anchorMode:0,reportInfo:Q.reportInfo}:{chartID:Q.chartID,name:Q.name,type:Q.type,dataSource:Q.dataSource,dataSrc:Q.dataSrc,transformableChart:Q.transformableChart,anchorMode:Q.anchorMode,positionCellLT:Q.positionCellLT,positionCellRB:Q.positionCellRB,hasLinkage:Q.hasLinkage};sa.setUserObject(Ba);Q.frozenFixed&&sa.setFrozenFixed(Q.frozenFixed);J.addEmbedObject(sa)}}},
x=function(y){var J=w.getCurrentSheet().getTable();if(y=y.mergeBlocks)for(var E=0;E<y.length;E++){var Q=y[E];Q=new KTMergeBlock(Q.rowFrom,Q.rowTo,Q.colFrom,Q.colTo);J.addMergeBlock(Q)}},B=function(y,J){J=J.cellList;for(var E=0;E<J.length;E++){var Q=J[E],Y=y.getCell(Q.col);if("object"==typeof Q.diagonal){var da=new KTDiagonalModel;da.setCrossRows(Q.diagonal.crossRowSum);da.setCrossColumns(Q.diagonal.crossColSum);da.setLinkToRows(Q.diagonal.linkToRows);da.setLinkToColumns(Q.diagonal.linkToCols);for(var wa=
Q.diagonal.triangles,sa=0;sa<wa.length;sa++){var Ba=wa[sa];da.setText(Ba.text,sa);da.setLean(Ba.lean,sa);Ba.style&&da.setStyle(KReportUtil.getCssStyle(Ba.style),sa);if(Ba=wa[sa].slashStyle)Ba=KReportUtil.getCssDiagonal(Ba),da.setSlashBorder(Ba,sa)}Y.setValue(da)}else Q.value&&"null"!=Q.value&&Y.setValue(Q.value);if(!KReportUtil.isNullString(Q.hyperLinks)&&Q.hyperLinks)Y.setUserObject(Q.hyperLinks);else if(!KReportUtil.isNullString(Q.linkModels)&&Q.linkModels){Y.setUserObject(Q.linkModels);var Ia=
new KTStyle;Ia.setColor("#5582f3");Ia.setUnderLine(!0);Ia.setCursor("pointer")}else Q.linkTo&&"null"!=Q.linkTo&&Y.setUserObject(Q.linkTo);"object"==typeof Q.cellTree&&(da=new KTCellTreeModel(Q.cellTree.level,Q.cellTree.horizontal),da.setExpanded(Q.cellTree.isExpanded),da.setHaveHandlerAlways(Q.cellTree.haveHandler),Y.setTreeModel(da));0!=Q.styleID&&((da=w.getCurrentSheet().getStyle(Q.styleID))?Ia&&(da.getColor()||da.setColor("#5582f3"),da.setUnderLine(!0)):da=Ia,Y.setStyle(da),Ia=null,Y.getUserObject()&&
da&&da.setCursor("pointer"));0!=Q.borderStyleID&&Y.setBorder(w.getCurrentSheet().getBorderStyle(Q.borderStyleID))}};p=function(y){y=y.sheetName;l&&null!=l.getOperatingMenu()&&l.getOperatingMenu().closePopMenu();z(y)};var z=function(y,J){var E=w.getSheetByName(y);if(null!=E){X=y;var Q=null;null==E.getTable()?(Q=n.createFacade(function(Y){aa[X]||(aa[X]={});aa[X][0]=Y.tableInfo;w.setCurrentSheet(E);E.fillIn(Y);var da=Y.tableInfo;da.rowList&&r(da);x(Y);b.update(!0);J&&J(E,y)},function(Y,da){return!1}),
Q.switchSheet(K,E.getName(),"false")):(Q=n.createFacade(function(Y){w.setCurrentSheet(E);b.update();J&&J(E,y)},function(Y,da){return!1}),Q.switchSheet(K,E.getName(),"true"))}},M=function(y,J){w.getCurrentSheet().getLoadingFragment()||N()},N=function(){var y=w.getCurrentSheet();y.setLoadingFragment(!0);var J=y.getTable();n.createFacade(function(E){for(var Q=J.getEmbedObjects(),Y=0,da=Q.length;Y<da;Y++)Q[Y].getUserObject().reportInfo&&($(J.getUI()).find("div[id$='"+Q[Y].getId()+"']").remove(),J.removeEmbedObject(Q[Y]));
y.fillInStyle(E);I(E);y.setLoadedRowNum(J.getRowsCount()-1);J.lazyAppendData(!1);y.isNeedLoadTable()||J.removeScrollToBottomListener(M);y.setLoadingFragment(!1)},function(E,Q){y.setLoadingFragment(!1);return!1}).loadFragment(K);J.lazyAppendData(!0)},a=function(){KTDefaultEmbedObjectRender.call(this);this.paintEmbedObject=function(E,Q){var Y=E.getUserObject(),da=E.getType();if("imageChart"===da){var wa='<img src="'+com.kingdee.bos.qing.framework.common.RemoteFramework.getLoadImgUrl(Y.dataSrc,"export");
wa=wa+'" alt="\u56fe\u7247\u4e0d\u5b58\u5728" width="'+(E.getWidth()+'"');wa+=' height="'+E.getHeight()+'"';$(wa+">").appendTo(Q)}else if("flashChart"===da)ra(E,Y,Q);else if("subReport"===da)ha(E,Y,Q);else if("ECHART"===da||"QINGCHART"===da){wa=Q[0];var sa=g(Y.transformableChart);if(sa){for(var Ba=75,Ia=[],Oa=com.kingdee.bos.extreport.runtime.chart.change,Qa=0;Qa<sa.length;Qa++){Ia[Qa]=new Oa.ChartItemModel(sa[Qa],T.getChartAlias(sa[Qa]));var Ma=y(Ia[Qa].getChartAlias());Ma>Ba&&(Ba=Ma)}var Ra=$(wa),
Sa=E.getId();Ra.click(function(){0!==$(".chart-selected").length&&$(".chart-selected").removeClass("chart-selected");0!==$(".chart-change-menu").length&&$(".chart-change-menu").remove();for(var Pa=$("div[id$="+Sa+"]"),Va=[],Ta=0;Ta<Pa.length;Ta++)Va.push($(Pa[Ta])),$(Pa[Ta]).addClass("chart-selected");for(Ta=0;Ta<Va.length;Ta++)Pa=new com.kingdee.bos.qing.ui.component.ComboBox,Pa.setItemModels(Ia),Pa.setCustomPainter(Oa.CustomPainter),Pa.addSelectedChangedListener(function(Ua,Xa,Wa){Ua={};Ua.pageId=
K;Ua.currentSheetName=w.getCurrentSheet().getName();Ua.chartID=Y.chartID;Ua.chartType=Wa.getChartName();Y.type=Ua.chartType;(new com.kingdee.bos.extreport.runtime.chart.change.ChartChangeFacadeImpl).chartChangeLink(Ua,e(E,Y,Va,da))}),Pa.getJqUi().removeClass("sa-ctrl-common-singlelineborder"),Pa=Pa.getJqUi(),Pa.addClass("chart-change-menu"),Pa.css("top",Number(Ra.css("top").slice(0,-2))-25+"px"),Pa.css("left",Ra.css("left")),Pa.css("width",22+Ba+"px"),Pa.appendTo(Va[Ta].parent())})}"ECHART"===da?
q(E,Y,Q):f(E,Y,Q)}};var y=function(E){J||(J=document.createElement("canvas"));var Q=J.getContext("2d");Q.font="12px Microsoft YaHei";return Q.measureText(E).width},J},l,h=function(){try{var y=window.top.document}catch(J){y=window.parent.document}y&&(y.exitFullScreen?y.exitFullScreen():y.webkitCancelFullScreen?y.webkitCancelFullScreen():y.msExitFullscreen?y.msExitFullscreen():y.mozCancelFullScreen&&y.mozCancelFullScreen())},q=function(y,J,E){y=E[0];E=echarts.init(y,null,{renderer:"svg"});var Q={_chartId:J.chartID};
E.on("click",function(da){if(J.hasLinkage){var wa=new com.kingdee.bos.extreport.runtime.linkage.LinkageFacadeImpl,sa={};sa.pageId=K;sa.currentSheetName=w.getCurrentSheet().getName();Q._categoryName=da.name;Q._seriesName=da.seriesName;var Ba=(Ba=da.value)&&Ba instanceof Array?Ba[0]:Ba;Q._seriesValue=Ba;sa.sLinkSrc=JSON.stringify(Q);sa.chartType="EChart";sa.componentIndex=da.componentIndex;sa.dataIndex=da.dataIndex;wa.lookForLinkageTargets(sa,c(sa))}});var Y=(new KDBase64).decode(J.dataSource);(new Function("chartDiv, myChart",
Y))(y,E)},g=function(y){return y?y&&y.split(";"):null},e=function(y,J,E,Q){return function(Y){if(Y){var da=new KDBase64;J.dataSource=da.encode(Y);if("ECHART"==Q)for(Y=0;Y<E.length;Y++)"chart-selected"===$(E[Y]).prop("class")&&q(y,J,E[Y]);else if("QINGCHART"==Q)for(Y=0;Y<E.length;Y++)"chart-selected"===$(E[Y]).prop("class")&&f(y,J,E[Y])}}},f=function(y,J,E){var Q=(new KDBase64).decode(J.dataSource),Y={_chartId:J.chartID};E.empty();E.css({left:y.getX(),top:y.getY(),width:y.getWidth(),height:y.getHeight(),
position:"absolute",border:"1px solid"});(new Function("jqWebReportOwner, funChartDoDraw",Q))(E,k(E,function(da,wa){if(J.hasLinkage){var sa=new com.kingdee.bos.extreport.runtime.linkage.LinkageFacadeImpl,Ba={};Ba.pageId=K;Ba.currentSheetName=w.getCurrentSheet().getName();Y._categoryName=da.getName();Y._seriesName=da.getSeriesName();Y._seriesValue=da.getValue();Ba.sLinkSrc=JSON.stringify(Y);sa.lookForLinkageTargets(Ba,c(Ba,wa))}}))},k=function(y,J){var E=n.getExhibitScene(),Q=E?-1<E.indexOf("mobile"):
!1;return function(Y,da,wa,sa){Y=(new com.kingdee.cosmic.ctrl.rpt.qingchart.agent.QingFactory).createChartAgent(Y);Y.markFromWeb();!0===Q&&Y.markFromMobile();Y.setWebContainer(y);J&&Y.registerClickListener(J);Y.draw(da,wa,sa)}},c=function(y,J){var E=w.getCurrentSheet().getTable().getUI(),Q=event;return function(Y){if(Y&&0!==Y.length){for(var da=[],wa=0;wa<Y.length;wa++){var sa=Y[wa],Ba=sa.hyperLinks;if("innerLink"===sa.linkType)sa=new com.kingdee.bos.extreport.runtime.linkage.LinkageItem,sa.setLinkType("innerLink"),
da.push(sa);else if("outterLink"===sa.linkType)for(var Ia=0;Ia<Ba.length;Ia++)sa=new com.kingdee.bos.extreport.runtime.linkage.LinkageItem,sa.fromJson(Ba[Ia]),sa.setLinkType("outterLink"),da.push(sa)}1!==da.length||"outterLink"!==da[0].getLinkType()&&"EChart"===y.chartType?qa().prepare(da,E,d(y,J),L,Q):d(y,J)(da[0])}}},d=function(y,J){return function(E,Q,Y){var da=!1;"outterLink"===E.getLinkType()?(Y=Fa(E.getArrParam()),Ha(Y,E.getReportId(),E.getReportName(),E.getReportAlias(),E.getSystemId(),E.getDomain(),
function(){Q&&Q.abandon()}),J&&J(!1)):"innerLink"===E.getLinkType()&&(J&&!Y&&(da=J("undefined"==typeof Q)),da||Y||U(y)?G(y):(new com.kingdee.bos.extreport.runtime.linkage.LinkageFacadeImpl).chartInnerLink(y,O(y)))}},m={},V={},F,G=function(y){var J=JSON.parse(y.sLinkSrc)._chartId,E=w.getCurrentSheet().getTable().getEmbedObjects(),Q=w.getCurrentSheet().getTable().isSyncUIWhenModelChanged();w.getCurrentSheet().getTable().setSyncUIWhenModelChanged(!0);var Y=V[J];try{if(!Y)return;for(var da=0;da<E.length;da++){var wa=
E[da].getUserObject();if(!(0>Y.indexOf(wa.name))&&m&&m[wa.name]){var sa=JSON.parse(m[wa.name]);wa.reportInfo=sa.reportInfo;wa.dataSource=sa.dataSource;E[da].setUserObject(wa);delete m[wa.name]}}}catch(Ba){console.error(Ba)}finally{"EChart"===y.chartType&&Y&&0<Y.length&&(F=""),delete V[J]}w.getCurrentSheet().getTable().setSyncUIWhenModelChanged(Q)},O=function(y){return function(J){if(J&&(J.errorMessage&&!KReportUtil.isNullString(J.errorMessage)&&("dsb-mobile"==n.getExhibitScene()?b.showMsg("TOAST",
J.errorMessage):KReportToast.toast({text:J.errorMessage})),J.embedDatas&&"null"!=J.embedDatas)){var E=JSON.parse(y.sLinkSrc)._chartId,Q=w.getCurrentSheet().getTable().getEmbedObjects(),Y=w.getCurrentSheet().getTable().isSyncUIWhenModelChanged();w.getCurrentSheet().getTable().setSyncUIWhenModelChanged(!0);for(var da=0;da<J.embedDatas.length;da++)for(var wa=0;wa<Q.length;wa++){var sa=Q[wa].getUserObject();if(J.embedDatas[da].linkTo===sa.name){V[E]?V[E].push(sa.name):V[E]=[sa.name];var Ba=y;if("EChart"===
Ba.chartType){var Ia=parseInt(Ba.componentIndex);Ba=parseInt(Ba.dataIndex);F=Ia<<8|Ba}m[sa.name]=JSON.stringify(sa);if("subReport"===Q[wa].getType()){sa.reportInfo=J.embedDatas[da].embedData;if(!sa.reportInfo)return;Q[wa].setUserObject(sa)}else if("flashChart"===Q[wa].getType()||"ECHART"===Q[wa].getType()||"QINGCHART"===Q[wa].getType())sa.dataSource=J.embedDatas[da].embedData,Q[wa].setUserObject(sa)}}w.getCurrentSheet().getTable().setSyncUIWhenModelChanged(Y)}}},U=function(y){if("EChart"===y.chartType){var J=
parseInt(y.componentIndex);y=parseInt(y.dataIndex);return F===(J<<8|y)}return!1},qa=function(){l||(l=new com.kingdee.bos.extreport.runtime.popmenu.ui.PopMenuJumpHelper);return l},ra=function(y,J,E){var Q="kext_chart_"+E.attr("id"),Y=FusionCharts(Q);Y?Y.setXMLData(J.dataSource):(Q={id:Q,swfUrl:J.dataSrc,dataSource:J.dataSource,dataFormat:"XML",width:y.getWidth(),height:y.getHeight()},document.createElementNS&&document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect&&(Q.type=J.type),
Y=new FusionCharts(Q),E.css({left:y.getX(),top:y.getY(),width:y.getWidth(),height:y.getHeight()}),E.data("events")&&E.data("events").mousedown||E.mousedown(function(da){na=da}));Y.render(E.attr("id"));b.addFusionChart(Y)},ka,ha=function(y,J,E){E.empty();ka=new Webreport(n,E,v,!0);E.css({left:y.getX(),top:y.getY(),width:y.getWidth(),height:y.getHeight(),zIndex:129});ka.addReportLoadedListener(ba);ka.loadReport(null,J);E=J.reportInfo.currentSheet.tableInfo.colList;var Q=J.reportInfo.currentSheet.tableInfo.rowList,
Y=-2;J=-2;for(var da=0;da<E.length;da++)Y+=E[da].width;for(da=0;da<Q.length;da++)J+=Q[da].height;E=Y!=y.getWidth();y=J!=y.getHeight();E&&y||ka.setScrollBarVisible(E,y)};this.ChartsLinkHandler=function(y){y.pageId=K;y.sheetName=w.getCurrentSheet().getName();y.isPreview=v.isPreview;n.createFacade(function(J){if(J)if(J.errorMessage&&!KReportUtil.isNullString(J.errorMessage)&&("dsb-mobile"==n.getExhibitScene()?b.showMsg("TOAST",J.errorMessage):KReportToast.toast({text:J.errorMessage})),"innerLink"==J.linkType&&
J.embedDatas&&"null"!=J.embedDatas){var E=w.getCurrentSheet().getTable().getEmbedObjects(),Q=w.getCurrentSheet().getTable().isSyncUIWhenModelChanged();w.getCurrentSheet().getTable().setSyncUIWhenModelChanged(!0);for(var Y=0;Y<J.embedDatas.length;Y++)for(var da=0;da<E.length;da++){var wa=E[da].getUserObject();if(J.embedDatas[Y].linkTo==wa.name)if(m[wa.name]=JSON.stringify(wa),"subReport"==E[da].getType()){wa.reportInfo=J.embedDatas[Y].embedData;if(!wa.reportInfo)return;E[da].setUserObject(wa)}else if("flashChart"==
E[da].getType()||"ECHART"==E[da].getType()||"QINGCHART"==E[da].getType())wa.dataSource=J.embedDatas[Y].embedData,E[da].setUserObject(wa)}w.getCurrentSheet().getTable().setSyncUIWhenModelChanged(Q)}else if("outterLink"==J.linkType)if(E=J.hyperLinks,1==E.length)da=Fa(J.hyperLinks[0].paramValues),Ha(da,J.hyperLinks[0].reportId,J.hyperLinks[0].reportName,J.hyperLinks[0].reportAlias,J.hyperLinks[0].systemId,J.hyperLinks[0].domain);else{J=[];Q=w.getCurrentSheet().getTable();for(da=0;da<E.length;da++)Y=
new KTPopupMenuItem(E[da].reportAlias),Y.setUserObject({type:"hyperLink",extReportId:E[da].reportId,name:E[da].reportName,alias:E[da].reportAlias,params:E[da].paramValues,systemId:E[da].systemId,domain:E[da].domain,idList:E[da].idList,url:E[da].url,uiType:E[da].uiType,operateState:E[da].operateState,ingoreParam:!0}),J.push(Y);da=function(sa){sa=sa.getUserObject();if(!KReportUtil.isNullString(sa.extReportId)){var Ba=Fa(sa.params);Ha(Ba,sa.extReportId,sa.name,sa.alias,sa.systemId,sa.domain)}};na?Q.popupMenu(na.pageX,
na.pageY-50,J,da):Q.popupMenu(50,50,J,da)}},function(J,E){return!1}).cellInnerLink(y)};var Z=null,fa=function(y,J){y=w.getCurrentSheet().getTable();var E=J.getCell();if(E&&E.getUserObject()&&(E=E.getUserObject(),J.isLeftButton())){"string"==typeof E&&xa(E);J=[];for(var Q=0;Q<E.length;Q++){var Y=E[Q].hyperLinks;if("outterLink"===E[Q].linkType||"billLink"===E[Q].linkType||"stringLink"===E[Q].linkType)for(var da=0;da<Y.length;da++)if("CUSTOM_HYPER"===Y[da].type){var wa=new com.kingdee.bos.extreport.runtime.linkage.LinkageItem;
wa.fromJson(Y[da]);wa.setLinkType("customHyper");J.push(wa)}else"BILL_HYPER"===Y[da].type?(wa=new com.kingdee.bos.extreport.runtime.linkage.LinkageItem,wa.fromJson(Y[da]),wa.setLinkType("billHyper"),J.push(wa)):"subReport"===Y[da].type?ya(Y[da].cellName):"STRING_LINK"===Y[da].type?L||(wa=new com.kingdee.bos.extreport.runtime.linkage.LinkageItem,wa.fromJson(Y[da]),wa.setLinkType("stringLink"),J.push(wa)):(wa=new com.kingdee.bos.extreport.runtime.linkage.LinkageItem,wa.fromJson(Y[da]),wa.setLinkType("outterLink"),
J.push(wa));else"innerLink"==E[Q].linkType&&(E[Q].params="",Z=E[Q],wa=new com.kingdee.bos.extreport.runtime.linkage.LinkageItem,wa.setLinkType("innerLink"),J.unshift(wa))}0<J.length&&qa().prepare(J,y.getUI(),Da(),L)}},xa=function(y){var J=w.getCurrentSheet(),E=y.lastIndexOf("!");E=y.substring(0,E);J.getName()===E?ua(J,y):L||z(E,function(Y){ua(Y,y)});J=w.getSheetNames();for(var Q=0;Q<J.length;Q++)if(J[Q]===E){b.getSheetSwitcher().generateTabShow(Q);break}},ua=function(y,J){y=y.getTable();var E=J.lastIndexOf("!"),
Q=J.substring(E+1);E=Q.lastIndexOf("_");J=parseInt(Q.substring(0,E));Q=parseInt(Q.substring(E+1));0>J||0>Q||!y||(E=$(y.getUI()),J=y.getColumn(0==y.getColumnsCount()||J<y.getColumnsCount()?J:y.getColumnsCount()-1),Q=y.getRow(0==y.getRowsCount()||Q<y.getRowsCount()?Q:y.getRowsCount()-1),y="#"+KTableUIAbstractView.createCellId(Q,J),(y=E[0].querySelector(y))&&y.scrollIntoView({behavior:"smooth"}))},Da=function(){return function(y,J,E){if("outterLink"===y.getLinkType()){var Q=Fa(y.getArrParam()),Y=y.getReportId();
J=y.getReportName();E=y.getSystemId();var da=y.getDomain();y=y.getReportAlias();Ha(Q,Y,J,y,E,da)}else if("customHyper"===y.getLinkType())Aa(y);else if("billHyper"===y.getLinkType())oa(y);else if("innerLink"===y.getLinkType()){if(null!=Z)if(E){y=w.getCurrentSheet().getTable().getEmbedObjects();J=w.getCurrentSheet().getTable().isSyncUIWhenModelChanged();w.getCurrentSheet().getTable().setSyncUIWhenModelChanged(!0);try{for(E=0;E<y.length;E++)Q=y[E].getUserObject(),m&&m[Q.name]&&(Y=JSON.parse(m[Q.name]),
Q.reportInfo=Y.reportInfo,Q.dataSource=Y.dataSource,y[E].setUserObject(Q),delete m[Q.name])}catch(wa){console.error(wa)}w.getCurrentSheet().getTable().setSyncUIWhenModelChanged(J)}else W.ChartsLinkHandler(Z)}else"stringLink"===y.getLinkType()&&xa(y.getReportName())}},Fa=function(y){for(var J,E,Q={},Y="[",da=y.length-1;0<=da;da--){var wa=new ParamValue,sa=y[da];Q[sa.name]=sa.values;var Ba=sa.name.indexOf("_text");0>Ba&&(J=Q[sa.name+"_text"]);wa.setParamName(sa.name);wa.setDataType(sa.dataType);if(sa.values){sa=
sa.values.split(/\1/);J&&0>=Ba&&(E=J.split(/\1/),J=null);Ba=0;for(var Ia=sa.length;Ba<Ia;Ba++){var Oa=new ValueTextModel;E&&E[Ba]?Oa.setText(E[Ba]):Oa.setText(sa[Ba]);Oa.setValue(sa[Ba]);wa.addValue(Oa)}}else if(J&&0>=Ba){if(E=J.split(/\1/),J=null,E)for(Ba=0;Ba<E.length;Ba++)Oa=new ValueTextModel,E[Ba]&&(Oa.setText(E[Ba]),Oa.setValue(E[Ba])),wa.addValue(Oa)}else Oa=new ValueTextModel,Oa.setText(""),Oa.setValue(""),wa.addValue(Oa);1<Y.length&&(Y+=",",Y+="\r\n");Y+=wa.toJsonString()}return Y+"]"},Ha=
function(y,J,E,Q,Y,da,wa){(Y=y)&&(Y="{"+J+"-"+y+"}");var sa=hex_md5(Y);n.createFacade(function(Ba){var Ia=com.kingdee.bos.qing.common.Util,Oa=com.kingdee.bos.qing.SkinUtil,Qa=com.kingdee.bos.qing.framework.common.TabbedUiUtil,Ma=Ia.decodeParamFromUrl(location.search,"path");Oa=Oa.getUrlParamValue();var Ra=n.getExhibitScene();if(Ra=Ra?-1<Ra.indexOf("mobile"):!1){var Sa=v.urlParams.hyperlinkLevel?parseInt(v.urlParams.hyperlinkLevel):0;Ma=Ia.appendParamToUrl(Ma+"/qing/extreportEntrance.do?isHyperlink=true",
"extReportId",J);Ma=Ia.appendParamToUrl(Ma,"extReportName",E);Ma=Ia.appendParamToUrl(Ma,"paramCacheId",Ba);Ma=Ia.appendParamToUrl(Ma,"exhibitionScene",n.getExhibitScene());Ma=Ia.appendParamToUrl(Ma,"hyperlinkLevel",Sa+1);(Ba=com.kingdee.bos.qing.Seer.getUrlParamValue("appType"))&&(Ma=Ia.appendParamToUrl(Ma,"appType",Ba));(Ba=com.kingdee.bos.qing.Seer.getUrlParamValue("kdcdc"))&&(Ma=Ia.appendParamToUrl(Ma,"kdcdc",Ba))}else Ma=Ia.appendParamToUrl(Ma+"/qing_rpt/extReportHyperLink.do","extReportId",J),
Ma=Ia.appendParamToUrl(Ma,"extReportName",E),Ma=Ia.appendParamToUrl(Ma,"paramCacheId",Ba),Ma=Ia.appendParamToUrl(Ma,"isPreset","100000"==da?!0:!1),Ma=Ia.appendParamToUrl(Ma,"isPreview",v.isPreview);Oa&&(Ma=Ia.appendParamToUrl(Ma,"skin",Oa));h();Ra?b.showLinkReport(Ma):(Oa=window.com.kingdee.bos.qing.AnalysisSceneOuterApi,Ra=Ia.decodeParamFromUrl(location.search,"exhibitionScene"),"report-widget"==Ra&&(Oa=window.parent.com.kingdee.bos.qing.AnalysisSceneOuterApi),Oa&&Oa.getFunOpenNewTab()?(Qa=Oa.getFunOpenNewTab(),
Ma=Ia.appendParamToUrl(Ma,"markId",sa),Oa=Ia.decodeParamFromUrl(location.search,"pageId"),Ma=Ia.appendParamToUrl(Ma,"pageId",Oa),Ma=com.kingdee.bos.qing.integration.PageHelper.getIframeUrl(Ma),Qa&&Qa(Q,Ma,sa,"QingReport")):Qa.openNewTab(Q,Ma,sa));wa&&wa()},function(Ba,Ia){return!1}).cacheParamValues(y)},Aa=function(y){n.createFacade(function(J){var E=com.kingdee.bos.qing.common.Util,Q=com.kingdee.bos.qing.Seer.getUrlParamValue("clientID");E=E.decodeParamFromUrl(location.search,"pageId");J={pageId:E,
cacheId:J,customTargetClass:y.getUrl()};J={methodParams:JSON.stringify(J),methodName:"linkageJump"};h();top.window.invokeCustomEvent?top.window.invokeCustomEvent(E,"",[Q,"QING_ANALYSIS",JSON.stringify(J)]):console.error("not support custom linkage!")},function(J,E){console.error("customHyper execute error, code:"+J+",message:"+E)}).cacheParamValues(y.getParams())},oa=function(y){n.createFacade(function(J){var E=com.kingdee.bos.qing.common.Util,Q=com.kingdee.bos.qing.Seer.getUrlParamValue("clientID");
E=E.decodeParamFromUrl(location.search,"pageId");var Y={UI_APPID:y.getSystemId(),UI_ID:y.getReportId(),UI_DETAIL:"UI_DETAIL"===y.getUiType()?"true":"false",UI_READ_ONLY:"VIEW"===y.getOperateState()?"true":"false"};J={pageId:E,cacheId:J,rptBillInfo:JSON.stringify(Y)};J={methodParams:JSON.stringify(J),methodName:"linkageJump"};h();top.window.invokeCustomEvent?top.window.invokeCustomEvent(E,"",[Q,"QING_ANALYSIS",JSON.stringify(J)]):console.error("not support bill linkage!")},function(J,E){console.error("billHyper execute error, code:"+
J+",message:"+E)}).cacheParamValues(y.getParams())},ya=function(y){y={pageId:K,name:y};KRemoteCaller().setCallback(function(J){ka.loadReport(null,userObject.reportInfo)}).request(_globalUrl+Webreport.CONSTANTS.lazyLoadTree,KReportUtil.toStr(y))},Ja=function(y,J){var E=w.getCurrentSheet().getTable();if(J.isExpanded()){var Q=J.getCell(),Y=Q.getTreeModel();if(Y.isHaveHandlerAlways()){var da=Q.getUserObject();"undefined"==typeof da&&(da={});if(!da.bLoaded&&(E.lazyAppendDataByTree(!0,Y),!Y.isHorizontal())){var wa=
J.getRowIdx(),sa=J.getColIdx();J=E.getRow(wa);y=J.getUserObject();Q=J.getCell(sa);Y=Q.getTreeModel();J=Y.getLevel();var Ba=E.searchMergeBlock(wa,sa),Ia=1;Ba&&(sa=Ba.getRowIdxFrom(),Ba=Ba.getRowIdxTo(),Ia+=Ba-sa);n.createFacade(function(Oa){w.getCurrentSheet().fillInStyle(Oa);var Qa=wa+Ia;if(Oa=Oa.rowList)for(var Ma=w.getCurrentSheet().getTable(),Ra=0;Ra<Oa.length;Ra++){var Sa=Oa[Ra],Pa=Ma.insertRow(Qa+Ra);Pa.setHide(!1);Pa.setHeight(Sa.height);"object"==typeof Sa.style&&Pa.setStyle(KReportUtil.getCssStyle(Sa.style));
"object"==typeof Sa.border&&Pa.setBorder(KReportUtil.getCssBorder(Sa.border));Sa.cellList&&B(Pa,Sa);Pa.setUserObject(Sa.index)}da.bLoaded=!0;Q.setUserObject(da);E.lazyAppendDataByTree(!1,Y)},function(Oa,Qa){return!1}).lazyLoadTree(K,y+Ia,J+1)}}}};this.hasFilter=function(){return ia};this.needFill=function(){return va};this.getReportUI=function(){return b};this.isAllParamsHided=function(){if(b.getFilter())return!b.getFilter().isDispalay()};this.getParams=function(y){y={pageId:K,paramCacheId:y,schemaBiztagId:b.getSchemaBiztagId()};
n.createFacade(function(J){if(J){var E=new com.kingdee.bos.extreport.runtime.model.FilterInfo;E.fromJsonObject(J);b.paintFilterPanel(K,E);E=v.affectedParams;J.hasDefaultEnter||E?(E=J.hasDefaultEnter?ta=J.defaultEnter:J.schemeList[0].caption,S.fireEvent({type:"filter-ready"}),J.associate&&0<Object.keys(J.associate).length?b.switchSchemaByName(J.shareStrategy,E,J.isHyperLink,function(){J.isHyperLink||Ea({type:"query-click",filterHide:!0,hasDefaultEnter:!0})}):(b.switchSchemaByName(J.shareStrategy,E,
J.isHyperLink),J.isHyperLink||Ea({type:"query-click",filterHide:!0,hasDefaultEnter:!0}))):S.fireEvent({type:"filter-ready"})}else S.fireEvent({type:"filter-ready"})},function(J,E){return 8099008===J||8099010<=J&&8099014>=J?(n.showDialogError(E),!0):!1}).getFilter(y)};this.popFilter=function(){b.showOrHideFilterPane(!0)};var Ea=function(y){var J=b.getSelectedSchemeName(),E=b.getDefaultCheckBoxStatus(),Q=v.affectedParams;Q&&Ga(Q);J=b.getFilter().execute(J,E);(E=v.urlParams)||(E={});J.success?(y=$.extend({},
E,J.data,{isPreview:v.isPreview}),Q=n.createFacade(function(Y){b.showOrHideFilterPane(!1);Ca(Y);b.showToolBar&&b.showToolBar()},function(Y,da){return 8099001===Y?(Na().showPrompt(da),!0):8099006===Y?(Na().showPrompt(da),W.popFilter(),!0):8099008===Y||8099010<=Y&&8099014>=Y?(n.showDialogError(da),!0):!1}),window.parent.com.kingdee.bos.qing.workbench&&window.parent.postMessage({messageFrom:"QingRpt",targetWidgetId:E.extreportWidgetId,filterValues:J.data.paramValues},"*"),Q.applyFilter(y)):y.hasDefaultEnter?
W.popFilter():(y.filterHide=!1,(y=n.getExhibitScene())&&-1<y.indexOf("mobile")?b.showMsg("TOAST",J.errMsg):Na().showPrompt(J.errMsg))},Ga=function(y){var J=b.getFilter();y=JSON.parse(y);for(var E in y){var Q=y[E],Y=J.getCtrl(E);if(Y){Y=Y.getParamDescription().getDataType();var da=Q;for(var wa=Y,sa=[],Ba=da.length,Ia=0;Ia<Ba;Ia++){var Oa=da[Ia];Oa=La(Oa,wa);var Qa={};Qa.text=Oa;Qa.value=Oa;sa.push(Qa)}da=sa;if("Date"==Y||"DateTime"==Y||"Time"==Y)Q[0]=da[0].value;J.updateParamByName(E,Q)}}},La=function(y,
J){if(y){var E=0,Q=y.substring(0,4);if(4===y.length)E=12;else if(5===y.length)E=y.substring(4),E=3*parseInt(E);else if(6===y.length)E=y.substring(4);else if(8===y.length){E=y.substring(4,6);var Y=y.substring(6)}var da=parseInt(E);switch(da){case 1:case 3:case 5:case 7:case 8:case 10:case 12:10>da&&(E="0"+da);E=Y?E+"-"+Y:E+"-31";break;case 4:case 6:case 9:case 11:10>da&&(E="0"+da);E=Y?E+"-"+Y:E+"-30";break;case 2:E="0"+da,E=Y?E+"-"+Y:0==parseInt(Q)%4&&0!=parseInt(Q)%400?E+"-29":E+"-28"}if("Date"==
J)return Q+"-"+E;if("DateTime"==J)return Q+"-"+E+" 00:00:00";if("Time"==J)return"00:00:00"}return y},Ca=function(y){D&&(D=!1);ja&&(X=y.currentSheet.name,aa[X]={},pa[X]=[],ea[X]=0,aa[X][0]=y.currentSheet.tableInfo);za=y.refreshRate;w.fillIn(y);var J=y.currentSheet;r(J.tableInfo);x(J);J=y.sheetNameList;for(var E=0;E<J.length;E++)if(J[E]==y.currentSheet.name){b.getSheetSwitcher().setInitTab(E);break}S.fireEvent({type:"report-loaded"})},Ka=function(y){n.createFacade(function(J){b.getFilter().setSchemeList(J);
b.paintFilterPanel(K,b.getFilter())},function(J,E){return!1}).getFilterSchemes(K,y.flag)},Na=function(){var y=com.kingdee.bos.qing.ui.component.MessageCurtain;P||(P=new y,P.getJqUi().appendTo(document.body));return P};b.addUpdateDataListener(function(){ia?Ea():W.loadReport(ca,null)});L||(b.addChangeSheetListener(p),b.addApplyFilterListener(Ea),b.addStrategyItemListener(Ka))}
Webreport.CONSTANTS={unifiedEntrance:"?webJson=",getFilter:"getFilter",loadReport:"loadReport",loadFragment:"loadFragment",lazyLoadTree:"lazyLoadTree",applyFilter:"applyFilter",switchSheet:"switchSheet",cacheParamValues:"cacheParamValues",getFilterSchemes:"getFilterSchemes",delFilterScheme:"delFilterScheme",saveFilterScheme:"saveFilterScheme",pingReport:"ping"};(function(){function n(H,r){b.call(this);var I,x,B=this,z=B.protectedMethod,M,N,a,l;this.setSwitchCallBack=function(q){N=q};this.setOpFuns=function(q){M=q};this.paint=function(q){I=$("<div>");I.css({height:"30px",width:"100%"});x=$("<div>");x.addClass("extreport-card-filter-allscheme");var g=$("<span>");g.addClass("extreport-card-filter-scheme-lable");g.text(t.get("commonUsedSchema","\u5e38\u7528\u65b9\u6848\uff1a"));var e=z.getSchemas();a=new la;a.setItemModels(e);a.setSelected(e[0]);z.updateCurrent(e[0]);
a.setCustomPainter(function(f,k,c){1<e.length&&k.css("height","25px");k.text(c.getCaption())});a.setTooltips(a.getSelected().getCaption());a.addSelectedChangedListener(function(f,k,c){B.switchSchema(c)});l=a.getJqUi();l.addClass("extreport-card-filter-scheme-combobox");g.appendTo(x);l.appendTo(x);x.appendTo(I);r&&(g=$("<div>"),g.addClass("extreport-card-filter-all-toolbar"),h(t.get("remove","\u5220\u9664"),g,M.remove),h(t.get("saveAs","\u53e6\u5b58\u4e3a"),g,function(){M.saveAs();H&&$(".sa-ctrl-dialog").css("top",
"200px")}),h(t.get("save","\u4fdd\u5b58"),g,function(){M.save(B.getCurrentSchema().getCaption())}),g.appendTo(I));I.appendTo(q)};this.switchSchema=function(q,g){q||(q=B.getCurrentSchema());a.setSelected(q);a.setTooltips(a.getSelected().getCaption());z.updateCurrent(q);N&&N(q,g)};this.updateListUi=function(){var q=z.getSchemas();a.setItemModels(q);a.setSelected(B.getCurrentSchema());a.setTooltips(a.getSelected().getCaption())};var h=function(q,g,e){var f=$("<div>");f.addClass("extreport-card-filter-toolbar-common");
f.text(q);f.on("click",e);f.appendTo(g)}}function p(H,r,I,x,B){va.call(this,H,B);var z=this,M,N=!1,a=new KRListenerProxy;this.initUi=function(){throw Error("Overwrite me!");};this.paintFilterPanel=function(){throw Error("Overwrite me!");};this.getSchemaBiztagId=function(){return null};this.showOrHideFilterPane=function(q){throw Error("Overwrite me!");};this.syncHeight=function(){};this.getFilter=function(){return M.getFilter()};this.getSelectedSchemeName=function(){return M.getCurrentSelScheme().getCaption()};
this.getDefaultCheckBoxStatus=function(){return M.getDefaultCheckBoxStatus()};this.switchSchemaByName=function(q,g,e,f){M.switchSchemaByName(g,f)};this.addApplyFilterListener=function(q){a.addListener("query-click",q)};this.addUpdateDataListener=function(q){a.addListener("update-click",q)};this.addStrategyItemListener=function(q){a.addListener("strategy-click",q)};this.protectedDoBeforeFullscreen=function(){return!0};this.protectedFullScreenChanged=function(q){throw Error("Implement me!");};var l=
function(q){if(q==r[0])N=!0,q=r.parent(),r.data("myParent",q),r.data("myZIndex",r.css("z-index")),r.detach(),r.appendTo($(document.body)),r.addClass("extreport-card-fullscreen"),r.css("z-index",128);else{N=!1;za.removeChangedListener(l);q=r.data("myParent");var g=r.data("myZIndex");r.removeData("myParent");r.detach();r.appendTo(q);r.removeClass("extreport-card-fullscreen");r.css("z-index",g)}z.protectedFullScreenChanged(N)},h=function(q,g,e,f){var k=q.data("menu");if(k&&k.isShowing())q.data("menu",
null),k.hide();else{k=new X;k.setModel(e());k.setHideListener(function(){q.data("menu",null)});q.data("menu",k);e=q.prop("offsetLeft");var c=q.prop("offsetHeight")+q.prop("offsetTop");k.show(f,e,c,g,!0)}};this.protectedMethods.doRefresh=function(){var q=location.href;try{window.frameElement&&(q=window.frameElement.src)}catch(g){}location.replace(q)};this.protectedMethods.doFullScreen=function(){z.protectedDoBeforeFullscreen()&&(za.removeChangedListener(l),za.addChangedListener(l),N?za.exit():za.request(r[0]))};
this.protectedMethods.doExport=function(q){var g=com.kingdee.bos.extreport.runtime.exportmanage.ExportMenuCreator,e=com.kingdee.bos.qing.ui.component.ToolbarButton,f=com.kingdee.bos.extreport.manage.common.Icons,k={snapId:aa.getUrlParamValue("snapId"),publishId:aa.getUrlParamValue("publishId"),snapGroupType:aa.getUrlParamValue("snapGroupType"),extReportId:aa.getUrlParamValue("extReportId"),isPreview:aa.getUrlParamValue("isPreview"),isHyperlink:aa.getUrlParamValue("isHyperlink"),currentUserId:x.currentUserId,
exportSetting:x.exportSetting,exportConfig:"",isMegerExport:!0,createFacade:I.createFacade,createJsonModelWrapper:function(){var c={};c.pageId=x.pageId;c.exportSetting=this.exportSetting;c.exportConfig=this.exportConfig;c.isMegerExport=this.isMegerExport;return c},getExportSetting:function(){return this.exportSetting},setExportSetting:function(c){this.exportSetting=c},getExportConfig:function(){return this.exportConfig},setExportConfig:function(c){this.exportConfig=c},getMegerExport:function(){return this.isMegerExport},
setMegerExport:function(c){this.isMegerExport=c}};g=(new g).create(x.hasExportPermission,x.hasPrintPermission,k,function(c,d,m){var V=new e;V.setIconSetter(function(F,G){f.background(F,G)});V.setIconName(d);V.setText(m);V.setTooltips(m);V.setShowDropdownArrow(!0);V.addActionListener(function(F,G){h(F.getJqUi(),G,function(){return c},q)});V.getJqUi().appendTo(q);return V},function(c,d){return t.get(c,d)},x.rptName);for(k=0;k<g.length;k++)g[k].setEnabled(!0)};this.protectedMethods.queryData=function(q){a.fireEvent({type:"query-click",
filterHide:!0});q()};this.protectedMethods.updateData=function(q){a.fireEvent({type:"update-click"});q()};this.protectedMethods.setSchemaManagePanel=function(q){M=q}}function v(H,r,I,x,B){p.call(this,H,r,I,x,B);var z=this.protectedMethods,M=this,N,a,l,h,q,g,e,f,k,c,d=x.isHasFilter;this.initUi=function(){N=$("<div>");N.appendTo(r);ta.layoutCtrlWithLRTB(N,0,0,null,0,0,null);!B&&N.addClass("extreport-reportui-container");z.addReportReadyListener(G);h=z.getSheetContainer(N);!B&&h.css("background","#e2e7ef");
r.css("background-color","#ffffff")};this.paintFilterPanel=function(Z,fa){m(Z,fa);d&&!B&&f&&M.getFilter().isDispalay()&&(a.appendTo(N),l&&(l.remove(),l=null),l=f.getJqUi(),ra(f.getCurrentSchemaInfo().getCaption()),l.appendTo(a),M.showOrHideFilterPane(!1))};this.resize=function(Z){r.height(Z);M.adjustSheetContainerSize();f&&f.getJqUi();M.syncHeight()};this.getSchemaBiztagId=function(){var Z=aa.getUrlParamValue("publishId");return Z?Z:aa.getUrlParamValue("extReportId")};this.showOrHideFilterPane=function(Z){var fa=
g.find(".runtime-filter-btn-spread-text");if(Z){g.removeClass("runtime-filter-btn-spread");g.addClass("runtime-filter-btn-pack-up");e.removeClass("runtime-filter-btn-spread-icon");e.addClass("runtime-filter-btn-pack-up-icon");var xa=t.get("packUpFilter","\u6536\u8d77\u8fc7\u6ee4")}else g.removeClass("runtime-filter-btn-pack-up"),g.addClass("runtime-filter-btn-spread"),e.removeClass("runtime-filter-btn-pack-up-icon"),e.addClass("runtime-filter-btn-spread-icon"),xa=t.get("spreadFilter","\u5c55\u5f00\u8fc7\u6ee4");
fa.text(xa);f&&f.spreadOrPackUp(Z);M.syncHeight();M.adjustSheetContainerSize()};this.syncHeight=function(){var Z=0;if(!B){var fa=l&&l[0].offsetHeight;c&&c.getJqUi();Z=f?45:0;l&&f.isDisplay()?Z=Z+fa+45:x.isHasFilter||(Z+=45);fa=r.find("#previewLimitShowPrompt");fa.css("display")&&"none"!=fa.css("display")&&(fa.css("top",Z),Z+=45)}h.css("top",Z+"px")};this.protectedFullScreenChanged=function(Z){console.log("do nothing")};this.showToolBar=function(){c&&c.getJqUi().show()};var m=function(Z,fa){k=new C;
f=new S;z.setSchemaManagePanel(f);f.setSchemaListPanel(k);f.setGlobal(I);f.setFunExecute(function(){z.queryData(ha)});f.setFunSwitchSchemaCallBack(ra);a=$("<div>");a.addClass("runtime-filter-container-rpt");f.setModels(Z,fa,M.getSchemaBiztagId());f.getJqUi();V(a)},V=function(Z){var fa=$("<div>");fa.addClass("runtime-filter-menu");var xa=$("<div>");xa.addClass("runtime-filter-tips");xa.appendTo(fa);var ua=$("<div>");ua.addClass("runtime-filter-tips-main");ua.text(t.get("filterCondition","\u7b5b\u9009\u6761\u4ef6"));
ua.appendTo(xa);q=$("<div>");q.addClass("runtime-filter-tips-sub");q.appendTo(xa);g=$("<div>");g.addClass("runtime-filter-btn-spread");g.appendTo(fa);e=$("<div>");e.addClass("runtime-filter-btn-spread-icon");e.appendTo(g);xa=$("<div>");xa.addClass("runtime-filter-btn-spread-text");xa.text(t.get("spreadFilter","\u5c55\u5f00\u8fc7\u6ee4"));xa.appendTo(g);g.on("click",F);fa.appendTo(Z)},F=function(){var Z=0!==g.find(".runtime-filter-btn-spread-icon").length;M.showOrHideFilterPane(Z)},G=function(){if(!B&&
!c){c=new ea;var Z=c.getJqUi();Z.addClass("runtime-toolbar");z.doExport(Z);if(x.hasSaveSnapshotPermission)if(x.snapId){var fa=t.get("edit","\u7f16\u8f91");c.createButton(Z,!1,qa,fa,fa);fa=t.get("saveAs","\u53e6\u5b58\u4e3a");c.createButton(Z,!1,U,fa,fa)}else fa=t.get("saveSnap","\u4fdd\u5b58\u5feb\u7167"),c.createButton(Z,!1,U,fa,fa);x.snapId?c.createButton(Z,!1,z.doRefresh,t.get("refresh","\u5237\u65b0"),t.get("refresh","\u5237\u65b0")):c.createButton(Z,!1,function(){z.updateData(ha)},t.get("refresh",
"\u5237\u65b0"),t.get("refresh","\u5237\u65b0"));c.createButton(Z,!1,ka,t.get("close","\u9000\u51fa"),t.get("close","\u9000\u51fa"));O(Z);Z.appendTo(N);M.syncHeight()}},O=function(Z){var fa=new T,xa=[];if(x.creatorName&&x.createTime){var ua=new u(t.get("creator","\u521b\u5efa\u4eba\uff1a"),x.creatorName),Da=new u(t.get("createTime","\u521b\u5efa\u65f6\u95f4\uff1a"),x.createTime);xa.push(ua);xa.push(Da)}else ua=new u(t.get("extReportDeleted","\u8be5\u62a5\u8868\u5df2\u88ab\u5220\u9664"),null),xa.push(ua);
fa.setTips(xa);fa.setRight(25);fa=fa.getJqUi();fa.css({top:"unset","margin-top":"15px"});fa.appendTo(Z)},U=function(){var Z=function(fa){I.getMessageCurtain().showSuccess("\u201c"+fa.getSnapName()+"\u201d"+t.get("saveSnapSuccess","\u4fdd\u5b58\u5feb\u7167\u6210\u529f\u3002"),2E3);com.kingdee.bos.extreport.manage.common.UserOperationReporter.occur(com.kingdee.bos.extreport.manage.common.UserOperationReporter.SAVE_SNAP_TO_TYPE,fa.getSnapName())};I.createFacade(function(fa){fa=new SaveSnapDialog(SaveSnapSourceType.RUNTIME,
t.get("saveSnap","\u4fdd\u5b58\u5feb\u7167"),x);fa.addSuccessCallback(Z);fa.showDialog()},function(fa,xa){8099101==fa?I.getMessageCurtain().showPrompt(t.get("querySnapCenterPermExp","\u67e5\u8be2\u5feb\u7167\u4e2d\u5fc3\u6743\u9650\u5f02\u5e38\u3002"),2E3):8099102==fa?I.getMessageCurtain().showPrompt(t.get("noQuerySnapCenterPermExp","\u5f53\u524d\u7528\u6237\u6ca1\u6709\u5feb\u7167\u4e2d\u5fc3\u6743\u9650\u3002"),2E3):I.getMessageCurtain().showPrompt(xa,2E3);return!0}).checkSnapOperPermission(!0,
!0,x.snapId)},qa=function(){I.createFacade(function(Z){Z=com.kingdee.bos.extreport.launcher.Launcher;Z.addRefreshListener(function(){location.replace(location.href)});Z.sendLaunchxletCommandOpenExtReportSnapEditor(x.extReportId,x.snapId,x.snapName,function(){if("A"==aa.getUrlParamValue("snapGroupType")){var fa=com.kingdee.bos.qing.behavior.BehaviorManager,xa=D.createUUID();fa.initAccessRecordParams(x.snapId,xa,fa.SourceType.QING_SNAPSHOT,fa.AppType.QING_RPT);fa.recordResourceOperation(fa.OperationType.QING_SNAPSHOT_EDIT)}})},
function(Z,fa){I.getMessageCurtain().showPrompt(fa,2E3);return!0}).checkSnapOperPermission(!0,!0,x.snapId)},ra=function(Z){q.text(t.get("currentSchema","\u5f53\u524d\u65b9\u6848\uff1a")+Z)},ka=function(){var Z=window.com.kingdee.bos.qing.AnalysisSceneOuterApi;Z&&(Z.inside.setDirtyChecker(function(){return!1}),Z.inside.setBeforeClosing(function(){return TabStatusHelper.setTabStatus(!1)}));Z?Z.inside.requestClosing():com.kingdee.bos.qing.framework.common.TabbedUiUtil.closeCurrentTab()},ha=function(){M.syncHeight()}}
function L(H,r,I,x,B){K.call(this,H,r,I,x,B);var z=this.protectedMethods,M;this.getSchemaBiztagId=function(){return aa.getUrlParamValue("publishId")};this.protectedCreateHeadbar=function(a,l){l=a;l.addClass("extreport-card-headbar");a=$("<div>");a.appendTo(l);a.addClass("extreport-card-headbar-title");z.createHeadbarIcon(l,"others",t.get("othersMore","\u66f4\u591a"),24,z.doOthersClicked);z.createHeadbarIcon(l,"filter",t.get("filter","\u8fc7\u6ee4"),24,z.doClickFilterBtn)};this.protectedGetInnerPane=
function(a,l){if(!M){M=$("<div>");M.addClass("extreport-card-headbar-otherbtn-pane");var h=$("<div>");h.addClass("extreport-card-headbar-inner-btn extreport-card-activebutton");w.background(h,"refresh");h.attr("title",t.get("refresh","\u5237\u65b0"));h.on("click",N);h.appendTo(M);a.push(h);M.appendTo(l)}return M};this.protectedFullScreenChanged=function(a){};this.protectedDoBeforeFullscreen=function(){};var N=function(){}}function R(H,r,I,x,B){}function ba(H,r,I,x,B){K.call(this,H,r,I,x,B);ca.call(this);
var z=this.protectedMethods,M,N,a,l,h,q=[],g=this.getExtreportWidgetInfo();window.addEventListener("message",function(k){k=k.data;k.extreportCardMsg&&"updateTitle"==k.extreportCardMsg&&(k=k.param,M.text(k),f(k?!0:!1))});this.getSchemaBiztagId=function(){return z.getSchemaBiztagId()};this.protectedFullScreenChanged=function(k){k?(w.background(h,"quitFullscreen"),h.attr("title",t.get("exitFullScreen","\u9000\u51fa\u5168\u5c4f"))):(w.background(h,"fullscreen"),h.attr("title",t.get("fullScreen","\u5168\u5c4f")))};
this.protectedDoBeforeFullscreen=function(){if(g.isDesignTime()){var k=new na;k.setText(t.get("canFullscreenAfterPub","\u5168\u5c4f\uff0c\u53d1\u5e03\u540e\u751f\u6548\u3002"));k.show(h,!0);return!1}return!0};this.protectedCreateHeadbar=function(k,c){N=c;a=k;N.addClass("extreport-card-headbar");M=$("<div>");M.appendTo(N);M.addClass("extreport-card-headbar-title");k=aa.getUrlParamValue("extReportName");M.text(k);f(k?!0:!1);k=z.createHeadbarIcon(N,"others",t.get("othersMore","\u66f4\u591a"),24,z.doOthersClicked);
c=z.createHeadbarIcon(N,"filter",t.get("filter","\u8fc7\u6ee4"),24,z.doClickFilterBtn);var d=z.createHeadbarIcon(N,"refresh",t.get("refresh","\u5237\u65b0"),24,z.reportWidgetRefresh);q.push(k);q.push(c);q.push(d);g.isInWidgetPanel()&&e();z.decorateCard(r,M)};this.protectedGetInnerPane=function(k,c){l||(l=$("<div>"),l.addClass("extreport-card-headbar-otherbtn-pane"),h=$("<div>"),h.addClass("extreport-card-headbar-inner-btn extreport-card-activebutton"),w.background(h,"fullscreen"),h.attr("title",t.get("fullScreen",
"\u5168\u5c4f")),h.on("click",z.doFullScreen),h.appendTo(l),k.push(h),l.appendTo(c));g&&g.isInWidgetPanel()&&l.css("right","0px");return l};var e=function(){M.hide();N.css("height","18px");q.forEach(function(k){k.css({height:"18px","margin-right":"0px",top:"0px"})});a.css("top","18px")},f=function(k){k?(N.css("height","40px"),q.forEach(function(c){c.css("top","12px")}),a.css("top","40px")):(N.css("height","20px"),q.forEach(function(c){c.css("top","2px")}),a.css("top","20px"))}}function W(H,r,I,x,
B){A.call(this,H,r,I,x,B);ca.call(this,H,r,I,x,B);var z=this.protectedMethods,M=this,N,a,l,h=M.getExtreportWidgetInfo(),q=I.islinkReport(),g=!1;this.getSchemaBiztagId=function(){return z.getSchemaBiztagId()};this.protectedInitUi=function(f,k){if(!N){N=new com.kingdee.bos.qing.dsb.widget.mobile.WidgetCtrlTitleBar;var c=h?!h.isInWidgetPanel():!0;N.setShowTitleAndDesc(c);c=q?x.rptName:h.getCardName();N.setTitle(c);N.setRotateUIListener(function(m){});var d;N.setFullscreenListener(function(m){z.postFullscreenMsg("requestWidgetFullscreen");
g=!0;var V=aa.getUrlParamValue("extreportWidgetId");V=$("body",parent.document).find("#"+V);V.addClass("extreport-card-iframe-fullscreen");V=V.parents();for(var F=0;F<V.length;F++){var G=$(V[F]).attr("name");!G||-1==G.indexOf("QingReport")&&-1==G.indexOf("Panel")&&-1==G.indexOf("TabbedContainer")||$(V[F]).addClass("extreport-card-parent-fullscreen");G&&-1!=G.indexOf("TabbedContainer")&&(V[F].style.overflow="visible")}$("body",parent.document).css("-webkit-overflow-scrolling","auto");z.updateUiWhenFullscreen(!0);
l=$("<div>");ta.layoutCtrlWithLRTB(l,0,0,null,null,null,44);ta.layoutCtrlWithLRTB(a,30,null,null,8,null,null);l.appendTo(f);m(l);z.undecorateCard(f);f.css("background-color",z.getBackgroundColor());m=d;if(V=window.parent.document)(F=V.getElementsByClassName("sa-mobile-lapp-content"))&&0<F.length&&(m=F[0].style.top,F[0].style.top="0"),(F=V.getElementsByClassName("lapp-head-bar"))&&0!=F.length||(F=V.getElementsByClassName("lapp-secondary-menubar")),F&&0<F.length&&(F[0].style.display="none");d=m});N.setCancelFullscreenListener(function(){z.postFullscreenMsg("exitWidgetFullscreen");
g=!1;var m=$("body",parent.document).find("#"+h.getIframeId());m.removeClass("extreport-card-iframe-fullscreen");m=m.parents();for(var V=0;V<m.length;V++){var F=$(m[V]).attr("name");!F||-1==F.indexOf("QingReport")&&-1==F.indexOf("Panel")&&-1==F.indexOf("TabbedContainer")||$(m[V]).removeClass("extreport-card-parent-fullscreen");F&&-1!=F.indexOf("TabbedContainer")&&(m[V].style.overflow="hidden")}$("body",parent.document).css("-webkit-overflow-scrolling","touch");z.updateUiWhenFullscreen(!1);m=h.isInWidgetPanel()?
-3:5;ta.layoutCtrlWithLRTB(a,20,null,null,m,null,null);l.remove();z.undecorateCard(f);z.decorateCard(f)});N.setBackListener(function(){var m=d,V=window.parent.document;if(V){var F=V.getElementsByClassName("sa-mobile-lapp-content");F&&0<F.length&&(F[0].style.top=m);(m=V.getElementsByClassName("lapp-head-bar"))&&0!=m.length||(m=V.getElementsByClassName("lapp-secondary-menubar"));m&&0<m.length&&(m[0].style.display="")}if(q)return window.parent.postMessage({extreportCardMsg:"destoryLinkIframe"},"*"),
!0;M.showOrHideFilterPane(!1);z.createMobileCardMask();return!1});N.setMenuToolItemCreator(e);N.setOpenMenuListener(z.updateUiWhenTitleMenuOpen);a=N.getJqUi();a.prependTo(f);z.decorateCard(f,a);h&&h.isInWidgetPanel()?(ta.layoutCtrlWithLRTB(a,20,0,null,-3,null,30),k.addClass("extreport-card-content-mobile-in-panel")):ta.layoutCtrlWithLRTB(a,20,20,null,5,null,30);q&&(N.doFullscreen(),z.updateUiWhenFullscreen(!0))}};this.protectedGetFullscreenState=function(){return g};this.protectedDoFullscreen=function(){N.doFullscreen();
N.doClickMenu();z.updateUiWhenFullscreen(!0)};var e=function(f){f.addButtonInMenu("icon_filter",t.get("filter","\u8fc7\u6ee4"),z.toggleFilterPanel,80)}}function ma(H,r,I,x,B){ba.call(this,H,r,I,x,B);var z=this.protectedMethods,M=this,N,a,l,h,q,g,e=M.getExtreportWidgetInfo(),f,k,c,d="true"===aa.getUrlParamValue("isFullScreen"),m=aa.getUrlParamValue("extReportName");window.addEventListener("message",function(ra){ra=ra.data;if(ra.workbenchExtReportCardMsg)if("updateCardTitle"===ra.workbenchExtReportCardMsg)l.text(ra.param),
qa();else if("refreshCard"===ra.workbenchExtReportCardMsg&&(ra=aa.getUrlParamValue("extreportWidgetId"))){ra=$("body",parent.document).find("#"+ra);var ka=ra.attr("src");ka=ka.replace("isFullScreen=false","isFullScreen="+d).replace("isFullScreen=true","isFullScreen="+d).replace("extReportName="+window.encodeURIComponent(m),"extReportName="+window.encodeURIComponent(l.text()));ra.attr("src",ka);window.location.href=ka}});this.protectedCreateHeadbar=function(ra,ka){N=ka;a=ra;N.addClass("extreport-card-headbar");
a.addClass("extreport-workbench-card-content");ra=$("<div>");ka=$("<div>");w.background(ka,"extreport");ka.addClass("extreport-workbench-card-icon");ka.appendTo(ra);l=$("<div>");l.appendTo(ra);l.addClass("extreport-workbench-card-headbar-title");ka=aa.getUrlParamValue("extReportName");l.text(ka);g=$("<div/>");g.addClass("workbench-card-title-edit-icon");w.backgroundWithHover(g,"card_edit");g.on("click",U);g.hide();ra.on("mouseover",function(ha){g.show()});ra.on("mouseout",function(ha){g.hide()});
g.appendTo(ra);ra.appendTo(N);f=V(N,"btn-more",t.get("othersMore","\u66f4\u591a"),30,z.doOthersClicked);f.on("mouseover",function(ha){w.background(f,"btn-more-on")});f.on("mouseout",function(ha){w.background(f,"btn-more")});k=V(N,"icon_delete",t.get("remove","\u5220\u9664"),5,G);k.on("mouseover",function(ha){w.background(k,"icon_delete_hover")});k.on("mouseout",function(ha){w.background(k,"icon_delete")});c=V(N,"btn-filter",t.get("filter","\u8fc7\u6ee4"),55,O);c.on("mouseover",function(ha){w.background(c,
"btn-filter-on")});c.on("mouseout",function(ha){w.background(c,"btn-filter")});if(r)$(r).on("mouseenter",function(ha){d&&k.hide()});$(document.body).on("mouseenter",function(ha){f.show();k.show();c.show();d&&k.hide()});$(document.body).on("mouseleave",function(){f.hide();k.hide();c.hide()});f.hide();k.hide();c.hide();z.decorateCard(r,l);qa()};var V=function(ra,ka,ha,Z,fa){var xa=$("<div>");xa.addClass("workbench-extreport-card-headbar-btn");w.background(xa,ka);xa.css("right",Z);xa.attr("title",ha);
xa.on("click",fa);xa.appendTo(ra);M.getHeadbarBtn().push(xa);return xa};this.protectedGetInnerPane=function(ra,ka){if(!h){h=$("<div>");h.addClass("extreport-workbench-card-headbar-otherbtn-pane");q=$("<div>");q.addClass("extreport-card-headbar-inner-btn extreport-card-activebutton");w.background(q,d?"quitFullscreen":"fullscreen");q.css("transform","scale(1.2)");q.attr("title",d?t.get("exitFullScreen","\u9000\u51fa\u5168\u5c4f"):t.get("fullScreen","\u5168\u5c4f"));q.on("click",z.doFullScreen);q.appendTo(h);
var ha=$("<div>");ha.addClass("extreport-card-headbar-inner-btn extreport-card-activebutton");w.background(ha,"btn-refresh");ha.attr("title",t.get("refresh","\u5237\u65b0"));ha.on("click",F);ha.appendTo(h);ra.push(ha);ra.push(q);h.appendTo(ka);d&&z.doFullScreen()}return h};this.protectedFullScreenChanged=function(ra){(d=ra)?(w.background(q,"quitFullscreen"),q.attr("title",t.get("exitFullScreen","\u9000\u51fa\u5168\u5c4f")),h.removeClass("extreport-workbench-card-headbar-otherbtn-pane"),h.addClass("extreport-workbench-card-headbar-otherbtn-pane-fullscreen")):
(w.background(q,"fullscreen"),q.attr("title",t.get("fullScreen","\u5168\u5c4f")),h.removeClass("extreport-workbench-card-headbar-otherbtn-pane-fullscreen"),h.addClass("extreport-workbench-card-headbar-otherbtn-pane"));d?(k.hide(),f.css("right","5px"),c.css("right","30px")):(f.css("right","30px"),c.css("right","55px"))};var F=function(){window.parent.postMessage({operation:"refreshCardTitle",targetWidgetId:e.getIframeId()},"*")},G=function(){window.parent.postMessage({operation:"remove",targetWidgetId:e.getIframeId()},
"*")},O=function(){z.doClickFilterBtn();d&&k.hide()},U=function(){window.parent.postMessage({operation:"showEditTitleDialog",targetWidgetId:e.getIframeId()},"*")},qa=function(){var ra=l.offset().left+l.width();window.parent.postMessage({operation:"getCardEditIconPosition",targetWidgetId:e.getIframeId(),value:ra},"*")}}function K(H,r,I,x,B){p.call(this,H,r,I,x,B);var z=this.protectedMethods,M=this,N,a,l,h,q,g=[],e=[],f=x.isHasFilter,k=!1;this.initUi=function(){z.setCardMode();r.css({width:"100%",height:"100%"});
r.on("mouseenter",F);r.on("mouseleave",G);N=$("<div>");N.addClass("extreport-card-content");if(B)N.addClass("extreport-card-content-subreport");else{var O=$("<div>");O.prependTo(r);M.protectedCreateHeadbar(N,O);O=(O=O.css("height"))?parseInt(O,10):0;N.css("top",O+4);G()}N.appendTo(r);z.getSheetContainer(N);f&&c()};this.paintFilterPanel=function(O,U){l&&(l.remove(),l=null);h.setModels(O,U,M.getSchemaBiztagId());l=h.getJqUi();q.switchSchema();l.appendTo(a);l.addClass("extreport-card-schema-manage-panel");
h.getJqFilterPanel().css({"margin-bottom":"15px"});M.syncHeight()};this.resize=function(O){r.height(O);M.adjustSheetContainerSize()};this.showOrHideFilterPane=function(O){a&&((k=O)?(O=a.css("height"),a.css({height:0}),a.show(),a.animate({height:O},200),F()):a.hide())};this.getHeadbarBtn=function(){return g};this.protectedCreateHeadbar=function(O,U){throw Error("Implement me!");};this.protectedGetInnerPane=function(O,U){throw Error("Implement me!");};var c=function(){a=$("<div>");a.css({"z-index":999,
"min-width":"330px"});a.appendTo(r);ta.layoutCtrlWithLRTB(a,0,0,null,0,0,null);a.appendTo(N);a.hide();var O=D.decodeParamFromUrl(window.location.search,"hasSchemeEditPerm");q=new n(!1,"false"===O?!1:!0);h=new S;z.setSchemaManagePanel(h);h.setSchemaListPanel(q);h.setGlobal(I);h.setFunExecute(function(){z.queryData(d)});h.setFunSwitchSchemaCallBack(function(){})},d=function(){},m=function(){r.parent().off("click",V);M.protectedGetInnerPane(e,r).hide()},V=function(O){O.target!=g[0][0]&&m()},F=function(O){for(O=
0;O<g.length;O++)g[O].show()},G=function(O){if(!k){for(O=0;O<g.length;O++)g[O].hide();m();M.showOrHideFilterPane(!1)}};this.protectedMethods.createHeadbarIcon=function(O,U,qa,ra,ka){var ha=$("<div>");ha.addClass("extreport-card-headbar-btn");w.background(ha,U);ha.css("right",ra*g.length);ha.attr("title",qa);ha.on("click",ka);ha.appendTo(O);g.push(ha);return ha};this.protectedMethods.doOthersClicked=function(){if(M.protectedGetInnerPane(e,r).is(":visible"))m();else{r.parent().on("click",V);for(var O=
g[0],U=O.prop("offsetWidth"),qa=O.prop("offsetHeight"),ra=.5*U,ka=.25*qa,ha=e.length-1;0<=ha;ha--){var Z=e[ha];Z.css("top",ka);Z.css("right",ra);ra+=1.5*U}U=ra;O=O.prop("offsetTop")+1.5*qa;qa*=1.5;ra=M.protectedGetInnerPane(e,r);ta.layoutCtrlWithLRTB(ra,null,19,U,O,null,qa);M.protectedGetInnerPane(e,r).show()}};this.protectedMethods.doClickFilterBtn=function(){f?(k=!k,M.showOrHideFilterPane(k)):I.getMessageCurtain().showPrompt(t.get("noFilterCurtain","\u672a\u8bbe\u7f6e\u8fc7\u6ee4\u5668\u3002"))}}
function A(H,r,I,x,B){p.call(this,H,r,I,x,B);var z=this.protectedMethods,M=this,N,a,l,h,q,g,e,f=x.isHasFilter,k=!1,c=I.islinkReport(),d=[],m,V=!1,F=D.decodeParamFromUrl(parent.location.href,"time");this.initUi=function(){var Z=com.kingdee.bos.qing.CodeLoader;Z.setCallback(function(){z.setCardMode();z.setMobileMode();z.addReportReadyListener(U);r.css({width:"100%",height:"100%"});N=$("<div>");N.appendTo(r);N.addClass("extreport-card-content-mobile");q=z.getSheetContainer(N);B?N.addClass("extreport-card-content-mobile-subreport"):
(M.protectedInitUi(r,N),F&&ra(),G())});Z.loadCss("lightapp/common/qing-lapp.css")};this.paintFilterPanel=function(Z,fa){l&&(l.remove(),l=null);g.setModels(Z,fa,M.getSchemaBiztagId());l=g.getJqUi();e.switchSchema();l.appendTo(a);l.addClass("extreport-card-schema-manage-panel");l.css({margin:"3px 10px 10px 10px","max-height":"500px"});Z=g.getJqFilterPanel();Z.css({"margin-bottom":"15px","max-height":"400px","overflow-x":"hidden"});Z.find('*[data-role="page"]').css("max-height","350px")};this.showOrHideFilterPane=
function(Z,fa){a&&(!Z||M.protectedGetFullscreenState()||z.isReportReady()?(k=Z)&&M.protectedGetFullscreenState()?(Z=a.css("height"),a.css({height:0}),a.show(),a.animate({height:Z},fa?fa:200,function(){a.css("height","unset")})):a.animate({height:0},fa?fa:200,function(){a.css("height","unset");a.hide()}):O())};this.resize=function(Z){r.height(Z);M.adjustSheetContainerSize()};this.protectedInitUi=function(Z,fa){throw Error("Implement me!");};this.protectedDoFullscreen=function(){throw Error("Implement me!");
};this.protectedGetFullscreenState=function(){return!1};this.showLinkReport=function(Z){if(M.protectedGetFullscreenState())if(4<=parseInt(x.urlParams.hyperlinkLevel))ka("TOAST",t.get("exceedLinkNum","\u8d85\u51fa\u79fb\u52a8\u7aef\u8fde\u7eed\u8054\u67e5\u7684\u6570\u91cf"));else{var fa="\u8054\u67e5\u62a5\u8868"+Date.now(),xa=$("<iframe allowfullscreen allowTransparency='true'id= "+fa+">");xa.addClass("extreport-card-mobile-linkreport-iframe");c?xa.appendTo($(".extreport-card-mobile-linkreport-iframe-container",
window.parent.document)):(m=$("<div>"),m.addClass("extreport-card-mobile-linkreport-iframe"),m.addClass("extreport-card-mobile-linkreport-iframe-container"),xa.appendTo($(m)),m.appendTo($("body")),d.push(fa));c||window.addEventListener("message",qa,!0);xa.attr("src",Z);xa.on("load",function(){window.parent.postMessage({extreportCardMsg:"createLinkIframe",param:fa},"*")})}else ka("TOAST",t.get("openLinkReportInfo","\u8bf7\u5148\u5168\u5c4f\uff0c\u518d\u8fdb\u884c\u8054\u67e5"))};this.showMsg=function(Z,
fa,xa){h||ka(Z,fa,xa)};var G=function(){a=$("<div>");ta.layoutCtrlWithLRTB(a,0,0,null,0,0,null);a.css("z-index",999);a.appendTo(N);a.hide();a.on("click",function(fa){(fa.target=l[0])?fa.stopPropagation():M.showOrHideFilterPane(!1)});var Z=D.decodeParamFromUrl(window.location.search,"hasSchemeEditPerm");e=new n(!0,"false"===Z?!1:!0);g=new S;g.setMobileMode();z.setSchemaManagePanel(g);g.setSchemaListPanel(e);g.setGlobal(I);g.setFunExecute(function(){z.queryData(ha)});g.setFunSwitchSchemaCallBack(function(){});
g.setFunMobileMsgListener(ka)},O=function(){if(!z.isReportReady()){h=$("<div>");h.addClass("extreport-card-mask");var Z=$("<span>");Z.addClass("extreport-card-mask-text");Z.text(t.get("setEnterScheme","\u8bf7\u70b9\u51fb\u6309\u94ae\u8bbe\u7f6e\u8fc7\u6ee4\u65b9\u6848"));Z.appendTo(h);Z=$("<span>");Z.addClass("extreport-card-mask-btn");Z.text(t.get("setScheme","\u8bbe\u7f6e\u8fc7\u6ee4\u65b9\u6848"));Z.on("click",function(){M.protectedDoFullscreen();U();M.showOrHideFilterPane(!0)});Z.appendTo(h);
h.appendTo(r)}},U=function(){h&&h.remove();h=null},qa=function(Z){Z=Z.data;Z.extreportCardMsg&&("createLinkIframe"==Z.extreportCardMsg?d.push(Z.param):"destoryLinkIframe"==Z.extreportCardMsg&&(Z=d.pop(),m.find("#"+Z).remove(),0==d.length&&(m.remove(),window.removeEventListener("message",qa,!0))))},ra=function(){var Z=com.kingdee.bos.qing.lapp.integration.PostMessageUtils;window.addEventListener("message",function(fa){try{var xa=JSON.parse(fa.data)}catch(ua){return}xa.from==Z.FROM_LAPP_MESSAGE_EXECUTION&&
(xa.type==Z.TYPE_REQUEST_CARD_FULLSCREEN?V=!0:xa.type==Z.TYPE_EXIT_CARD_FULLSCREEN&&(V=!1))})},ka=function(Z,fa,xa){var ua=new com.kingdee.bos.qing.lapp.component.MobileDialog;ua.setHeight(150);ua.setContentCreator(function(){var Da=$("<div>");Da.addClass("extreport-card-mobile-msg-text");Da.text(fa);return Da});"MSG"==Z?(ua.setTitle(t.get("remind","\u6d88\u606f\u63d0\u793a")),xa&&ua.setClosedListener(xa),ua.showDialog()):"CONFIRM"==Z?(ua.setTitle(t.get("confirmAgain","\u64cd\u4f5c\u786e\u8ba4")),
ua.creatNormalFooterWithTwoBtn(function(){xa(!1)},function(){xa(!0)}),ua.showDialog()):"TOAST"==Z&&(new com.kingdee.bos.qing.lapp.component.Toast).show(fa,1E3)};this.getSelectedSchemeName=function(){return g.getCurrentSelScheme().getCaption()};this.resize=function(Z){r.height(Z);M.adjustSheetContainerSize();Z=N.height()-0;q&&q.css("height",Z+"px")};var ha=function(){M.showOrHideFilterPane(!1);U()};this.protectedMethods.updateUiWhenFullscreen=function(Z){N.toggleClass("extreport-card-content-mobile-full-screen",
Z)};this.protectedMethods.updateUiWhenTitleMenuOpen=function(Z){Z||M.showOrHideFilterPane(!1,1);N.toggleClass("extreport-card-content-mobile-show-menu",Z)};this.protectedMethods.toggleFilterPanel=function(){f?(k=!k,M.showOrHideFilterPane(k)):ka("TOAST",t.get("noFilter","\u672a\u8bbe\u7f6e\u8fc7\u6ee4\u5668"))};this.protectedMethods.createMobileCardMask=O;this.protectedMethods.postFullscreenMsg=function(Z){if(F&&!V){var fa=parent.location.href,xa=D.decodeParamFromUrl(fa,"time"),ua={};fa=D.decodeParamFromUrl(fa,
"publishId");ua.from="LAPP_MESSAGE_EXECUTION";ua.type=Z;ua.iframeId=fa+xa;top.window.postMessage(JSON.stringify(ua),"*")}}}function ca(){var H=this,r;this.getExtreportWidgetInfo=function(){if(!r){var I=new com.kingdee.bos.extreport.runtime.model.ExtreportWidgetInfo,x=aa.getUrlParamValue("extreportWidgetId");if(x){x=$("body",parent.document).find("#"+x);var B=window.parent.$;x=B(x).data("extreportWidgetInfo");I.fromJsonObject(x);r=I}}return r};this.protectedMethods.reportWidgetRefresh=function(){var I=
aa.getUrlParamValue("extreportWidgetId");I&&(I=$("body",parent.document).find("#"+I),I.removeClass(),window.location.href=I.attr("src"))};this.protectedMethods.decorateCard=function(I,x){!r&&H.getExtreportWidgetInfo();if(r&&r.isRequireDecorateCard()){var B=r.getStyleMap(),z=r.isRequireOpacity();if(!r.isInWidgetPanel()){if(I){var M=parseInt(B.borderRadius||0);I.css("border-radius",M+"px");M=B.backgroundColor||"#ffffff";z&&(z=parseFloat(B.backgroundOpacity||1),M=P.withOpacityToRgba(M,z));I.css("background-color",
M);(z=B.shadowColor||"")&&(z="0 1px 3px 0 "+z);I.css("box-shadow",z)}x&&(I=B.titleColor||"#5b6373",B=parseInt(B.titleFontSize||12),x.css("color",I),x.css("font-size",B+"px"))}}else I.css("background-color","#ffffff")};this.protectedMethods.getSchemaBiztagId=function(){var I=aa.getUrlParamValue("schemaBiztagId");return I?I:aa.getUrlParamValue("extReportId")};this.protectedMethods.getBackgroundColor=function(){var I="#ffffff";r&&r.isRequireDecorateCard()&&(I=r.getStyleMap().backgroundColor||"#ffffff");
return I};this.protectedMethods.undecorateCard=function(I){I.css({"background-color":"unset","border-radius":"unset","box-shadow":"unset"})}}function ia(H){this.protectedMethods={};ca.call(this);var r=this,I=this.protectedMethods,x,B,z,M,N,a="noData",l=!1;this.show=function(f,k,c){x?e(f,k,c):h(f,k,c)};this.setMobileMode=function(){l=!0};this.setErrorCardTitle=function(f){B=f};this.getErrorCardTitle=function(){return B};this.getJqUi=function(){return x};this.setBackgroundIcon=function(f){a=f};var h=
function(f,k,c){x=$("<div>");x.appendTo(H);H.on("mouseenter",function(){z&&z.show()});H.on("mouseleave",function(){z&&z.hide()});q();I.decorateCard(H);e(f,k,c)},q=function(){x.empty();x.addClass("extreport-carderror-errorprompt");var f=$("<div>");M=$("<div>");M.addClass("extreport-carderror-errorprompt-img");w.background(M,a);M.appendTo(f);var k=$("<div>");k.addClass("extreport-carderror-errorprompt-errorinfo");k.appendTo(f);N=$("<span>");N.addClass("extreport-carderror-errorprompt-errortext");N.appendTo(k);
if(l){var c=$("<div>");c.addClass("extreport-errorcard-headbar-title-mobile");c.text(B);c.appendTo(x);ta.layoutCtrlWithLRTB(f,20,20,null,35,10,null);c=$("<div>");c.addClass("carderror-errorprompt-error-operation-btn");c.text(t.get("reload","\u91cd\u65b0\u52a0\u8f7d"));c.on("click",g);c.appendTo(k)}else r.createCardHeadbar(),ta.layoutCtrlWithLRTB(f,20,20,null,40,10,null);f.appendTo(x)};this.createCardHeadbar=function(){var f=$("<div>");f.addClass("extreport-errorcard-headbar-title");f.text(B);f.attr("title",
B);f.appendTo(x);z=$("<div>");z.addClass("extreport-errorcard-headbar-refresh-btn");w.background(z,"refresh");z.on("click",g);z.appendTo(x)};var g=function(){var f=aa.getUrlParamValue("extreportWidgetId");f&&(f=$("body",parent.document).find("#"+f),window.location.href=f.attr("src"))},e=function(f,k,c){2301005==f?k=t.get("noAuthorityToThisReport","\u6ca1\u6709\u8be5\u8f7b\u62a5\u8868\u7684\u67e5\u770b\u6743\u9650"):2301001==f||8099001==f?k=t.get("publishInfoExist","\u8be5\u7ec4\u4ef6\u6765\u6e90\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664"):
3010006==f?k=t.get("notRegisteredUser","\u60a8\u6240\u4f7f\u7528\u7684\u8d26\u6237\u6ca1\u6709\u88ab\u5206\u914d\u3010\u8f7b\u62a5\u8868\u3011\u6a21\u5757\u7684\u4f7f\u7528\u8bb8\u53ef\uff0c\u8bf7\u4e0e\u7cfb\u7edf\u7ba1\u7406\u5458\u8054\u7cfb\u3002"):3010005==f?k=t.get("illegalQingReportLicense","\u5f53\u524d\u7cfb\u7edf\u6ca1\u6709\u3010\u8f7b\u62a5\u8868\u3011\u6a21\u5757\u7684\u4f7f\u7528\u8bb8\u53ef\uff0c\u8bf7\u4e0e\u7cfb\u7edf\u7ba1\u7406\u5458\u8054\u7cfb\u3002"):2301012==f?k=t.get("noPresetAuthorityToThisReport",
"\u6ca1\u6709\u8be5\u9884\u7f6e\u62a5\u8868\u7684\u6743\u9650"):3010004==f&&(k=t.get("replicatedLogin","\u60a8\u7684\u8d26\u53f7\u5728\u5176\u4ed6\u5730\u65b9\u767b\u5f55\uff0c\u8bf7\u91cd\u65b0\u767b\u5f55\u5f53\u524d\u7cfb\u7edf\u3002"));N.text(k);N.attr("title",k)}}function va(H,r){var I=this,x,B,z,M=!1,N=!1,a,l=[],h=!1,q,g;this.updateTable=function(){if(H.getCurrentSheet()){var c=H.getCurrentSheet().getTable();c&&c.updateUI()}};this.renderReport=function(){if(!r){var c=H.getSheetNames();if(null!=
c&&0<c.length){var d=H.getSheetColors();a.init(c,d,z);a.addTabClickListener(q)}}I.destroy();c=H.getCurrentSheet().getTable();d=$(c.getUI());d.attr("id",H.getCurrentSheet().getName());z.append(d);a&&a.getUI()&&z.append(a.getUI());I.adjustSheetContainerSize();z.resize(e);c.updateUI();g&&g();h=!0};this.setSheetSwitcher=function(c){a=c};this.getSheetSwitcher=function(){return a};var e=function(){H.getCurrentSheet().getTable();var c=$(_oTable.getUI());a&&a.getUI()?c.css("height",z.height()-32):c.css("height",
z.height())},f;this.adjustSheetContainerSize=function(){try{var c=H.getCurrentSheet().getTable()}catch(F){return}if(c){c.relayoutViews();var d=$(c.getUI()),m=0,V=0;a&&a.getUI()&&(0<z.width()&&a.setWidth(z.parent().width()),N?(V=32,m=0,a.getUI().css("top","0px")):(V=0,m=32,a.getUI().css("bottom","0px")));d.css({top:V,bottom:m,left:0,right:0,position:"absolute"});f!==""+document.documentElement.clientWidth+document.documentElement.clientHeight&&I.showWarnFrozenTable(c);f=""+document.documentElement.clientWidth+
document.documentElement.clientHeight}};this.showWarnFrozenTable=function(c){for(var d=$(c.getUI()),m=0,V=0,F=0;F<c.getFrozenColumns();F++)c.getColumn(F)&&(m+=c.getColumn(F).getWidth());for(F=0;F<c.getFrozenRows();F++)c.getRow(F)&&(V+=c.getRow(F).getHeight());m>d.prop("clientWidth")&&V>d.prop("clientHeight")&&k(c)};var k=function(c){$(".sa-ctrl-common-modallayer").remove();var d=new pa;d.setOptionType(pa.OPTION_OK_CANCEL);d.setClosingChecker(function(m){m===pa.OPTION_OK&&(m=c.isSyncUIWhenModelChanged(),
c.setSyncUIWhenModelChanged(!0),c.setFrozenColumns(0),c.setFrozenRows(0),c.setSyncUIWhenModelChanged(m));return!0});d.setMessage(t.get("undoTableFrozen","\u5f53\u524d\u9875\u9762\u89c6\u56fe\u5c0f\u4e8e\u7a97\u683c\u51bb\u7ed3\u533a\u57df\uff0c\u662f\u5426\u53d6\u6d88\u51bb\u7ed3\u7a97\u683c?"));d.showDialog()};this.update=function(c){var d=H.getCurrentSheet();if(c){c=d.getTable();z.children().css("display","none");var m=$(c.getUI());m.attr("id",H.getCurrentSheet().getName());a&&m.insertBefore(a.getUI())&&
a.getUI().css("display","inline");I.adjustSheetContainerSize();c.updateUI();I.showWarnFrozenTable(c)}else{if(!a.getUI())return;z.children().css("display","none");$.each(z.children(),function(V,F){$(F).attr("id")===d.getName()&&$(F).css("display","inline")});a&&a.getUI().css("display","inline");I.adjustSheetContainerSize()}g&&g();h=!0};this.destroy=function(){for(var c=l.length-1;0<=c;c--)l[c].dispose();l=[];z&&z.children().remove();$("body").find("._SmartLabel_Container").remove()};this.addFusionChart=
function(c){l.push(c)};this.addChangeSheetListener=function(c){q=c};this.protectedMethods={setMobileMode:function(){N=!0},setCardMode:function(){M=!0},getSheetContainer:function(c){x||(x=$("<div>"),x.addClass("extreport-reportui-sheet-container-parent"),B=$("<div>"),N||M?B.addClass("extreport-card-sheet-container-content"):(B.addClass("extreport-reportui-sheet-container-content"),r&&ta.layoutCtrlWithLRTB(B,0,0,null,0,0,null)),z=$("<div>"),z.addClass("extreport-card-sheet-container"),z.appendTo(B),
B.appendTo(x));x.appendTo(c);return x},isReportReady:function(){return h},addReportReadyListener:function(c){g=c}}}"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.ui&&(com.kingdee.bos.extreport.runtime.ui=
{});var ja=com.kingdee.bos.extreport.runtime.ui;ja.WebReportUI=v;ja.ReportCardUI=L;ja.ReportCardMobileUI=R;ja.ReportDsbWidgetUI=ba;ja.ReportDsbWidgetMobileUI=W;ja.ExtreportCardErrorUi=ia;ja.WorkbenchExtReportCardErrorUi=function(H){ia.call(this,H);var r=this,I=this.protectedMethods,x=r.getExtreportWidgetInfo();this.createCardHeadbar=function(){var z=$("<div>");w.background(z,"extreport");z.addClass("extreport-workbench-card-icon");z.appendTo(r.getJqUi());z=$("<div>");z.addClass("extreport-workbench-card-headbar-title");
z.text(r.getErrorCardTitle());z.attr("title",r.getErrorCardTitle());z.appendTo(r.getJqUi());var M=$("<div>");M.addClass("extreport-workbench-errorcard-headbar-refresh-btn");w.background(M,"btn-refresh");M.on("click",I.reportWidgetRefresh);M.on("mouseover",function(a){w.background(M,"btn-refresh-on")});M.on("mouseout",function(a){w.background(M,"btn-refresh")});M.appendTo(r.getJqUi());var N=$("<div>");N.addClass("extreport-workbench-errorcard-headbar-delete-btn");w.background(N,"icon_delete");N.on("mouseover",
function(a){w.background(N,"icon_delete_hover")});N.on("mouseout",function(a){w.background(N,"icon_delete")});N.on("click",B);N.css("z-index","9999999");N.appendTo(r.getJqUi());$(r.getJqUi()).on("mouseenter",function(){M.show();N.show()});$(r.getJqUi()).on("mouseleave",function(){M.hide();N.hide()});M.hide();N.hide();window.parent.postMessage({operation:"loadCompleted",targetWidgetId:x.getIframeId()},"*")};var B=function(){window.parent.postMessage({operation:"remove",targetWidgetId:x.getIframeId()},
"*")}};ja.SheetSwitcher=function(){function H(){var q=com.kingdee.bos.extreport.runtime.MyIcons,g=function(V){I.fireEvent({type:"switch-click",button:V.data.type,target:this})};var e=$("<div class='extreport-reportui-tab-switch-left' />");var f=$("<div/>");q.background(f,"prev_page");var k=function(){0!=N?q.background(f,"prev_page_hover"):q.background(f,"prev_page")};f.bind("mouseover",k);f.bind("mouseout",function(){q.background(f,"prev_page")});f.css({"margin-top":"8px",height:"16px",width:"16px"});
f.appendTo(e);e.bind("click",{type:"pre"},g);var c=$("<div class='extreport-reportui-tab-switch-right' />");var d=$("<div/>");q.background(d,"next_page");var m=function(){l&&l-1!=a?q.background(d,"next_page_hover"):q.background(d,"next_page")};d.bind("mouseover",m);d.bind("mouseout",function(){q.background(d,"next_page")});d.css({"margin-top":"8px",height:"16px",width:"16px"});d.appendTo(c);c.bind("click",{type:"next"},g);this.getFunPrevImgChange=function(){return k};this.getFunNextImgChange=function(){return m};
this.getTabLeftUI=function(){return e};this.getTabRightUI=function(){return c}}function r(q,g,e){var f=this,k,c=e.width(),d=$("<div class='extreport-reportui-sheet-tab-all' />"),m=[],V,F;this.setFunPrevImgChange=function(O){V=O};this.setFunNextImgChange=function(O){F=O};var G=function(O){f.changeTabShow(m,$(this));O={type:"tab-click",sheetName:$(this).text()};I.fireEvent(O)};this.getUI=function(){return d};this.getTabDivs=function(){return m};(function(O){for(var U=0;U<O;U++){var qa=$("<div class='extreport-reportui-sheet-tab-sub' />");
qa.css("backgroundColor",g[U]);var ra=KEXTCommonUtil.getRgbIntArr(g[U]);KEXTCommonUtil.isDarkColor(ra)&&qa.css("color","#fff");qa.bind("click",G);U==M&&(ra&&"string"!=typeof ra&&(ra.push(.5),KEXTCommonUtil.getRgbaString(ra),(ra=g[U])&&qa.css("filter","alpha(opacity=100 finishopacity=50 style=1 startx=0,starty=0,finishx=0,finishy=150) progid:DXImageTransform.Microsoft.gradient(startcolorstr=#ffffff,endcolorstr="+ra+",gradientType=0)")),qa.addClass("extreport-reportui-sheet-tab-sub-selected"));d.append(qa);
m.push(qa)}})(q.length);I.addListener("switch-click",function(O){c=e.width()-42;if(!(0<=d.width()-k)){if("pre"==O.button){if(0<=KReportUtil.getCssIntValue(m[0].css("left")))return;for(var U=!0,qa=null,ra=0<N?N-1:N,ka=0,ha=ra;0<=ha;ha--){var Z=m[ha].width()+10;ka+=Z;if(ka>c){qa=ha;U=!1;break}}var fa=m.length;if(U&&null==qa)for(qa=0,ha=ra+1;ha<fa;ha++)if(Z=m[ha].width()+10,ka+=Z,ka>c){ra=ha;break}U=0;for(ha=qa;ha<=ra;ha++)Z=m[ha].width()+10,m[ha].css("left",U),U+=Z;U=KReportUtil.getCssIntValue(m[qa].css("left"));
for(ha=qa-1;0<=ha;ha--)U-=m[ha].width()+10,m[ha].css("left",U);U=KReportUtil.getCssIntValue(m[ra].css("left"));for(ha=ra;ha<fa;ha++)m[ha].css("left",U+1),U+=m[ha].width()+10;N=qa;a=ra;V&&V()}if("next"==O.button&&!(KReportUtil.getCssIntValue(m[m.length-1].css("left"))+m[m.length-1].width()<=d.width())){U=!0;qa=a<m.length?a+1:a;ra=null;ka=0;fa=m.length;for(ha=qa;ha<fa;ha++)if(Z=m[ha].width()+10,ka+=Z,ka>c){ra=ha;U=!1;break}if(U&&null==ra)for(ra=fa-1,ha=qa-1;0<ha;ha--)if(Z=m[ha].width()+10,ka+=Z,ka>
c){qa=ha+1;break}U=0;for(ha=qa;ha<=ra;ha++)Z=m[ha].width()+10,m[ha].css("left",U),U+=Z;U=KReportUtil.getCssIntValue(m[qa].css("left"));for(ha=qa-1;0<=ha;ha--)U-=m[ha].width()+10,m[ha].css("left",U);U=KReportUtil.getCssIntValue(m[ra].css("left"));for(ha=ra;ha<fa;ha++)m[ha].css("left",U),U+=m[ha].width()+10;N=qa;a=ra;F&&F()}}});this.setTabLength=function(O){k=O};this.setPageShowTabLength=function(O){c=O};this.changeTabShow=function(O,U){for(var qa,ra=0;ra<O.length;ra++){var ka=O[ra];ka.css({filter:"",
background:"",backgroundColor:g[ra]});ka.removeClass("extreport-reportui-sheet-tab-sub-selected");KEXTCommonUtil.isDarkColor(g[ra])&&ka.css("color","#fff");U.html()==ka.html()&&(qa=ra)}(O=KEXTCommonUtil.getRgbIntArr(g[qa]))&&"string"!=typeof O&&(O.push(.5),KEXTCommonUtil.getRgbaString(O),(qa=g[qa])&&U.css("filter","alpha(opacity=100 finishopacity=50 style=1 startx=0,starty=0,finishx=0,finishy=150) progid:DXImageTransform.Microsoft.gradient(startcolorstr=#ffffff,endcolorstr="+qa+",gradientType=0)"));
U.addClass("extreport-reportui-sheet-tab-sub-selected")}}var I=new KRListenerProxy,x,B,z,M,N=0,a,l,h;this.init=function(q,g,e){if(q&&1<q.length){h=q;l=q.length;var f=e.width();_tabSwitcher=new H;x=new r(q,g,e);x.setFunPrevImgChange(_tabSwitcher.getFunPrevImgChange());x.setFunNextImgChange(_tabSwitcher.getFunNextImgChange());B=$("<div class='extreport-reportui-sheet-tab-switcher' />");g=x.getUI();B.append(g);e=x.getTabDivs();for(var k=0,c=!0,d=0;d<e.length;d++){var m=KReportUtil.getCssWidth(q[d],e[d].css("fontSize"));
e[d].css("width",m+2);e[d].attr("title",q[d]);e[d].css("left",k);e[d].text(q[d]);m=e[d].width()+10;k+=m;k>f&&c&&(a=d,c=!1)}k>f?(B.append(_tabSwitcher.getTabLeftUI()),B.append(_tabSwitcher.getTabRightUI()),g.css("left","20px"),g.css("right","20px")):(g.css("left","0px"),g.css("right","0px"));x.setTabLength(k)}};this.updateUi=function(q){if(h&&1<h.length){for(var g=0,e=!0,f=x.getTabDivs(),k=0;k<f.length;k++){var c=KReportUtil.getCssWidth(h[k],f[k].css("fontSize"));f[k].css("width",c+2);f[k].css("left",
g);c=f[k].width()+10;g+=c;g>q&&e&&(a=k,e=!1)}e=x.getUI();f=_tabSwitcher.getTabLeftUI();k=_tabSwitcher.getTabRightUI();g>q?(q-=40,f.show(),k.show(),B.append(f),B.append(k),e.css("left","20px"),e.css("right","20px")):(e.css("left","0px"),e.css("right","0px"),f.hide(),k.hide());x.setTabLength(g);x.setPageShowTabLength(q)}};this.getUI=function(){return B};this.setWidth=function(q){z=q;q=x.getTabDivs()[0].width();z&&2===q&&z&&this.updateUi(z)};this.addTabClickListener=function(q){I.addListener("tab-click",
q)};this.setInitTab=function(q){M=q};this.generateTabShow=function(q){if(x){var g=x.getTabDivs();x.changeTabShow(g,g[q])}}};var aa,pa,la,ea,X,na,ta,za,P,t,D,w,b,S,C,T,u;(function(){var H=com.kingdee.bos.qing;aa=H.Seer;H=com.kingdee.bos.qing.ui.component;pa=H.MessageDialog;la=H.ComboBox;ea=H.Toolbar;X=H.Menu;na=H.SimpleConfirmer;H=com.kingdee.bos.qing.common;ta=H.DomUtil;za=H.FullScreenHelper;P=H.ColorUtil;D=H.Util;H=com.kingdee.bos.qing.framework.common;t=H.MultilanguageManager.createPackageAccessor(ja);
H=com.kingdee.bos.extreport.runtime;w=H.MyIcons;H=com.kingdee.bos.extreport.runtime.common.ui;b=H.AbstractSchemaListPanel;S=H.SchemaManagePanel;C=H.RuntimeSchemaListPanel;H=com.kingdee.bos.extreport.snapcenter.common.ui;SaveSnapDialog=H.SaveSnapDialog;SaveSnapSourceType=H.SaveSnapSourceType;T=com.kingdee.bos.extreport.runtime.common.ui.RptHelpIconTipsUI;u=com.kingdee.bos.extreport.runtime.model.RptRunTimeHelpInfoTip})();p.WEB="web";p.REPORT_WIDGET="report-widget";p.REPORT_WIDGET_MOBILE="report-widget-mobile";
p.CARD="card";p.CARD_MOBILE="card-mobile";p.WORKBENCH_CARD="workbench-card";ja.ReportUiFactory=new function(){this.getReportUi=function(H,r,I,x,B,z){switch(H){case p.REPORT_WIDGET:return new ba(r,I,x,B,z);case p.REPORT_WIDGET_MOBILE:return new W(r,I,x,B,z);case p.CARD:return new L(r,I,x,B,z);case p.CARD_MOBILE:return new R(r,I,x,B,z);case p.WORKBENCH_CARD:return new ma(r,I,x,B,z);default:return new v(r,I,x,B,z)}}}})();(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.runtime&&(com.kingdee.bos.extreport.runtime={});"undefined"==typeof com.kingdee.bos.extreport.runtime.report&&(com.kingdee.bos.extreport.runtime.report={});"undefined"==typeof com.kingdee.bos.extreport.runtime.report.ui&&(com.kingdee.bos.extreport.runtime.report.ui=
{});com.kingdee.bos.extreport.runtime.report.ui.Main=function(){var ia,va,ja,aa=new function(){var X,na;this.getMessageCurtain=function(){X||(X=new ba,X.getJqUi().appendTo($("body")));return X};this.getExhibitScene=function(){return ta("exhibitionScene")};this.islinkReport=function(){return"true"==ta("isHyperlink")?!0:!1};this.hasSchemeEditPerm=function(){return"false"==ta("hasSchemeEditPerm")?!1:!0};this.createFacade=function(P,t,D){var w=za();return new W(w,P,function(b,S){return t?t(b,S):!1},D)};
this.showError=function(P){var t=$("<div>");t.css({position:"absolute",background:"white",top:"0",bottom:"0",left:"0",right:"0",font:"14px PingFangSC-Regular","letter-spacing":"0",color:"#666666","text-align":"center"});var D=$("<div>");D.addClass("qing-welcome-sub-container");D.css({width:"740px",height:"410px",position:"absolute",top:"50%",left:"50%","margin-left":"-370px","margin-top":"-205px",background:"white"});var w=$("<img>");w.css({widdisplayth:"block",height:"189px",width:"200px","background-size":"contain",
margin:"0 auto"});w.prop("src","qingrpt/runtime/resource/errorBackground.png");var b=$("<span>");b.text(P);b.css({display:"block","font-size":"20px","line-height":"26px",color:"#666666"});D.append(w);D.append(b);t.append(D);t.appendTo($(document.body))};var ta=function(P){return p.decodeParamFromUrl(window.location.search,P)},za=function(){if(!na){var P=ta("path");P=(P?P:"/ierp")+"/qing_rpt/runtime.do";na=new ma;na.setRemoteUrl(P)}return na};this.showDialogError=function(P){var t=com.kingdee.bos.qing.ui.component.MessageDialog,
D=new t;D.setOptionType(t.OPTION_OK);D.setButtonText(t.OPTION_OK,"\u5237\u65b0");D.setClosingChecker(function(w){w===t.OPTION_OK&&location.replace(location.href);return!0});D.setMessage(P);D.showDialog()}};this.start=function(X){K.hookCollector(function(na,ta){ca.interestInBehavior(na,ta)});X=$(X?X:document.body);ia=$("<div class='extreport-web-main'>");ia.appendTo(X);L.init();ea();X=new R;X.setCallbackImmediately(function(){ea()});X.setDelay(250);X.setCallback(function(){va&&va.updataTable()});X.observe();
la();return ia};this.setExtreportWidgetInfo=function(X){ja=X};var pa=function(){for(var X={},na=window.location.search.split("?")[1].split("&"),ta=0;ta<na.length;ta++){var za=na[ta].split("=");2==za.length&&(X[za[0]]=decodeURIComponent(za[1]))}delete X.appID;delete X.skin;delete X.language;delete X.clientID;delete X.cookieName;delete X.path;delete X.safetyCode;delete X.pageId;return X},la=function(){var X=n.getUrlParamValue("isPreview"),na=n.getUrlParamValue("extReportId"),ta=n.getUrlParamValue("publishId"),
za=n.getUrlParamValue("snapId"),P=n.getUrlParamValue("snapName"),t=n.getUrlParamValue("dataName"),D=n.getUrlParamValue("isGuiPreview"),w=aa.createFacade(function(b){function S(I){va.getSchemeDefaultEnter()||null!=u||va.isAllParamsHided()||!T.isPopFilter&&!T.isNeedFill?(u||va.isAllParamsHided()||!va.getSchemeDefaultEnter()&&!T.isPopFilter)&&va.loadReport(u,null):va.popFilter()}if(ta&&null==n.getUrlParamValue("extreportWidgetId")){var C=com.kingdee.bos.qing.common.Util.createUUID();ca.initAccessRecordParams(ta,
C,ca.SourceType.QING_PUBLISH,ca.AppType.QING_RPT);ca.recordResourceOperation(ca.OperationType.QING_VISIT)}C=new A;C.fromJson(b);if(C.isHasModel())if(C.isAvailable()){b=pa();switch(K.getPreviewSourceName(b.publishTargetType)){case K.PREVIEW_SOURCE_MANAGE:ca.interestInBehaviorEntrance(ca.ENTRANCE_EXTREPORT_MANAGER_PREVIEW);break;case K.PREVIEW_SOURCE_APPMENU:ca.interestInBehaviorEntrance(ca.ENTRANCE_EXTREPORT_APPMANU_PREVIEW);break;case K.PREVIEW_SOURCE_CENTER:ca.interestInBehaviorEntrance(ca.ENTRANCE_EXTREPORT_CENTER_PREVIEW)}var T=
{isPreview:X,pageId:C.getPageId(),hasExportPermission:C.isHasExportPermission(),hasPrintPermission:C.isHasPrintPermission(),hasSaveSnapshotPermission:C.isHasSaveSnapshotPermission(),isAccredited:C.isAccredited(),isModifiedTemplate:C.isModifiedTemplate(),rptName:C.getExtReportName(),isHideMenubarInReport:C.isHideMenubarInReport(),bNeedFill:C.isNeedFill(),isHasFilter:C.isHasFilter(),isPopFilter:C.isHasFilter(),extReportId:na,snapId:C.getSnapId(),snapName:P,urlParams:b,affectedParams:ja?ja.getAffectedParams():
null,creatorName:C.getCreatorName(),createTime:C.getCreateTime(),currentUserId:C.getCurrentUserId(),exportSetting:C.getExportSetting()};va=new Webreport(aa,ia,T);var u=n.getUrlParamValue("paramCacheId");va.addReportLoadedListener(function(){va.updateUI()});va.addCreatePageListener(function(){va.hasFilter()?(va.addFilterListener(S),va.getParams(u)):va.loadReport(u,null)});va.createPage(C)}else{b=v.get("suggestionTips","\u8bf7\u4f18\u5316\u6570\u636e\u96c6\u540e\uff0c\u63d0\u4ea4\u5de5\u5355\u8054\u7cfb\u8fd0\u7ef4\u56e2\u961f\u5904\u7406\u3002");
var H=v.get("slowQuerySuggestion","\u4ee5\u4e0b\u6570\u636e\u96c6\u56e0\u5b58\u5728\u6162\u67e5\u8be2\u5df2\u88ab\u4e34\u65f6\u7981\u7528\uff0c\u8bf7\u5c3d\u5feb\u4f18\u5316\u3002");if(ta){var r=C.getCreatorName();b=v.get("contactTips","\u8bf7\u8054\u7cfb\u201c#1\u201d\u5904\u7406\u3002").replace("#1",r);H=v.get("slowQueryContact","\u4ee5\u4e0b\u6570\u636e\u96c6\u56e0\u5b58\u5728\u6162\u67e5\u8be2\u5df2\u88ab\u4e34\u65f6\u7981\u7528\uff0c\u8bf7\u8054\u7cfb\u201c#1\u201d\u5904\u7406\u3002").replace("#1",
r)}r={};r.sPromptMessage=H;r.sDetailMessage=C.getInvalidData();(C=aa.getExhibitScene())&&(r.sExhibitScene=C);com.kingdee.bos.qing.framework.common.RemoteFramework.openErrorPage("reportRejectExec",com.kingdee.bos.qing.common.Base64Util.encode(encodeURIComponent(b)),r)}else com.kingdee.bos.qing.framework.common.RemoteFramework.openErrorPage("noModel")},function(b,S){if(8099001==b||8099002==b||8099007===b||8099008===b||8077016===b||8099101===b||8099004===b||8099010<=b&&8099014>=b)return aa.showDialogError(S),
window.parent.postMessage({operation:"showError",iErrorCode:b,sErrorMsg:S},"*"),!0;if(8099111==b||2301001==b||2301005==b){n.getUrlParamValue("language");809111==b&&(S=v.get("snapNotFound","\u8be5\u5feb\u7167\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664"));var C=n.getUrlParamValue("appID"),T=com.kingdee.bos.qing.common.Base64Util,u={};u.appID=C;S=T.encode(encodeURIComponent(S));com.kingdee.bos.qing.framework.common.RemoteFramework.openErrorPage(b,S,u);window.parent.postMessage({operation:"showError",
iErrorCode:b,sErrorMsg:S},"*");return!0}return!1});za?w.loadExtReportSnapInfo(za):w.loadExtReportInfo(na,ta,X,D,t)},ea=function(){var X=document.documentElement.clientHeight;document.body.style.height=X+"px";va&&va.resize(X)}};var n,p,v,L,R,ba,W,ma,K,A,ca;(function(){var ia=com.kingdee.bos.qing;n=ia.Seer;ia=com.kingdee.bos.qing.common;p=ia.Util;ia=com.kingdee.bos.qing.framework.common;L=ia.WebPageInitializer;R=ia.WindowResizeObserver;v=ia.MultilanguageManager.createPackageAccessor(com.kingdee.bos.extreport.runtime.ui);
ia=com.kingdee.bos.extreport.runtime.common;W=ia.Facade;ma=ia.RemoteImpl;K=ia.UserOperationReporter;ia=com.kingdee.bos.extreport.runtime.report.model;A=ia.ExtReportRuntimeInfo;ia=com.kingdee.bos.qing.behavior;ca=ia.BehaviorManager;ia=com.kingdee.bos.qing.ui.component;ba=ia.MessageCurtain})()})();(function(){function n(ca,ia,va,ja){R.call(this,ca,ia,va,ja);var aa=this.protectedMethod;this.lookForLinkageTargets=function(pa){aa.remote("lookForLinkageTargets",pa)};this.chartInnerLink=function(pa){aa.remote("chartInnerLink",pa)}}function p(){this.getAlias=function(){};this.getDataType=function(){};this.getName=function(){};this.getValues=function(){}}function v(){ba.call(this);var ca,ia;this.getRemoteUrl=function(va){va.tag=ia;return ca};this.setRemoteUrl=function(va){ca=va};this.setTag=function(va){ia=
va}}"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.linkage&&(com.kingdee.bos.extreport.runtime.linkage={});var L=com.kingdee.bos.extreport.runtime.linkage;L.LinkageFacadeImpl=function(){this.lookForLinkageTargets=
function(va,ja,aa){va={linkSrc:va.sLinkSrc,pageId:va.pageId,currentSheetName:va.currentSheetName};ca(ja,aa).lookForLinkageTargets(va)};this.chartInnerLink=function(va,ja,aa){va={linkSrc:va.sLinkSrc,pageId:va.pageId,currentSheetName:va.currentSheetName};ca(ja,aa).chartInnerLink(va)};var ca=function(va,ja,aa){return new n(ia(),va,function(pa,la,ea){return!(!ja||!ja(pa,la,ea))},aa)},ia=function(){var va=new v;va.setRemoteUrl((W?W:"/ierp")+"/qing_rpt/runtime.do");va.setTag(ma);return va}};L.LinkageItem=
function(){var ca,ia,va,ja,aa,pa,la,ea,X,na,ta,za,P,t=A.get("linkTitle","\u8054\u67e5/\u8054\u52a8");this.getDomain=function(){return ca};this.getDefaultLink=function(){return ia};this.getReportAlias=function(){return va};this.getReportId=function(){return ja};this.getReportName=function(){return aa};this.getSystemId=function(){return pa};this.getArrParam=function(){return la};this.getLinkType=function(){return X};this.setLinkType=function(D){X=D};this.getType=function(){return na};this.getUrl=function(){return za};
this.getParams=function(){return ta};this.getUiType=function(){return ea};this.getOperateState=function(){return P};this.getMenuName=function(){return t};this.getWrapCallbackFun=function(D,w,b,S){return function(){var C="innerLink"===X;if(C&&D){var T=D.data("selected");T?(D&&D.removeClass("pop-menu-item_selected"),D.data("selected",!1),D.text(A.get("affectionConfirm","\u8054\u52a8"))):(D&&D.addClass("pop-menu-item_selected"),D.data("selected",!0),D.text(A.get("affectionCancel","\u53d6\u6d88\u8054\u52a8")));
w(b,C,T)}else D&&D.addClass("pop-menu-item_selected"),S&&S(),w(b)}};this.getClickCallbackFun=function(D,w,b){return function(S,C,T){null!=S&&(S=D[S],C?w&&w(S,b,T):(b.closePopMenu(),w&&w(S)))}};this.getDisplayLabel=function(){return"innerLink"===X?A.get("affectionConfirm","\u8054\u52a8"):("stringLink"===X?A.get("hyperlinkTo","\u8d85\u94fe\u63a5\u5230"):A.get("linkTo","\u8054\u67e5\u5230"))+'"'+va+'"'};this.fromJson=function(D){ca=D.domain;ia=D.isDefaultLink;va=D.reportAlias;ja=D.reportId;aa=D.reportName;
pa=D.systemId;za=D.url;ta=D.params;na=D.type;ea=D.uiType;P=D.operateState;for(var w=[],b=0;D.paramValues&&b<D.paramValues.length;b++){var S=D.paramValues[b],C=new p;C.alias=S.alias;C.dataType=S.dataType;C.name=S.name;C.values=S.values;w.push(C)}la=w}};L.ParamItem=p;var R,ba,W,ma,K,A;(function(){var ca=com.kingdee.bos.qing.framework.common;R=ca.AbstractFacade;ba=ca.AbstractRemoteCall;A=ca.MultilanguageManager.createPackageAccessor(com.kingdee.bos.extreport.runtime.linkage);ca=com.kingdee.bos.qing.common;
K=ca.Util;ma=K.decodeParamFromUrl(location.search,"tag");W=K.decodeParamFromUrl(location.search,"path")})()})();(function(){function n(ca,ia,va,ja){L.call(this,ca,ia,va,ja);var aa=this.protectedMethod;this.chartChangeLink=function(pa){aa.remote("chartChangeLink",pa)}}function p(){R.call(this);var ca,ia;this.getRemoteUrl=function(va){va.tag=ia;return ca};this.setRemoteUrl=function(va){ca=va};this.setTag=function(va){ia=va}}"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.chart&&(com.kingdee.bos.extreport.runtime.chart={});"undefined"==typeof com.kingdee.bos.extreport.runtime.chart.change&&(com.kingdee.bos.extreport.runtime.chart.change={});var v=com.kingdee.bos.extreport.runtime.chart.change;v.ChartChangeFacadeImpl=function(){this.chartChangeLink=function(va,ja,aa){va={pageId:va.pageId,chartID:va.chartID,
chartType:va.chartType,currentSheetName:va.currentSheetName};ca(ja,aa).chartChangeLink(va)};var ca=function(va,ja,aa){return new n(ia(),va,function(pa,la,ea){return!(!ja||!ja(pa,la,ea))},aa)},ia=function(){var va=new p;va.setRemoteUrl((ba?ba:"/ierp")+"/qing_rpt/runtime.do");va.setTag(W);return va}};v.ChartItemModel=function(ca,ia){this.getChartAlias=function(){return ia};this.getChartName=function(){return ca}};v.CustomPainter=function(ca,ia,va){ca?va?ia.text(va.getChartAlias()):ia.text(K.get("changeChart",
"\u5207\u6362\u56fe\u8868")):ia.text(va.getChartAlias())};var L,R,ba,W,ma,K;(function(){var ca=com.kingdee.bos.qing.framework.common;L=ca.AbstractFacade;R=ca.AbstractRemoteCall;K=ca.MultilanguageManager.createPackageAccessor(com.kingdee.bos.extreport.runtime.linkage);ca=com.kingdee.bos.qing.common;ma=ca.Util;W=ma.decodeParamFromUrl(location.search,"tag");ba=ma.decodeParamFromUrl(location.search,"path")})();var A={};A.QPie=K.get("QPie","\u997c\u56fe");A.QRosePie=K.get("QRosePie","\u73ab\u7470\u56fe");
A.QColumn=K.get("QColumn","\u67f1\u5f62\u56fe");A.QMSColumn=K.get("QMSColumn","\u591a\u7cfb\u5217\u67f1\u5f62\u56fe");A.QSTColumn=K.get("QSTColumn","\u5806\u79ef\u67f1\u5f62\u56fe");A.QPSTColumn=K.get("QPSTColumn","\u767e\u5206\u6bd4\u5806\u79ef\u67f1\u5f62\u56fe");A.QPColumn=K.get("QPColumn","\u67f1\u5f62\u8fdb\u5ea6\u56fe");A.QLine=K.get("QLine","\u6298\u7ebf\u56fe");A.QMSLine=K.get("QMSLine","\u591a\u7cfb\u5217\u6298\u7ebf\u56fe");A.QArea=K.get("QArea","\u9762\u79ef\u56fe");A.QSTArea=K.get("QSTArea",
"\u5806\u79ef\u9762\u79ef\u56fe");A.QPSTArea=K.get("QPSTArea","\u767e\u5206\u6bd4\u5806\u79ef\u9762\u79ef\u56fe");A.QRingPie=K.get("QRingPie","\u73af\u5f62\u56fe");A.QBar=K.get("QBar","\u6761\u5f62\u56fe");A.QMSBar=K.get("QMSBar","\u591a\u7cfb\u5217\u6761\u5f62\u56fe");A.QSTBar=K.get("QSTBar","\u5806\u79ef\u6761\u5f62\u56fe");A.QPSTBar=K.get("QPSTBar","\u767e\u5206\u6bd4\u5806\u79ef\u6761\u5f62\u56fe");A.QPBar=K.get("QPBar","\u6761\u5f62\u8fdb\u5ea6\u56fe");A.QFunnel=K.get("QFunnel","\u6f0f\u6597\u56fe");
A.QWaterFall=K.get("QWaterFall","\u7011\u5e03\u56fe");A.QRadar=K.get("QRadar","\u96f7\u8fbe\u56fe");A.QMSRadar=K.get("QMSRadar","\u591a\u7cfb\u5217\u96f7\u8fbe\u56fe");A.QRectTree=K.get("QRectTree","\u5355\u5c42\u6811\u56fe");A.QMSRectTree=K.get("QMSRectTree","\u53cc\u5c42\u6811\u56fe");A.QMSSunburst=K.get("QMSSunburst","\u65ed\u65e5\u56fe");A.Pie2D=K.get("Pie2D","2D\u997c\u56fe");A.Pie3D=K.get("Pie3D","\u5b9e\u5fc3\u73ab\u7470\u56fe");A.Doughnut2D=K.get("Doughnut2D","2D\u751c\u751c\u5708\u56fe");
A.Doughnut3D=K.get("Doughnut3D","\u7a7a\u5fc3\u73ab\u7470\u56fe");A.Column2D=K.get("Column2D","2D\u67f1\u5f62\u56fe");A.Column3D=K.get("Column3D","3D\u67f1\u5f62\u56fe");A.MSColumn2D=K.get("MSColumn2D","\u591a\u7cfb\u52172D\u67f1\u5f62\u56fe");A.MSColumn3D=K.get("MSColumn3D","\u591a\u7cfb\u52173D\u67f1\u5f62\u56fe");A.StCol2D=K.get("StCol2D","\u5806\u79ef2D\u67f1\u5f62\u56fe");A.StCol3D=K.get("StCol3D","\u5806\u79ef3D\u67f1\u5f62\u56fe");A.ScrollColumn2D=K.get("ScrollColumn2D","\u5e26\u6eda\u52a8\u6761\u7684\u591a\u7cfb\u52172D\u67f1\u5f62\u56fe");
A.ScrollStackedCol2D=K.get("ScrollStackedCol2D","\u5e26\u6eda\u52a8\u6761\u7684\u5806\u79ef2D\u67f1\u5f62\u56fe");A.Bar2D=K.get("Bar2D","2D\u6761\u5f62\u56fe");A.MSBar2D=K.get("MSBar2D","\u591a\u7cfb\u52172D\u6761\u5f62\u56fe");A.MSBar3D=K.get("MSBar3D","\u591a\u7cfb\u52173D\u6761\u5f62\u56fe");A.StBar2D=K.get("StBar2D","\u5806\u79ef2D\u6761\u5f62\u56fe");A.StBar3D=K.get("StBar3D","\u5806\u79ef3D\u6761\u5f62\u56fe");A.Line2D=K.get("Line2D","2D\u6298\u7ebf\u56fe");A.MSLine=K.get("MSLine","\u591a\u7cfb\u52172D\u6298\u7ebf\u56fe");
A.ScrollLine2D=K.get("ScrollLine2D","\u5e26\u6eda\u52a8\u6761\u7684\u591a\u7cfb\u52172D\u6298\u7ebf\u56fe");A.Area2D=K.get("Area2D","2D\u9762\u79ef\u56fe");A.MSArea2D=K.get("MSArea2D","\u5e26\u6eda\u52a8\u6761\u7684\u591a\u7cfb\u52172D\u9762\u79ef\u56fe");A.StArea2D=K.get("StArea2D","\u5806\u79ef2D\u9762\u79ef\u56fe");A.ScrollArea2D=K.get("ScrollArea2D","\u591a\u7cfb\u52172D\u9762\u79ef\u56fe");A.Combi2D=K.get("Combi2D","2D\u7ec4\u5408\u56fe");A.Combi3D=K.get("Combi3D","3D\u7ec4\u5408\u56fe");A.Combi2DDY=
K.get("Combi2DDY","\u53ccY\u8f742D\u7ec4\u5408\u56fe");A.ScrollCombi2D=K.get("ScrollCombi2D","\u5e26\u6eda\u52a8\u6761\u76842D\u7ec4\u5408\u56fe");A.ScrollCombi2DDY=K.get("ScrollCombi2DDY","\u53ccY\u8f74\u5e26\u6eda\u52a8\u6761\u76842D\u7ec4\u5408\u56fe");A.Col3DLine=K.get("Col3DLine","3D\u67f1\u5f62\u7ec4\u5408\u56fe");A.Col3DLineDY=K.get("Col3DLineDY","\u53ccY\u8f743D\u7ec4\u5408\u56fe");A.Pyramid=K.get("Pyramid","\u91d1\u5b57\u5854\u56fe");A.Funnel=K.get("Funnel","\u6f0f\u6597\u56fe");A.Radar=
K.get("Radar","\u96f7\u8fbe\u56fe");v.getChartAlias=function(ca){return A[ca]}})();(function(){function n(){var v=this,L,R,ba,W,ma,K,A;this.setJqParent=function(ja){L=ja};this.setBeforeSlideListener=function(ja){ma=ja};this.setAfterSlideListener=function(ja){K=ja};this.slide=function(ja,aa,pa,la,ea){ma&&ma();ba&&ca(ba);ja=_jqCellCurrentUi=va(ja,aa);p.layoutCtrl(ja,0,0,240,0);ja.appendTo(ia());var X=0;aa=0;for(var na=W.children(),ta=0;ta<na.length;ta++){var za=$(na[ta]),P=parseInt(za.css("width"));za=za.outerWidth(!0);X=Math.max(X,P);aa=Math.max(aa,za)}ja.css("width",aa);for(ta=
0;ta<na.length;ta++){za=$(na[ta]);za.css("width",X);var t=za.prop("offsetTop")+za.prop("offsetHeight")}t=Math.min(200,W.prop("offsetTop")+t+8);na=X=0;var D=ea||D||window.event;if(D.pageX||D.pageY)X=D.pageX,na=D.pageY;ea=window.innerHeight||document.documentElement.offsetHeight;D=window.innerWidth||document.documentElement.offsetWidth;ea=0<t+na-ea+45?t+na-ea+45:0;D=0<aa+X-D+15?aa+X-D+15:0;0<$(".extreport-card-content").length?(na-=40,X-=20):0<$(".extreport-card-content-mobile").length?(na-=74,X-=8):
(0<$(".runtime-filter-container-rpt").length&&(na-=$(".runtime-filter-container-rpt").height()),0<$("#previewLimitShowPrompt").length&&"none"!=$("#previewLimitShowPrompt").css("display")&&(na-=45),X-=10,na=na-10-45);la&&(la=$(pa).offset().top,pa=$(pa).offset().left,0<$(".extreport-card-content").length?(la-=40,pa-=20):0<$(".extreport-card-content-mobile").length?(la=na-74,pa=X-8):(0<$(".runtime-filter-container-rpt").length&&(la-=$(".runtime-filter-container-rpt").height()),0<$("#previewLimitShowPrompt").length&&
"none"!=$("#previewLimitShowPrompt").css("display")&&(la-=45),la-=55,pa-=10),na-=la,X-=pa);p.layoutCtrl(ja,0<X-D?X-D:0,0<na-ea?na-ea:0,aa,t);ja.animate({left:0<X-D?X-D:0},250)};this.abandon=function(){R&&R.remove();ba=R=null};this.sayGoodbye=function(ja,aa){ba&&ca(ba);clearTimeout(A);var pa=L.find(".pop-menu-bye");if(0==pa.length){var la=L.prop("clientWidth");pa=$("<div>");pa.addClass("pop-menu-bye");p.layoutCtrl(pa,la,"40%","100%",20);pa.appendTo(ia());pa.animate({left:0},500)}pa.text(ja);A=setTimeout(v.abandon,
aa?aa:5E3)};this.closePopMenu=function(){ba&&ca(ba);clearTimeout(A);A=setTimeout(v.abandon,0)};var ca=function(ja,aa){var pa=0-ja.prop("offsetWidth");ja.animate({left:pa},250,function(){ja.remove();aa&&aa()})},ia=function(){R||(R=$("<div>"),R.css("background-color","rgba(0,0,0,0.001)"),R.appendTo(L),p.layoutCtrlWithLRTB(R,0,0,null,0,0,null));return R},va=function(ja,aa){var pa=$("<div>");pa.css("z-index",8);pa.addClass("pop-menu");var la=$("<div>");la.text(ja[0].getMenuName());la.addClass("pop-menu-tips");
la.appendTo(pa);la=$("<div>");la.text("\u00d7");la.addClass("pop-menu-close");la.on("click",function(za){ca(pa,v.abandon);ja[0].getWrapCallbackFun(null,aa,null,K)()});la.appendTo(pa);p.layoutCtrlWithLRTB(la,null,0,20,0,null,20);W=$("<div>");W.css("overflow","auto");W.css("overflow-x","hidden");W.appendTo(pa);p.layoutCtrlWithLRTB(W,0,0,null,16,8,null);for(la=0;la<ja.length;la++){var ea=$("<div>");ea.css({position:"relative",display:"block"});ea.addClass("pop-menu-item");var X=ja[la],na=la,ta=X.getDisplayLabel();
ea.on("click",X.getWrapCallbackFun(ea,aa,na,K));ea.text(ta);ea.attr("title",ta);ea.appendTo(W)}return pa}}"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.popmenu&&(com.kingdee.bos.extreport.runtime.popmenu=
{});"undefined"==typeof com.kingdee.bos.extreport.runtime.popmenu.ui&&(com.kingdee.bos.extreport.runtime.popmenu.ui={});com.kingdee.bos.extreport.runtime.popmenu.ui.PopMenuJumpHelper=function(){var v;this.prepare=function(L,R,ba,W,ma){if(1===L.length&&"innerLink"!=L[0].getLinkType())ba&&ba(L[0]);else{v||(v=new n);var K=v;K.abandon();K.setJqParent($(R));K.slide(L,L[0].getClickCallbackFun(L,ba,K),R,W,ma)}};this.getOperatingMenu=function(){return v}};var p;(function(){var v=com.kingdee.bos.qing.framework.common;
v.MultilanguageManager.createPackageAccessor(com.kingdee.bos.extreport.runtime.linkage);v=com.kingdee.bos.qing.common;p=v.DomUtil})()})();
//qingVersionTag: 20250828