var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(u,B,O){u instanceof String&&(u=String(u));for(var S=u.length,Y=0;Y<S;Y++){var ja=u[Y];if(B.call(O,ja,Y,u))return{i:Y,v:ja}}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(u,B,O){if(u==Array.prototype||u==Object.prototype)return u;u[B]=O.value;return u};$jscomp.getGlobal=function(u){u=["object"==typeof globalThis&&globalThis,u,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var B=0;B<u.length;++B){var O=u[B];if(O&&O.Math==Math)return O}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(u,B){var O=$jscomp.propertyToPolyfillSymbol[B];if(null==O)return u[B];O=u[O];return void 0!==O?O:u[B]};
$jscomp.polyfill=function(u,B,O,S){B&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(u,B,O,S):$jscomp.polyfillUnisolated(u,B,O,S))};$jscomp.polyfillUnisolated=function(u,B,O,S){O=$jscomp.global;u=u.split(".");for(S=0;S<u.length-1;S++){var Y=u[S];if(!(Y in O))return;O=O[Y]}u=u[u.length-1];S=O[u];B=B(S);B!=S&&null!=B&&$jscomp.defineProperty(O,u,{configurable:!0,writable:!0,value:B})};
$jscomp.polyfillIsolated=function(u,B,O,S){var Y=u.split(".");u=1===Y.length;S=Y[0];S=!u&&S in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var ja=0;ja<Y.length-1;ja++){var Z=Y[ja];if(!(Z in S))return;S=S[Z]}Y=Y[Y.length-1];O=$jscomp.IS_SYMBOL_NATIVE&&"es6"===O?S[Y]:null;B=B(O);null!=B&&(u?$jscomp.defineProperty($jscomp.polyfills,Y,{configurable:!0,writable:!0,value:B}):B!==O&&(void 0===$jscomp.propertyToPolyfillSymbol[Y]&&(O=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[Y]=$jscomp.IS_SYMBOL_NATIVE?
$jscomp.global.Symbol(Y):$jscomp.POLYFILL_PREFIX+O+"$"+Y),$jscomp.defineProperty(S,$jscomp.propertyToPolyfillSymbol[Y],{configurable:!0,writable:!0,value:B})))};$jscomp.polyfill("Array.prototype.find",function(u){return u?u:function(B,O){return $jscomp.findInternal(this,B,O).v}},"es6","es3");
$jscomp.polyfill("String.prototype.replaceAll",function(u){return u?u:function(B,O){if(B instanceof RegExp&&!B.global)throw new TypeError("String.prototype.replaceAll called with a non-global RegExp argument.");return B instanceof RegExp?this.replace(B,O):this.replace(new RegExp(String(B).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),O)}},"es_2021","es3");$jscomp.arrayIteratorImpl=function(u){var B=0;return function(){return B<u.length?{done:!1,value:u[B++]}:{done:!0}}};
$jscomp.arrayIterator=function(u){return{next:$jscomp.arrayIteratorImpl(u)}};$jscomp.initSymbol=function(){};
$jscomp.polyfill("Symbol",function(u){if(u)return u;var B=function(ja,Z){this.$jscomp$symbol$id_=ja;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:Z})};B.prototype.toString=function(){return this.$jscomp$symbol$id_};var O="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",S=0,Y=function(ja){if(this instanceof Y)throw new TypeError("Symbol is not a constructor");return new B(O+(ja||"")+"_"+S++,ja)};return Y},"es6","es3");
$jscomp.polyfill("Symbol.iterator",function(u){if(u)return u;u=Symbol("Symbol.iterator");for(var B="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),O=0;O<B.length;O++){var S=$jscomp.global[B[O]];"function"===typeof S&&"function"!=typeof S.prototype[u]&&$jscomp.defineProperty(S.prototype,u,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return u},"es6",
"es3");$jscomp.iteratorPrototype=function(u){u={next:u};u[Symbol.iterator]=function(){return this};return u};$jscomp.iteratorFromArray=function(u,B){u instanceof String&&(u+="");var O=0,S=!1,Y={next:function(){if(!S&&O<u.length){var ja=O++;return{value:B(ja,u[ja]),done:!1}}S=!0;return{done:!0,value:void 0}}};Y[Symbol.iterator]=function(){return Y};return Y};
$jscomp.polyfill("Array.prototype.keys",function(u){return u?u:function(){return $jscomp.iteratorFromArray(this,function(B){return B})}},"es6","es3");$jscomp.owns=function(u,B){return Object.prototype.hasOwnProperty.call(u,B)};$jscomp.polyfill("Object.values",function(u){return u?u:function(B){var O=[],S;for(S in B)$jscomp.owns(B,S)&&O.push(B[S]);return O}},"es8","es3");
$jscomp.polyfill("Array.prototype.findIndex",function(u){return u?u:function(B,O){return $jscomp.findInternal(this,B,O).i}},"es6","es3");
(function(){function u(){var b=this,y=0,L=0,C=0,I=0,v=0,ka=0;this.setVisit=function(T){y=T};this.getVisit=function(){return y};this.setExport=function(T){L=T};this.getExport=function(){return L};this.setPrint=function(T){C=T};this.getPrint=function(){return C};this.getSave=function(){return I};this.setSave=function(T){I=T};this.getEdit=function(){return v};this.setEdit=function(T){v=T};this.setTotal=function(T){ka=T};this.getTotal=function(){return ka};this.fromJsonObject=function(T){T&&(b.setVisit(T.iVisit),
b.setExport(T.iExport),b.setPrint(T.iPrint),b.setSave(T.iSaveSnapShot),b.setEdit(T.iEditSnapShot),b.setTotal(T.total))};this.toJsonObject=function(){var T={};T.iVisit=y;T.iExport=L;T.iPrint=C;T.iSaveSnapShot=I;T.iEditSnapShot=v;T.total=ka;return T}}function B(){var b,y,L;this.setOperationType=function(C){b=C};this.getOperationType=function(){return b};this.setOperationTime=function(C){y=C};this.getOperationTime=function(){return y};this.setOperationFormatTime=function(C){L=C};this.getOperationFormatTime=
function(){return L};this.fromJsonObject=function(C){C&&(b=C.operationType,y=C.operationTime,L=C.operationFormatTime)};this.toJsonObject=function(){var C={};C.operationType=b;C.operationTime=y;return C}}function O(){S.call(this);var b=this;this.isPreset=function(){return b.getCreatorId()==ha};this.fromJsonObject=function(y){y&&(b.setId(y.id),b.setName(y.name),b.setCreatorId(y.creatorId),b.setCreatorName(y.creatorName),b.setCreateTime(y.createTime),b.setCreateFormatTime(y.createFormatTime),b.setPath(y.path),
b.setArrUsers(y.users),b.setArrRoles(y.roles))};this.cloneMe=function(){var y=new O;y.setId(b.getId());y.setName(b.getName());y.setCreatorId(b.getCreatorId());y.setCreatorName(b.getCreatorName());y.setCreateTime(b.getCreateTime());y.setCreateFormatTime(b.getCreateFormatTime());y.setPublishSourceType(b.getPublishSourceType());y.setPath(b.getPath());y.setArrRoles(b.getArrRoles());y.setArrUsers(b.getArrUsers());return y}}function S(){var b,y,L,C,I,v,ka,T=[],va=[],ma;this.setId=function(l){b=l};this.getId=
function(){return b};this.setName=function(l){y=l};this.getName=function(){return y};this.setCreatorId=function(l){L=l};this.getCreatorId=function(){return L};this.setCreatorName=function(l){C=l};this.getCreatorName=function(){return C};this.setCreateTime=function(l){I=l};this.getCreateTime=function(){return I};this.setCreateFormatTime=function(l){v=l};this.getCreateFormatTime=function(){return v};this.setPublishSourceType=function(l){ka=l};this.getPublishSourceType=function(){return ka};this.setArrUsers=
function(l){va=l};this.getArrUsers=function(){return va};this.setArrRoles=function(l){T=l};this.getArrRoles=function(){return T};this.setPath=function(l){ma=l};this.getPath=function(){return ma};this.isPreset=function(){return L==ha}}function Y(){var b=this,y=!1,L=[],C,I,v,ka,T,va,ma;this.fromJsonObject=function(l){if(l){b.setRptId(l.rptId);b.setRptName(l.rptName);b.setRptPath(l.rptPath);b.setCreatorName(l.creatorName);b.setCreateTime(l.createTime);b.setCreateFormatTime(l.createFormatTime);b.setDeleted(l.isDelete);
l=l.snapinfoList;var Ra=b.getArrSnapChildren(),Wa;for(Wa in l){var Sa=new ja;Sa.fromJsonObject(l[Wa]);Sa.setParent(b);Ra.push(Sa)}}};this.cloneMe=function(){var l=new Y;l.setRptId(b.getRptId());l.setRptName(b.getRptId());l.setRptPath(b.getRptId());l.setCreatorName(b.getRptId());l.setCreateTime(b.getRptId());l.setDeleted(b.getDeleted());for(var Ra in b.getArrSnapChildren()){var Wa=b.getArrSnapChildren()[Ra].cloneMe();l.addSnapToReport(Wa)}return l};this.setDeleted=function(l){ma=1==l?!0:!1};this.getDeleted=
function(){return ma};this.getRptId=function(){return C};this.setRptId=function(l){C=l};this.getIsCheck=function(){for(var l=0;l<L.length;l++)if(!L[l].getIsCheck())return!1;return!0};this.setIsCheck=function(l){for(var Ra=0;Ra<L.length;Ra++)L[Ra].setIsCheck(l)};this.getIsExpand=function(){return y};this.setIsExpand=function(l){y=l};this.getArrSnapChildren=function(){return L};this.addSnapToReport=function(l){L.push(l)};this.setArrSnapChildren=function(l){L=l};this.getRptName=function(){return I};
this.setRptName=function(l){I=l};this.getRptPath=function(){return v};this.setRptPath=function(l){v=l};this.getCreatorName=function(){return ka};this.setCreatorName=function(l){ka=l};this.getCreateTime=function(){return T};this.setCreateTime=function(l){T=l};this.getCreateFormatTime=function(){return va};this.setCreateFormatTime=function(l){va=l}}function ja(){var b=this,y,L,C,I,v,ka,T=!1,va,ma;this.fromJsonObject=function(l){l&&(b.setId(l.snapId),b.setName(l.snapName),b.setPathName(l.pathName),b.setCreatorName(l.creatorName),
b.setCreateTime(l.createTime),b.setCreateFormatTime(l.createFormatTime),b.setPath(l.pathId))};this.cloneMe=function(){var l=new ja;l.setId(b.getId());l.setName(b.getName());l.setPathName(b.getPathName());l.setCreatorName(b.getCreatorName());l.setCreateTime(b.getCreateTime());l.setPath(b.getPath());l.setParent(b.getParent());return l};this.getPath=function(){return ma};this.setPath=function(l){ma=l};this.getParent=function(){return va};this.setParent=function(l){va=l};this.getIsCheck=function(){return T};
this.setIsCheck=function(l){T=l};this.getId=function(){return y};this.setId=function(l){y=l};this.getName=function(){return L};this.setName=function(l){L=l};this.getPathName=function(){return C};this.setPathName=function(l){C=l};this.getCreatorName=function(){return I};this.setCreatorName=function(l){I=l};this.getCreateTime=function(){return v};this.setCreateTime=function(l){v=l};this.getCreateFormatTime=function(){return ka};this.setCreateFormatTime=function(l){ka=l}}"undefined"==typeof com&&(com=
{});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.access&&(com.kingdee.bos.qing.access={});"undefined"==typeof com.kingdee.bos.qing.access.model&&(com.kingdee.bos.qing.access.model={});var Z=com.kingdee.bos.qing.access.model;Z.DataAccessionDetailModel=function(){B.call(this);
var b,y,L;this.getIsDeleted=function(){return L};this.setPubName=function(v){b=v};this.getPubName=function(){return b};this.setPubPath=function(v){y=v};this.getPubPath=function(){return y};var C=this.fromJsonObject;this.fromJsonObject=function(v){v&&(C(v),b=v.pubName,y=v.pubPath,L=v.isDeleted)};var I=this.toJsonObject;this.toJsonObject=function(){var v=I();v.pubName=b;v.pubPath=y;v.isDeleted=L;return v}};Z.UserAccessionDetailModel=function(){B.call(this);var b,y;this.setUserId=function(I){b=I};this.getUserId=
function(){return b};this.setUserName=function(I){y=I};this.getUserName=function(){return y};var L=this.fromJsonObject;this.fromJsonObject=function(I){I&&(L(I),b=I.userId,y=I.userName)};var C=this.toJsonObject;this.toJsonObject=function(){var I=C();I.userId=b;I.userName=y;return I}};Z.UserAccessModel=function(){u.call(this);var b,y;this.setUserId=function(I){b=I};this.getUserId=function(){return b};this.setUserName=function(I){y=I};this.getUserName=function(){return y};var L=this.fromJsonObject;this.fromJsonObject=
function(I){I&&(L(I),b=I.userId,y=I.userName)};var C=this.toJsonObject;this.toJsonObject=function(){var I=C();I.userId=b;I.userName=y;return I}};Z.DataAccessModel=function(){u.call(this);var b,y,L,C,I,v,ka,T;this.isPreset=function(){return ka==ha};this.getIsDeleted=function(){return T};this.setSourceId=function(l){b=l};this.getSourceId=function(){return b};this.setPubName=function(l){y=l};this.getPubName=function(){return y};this.setPubPath=function(l){L=l};this.getPubPath=function(){return L};this.setCreateTime=
function(l){C=l};this.getCreateTime=function(){return C};this.setCreateFormatTime=function(l){I=l};this.getCreateFormatTime=function(){return I};this.setCreateName=function(l){v=l};this.getCreateName=function(){return v};this.setCreateId=function(l){return ka=l};this.getCreateId=function(){return ka};var va=this.fromJsonObject;this.fromJsonObject=function(l){l&&(va(l),b=l.sourceId,y=l.pubName,L=l.pubPath,C=l.createTime,I=l.createFormatTime,v=l.creator,ka=l.creatorId,T=l.isDeleted)};var ma=this.toJsonObject;
this.toJsonObject=function(){var l=ma();l.sourceId=b;l.pubName=y;l.pubPath=L;l.createTime=C;l.creator=v;l.creatorId=ka;l.isDeleted=T;return l}};Z.DetailModel=B;Z.PublishModel=O;Z.ReportModel=Y;Z.SnapModel=ja;var ha="100000"})();(function(){"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.estabilish&&(com.kingdee.bos.qing.estabilish={});"undefined"==typeof com.kingdee.bos.qing.estabilish.model&&(com.kingdee.bos.qing.estabilish.model={});var u=com.kingdee.bos.qing.estabilish.model;u.CreatorAspectModel=function(){var B,O,S=0,
Y=0,ja=0,Z=0,ha=0;this.setCreatorId=function(b){B=b};this.getCreatorId=function(){return B};this.setCreatorName=function(b){O=b};this.getCreatorName=function(){return O};this.setDataSetNum=function(b){S=b};this.getDataSetNum=function(){return S};this.setReportNum=function(b){Y=b};this.getReportNum=function(){return Y};this.setPublishNum=function(b){ja=b};this.getPublishNum=function(){return ja};this.setSnapShotNum=function(b){Z=b};this.getSnapShotNum=function(){return Z};this.setTotalNum=function(b){ha=
b};this.getTotalNum=function(){return ha};this.fromJsonObject=function(b){b&&(this.setCreatorId(b.creatorId),this.setCreatorName(b.creatorName),this.setDataSetNum(b.dataSetNum),this.setReportNum(b.reportNum),this.setPublishNum(b.publishNum),this.setSnapShotNum(b.snapshotNum),this.setTotalNum(b.totalNum))};this.toJsonObject=function(){var b={};b.creatorId=B;b.creatorName=O;b.dataSetNum=S;b.reportNum=Y;b.publishNum=ja;b.snapshotNum=Z;b.totalNum=ha;return b}};u.DataAspectModel=function(){var B,O,S,Y,
ja,Z,ha;this.isPreset=function(){return"100000"==ha};this.setPubName=function(b){B=b};this.getPubName=function(){return B};this.setPubPath=function(b){O=b};this.getPubPath=function(){return O};this.setPubType=function(b){S=b};this.getPubType=function(){return S};this.setCreateTime=function(b){Y=b};this.getCreateTime=function(){return Y};this.setCreateFormatTime=function(b){ja=b};this.getCreateFormatTime=function(){return ja};this.setCreateName=function(b){Z=b};this.getCreateName=function(){return Z};
this.setCreatorId=function(b){ha=b};this.fromJsonObject=function(b){b&&(this.setPubName(b.pubName),this.setPubType(b.pubType),this.setPubPath(b.pubPath),this.setCreateTime(b.createTime),this.setCreateFormatTime(b.createFormatTime),this.setCreateName(b.creatorName),this.setCreatorId(b.creatorId))};this.toJsonObject=function(){var b={};b.pubName=B;b.pubType=S;b.pubPath=O;b.createTime=Y;b.creatorName=Z;return 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.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.access&&(com.kingdee.bos.qing.access={});"undefined"==typeof com.kingdee.bos.qing.access.common&&(com.kingdee.bos.qing.access.common={});var u=com.kingdee.bos.qing.access.common;
u.AccessAspectServiceFacade=function(S,Y,ja,Z){B.call(this,S,Y,ja,Z);var ha=this.protectedMethod;ha.setShowBlocking(!0);this.loadDataAspectIndex=function(b,y,L,C,I,v,ka,T,va){b={arrPublishId:JSON.stringify(b),arrSnapId:JSON.stringify(y),arrCreatorId:JSON.stringify(L),startTime:C,endTime:I,field:v,order:ka,targetPage:T,pageSize:va,timeZone:(new Date).getTimezoneOffset()/60};ha.remote("loadDataAspectIndex",b)};this.loadDataAspectAccessRecord=function(b,y,L,C,I,v,ka){b={sourceId:b,startTime:y,endTime:L,
field:C,order:I,targetPage:v,pageSize:ka,timeZone:(new Date).getTimezoneOffset()/60};ha.remote("loadDataAspectAccessRecord",b)};this.loadDataAspectDetailRecord=function(b,y,L,C,I,v,ka,T,va,ma){b={sourceId:b,userId:y,operationType:L,startTime:C,endTime:I,field:v,order:ka,targetPage:T,pageSize:va,totalRows:ma,timeZone:(new Date).getTimezoneOffset()/60};ha.remote("loadDataAspectDetailRecord",b)};this.loadDataAspectDetailRecordWithUser=function(b,y,L,C,I,v,ka,T,va){b={sourceId:b,operationType:y,startTime:L,
endTime:C,field:I,order:v,targetPage:ka,pageSize:T,totalRows:va,timeZone:(new Date).getTimezoneOffset()/60};ha.remote("loadDataAspectDetailRecordWithUser",b)};this.loadUserAspectIndex=function(b,y,L,C,I,v,ka){b={arrUserId:JSON.stringify(b),startTime:y,endTime:L,field:C,order:I,targetPage:v,pageSize:ka,timeZone:(new Date).getTimezoneOffset()/60};ha.remote("loadUserAspectIndex",b)};this.loadUserAspectAccessModel=function(b,y,L,C,I,v,ka){b={userId:b,startTime:y,endTime:L,field:C,order:I,targetPage:v,
pageSize:ka,timeZone:(new Date).getTimezoneOffset()/60};ha.remote("loadUserAspectAccessModel",b)};this.loadUserAspectDetailModel=function(b,y,L,C,I,v,ka,T,va,ma){b={sourceId:b,userId:y,operationType:L,startTime:C,endTime:I,field:v,order:ka,targetPage:T,pageSize:va,totalRows:ma,timeZone:(new Date).getTimezoneOffset()/60};ha.remote("loadUserAspectDetailModel",b)};this.loadUserAspectDetailModelWithData=function(b,y,L,C,I,v,ka,T,va){b={userId:b,operationType:y,startTime:L,endTime:C,field:I,order:v,targetPage:ka,
pageSize:T,totalRows:va,timeZone:(new Date).getTimezoneOffset()/60};ha.remote("loadUserAspectDetailModelWithData",b)};this.exportExcel=function(b){ha.remote("exportExcel",b)}};u.RemoteImpl=function(){O.call(this);var S;this.getRemoteUrl=function(){return S};this.setRemoteUrl=function(Y){S=Y}};u.SelectPublishNameFacade=function(S,Y,ja,Z){B.call(this,S,Y,ja,Z);var ha=this.protectedMethod;ha.setShowBlocking(!0);this.getPublishMenuTree=function(){ha.remote("getPublishMenuTree",{})};this.getRptPublishMenuTree=
function(b,y){ha.remote("getRptPublishMenuTree",{searchMenuText:b,searchDataText:y})};this.getRptPublishDataByPath=function(b,y,L,C,I,v){b={arrRelationId:JSON.stringify(b),pathType:y,searchText:L,targetPage:C,pageSize:I,callBackTime:v};ha.remote("getRptPublishDataByPath",b)};this.getRptSnapMenuTree=function(b,y){ha.remote("getRptSnapMenuTree",{searchMenuText:b,searchDataText:y})};this.getRptSnapShotByPath=function(b,y,L,C,I){b={arrRelationId:JSON.stringify(b),searchText:y,targetPage:L,pageSize:C,
callBackTime:I};ha.remote("getRptSnapShotByPath",b)};this.getRptSnapCountInMenu=function(b){ha.remote("getRptSnapCountInMenu",{searchText:b})}};var B,O;(function(){var S=com.kingdee.bos.qing.framework.common;B=S.AbstractFacade;O=S.AbstractRemoteCall})()})();(function(){"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.estabilish&&(com.kingdee.bos.qing.estabilish={});"undefined"==typeof com.kingdee.bos.qing.estabilish.common&&(com.kingdee.bos.qing.estabilish.common={});var u=com.kingdee.bos.qing.estabilish.common;u.EstablishAspectServiceFacade=function(O,
S,Y,ja){B.call(this,O,S,Y,ja);var Z=this.protectedMethod;Z.setShowBlocking(!0);this.loadNumericCreateRecordByIds=function(ha,b,y,L,C){ha={creatorIds:JSON.stringify(ha),targetPage:b,pageSize:y,field:L,order:C};Z.remote("loadNumericCreateRecordByIds",ha)};this.loadDetailBySinglePersonAndType=function(ha,b,y,L,C,I){Z.remote("loadDetailBySinglePersonAndType",{creatorId:ha,type:b,field:y,order:L,targetPage:C,pageSize:I})};this.loadDetailFromDataAspect=function(ha,b,y,L,C,I,v){ha={types:JSON.stringify(ha),
creatorIds:JSON.stringify(b),name:y,field:L,order:C,targetPage:I,pageSize:v};Z.remote("loadDetailFromDataAspect",ha)};this.exportExcel=function(ha){Z.remote("exportExcel",ha)}};var B=com.kingdee.bos.qing.framework.common.AbstractFacade;u.EXPORT_TYPE={};u.EXPORT_TYPE.CREATOR_INDEX=0;u.EXPORT_TYPE.CREATOR_DATASET=1;u.EXPORT_TYPE.CREATOR_REPORT=2;u.EXPORT_TYPE.CREATOR_PUBLISH=3;u.EXPORT_TYPE.CREATOR_SNAPSHOT=4;u.EXPORT_TYPE.CREATOR_TOTAL=5;u.EXPORT_TYPE.DATA_INDEX=6;u.DATATYPE=new function(){this.DATASET=
0;this.REPORT=1;this.PUBLISH=2;this.SNAPSHOT=3;this.TOTAL=4}})();(function(){function u(a,c,d,e){G.call(this,a,c,d,e);var p=this.protectedMethod;p.setShowBlocking(!0);this.checkPermission=function(){var f={};f.appID=kb.getUrlParamValue("appID");p.remote("checkPermission",f)}}function B(){var a=this,c=(new Date).getTime(),d,e,p;this.setFilePrefix=function(f){d=f?f.replace(/\s+/g,"_"):"Qing-"};this.exportExcel=function(f,q,w){var k=(d?d:"Qing-")+Aa.formatDate("yyyyMMdd_HHmmss")+".xlsx",m=function(Q){na.downloadFile(k,Q);da.interestInBehavior(da.EXPORT_TYPE,"EXCEL",
(new Date).getTime()-c)},r=function(Q,x){a.getMessageCurtain().showPrompt(x)},E=la.createFeedbackDialog();E.setOptionType(la.OPTION_OK_CANCEL);E.setMessage(D.get("confirmToExport","\u5f53\u524d\u64cd\u4f5c\u5c06\u5bfc\u51fa#1\u6761\u8bb0\u5f55\uff0c\u662f\u5426\u786e\u5b9a\u5bfc\u51fa\uff1f").replace("#1",w));E.setClosingChecker(function(Q){Q==la.RETURN_OK&&e(f,q,m,r);return!0});E.showDialog()};this.setExportExcelHanlder=function(f){e=f};this.getMessageCurtain=function(){null==p&&(p=new Ca,p.getJqUi().appendTo($("#switch-tab")));
return p}}function O(){hb.call(this);this.protectedMethod.setTotalSelectedRowAndSelectedAllVisual(!1,!1)}function S(){var a,c=[],d;this.getJqUi=function(){a||(a=$("<div class='rpt-statistic-foot'>"));return a};this.updateTotalColumn=function(e,p){a.empty();for(var f,q=0,w=0;w<e.getColumnsCount();w++)c[w]=$("<div>"),c[w].addClass("rpt-statistic-foot-sum"),c[w].appendTo(a),f=e.getColumn(w).getWidth(),c[w].css("width",f),c[w].text(d[w]),c[w].css("left",q),q+=f;c[0].css({color:"#666","text-align":"left",
"padding-left":"8px","padding-right":"8px"});void 0!==p&&pa.layoutCtrl(a,-p,null,q+p,null)};this.setArrTotalText=function(e){d=e}}function Y(){var a=this,c=!1,d,e,p,f,q,w=[],k,m=0,r=0,E,Q,x,P,aa=!1,t,J,A,g=!1,h,n,H,W,X=1;this.createSortTable=function(){k=$("<div>");Q&&ca(k);k.append(Da());if(aa){var ea=k;J=new S;t=J.getJqUi();t.css("display","none");ea.append(t)}return k};var ca=function(ea){P=new O;P.setJumpToPageListener(function(Ba,za,Ka){a.changePageListener(Ba,za,Ka)});P.setComboBoxItemModelsAndSelectedItem([5,
10,20,50,100,500,1E3],2);x=P.getJqUi();x.css({display:"none",padding:"0px 4px 0px 7px",width:"100%",top:"0px"});ea.append(x)},Da=function(){e=ra.createTable();e.setColumnFitVisibleWidth(!0);e.setDraggableAdjusting(!0,3,0,new ha);e.setSyncMergeBlockWhenModelChanged(!1);e.setMergeBlockTextVisibleAlways(!0);var ea=new Oa(e);ea.setOutsideVisible(!1);e.setCellRender(ea);e.setSyncUIWhenModelChanged(!0);g&&e.setCellAcrossListener(function(za,Ka,Pa){var Ya=za&&0<za.length?za[0]:null;h!=Ya&&(h&&(W.hideSortingTips($(h)),
h=null),1==Ka&&0<=Pa&&f[Pa].getSortable()&&(W||(W=new ja,W.setDefaultField(f[q].getField()),W.setFunSortchangeListener(function(Xa){if(Xa)var La=Xa;else La=new Z,La.setOrder(Z.ORDER_DESC);n=!0;Xa=La.getField();La=La.getOrder();a.changeSortListener(Xa,La)})),W.showSortingTips(za,f[Pa].getField(),X),h=Ya))});Za();p=$(e.getUI());var Ba;p.children().first().scroll(function(){var za=$(this).scrollLeft();clearTimeout(Ba);Ba=setTimeout(function(){a.updateTotalComponent(w,za)},10)});p.addClass("rpt-statistic-detail-content-table");
p.children("div:nth-child(2)").on("mousedown",function(za){E=!0;m=za.screenX;r=za.screenY});document.addEventListener("mouseup",function(za){!E||m==za.screenX&&r==za.screenY||(E=!1,a.updateTotalComponent(w))});return p},Za=function(){e.addColumns(f.length);for(var ea=0;ea<f.length;ea++)e.getColumn(ea).setWidth(f[ea].getWidthRatio());var Ba=ra.createHeadRow(e);for(ea=0;ea<f.length;ea++)Ba.getCell(ea).setValue(f[ea].getName())};this.getTable=function(){return e};this.getJqTable=function(){return p};
this.setIconRightPx=function(ea){X=ea};this.refreshTable=function(){"none"!=p.css("display")&&(ra.refresh(e),a.updateTotalComponent(w))};this.relayoutTable=function(){aa&&"none"!=t.css("display")?p.css("height","calc(100% - 67px)"):p.css("height","calc(100% - 32px)")};this.setFuncResolveObjectToTotalArr=function(ea){A=ea};var Oa=function(ea){KTDefaultCellRender.call(this,ea);var Ba=this,za=this.paintCellUI;this.paintCellUI=function(Ka,Pa){var Ya=Ba.getCurrentRowIdx(),Xa=Ba.getCurrentRow(),La=Ba.getCurrentColIdx(),
cb=Xa.getUserObject();1==Ya&&g?(za(Ka,Pa),W&&0<=La&&f[La].getSortable()&&(n?W.addSortingTips($(Ka),f[La].getField(),X):La!=q&&W.addSortingTips($(Ka),f[La].getField(),X)),La!=q||n||(H=new ja,H.setDefaultField(f[q].getField()),H.setFunSortchangeListener(function(z){if(z){var K=z;W.setShowSortingModel(H.getShowSortingModel())}else K=new Z,K.setField(f[q].getField()),K.setOrder(Z.ORDER_DESC);n=!0;z=K.getField();K=K.getOrder();a.changeSortListener(z,K)}),H.addDefaultSortingTips($(Ka),f[La].getField(),
X))):Ya<ra.getHeadRowCount()?za(Ka,Pa):a.cellShow(Ka,Ya,Xa,La,cb)}};this.cellShow=function(ea,Ba,za,Ka,Pa){throw Error("Override");};this.updateTable=function(ea){ea&&(d=ea);if(d&&0!=document.body.clientHeight&&0!=document.body.clientWidth)if(ea=d,c=!0,ra.clearWithoutHead(e),e.setSyncUIWhenModelChanged(!1),ea&&0<ea.length){p.css("display","block");a.showOrHideContent(!0);for(var Ba in f)f[Ba].getSortable()&&(w[Ba]=0);for(Ba=0;Ba<ea.length;Ba++){var za=ea[Ba];if(aa&&A)for(var Ka=A(za),Pa=0;Pa<f.length;Pa++)f[Pa].getCalculable()&&
(w[Pa]+=Ka[Pa]);Ka=ra.createRow(e);Ka.setHeight(30);Ka.setUserObject(za)}e.setSyncUIWhenModelChanged(!0);ra.refresh(e);a.updateTotalComponent(w)}else p.css("display","none"),a.showOrHideContent(!1)};this.isTableInited=function(){return c};this.showOrHideContent=function(ea){throw Error("Override");};this.setSortEnabled=function(ea){g=ea};this.setSortTableHeads=function(ea,Ba){f=ea;q=Ba;for(var za in f)f[za].getSortable()&&(g=!0),f[za].getCalculable()?(aa=!0,w.push(0)):w.push("");w[0]=D.get("total",
"\u5408\u8ba1")};this.getDefaultSortField=function(){return f[q].getField()};this.getDefaultSortOrder=function(){return"DESC"};this.changeSortListener=function(ea,Ba){throw Error("Override");};this.changePageListener=function(ea,Ba,za){throw Error("Override");};this.setEnablePagination=function(ea){Q=ea};this.getJqUiPagination=function(){return x};this.getPaginationBar=function(){return P};this.setEnableAggregate=function(ea){aa=ea};this.getJquiTotalComponent=function(){return t};this.updateTotalComponent=
function(ea,Ba){ea&&(J&&J.setArrTotalText(ea),J&&J.updateTotalColumn(a.getTable(),Ba))}}function ja(){var a,c,d,e;this.setShowSortingModel=function(k){d=k};this.getShowSortingModel=function(){return d};this.setFunSortchangeListener=function(k){e=k};this.setDefaultField=function(k){a=k};this.showSortingTips=function(k,m,r){var E=k.find(".detaillist-sort-box");0==E.length&&(E=new Z,E.setField(m),E.setOrder(null),E=w(k,E,r),k.append(E));E.addClass("detaillist-sort-box_clickable")};this.hideSortingTips=
function(k){k=k.find(".detaillist-sort-box");k.removeClass("detaillist-sort-box_clickable");p(k)};this.addSortingTips=function(k,m,r){d&&null!=d.getOrder()&&d.getField()==m&&(m=w(k,d,r),k.append(m))};this.addDefaultSortingTips=function(k,m,r){var E=new Z;E.setField(m);E.setOrder(Z.ORDER_DESC);m=w(k,E,r);k.append(m)};var p=function(k){var m=k.data("sortable-data");m&&null==m.getOrder()&&k.remove()},f=function(k,m){var r=ja.BOX_LEN-2,E=$("<div>");Va.background(E,"icon_sortable-v");E.attr("title",D.get("sort",
"\u6392\u5e8f"));E.addClass("detaillist-sort-box");E.css("left",k);E.css("top",m);E.css("width",r);E.css("height",r);return E},q=function(k){var m=k.data("sortable-data");m.getOrder()==Z.ORDER_ASC?Va.background(k,"icon_sort-asc-esc"):m.getOrder()==Z.ORDER_DESC?Va.background(k,"icon_sort-asc-desc"):m.getOrder()||Va.background(k,"icon_sortable-v")},w=function(k,m,r){var E=k.width();k=k.height();r=f(E-ja.BOX_LEN-r,k-ja.BOX_LEN-1);r.data("sortable-data",m);q(r);r.on("click",function(Q){Q=$(Q.currentTarget);
var x=Q.data("sortable-data");x.getField()==a?x.getOrder()==Z.ORDER_ASC?x.setOrder(Z.ORDER_DESC):x.getOrder()==Z.ORDER_DESC?x.setOrder(Z.ORDER_ASC):x.getOrder()||x.setOrder(Z.ORDER_ASC):x.getOrder()==Z.ORDER_ASC?x.setOrder(Z.ORDER_DESC):x.getOrder()==Z.ORDER_DESC?x.setOrder(null):x.getOrder()||x.setOrder(Z.ORDER_ASC);Q.data("sortable-data",x);q(Q);p(Q);c&&c[0]!=Q[0]&&c&&c.remove();c=Q;d=x;e&&e(c?c.data("sortable-data"):null)});return r}}function Z(){var a,c;this.getOrder=function(){return a};this.setOrder=
function(d){a=d};this.getField=function(){return c};this.setField=function(d){c=d}}function ha(){this.getTailBlankForDragging=function(){return-1};this.isRowDraggable=function(a,c){return!1};this.isColumnDraggable=function(a,c){return a.getColumnsCount()==c+1?!1:!0};this.getMinRowHeightLimited=function(a,c){return 3};this.getMinColumnWidthLimited=function(a,c){return 4};this.rowDraggedAction=function(a,c,d){var e=a.isSyncUIWhenModelChanged();a.setSyncUIWhenModelChanged(!0);c=a.getRow(c);c.setHeight(c.getHeight()+
d);a.setSyncUIWhenModelChanged(e)};this.setMinColumnWidth=function(a){};this.columnDraggedAction=function(a,c,d){var e=a.isSyncUIWhenModelChanged();a.setSyncUIWhenModelChanged(!0);c=a.getColumn(c);c.setWidth(c.getWidth()+d);a.setSyncUIWhenModelChanged(e)}}function b(){sa.call(this);var a=this,c=this.protectedMethod,d,e,p,f,q,w,k={},m,r,E=Ma.PUBLISH_TAB,Q,x,P,aa,t,J,A,g,h;(function(){a.setSize(1038,580);c.getDialogCtrl().setMinSize(1038,580);c.setTitle(D.get("pubOrSnap","\u53d1\u5e03/\u5feb\u7167\u540d\u79f0"));
c.setSelectable(!0);c.getDialogCtrl().setFullScreenEnabled();c.getDialogCtrl().setResizeEnabled();c.getDialogCtrl().addResizeListener(function(){a.relayoutViews()});c.setContentPaneCreator(function(){var X=$("<div>"),ca=$("<div>");ca.addClass("select-filter-head");ca.appendTo(X);n().appendTo(ca);ca=$("<div>");ca.addClass("select-filter-data-content");ca.appendTo(X);d=$("<div>");e=$("<div>");e.css("border-right","1px solid #E5E5E5");e.css("border-left","1px solid #E5E5E5");f=new Ta;f.setHorizontalSplit(!0);
f.setEnabled(!0);f.setFirstSize(200,200,300);f.setSecondSize(600,0,-1);f.setResizeMode(Ta.RESIZE_MODE_FIRST_FIXED);f.setFirstChild(Ta.createChildWrapper(d));f.setSecondChild(Ta.createChildWrapper(e));p=$("<div>");q=new Ta;q.setHorizontalSplit(!0);q.setEnabled(!0);q.setFirstSize(808,-1,-1);q.setSecondSize(200,200,300);q.setResizeMode(Ta.RESIZE_MODE_SECOND_FIXED);q.setFirstChild(f);q.setSecondChild(Ta.createChildWrapper(p));q.getJqUi().appendTo(ca);H();P=$("<div>");P.hide();x=$("<div>");x.addClass("rpt-statistic-tips");
ca=$("<div>");ca.addClass("rpt-statistic-tips-background");ca.css({width:"400px",height:"280px","background-size":"contain"});Va.background(ca,"tips-background");var Da=$("<div>");Da.addClass("rpt-statistic-tips-text");Da.text(D.get("SelectMenuMessage","\u8bf7\u70b9\u51fb\u5de6\u4fa7\u83dc\u5355\u8fdb\u884c\u67e5\u770b"));x.append(ca);x.append(Da);x.appendTo(e);P.addClass("rpt-statistic-tips");ca=$("<div>");ca.addClass("rpt-statistic-tips-background");Va.background(ca,"nodata");Da=$("<div>");Da.addClass("rpt-statistic-tips-text");
Da.text(D.get("noSearchData","\u6ca1\u6709\u7b26\u5408\u7b5b\u9009\u6761\u4ef6\u7684\u7ed3\u679c"));P.append(ca);P.append(Da);P.appendTo(e);r=new L;r.setCurrentTab(Ma.PUBLISH_TAB);r.setMapSelectPublish(k);r.setSelectedPane(w);r.setJqTips(x,P,Da);r.setMessageCurtain(c.getMessageCurtain());r.createTableJqUi(e);W();return X});c.setClosingAction(function(X){X&&m(k)})})();var n=function(){A=new ib;A.setSearchListenerDelay(0);A.setPlaceholder(D.get("searchPubSnap","\u641c\u7d22\u53d1\u5e03/\u5feb\u7167\u540d\u79f0"));
A.setShowSearchIcon(!0);g=A.getJqUi();g.addClass("select-filter-searchBox");g.find(".sa-ctrl-searchbox-close").css({"margin-top":"-7px",height:"14px","line-height":"14px",width:"14px"});A.addEnterEventListener(function(){var X=A.getText().trim();X!=h&&(h=X);r.setToMatchText(h);Q.searchCountInMenu(h)});A.addClearIconListener(function(){h="";r.setToMatchText(h);Q.searchCountInMenu(h)});return g},H=function(){w=new y;w.setSelectedMap(k);w.addDeleteListener(function(){r.refreshTable()});w.getJqUi().appendTo(p)},
W=function(){t=new I;t.setOnSelectedChangeListener(r.onSelectedChangeListener);t.setMessageCurtain(c.getMessageCurtain());t.setSelectTable(r);r.setPublishTablePane(t);J=new v;J.setOnSelectedChangeListener(r.onSelectedChangeListener);J.setMessageCurtain(c.getMessageCurtain());J.setSelectTable(r);r.setSnapShotPushTablePane(J);aa=new fb;aa.addTab(t,!0);aa.addTab(J);aa.addTabChangedListener(function(ca,Da){r.resetCallBackTime();Da.getType()==Ma.PUBLISH_TAB?(E=Ma.PUBLISH_TAB,Q=t,r.setCurrentTab(Ma.PUBLISH_TAB)):
Da.getType()==Ma.SNAPSHOT_TAB&&(E=Ma.SNAPSHOT_TAB,Q=J,r.setCurrentTab(Ma.SNAPSHOT_TAB));if(E==Ma.PUBLISH_TAB)var Za=["#",D.get("name","\u540d\u79f0"),D.get("publisher","\u53d1\u5e03\u4eba"),D.get("authorize","\u6388\u6743"),D.get("publishTime","\u53d1\u5e03\u65f6\u95f4")],Oa=[20,75,75,75,80];else E==Ma.SNAPSHOT_TAB&&(Za=["#",D.get("name","\u540d\u79f0"),D.get("path","\u8def\u5f84"),D.get("creator","\u521b\u5efa\u4eba"),D.get("createTime","\u521b\u5efa\u65f6\u95f4")],Oa=[20,75,75,75,80]);r.resetHeader(Za,
Oa);Q.searchCountInMenu(h)});var X=aa.getJqUi();X.children(".sa-ctrl-tab-head").css("width","49%");X.appendTo(d)};this.relayoutViews=function(){f&&f.resize();q&&q.resize();r.refreshTable()};this.setConfirmCallBack=function(X){m=X};this.setMapSelectPublish=function(X){k=X}}function y(){var a=this,c,d,e,p,f=[],q={};this.getJqUi=function(){if(!c){c=$("<div>");c.css({height:"100%",width:"100%"});var m=$("<div>");m.css("height","35px");m.appendTo(c);d=$("<div>");d.text(D.get("selected","\u5df2\u9009(#)").replace("#",
Object.keys(q).length));d.addClass("select-publish-selected");d.appendTo(m);var r=new bb(D.get("clearAll","\u5168\u90e8\u6e05\u9664"));r.addActionListener(w);e=r.getJqUi();pa.layoutCtrlWithLRTB(e,null,15,60,10,null,20);e.appendTo(m);p=$("<ol>");p.addClass("select-publish-selected-ol");p.appendTo(c);a.syncUiBySelectMap()}return c};var w=function(){var m=Object.keys(q),r;for(r in m)delete q[m[r]];a.syncUiBySelectMap();k()};this.syncUiBySelectMap=function(){p.empty();var m=Object.keys(q);d.text(D.get("selected",
"\u5df2\u9009(#)").replace("#",Object.keys(q).length));if(!(null==m||0>=m.length))for(var r in m){var E=q[m[r]],Q=E.getName(),x=$("<li>");x.addClass("select-publish-selected-li");x.attr("title",Q);var P=$("<div>");P.text(Q);P.addClass("select-publish-selected-li-text");Q=$("<div>");Q.hide();Q.addClass("select-publish-selected-li-icon");Va.background(Q,"selected_btn_delete");Q.data("oSelectedModel",E);Q.on("click",function(aa){aa.stopPropagation();aa=$(aa.currentTarget).data("oSelectedModel");delete q[aa.getId()];
a.syncUiBySelectMap();k()});x.on("mouseenter",function(aa){$(aa.currentTarget.children[1]).show()});x.on("mouseleave",function(aa){$(aa.currentTarget.children[1]).hide()});P.appendTo(x);Q.appendTo(x);x.appendTo(p)}};var k=function(){for(var m in f)(0,f[m])()};this.addDeleteListener=function(m){f.push(m)};this.setSelectedMap=function(m){q=m}}function L(){var a=this,c,d,e,p,f={},q={},w,k={},m=0,r,E,Q,x,P,aa,t,J,A,g,h,n,H,W,X;var ca=["#",D.get("name","\u540d\u79f0"),D.get("publisher","\u53d1\u5e03\u4eba"),
D.get("authorize","\u6388\u6743"),D.get("publishTime","\u53d1\u5e03\u65f6\u95f4")];var Da=[20,75,75,75,80];this.createTableJqUi=function(z){Za();c=ra.createTable();c.setColumnFitVisibleWidth(!0);c.setSyncMergeBlockWhenModelChanged(!1);c.setMergeBlockTextVisibleAlways(!0);c.setSyncUIWhenModelChanged(!1);c.setDraggableAdjusting(!0,3,0,new ha);var K=new Oa(c);K.setOutsideVisible(!1);c.setCellRender(K);c.setSyncUIWhenModelChanged(!0);c.addColumns(ca.length);for(K=0;K<Da.length;K++)c.getColumn(K).setWidth(Da[K]);
var oa=ra.createHeadRow(c);for(K=0;K<ca.length;K++)oa.getCell(K).setValue(ca[K]);e=$(c.getUI());e.addClass("rpt-statistic-detail-content-table");e.addClass("rpt-statistic-publish-selector-content-table");E.appendTo(z);e.appendTo(z)};var Za=function(){r=new C;r.setJumpToPageListener(function(z,K,oa){Q=z;x=K;X==Ma.PUBLISH_TAB?Ya(!1,!1,oa):Xa(!1,!1,oa)});r.setSelectedAllOrNotListener(function(z,K){z?X==Ma.PUBLISH_TAB?Ya(!1,!0):X==Ma.SNAPSHOT_TAB&&Xa(!1,!0):(Ka(),a.refreshTable(),w.syncUiBySelectMap())});
r.setComboBoxItemModelsAndSelectedItem([5,10,20,50,100,500,1E3],2);Q=r.getCurrentPage();x=r.getPageSize();E=r.getJqUi();E.css("display","none")},Oa=function(z){KTDefaultCellRender.call(this,z);var K=this,oa=this.paintCellUI;this.paintCellUI=function(ia,F){var Ea=K.getCurrentRowIdx(),ba=K.getCurrentRow(),R=K.getCurrentColIdx();ba=ba.getUserObject();if(Ea<ra.getHeadRowCount())ya(ia,F,Ea,R);else if(ba instanceof db)if(0==R)Fa(ia,F,Ea,R,ba);else{ia=$(ia);F=$("<div>");if(1==R)ba.isPreset()&&(R=$("<div>"),
R.text(D.get("preset","\u9884\u7f6e")),R.addClass("select-publish-name-preset-tag"),R.css({"margin-left":"6px","margin-right":"-2px"}),R.appendTo(ia)),ia.append(Ha()),F.addClass("select-publish-name"),F.append(M.SplitMatchTextUtil.redTextAfterMatching(ba.getName(),aa)),F.attr("title",ba.getName());else if(2==R)F.addClass("rpt-statistic-data-table-cell-left"),F.text(ba.getCreatorName()),F.attr("title",ba.getCreatorName());else if(3==R){R=D.get("unSelectUserOrRole","\u672a\u9009\u62e9\u7528\u6237");
Ea="";var wa=ba.getArrUsers();ba=ba.getArrRoles();wa&&0<wa.length&&(R=Ea=D.get("Users","\u7528\u6237#\u4e2a").replace("#",wa.length));ba&&0<ba.length&&(R=""==Ea?D.get("Roles","\u89d2\u8272#\u4e2a").replace("#",ba.length):R+","+D.get("Roles","\u89d2\u8272#\u4e2a").replace("#",ba.length));F.addClass("rpt-statistic-data-table-cell-left");F.text(R);F.attr("title",R)}else 4==R&&(F.addClass("rpt-statistic-data-table-cell-left"),F.text(ba.getCreateFormatTime()),F.attr("title",ba.getCreateFormatTime()));
ia.append(F)}else ba instanceof eb?0==R?ta(ia,F,Ea,R,ba):(ia=$(ia),F=$("<div>"),1==R?(F.addClass("select-publish-name"),ba.getDeleted()?(F.append(M.SplitMatchTextUtil.highLightAllContent(D.get("hasDeleted","\u5f53\u524d\u62a5\u8868\u5df2\u5220\u9664"))),F.attr("title",ba.getRptName()),F.css({"line-height":"28px","padding-left":"28px","padding-right":"2px"})):(R=Ha(),R.css("margin-left","20px"),ia.append(R),F.append(M.SplitMatchTextUtil.redTextAfterMatching(ba.getRptName(),aa)),F.attr("title",ba.getRptName()),
F.css({display:"float","padding-left":"3px"})),F.css({overflow:"hidden","text-overflow":"ellipsis"}),ba=ea(ba),ba.css("left","5px"),ba.attr("title","\u5c55\u5f00"),ba.appendTo(ia)):2==R?(F.addClass("rpt-statistic-data-table-cell-left"),F.text(ba.getRptPath()),F.attr("title",ba.getRptPath())):3==R?(F.addClass("rpt-statistic-data-table-cell-left"),F.text(ba.getCreatorName()),F.attr("title",ba.getCreatorName())):4==R&&(F.addClass("rpt-statistic-data-table-cell-left"),F.text(ba.getCreateFormatTime()),
F.attr("title",ba.getCreateFormatTime())),ia.append(F)):ba instanceof lb&&(0==R?xa(ia,F,Ea,R,ba):(ia=$(ia),F=$("<div>"),1==R?(F.addClass("select-publish-name"),F.append(M.SplitMatchTextUtil.redTextAfterMatching(ba.getName(),aa)),F.attr("title",ba.getName()),F.css({"line-height":"28px","padding-left":"28px","padding-right":"2px",overflow:"hidden","text-overflow":"ellipsis"})):2==R?(F.addClass("rpt-statistic-data-table-cell-left"),F.text(ba.getPathName()),F.attr("title",ba.getPathName())):3==R?(F.addClass("rpt-statistic-data-table-cell-left"),
F.text(ba.getCreatorName()),F.attr("title",ba.getCreatorName())):4==R&&(F.addClass("rpt-statistic-data-table-cell-left"),F.text(ba.getCreateFormatTime()),F.attr("title",ba.getCreateFormatTime())),ia.append(F)))};var ya=function(ia,F,Ea,ba){oa(ia,F);if(0==ba&&1==Ea){$(ia).children().css("display","none");F=!0;p=new Qa;for(var R in f)if(!f[R].isChecked()){F=!1;break}p.setChecked(F);p.addCheckedListener(function(wa,ua){if(ua){wa=wa.isChecked();for(var Na in f)if(f[Na].setChecked(wa),ua=f[Na].getUserObject(),
ua instanceof eb)if(ua=ua.getArrSnapChildren(),wa)for(Na in ua)q[ua[Na].getId()]=ua[Na];else for(Na in ua)delete q[ua[Na].getId()];else wa?q[ua.getId()]=ua:delete q[ua.getId()];a.resetCurrentPaginationBarSelected();w.syncUiBySelectMap()}});R=p.getJqUi();pa.layoutCtrl(R,12,2,23,23);R.appendTo(ia)}else X==Ma.SNAPSHOT_TAB&&1==ba&&1==Ea&&(R=ea(null),pa.layoutCtrl(R,5,2,23,23),R.appendTo(ia))},Fa=function(ia,F,Ea,ba,R){ia=$(ia);F=new Qa;Ea=R.getId();f[Ea]=F;F.setChecked(!!q[Ea]);F.setUserObject(R);F.addCheckedListener(function(wa,
ua){if(ua){ua=wa.isChecked();wa=wa.getUserObject();if(ua){q[wa.getId()]=wa;w.syncUiBySelectMap();a.resetCurrentPaginationBarSelected();for(var Na in f)if(!f[Na].isChecked())return}else delete q[wa.getId()],w.syncUiBySelectMap(),a.resetCurrentPaginationBarSelected();p.setChecked(ua)}});R=F.getJqUi();pa.layoutCtrl(R,12,4,23,23);R.appendTo(ia)},ta=function(ia,F,Ea,ba,R){ia=$(ia);F=new Qa;Ea=R.getRptId();f[Ea]=F;Ea=R.getArrSnapChildren();ba=!1;for(var wa in Ea){var ua=!!q[Ea[wa].getId()];ba=ba||ua;var Na=
new Qa;Na.setChecked(ua);Na.setUserObject(Ea[wa]);f[Ea[wa].getId()]=Na}F.setChecked(ba);F.setUserObject(R);F.addCheckedListener(function($a,jb){if(jb)if(jb=$a.isChecked(),$a=$a.getUserObject().getArrSnapChildren(),jb){for(var ab in $a)q[$a[ab].getId()]=$a[ab],f[$a[ab].getId()].setChecked(!0);w.syncUiBySelectMap();a.resetCurrentPaginationBarSelected();for(ab in f)if(!f[ab].isChecked())return;p.setChecked(!0)}else{for(ab in $a)delete q[$a[ab].getId()],f[$a[ab].getId()].setChecked(!1);p.setChecked(!1);
w.syncUiBySelectMap();a.resetCurrentPaginationBarSelected()}});R=F.getJqUi();pa.layoutCtrl(R,12,4,23,23);R.appendTo(ia)},xa=function(ia,F,Ea,ba,R){ia=$(ia);R=R.getId();R=f[R];R.addCheckedListener(function(wa,ua){if(ua)if(ua=wa.isChecked(),wa=wa.getUserObject(),ua)a:{q[wa.getId()]=wa,w.syncUiBySelectMap(),a.resetCurrentPaginationBarSelected(),ua=wa.getParent(),wa=ua.getArrSnapChildren();ua=f[ua.getRptId()];for(var Na in wa)if(!f[wa[Na].getId()].isChecked()){ua.setChecked(!1);p.setChecked(!1);break a}ua.setChecked(!0);
for(Na in f)if(!f[Na].isChecked())break a;p.setChecked(!0)}else delete q[wa.getId()],ua=wa.getParent(),f[ua.getRptId()].setChecked(!1),p.setChecked(!1),w.syncUiBySelectMap(),a.resetCurrentPaginationBarSelected()});R=R.getJqUi();pa.layoutCtrl(R,12,4,23,23);R.appendTo(ia)},Ha=function(){var ia=$("<div>");ia.css({"float":"left",height:"16px",width:"16px","margin-top":"6px","margin-left":"5px"});Va.background(ia,"icon-extreport");return ia}},ea=function(z){var K=$('<div style="overflow: hidden; position: absolute; left: 4px; top: 0px; width: 16px; height: 30px; cursor: pointer; z-index: 2;"></div>'),
oa=$('<div style=" display:block; overflow: hidden; position: absolute; left: 2px; top: 7px; width: 9px; height: 9px; border: 1px solid rgb(138, 158, 191); border-radius: 3px; background-color: rgb(255, 255, 255);">\n<div style="overflow: hidden; position: absolute; left: 1px; top: 1px; width: 3px; height: 3px; border-bottom: 1px solid black; border-right: 1px solid black;"></div>\n<div style="overflow: hidden; position: absolute; left: 4px; top: 4px; width: 3px; height: 3px; border-top: 1px solid black; border-left: 1px solid black;"></div>\n</div>'),
ya=$('<div style="display:block;overflow: hidden; position: absolute; left: 2px; top: 7px; width: 9px; height: 9px; border: 1px solid rgb(138, 158, 191); border-radius: 3px; background-color: rgb(255, 255, 255);">\n<div style="overflow: hidden; position: absolute; left: 1px; top: 1px; width: 7px; height: 3px; border-bottom: 1px solid black;"></div>\n</div>');var Fa=z?z.getIsExpand():m==Object.keys(k).length?!1:!0;Fa?ya.appendTo(K):oa.appendTo(K);K.data("model",z);K.data("bExpand",Fa);K.click(function(){var ta=
$(this).data("model"),xa=$(this).data("bExpand");$(this).detach();xa=!xa;ta&&ta.setIsExpand(xa);xa?ya.appendTo($(this)):oa.appendTo($(this));$(this).data("bExpand",xa);if(null==ta||void 0==ta){xa?m=0:m=Object.keys(k).length;for(var Ha in k)k[Ha].setIsExpand(xa)}else xa?m--:m++,k[ta.getRptId()].setIsExpand(xa);ta=r.getPageSize();Ha=Object.values(k);a.updateTable(Ha.slice(0,Math.min(ta,Ha.length)))});return K};this.resetHeader=function(z,K){ca=z;Da=K;if(c){ra.clear(c);c.addColumns(ca.length);for(z=
0;z<Da.length;z++)c.getColumn(z).setWidth(Da[z]);K=ra.createHeadRow(c);for(z=0;z<ca.length;z++)K.getCell(z).setValue(ca[z])}E.css("display","none")};this.updateTable=function(z){0==document.body.clientHeight||0==document.body.clientWidth?(d=new qa,d.setDelay(250),d.setCallback(function(){Ba(z)}),d.observe()):Ba(z)};var Ba=function(z){d&&d.unobserve();ra.clearWithoutHead(c);if(z&&0<z.length){za(!0);f={};a.resetCurrentPaginationBarSelected();if(z[0]instanceof db)for(var K=0;K<z.length;K++){var oa=z[K],
ya=ra.createRow(c);ya.setHeight(30);ya.setUserObject(oa)}else if(z[0]instanceof eb){oa=new KTStyle;oa.setBackgroundColor(Ga.CommonTableSkin.EVEN_ROW_BACKGROUND_COLOR);var Fa=new KTStyle;Fa.setBackgroundColor(Ga.CommonTableSkin.ODD_ROW_BACKGROUND_COLOR);for(K=0;K<z.length;K++){var ta=z[K];ya=ra.createRow(c);ya.setHeight(30);ya.setStyle(oa);ya.setUserObject(ta);for(ya=0;ta.getIsExpand()&&ya<ta.getArrSnapChildren().length;ya++){var xa=ta.getArrSnapChildren()[ya],Ha=ra.createRow(c);Ha.setHeight(30);Ha.setStyle(Fa);
Ha.setUserObject(xa)}}}ra.refresh(c)}else za(!1)},za=function(z){if(z)e.css("display","block"),g.css("display","none"),h.css("display","none"),E.css("display","block");else{e.css("display","none");E.css("display","none");if(Ma.PUBLISH_TAB==X){if(H.isEmptyDataAtInital()){n.text(D.get("noPubDataAtInital","\u6682\u65e0\u8f7b\u62a5\u8868\u53d1\u5e03\u8bb0\u5f55"));g.css("display","none");h.css("display","block");return}if(0<H.getSelectedItem().length)aa?n.text(D.get("noSearchData","\u6ca1\u6709\u7b26\u5408\u641c\u7d22\u6761\u4ef6\u7684\u7ed3\u679c")):
n.text(D.get("noPubDataInMenu","\u6b64\u76ee\u5f55\u4e0b\u6ca1\u6709\u53d1\u5e03\u8bb0\u5f55")),g.css("display","none"),h.css("display","block");else{if(0==H.getTreeModel().length&&(aa||t)){n.text(D.get("noSearchData","\u6ca1\u6709\u7b26\u5408\u641c\u7d22\u6761\u4ef6\u7684\u7ed3\u679c"));g.css("display","none");h.css("display","block");return}g.css("display","block");h.css("display","none");return}}Ma.SNAPSHOT_TAB==X&&(W.isEmptyDataAtInital()?(n.text(D.get("noPubDataAtInital","\u516c\u5171\u76ee\u5f55\u4e0b\u6ca1\u6709\u5feb\u7167")),
g.css("display","none"),h.css("display","block")):0<W.getSelectedItem().length?(aa?n.text(D.get("noSearchData","\u6ca1\u6709\u7b26\u5408\u641c\u7d22\u6761\u4ef6\u7684\u7ed3\u679c")):n.text(D.get("noSnapDataInMenu","\u6b64\u76ee\u5f55\u4e0b\u6ca1\u6709\u5feb\u7167")),g.css("display","none"),h.css("display","block")):0==W.getTreeModel().length&&(aa||t)?(n.text(D.get("noSearchData","\u6ca1\u6709\u7b26\u5408\u641c\u7d22\u6761\u4ef6\u7684\u7ed3\u679c")),g.css("display","none"),h.css("display","block")):
(g.css("display","block"),h.css("display","none")))}};this.resetCurrentPaginationBarSelected=function(){r.refreshSelectedRowTotal(Ka(!0))};var Ka=function(z){var K=0,oa=Object.keys(q);if(P==Ua.CENTER||P==Ua.SNAPMENU){var ya=J.getRelationIds(),Fa;for(Fa in oa){var ta=q[oa[Fa]];-1!=ya.findIndex(function(Ha,ia,F){return Ha==ta.getPath()})&&(z?K++:delete q[ta.getId()])}}else if(P==Ua.APPMENU){ya=J.getRelationIds();var xa="";for(Fa in ya)ya[Fa]&&(xa+=ya[Fa]+"-");xa=xa.substring(0,xa.length-1);for(Fa in oa)ta=
q[oa[Fa]],ta instanceof db&&xa==Pa(ta)&&(z?K++:delete q[ta.getId()])}return K},Pa=function(z){var K="";z=JSON.parse(z.getPath());z.cloudId&&(K=z.cloudId);z.appId&&(K=K+"-"+z.appId);z.appMenuId&&(K=K+"-"+z.appMenuId);z.appMenuId2&&(K=K+"-"+z.appMenuId2);return K};this.resetCallBackTime=function(){A=(new Date).getTime()};this.refreshTable=function(){"none"!=e.css("display")&&(ra.refresh(c),a.resetCurrentPaginationBarSelected())};this.onSelectedChangeListener=function(z,K,oa){a.searchDataByMenuModel(oa[0],
!0)};this.searchDataByMenuModel=function(z,K){z&&(J=z,P=J.getPathType(),Ua.SNAPMENU==P?Xa(K):Ya(K))};var Ya=function(z,K,oa){z&&(Q=1);z=Q;var ya=x;K&&(ya=z=null);var Fa=new gb(a.getRemoteImpl(),function(ta){if(A==Number(ta.callBackTime)){var xa=ta.data;if(void 0==xa)a.updateTable(null);else{ta=xa.totalRow;xa=xa.data;var Ha=[],ia;for(ia in xa){var F=new db;F.fromJsonObject(xa[ia]);Ha.push(F)}K?La(Ha):(oa?oa(ta):r.resetPaginationAndJumpToFirstPage(ta),a.updateTable(Ha))}}});Fa.setShowBlocking(!0);Fa.getRptPublishDataByPath(J.getRelationIds(),
J.getPathType(),aa,z,ya,A)},Xa=function(z,K,oa){z&&(Q=1);z=Q;var ya=x;K&&(ya=z=null);var Fa=new gb(a.getRemoteImpl(),function(ta){if(A==Number(ta.callBackTime)){var xa=ta.data;ta=xa.totalRow;xa=xa.data;var Ha=[];k={};for(var ia in xa){var F=new eb;F.fromJsonObject(xa[ia]);Ha.push(F);k[F.getRptId()]=F}K?La(Ha):(m=Ha.length,oa?oa(ta):r.resetPaginationAndJumpToFirstPage(ta),a.updateTable(Ha))}});Fa.setShowBlocking(!0);Fa.getRptSnapShotByPath(J.getRelationIds(),aa,z,ya,A)},La=function(z){if(z[0]instanceof
db)for(var K in z){var oa=z[K];q[oa.getId()]=oa}else if(z[0]instanceof eb)for(K in z){oa=z[K];oa.setIsExpand(!1);var ya=oa.getArrSnapChildren(),Fa;for(Fa in ya)oa=ya[Fa],q[oa.getId()]=oa}w.syncUiBySelectMap();a.refreshTable();a.resetCurrentPaginationBarSelected()};this.setPublishTablePane=function(z){H=z};this.setSnapShotPushTablePane=function(z){W=z};this.setMapSelectPublish=function(z){q=z};this.setSelectedPane=function(z){w=z};this.setCurrentTab=function(z){X=z};this.setJqTips=function(z,K,oa){g=
z;h=K;n=oa};this.setMessageCurtain=function(z){};this.setToMatchText=function(z){aa=z};this.setMenuText=function(z){t=z};var cb;this.getRemoteImpl=function(){null==cb&&(cb=new Sa,cb.setRemoteUrl(M.RemoteUrlFacade.getAccessRemoteUrl()));return cb}}function C(){hb.call(this);var a=this.protectedMethod;a.setTotalSelectedRowAndSelectedAllVisual(!1,!0);a.setTotalRowVisual(!0);a.setTotalPageVisual(!1);a.setCurrentPageVisual(!1);a.setFirstBtnAndEndBtnVisual(!1)}function I(){T.call(this);var a=this,c,d,e=
Ma.PUBLISH_TAB,p,f,q=[],w,k,m,r,E;this.getType=function(){return e};this.getTitle=function(){return D.get("publish","\u53d1\u5e03")};this.protectedInit=function(t){d=t;Q()};var Q=function(){c=new va;c.setOnSelectedChangeListener(function(J,A,g,h){E=g[0];p(J,A,g);a.setSearchCountText(h)});c.setTreeSelectorModel(q);var t=c.getJqUi();t.addClass("select-tree-menu-data");d.append(t)},x=function(t,J,A){q=[];if(0<t.length){var g=new ma;g.setDisPlayName(D.get("appMenu","\u5e94\u7528\u83dc\u5355"));g.setShowFolderNode(!0);
g.setNoMatchText(!0);for(var h=g.getChildren(),n=0;n<t.length;n++){var H=new ma;H.fromJsonObject(t[n]);H.setShowFolderNode(A);H.setParentNode(g);H.setRelationIds(null);h.push(H)}P(q,g)}if(0<J.length){t=new l;t.setDisPlayName(D.get("analysisCenter","\u6570\u636e\u5de5\u4f5c\u53f0\u9605\u89c8\u5939"));t.setShowFolderNode(!0);t.setNoMatchText(!0);g=t.getChildren();for(n=0;n<J.length;n++)H=new l,H.fromJsonObject(J[n]),H.setShowFolderNode(A),H.setParentNode(t),g.push(H);P(q,t)}J=null;k||m||0!=q.length||
(J=D.get("emptyDataAtPublish","\u6ca1\u6709\u8f7b\u62a5\u8868\u53d1\u5e03\u8bb0\u5f55"),r=!0);A=null;if(E)for(n=q.length-1;0<=n&&(!q[n].getRelationIds()||(A=n,!ka(E.getRelationIds(),q[n].getRelationIds())));n--);A&&(E=q[A]);c.resetItemModels(q,E,J)},P=function(t,J){if(null!=J)if(Array.isArray(J))for(var A=0;A<J.length;A++)t.push(J[A]),P(t,J[A].getChildren());else t.push(J),P(t,J.getChildren())};this.getSelectedItem=function(){return c?c.getSelectedItem():[]};this.setCountToMenu=function(t){c.setCountToMenu(t)};
this.reselectTheCurrentItem=function(){c.reselectTheCurrentFirstItem()};this.setOnSelectedChangeListener=function(t){p=t};this.isEmptyDataAtInital=function(){return r};this.setSelectTable=function(t){w=t};this.searchMenuListener=function(t){if(t!=m)m=t,aa(t,k);else return c.searchMenu(t)};this.setMessageCurtain=function(t){f=t};this.tranMenuTextToTable=function(t){w.setMenuText(t)};this.getTreeModel=function(){return q};var aa=function(t,J){(new gb(a.getRemoteImpl(),function(A){var g=A.centerTree,
h=A.appMenuTree.children;A=A.countToMenuMap;t||J?x(h,g,!0):x(h,g,!1);a.searchCardCountInAllMenu(J,A);!t||0==g.length&&0==h.length?(w.updateTable(null),a.setSearchCountText(null)):a.setSearchCountText(c.searchMenu(t))},function(A,g){f.showPrompt(g);return!0})).getRptPublishMenuTree(t,J)};this.searchCountInMenu=function(t){k=t;aa(m,t)}}function v(){T.call(this);var a=this,c,d,e=Ma.SNAPSHOT_TAB,p,f,q,w,k=[],m,r,E;this.getType=function(){return e};this.getTitle=function(){return D.get("snapshot","\u5feb\u7167")};
this.protectedInit=function(t){d=t;Q()};var Q=function(){c=new va;c.setOnSelectedChangeListener(function(J,A,g,h){E=g[0];p(J,A,g);a.setSearchCountText(h)});c.setTreeSelectorModel(k);var t=c.getJqUi();t.addClass("select-tree-menu-data");d.append(t)},x=function(t,J){k=[];if(0<t.length){var A=new Ra;A.setDisPlayName(D.get("publicMenu","\u516c\u5171\u76ee\u5f55"));A.setShowFolderNode(!0);A.setNoMatchText(!0);for(var g=A.getChildren(),h=0;h<t.length;h++){var n=new Ra;n.fromJsonObject(t[h]);n.setShowFolderNode(J);
n.setParentNode(A);g.push(n)}P(k,A)}else if(!q&&!w){m=!0;var H=D.get("noDataAtPublic","\u516c\u5171\u76ee\u5f55\u4e0b\u6ca1\u6709\u6570\u636e")}t=!1;J=0;if(E)for(h=k.length-1;0<=h;h--){if(k[h].getRelationIds()&&(J=h,ka(E.getRelationIds(),k[h].getRelationIds()))){t=!0;break}}else for(h=k.length-1;0<=h;h--)k[h].getRelationIds()&&(J=h);t&&(E=k[J]);c.resetItemModels(k,E,H)},P=function(t,J){if(null!=J)if(Array.isArray(J))for(var A=0;A<J.length;A++)t.push(J[A]),P(t,J[A].getChildren());else t.push(J),P(t,
J.getChildren())};this.isEmptyDataAtInital=function(){return m};this.getSelectedItem=function(){return c?c.getSelectedItem():[]};this.setCountToMenu=function(t){c.setCountToMenu(t)};this.reselectTheCurrentItem=function(){c.reselectTheCurrentFirstItem()};this.setOnSelectedChangeListener=function(t){p=t};this.setSelectTable=function(t){r=t};this.searchMenuListener=function(t){if(t!=q)q=t,aa(t,w);else return c.searchMenu(t)};this.setMessageCurtain=function(t){f=t};this.tranMenuTextToTable=function(t){r.setMenuText(t)};
this.getTreeModel=function(){return k};var aa=function(t,J){(new gb(a.getRemoteImpl(),function(A){var g=A.snapshotTree;A=A.countToMenuMap;t||J?x(g,!0):x(g,!1);a.searchCardCountInAllMenu(J,A);t&&0!=g.length?a.setSearchCountText(c.searchMenu(t)):(r.updateTable(null),a.setSearchCountText(null))},function(A,g){f.showPrompt(g);return!0})).getRptSnapMenuTree(t,J)};this.searchCountInMenu=function(t){w=t;aa(q,t)}}function ka(a,c){if(a&&c){if(a.length!=c.length)return!1;for(var d=0;d<a.length;++d)if(a[d]!=
c[d])return!1;return!0}return!1}function T(){fb.AbstractTabPane.call(this);var a=this,c,d,e=null;this.searchCardCountInAllMenu=function(w,k){a.reselectTheCurrentItem();null==w||""==w?(e=null,a.setCountToMenu(null)):(k&&(e=k),a.setCountToMenu(e))};this.setCountToMenu=function(){throw Error("Override");};this.reselectTheCurrentItem=function(){throw Error("Override");};this.getJqUi=function(){c||(c=$("<div>"),p(),a.protectedInit(c));return c};var p=function(){d=new ib;d.setPlaceholder(D.get("searchMenu",
"\u641c\u7d22\u76ee\u5f55\u540d\u79f0"));d.setShowSearchIcon(!0);var w=d.getJqUi();w.addClass("select-filter-menu-searchBox");w.find("input").css("width","75%");d.addEnterEventListener(function(){var k=d.getText().trim(),m=a.searchMenuListener(k);a.setSearchCountText(m);a.tranMenuTextToTable(k)});d.addClearIconListener(function(){a.searchMenuListener(null);d.hideText();a.tranMenuTextToTable(null)});w.appendTo(c)};this.setSearchCountText=function(w){var k;w&&(k="("+w[0]+"/"+w[1]+")");d.appendText(k)};
this.searchMenuListener=function(w){throw Error("override");};this.tranMenuTextToTable=function(){throw Error("override");};var f;this.getRemoteImpl=function(){null==f&&(f=new Sa,f.setRemoteUrl(M.RemoteUrlFacade.getAccessRemoteUrl()));return f};var q;this.getQingTreeMenuRemoteUrl=function(){null==q&&(q=new Sa,q.setRemoteUrl(M.RemoteUrlFacade.getQingTreeMenuRemoteUrl()));return q};this.getUrlParam=function(w){return Aa.decodeParamFromUrl(window.location.search,w)};this.protectedInit=function(w){}}
function va(){var a=this,c,d,e,p=[],f,q,w,k,m,r;this.getJqUi=function(){c||(c=E());return c};var E=function(){var g=$("<div>");k=$("<div>");k.addClass("rpt-statistic-selector-tips-text");k.text(D.get("noSearchData","\u6ca1\u6709\u7b26\u5408\u641c\u7d22\u6761\u4ef6\u7684\u7ed3\u679c"));k.css("display","none");m=$("<div>");m.addClass("rpt-statistic-selector-tips-text");m.css("display","none");g.append(k);g.append(m);d=new mb;d.setBorderVisible(!1);d.scrollSelectedToVisible();d.setCustomItemPainter(aa);
d.addSelectedChangedListener(function(h,n,H){if(p){var W=Q(H[0]);null!=W&&(f=W);w(h,n,H,[f+1,p.length])}else w(h,n,H)});d.setUserObject(e);d.setItemModels(e);g.append(d.getJqUi());return g};this.resetItemModels=function(g,h,n){e=g;d.setUserObject(e);d.setItemModels(e);h&&d.setSelecteds([h]);f=0;r=p=q=null;J(d.getUserObject(),n)};this.setOnSelectedChangeListener=function(g){w=g};this.searchMenu=function(g){if(0!=e.length){if(null==g||""==g)return q=null,J(d.getUserObject()),null;if(g==q)return f+1>=
p.length?f=0:f+=1,x(p[f]),[f+1,p.length];p=[];for(var h=0;h<e.length;h++)if(!e[h].getNoMatchText()){var n=e[h].getDisPlayName().toUpperCase();n&&-1<n.indexOf(g.toUpperCase())&&p.push(e[h])}if(0<p.length)return q=g,g=d.getSelecteds(),(g=Q(g[0]))?(f=g,x(p[f])):x(p[0]),[f+1,p.length];q=null;J(d.getUserObject());return null}};var Q=function(g){if(!g)return 0;for(var h=null,n=0;n<p.length;n++){var H=p[n];ka(g.getRelationIds(),H.getRelationIds())&&(h=n)}return h},x=function(g){var h=g;if(!h.getShowFolderNode()){h.setShowFolderNode(!0);
for(var n=h.getParentNode();n;)n.setShowFolderNode(!0),n.setIsOpenDir(!0),h=n,n=n.getParentNode();t(h)}a.jumpToTheSelected(g)};this.jumpToTheSelected=function(g){d.setSelecteds([g]);J(d.getUserObject());d.scrollSelectedToVisible(g)};this.getSelectedItem=function(){return d.getSelecteds()};this.reselectTheCurrentFirstItem=function(){var g=d.getSelecteds();0>=g.length||x(g[0])};this.setCountToMenu=function(g){if(r=g)for(var h in e)g=e[h],g.setShowFolderNode(!0),g.setIsOpenDir(!0);e&&0<e.length&&(J(e),
d.scrollSelectedToVisible())};var P=function(g){var h=g.getPathType();g=g.getRelationIds();if(h==Ua.APPMENU){h=r[Ua.APPMENU];for(var n=g[0],H=1;H<g.length;H++)null!=g[H]&&(n+="-"+g[H]);return h&&h[n]?h[n]:0}n=null;h==Ua.CENTER?n=r[Ua.CENTER]:h==Ua.SNAPMENU&&(n=r[Ua.SNAPMENU]);if(!n)return 0;h=0;for(H in g)n[g[H]]&&(h+=n[g[H]]);return h},aa=function(g,h){var n=26*h.getLevel()+5;g.addClass("select-tree-menu-dir");var H=$("<div>");H.addClass("select-tree-menu-icon");H.css("margin-left",26*h.getLevel()+
"px");H.data("oItemModel",h);var W=$("<div>");h.isPreset&&h.isPreset()&&(W.addClass("select-tree-menu-preset"),W.text("\u9884\u7f6e"),W.css("margin-left",16+26*h.getLevel()+"px"),g.append(W),n+=16);var X=$("<div>");X.addClass("select-tree-menu-text");var ca=0;h.isPreset&&h.isPreset()&&(ca=28,n+=28);X.css("margin-left",ca+26*h.getLevel()+"px");var Da=$("<span>");if(h instanceof ma&&h.isDeleted()){var Za=$("<div>");Za.text("!");Za.addClass("rpt-statistic-menu-deleted");X.append(Za);X.css("padding-left",
"15px");n+=12}Da.text(h.getDisPlayName());h.getNoMatchText()||(Da=M.SplitMatchTextUtil.redTextAfterMatching(h.getDisPlayName(),q));X.append(Da);g.attr("title",h.getDisPlayName());h.getChildren()&&0<h.getChildren().length?(W=h.getIsOpenDir(),A(H,W),g.append(H),n+=15):(X.css("margin-left",ca+26*h.getLevel()-14+"px"),W.css("margin-left",2+26*h.getLevel()+"px"));g.append(X);r&&h.getRelationIds()&&(W=P(h),ca=$("<div>"),ca.addClass("select-tree-menu-count"),ca.text("("+W+")"),g.append(ca),ca=new Ia,ca.setFontSize(12),
W=ca.measureWidth("("+W+")"),n+=W);X.css("width","calc(100% - "+n+"px)");h.getRelationIds()||g.removeClass("sa-ctrl-list-item");h.getShowFolderNode()?(g.show(),H.on("mousedown",function(Oa){Oa.stopPropagation();if(Oa=$(Oa.currentTarget).data("oItemModel")){if(Oa.getChildren()&&0<Oa.getChildren().length){var ea=Oa.getIsOpenDir();Oa.setIsOpenDir(!ea)}else Oa.setIsOpenDir(!0);t(Oa);J(d.getUserObject())}})):g.hide();h==d.getSelecteds()[0]&&g.addClass("sa-ctrl-list-item_selected_enabled")},t=function(g){if(null!=
g&&(g=g.getChildren())&&0<g.length)for(var h=0;h<g.length;h++)g[h].getParentNode().getIsOpenDir()&&g[h].getParentNode().getShowFolderNode()?g[h].setShowFolderNode(!0):g[h].setShowFolderNode(!1),t(g[h])},J=function(g,h){var n=c.find(".sa-ctrl-list-owner");n.empty();if(1>=g.length)h?(m.text(h),m.css("display","block"),k.css("display","none")):(m.css("display","none"),k.css("display","block"));else{m.css("display","none");k.css("display","none");h=$(document.createDocumentFragment());for(var H=aa,W=
0;W<g.length;W++){var X=$("<div>");X.addClass("sa-ctrl-list-item");X.addClass("sa-ctrl-list-item_enabled");X.addClass("sa-ctrl-list-item-defaultlayout");var ca=g[W];X.data("model",ca);H(X,ca);h.append(X)}n.append(h)}},A=function(g,h){h?(g.addClass("lower-triangle"),g.removeClass("upper-triangle")):(g.addClass("right-triangle"),g.removeClass("lower-triangle"))};this.setTreeSelectorModel=function(g){e=g}}function ma(){Wa.call(this);var a=this,c;this.fromJsonObject=function(d){"APP_MENU_HAS_BEEN_DELETED"==
d.displayName||"APP_HAS_BEEN_DELETED"==d.displayName?(a.setDisPlayName(D.get("menuBeDeleted","\u8be5\u5e94\u7528\u83dc\u5355\u5df2\u88ab\u5220\u9664")),c=!0):"CLOUD_HAS_BEEN_DELETED"==d.displayName?(a.setDisPlayName(D.get("cloudBeDeleted","\u8be5\u670d\u52a1\u4e91\u5df2\u88ab\u5220\u9664")),c=!0):a.setDisPlayName(d.displayName);a.setLevel(a.getLevel()+1);a.setPathType(Ua.APPMENU);var e=[];e.push(d.cloudId);e.push(d.appId);e.push(d.appMenuId);e.push(d.appMenuId2);a.setRelationIds(e);if(d=d.children)for(e=
0;e<d.length;e++){var p=d[e],f=new ma;a.getChildren().push(f);f.setParentNode(a);f.setLevel(a.getLevel());f.fromJsonObject(p)}};this.isDeleted=function(){return c}}function l(){Wa.call(this);var a=this,c;this.setIsPreset=function(d){c=d};this.isPreset=function(){return c};this.fromJsonObject=function(d){a.setDisPlayName(d.name);a.setLevel(a.getLevel()+1);a.setPathType(Ua.CENTER);a.setIsPreset(d.isPreset);var e=[];e.push(d.relationId);if(null!=d.mergeRelationIds){var p=d.mergeRelationIds,f;for(f in p)e.push(p[f])}a.setRelationIds(e);
if(d=d.children)for(f=0;f<d.length;f++)e=d[f],p=new l,a.getChildren().push(p),p.setParentNode(a),p.setLevel(a.getLevel()),p.fromJsonObject(e)}}function Ra(){Wa.call(this);var a=this;this.fromJsonObject=function(c){var d=c.children;a.setDisPlayName(c.name);a.setLevel(a.getLevel()+1);a.setPathType(Ua.SNAPMENU);c=[c.id];if(d&&0<d.length)for(var e in d){var p=d[e],f=new Ra;a.getChildren().push(f);c.push(p.id);f.setParentNode(a);f.setLevel(a.getLevel());f.fromJsonObject(p)}a.setRelationIds(c)}}function Wa(){var a=
0,c=[],d,e,p,f,q,w,k;this.setNoMatchText=function(m){k=m};this.getNoMatchText=function(){return k};this.setPathType=function(m){w=m};this.getPathType=function(){return w};this.setRelationIds=function(m){q=m};this.getRelationIds=function(){return q};this.setParentNode=function(m){d=m};this.getParentNode=function(){return d};this.setDisPlayName=function(m){f=m};this.getDisPlayName=function(){return f};this.setChildren=function(m){c=m};this.getChildren=function(){return c};this.setShowFolderNode=function(m){p=
m};this.getShowFolderNode=function(){return p};this.setIsOpenDir=function(m){e=m};this.getIsOpenDir=function(){return e};this.setLevel=function(m){a=m};this.getLevel=function(){return a}}function Sa(){nb.call(this);var a;this.getRemoteUrl=function(){return a};this.setRemoteUrl=function(c){a=c}}"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing=
{});"undefined"==typeof com.kingdee.bos.qing.rpt&&(com.kingdee.bos.qing.rpt={});"undefined"==typeof com.kingdee.bos.qing.rpt.statistic&&(com.kingdee.bos.qing.rpt.statistic={});var M=com.kingdee.bos.qing.rpt.statistic;M.AbstractStatisticMainTable=function(){Y.call(this);var a=this,c,d,e,p=!0,f,q,w,k,m,r,E,Q,x;this.getJqUi=function(A){if(!c){c=$("<div>");c.addClass("rpt-statistic");var g=$("<div>");g.addClass("rpt-statistic-head");var h=$("<div>");h.addClass("rpt-statistic-filter");var n=new Ia,H=0;
n.setFontSize(14);var W=D.get("filter","\u7b5b\u9009\u6761\u4ef6"),X=n.measureWidth(W),ca=new U;ca.setText(W);W=ca.getJqUi();W.children().css("font-size","14px");pa.layoutCtrl(W,16,0,X,23);H+=16+X;W.appendTo(h);n.setFontSize(12);H=a.createFilterContent(h,pa,H,n);n=new N;n.setText(D.get("query","\u67e5\u8be2"));n.setTooltips(D.get("query","\u67e5\u8be2"));n.addActionListener(a.queryDataByFilter);n=n.getJqUi();pa.layoutCtrl(n,H+50,13,60,28);n.appendTo(h);H=$("<div>");H.addClass("rpt-statistic-toolbar");
f=new N;f.setText(D.get("exportExcel","\u5bfc\u51faExcel"));f.setTooltips(D.get("exportExcel","\u5bfc\u51faExcel"));f.addActionListener(aa);f.getJqUi().appendTo(H);n=new N;n.setText(D.get("refresh","\u5237\u65b0"));n.setTooltips(D.get("refresh","\u5237\u65b0"));n.addActionListener(t);n.getJqUi().appendTo(H);n=new N;n.setText(D.get("closeTab","\u9000\u51fa"));n.setTooltips(D.get("closeTab","\u9000\u51fa"));n.addActionListener(J);n.getJqUi().appendTo(H);H.appendTo(h);h.appendTo(g);g.appendTo(c);g=$("<div>");
g.addClass("rpt-statistic-data");d=a.createSortTable();d.addClass("rpt-statistic-content");q=a.getJqUiPagination();q.appendTo(d);a.getJqTable();p&&(w=a.getJquiTotalComponent(),w.css("display","none"));d.appendTo(g);e=$("<div>");e.css("display","none");e.addClass("rpt-statistic-tips");h=$("<div>");h.addClass("rpt-statistic-tips-background");Va.background(h,"nodata");H=$("<div>");H.addClass("rpt-statistic-tips-text");H.text(D.get("NoDataMessage","\u6ca1\u6709\u7b26\u5408\u7b5b\u9009\u6761\u4ef6\u7684\u7ed3\u679c"));
e.append(h);e.append(H);e.appendTo(d);a.setIconRightPx(8);a.queryDataByFilter();g.appendTo(c);A.append(c)}return c};this.requireTotalComponent=function(A){p=A};this.queryDataByFilter=function(){a.resetTableComponents();P()};this.getMessageCurtain=function(){null==x&&(x=new Ca,x.getJqUi().appendTo($("#switch-tab")));return x};this.showOrHideContent=function(A){A?(f.setEnabled(!0),e.css("display","none"),q.css("display","block"),w&&w.css("display","block")):(f.setEnabled(!1),e.css("display","block"),
q.css("display","none"),w&&w.css("display","none"))};var P=function(A){r=null!=r?r:a.getDefaultSortField();E=null!=E?E:a.getDefaultSortOrder();var g=a.getRemoteUrl();(new u(a.getRemoteImpl(g),function(h){0==h?a.getMessageCurtain().showPrompt(D.get("noMenuPermission","\u60a8\u7684\u83dc\u5355\u6743\u9650\u5df2\u53d1\u751f\u53d8\u66f4\uff0c\u65e0\u6cd5\u7ee7\u7eed\u64cd\u4f5c\u3002")):a.doQueryData(r,E,k,m,A)},function(){})).checkPermission()};this.resetTableComponents=function(){k=1;m=a.getPaginationBar().getPageSize()};
this.changePageListener=function(A,g,h){k=A;m=g;P(h)};this.changeSortListener=function(A,g){k=1;r=A;E=g;P()};this.doQueryData=function(A,g,h,n,H){throw Error("Override");};this.doExportExcel=function(A,g,h,n){throw Error("Override");};this.getTotalRow=function(){throw Error("Override");};this.createFilterContent=function(A,g,h,n){throw Error("Override");};this.getRemoteUrl=function(){throw Error("Override");};this.relayout=function(){d.css("height",document.documentElement.clientHeight-176+"px");
a.relayoutTable()};this.getExcelPrefix=function(){return null};var aa=function(){var A=new B;A.setExportExcelHanlder(a.doExportExcel);a.getExcelPrefix()&&A.setFilePrefix(a.getExcelPrefix());A.exportExcel(r,E,a.getTotalRow())};this.doExportExcel=function(A,g,h,n){throw Error("Override");};var t=function(){P()},J=function(){V.closeCurrentTab()};this.getRemoteImpl=function(A){null==Q&&(Q=new Sa,Q.setRemoteUrl(A));return Q}};M.UserDialogSelectorDisPlay=function(){ob.call(this);var a=this,c;a.setShowDisabledFilter(!0);
var d=a.getJqUi;this.getJqUi=function(){if(!c){c=d();var e=a.getJqUi().children("div");e.css("bottom","4px");Va.background(e,"selected_btn_delete")}return c};this.getDisplayText=function(){var e=a.getSelectedValue();return 0==e.length?D.get("selectUser","\u8bf7\u9009\u62e9\u7528\u6237"):D.get("uerSelectedCount","\u5df2\u9009\u62e9#\u4e2a\u7528\u6237").replace("#",e.length)}};M.AbstractStatisticDialog=function(){sa.call(this);Y.call(this);var a=this,c=this.protectedMethod,d,e,p,f,q,w,k,m,r;(function(){c.setSelectable(!0);
c.getDialogCtrl().setFullScreenEnabled();c.getDialogCtrl().setResizeEnabled();c.getDialogCtrl().addResizeListener(function(){a.relayoutTable()});c.setContentPaneCreator(function(){d=$("<div>");var x=$("<div>");x.addClass("rpt-statistic-detail-panel-top");var P=$("<div>");P.text(D.get("exportExcel","\u5bfc\u51faExcel"));P.addClass("rpt-statistic-export");P.on("click",Q);P.css("float","right");pa.layoutCtrlWithLRTB(P,null,1,null,0);P.appendTo(x);m=$("<div>");m.addClass("rpt-statistic-tips");P=$("<div>");
P.addClass("rpt-statistic-tips-background");Va.background(P,"nodata");var aa=$("<div>");aa.addClass("rpt-statistic-tips-text");aa.text(D.get("NoDataMessage","\u6ca1\u6709\u7b26\u5408\u7b5b\u9009\u6761\u4ef6\u7684\u7ed3\u679c"));m.append(P);m.append(aa);m.css("display","none");a.setEnablePagination(!0);a.setEnableAggregate(!1);P=a.createSortTable();P.addClass("rpt-statistic-detail-content");k=a.getJqUiPagination();k.css("display","none");k.css("padding","0px 0px 0px 5px");k.css("margin-left","4px");
k.css("width","calc(100% - 4px)");a.queryDataByFilter();a.getJqTable().addClass("rpt-statistic-dialog-detail-content-table");x.appendTo(d);m.appendTo(d);P.appendTo(d);return d});c.setClosingAction(function(x){});c.setFooterClosingOnly(!0)})();this.setTitle=function(x){w=x;c.setTitle(x)};this.doQueryData=function(x,P,aa,t,J){throw Error("Override");};this.doExportExcel=function(x,P,aa,t){throw Error("Override");};this.queryDataByFilter=function(){e=1;p=a.getPaginationBar().getPageSize();E()};this.changePageListener=
function(x,P,aa){e=x;p=P;E(aa)};this.showOrHideContent=function(x){x?(m.css("display","none"),k.css("display","block")):(m.css("display","block"),k.css("display","none"))};this.changeSortListener=function(x,P){e=1;f=x;q=P;E()};var E=function(x){f=null!=f?f:a.getDefaultSortField();q=null!=q?q:a.getDefaultSortOrder();a.doQueryData(f,q,e,p,x)},Q=function(){var x=new B;x.setExportExcelHanlder(a.doExportExcel);w&&x.setFilePrefix(w&&w.replaceAll(" ","_"));x.exportExcel(f,q,a.getTotalRow())};this.getRemoteImpl=
function(x){null==r&&(r=new Sa,r.setRemoteUrl(x));return r}};M.AbstractPage=function(){var a;this.getJqUi=function(c){};this.getShowText=function(){return a};this.setShowText=function(c){a=c}};M.PublishSnapShotDialogSelector=function(){pb.call(this);var a=this,c,d,e={},p=a.getJqUi;this.getJqUi=function(){c||(c=p(),f(),c.on("mouseover",function(){0<Object.keys(e).length&&d.show()}),c.on("mouseleave",function(){d.hide()}));return c};var f=function(){d=$("<div>");d.css({position:"absolute",height:"16px",
width:"16px",right:"25px",bottom:"6px",cursor:"pointer",display:"none"});Va.background(d,"selected_btn_delete");d.on("click",function(){d.hide();e={};a.updateUI()});d.appendTo(c)};this.getDisplayText=function(){var k=Object.keys(e);return!k||0>=k.length?D.get("selectPubSnap","\u8bf7\u9009\u62e9\u53d1\u5e03/\u5feb\u7167\u540d\u79f0"):D.get("pubSnapCount","\u5df2\u9009\u62e9#\u6761\u6570\u636e\u5185\u5bb9").replace("#",k.length)};this.protectedClickEvent=function(){q()};var q=function(){var k=new b;
k.setConfirmCallBack(function(m){e=m;a.updateUI()});k.setMapSelectPublish(w());k.showDialog()},w=function(){var k={},m=Object.keys(e);if(m)for(var r in m){var E=e[m[r]];E&&(k[m[r]]=E.cloneMe())}return k};this.getSelectedValue=function(){var k=Object.keys(e);if(!k||0>=k.length)return[[],[]];var m=[],r;for(r in k)m.push(e[k[r]].getId());return[[],m]}};M.SwitchPage=function(){var a,c=D.get("pattern","\u5c55\u793a\u65b9\u5f0f:"),d=[],e,p,f,q;this.getJqUi=function(k){a||(w(),k.append(a),p&&p.click());
return a};var w=function(){a=$("<div id='switch-tab'>");var k=$("<div>");k.addClass("tab-switch-tab-head");a.append(k);var m=$("<div>");m.addClass("tab-switch-tab-head-tips");m.text(c);k.append(m);var r=$("<div>");r.addClass("tab-switch-tab-body");a.append(r);if(0<d.length)for(var E in d){m=d[E];var Q=$("<div>");Q.addClass("tab-switch-tab-switch-btn");Q.text(m.getShowText());Q.data("oTab",m);Q.click(function(x){x=$(x.target);if(!x.is(q)){x.addClass("tab-switch-tab-switch-btn-selected");null!=f&&(f.getJqUi(r).hide(),
q.removeClass("tab-switch-tab-switch-btn-selected"));var P=x.data("oTab");f=P;q=x;x=P.getJqUi(r);r.has(x)?x.show():r.append(x);f.relayout()}});k.append(Q);e==m&&(p=Q)}};this.setDefaultSelect=function(k){e=k};this.getSelectedTab=function(){return f};this.addTabContainers=function(k){d.push(k)};this.setShowTips=function(k){c=k}};M.DropComboxSelector=function(){var a=this,c=[],d=[],e={},p,f,q,w=!1,k,m,r=!0,E=!0,Q=0,x,P,aa=25;this.getJqUi=function(){p=new Ja;f=p.getJqUi();f.on("click",function(){w=!w});
p.setCustomPainter(t);p.setDropdownCreator(J);q=$("<div>");q.css({height:"100%",width:"100%",position:"absolute",overflow:"auto"});r&&(m=$("<div>"),m.text("\u00d7"),m.attr("title",D.get("clean","\u6e05\u9664")),m.addClass("sa-ctrl-searchbox-close"),m.addClass("rpt-clear-icon"),m.on("click",function(){E=!1;h();c=[];p.setSelectedModel(c)}),m.css("display","none"),pa.layoutCtrlWithLRTB(m,null,23,16),f.append(m));return f};var t=function(n,H){h();return k?k(n,H):""};this.setFucChangeText=function(n){k=
n};var J=function(n,H,W,X,ca){n.css("background-color","#FFFFFF");A();n.append(q);return[x?x:-1,P?P:-1]};this.addItem=function(n){d.push(n.getName()+Q);e[n.getName()+Q]=n;Q++};this.addBatchItem=function(n){for(var H=0;H<n.length;H++)a.addItem(n[H])};var A=function(){var n=[];q.empty();for(var H in d){var W=e[d[H]];W=g(W.getName(),W.getUserObject());pa.layoutCtrlWithLRTB(W,null,null,"100%",H*aa,null,aa);n.push(W)}q.append(n)},g=function(n,H){var W=new Qa;W.setText(n);W.setUserObject(H);W.setChecked(-1!=
c.indexOf(H));W.addCheckedListener(function(ca,Da){ca.isChecked()?(c.push(ca.getUserObject()),E=!0):(ca=c.indexOf(ca.getUserObject()),-1!=ca&&c.splice(ca,1),0==c.length&&(E=!1));p.setSelectedModel(c)});var X=W.getJqUi();X.find(".sa-ctrl-checkbox-box").css({left:"5px",top:"50%",transform:"translateY(-50%)"});X.find(".sa-ctrl-checkbox-text").css({left:"25px",height:"100%","align-items":"center"});X.on("mouseover",function(){X.css("background-color","#E0EFFFFF")});X.on("mouseleave",function(){X.css("background-color",
"")});return X};this.refreshAllDropDown=function(){w&&A()};this.refreshNewNode=function(n){w&&(a.addItem(n),n=e[d[d.length-1]],n=g(n.getName(),n.getUserObject()),pa.layoutCtrlWithLRTB(n,null,null,"100%",(d.length-1)*aa,null,aa),q.append(n))};this.setDropHeight=function(n){P=n};this.setDropWidth=function(n){x=n};this.setCellHeight=function(n){aa=n};this.enableClearIcon=function(n){r=n};this.getSelectedValue=function(){return c};var h=function(){m&&m.css("display",E?"block":"none")};this.clear=function(){d=
[];c=[];e={}}};M.SortableTableHead=function(a,c,d,e,p){var f=a;var q=c;var w=e;var k=p;var m=d;this.setWidthRatio=function(r){m=r};this.getWidthRatio=function(){return m};this.setSortable=function(r){w=r};this.getSortable=function(){return w};this.setCalculable=function(r){k=r};this.getCalculable=function(){return k};this.setField=function(r){q=r};this.getField=function(){return q};this.setName=function(r){f=r};this.getName=function(){return f};this.setIconGap=function(r){}};M.DropComboxNode=function(a,
c){var d=a;var e=c;this.setName=function(p){d=p};this.getName=function(){return d};this.setUserObject=function(p){e=p};this.getUserObject=function(){return e}};var Aa,Ia,pa,Ga,D,ra,qa,na,V,fa,G,U,N,la,da,sa,Ca,Ja,bb,Qa,Ta,fb,mb,hb,ob,pb,ib,db,eb,lb,nb,gb,kb;(function(){var a=com.kingdee.bos.qing.common;Aa=a.Util;Ia=a.TextMeasurer;pa=a.DomUtil;Ga=a;a=com.kingdee.bos.qing.framework.common;D=a.MultilanguageManager.createPackageAccessor(com.kingdee.bos.qing.rpt.statistic);V=a.TabbedUiUtil;qa=a.WindowResizeObserver;
na=a.RemoteFramework;G=a.AbstractFacade;fa=a.AbstractIcons;a=com.kingdee.bos.qing.behavior;da=a.BehaviorManager;a=com.kingdee.bos.qing.ui.component;U=a.Label;N=a.ToolbarButton;la=a.MessageDialog;Ca=a.MessageCurtain;Ja=a.DropdownSelector;bb=a.WorkButton;Qa=a.CheckBox;Ta=a.SplitPane;fb=a.TabContainer;mb=a.List;sa=a.AbstractModalDialog;a=com.kingdee.bos.qing.biz.common;pb=a.AbstractDialogSelector;hb=a.ComplexPaginationBar;ob=a.UserDialogSelector;ib=a.KeyBoardSearchBox;a=com.kingdee.bos.qing.access.model;
db=a.PublishModel;eb=a.ReportModel;lb=a.SnapModel;a=com.kingdee.bos.qing.framework.common;nb=a.AbstractRemoteCall;a=com.kingdee.bos.qing.access.common;gb=a.SelectPublishNameFacade;a=com.kingdee.bos.qing.common.ui;ra=a.TableUtil;a=com.kingdee.bos.qing;kb=a.Seer})();ja.BOX_LEN=15;Z.ORDER_DESC="DESC";Z.ORDER_ASC="ASC";var Ua={CENTER:"center",APPMENU:"appMenu",SNAPMENU:"snapMenu"},Ma={PUBLISH_TAB:"publish",SNAPSHOT_TAB:"snapShot"};M.SplitMatchTextUtil=new function(){this.redTextAfterMatching=function(d,
e){if(void 0==d||null==e||""==e){var p=$("<span>");p.text(d);return p}p=$("<span>");e=e.trim();for(var f=a(d,e),q=e.length;-1!=f;)c(p,d.substring(0,f)),c(p,d.substring(f,f+q),!0),d=d.substring(f+q),f=a(d,e);c(p,d);return p};var a=function(d,e){d=d.toUpperCase();e=e.toUpperCase();return d.indexOf(e)};this.highLightAllContent=function(d){var e=$("<span>");e.css("color","red");e.text(d);e.attr("attr",d);return e};var c=function(d,e,p){if(null!=e&&""!=e){var f=$("<span>");p&&f.css("color","red");f.text(e);
f.appendTo(d)}}};M.RemoteUrlFacade=new function(){this.getAccessRemoteUrl=function(){var a=Aa.decodeParamFromUrl(window.location.search,"path");return(a?a:"/ierp")+"/qing-rpt/accessRecord.do"};this.getCreateRemoteUrl=function(){var a=Aa.decodeParamFromUrl(window.location.search,"path");return(a?a:"/ierp")+"/qing-rpt/createRecord.do"};this.getQingTreeMenuRemoteUrl=function(){var a=Aa.decodeParamFromUrl(window.location.search,"path");return(a?a:"/ierp")+"/qing/selectPublish.do"}};M.Icons=new function(){fa.call(this);
var a=this.protectedMethod;this.protectedInit=function(c,d){c=com.kingdee.bos.extreport.mancenter.ComboIcon;if(!c)throw Error("com.kingdee.bos.extreport.mancenter.ComboIcon not found.");c.define(d,"nodata");d.setStartPosition(0,0);d.setGap(0);d.setIconSize(220,220);a.registIcon(0,0,"nodata");c.define(d,"tips-background");d.setIconSize(240,150);a.registIcon(0,0,"tips-background");c.define(d,"tm");d.setGap(1);d.setStartPosition(1,1);d.setIconSize(16,16);a.registIcon(0,4,"btn-delete_hover");a.registIcon(1,
4,"btn-delete");a.registIcon(2,0,"icon_sort-asc-esc");a.registIcon(2,1,"icon_sort-asc-desc");a.registIcon(2,2,"icon_sortable-v");c.define(d,"dm");d.setStartPosition(1,1);d.setGap(1);d.setIconSize(16,16);a.registIcon(6,14,"selected_btn_delete");c.define(d,"extreport");d.setStartPosition(0,0);d.setGap(1);d.setIconSize(16,16);a.registIcon(1,5,"icon-extreport")}};var Va=M.Icons})();(function(){function u(){S.call(this);Y.call(this);var M=this,Aa,Ia,pa=[],Ga;(function(){var qa=new C(v.get("creator","\u521b\u5efa\u8005"),"FCREATORID",1,!1,!1),na=new C(v.get("dataset","\u6570\u636e\u96c6"),"DATASET",1,!0,!0),V=new C(v.get("report","\u62a5\u8868\u6a21\u677f"),"REPORT",1,!0,!0),fa=new C(v.get("publish","\u53d1\u5e03\u8bb0\u5f55"),"PUBLISH",1,!0,!0),G=new C(v.get("snapshot","\u5feb\u7167"),"SNAPSHOT",1,!0,!0),U=new C(v.get("totalNum","\u603b\u8ba1"),"TOTAL",1,!0,!0);Ia=[qa,na,V,fa,
G,U];M.setFuncResolveObjectToTotalArr(function(N){var la=N.getDataSetNum(),da=N.getReportNum(),sa=N.getPublishNum(),Ca=N.getSnapShotNum();N=N.getTotalNum();return["",la,da,sa,Ca,N]});M.setSortTableHeads(Ia,1);M.setEnablePagination(!0)})();this.createFilterContent=function(qa,na,V,fa){var G=v.get("owner","\u62e5\u6709\u8005");fa=fa.measureWidth(G);var U=new Sa;U.setText(G);G=U.getJqUi();na.layoutCtrl(G,V+20,0,fa,23);V+=20+fa;Aa=new Z;Aa.setConfirmClear(!1);fa=Aa.getJqUi();fa.children(".sa-ctrl-textfield-input").css("width",
"86%");na.layoutCtrl(fa,V+10,0,180,23);G.appendTo(qa);fa.appendTo(qa);return V+180};this.cellShow=function(qa,na,V,fa,G){qa=$(qa);na=$("<div>");V=null;0==fa?(na.addClass("rpt-statistic-data-table-cell-left"),V=G.getCreatorName(),na.text(V)):(na.addClass("rpt-statistic-data-table-cell-center"),1==fa?(V=G.getDataSetNum(),D(na,V,G,fa)):2==fa?(V=G.getReportNum(),D(na,V,G,fa)):3==fa?(V=G.getPublishNum(),D(na,V,G,fa)):4==fa?(V=G.getSnapShotNum(),D(na,V,G,fa)):5==fa&&(V=G.getTotalNum(),D(na,V,G,fa)));na.attr("title",
V);qa.append(na)};var D=function(qa,na,V,fa){var G=$("<span>");0!=na&&(G.addClass("rpt-statistic-click-open-panel"),G.on("click",function(){if(1==fa){var U=new B(ma.DATASET,V.getCreatorId(),v.get("createDetail","\u521b\u5efa\u5185\u5bb9\u660e\u7ec6")+"-"+V.getCreatorName());U.showDialog()}else 2==fa?(U=new B(ma.REPORT,V.getCreatorId(),v.get("createDetail","\u521b\u5efa\u5185\u5bb9\u660e\u7ec6")+"-"+V.getCreatorName()),U.showDialog()):3==fa?(U=new B(ma.PUBLISH,V.getCreatorId(),v.get("createDetail",
"\u521b\u5efa\u5185\u5bb9\u660e\u7ec6")+"-"+V.getCreatorName()),U.showDialog()):4==fa?(U=new B(ma.SNAPSHOT,V.getCreatorId(),v.get("createDetail","\u521b\u5efa\u5185\u5bb9\u660e\u7ec6")+"-"+V.getCreatorName()),U.showDialog()):5==fa&&(U=new B(ma.TOTAL,V.getCreatorId(),v.get("createDetail","\u521b\u5efa\u5185\u5bb9\u660e\u7ec6")+"-"+V.getCreatorName()),U.showDialog())}));G.text(na);qa.html(G)},ra=M.queryDataByFilter;this.queryDataByFilter=function(){var qa=Aa.getSelectedValue();pa=[];for(var na=0;na<
qa.length;na++)pa.push(qa[na].getValue());ra()};this.getTotalRow=function(){return Ga};this.doExportExcel=function(qa,na,V,fa){var G={},U=[],N;for(N in Ia)G[Ia[N].getName()]=Ia[N].getField(),U.push(Ia[N].getName());qa={exportData:va.CREATOR_INDEX,tableHeads:JSON.stringify(U),headAndFieldMapping:JSON.stringify(G),creatorIds:JSON.stringify(pa),field:qa,order:na};V=new T(M.getRemoteImpl(L.getCreateRemoteUrl()),V,fa);V.setBlockingPrompt(v.get("loading","\u6b63\u5728\u5bfc\u51fa..."));V.exportExcel(qa)};
this.doQueryData=function(qa,na,V,fa,G){var U=new T(M.getRemoteImpl(L.getCreateRemoteUrl()),function(N){Ga=N.totalRow;null==G?M.getPaginationBar().resetPaginationAndJumpToFirstPage(Ga):G(Ga);N=N.data;var la=[],da;for(da in N){var sa=new l;sa.fromJsonObject(N[da]);la.push(sa)}M.updateTable(la);M.relayout()},function(){});U.setShowBlocking(!0);U.loadNumericCreateRecordByIds(pa,V,fa,qa,na)};this.getExcelPrefix=function(){return v.get("createUserPrefix","\u7528\u6237\u521b\u5efa\u5185\u5bb9\u7edf\u8ba1(\u62e5\u6709\u8005\u89c6\u89d2)")};
this.getRemoteUrl=function(){return L.getCreateRemoteUrl()}}function B(M,Aa,Ia){ja.call(this);var pa=this,Ga,D,ra,qa;(function(){ra=M;qa=Aa;pa.setTitle(Ia);pa.setSize(1E3,570);var V=new C(v.get("dataContextName","\u6570\u636e\u5185\u5bb9\u540d\u79f0"),"FNAME",12),fa=new C(v.get("type","\u7c7b\u578b"),"FTYPE",8),G=new C(v.get("path","\u8def\u5f84"),"FPATH",15),U=new C(v.get("createTime","\u521b\u5efa\u65f6\u95f4"),"FCREATETIME",10,!0),N=new C(v.get("owner","\u62e5\u6709\u8005"),"FOWNER",8);Ga=[V,fa,
G,U,N];pa.setSortTableHeads(Ga,3);pa.setEnablePagination(!0)})();this.cellShow=function(V,fa,G,U,N){V=$(V);fa=$("<div>");G=null;fa.addClass("rpt-statistic-data-table-cell-left");0==U?G=N.getPubName():1<=U&&4>=U&&(1==U?G=N.getPubType():2==U?G=N.getPubPath():3==U?G=N.getCreateFormatTime():4==U&&(G=N.getCreateName()));fa.text(G);fa.attr("title",G);V.append(fa)};this.doQueryData=function(V,fa,G,U,N){var la=new T(pa.getRemoteImpl(L.getCreateRemoteUrl()),function(da){D=da.totalRow;null==N?pa.getPaginationBar().resetPaginationAndJumpToFirstPage(D):
N(D);da=da.data;var sa=[],Ca;for(Ca in da){var Ja=new Ra;Ja.fromJsonObject(da[Ca]);sa.push(Ja)}pa.updateTable(sa)},function(){});la.setShowBlocking(!0);la.loadDetailBySinglePersonAndType(qa,ra,V,fa,G,U)};this.getTotalRow=function(){return D};this.doExportExcel=function(V,fa,G,U){var N={},la=[],da;for(da in Ga)N[Ga[da].getName()]=Ga[da].getField(),la.push(Ga[da].getName());V={exportData:na(),creatorId:qa,type:ra,tableHeads:JSON.stringify(la),headAndFieldMapping:JSON.stringify(N),field:V,order:fa};
G=new T(pa.getRemoteImpl(L.getCreateRemoteUrl()),G,U);G.setBlockingPrompt(v.get("loading","\u6b63\u5728\u5bfc\u51fa..."));G.exportExcel(V)};var na=function(){if(ra==ma.DATASET)return va.CREATOR_DATASET;if(ra==ma.REPORT)return va.CREATOR_REPORT;if(ra==ma.PUBLISH)return va.CREATOR_PUBLISH;if(ra==ma.SNAPSHOT)return va.CREATOR_SNAPSHOT;if(ra==ma.TOTAL)return va.CREATOR_TOTAL};this.getExcelPrefix=function(){return Ia}}function O(){S.call(this);Y.call(this);var M=this,Aa,Ia=[],pa,Ga=[],D,ra,qa,na;(function(){var G=
new C(v.get("dataContextName","\u6570\u636e\u5185\u5bb9\u540d\u79f0"),"FNAME",12),U=new C(v.get("type","\u7c7b\u578b"),"FTYPE",8),N=new C(v.get("path","\u8def\u5f84"),"FPATH",15),la=new C(v.get("createTime","\u521b\u5efa\u65f6\u95f4"),"FCREATETIME",10,!0),da=new C(v.get("owner","\u62e5\u6709\u8005"),"FOWNER",8);Aa=[G,U,N,la,da];M.setSortTableHeads(Aa,3);M.requireTotalComponent(!1);M.setEnablePagination(!0)})();this.cellShow=function(G,U,N,la,da){G=$(G);U=$("<div>");N=null;U.addClass("rpt-statistic-data-table-cell-left");
0==la?(da.isPreset()&&(la=$("<div>"),la.text(v.get("preset","\u9884\u7f6e")),la.addClass("select-publish-name-preset-tag"),la.appendTo(G)),N=da.getPubName(),U.append(y.redTextAfterMatching(da.getPubName(),pa))):(1==la?N=da.getPubType():2==la?N=(N=(N=da.getPubPath())&&N.replaceAll("APP_MENU_HAS_BEEN_DELETED",v.get("menuBeDeleted","\u8be5\u5e94\u7528\u83dc\u5355\u5df2\u88ab\u5220\u9664")))&&N.replaceAll("APP_HAS_BEEN_DELETED",v.get("menuBeDeleted","\u8be5\u5e94\u7528\u83dc\u5355\u5df2\u88ab\u5220\u9664")):
3==la?N=da.getCreateFormatTime():4==la&&(N=da.getCreateName()),U.text(N));U.attr("title",N);G.append(U)};this.createFilterContent=function(G,U,N,la){var da=v.get("name","\u540d\u79f0"),sa=la.measureWidth(da),Ca=new Sa;Ca.setText(da);da=Ca.getJqUi();U.layoutCtrl(da,N+33,0,sa,23);da.appendTo(G);N+=35+sa;na=new Wa;na.setPlaceholder(v.get("searchBoxPlaceholder","\u8bf7\u8f93\u5165\u6570\u636e\u5185\u5bb9\u540d\u79f0"));sa=na.getJqUi();U.layoutCtrl(sa,N+6,0,210,23);sa.appendTo(G);N+=216;da=v.get("owner",
"\u62e5\u6709\u8005");sa=la.measureWidth(da);Ca=new Sa;Ca.setText(da);da=Ca.getJqUi();U.layoutCtrl(da,N+35,0,sa,23);da.appendTo(G);N+=35+sa;ra=new Z;ra.setConfirmClear(!1);sa=ra.getJqUi();U.layoutCtrl(sa,N+6,0,210,23);sa.appendTo(G);N+=216;sa=v.get("type","\u7c7b\u578b");la=la.measureWidth(sa);da=new Sa;da.setText(sa);sa=da.getJqUi();U.layoutCtrl(sa,N+35,0,la,23);sa.appendTo(G);N+=35+la;qa=new ha;qa.addItem(new I(v.get("dataset","\u6570\u636e\u96c6"),ma.DATASET));qa.addItem(new I(v.get("report","\u62a5\u8868\u6a21\u677f"),
ma.REPORT));qa.addItem(new I(v.get("publish","\u53d1\u5e03\u8bb0\u5f55"),ma.PUBLISH));qa.addItem(new I(v.get("snapshot","\u5feb\u7167"),ma.SNAPSHOT));qa.setDropHeight(100);qa.setFucChangeText(function(Ja,bb){var Qa=$("<div>");if(Ja&&0!=Ja.length){var Ta="";if(1==Ja.length)Qa.text(V(Ja[0]));else if(2==Ja.length){for(var fb in Ja)Ta+=V(Ja[fb])+"; ";Qa.text(Ta.substring(0,Ta.length-2))}else 2<Ja.length&&(Ta+=V(Ja[0])+", ",Ta+=V(Ja[1]),Qa.text(Ta+v.get("SoOn","\u7b49#1\u79cd\u7c7b\u578b").replace("#1",
Ja.length)))}else Qa.text(v.get("pleaseSelectType","\u8bf7\u9009\u62e9\u7c7b\u578b"));Qa.addClass("rpt-drop-selector-tips");bb.html(Qa)});la=qa.getJqUi();U.layoutCtrl(la,N+=6,0,210,23);la.appendTo(G);return N+216};var V=function(G){if(G==ma.DATASET)return v.get("dataset","\u6570\u636e\u96c6");if(G==ma.REPORT)return v.get("report","\u62a5\u8868\u6a21\u677f");if(G==ma.PUBLISH)return v.get("publish","\u53d1\u5e03\u8bb0\u5f55");if(G==ma.SNAPSHOT)return v.get("snapshot","\u5feb\u7167")},fa=M.queryDataByFilter;
this.queryDataByFilter=function(){var G=ra.getSelectedValue();Ia=[];for(var U=0;U<G.length;U++)Ia.push(G[U].getValue());Ga=qa.getSelectedValue();pa=na.getText()&&na.getText().trim();fa()};this.doQueryData=function(G,U,N,la,da){var sa=new T(M.getRemoteImpl(L.getCreateRemoteUrl()),function(Ca){D=Ca.totalRow;null==da?M.getPaginationBar().resetPaginationAndJumpToFirstPage(D):da(D);Ca=Ca.data;var Ja=[],bb;for(bb in Ca){var Qa=new Ra;Qa.fromJsonObject(Ca[bb]);Ja.push(Qa)}M.updateTable(Ja);M.relayout()},
function(){});sa.setShowBlocking(!0);sa.loadDetailFromDataAspect(Ga,Ia,pa,G,U,N,la)};this.doExportExcel=function(G,U,N,la){var da={},sa=[],Ca;for(Ca in Aa)da[Aa[Ca].getName()]=Aa[Ca].getField(),sa.push(Aa[Ca].getName());G={exportData:va.DATA_INDEX,creatorIds:JSON.stringify(Ia),types:JSON.stringify(Ga),name:pa,tableHeads:JSON.stringify(sa),headAndFieldMapping:JSON.stringify(da),field:G,order:U};N=new T(M.getRemoteImpl(L.getCreateRemoteUrl()),N,la);N.setBlockingPrompt(v.get("loading","\u6b63\u5728\u5bfc\u51fa..."));
N.exportExcel(G)};this.getTotalRow=function(){return D};this.getExcelPrefix=function(){return v.get("createDatePrefix","\u7528\u6237\u521b\u5efa\u5185\u5bb9\u7edf\u8ba1(\u6570\u636e\u89c6\u89d2)")};this.getRemoteUrl=function(){return L.getCreateRemoteUrl()}}"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.estabilish&&
(com.kingdee.bos.qing.estabilish={});"undefined"==typeof com.kingdee.bos.qing.estabilish.theme&&(com.kingdee.bos.qing.estabilish.theme={});com.kingdee.bos.qing.estabilish.theme.MainUi=function(){this.getJqUi=function(M){var Aa=new b,Ia=new u;Ia.setShowText(v.get("ownerMode","\u6309\u62e5\u6709\u8005\u89c6\u89d2\u5c55\u793a"));Aa.addTabContainers(Ia);var pa=new O;pa.setShowText(v.get("dataMode","\u6309\u6570\u636e\u5185\u5bb9\u89c6\u89d2\u5c55\u793a"));Aa.addTabContainers(pa);Aa.setDefaultSelect(Ia);
Aa.getJqUi(M);M=new ka;M.setDelay(250);M.setCallback(function(){if("none"!=Aa.getSelectedTab().getJqUi().css("display")&&0!=document.body.clientHeight&&0!=document.body.clientWidth){var Ga=Aa.getSelectedTab();Ga.isTableInited()?Ga.refreshTable():Ga.updateTable();Ga.relayout()}});M.observe()}};var S,Y,ja,Z,ha,b,y,L,C,I,v,ka,T,va,ma,l,Ra,Wa,Sa;(function(){var M=com.kingdee.bos.qing.rpt.statistic;S=M.AbstractPage;Y=M.AbstractStatisticMainTable;Z=M.UserDialogSelectorDisPlay;ja=M.AbstractStatisticDialog;
ha=M.DropComboxSelector;b=M.SwitchPage;y=M.SplitMatchTextUtil;L=M.RemoteUrlFacade;C=M.SortableTableHead;I=M.DropComboxNode;M=com.kingdee.bos.qing.framework.common;v=M.MultilanguageManager.createPackageAccessor(com.kingdee.bos.qing.rpt.statistic);ka=M.WindowResizeObserver;M=com.kingdee.bos.qing.estabilish.common;T=M.EstablishAspectServiceFacade;va=M.EXPORT_TYPE;ma=M.DATATYPE;M=com.kingdee.bos.qing.estabilish.model;l=M.CreatorAspectModel;Ra=M.DataAspectModel;M=com.kingdee.bos.qing.ui.component;Sa=M.Label;
Wa=M.SearchBox})()})();
//qingVersionTag: 20250415