(function(){function I(){X.call(this);var n=this,f=this.protectedMethod,y,S,Y,K,T;this.setCurrentPublishSchema=function(a){T=a};this.setUserOperatorPrevCheck=function(a){Y=a};this.setCloseResourceLock=function(a){};this.protectedHaveToCarryData=function(){return!1};this.protectedNeedToShowMessageBox=function(){return!0};this.protectedGetRemoteUrl=function(){var a=f.getUrlParamUtil().getParamPathPrefix();return(a?a:"/ierp")+"/qing/core.do"};this.protectedImportMoreCode=function(a){a.pushSkinJs("scene",
"skin");a.pushI18n("scene","scene")};this.protectedCustomInitEnv=function(a){a=$("<div>");a.css({position:"fixed",bottom:"3px",right:"1px",width:"180px",height:"18px",zIndex:"999"});la(a);n.protectedNeedToShowMessageBox()&&ea(a);a.appendTo($(document.body));com.kingdee.bos.qing.integration.ImglibUrlParser.hookUrlParser()};var la=function(a){F.setCallback(function(){var b=new com.kingdee.bos.qing.support.Main;b.setParamLanguage(f.getUrlParamUtil().getParamLanguage());b.creatSupportUi(a)});F.loadCss("support/support.css");
F.loadJs("support/support-ui.js");F.loadI18n("support","support")},ea=function(a){F.setCallback(function(){var b=com.kingdee.bos.qing.common.Util.decodeParamFromUrl(window.location.search,"path");b=b?b:"/ierp";com.kingdee.bos.qing.message.common.Integration.setRemoteUrl(b+"/qing/messageManage.do");ma(b);var e=new com.kingdee.bos.qing.message.ui.Main;e.setFunOpenMessageDialog(function(){e.setViewSize(null,null,10,30)});e.setMessageWidth(80);e.getJqUi(25).appendTo(a)});F.loadSkinCss("message","message");
F.loadSkinJs("message","skin");F.loadJs("message/message-manage-ui.js");F.loadI18n("message","message")},ma=function(a){var b=com.kingdee.bos.qing.message.common.Integration;b.setImportJSCodeForManager(function(){var g=com.kingdee.bos.qing.CodeLoader;g.setCallback(function(){var q=com.kingdee.bos.qing.theme.message.panel.common.Integration;q.setFunPublishRemoteImpl(function(){var d=new com.kingdee.bos.qing.theme.message.panel.common.RemoteImpl;d.setRemoteUrl(a+"/qing/publishTo.do");return d});q.setFunQingCenterAndMenuEntrance(function(d,
c,h,r){c=G.getUrlParamValue();var k=a+"/qing/publishEntrance.do";k=l.appendParamToUrl(k,"publishId",d);"extreport"==r?(k=l.appendParamToUrl(k,"appID","qing_rpt"),c&&(k=l.appendParamToUrl(k,"skin",c)),C.openNewTabInAppId(h,k,k,C.QING_RPT)):(c&&(k=l.appendParamToUrl(k,"skin",c)),C.openNewTabInAppId(h,k,k,C.QING_ANALYSIS))});q.setResourceRemoteUrl(a+"/qing/resource.do");q.setDataModelEntrance(function(d,c,h){var r=G.getUrlParamValue();c=B.get("dataModeling","\u6570\u636e\u51c6\u5907")+"-"+c;var k=a+
"/qing/dataModelingEntrance.do";k=l.appendParamToUrl(k,"themeID",d);k=l.appendParamToUrl(k,"isPreset",h);r&&(k=l.appendParamToUrl(k,"skin",r));C.openNewTabInAppId(c,k,k,C.QING_ANALYSIS)});q.setFunPublishContext(function(){var d=new com.kingdee.bos.qing.publish.common.PublishContext;d.setParamPathPrefix(a);d.setLappEntranceUrl(a+"/qing/lappEntrance.do");return d});q.setFunPublishedEmailLoginViewUrl(function(){var d=G.getUrlParamValue(),c=U.getUrlParamValue("language"),h=a+"/qing/publishedEmailEntrance.do?publishId=(publishId)&kdcdc=(accountId)";
d&&(h=l.appendParamToUrl(h,"skin",d));c&&(h=l.appendParamToUrl(h,"language",c));return h});q.setFunPublishedEmailAnonymousViewUrl(function(){var d=G.getUrlParamValue(),c=U.getUrlParamValue("language"),h=a+"/index.html?userId=Guest&accountId=(accountId)&appNumber=qing&formId=qing_analysis_pub_email#/dform?appNumber=qing&formId=qing_analysis_pub_email&publishId=(publishId)";d&&(h=l.appendParamToUrl(h,"skin",d));c&&(h=l.appendParamToUrl(h,"language",c));return h});q.setFunPublishContentEditEntrance(function(){return function(d,
c,h){var r=com.kingdee.bos.qing.publish.model.PublishTargetType;if(h&&r.MOBILE==h){r=d.getPublishId();var k=d.getId()}else r=d.getId();var p=G.getUrlParamValue(),L=U.getUrlParamValue("language");h=a+"/qing/publishContentEditEntrance.do";h=l.appendParamToUrl(h,"skin",p);h=l.appendParamToUrl(h,"language",L);h=l.appendParamToUrl(h,"publishId",r);k&&(h=l.appendParamToUrl(h,"lappId",k));k=h;c&&(r="editPublishedContent-"+r,p=com.kingdee.bos.qing.publish.common.PublishSubscribeHelper,p.putSubscribe(r,c),
h=l.appendParamToUrl(h,"subscribeKey",r),h=l.appendParamToUrl(h,"currentPageClientId",p.getCurrentPageClientId()));c=com.kingdee.bos.qing.framework.common.TabbedUiUtil;c.openNewTabInAppId(B.get("editPublishedContent","\u7f16\u8f91\u53d1\u5e03\u65b9\u6848-")+d.getName(),h,k,c.QING_ANALYSIS)}});q.setFunTimedPushContentEditEntrance(function(){return function(d){var c=a+"/qing/timedPushContentEditEntrance.do",h=B.get("editTimedPushContent","\u7f16\u8f91\u63a8\u9001\u65b9\u6848");if(d instanceof com.kingdee.bos.qing.timedpush.model.EmailConfig){var r=
d.getId(),k=d.getPublishSourceType();p=d.getSchemaSourceType();c=l.appendParamToUrl(c,"configId",r);c=l.appendParamToUrl(c,"publishSourceType",k);c=l.appendParamToUrl(c,"schemaType",p);c=l.appendParamToUrl(c,"pushTarget","email");h=h+"-"+d.getNameRule().getName();d.isSourceNameNotFound()&&(c=l.appendParamToUrl(c,"errorCode","2301001"))}else{r=d.getId();k=d.getPushTargetType();var p=d.getSchemaType();c=l.appendParamToUrl(c,"configId",r);c=l.appendParamToUrl(c,"pushTargetType",k);c=l.appendParamToUrl(c,
"schemaType",p);c=l.appendParamToUrl(c,"pushTarget","lapp");h=h+"-"+d.getName();d.getSourceName()||(c=l.appendParamToUrl(c,"errorCode","2301001"))}d=G.getUrlParamValue();p=U.getUrlParamValue("language");d&&(c=l.appendParamToUrl(c,"skin",d));p&&(c=l.appendParamToUrl(c,"language",p));d=com.kingdee.bos.qing.framework.common.TabbedUiUtil;d.openNewTabInAppId(h,c,c,d.QING_ANALYSIS)}});q=com.kingdee.bos.qing.modeler.message.panel.common.Integration;q.setFunOpenModelSetPage(function(d,c){var h=G.getUrlParamValue(),
r=B.get("modelSet","\u6a21\u578b\u96c6-")+c,k=a+"/qing_modeler/modelSetMainPage.do";k=l.appendParamToUrl(k,"modelSetId",d);k=l.appendParamToUrl(k,"modelSetName",c);k=l.appendParamToUrl(k,"currentPageClientId",com.kingdee.bos.qing.framework.common.RemoteFramework.getClientID());h&&(k=l.appendParamToUrl(k,"skin",h));C.openNewTabInAppId(r,k,k,C.QING_MODELER)});q.setFunOpenModelDesign(function(d,c,h,r,k){var p=com.kingdee.bos.qing.modeler.message.panel.common.ModelType,L=G.getUrlParamValue();k=(k=p.getModelTypeText(k))?
k+"-"+h:h;p=a+"/qing_modeler/deployDesignerEntrance.do";p=l.appendParamToUrl(p,"modelSetId",d);p=l.appendParamToUrl(p,"modelId",c);p=l.appendParamToUrl(p,"modelName",h);p=l.appendParamToUrl(p,"modelDeployId",r);L&&(p=l.appendParamToUrl(p,"skin",L));C.openNewTabInAppId(k,p,p,C.QING_MODELER)})});g.loadSkinCss("message","messagepanel");g.loadSkinJs("message","skin");g.loadJs("message/message-content-panel-management.js");g.loadI18n("message","messagepanel");g.loadSkinCss("qingmodeler/message","message-modeler-panel");
g.loadSkinJs("qingmodeler/message","skin");g.loadJs("qingmodeler/message/message-content-panel-management.js");g.loadI18n("qingmodeler/message","message-modeler-panel")});var e=l.decodeParamFromUrl(location.search,"appID");b.setAppId(e)},O=function(a,b,e,g,q,d){var c=com.kingdee.bos.qing.publish.model.PublishSourceType,h=com.kingdee.bos.qing.publish.model.PublishTargetType;a!=c.EXTREPORT&&a!=c.DASHBOARD&&b!=h.GUIMENU?(a=new com.kingdee.bos.qing.publish.common.PublishFacade(v(),function(r){d&&d()},
function(r,k){return 2301016==r?(fa().showPrompt(B.get("publishNoOperAuthExceptionCurtain","\u6ca1\u6709\u64cd\u4f5c\u6743\u9650\u3002"),2E3),!0):!1}),b=e.getBizTag(),c=e.getDsbPublishId(),e.getRefToId()&&(b=e.getRefToId()),a.judgePublishOper(b,c,g,q)):d&&d()},ha=function(){com.kingdee.bos.qing.timedpush.LappIntegration.syncDatacenterInfo(v())},Z=function(){var a=f.getUrlParamUtil().getParamPathPrefix();com.kingdee.bos.qing.timedpush.LappIntegration.setLappPrivateUrl(a+"/qing/lappPrivateInfo.do")},
Q=function(a,b,e,g,q,d){var c=f.getUrlParamUtil().getParamPathPrefix(),h=com.kingdee.bos.qing.publish.common,r=h.PublishContext;h=com.kingdee.bos.qing.schemamanage.model;var k=h.SchemaAttrModel;h=h.SchemaModel;var p=f.getUrlParamUtil().getUrlParam("bizTag"),L=n.protectedHaveToCarryData(),t;com.kingdee.bos.qing&&com.kingdee.bos.qing.prepare&&com.kingdee.bos.qing.prepare.DataSourceInfoContext&&(t=com.kingdee.bos.qing.prepare.DataSourceInfoContext.getCurrentDataSourceInfo());var M=t&&t.hasDirectModeTable();
t=new r;t.setSource(q);t.setBizTag(p);t.setCurrentSourceType(b);t.setHaveToCarryData(L);t.setHasDirectModeTable(M);t.setParamPathPrefix(c);t.setSchemaTag("Dashboard-Analysis"==d?f.getUrlParamUtil().getUrlParam("schemaTag"):null);b=new k;b.setSchemaType(k.SCHEMATYPE_SYSTEM);b.setIsDefault(!0);b.setSchemaName(z("sysPublishScheme","\u7cfb\u7edf\u9ed8\u8ba4\u65b9\u6848"));b.setSource(e);q=new h;q.setSchemaAttr(b);q.setSchemaContent(a.getJsonModelBook());a=q.toJsonObject();t.setCurrentContentModel(a);
a=f.getUrlParamUtil().getParamTag();b=function(J){J+="/qinganalysis/lappPreviewEntrance.do";for(var u=window.location.search.substring(1).split("&"),D=0;D<u.length;D++){var A=u[D],P=A.indexOf("=");if(-1!=P){var aa=A.substring(0,P);"clientID"!=aa&&"safetyCode"!=aa&&(A=A.substring(P+1),J+=0>J.indexOf("?")?"?":"&",J+=aa,J+="=",J+=A)}}return J};e==k.SCHEMASOURCE_SQUARE?(t.setScene(r.Scene.Square),e=b(c),e=l.appendParamToUrl(e,"view","10"),t.setMobilePreviewUrl(e),c=l.appendParamToUrl(c+"/qing/lappEntrance.do",
"tag",a),c=l.appendParamToUrl(c,"view","10"),t.setLappEntranceUrl(c)):e==k.SCHEMASOURCE_LONGER&&(t.setScene(r.Scene.Longer),t.setMobilePreviewUrl(b(c)),c=l.appendParamToUrl(c+"/qing/lappEntrance.do","tag",a),t.setLappEntranceUrl(c));g&&(t.setRefToId(f.getUrlParamUtil().getUrlParam("publishId")),t.setDsbPublishId(g),t.setDashBoardAnalysis(!0));return t},na=function(a){var b=!1;if(a&&(a=a.tables)&&0<a.length)for(var e=0;e<a.length;e++)if(a[e].subViews){b=!0;break}return b},R=function(a,b){Y?Y(function(e){var g=
new com.kingdee.bos.qing.schemamanage.common.SchemaManageFacade(oa(),function(d){d.publishInfoPerCheck==I.PUBLISHINFO_PERMISSION_PUBLISHPLAN_EXIST?a&&a(b):d.publishInfoPerCheck==I.THEME_IS_DEL?w($(document.body),"msg-warning",B.get("ThemeIsDel","\u8be5\u53d1\u5e03\u8bb0\u5f55\u7684\u6765\u6e90\u88ab\u5220\u9664")):d.publishInfoPerCheck==I.PUBLISHINFO_NOEXIST?w($(document.body),"msg-warning",B.get("publishInfoExist","\u53d1\u5e03\u8bb0\u5f55\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664")):d.publishInfoPerCheck==
I.PERMISSION_CANCEL?w($(document.body),"msg-jurisdiction",B.get("notAuthority","\u60a8\u6ca1\u6709\u8be5\u53d1\u5e03\u8bb0\u5f55\u7684\u67e5\u770b\u6743\u9650, \u8bf7\u8054\u7cfb\u53d1\u5e03\u4eba")+'"'+d.publishInfoUserName+'"'+B.get("authority","\u6388\u6743")):d.publishInfoPerCheck==I.PUBLSIHPLAN_DELETE&&w($(document.body),"msg-warning",B.get("publishPlanExist","\u8be5\u5206\u6790\u65b9\u6848\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664"))}),q=new com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel;
q.setFId(T.getCurrentSchemaId());q.setSchemaName(T.getCurrentSchemaName());g.checkPublishInfoAndAuthority(e,q)}):a&&a(b)},oa=function(){var a=f.getUrlParamUtil().getParamPathPrefix(),b=f.getUrlParamUtil().getParamTag();a=(a?a:"/ierp")+"/qing/schemaManage.do";var e=new com.kingdee.bos.qing.RemoteImpl;e.setRemoteUrl(a);e.setTag(b);return e},w=function(a,b,e){a=new ba;a.setOptionType(ba.OPTION_OK);a.setButtonText(ba.RETURN_OK,B.get("ISee","\u6211\u77e5\u9053\u4e86"));var g={};g.text=e;g.iconName=b;a.setMessage(g);
a.setCustomPainter(function(q,d){var c=$("<div>");c.addClass("sa-ctrl-msgdlg-icon");ia.background(c,d.iconName);var h=$("<div>");h.addClass("sa-ctrl-msgdlg-content");h.text(d.text);q.append(c);q.append(h)});a.showDialog(380,280)},x=function(a,b,e){y?b(y):(new com.kingdee.bos.qing.core.Facade(a,function(g){y=g;b(g)},e)).getMeta()},E=function(a){y=null;x(n.getRemoteImpl(),a)},v=function(){var a=f.getUrlParamUtil().getParamPathPrefix(),b=f.getUrlParamUtil().getParamTag();a=(a?a:"/ierp")+"/qing/publishTo.do";
var e=new com.kingdee.bos.qing.RemoteImpl;e.setRemoteUrl(a);e.setTag(b);return e},H=function(){var a=f.getUrlParamUtil().getParamPathPrefix(),b=G.getUrlParamValue(),e=f.getUrlParamUtil().getParamLanguage();a=(a?a:"/ierp")+"/index.html?userId=Guest&accountId=(accountId)&appNumber=qing&formId=qing_analysis_pub_email#/dform?appNumber=qing&formId=qing_analysis_pub_email&publishId=(publishId)";b&&(a=l.appendParamToUrl(a,"skin",b));e&&(a=l.appendParamToUrl(a,"language",e));return a},V=function(){var a=
f.getUrlParamUtil().getParamPathPrefix(),b=G.getUrlParamValue(),e=f.getUrlParamUtil().getParamLanguage();a=(a?a:"/ierp")+"/qing/publishedEmailEntrance.do?publishId=(publishId)&kdcdc=(accountId)";b&&(a=l.appendParamToUrl(a,"skin",b));e&&(a=l.appendParamToUrl(a,"language",e));return a},N=function(){return function(a,b,e){var g=com.kingdee.bos.qing.publish.model.PublishTargetType;if(e&&g.MOBILE==e){e=a.getPublishId();var q=a.getId();var d=a.getLappUserType()}else e=a.getId();g=f.getUrlParamUtil().getParamPathPrefix();
var c=G.getUrlParamValue(),h=f.getUrlParamUtil().getParamLanguage();g=l.appendParamToUrl((g?g:"/ierp")+"/qing/publishContentEditEntrance.do","skin",c);g=l.appendParamToUrl(g,"language",h);g=l.appendParamToUrl(g,"publishId",e);q&&(g=l.appendParamToUrl(g,"lappId",q));d&&(g=l.appendParamToUrl(g,"lappUserType",d));q=g;b&&(d="editPublishedContent-"+e,e=com.kingdee.bos.qing.publish.common.PublishSubscribeHelper,e.putSubscribe(d,b),g=l.appendParamToUrl(g,"subscribeKey",d),g=l.appendParamToUrl(g,"currentPageClientId",
e.getCurrentPageClientId()));C.openNewTab(B.get("editPublishedContent","\u7f16\u8f91\u53d1\u5e03\u65b9\u6848-")+a.getName(),g,q)}},ja=function(){return function(a){var b=f.getUrlParamUtil().getParamPathPrefix();b=(b?b:"/ierp")+"/qing/timedPushContentEditEntrance.do";var e=B.get("editTimedPushContent","\u7f16\u8f91\u63a8\u9001\u65b9\u6848");if(a instanceof com.kingdee.bos.qing.timedpush.model.EmailConfig){var g=a.getId(),q=a.getPublishSourceType();d=a.getSchemaSourceType();b=l.appendParamToUrl(b,"configId",
g);b=l.appendParamToUrl(b,"publishSourceType",q);b=l.appendParamToUrl(b,"schemaType",d);b=l.appendParamToUrl(b,"pushTarget","email");e=e+"-"+a.getNameRule().getName();a.isSourceNameNotFound()&&(b=l.appendParamToUrl(b,"errorCode","2301001"))}else{g=a.getId();q=a.getPushTargetType();var d=a.getSchemaType();b=l.appendParamToUrl(b,"configId",g);b=l.appendParamToUrl(b,"pushTargetType",q);b=l.appendParamToUrl(b,"schemaType",d);b=l.appendParamToUrl(b,"pushTarget","lapp");e=e+"-"+a.getName();a.getSourceName()||
(b=l.appendParamToUrl(b,"errorCode","2301001"))}a=G.getUrlParamValue();d=f.getUrlParamUtil().getParamLanguage();a&&(b=l.appendParamToUrl(b,"skin",a));d&&(b=l.appendParamToUrl(b,"language",d));C.openNewTab(e,b)}},z=function(a,b){return B.get(a,b)},fa=function(){S||(S=new com.kingdee.bos.qing.ui.component.MessageCurtain,S.getJqUi().appendTo($(document.body)));return S};f.getMLS=z;f.importLinkage=function(a){a.pushSkinJs("linkage","skin");a.pushJs("linkage/linkage.js");a.pushSkinCss("linkage","linkage")};
f.importForSchema=function(a){a.pushSkinJs("schema-manage","skin-initialize");a.pushJs("schema-manage/schema-manage-initialize.js");a.pushI18n("schema-manage","schema-initialize");a.pushSkinCss("schema-manage","schema-manage");a.pushJs("schema-manage/schema-manage-ui.js");a.pushI18n("schema-manage","schema-ui")};f.importForPublish=function(a){a.pushJs("biz-common/qing-biz-common.js");a.pushSkinCss("biz-common","biz-common");a.pushSkinJs("biz-common","skin");a.pushI18n("biz-common","biz-common");a.pushSkinJs("imagelib",
"skin");a.pushSkinCss("imagelib","qing-imagelib");a.pushJs("imagelib/imagelib.js");a.pushI18n("imagelib","imagelib");a.pushJs("common/qing-schedule.js");a.pushI18n("common","qing-schedule");a.pushSkinCss("publish","qing-publish");a.pushSkinJs("publish","skin");a.pushI18n("publish","publish");a.pushJs("publish/qing-publish.js");a.pushSkinCss("timedpush","qing-timedpush");a.pushSkinJs("timedpush","skin");a.pushI18n("timedpush","timedpush");a.pushJs("timedpush/qing-timedpush.js");a.pushJs("lightapp/common/qing-lapp-env.js");
a.pushJs("timedpush/qing-timedpush-lapp.js");a.pushJs("timedpush/html2canvas.js")};f.importForMap=function(a){a.pushSkinJs("map-designer","integration-skin");a.pushJs("map-designer/map-integration.js");a.pushSkinCss("map-designer","map-integration");a.pushI18n("map-designer","map-integration")};f.hookLongerPublishTo=function(a,b,e,g,q,d){com.kingdee.bos.qing.publish.common.UserOperationReporter.hookCollector(function(t,M,J){com.kingdee.bos.qing.behavior.BehaviorManager.interestInBehavior(t,M,0,J)});
var c=com.kingdee.bos.qing.publish.model;b=c.PublishTargetType;c=com.kingdee.bos.qing.schemamanage.model;var h=c.SchemaAttrModel,r=function(t){var M=com.kingdee.bos.qing.publish.common.PublishFactory,J=t.getUserObject(),u=t.getText().replace("...",""),D=Q(a,e,h.SCHEMASOURCE_LONGER,g,q,d);O(e,J,D,"longer",m.ANALYSIS_PUBLISH,function(){var A=M.createPublishToDialog(u,v(),D,J,N());A.setOuterMessageCurtain(fa());A.showDialog()})},k=com.kingdee.bos.qing.ui.component.MenuItemModel;c=new com.kingdee.bos.qing.ui.component.MenuModel;
var p=new k(function(t){R(r,t)});p.setUserObject(b.APPMENU);p.setText(z("toAppMenu","\u5e94\u7528\u83dc\u5355..."));c.addItemModel(p);p=new k(function(t){R(r,t)});p.setUserObject(b.CENTER);p.setText(z("toAnalysisCenter","\u6570\u636e\u5de5\u4f5c\u53f0\u9605\u89c8\u5939..."));c.addItemModel(p);p=new k(function(t){R(r,t)});p.setUserObject(b.MOBILE);p.setText(z("toMobile","\u79fb\u52a8\u8f7b\u5e94\u7528..."));c.addItemModel(p);ha();Z();var L=function(){var t=com.kingdee.bos.qing.publish.common.PublishManagerDialog,
M=Q(a,e,com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel.SCHEMASOURCE_LONGER);(new t(v(),M,N())).showDialog()};p=new k(function(t){R(L,t)});p.setUserObject();p.setText(z("publishManager","\u53d1\u5e03\u7ba1\u7406")+"...");c.addItemModel(p);b=z("publishTo","\u53d1\u5e03\u5230");return a.getConductor().appendToolbarMenu(c,"publish_to",b)};f.hookSquarePublishTo=function(a,b,e){com.kingdee.bos.qing.publish.common.UserOperationReporter.hookCollector(function(r,k,p){com.kingdee.bos.qing.behavior.BehaviorManager.interestInBehavior(r,
k,0,p)});var g=com.kingdee.bos.qing.publish.model;b=g.PublishTargetType;g=com.kingdee.bos.qing.schemamanage.model;var q=g.SchemaAttrModel,d=function(r){var k=com.kingdee.bos.qing.publish.common.PublishFactory,p=r.getUserObject(),L=r.getText().replace("...",""),t=Q(a,e,q.SCHEMASOURCE_SQUARE);O(e,p,t,"square",m.CARD_PUBLISH,function(){var M=k.createPublishToDialog(L,v(),t,p,N());M.setOuterMessageCurtain(fa());M.showDialog()})},c=com.kingdee.bos.qing.ui.component.MenuItemModel;g=new com.kingdee.bos.qing.ui.component.MenuModel;
var h=new c(d);h.setUserObject(b.CARD_REPOSITORY);h.setText(z("toCardRepository","\u5361\u7247\u5e93..."));g.addItemModel(h);d=new c(d);d.setText(z("toMobile","\u79fb\u52a8\u8f7b\u5e94\u7528..."));d.setUserObject(b.MOBILE);g.addItemModel(d);ha();Z();h=new c(function(){var r=com.kingdee.bos.qing.publish.common.PublishManagerDialog,k=Q(a,e,com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel.SCHEMASOURCE_SQUARE);(new r(v(),k,N())).showDialog()});h.setUserObject();h.setText(z("publishManager","\u53d1\u5e03\u7ba1\u7406")+
"...");g.addItemModel(h);b=z("publishTo","\u53d1\u5e03\u5230");return a.getConductor().appendToolbarMenu(g,"publish_to",b)};f.hookPublishManager=function(a,b,e){var g=z("publishManager","\u53d1\u5e03\u7ba1\u7406");return a.getConductor().appendToolbarButton(function(){var q=com.kingdee.bos.qing.publish.common.PublishManagerDialog,d=Q(a,b,e);(new q(v(),d,N())).showDialog()},"publish_manager",g)};f.hookCloseTab=function(a){var b=z("closeTab","\u9000\u51fa");return a.getConductor().appendToolbarButton(function(){a.getConductor().isDirty()?
ca.showConfirmExitDialog():C.closeCurrentTab()},"error_close",b)};f.hookShareTo=function(a,b,e,g,q){com.kingdee.bos.qing.publish.common.UserOperationReporter.hookCollector(function(u,D,A){com.kingdee.bos.qing.behavior.BehaviorManager.interestInBehavior(u,D,0,A)});var d=function(u){u=z("yzjCommunicate","\u4e91\u4e4b\u5bb6\u6c9f\u901a...").replace("...","");var D=Q(a,g,b);u=com.kingdee.bos.qing.timedpush.PublishToYunzhijiaDialogFactory.createDialog(u,v(),D);u.setOuterMessageCurtain(fa());u.showDialog()},
c=function(u){u=com.kingdee.bos.qing.CodeLoader.createSafety();u.pushJs("yzj-web/qingjs.js");u.pushJs("yzj-web/imcloud.js");u.pushJs("yzj-web/imsdkerp.js");u.pushJs("yzj-web/imShare.js");u.pushSkinCss("yzj-web","imcloud");u.pushSkinCss("yzj-web","imsdk");u.pushSkinCss("yzj-web","imsdkerp");u.load(function(){})};e=new ka;(new W(function(u){window.beLoadedImCloud?d(u):c(u)})).setText(z("yzjCommunicate","\u4e91\u4e4b\u5bb6\u6c9f\u901a..."));var h=com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel,
r=n.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());k=k&&k.hasDirectModeTable();var p=com.kingdee.bos.qing.publish.model.PublishTargetType;if(!k&&!r&&b==h.SCHEMASOURCE_LONGER){var L=function(u){var D=u.getText().replace("...",""),A=Q(a,g,b,q);O(g,p.EMAIL,A,"longer",m.ANALYSIS_TIMEPUSH,function(){var P=new com.kingdee.bos.qing.timedpush.EmailPublishConfigDialog(D,
v(),A,H(),V(),ja(),a);P.setOuterMessageCurtain(fa());P.showDialog()})},t=new W(function(u){R(L,u)});t.setText(z("emailSchedulePush","\u90ae\u4ef6\u5b9a\u65f6\u63a8\u9001..."));e.addItemModel(t)}if(!k&&!r){var M=function(u){var D=Q(a,g,b,q),A="longer",P=m.ANALYSIS_TIMEPUSH;b==h.SCHEMASOURCE_SQUARE&&(A="square",P=m.CARD_TIMEPUSH);O(g,p.EMAIL,D,A,P,function(){var aa=new com.kingdee.bos.qing.timedpush.LappSchedulePush,pa=u.getText().replace("...","");aa.createDialog(pa,v(),D,ja(),a)})};r=new W(function(u){R(M,
u)});r.setText(z("mobileSchedulePush","\u79fb\u52a8\u7aef\u5b9a\u65f6\u63a8\u9001")+"...");e.addItemModel(r)}var J=function(){var u=com.kingdee.bos.qing.publish.common.PushManager,D=Q(a,g,b);u=new u(ja());var A=com.kingdee.bos.qing.timedpush;u.registerEmailPushPanelConstructor(A.EmailConfigManagePanel);u.initEmailPushConfig(v(),H(),V());u.registerLappPushPanelConstructor(A.LappPushManagePanel);u.initLappPushConfig(function(P,aa,pa){return com.kingdee.bos.qing.publish.common.PublishFactory.createPublishFacade(com.kingdee.bos.qing.publish.model.PublishTargetType.MOBILE,
v(),P,aa,pa)},D);u.showDialog()};r=new W(function(u){R(J,u)});r.setUserObject();r.setText(z("pushManager","\u5b9a\u65f6\u63a8\u9001\u7ba1\u7406")+"...");e.addItemModel(r);e=a.getConductor().appendToolbarMenu(e,"btn_communicate",z("timedPush","\u5b9a\u65f6\u63a8\u9001"));e.addActionListener(function(){window.beLoadedImCloud||(window.funCallback=d)});return e};f.initDesigntimeLinkage=function(){var a=f.getUrlParamUtil().getParamPathPrefix(),b=(a?a:"/ierp")+"/qing/linkage.do",e=com.kingdee.bos.qing.integration.LinkageJumper;
a=new com.kingdee.bos.qing.linkage.LinkageManage;a.initDesigntime(b,e.jump);b=f.getUrlParamUtil().getParamTag();a.setCurrentLinkageTag(b)};f.loadMeta=x;f.reloadMeta=E;f.hookRefresh=function(a,b){var e=f.getMLS("refresh","\u6570\u636e\u66f4\u65b0"),g=function(){b.restart();b.setExtractDataFinishedSuccessCallback(function(q){q||na(y)?E(function(d){var c=a.getJsonModelBook();a.prepareMeta(d);a.setJsonModelBook(c)}):a.reExecute()})};return a.getConductor().appendToolbarButton(function(){R(g)},"btn_reset",
e)};f.getMessageCurtain=fa;f.hookSetCurrentTabStatus=function(a){a.getConductor().setDirtyListener(function(b){ca.setTabStatus(b)})};f.loadPublishOperList=function(a,b,e,g,q){K?e(K):(new com.kingdee.bos.qing.publish.common.PublishFacade(v(),function(d){K=d;e(K)},q)).loadPublishOperList(a,b,g)};f.loadPublishOperModel=function(a,b,e,g){K?e(K):(new com.kingdee.bos.qing.publish.common.PublishFacade(v(),function(q){K=q.noOperValueMap;e(K)},g)).loadPublishOperModel(a,b)};f.registMapMapLibrary=function(a){com.kingdee.bos.qing.map.common.Integration.setRemoteUrl(a+
"/qing/mapManage.do");var b=new com.kingdee.bos.qing.map.integration.MapSelectorDialog;com.kingdee.bos.qing.core.MapLibraryRegister.registerTemplateSelector(function(e,g){b.setParamPathPrefix(a);b.showDialog(e,g)})}}"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 da=com.kingdee.bos.qing.scene.common.designer,G,X,F,ba,ia,l,B,C,ka,W,ca,U;(function(){var n=com.kingdee.bos.qing;G=n.SkinUtil;X=n.AbstractDesignerScene;F=n.CodeLoader;U=n.Seer;n=com.kingdee.bos.qing.common;l=n.Util;n=com.kingdee.bos.qing.framework.common;B=n.MultilanguageManager.createPackageAccessor(com.kingdee.bos.qing.scene);
C=n.TabbedUiUtil;n=com.kingdee.bos.qing.ui.component;ka=n.MenuModel;W=n.MenuItemModel;ba=n.MessageDialog;ia=n.Icons;n=com.kingdee.bos.qing.integration;ca=n.TabStatusHelper})();da.AbstractDesignerSceneImpl=I;da.LongerDesignerOperationJudgerModel=function(n){com.kingdee.bos.qing.core.LongerDesignerOperationJudger.call(this);n&&0!=n&&(this.protectedParseDesignable=function(){return 0==(n&m.ANALYSIS_EDITABLE)},this.protectedParseDataDetailReadable=function(){return 0==(n&m.ANALYSIS_DETAIL)},this.protectedParseExportable=
function(){return 0==(n&m.ANALYSIS_EXPORT)},this.protectedParsePrintable=function(){return 0==(n&m.ANALYSIS_PRINT)},this.protectedParsePublishable=function(){return 0==(n&m.ANALYSIS_PUBLISH)},this.protectedParseTimingPushable=function(){return 0==(n&m.ANALYSIS_TIMEPUSH)})};da.SquareDesignerOperationJudgerModel=function(n){com.kingdee.bos.qing.core.SquareDesignerOperationJudger.call(this);n&&0!=n&&(this.protectedParsePublishable=function(){return 0==(n&m.CARD_PUBLISH)},this.protectedParseTimingPushable=
function(){return 0==(n&m.CARD_TIMEPUSH)})};var m={};da.OperCodeType=m;m.ANALYSIS_EDITABLE=2;m.ANALYSIS_EXPORT=4;m.ANALYSIS_PRINT=8;m.ANALYSIS_PUBLISH=16;m.ANALYSIS_TIMEPUSH=32;m.ANALYSIS_DETAIL=64;m.CARD_PUBLISH=256;m.CARD_TIMEPUSH=512;m.ENTRY_ANALYSIS=1;m.ENTRY_SQUARE=128;I.THEME_IS_DEL="Theme is Delete";I.PUBLISHINFO_PERMISSION_PUBLISHPLAN_EXIST="success";I.PUBLISHINFO_NOEXIST="PublishInfo Not Exist";I.PERMISSION_CANCEL="Not Permission";I.PUBLSIHPLAN_DELETE="Publish Not Exist"})();(function(){function I(){G.call(this);var m=this.protectedMethod,n=this.protectedInitDesignerForSquare;this.protectedInitDesignerForSquare=function(y){n(y);com.kingdee.bos.qing.integration.CardCtrlMsgHandler.setCallback(f)};var f=function(y){(y=y.content)&&y.evtName&&(y=new ca,y.setOptionType(ca.OPTION_OK),y.setMessage(m.getMLS("operateForbidden","\u5f53\u524d\u573a\u666f\u4e0d\u652f\u6301\u8be5\u64cd\u4f5c")),y.showDialog())}}function da(){G.call(this);var m=this.protectedMethod,n=this.protectedInitDesignerForSquare;
this.protectedInitDesignerForSquare=function(f){n(f);"true"!=m.getUrlParamUtil().getUrlParam("isPreset")?(m.hookPublishAndPushBtn(f),"true"!=m.getUrlParamUtil().getUrlParam("haveToCarryData")&&m.hookRefresh(f,com.kingdee.bos.qing.prepare.DataExtractor)):m.getMessageCurtain().showPrompt(m.getMLS("presetPublishAnalysisTipsCurtain","\u9884\u7f6e\u7684\u6570\u636e\u5206\u6790\u4e0d\u5141\u8bb8\u53d1\u5e03\u7b49\u64cd\u4f5c\uff0c\u5982\u6709\u9700\u8981\uff0c\u53ef\u590d\u5236\u540e\u518d\u8fdb\u884c\u64cd\u4f5c\u3002"),
5E3);m.hookCloseTab(f)};this.protectedAfterSaveSquare=function(){F&&F.refreshCard()};this.protectedAfterReset=function(){F&&F.refreshCard();W.closeCurrentTab()}}function G(){function m(w,x,E,v){ka.call(this,w,x,E,v);var H=this.protectedMethod;this.resetCustomSquare=function(V){H.remote("resetCustomSquare",{bizTag:V})}}function n(){C.call(this);var w;this.getRemoteUrl=function(x){return w};this.setRemoteUrl=function(x){w=x}}ba.call(this);var f=this.protectedMethod,y=this,S,Y,K,T,la,ea,ma,O,ha,Z;this.protectedHaveToCarryData=
function(){return"true"==f.getUrlParamUtil().getUrlParam("haveToCarryData")};this.protectedAfterSaveSquare=function(){};this.protectedAfterReset=function(){};this.protectedIsEditUserSchema=function(){return!0};var Q=this.protectedImportMoreCode;this.protectedImportMoreCode=function(w){Q(w);f.importLinkage(w);f.importForSchema(w);f.importForPublish(w);f.importForMap(w);w.pushJs("qhf/qing-qhf.js")};var na=this.protectedCustomInitEnv;this.protectedCustomInitEnv=function(w){f.setModuleWithLonger(!1,!1);
f.setModuleWithSquare(!0,!0);na(w);S=f.getUrlParamUtil().getUrlParam("bizTag");Y=f.getUrlParamUtil().getUrlParam("schemaAdditionalTag");T=f.getUrlParamUtil().getUrlParam("publishSourceType");K=f.getUrlParamUtil().getUrlParam("publishId");ea=new n;var x=f.getUrlParamUtil().getParamPathPrefix();ea.setRemoteUrl((x?x:"/ierp")+"/qing/schemaManage.do");ha=new n;ha.setRemoteUrl((x?x:"/ierp")+"/qing/card.do");f.registMapMapLibrary(x);x=com.kingdee.bos.qing.behavior.BehaviorManager;x.interestInBehaviorEntrance(x.ENTRANCE_CARD_SQUARE);
f.loadPublishOperList(K,null,function(E){var v=com.kingdee.bos.qing.publish.model.OperType,H=0;E[v.SQUARE]&&(H|=E[v.SQUARE]);E[v.LONGER]&&(H|=E[v.LONGER]);Z=new U(H);w()})};this.protectedInitDesignerForSquare=function(w){w.setDesignerOperationJudger(null,Z);f.hookSetCurrentTabStatus(w);f.initDesigntimeLinkage();R(w)};this.protectedLoadingSquare=function(w,x,E){f.loadMeta(w,function(v){var H=com.kingdee.bos.qing.schemamanage.SchemaManage,V=com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel;x.prepareMeta(v);
v=new H(S,V.SCHEMASOURCE_SQUARE,Y);v.setReloadMetaFun(function(N){f.reloadMeta(function(ja){x.prepareMeta(ja);N&&N()})});y.protectedIsEditUserSchema()?(v.setPublishId(K),v.initializeForSquareEdit(ea,x,function(N){O||(O=x.getJsonModelBook());E(N)})):v.initializeForSystemSquareSave(ea,x,function(N){O||(O=x.getJsonModelBook());E(N)});v.setSaveSuccessCallback(y.protectedAfterSaveSquare);ma=v.getSchemaContext();oa(x)})};var R=function(w){var x=f.getUrlParamUtil().getUrlParam("tag");com.kingdee.bos.qing.qhf.QHFSceneExporterRegister.register(x,
function(){var E=com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel.SCHEMASOURCE_SQUARE;var v="subject"==T?com.kingdee.bos.qing.qhf.QHFExporter.SCENE_TYPE_PUBLISH_SUBJECT_SQUARE:com.kingdee.bos.qing.qhf.QHFExporter.SCENE_TYPE_PUBLISH_EMBEDDED_SQUARE;var H=w.getJsonModelBook();return{publishId:S,initSchemaContext:O?JSON.stringify(O):null,finalSchemaContext:H?JSON.stringify(H):null,schemaType:E,sceneType:v}})};f.hookPublishAndPushBtn=function(w){var x=com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel.SCHEMASOURCE_SQUARE;
Z.protectedParsePublishable()&&f.hookSquarePublishTo(w,ma,T);"true"!=f.getUrlParamUtil().getUrlParam("haveToCarryData")&&Z.protectedParseTimingPushable()&&f.hookShareTo(w,x,null,T)};var oa=function(w){var x=new ia,E=new l(function(v){v=new B;v.setText(f.getMLS("resetConfirmTips","\u60a8\u786e\u5b9a\u8981\u91cd\u7f6e\u5230\u53d1\u5e03\u6700\u521d\u59cb\u7684\u72b6\u6001\uff0c\u5e76\u9000\u51fa\u5417\uff1f"));v.setConfirmedListener(function(V){V&&(new m(ha,y.protectedAfterReset)).resetCustomSquare(S+
Y)});var H=la.getJqUi();v.show(H)});E.setText(f.getMLS("resetAndExit","\u91cd\u7f6e\u5e76\u9000\u51fa"));x.addItemModel(E);la=w.getConductor().insertToolbarMenu(x,"btn_reset",f.getMLS("reset","\u91cd\u7f6e"),null)}}"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=
{});var X=com.kingdee.bos.qing.scene;X.CardSquareScene=da;var F,ba,ia,l,B,C,ka,W,ca,U;(function(){var m=com.kingdee.bos.qing.framework.common;C=m.AbstractRemoteCall;ka=m.AbstractFacade;W=m.TabbedUiUtil;m=com.kingdee.bos.qing.integration;F=m.RefreshCardHelper;m=com.kingdee.bos.qing.scene.common.designer;ba=m.AbstractDesignerSceneImpl;U=m.SquareDesignerOperationJudgerModel;m=com.kingdee.bos.qing.ui.component;ia=m.MenuModel;l=m.MenuItemModel;B=m.SimpleConfirmer;ca=m.MessageDialog})();X.CardSquareSceneFactory=
new function(){var m={};this.getSquareScene=function(n){return(n=m[n])?new n:new da};this.regist=function(n,f){m[n]=f}};X.CardSquareSceneFactory.regist("devctrlAp",function(){I.call(this);var m=this.protectedMethod;this.protectedIsEditUserSchema=function(){return!1};this.protectedAfterSaveSquare=function(){setTimeout(function(){var n=m.getUrlParamUtil().getUrlParam("pageId");if(top.window.invokeCustomEvent){var f={ctrlRefId:m.getUrlParamUtil().getUrlParam("ctrlRefId")};top.window.invokeCustomEvent(n,
"",["","setCustomSchema",JSON.stringify(f)])}},300)};this.protectedAfterReset=function(){var n=m.getUrlParamUtil().getUrlParam("pageId");top.window.invokeCustomEvent&&top.window.invokeCustomEvent(n,"",["","resetCustomSchema",JSON.stringify({})])}});X.CardSquareSceneFactory.regist("devctrl",function(){I.call(this);var m=this.protectedMethod;this.protectedAfterSaveSquare=function(){setTimeout(function(){n(m.getUrlParamUtil().getUrlParam("hasMainView"))},300)};this.protectedAfterReset=function(){n("false")};
var n=function(f){var y=m.getUrlParamUtil().getUrlParam("cardCtrlPageId");top.window.invokeCustomEvent&&(f={designerPageId:m.getUrlParamUtil().getUrlParam("pageId"),hasMainView:f},top.window.invokeCustomEvent(y,"",["QingCard","refreshCard",JSON.stringify(f)]))}})})();
//qingVersionTag: 20250415