(function(){function Z(){na.call(this);var F=this,x=this.protectedMethod,M,S,W,T,ca;this.setCurrentPublishSchema=function(b){ca=b};this.setUserOperatorPrevCheck=function(b){W=b};this.setCloseResourceLock=function(b){};this.protectedHaveToCarryData=function(){return!1};this.protectedNeedToShowMessageBox=function(){return!0};this.protectedGetRemoteUrl=function(){var b=x.getUrlParamUtil().getParamPathPrefix();return(b?b:"/ierp")+"/qing/core.do"};this.protectedImportMoreCode=function(b){b.pushSkinJs("scene",
"skin");b.pushI18n("scene","scene")};this.protectedCustomInitEnv=function(b){b=$("<div>");b.css({position:"fixed",bottom:"3px",right:"1px",width:"180px",height:"18px",zIndex:"999"});a(b);F.protectedNeedToShowMessageBox()&&f(b);b.appendTo($(document.body));com.kingdee.bos.qing.integration.ImglibUrlParser.hookUrlParser()};var a=function(b){R.setCallback(function(){var e=new com.kingdee.bos.qing.support.Main;e.setParamLanguage(x.getUrlParamUtil().getParamLanguage());e.creatSupportUi(b)});R.loadCss("support/support.css");
R.loadJs("support/support-ui.js");R.loadI18n("support","support")},f=function(b){R.setCallback(function(){var e=com.kingdee.bos.qing.common.Util.decodeParamFromUrl(window.location.search,"path");e=e?e:"/ierp";com.kingdee.bos.qing.message.common.Integration.setRemoteUrl(e+"/qing/messageManage.do");k(e);var n=new com.kingdee.bos.qing.message.ui.Main;n.setFunOpenMessageDialog(function(){n.setViewSize(null,null,10,30)});n.setMessageWidth(80);n.getJqUi(25).appendTo(b)});R.loadSkinCss("message","message");
R.loadSkinJs("message","skin");R.loadJs("message/message-manage-ui.js");R.loadI18n("message","message")},k=function(b){var e=com.kingdee.bos.qing.message.common.Integration;e.setImportJSCodeForManager(function(){var z=com.kingdee.bos.qing.CodeLoader;z.setCallback(function(){var G=com.kingdee.bos.qing.theme.message.panel.common.Integration;G.setFunPublishRemoteImpl(function(){var q=new com.kingdee.bos.qing.theme.message.panel.common.RemoteImpl;q.setRemoteUrl(b+"/qing/publishTo.do");return q});G.setFunQingCenterAndMenuEntrance(function(q,
p,A,H){p=U.getUrlParamValue();var r=b+"/qing/publishEntrance.do";r=C.appendParamToUrl(r,"publishId",q);"extreport"==H?(r=C.appendParamToUrl(r,"appID","qing_rpt"),p&&(r=C.appendParamToUrl(r,"skin",p)),X.openNewTabInAppId(A,r,r,X.QING_RPT)):(p&&(r=C.appendParamToUrl(r,"skin",p)),X.openNewTabInAppId(A,r,r,X.QING_ANALYSIS))});G.setResourceRemoteUrl(b+"/qing/resource.do");G.setDataModelEntrance(function(q,p,A){var H=U.getUrlParamValue();p=Q.get("dataModeling","\u6570\u636e\u51c6\u5907")+"-"+p;var r=b+
"/qing/dataModelingEntrance.do";r=C.appendParamToUrl(r,"themeID",q);r=C.appendParamToUrl(r,"isPreset",A);H&&(r=C.appendParamToUrl(r,"skin",H));X.openNewTabInAppId(p,r,r,X.QING_ANALYSIS)});G.setFunPublishContext(function(){var q=new com.kingdee.bos.qing.publish.common.PublishContext;q.setParamPathPrefix(b);q.setLappEntranceUrl(b+"/qing/lappEntrance.do");return q});G.setFunPublishedEmailLoginViewUrl(function(){var q=U.getUrlParamValue(),p=w.getUrlParamValue("language"),A=b+"/qing/publishedEmailEntrance.do?publishId=(publishId)&kdcdc=(accountId)";
q&&(A=C.appendParamToUrl(A,"skin",q));p&&(A=C.appendParamToUrl(A,"language",p));return A});G.setFunPublishedEmailAnonymousViewUrl(function(){var q=U.getUrlParamValue(),p=w.getUrlParamValue("language"),A=b+"/index.html?userId=Guest&accountId=(accountId)&appNumber=qing&formId=qing_analysis_pub_email#/dform?appNumber=qing&formId=qing_analysis_pub_email&publishId=(publishId)";q&&(A=C.appendParamToUrl(A,"skin",q));p&&(A=C.appendParamToUrl(A,"language",p));return A});G.setFunPublishContentEditEntrance(function(){return function(q,
p,A){var H=com.kingdee.bos.qing.publish.model.PublishTargetType;if(A&&H.MOBILE==A){H=q.getPublishId();var r=q.getId()}else H=q.getId();var I=U.getUrlParamValue(),ea=w.getUrlParamValue("language");A=b+"/qing/publishContentEditEntrance.do";A=C.appendParamToUrl(A,"skin",I);A=C.appendParamToUrl(A,"language",ea);A=C.appendParamToUrl(A,"publishId",H);r&&(A=C.appendParamToUrl(A,"lappId",r));r=A;p&&(H="editPublishedContent-"+H,I=com.kingdee.bos.qing.publish.common.PublishSubscribeHelper,I.putSubscribe(H,
p),A=C.appendParamToUrl(A,"subscribeKey",H),A=C.appendParamToUrl(A,"currentPageClientId",I.getCurrentPageClientId()));p=com.kingdee.bos.qing.framework.common.TabbedUiUtil;p.openNewTabInAppId(Q.get("editPublishedContent","\u7f16\u8f91\u53d1\u5e03\u65b9\u6848-")+q.getName(),A,r,p.QING_ANALYSIS)}});G.setFunTimedPushContentEditEntrance(function(){return function(q){var p=b+"/qing/timedPushContentEditEntrance.do",A=Q.get("editTimedPushContent","\u7f16\u8f91\u63a8\u9001\u65b9\u6848");if(q instanceof com.kingdee.bos.qing.timedpush.model.EmailConfig){var H=
q.getId(),r=q.getPublishSourceType();I=q.getSchemaSourceType();p=C.appendParamToUrl(p,"configId",H);p=C.appendParamToUrl(p,"publishSourceType",r);p=C.appendParamToUrl(p,"schemaType",I);p=C.appendParamToUrl(p,"pushTarget","email");A=A+"-"+q.getNameRule().getName();q.isSourceNameNotFound()&&(p=C.appendParamToUrl(p,"errorCode","2301001"))}else{H=q.getId();r=q.getPushTargetType();var I=q.getSchemaType();p=C.appendParamToUrl(p,"configId",H);p=C.appendParamToUrl(p,"pushTargetType",r);p=C.appendParamToUrl(p,
"schemaType",I);p=C.appendParamToUrl(p,"pushTarget","lapp");A=A+"-"+q.getName();q.getSourceName()||(p=C.appendParamToUrl(p,"errorCode","2301001"))}q=U.getUrlParamValue();I=w.getUrlParamValue("language");q&&(p=C.appendParamToUrl(p,"skin",q));I&&(p=C.appendParamToUrl(p,"language",I));q=com.kingdee.bos.qing.framework.common.TabbedUiUtil;q.openNewTabInAppId(A,p,p,q.QING_ANALYSIS)}});G=com.kingdee.bos.qing.modeler.message.panel.common.Integration;G.setFunOpenModelSetPage(function(q,p){var A=U.getUrlParamValue(),
H=Q.get("modelSet","\u6a21\u578b\u96c6-")+p,r=b+"/qing_modeler/modelSetMainPage.do";r=C.appendParamToUrl(r,"modelSetId",q);r=C.appendParamToUrl(r,"modelSetName",p);r=C.appendParamToUrl(r,"currentPageClientId",com.kingdee.bos.qing.framework.common.RemoteFramework.getClientID());A&&(r=C.appendParamToUrl(r,"skin",A));X.openNewTabInAppId(H,r,r,X.QING_MODELER)});G.setFunOpenModelDesign(function(q,p,A,H,r){var I=com.kingdee.bos.qing.modeler.message.panel.common.ModelType,ea=U.getUrlParamValue();r=(r=I.getModelTypeText(r))?
r+"-"+A:A;I=b+"/qing_modeler/deployDesignerEntrance.do";I=C.appendParamToUrl(I,"modelSetId",q);I=C.appendParamToUrl(I,"modelId",p);I=C.appendParamToUrl(I,"modelName",A);I=C.appendParamToUrl(I,"modelDeployId",H);ea&&(I=C.appendParamToUrl(I,"skin",ea));X.openNewTabInAppId(r,I,I,X.QING_MODELER)})});z.loadSkinCss("message","messagepanel");z.loadSkinJs("message","skin");z.loadJs("message/message-content-panel-management.js");z.loadI18n("message","messagepanel");z.loadSkinCss("qingmodeler/message","message-modeler-panel");
z.loadSkinJs("qingmodeler/message","skin");z.loadJs("qingmodeler/message/message-content-panel-management.js");z.loadI18n("qingmodeler/message","message-modeler-panel")});var n=C.decodeParamFromUrl(location.search,"appID");e.setAppId(n)},g=function(b,e,n,z,G,q){var p=com.kingdee.bos.qing.publish.model.PublishSourceType,A=com.kingdee.bos.qing.publish.model.PublishTargetType;b!=p.EXTREPORT&&b!=p.DASHBOARD&&e!=A.GUIMENU?(b=new com.kingdee.bos.qing.publish.common.PublishFacade(E(),function(H){q&&q()},
function(H,r){return 2301016==H?(V().showPrompt(Q.get("publishNoOperAuthExceptionCurtain","\u6ca1\u6709\u64cd\u4f5c\u6743\u9650\u3002"),2E3),!0):!1}),e=n.getBizTag(),p=n.getDsbPublishId(),n.getRefToId()&&(e=n.getRefToId()),b.judgePublishOper(e,p,z,G)):q&&q()},h=function(){com.kingdee.bos.qing.timedpush.LappIntegration.syncDatacenterInfo(E())},t=function(){var b=x.getUrlParamUtil().getParamPathPrefix();com.kingdee.bos.qing.timedpush.LappIntegration.setLappPrivateUrl(b+"/qing/lappPrivateInfo.do")},
l=function(b,e,n,z,G,q){var p=x.getUrlParamUtil().getParamPathPrefix(),A=com.kingdee.bos.qing.publish.common,H=A.PublishContext;A=com.kingdee.bos.qing.schemamanage.model;var r=A.SchemaAttrModel;A=A.SchemaModel;var I=x.getUrlParamUtil().getUrlParam("bizTag"),ea=F.protectedHaveToCarryData(),K;com.kingdee.bos.qing&&com.kingdee.bos.qing.prepare&&com.kingdee.bos.qing.prepare.DataSourceInfoContext&&(K=com.kingdee.bos.qing.prepare.DataSourceInfoContext.getCurrentDataSourceInfo());var fa=K&&K.hasDirectModeTable();
K=new H;K.setSource(G);K.setBizTag(I);K.setCurrentSourceType(e);K.setHaveToCarryData(ea);K.setHasDirectModeTable(fa);K.setParamPathPrefix(p);K.setSchemaTag("Dashboard-Analysis"==q?x.getUrlParamUtil().getUrlParam("schemaTag"):null);e=new r;e.setSchemaType(r.SCHEMATYPE_SYSTEM);e.setIsDefault(!0);e.setSchemaName(O("sysPublishScheme","\u7cfb\u7edf\u9ed8\u8ba4\u65b9\u6848"));e.setSource(n);G=new A;G.setSchemaAttr(e);G.setSchemaContent(b.getJsonModelBook());b=G.toJsonObject();K.setCurrentContentModel(b);
b=x.getUrlParamUtil().getParamTag();e=function(ba){ba+="/qinganalysis/lappPreviewEntrance.do";for(var L=window.location.search.substring(1).split("&"),aa=0;aa<L.length;aa++){var Y=L[aa],ha=Y.indexOf("=");if(-1!=ha){var oa=Y.substring(0,ha);"clientID"!=oa&&"safetyCode"!=oa&&(Y=Y.substring(ha+1),ba+=0>ba.indexOf("?")?"?":"&",ba+=oa,ba+="=",ba+=Y)}}return ba};n==r.SCHEMASOURCE_SQUARE?(K.setScene(H.Scene.Square),n=e(p),n=C.appendParamToUrl(n,"view","10"),K.setMobilePreviewUrl(n),p=C.appendParamToUrl(p+
"/qing/lappEntrance.do","tag",b),p=C.appendParamToUrl(p,"view","10"),K.setLappEntranceUrl(p)):n==r.SCHEMASOURCE_LONGER&&(K.setScene(H.Scene.Longer),K.setMobilePreviewUrl(e(p)),p=C.appendParamToUrl(p+"/qing/lappEntrance.do","tag",b),K.setLappEntranceUrl(p));z&&(K.setRefToId(x.getUrlParamUtil().getUrlParam("publishId")),K.setDsbPublishId(z),K.setDashBoardAnalysis(!0));return K},c=function(b){var e=!1;if(b&&(b=b.tables)&&0<b.length)for(var n=0;n<b.length;n++)if(b[n].subViews){e=!0;break}return e},d=
function(b,e){W?W(function(n){var z=new com.kingdee.bos.qing.schemamanage.common.SchemaManageFacade(y(),function(q){q.publishInfoPerCheck==Z.PUBLISHINFO_PERMISSION_PUBLISHPLAN_EXIST?b&&b(e):q.publishInfoPerCheck==Z.THEME_IS_DEL?u($(document.body),"msg-warning",Q.get("ThemeIsDel","\u8be5\u53d1\u5e03\u8bb0\u5f55\u7684\u6765\u6e90\u88ab\u5220\u9664")):q.publishInfoPerCheck==Z.PUBLISHINFO_NOEXIST?u($(document.body),"msg-warning",Q.get("publishInfoExist","\u53d1\u5e03\u8bb0\u5f55\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664")):
q.publishInfoPerCheck==Z.PERMISSION_CANCEL?u($(document.body),"msg-jurisdiction",Q.get("notAuthority","\u60a8\u6ca1\u6709\u8be5\u53d1\u5e03\u8bb0\u5f55\u7684\u67e5\u770b\u6743\u9650, \u8bf7\u8054\u7cfb\u53d1\u5e03\u4eba")+'"'+q.publishInfoUserName+'"'+Q.get("authority","\u6388\u6743")):q.publishInfoPerCheck==Z.PUBLSIHPLAN_DELETE&&u($(document.body),"msg-warning",Q.get("publishPlanExist","\u8be5\u5206\u6790\u65b9\u6848\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664"))}),G=new com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel;
G.setFId(ca.getCurrentSchemaId());G.setSchemaName(ca.getCurrentSchemaName());z.checkPublishInfoAndAuthority(n,G)}):b&&b(e)},y=function(){var b=x.getUrlParamUtil().getParamPathPrefix(),e=x.getUrlParamUtil().getParamTag();b=(b?b:"/ierp")+"/qing/schemaManage.do";var n=new com.kingdee.bos.qing.RemoteImpl;n.setRemoteUrl(b);n.setTag(e);return n},u=function(b,e,n){b=new ka;b.setOptionType(ka.OPTION_OK);b.setButtonText(ka.RETURN_OK,Q.get("ISee","\u6211\u77e5\u9053\u4e86"));var z={};z.text=n;z.iconName=e;
b.setMessage(z);b.setCustomPainter(function(G,q){var p=$("<div>");p.addClass("sa-ctrl-msgdlg-icon");la.background(p,q.iconName);var A=$("<div>");A.addClass("sa-ctrl-msgdlg-content");A.text(q.text);G.append(p);G.append(A)});b.showDialog(380,280)},B=function(b,e,n){M?e(M):(new com.kingdee.bos.qing.core.Facade(b,function(z){M=z;e(z)},n)).getMeta()},v=function(b){M=null;B(F.getRemoteImpl(),b)},E=function(){var b=x.getUrlParamUtil().getParamPathPrefix(),e=x.getUrlParamUtil().getParamTag();b=(b?b:"/ierp")+
"/qing/publishTo.do";var n=new com.kingdee.bos.qing.RemoteImpl;n.setRemoteUrl(b);n.setTag(e);return n},N=function(){var b=x.getUrlParamUtil().getParamPathPrefix(),e=U.getUrlParamValue(),n=x.getUrlParamUtil().getParamLanguage();b=(b?b:"/ierp")+"/index.html?userId=Guest&accountId=(accountId)&appNumber=qing&formId=qing_analysis_pub_email#/dform?appNumber=qing&formId=qing_analysis_pub_email&publishId=(publishId)";e&&(b=C.appendParamToUrl(b,"skin",e));n&&(b=C.appendParamToUrl(b,"language",n));return b},
P=function(){var b=x.getUrlParamUtil().getParamPathPrefix(),e=U.getUrlParamValue(),n=x.getUrlParamUtil().getParamLanguage();b=(b?b:"/ierp")+"/qing/publishedEmailEntrance.do?publishId=(publishId)&kdcdc=(accountId)";e&&(b=C.appendParamToUrl(b,"skin",e));n&&(b=C.appendParamToUrl(b,"language",n));return b},D=function(){return function(b,e,n){var z=com.kingdee.bos.qing.publish.model.PublishTargetType;if(n&&z.MOBILE==n){n=b.getPublishId();var G=b.getId();var q=b.getLappUserType()}else n=b.getId();z=x.getUrlParamUtil().getParamPathPrefix();
var p=U.getUrlParamValue(),A=x.getUrlParamUtil().getParamLanguage();z=C.appendParamToUrl((z?z:"/ierp")+"/qing/publishContentEditEntrance.do","skin",p);z=C.appendParamToUrl(z,"language",A);z=C.appendParamToUrl(z,"publishId",n);G&&(z=C.appendParamToUrl(z,"lappId",G));q&&(z=C.appendParamToUrl(z,"lappUserType",q));G=z;e&&(q="editPublishedContent-"+n,n=com.kingdee.bos.qing.publish.common.PublishSubscribeHelper,n.putSubscribe(q,e),z=C.appendParamToUrl(z,"subscribeKey",q),z=C.appendParamToUrl(z,"currentPageClientId",
n.getCurrentPageClientId()));X.openNewTab(Q.get("editPublishedContent","\u7f16\u8f91\u53d1\u5e03\u65b9\u6848-")+b.getName(),z,G)}},m=function(){return function(b){var e=x.getUrlParamUtil().getParamPathPrefix();e=(e?e:"/ierp")+"/qing/timedPushContentEditEntrance.do";var n=Q.get("editTimedPushContent","\u7f16\u8f91\u63a8\u9001\u65b9\u6848");if(b instanceof com.kingdee.bos.qing.timedpush.model.EmailConfig){var z=b.getId(),G=b.getPublishSourceType();q=b.getSchemaSourceType();e=C.appendParamToUrl(e,"configId",
z);e=C.appendParamToUrl(e,"publishSourceType",G);e=C.appendParamToUrl(e,"schemaType",q);e=C.appendParamToUrl(e,"pushTarget","email");n=n+"-"+b.getNameRule().getName();b.isSourceNameNotFound()&&(e=C.appendParamToUrl(e,"errorCode","2301001"))}else{z=b.getId();G=b.getPushTargetType();var q=b.getSchemaType();e=C.appendParamToUrl(e,"configId",z);e=C.appendParamToUrl(e,"pushTargetType",G);e=C.appendParamToUrl(e,"schemaType",q);e=C.appendParamToUrl(e,"pushTarget","lapp");n=n+"-"+b.getName();b.getSourceName()||
(e=C.appendParamToUrl(e,"errorCode","2301001"))}b=U.getUrlParamValue();q=x.getUrlParamUtil().getParamLanguage();b&&(e=C.appendParamToUrl(e,"skin",b));q&&(e=C.appendParamToUrl(e,"language",q));X.openNewTab(n,e)}},O=function(b,e){return Q.get(b,e)},V=function(){S||(S=new com.kingdee.bos.qing.ui.component.MessageCurtain,S.getJqUi().appendTo($(document.body)));return S};x.getMLS=O;x.importLinkage=function(b){b.pushSkinJs("linkage","skin");b.pushJs("linkage/linkage.js");b.pushSkinCss("linkage","linkage")};
x.importForSchema=function(b){b.pushSkinJs("schema-manage","skin-initialize");b.pushJs("schema-manage/schema-manage-initialize.js");b.pushI18n("schema-manage","schema-initialize");b.pushSkinCss("schema-manage","schema-manage");b.pushJs("schema-manage/schema-manage-ui.js");b.pushI18n("schema-manage","schema-ui")};x.importForPublish=function(b){b.pushJs("biz-common/qing-biz-common.js");b.pushSkinCss("biz-common","biz-common");b.pushSkinJs("biz-common","skin");b.pushI18n("biz-common","biz-common");b.pushSkinJs("imagelib",
"skin");b.pushSkinCss("imagelib","qing-imagelib");b.pushJs("imagelib/imagelib.js");b.pushI18n("imagelib","imagelib");b.pushJs("common/qing-schedule.js");b.pushI18n("common","qing-schedule");b.pushSkinCss("publish","qing-publish");b.pushSkinJs("publish","skin");b.pushI18n("publish","publish");b.pushJs("publish/qing-publish.js");b.pushSkinCss("timedpush","qing-timedpush");b.pushSkinJs("timedpush","skin");b.pushI18n("timedpush","timedpush");b.pushJs("timedpush/qing-timedpush.js");b.pushJs("lightapp/common/qing-lapp-env.js");
b.pushJs("timedpush/qing-timedpush-lapp.js");b.pushJs("timedpush/html2canvas.js")};x.importForMap=function(b){b.pushSkinJs("map-designer","integration-skin");b.pushJs("map-designer/map-integration.js");b.pushSkinCss("map-designer","map-integration");b.pushI18n("map-designer","map-integration")};x.hookLongerPublishTo=function(b,e,n,z,G,q){com.kingdee.bos.qing.publish.common.UserOperationReporter.hookCollector(function(K,fa,ba){com.kingdee.bos.qing.behavior.BehaviorManager.interestInBehavior(K,fa,0,
ba)});var p=com.kingdee.bos.qing.publish.model;e=p.PublishTargetType;p=com.kingdee.bos.qing.schemamanage.model;var A=p.SchemaAttrModel,H=function(K){var fa=com.kingdee.bos.qing.publish.common.PublishFactory,ba=K.getUserObject(),L=K.getText().replace("...",""),aa=l(b,n,A.SCHEMASOURCE_LONGER,z,G,q);g(n,ba,aa,"longer",J.ANALYSIS_PUBLISH,function(){var Y=fa.createPublishToDialog(L,E(),aa,ba,D());Y.setOuterMessageCurtain(V());Y.showDialog()})},r=com.kingdee.bos.qing.ui.component.MenuItemModel;p=new com.kingdee.bos.qing.ui.component.MenuModel;
var I=new r(function(K){d(H,K)});I.setUserObject(e.APPMENU);I.setText(O("toAppMenu","\u5e94\u7528\u83dc\u5355..."));p.addItemModel(I);I=new r(function(K){d(H,K)});I.setUserObject(e.CENTER);I.setText(O("toAnalysisCenter","\u6570\u636e\u5de5\u4f5c\u53f0\u9605\u89c8\u5939..."));p.addItemModel(I);I=new r(function(K){d(H,K)});I.setUserObject(e.MOBILE);I.setText(O("toMobile","\u79fb\u52a8\u8f7b\u5e94\u7528..."));p.addItemModel(I);h();t();var ea=function(){var K=com.kingdee.bos.qing.publish.common.PublishManagerDialog,
fa=l(b,n,com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel.SCHEMASOURCE_LONGER);(new K(E(),fa,D())).showDialog()};I=new r(function(K){d(ea,K)});I.setUserObject();I.setText(O("publishManager","\u53d1\u5e03\u7ba1\u7406")+"...");p.addItemModel(I);e=O("publishTo","\u53d1\u5e03\u5230");return b.getConductor().appendToolbarMenu(p,"publish_to",e)};x.hookSquarePublishTo=function(b,e,n){com.kingdee.bos.qing.publish.common.UserOperationReporter.hookCollector(function(H,r,I){com.kingdee.bos.qing.behavior.BehaviorManager.interestInBehavior(H,
r,0,I)});var z=com.kingdee.bos.qing.publish.model;e=z.PublishTargetType;z=com.kingdee.bos.qing.schemamanage.model;var G=z.SchemaAttrModel,q=function(H){var r=com.kingdee.bos.qing.publish.common.PublishFactory,I=H.getUserObject(),ea=H.getText().replace("...",""),K=l(b,n,G.SCHEMASOURCE_SQUARE);g(n,I,K,"square",J.CARD_PUBLISH,function(){var fa=r.createPublishToDialog(ea,E(),K,I,D());fa.setOuterMessageCurtain(V());fa.showDialog()})},p=com.kingdee.bos.qing.ui.component.MenuItemModel;z=new com.kingdee.bos.qing.ui.component.MenuModel;
var A=new p(q);A.setUserObject(e.CARD_REPOSITORY);A.setText(O("toCardRepository","\u5361\u7247\u5e93..."));z.addItemModel(A);q=new p(q);q.setText(O("toMobile","\u79fb\u52a8\u8f7b\u5e94\u7528..."));q.setUserObject(e.MOBILE);z.addItemModel(q);h();t();A=new p(function(){var H=com.kingdee.bos.qing.publish.common.PublishManagerDialog,r=l(b,n,com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel.SCHEMASOURCE_SQUARE);(new H(E(),r,D())).showDialog()});A.setUserObject();A.setText(O("publishManager","\u53d1\u5e03\u7ba1\u7406")+
"...");z.addItemModel(A);e=O("publishTo","\u53d1\u5e03\u5230");return b.getConductor().appendToolbarMenu(z,"publish_to",e)};x.hookPublishManager=function(b,e,n){var z=O("publishManager","\u53d1\u5e03\u7ba1\u7406");return b.getConductor().appendToolbarButton(function(){var G=com.kingdee.bos.qing.publish.common.PublishManagerDialog,q=l(b,e,n);(new G(E(),q,D())).showDialog()},"publish_manager",z)};x.hookCloseTab=function(b){var e=O("closeTab","\u9000\u51fa");return b.getConductor().appendToolbarButton(function(){b.getConductor().isDirty()?
ma.showConfirmExitDialog():X.closeCurrentTab()},"error_close",e)};x.hookShareTo=function(b,e,n,z,G){com.kingdee.bos.qing.publish.common.UserOperationReporter.hookCollector(function(L,aa,Y){com.kingdee.bos.qing.behavior.BehaviorManager.interestInBehavior(L,aa,0,Y)});var q=function(L){L=O("yzjCommunicate","\u4e91\u4e4b\u5bb6\u6c9f\u901a...").replace("...","");var aa=l(b,z,e);L=com.kingdee.bos.qing.timedpush.PublishToYunzhijiaDialogFactory.createDialog(L,E(),aa);L.setOuterMessageCurtain(V());L.showDialog()},
p=function(L){L=com.kingdee.bos.qing.CodeLoader.createSafety();L.pushJs("yzj-web/qingjs.js");L.pushJs("yzj-web/imcloud.js");L.pushJs("yzj-web/imsdkerp.js");L.pushJs("yzj-web/imShare.js");L.pushSkinCss("yzj-web","imcloud");L.pushSkinCss("yzj-web","imsdk");L.pushSkinCss("yzj-web","imsdkerp");L.load(function(){})};n=new da;(new ia(function(L){window.beLoadedImCloud?q(L):p(L)})).setText(O("yzjCommunicate","\u4e91\u4e4b\u5bb6\u6c9f\u901a..."));var A=com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel,
H=F.protectedHaveToCarryData(),r;com.kingdee.bos.qing&&com.kingdee.bos.qing.prepare&&com.kingdee.bos.qing.prepare.DataSourceInfoContext&&(r=com.kingdee.bos.qing.prepare.DataSourceInfoContext.getCurrentDataSourceInfo());r=r&&r.hasDirectModeTable();var I=com.kingdee.bos.qing.publish.model.PublishTargetType;if(!r&&!H&&e==A.SCHEMASOURCE_LONGER){var ea=function(L){var aa=L.getText().replace("...",""),Y=l(b,z,e,G);g(z,I.EMAIL,Y,"longer",J.ANALYSIS_TIMEPUSH,function(){var ha=new com.kingdee.bos.qing.timedpush.EmailPublishConfigDialog(aa,
E(),Y,N(),P(),m(),b);ha.setOuterMessageCurtain(V());ha.showDialog()})},K=new ia(function(L){d(ea,L)});K.setText(O("emailSchedulePush","\u90ae\u4ef6\u5b9a\u65f6\u63a8\u9001..."));n.addItemModel(K)}if(!r&&!H){var fa=function(L){var aa=l(b,z,e,G),Y="longer",ha=J.ANALYSIS_TIMEPUSH;e==A.SCHEMASOURCE_SQUARE&&(Y="square",ha=J.CARD_TIMEPUSH);g(z,I.EMAIL,aa,Y,ha,function(){var oa=new com.kingdee.bos.qing.timedpush.LappSchedulePush,pa=L.getText().replace("...","");oa.createDialog(pa,E(),aa,m(),b)})};H=new ia(function(L){d(fa,
L)});H.setText(O("mobileSchedulePush","\u79fb\u52a8\u7aef\u5b9a\u65f6\u63a8\u9001")+"...");n.addItemModel(H)}var ba=function(){var L=com.kingdee.bos.qing.publish.common.PushManager,aa=l(b,z,e);L=new L(m());var Y=com.kingdee.bos.qing.timedpush;L.registerEmailPushPanelConstructor(Y.EmailConfigManagePanel);L.initEmailPushConfig(E(),N(),P());L.registerLappPushPanelConstructor(Y.LappPushManagePanel);L.initLappPushConfig(function(ha,oa,pa){return com.kingdee.bos.qing.publish.common.PublishFactory.createPublishFacade(com.kingdee.bos.qing.publish.model.PublishTargetType.MOBILE,
E(),ha,oa,pa)},aa);L.showDialog()};H=new ia(function(L){d(ba,L)});H.setUserObject();H.setText(O("pushManager","\u5b9a\u65f6\u63a8\u9001\u7ba1\u7406")+"...");n.addItemModel(H);n=b.getConductor().appendToolbarMenu(n,"btn_communicate",O("timedPush","\u5b9a\u65f6\u63a8\u9001"));n.addActionListener(function(){window.beLoadedImCloud||(window.funCallback=q)});return n};x.initDesigntimeLinkage=function(){var b=x.getUrlParamUtil().getParamPathPrefix(),e=(b?b:"/ierp")+"/qing/linkage.do",n=com.kingdee.bos.qing.integration.LinkageJumper;
b=new com.kingdee.bos.qing.linkage.LinkageManage;b.initDesigntime(e,n.jump);e=x.getUrlParamUtil().getParamTag();b.setCurrentLinkageTag(e)};x.loadMeta=B;x.reloadMeta=v;x.hookRefresh=function(b,e){var n=x.getMLS("refresh","\u6570\u636e\u66f4\u65b0"),z=function(){e.restart();e.setExtractDataFinishedSuccessCallback(function(G){G||c(M)?v(function(q){var p=b.getJsonModelBook();b.prepareMeta(q);b.setJsonModelBook(p)}):b.reExecute()})};return b.getConductor().appendToolbarButton(function(){d(z)},"btn_reset",
n)};x.getMessageCurtain=V;x.hookSetCurrentTabStatus=function(b){b.getConductor().setDirtyListener(function(e){ma.setTabStatus(e)})};x.loadPublishOperList=function(b,e,n,z,G){T?n(T):(new com.kingdee.bos.qing.publish.common.PublishFacade(E(),function(q){T=q;n(T)},G)).loadPublishOperList(b,e,z)};x.loadPublishOperModel=function(b,e,n,z){T?n(T):(new com.kingdee.bos.qing.publish.common.PublishFacade(E(),function(G){T=G.noOperValueMap;n(T)},z)).loadPublishOperModel(b,e)};x.registMapMapLibrary=function(b){com.kingdee.bos.qing.map.common.Integration.setRemoteUrl(b+
"/qing/mapManage.do");var e=new com.kingdee.bos.qing.map.integration.MapSelectorDialog;com.kingdee.bos.qing.core.MapLibraryRegister.registerTemplateSelector(function(n,z){e.setParamPathPrefix(b);e.showDialog(n,z)})}}"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.scene&&(com.kingdee.bos.qing.scene=
{});"undefined"==typeof com.kingdee.bos.qing.scene.common&&(com.kingdee.bos.qing.scene.common={});"undefined"==typeof com.kingdee.bos.qing.scene.common.designer&&(com.kingdee.bos.qing.scene.common.designer={});var ja=com.kingdee.bos.qing.scene.common.designer,U,na,R,ka,la,C,Q,X,da,ia,ma,w;(function(){var F=com.kingdee.bos.qing;U=F.SkinUtil;na=F.AbstractDesignerScene;R=F.CodeLoader;w=F.Seer;F=com.kingdee.bos.qing.common;C=F.Util;F=com.kingdee.bos.qing.framework.common;Q=F.MultilanguageManager.createPackageAccessor(com.kingdee.bos.qing.scene);
X=F.TabbedUiUtil;F=com.kingdee.bos.qing.ui.component;da=F.MenuModel;ia=F.MenuItemModel;ka=F.MessageDialog;la=F.Icons;F=com.kingdee.bos.qing.integration;ma=F.TabStatusHelper})();ja.AbstractDesignerSceneImpl=Z;ja.LongerDesignerOperationJudgerModel=function(F){com.kingdee.bos.qing.core.LongerDesignerOperationJudger.call(this);F&&0!=F&&(this.protectedParseDesignable=function(){return 0==(F&J.ANALYSIS_EDITABLE)},this.protectedParseDataDetailReadable=function(){return 0==(F&J.ANALYSIS_DETAIL)},this.protectedParseExportable=
function(){return 0==(F&J.ANALYSIS_EXPORT)},this.protectedParsePrintable=function(){return 0==(F&J.ANALYSIS_PRINT)},this.protectedParsePublishable=function(){return 0==(F&J.ANALYSIS_PUBLISH)},this.protectedParseTimingPushable=function(){return 0==(F&J.ANALYSIS_TIMEPUSH)})};ja.SquareDesignerOperationJudgerModel=function(F){com.kingdee.bos.qing.core.SquareDesignerOperationJudger.call(this);F&&0!=F&&(this.protectedParsePublishable=function(){return 0==(F&J.CARD_PUBLISH)},this.protectedParseTimingPushable=
function(){return 0==(F&J.CARD_TIMEPUSH)})};var J={};ja.OperCodeType=J;J.ANALYSIS_EDITABLE=2;J.ANALYSIS_EXPORT=4;J.ANALYSIS_PRINT=8;J.ANALYSIS_PUBLISH=16;J.ANALYSIS_TIMEPUSH=32;J.ANALYSIS_DETAIL=64;J.CARD_PUBLISH=256;J.CARD_TIMEPUSH=512;J.ENTRY_ANALYSIS=1;J.ENTRY_SQUARE=128;Z.THEME_IS_DEL="Theme is Delete";Z.PUBLISHINFO_PERMISSION_PUBLISHPLAN_EXIST="success";Z.PUBLISHINFO_NOEXIST="PublishInfo Not Exist";Z.PERMISSION_CANCEL="Not Permission";Z.PUBLSIHPLAN_DELETE="Publish Not Exist"})();(function(){function Z(){ja.call(this)}function ja(){var a,f=this,k,g,h,t,l,c,d=com.kingdee.bos.qing.common.Util;this.show=function(B){y().appendTo(B);c||(c=$("<div>"),M.layoutCtrlWithLRTB(c,0,0,null,0,0,null),c.css({"z-index":"-1",background:"#fff"}));c.appendTo(B)};var y=function(){a||(a=$("<div class='sa-qing-publish-card-main'>"),h=$("<div class='sa-qing-publish-card-head'>"),(k=d.decodeParamFromUrl(location.search,"cardName"))||(k=" "),g=$("<div class='sa-qing-publish-card-title sa-qing-publish-fontfamily'>"),
k=com.kingdee.bos.qing.common.Base64Util.decode(k),g.text(k),g.attr("title",k),g.appendTo(h),t=$("<div>"),t.addClass("sa-qing-publish-card-content"),t.appendTo(a),f.protectedCustomContent(t),f.protectedCustomHead(h),h.appendTo(a));return a};this.protectedCustomHead=function(B){};this.protectedCustomContent=function(B){};var u=function(B,v,E){return d.appendParamToUrl(B,v,E)};this.protectedMethod={getTitleUi:function(){return g},getTitle:function(){return k},getContentUi:function(){return t},getUrlParam:function(B){return d.decodeParamFromUrl(location.search,
B)},appendUrlParam:u,appendAccountIdParam:function(B){var v=T.getUrlParamValue("kdcdc");v&&(B=u(B,"kdcdc",v));return B},getMainUi:y,appendOperateBtnUI:function(B){for(var v=5,E=0,N=B.length;E<N;E++)B[E].css({position:"absolute",top:"5px",right:v+"px"}),v+=35,h.append(B[E])},insertOperateBtnUI:function(B){for(var v=0,E=B.length;v<E;v++)B[v].css({position:"relative","margin-right":"10px",display:"inline-block"}),B[v].insertBefore(g)},insertExtraOperateBtn:function(B){if(!l){l=$("<div>");a.append(l);
var v=h.height();M.layoutCtrlWithLRTB(l,0,0,null,v,null,44);l.hide()}v=20;for(var E=0,N=B.length;E<N;E++){var P=B[E].getJqUi();M.layoutCtrlWithLRTB(P,null,v,80,0,null,16);M.layoutCtrlMiddleAlign(P,16);l.append(P);P=$("<div>");P.addClass("sa-qing-publish-card-extraicon-border");l.append(P);M.layoutCtrlWithLRTB(P,null,v,0,0,null,24);M.layoutCtrlMiddleAlign(P,24);v+=90}},showExtraOperateContainer:function(){if(l){l.show();var B=l[0].offsetTop,v=l.height();t.css("top",B+v+"px");$(window).trigger("resize")}},
hideExtraOperateContainer:function(){l&&(t.css("top",h.height()+"px"),l.hide(),$(window).trigger("resize"))}}}function U(a,f,k){var g=a,h=f,t,l,c;this.getJqUi=function(){t||(t=$("<div>"),l=$("<div>"),l.addClass("sa-qing-publish-card-icon"),w.Icons.background(l,h),c=$("<div>"),c.addClass("sa-qing-publish-card-extraicon-text"),c.text(g),M.layoutCtrl(l,0,0,16,16),M.layoutCtrl(c,21,0,60,16),t.append(l),t.append(c),t.on("click",k));return t};this.changeIcon=function(d){h=d;w.Icons.background(l,h)};this.changeName=
function(d){g=d;c.text(g)}}function na(){ja.call(this);var a=this.protectedMethod,f=this,k,g=new C;this.protectedCustomContent=function(c){k=new da;k.setSchemaLoadCallback(t);k.show(c)};this.protectedCustomHead=function(c){h()};this.protectedOpenSquare=function(){throw Error("override me");};this.protectedOpenAnalysis=function(){throw Error("override me");};this.protectedGetRefreshUrl=function(){throw Error("override me");};var h=function(){var c=$("<div class='sa-qing-publish-card-icon'>"),d=$("<div class='sa-qing-publish-card-icon'>"),
y=$("<div class = 'sa-qing-publish-card-icon'>"),u=$("<div class= 'sa-qing-publish-card-icon'>");d.on("click",function(){var v=a.getMainUi();k.checkOperatePermAndPrompt(v,da.PERM_TYPE_ENTER_SQUARE)&&f.protectedOpenSquare()});w.Icons.background(d,"btn-edit");d.on("mouseover",function(v){w.Icons.background(d,"btn-edit-on")});d.on("mouseout",function(v){w.Icons.background(d,"btn-edit")});d.attr("title",x.get("enterEdit","\u8fdb\u5165\u8bbe\u8ba1\u5668"));c.on("click",function(){var v=a.getMainUi();k.checkOperatePermAndPrompt(v,
da.PERM_TYPE_ENTER_ANALYSIS)&&f.protectedOpenAnalysis()});w.Icons.background(c,"btn-analysis");c.on("mouseover",function(v){w.Icons.background(c,"btn-analysis-on")});c.on("mouseout",function(v){w.Icons.background(c,"btn-analysis")});c.attr("title",x.get("enterAnalysis","\u8fdb\u5165\u201c\u6570\u636e\u5206\u6790\u201d"));y.on("click",l);w.Icons.background(y,"btn-refresh");y.on("mouseover",function(v){w.Icons.background(y,"btn-refresh-on")});y.on("mouseout",function(v){w.Icons.background(y,"btn-refresh")});
y.attr("title",x.get("cardRefresh","\u5237\u65b0"));u.on("click",function(){k.showExtraFilter(a.getMainUi())});w.Icons.background(u,"btn-filter");u.on("mouseover",function(v){w.Icons.background(u,"btn-filter-on")});u.on("mouseout",function(v){w.Icons.background(u,"btn-filter")});u.attr("title",x.get("cardFilter","\u8fc7\u6ee4\u6761\u4ef6"));u.hide();g.addIconUi(d);g.addIconUi(c);g.addIconUi(y);var B=g.getJqUi();g.hide();$(document.body).on("mouseenter",function(){u.show();g.show()});$(document.body).on("mouseleave",
function(){u.hide();g.hide()});a.appendOperateBtnUI([B,u])},t=function(){var c=new ma;c.setDesc(k.getDescription());c.show(a.getMainUi(),a.getTitleUi())},l=function(){var c=f.protectedGetRefreshUrl();window.location.href=c};this.protectedMethod.reExcuteCard=l;this.protectedMethod.applyExternalFilter=function(c){k&&k.applyExternalFilter(c.getExternalFilterItem())};this.protectedMethod.setFilteringListener=function(c){k&&k.setFilteringListener(c)}}function R(){ja.call(this);var a=this.protectedMethod,
f;this.protectedCustomContent=function(h){f||(f=new ia,f.setSchemaLoadCallback(k),f.setDrawLegendCallback(function(){h.css("bottom","42px")}));f.show(h)};var k=function(){g()},g=function(){var h=new ma;h.setDesc(f.getDescription());h.setShowOnlyMouseOn(!1);h.show(a.getMainUi(),a.getTitleUi());$(document.body).on("touchmove scroll",function(){h.hideTips()})};this.protectedMethod.getSquareExhibition=function(){return f}}function ka(){na.call(this);var a=this.protectedMethod;this.protectedOpenSquare=
function(){var f=a.getUrlParam("pageId");if(top.window.invokeCustomEvent){var k={tag:a.getUrlParam("tag"),cardName:a.getTitle()};top.window.invokeCustomEvent(f,"",["QingCard","openSquare",JSON.stringify(k)])}};this.protectedOpenAnalysis=function(){var f=a.getUrlParam("pageId");if(top.window.invokeCustomEvent){var k={tag:a.getUrlParam("tag"),cardName:a.getTitle()};top.window.invokeCustomEvent(f,"",["QingCard","openAnalysis",JSON.stringify(k)])}};this.protectedGetRefreshUrl=function(){var f=a.getUrlParam("pageId"),
k=a.getUrlParam("skin"),g=a.getUrlParam("language"),h=a.getTitle(),t=a.getUrlParam("schemaAdditionalTag"),l=a.getUrlParam("bizTag"),c=a.getUrlParam("path");c=a.appendAccountIdParam((c?c:"/ierp")+"/qing/cardEntrance.do");l&&(c=a.appendUrlParam(c,"publishId",l));t&&(c=a.appendUrlParam(c,"cardId",t));h&&(c=a.appendUrlParam(c,"cardName",h));f&&(c=a.appendUrlParam(c,"pageId",f));k&&(c=a.appendUrlParam(c,"skin",k));g&&(c=a.appendUrlParam(c,"language",g));return c}}function la(a,f,k,g){J.call(this,a,f,k,
g);var h=this.protectedMethod;this.loadSquareSchema=function(t,l,c){h.remote("loadSquareSchema",{publishId:t,bizTag:l,schemaAdditionalTag:c})};this.loadSquareSchemaWithOper=function(t,l,c){h.remote("loadSquareSchemaWithOper",{publishId:t,bizTag:l,schemaAdditionalTag:c})};this.loadNocodeCardSchema=function(t){h.remote("loadNocodeCardSchema",{cardId:t})}}function C(){var a,f=[],k,g,h;this.setParent=function(d){h=d};this.getJqUi=function(){a=$("<div class='sa-qing-publish-card-showmoreicon'>");a.on("click",
t);w.Icons.background(a,"btn-more");a.on("mouseover",function(d){w.Icons.background(a,"btn-more-on")});a.on("mouseout",function(d){w.Icons.background(a,"btn-more")});a.attr("title",x.get("cardMoreOperate","\u66f4\u591a"));return a};this.addIconUi=function(d){f.push(d)};this.show=function(){a&&a.show()};this.hide=function(){a&&a.hide();l()};var t=function(){if(k)k.is(":hidden")?k&&(k.show(),g.show()):l();else{k=$("<div class='sa-qing-publish-card-iconcontainer'>");for(var d=0,y=f.length;d<y;d++){var u=
f[d];u.addClass("sa-qing-public-card-iconimplicit");k.append(u)}d=a.position().top;y=a.height();k.css({top:y+d+12+"px",right:0});h?k.appendTo(h):k.appendTo($(document.body));c();$(document.body).on("click",function(B){$(B.target).hasClass("sa-qing-publish-card-showmoreicon")||l()})}},l=function(){k&&(k.hide(),g.hide())},c=function(){var d=11*Math.pow(2,.5),y=a.position().left+a.width()/2,u=k.position(),B=u.left,v=u.top,E=k.width();u=d/2;y=Math.min(y-d/2,B+E-d);g=$("<div class='sa-qing-public-card-container'>");
B=v-(parseInt(9/Math.pow(2,.5))+1);g.css({width:d+"px",height:u+"px",top:B+"px",left:y+"px"});d=$("<div class='sa-qing-public-card-arrow'>");d.css({width:"9px",height:"9px",top:u-4.5-1+"px",left:"50%","margin-left":"-4.5px"});d.appendTo(g);h?g.appendTo(h):g.appendTo($(document.body))}}function Q(){F.call(this);var a;this.getRemoteUrl=function(f){return a};this.setRemoteUrl=function(f){a=f}}function X(){com.kingdee.bos.qing.AbstractSquareIframeScene.call(this);var a=this,f=this.protectedMethod,k,g,
h;this.setSchemaContent=function(d){k=d};this.setSchemaLoadCallback=function(d){h=d};this.applyExternalFilter=function(d){var y=f.copyFilters();if(y&&d)for(var u=d.getFieldName(),B=0;B<y.length;B++){var v=y[B];if(v.getAssociatedField().getText()==u){t(y,v,d);break}}};this.hasShowFilter=function(){try{var d=f.copyFilters()}catch(B){return!1}if(0==d.length)return!1;for(var y=!1,u=0;u<d.length;u++)if(d[u].isOnShow()){y=!0;break}return y};var t=function(d,y,u){y.getPreparedModel()?l(d,y,u):f.updateFilterPreparedValue(d,
y,function(B){B&&l(d,y,u)})},l=function(d,y,u){ca.applyFilter(y,u);f.filtering(d)};this.protectedLoadingImpl=function(d){k?(d(k),h&&h()):c(function(){d(k);h&&h()})};this.protectedGetRemoteUrl=function(){var d=a.getUrlParam("path");return(d?d:"/ierp")+"/qing/core.do"};this.protectedShowErrorImpl=function(d,y,u,B){g||(g=new com.kingdee.bos.qing.scene.common.square.exhibition.CardErrorUi(d),g.setShowDetail(!0));g.show(y,u,B);return!0};var c=function(d){a.protectedGetSchemaContent(function(y){k=y.schemaContentVo.schemaContent;
d()},function(y,u,B){a.displayError(y,u,B)})};this.protectedGetSchemaContent=function(d,y){}}function da(){X.call(this);var a=this,f,k,g,h;this.protectedImportMoreCode=function(t){t.loadSkinJs("linkage","skin");t.loadJs("linkage/linkage.js");t.loadSkinCss("linkage","linkage")};this.checkOperatePermAndPrompt=function(t,l){if(!h)return!0;var c=!0;if(l==da.PERM_TYPE_ENTER_ANALYSIS){if(0!=(h&1)){c=!1;var d=x.get("enterAnalysis","\u8fdb\u5165\u201c\u6570\u636e\u5206\u6790\u201d")}}else if(l==da.PERM_TYPE_ENTER_SQUARE)0!=
(h&128)&&(c=!1,d=x.get("enterEdit","\u8fdb\u5165\u8bbe\u8ba1\u5668"));else throw Error("unknown permType");c||(l=x.get("cardEditUnaccessable","\u60a8\u6ca1\u6709#1\u7684\u6743\u9650").replace("#1",d),a.displayActionPrompt(t,l));return c};this.protectedCustomInitEnv=function(){k=a.getUrlParam("bizTag");g=a.getUrlParam("schemaAdditionalTag");f=a.getUrlParam("publishId");var t=a.getUrlParam("path");t=(t?t:"/ierp")+"/qing/linkage.do";var l=new com.kingdee.bos.qing.linkage.LinkageManage;l.setCurrentLinkageTag(a.getUrlParam("tag"));
l.initRuntime(t,com.kingdee.bos.qing.integration.LinkageJumper.jump);t=com.kingdee.bos.qing.behavior.BehaviorManager;t.interestInBehaviorEntrance(t.ENTRANCE_CARD);com.kingdee.bos.qing.integration.ImglibUrlParser.hookUrlParser()};this.protectedGetSchemaContent=function(t,l){var c=new Q,d=a.getUrlParam("path");c.setRemoteUrl((d?d:"/ierp")+"/qing/card.do");(new la(c,function(y){h=y.operation["2"]|y.operation["1"];t(y)},l)).loadSquareSchemaWithOper(f,k,g)}}function ia(){com.kingdee.bos.qing.AbstractSquareIframeScene.call(this);
var a=this,f=this.protectedMethod,k,g,h,t,l,c,d,y,u;this.protectedImportMoreCode=function(v){v.loadSkinJs("lightapp/common","skin");v.loadCss("lightapp/common/qing-lapp.css")};this.setDrawLegendCallback=function(v){d=v};this.setCloseFilterCallback=function(v){u&&u.setClosedListener(v)};this.hasFilter=function(){return u?u.hasFilters():!1};this.getFilterUi=function(){return u&&u.hasFilters()?u.getJqUi():$("<div>")};this.updateFilterUi=function(){u&&u.updateUi()};this.protectedCustomInitEnv=function(){h=
a.getUrlParam("path");t=a.getUrlParam("bizTag");l=a.getUrlParam("publishId");c=new Q;c.setRemoteUrl((h?h:"/ierp")+"/qing/card.do");var v=com.kingdee.bos.qing.behavior.BehaviorManager;v.interestInBehaviorEntrance(v.ENTRANCE_CARD)};this.protectedDrawCustomLegend=function(v,E){com.kingdee.bos.qing.chart.SquareConfig.COMBO_LEGEND_MODE=!1;v!=com.kingdee.bos.qing.square.model.SquareModel.ChartType_GIS&&(v=(new com.kingdee.bos.qing.lapp.ui.LappSquareLegendRender).createLegendUi(v,E))&&(v.appendTo($(document.body)),
d())};this.setSchemaLoadCallback=function(v){y=v};this.protectedLoadingImpl=function(v){g?(v(g),y&&y()):B(function(){v(g);y&&y();u||(u=new com.kingdee.bos.qing.lapp.ui.LappFilter(f.copyFilters,f.updateFilterPreparedValue,f.filtering))})};this.protectedGetRemoteUrl=function(){return(h?h:"/ierp")+"/qing/core.do"};this.protectedShowErrorImpl=function(v,E,N,P){k||(k=new com.kingdee.bos.qing.scene.common.square.exhibition.CardErrorUi(v),k.setShowDetail(!0));k.show(E,N,P);return!0};var B=function(v){(new la(c,
function(E){g=E.schemaContent;v()},function(E,N,P){a.displayError(E,N,P)})).loadSquareSchema(l,t)}}function ma(){var a,f,k,g,h,t=!0,l;this.setDesc=function(u){a=u};this.show=function(u,B){f=u;k=B;c()};this.hideTips=function(){g&&g.removeTips()};this.setShowOnlyMouseOn=function(u){t=u};var c=function(){d();l||(l=new com.kingdee.bos.qing.framework.common.WindowResizeObserver,l.setDelay(100),l.setCallback(function(){d()}),l.observe())},d=function(){var u=function(){var B=k.width(),v=k.text();if(0==B)setTimeout(u,
100);else{var E=k.height(),N=k.position(),P=N.top;N=N.left;v=y(v,k.css("font-size"));B=N+Math.min(B,v)+5;E=P+(E-16)/2;a&&(h||(g=new W,g.setIconType(W.ICON_TYPE_QUESTION),g.setContainer(f),g.setTipsText(a),h=g.getJqUi(),h.appendTo(f),t&&(h.hide(),$(document.body).on("mouseenter",function(){h.show()}),$(document.body).on("mouseleave",function(){h.hide()}))),h.css({position:"absolute",left:B+"px",top:E+"px"}))}};u()},y=function(u,B){B||(B="12px");var v=$("<div>");v.css({position:"absolute","font-size":B,
visibility:"hidden",height:"auto",width:"auto","white-space":"nowrap"});v.appendTo($(document.body));v.text(u);u=v.outerWidth();v.remove();return u}}"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.scene&&(com.kingdee.bos.qing.scene={});"undefined"==typeof com.kingdee.bos.qing.scene.cardExhibition&&
(com.kingdee.bos.qing.scene.cardExhibition={});var w=com.kingdee.bos.qing.scene.cardExhibition;w.DSBCardContainer=function(){ja.call(this);var a=this.protectedMethod,f;this.protectedCustomContent=function(g){if(!f){var h=a.getUrlParam("pageId"),t=a.getUrlParam("skin"),l=a.getUrlParam("language"),c=a.getUrlParam("publishId"),d=a.getUrlParam("path");d=(d?d:"/ierp")+"/qing/publishEntrance.do";c&&(d=a.appendUrlParam(d,"publishId",c));h&&(d=a.appendUrlParam(d,"pageId",h));t&&(d=a.appendUrlParam(d,"skin",
t));l&&(d=a.appendUrlParam(d,"language",l));d=com.kingdee.bos.qing.integration.PageHelper.getIframeUrl(d);f=$("<iframe>");f.css({position:"absolute",left:0,top:0,height:"100%",width:"100%",border:"none"});f.attr("allowfullscreen","true");f.attr("src",d)}f.appendTo(g)};this.protectedCustomHead=function(g){var h=$("<div class = 'sa-qing-publish-card-icon'>");h.css({position:"absolute",right:0,top:"5px"});h.on("click",k);w.Icons.background(h,"btn-refresh");h.on("mouseover",function(t){w.Icons.background(h,
"btn-refresh-on")});h.on("mouseout",function(t){w.Icons.background(h,"btn-refresh")});h.attr("title",x.get("cardRefresh","\u5237\u65b0"));$(document.body).on("mouseenter",function(){h.show()});$(document.body).on("mouseleave",function(){h.hide()});h.appendTo(g);h.hide()};var k=function(){var g=a.getUrlParam("pageId"),h=a.getUrlParam("skin"),t=a.getUrlParam("language"),l=a.getTitle(),c=a.getUrlParam("publishId"),d=a.getUrlParam("path");d=a.appendAccountIdParam((d?d:"/ierp")+"/qing/cardEntrance.do");
c&&(d=a.appendUrlParam(d,"publishId",c));l&&(d=a.appendUrlParam(d,"cardName",l));g&&(d=a.appendUrlParam(d,"pageId",g));h&&(d=a.appendUrlParam(d,"skin",h));t&&(d=a.appendUrlParam(d,"language",t));window.location.href=d}};w.RemoteImpl=Q;w.AbstractDesktopExhibition=X;w.IconContainer=C;w.CardFacade=la;var J,F,x,M,S,W,T;(function(){var a=com.kingdee.bos.qing;T=a.Seer;a=com.kingdee.bos.qing.framework.common;J=a.AbstractFacade;F=a.AbstractRemoteCall;x=a.MultilanguageManager.createPackageAccessor(com.kingdee.bos.qing.scene);
S=a.AbstractIcons;a=com.kingdee.bos.qing.ui.component;W=a.HelpIcon;a=com.kingdee.bos.qing.common;M=a.DomUtil})();w.CardContainerFactory=new function(){var a={};this.getCardContainer=function(f){return(f=a[f])?new f:new ka};this.getCardErrContainer=function(){return new Z};this.regist=function(f,k){a[f]=k}};w.CardContainerFactory.regist("mobileCtrl_FullScreen",function(){R.call(this);var a=this.protectedMethod,f,k,g,h,t;this.protectedCustomHead=function(N){f||(f=$("<div class='sa-qing-publish-card-icon'>"),
f.on("click",l),w.Icons.background(f,"btn-back"),a.insertOperateBtnUI([f]));f.show();k||(k=$("<div class='sa-qing-publish-card-icon'>"),k.on("click",d),w.Icons.background(k,"btn-list"),a.appendOperateBtnUI([k]));k.show()};var l=function(){var N=a.getUrlParam("pageId");top.window.invokeCustomEvent&&top.window.invokeCustomEvent(N,"",["","closeView",JSON.stringify({})])},c=!1,d=function(){if(c)a.hideExtraOperateContainer(),E(),c=!1;else{if(!g){var N=[];a.getSquareExhibition().hasFilter()&&(h=new U(x.get("lappFilter",
"\u8fc7\u6ee4"),"lapp-filter",v),N.push(h));g=new U(x.get("landscapeBtn","\u6a2a\u5c4f"),"btn-horizontal",u);N.push(g);a.insertExtraOperateBtn(N)}a.showExtraOperateContainer();c=!0}},y=!1,u=function(){if(y)try{var N=window.screen.orientation;N&&(N.lock("portrait-primary"),g&&(g.changeName(x.get("landscapeBtn","\u6a2a\u5c4f")),g.changeIcon("btn-horizontal")),$(window).trigger("resize"),y=!1)}catch(D){}else try{var P=window.screen.orientation;P&&(P.lock("landscape-primary"),g.changeName(x.get("verticalScreenBtn"),
"\u7ad6\u5c4f"),g.changeIcon("btn-vertical"),$(window).trigger("resize"),y=!0)}catch(D){}},B=!1,v=function(){if(B)E();else{h.changeIcon("lapp-filter-on");var N=a.getSquareExhibition().getFilterUi();t||(t=$("<div>"),t.append(N),t.appendTo(a.getContentUi()));N.show();M.layoutCtrlWithLRTB(t,0,0,null,0,44,null);a.getSquareExhibition().updateFilterUi();t.show();B=!0}},E=function(){t&&t.hide();h&&h.changeIcon("lapp-filter");B=!1}});w.CardContainerFactory.regist("mobileCtrl",function(){R.call(this);var a=
this.protectedMethod,f,k,g,h,t,l,c,d;this.protectedCustomHead=function(e){f=$("<div class = 'sa-qing-publish-card-icon'>");f.on("click",B);w.Icons.background(f,"btn-refresh");f.attr("title",x.get("cardRefresh","\u5237\u65b0"));k=$("<div class = 'sa-qing-publish-card-icon'>");k.on("click",y);w.Icons.background(k,"btn-fullscreen");k.attr("title",x.get("fullScreenBtn","\u5168\u5c4f"));a.appendOperateBtnUI([k,f])};var y=function(){if(document.body.requestFullScreen||document.body.webkitRequestFullScreen||
document.body.msRequestFullscreen||document.body.mozRequestFullScreen)d||(d=com.kingdee.bos.qing.common.FullScreenHelper,d.addChangedListener(u)),d.request(document.body);else{var e=a.getUrlParam("pageId");if(top.window.invokeCustomEvent){var n={tag:a.getUrlParam("tag"),ctrlName:a.getUrlParam("ctrlName"),ctrlRefId:a.getUrlParam("ctrlRefId"),hasCustomSchema:a.getUrlParam("hasCustomSchema")};top.window.invokeCustomEvent(e,"",["","openFullScreenForm",JSON.stringify(n)])}}},u=function(e){null==e?v():
e==document.body&&(a.getMainUi().css("top","44px"),f.hide(),k.hide(),g||(g=$("<div class='sa-qing-publish-card-icon'>"),g.on("click",v),w.Icons.background(g,"btn-back"),a.insertOperateBtnUI([g])),g.show(),h||(h=$("<div class='sa-qing-publish-card-icon'>"),h.on("click",N),w.Icons.background(h,"btn-list"),a.appendOperateBtnUI([h])),h.show())},B=function(){var e=a.getUrlParam("pageId"),n=a.getUrlParam("skin"),z=a.getUrlParam("language"),G=a.getTitle(),q=a.getUrlParam("ctrlRefId"),p=a.getUrlParam("cardScene"),
A=a.getUrlParam("ctrlName"),H=a.getUrlParam("hasCustomSchema"),r=a.getUrlParam("path");r=(r?r:"/ierp")+"/qing/devctrlCardEntrance.do";q&&(r=a.appendUrlParam(r,"ctrlRefId",q));G&&(r=a.appendUrlParam(r,"cardName",G));e&&(r=a.appendUrlParam(r,"pageId",e));n&&(r=a.appendUrlParam(r,"skin",n));z&&(r=a.appendUrlParam(r,"language",z));p&&(r=a.appendUrlParam(r,"cardScene",p));A&&(r=a.appendUrlParam(r,"ctrlName",A));H&&(r=a.appendUrlParam(r,"hasCustomSchema",H));r=a.appendUrlParam(r,"mobileCtrl",!0);window.location.href=
r},v=function(){f.show();k.show();h.hide();g.hide();a.hideExtraOperateContainer();b();d.exit();m();a.getMainUi().css("top","0px");E=P=O=!1},E=!1,N=function(){if(E)a.hideExtraOperateContainer(),b(),E=!1;else{if(!t){var e=[];a.getSquareExhibition().hasFilter()&&(l=new U(x.get("lappFilter","\u8fc7\u6ee4"),"lapp-filter",V),e.push(l));t=new U(x.get("landscapeBtn","\u6a2a\u5c4f"),"btn-horizontal",D);e.push(t);a.insertExtraOperateBtn(e)}a.showExtraOperateContainer();E=!0}},P=!1,D=function(){if(P)m();else try{var e=
window.screen.orientation;e&&(e.lock("landscape-primary"),t.changeName(x.get("verticalScreenBtn"),"\u7ad6\u5c4f"),t.changeIcon("btn-vertical"),$(window).trigger("resize"),P=!0)}catch(n){}},m=function(){try{var e=window.screen.orientation;e&&(e.lock("portrait-primary"),t&&(t.changeName(x.get("landscapeBtn","\u6a2a\u5c4f")),t.changeIcon("btn-horizontal")),$(window).trigger("resize"),P=!1)}catch(n){}},O=!1,V=function(){if(O)b();else{l.changeIcon("lapp-filter-on");var e=a.getSquareExhibition().getFilterUi();
c||(c=$("<div>"),c.append(e),c.appendTo(a.getContentUi()));e.show();M.layoutCtrlWithLRTB(c,0,0,null,0,44,null);a.getSquareExhibition().updateFilterUi();c.show();O=!0}},b=function(){c&&c.hide();l&&l.changeIcon("lapp-filter");O=!1}});w.CardContainerFactory.regist("devctrl",function(){na.call(this);var a=this.protectedMethod,f=this.protectedCustomContent;this.protectedCustomContent=function(l){f(l);com.kingdee.bos.qing.integration.CardCtrlMsgHandler.setCallback(t);l=com.kingdee.bos.qing.msgbus.MsgBus;
l.focus(l.MESSAGE_TYPE_FILTERACTION,k);l.focus(l.MESSAGE_TYPE_REFRESHACTION,g);a.setFilteringListener(h)};var k=function(l){a.applyExternalFilter(l)},g=function(l){a.reExcuteCard()},h=function(){var l=com.kingdee.bos.qing.msgbus.MsgBus,c=a.getUrlParam("parentPageId");l.sendMsg(c,"hello world",l.MESSAGE_TYPE_CUSTOMEVENT)};this.protectedOpenSquare=function(){var l=a.getUrlParam("pageId");if(top.window.invokeCustomEvent){var c={tag:a.getUrlParam("tag"),cardName:a.getUrlParam("cardName"),formPageId:a.getUrlParam("formPageId"),
publishId:a.getUrlParam("publishId"),schemaAdditionalTag:a.getUrlParam("schemaAdditionalTag"),bizTag:a.getUrlParam("bizTag"),hasMainView:a.getUrlParam("hasMainView")};top.window.invokeCustomEvent(l,"",["","openSquare",JSON.stringify(c)])}};this.protectedOpenAnalysis=function(){var l="true"==a.getUrlParam("hasMainView");var c=a.getUrlParam("path");c=(c?c:"/ierp")+"/qing/editAnalysisCardEntrance.do";var d=a.getUrlParam("skin"),y=a.getUrlParam("language"),u=a.getUrlParam("publishId"),B=a.getUrlParam("bizTag"),
v=a.getUrlParam("schemaAdditionalTag"),E=a.getUrlParam("cardScene"),N=a.getUrlParam("tag");u&&(c=a.appendUrlParam(c,"publishId",u));B&&(c=a.appendUrlParam(c,"bizTag",B));E&&(c=a.appendUrlParam(c,"cardScene",E));v&&(c=a.appendUrlParam(c,"schemaAdditionalTag",v));d&&(c=a.appendUrlParam(c,"skin",d));y&&(c=a.appendUrlParam(c,"language",y));N&&(c=a.appendUrlParam(c,"tag",N));top.window.invokeCustomEvent&&l?(l={tag:a.getUrlParam("tag"),cardName:a.getUrlParam("cardName"),bizTag:a.getUrlParam("bizTag"),publishId:a.getUrlParam("publishId"),
schemaAdditionalTag:a.getUrlParam("schemaAdditionalTag")},c=a.getUrlParam("pageId"),top.window.invokeCustomEvent(c,"",["","openAnalysis",JSON.stringify(l)])):window.open(c)};this.protectedGetRefreshUrl=function(){var l=a.getUrlParam("pageId"),c=a.getUrlParam("skin"),d=a.getUrlParam("language"),y=a.getTitle(),u=a.getUrlParam("schemaAdditionalTag"),B=a.getUrlParam("cardScene"),v=a.getUrlParam("hasMainView"),E=a.getUrlParam("ctrlRefId"),N=a.getUrlParam("ctrlName"),P=a.getUrlParam("hasCustomSchema"),
D=a.getUrlParam("parentPageId"),m=a.getUrlParam("path");m=(m?m:"/ierp")+"/qing/devctrlCardEntrance.do";E&&(m=a.appendUrlParam(m,"ctrlRefId",E));u&&(m=a.appendUrlParam(m,"schemaAdditionalTag",u));y&&(m=a.appendUrlParam(m,"cardName",y));l&&(m=a.appendUrlParam(m,"pageId",l));c&&(m=a.appendUrlParam(m,"skin",c));d&&(m=a.appendUrlParam(m,"language",d));B&&(m=a.appendUrlParam(m,"cardScene",B));v&&(m=a.appendUrlParam(m,"hasMainView",v));N&&(m=a.appendUrlParam(m,"ctrlName",N));P&&(m=a.appendUrlParam(m,"hasCustomSchema",
P));D&&(m=a.appendUrlParam(m,"parentPageId",D));return m};var t=function(l){(l=l.content)&&l.refreshCard&&a.reExcuteCard()}});da.PERM_TYPE_ENTER_ANALYSIS="enter_analysis";da.PERM_TYPE_ENTER_SQUARE="enter_square";w.Icons=new function(){S.call(this);var a=this.protectedMethod;this.protectedInit=function(k,g){k=com.kingdee.bos.qing.scene.cardExhibition.ComboIcon;if(!k)throw Error("com.kingdee.bos.qing.scene.cardExhibition.ComboIcon not found.");k.define(g,"publish-resource-sprite");g.setStartPosition(1,
1);g.setGap(1);g.setIconSize(16,16);f(0,0,"btn-analysis");f(1,0,"btn-analysis-on");f(0,1,"btn-edit");f(1,1,"btn-edit-on");f(0,2,"btn-filter");f(1,2,"btn-filter-on");f(0,3,"btn-refresh");f(1,3,"btn-refresh-on");f(0,4,"btn-more");f(1,4,"btn-more-on");f(2,0,"btn-list");f(3,0,"btn-list-on");f(2,1,"lapp-filter");f(3,1,"lapp-filter-on");f(2,2,"btn-horizontal");f(3,2,"btn-vertical");f(2,3,"btn-fullscreen");f(3,3,"btn-back")};var f=function(k,g,h){a.registIcon(k,g,h)}};var ca=new function(){this.applyFilter=
function(a,f){var k=com.kingdee.bos.qing.msgbus.ExternalFilterItem,g=f.getFilterType();if(k.FILTER_TYPE_DISCRETE==g){if(a instanceof com.kingdee.bos.qing.core.model.DiscreteFilter)for(k=a.getPreparedModel().getItems(),f=f.getValues(),g=0;g<k.length;g++)for(var h=0;h<f.length;h++){var t=f[h],l=k[g];l.getValue()==t?a.addSelectedValue(t):a.removeSelectedValue(l.getValue())}}else k.FILTER_TYPE_DATERANGE==g?a instanceof com.kingdee.bos.qing.core.model.ContinuousDateFilter&&(g=a.getPreparedModel(),k=g.getFromDateMs(),
h=g.getToDateMs(),g=f.getStartDate(),f=f.getEndDate(),f=0==f&&h?h:f,a.setFromDateMs(0==g&&k?k:g),a.setToDateMs(f)):k.FILTER_TYPE_CONTINUOUS==g&&(g=a.getPreparedModel(),k=f.getFloor(),f=f.getCeiling(),h=g.getMin(),g=g.getMax(),a.setValue(k?k:h,f?f:g))}};w.ExternalFilterHelper=ca})();(function(){function Z(){var w,J,F,x,M=[],S,W,T,ca=R.decodeParamFromUrl(location.search,"cardScene"),a=R.decodeParamFromUrl(location.search,"cardTag"),f=!1,k=!1,g=!1,h;window.addEventListener("message",function(D){if(D=D.data){var m=D.methodName;if(D.cardId==W)switch(m){case "updateTitle":F.text(D.title);break;default:console.log("undefined msg methodName:"+m)}}});this.initUi=function(D){if(!w){W=E("cardId");w=$("<div>");w.addClass("qing-noceode-card-main");J=$("<div>");J.addClass("qing-noceode-card-head");
J.appendTo(w);T=E("cardName");F=$("<div>");F.addClass("qing-noceode-card-title");F.text(T);F.attr("title",T);F.appendTo(J);var m=$("<div tabIndex=-1 style='outline: none;'>");m.css({width:"20px","float":"left",height:"40px",left:"15px",position:"relative"});m.appendTo($(document.body));m.on("mousedown",P);m.on("mouseup",P);m.on("keydown",P);m.on("keyup",P);x=$("<div>");x.addClass("qing-noceode-card-content");x.appendTo(w)}w.appendTo(D)};this.showContent=function(){l();x.empty();h=new ja;h.show(x);
setInterval(function(){localStorage.getItem("refreshData_"+a)&&(u(),localStorage.removeItem("refreshData_"+a))},1200)};this.showError=function(D,m,O){l(D);x.empty();var V=new com.kingdee.bos.qing.scene.common.square.exhibition.CardErrorUi(x);V.setShowErrorDetailListener(t);V.setShowDetail(!0);V.show(D,m,O)};var t=function(D,m,O){m=$("<div>");m.addClass("qing-noceode-error-detail-container");var V=$("<div>");V.text(Q.get("errorCode","\u9519\u8bef\u7801\uff1a")+D);D=$("<div>");D.addClass("qing-noceode-error-detail-content");
D.text(O);V.appendTo(m);D.appendTo(m);m.appendTo(x)};this.getContentContainer=function(){return x};var l=function(D){var m;if(m=D)if(m=!1,D=""+D,"3010001"==D||"3010002"==D||"3010003"==D||"3010004"==D)m=!0;m?c(!1):ca&&ca===Z.NO_PERM_SCENE?c(!1):c(!0)},c=function(D){var m=$("<div>");m.addClass("qing-nocode-card-icon-container");m.appendTo(J);y(m,Q.get("refreshChart","\u5237\u65b0\u56fe\u8868"),"nocodecard-icon-refresh",u);D&&(y(m,Q.get("editChart","\u7f16\u8f91\u56fe\u8868"),"nocodecard-icon-edit",
B),S=y(m,Q.get("filter","\u8fc7\u6ee4"),"nocodecard-icon-filter",v),y(m,Q.get("delete","\u5220\u9664"),"nocodecard-icon-delete",N));$(document.body).on("mouseenter",function(){d(!0)});$(document.body).on("mouseleave",function(){d(!1)})},d=function(D){for(var m=0,O=0;O<M.length;O++){var V=M[O];D?V==S?h&&h.hasShowFilter()&&(V.show(),m++):(V.show(),m++):V.hide()}D&&0<m?F.css("width","calc(100% - "+(28*m-12)+"px)"):F.css("width","100%")},y=function(D,m,O,V){var b=$("<span>");b.addClass("qing-nocode-card-icon");
b.addClass(O);b.addClass("qing-nocode-card-icon-normal");b.attr("title",m);b.on("click",V);b.hide();D.append(b);M.push(b);return b},u=function(){var D=E("path");D=R.appendParamToUrl((D?D:"/ierp")+"/qing/qingNoCodeCardEntrance.do","cardName",T);D=R.appendParamToUrl(D,"cardId",W);ca&&(D=R.appendParamToUrl(D,"cardScene",ca));var m=E("tag");m&&(D=R.appendParamToUrl(D,"tag",m));D=R.appendParamToUrl(D,"cardTag",a);D=com.kingdee.bos.qing.integration.PageHelper.getIframeUrl(D);window.location.href=D},B=function(){top.window.postMessage({methodName:"openSettingDialog",
cardId:W},"*")},v=function(){h.showExtraFilter(w)},E=function(D){return R.decodeParamFromUrl(location.search,D)},N=function(){top.window.postMessage({methodName:"deleteCard",cardId:W},"*")},P=function(D){var m=D.type;D=D.keyCode;m&&"mousedown"===m&&(k=!0);m&&"mouseup"===m&&(k=!1);m&&D&&"keydown"===m&&"17"==D&&(f=!0);m&&D&&"keyup"===m&&"17"==D&&(f=!1);m&&D&&"keydown"===m&&"16"==D&&(g=!0);m&&D&&"keyup"===m&&"16"==D&&(g=!1);f&&k&&g&&(m=E("path"),m=R.appendParamToUrl((m?m:"/ierp")+"/qing/nocodecardDesignerEntrance.do",
"cardId",W),m=R.appendParamToUrl(m,"cardName","\u65e0\u4ee3\u7801\u5361\u7247\u6d4b\u8bd5"),m=R.appendParamToUrl(m,"cardClientId",X.getClientID()),m=R.appendParamToUrl(m,"cardTag",a),m=com.kingdee.bos.qing.integration.PageHelper.getIframeUrl(m),window.open(m,"\u7edf\u8ba1\u5361\u7247-\u6597\u65b9\u8bbe\u8ba1\u5668"),m={methodName:"openQingCardDesigner",cardId:W,cardName:T,tag:E("tag"),cardClientId:X.getClientID(),cardTag:a},top.window.postMessage(m,"*"),g=k=f=!1)}}function ja(){da.call(this);var w=
this;this.protectedImportMoreCode=function(J){};this.protectedCustomInitEnv=function(){};this.protectedGetSchemaContent=function(J,F){var x=w.getUrlParam("path"),M=w.getUrlParam("cardId"),S=new ia;S.setRemoteUrl((x?x:"/ierp")+"/qing/nocodeCard.do");(new U(S,J,F)).loadNocodeCardSchema(M)}}function U(w,J,F,x){C.call(this,w,J,F,x);var M=this.protectedMethod;this.loadNocodeCardSchema=function(S){M.remote("loadNocodeCardSchema",{cardId:S})};this.checkNocodeCardPerm=function(S){M.remote("checkNocodeCardPerm",
{cardId:S})};this.loadNocodeCardSchemaForDesigner=function(S,W,T){M.remote("loadNocodeCardSchemaForDesigner",{cardId:S,paramCacheId:W,tag:T})};this.saveNocodeCardSchema=function(S,W,T){S={cardId:S,model:JSON.stringify(W.toJsonObject()),tag:T};M.remote("saveNocodeCardSchema",S)}}"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.scene&&(com.kingdee.bos.qing.scene={});"undefined"==typeof com.kingdee.bos.qing.scene.nocode&&(com.kingdee.bos.qing.scene.nocode={});var na=com.kingdee.bos.qing.scene.nocode;na.NocodeCardContainer=Z;na.NocodecardDesignerScene=function(){ma.call(this);var w=this.protectedMethod,J,F,x,M,S=new la;window.addEventListener("message",function(c){c=c.data;"refreshData"==c.methodName?(x=c.filterCacheId,a()):"notificationCardRefresh"==c.methodName&&l()});var W=this.protectedImportMoreCode;
this.protectedImportMoreCode=function(c){W(c);w.importForMap(c);c.pushJs("qhf/qing-qhf.js")};var T=this.protectedCustomInitEnv;this.protectedCustomInitEnv=function(c){w.setModuleWithSquare(!0,!1);T(c);ka.setFullScreenPadding(0,45,0,0);var d=h();J=w.getUrlParamUtil().getUrlParam("cardId");F=w.getUrlParamUtil().getUrlParam("tag");w.registMapMapLibrary(d);S.getJqUi().appendTo($(document.body));t();c();c=$(".sa-main");c.css("top","50px");c.css("bottom","0px");c.css("height","unset");d=$("<div>");d.css({position:"relative",
top:"15px","font-size":"25px","text-align":"center"});d.text("\u65e0\u4ee3\u7801\u7684\u540c\u5b66\uff0c\u8bf7\u5c3d\u5feb\u5b9e\u73b0\u54e6\uff01");d.insertAfter(c)};this.protectedInitDesignerForSquare=function(c){c.getConductor().hideBriefOutput();ca(c);w.hookCloseTab(c);w.hookSetCurrentTabStatus(c)};var ca=function(c){var d=w.getMLS("refresh","\u6570\u636e\u66f4\u65b0");return c.getConductor().appendToolbarButton(function(){a()},"btn_reset",d)},a=function(){oExtractData=com.kingdee.bos.qing.prepare.NocodeCardDesignerDataExtractor;
oExtractData.setParamCacheId(x);oExtractData.setFirstFromCache(!1);oExtractData.setExtractDataFinishedSuccessCallback(function(c){x=null;c?w.reloadMeta(function(d){if(M){var y=M.getJsonModelBook();M.prepareMeta(d);M.setJsonModelBook(y)}(d=w.getCurrentVisibleDesigner())&&d.reExecute()}):(c=w.getCurrentVisibleDesigner())&&c.reExecute()});oExtractData.restart()};this.protectedLoadingSquare=function(c,d,y){M=d;w.loadMeta(c,function(u){d.prepareMeta(u);d.getConductor().insertToolbarButton(function(B){k()},
"btn_finish",Q.get("finish","\u5b8c\u6210"));d.getConductor().insertToolbarSeperator();f()})};var f=function(){var c=g();(new U(c,function(d){M.setJsonModelBook(d.schemaContentVo.schemaContent,function(y){});M.getConductor().clearDirty()},function(d,y,u){return!1})).loadNocodeCardSchemaForDesigner(J,x,F)},k=function(){var c=g(),d=new com.kingdee.bos.qing.schemamanage.model.SchemaModel;d.setSchemaContent(M.getJsonModelBook());var y=new com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel;d.setSchemaAttr(y);
(new U(c,function(u){u&&(J=u,top.window.postMessage({methodName:"qingCardSaveSuccess",cardId:J},"*"),l(),S.showSuccess(Q.get("saveSuccess","\u4fdd\u5b58\u6210\u529f\u3002")),M.getConductor().clearDirty())})).saveNocodeCardSchema(J,d,F)},g=function(){var c=new ia,d=h()+"/qing/nocodeCard.do";c.setRemoteUrl(d);return c},h=function(){var c=w.getUrlParamUtil().getParamPathPrefix();return c?c:"/ierp"},t=function(){com.kingdee.bos.qing.qhf.QHFSceneExporterRegister.register(F,function(){var c=com.kingdee.bos.qing.qhf.QHFExporter.SCENE_TYPE_EMBEDDED_LONGER_SQUARE,
d=_oLongerDesigner?_oLongerDesigner.getJsonModelBook():null,y=M?M.getJsonModelBook():null;return{bizTag:void 0,squareInitSchemaContext:null,longerFinalSchemaContext:d?JSON.stringify(d):null,squareFinalSchemaContext:y?JSON.stringify(y):null,sceneType:c}})},l=function(){var c=w.getUrlParamUtil().getUrlParam("cardTag");localStorage.setItem("refreshData_"+c,!0)}};var R,ka,la,C,Q,X,da,ia,ma;(function(){var w=com.kingdee.bos.qing.common;R=w.Util;w=com.kingdee.bos.qing.ui.component;ka=w.Dialog;la=w.MessageCurtain;
w=com.kingdee.bos.qing.framework.common;C=w.AbstractFacade;Q=w.MultilanguageManager.createPackageAccessor(com.kingdee.bos.qing.scene);X=w.RemoteFramework;w=com.kingdee.bos.qing.scene.cardExhibition;da=w.AbstractDesktopExhibition;ia=w.RemoteImpl;w=com.kingdee.bos.qing.scene.common.designer;ma=w.AbstractDesignerSceneImpl})();Z.HOME_SCENE="home";Z.NO_PERM_SCENE="noPerm"})();
//qingVersionTag: 20250415