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