var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(Ya,Lb,wb){Ya instanceof String&&(Ya=String(Ya));for(var eb=Ya.length,pb=0;pb<eb;pb++){var zb=Ya[pb];if(Lb.call(wb,zb,pb,Ya))return{i:pb,v:zb}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(Ya,Lb,wb){if(Ya==Array.prototype||Ya==Object.prototype)return Ya;Ya[Lb]=wb.value;return Ya};$jscomp.getGlobal=function(Ya){Ya=["object"==typeof globalThis&&globalThis,Ya,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var Lb=0;Lb<Ya.length;++Lb){var wb=Ya[Lb];if(wb&&wb.Math==Math)return wb}throw Error("Cannot find global object");};
$jscomp.global=$jscomp.getGlobal(this);$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(Ya,Lb){var wb=$jscomp.propertyToPolyfillSymbol[Lb];if(null==wb)return Ya[Lb];wb=Ya[wb];return void 0!==wb?wb:Ya[Lb]};
$jscomp.polyfill=function(Ya,Lb,wb,eb){Lb&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(Ya,Lb,wb,eb):$jscomp.polyfillUnisolated(Ya,Lb,wb,eb))};$jscomp.polyfillUnisolated=function(Ya,Lb,wb,eb){wb=$jscomp.global;Ya=Ya.split(".");for(eb=0;eb<Ya.length-1;eb++){var pb=Ya[eb];if(!(pb in wb))return;wb=wb[pb]}Ya=Ya[Ya.length-1];eb=wb[Ya];Lb=Lb(eb);Lb!=eb&&null!=Lb&&$jscomp.defineProperty(wb,Ya,{configurable:!0,writable:!0,value:Lb})};
$jscomp.polyfillIsolated=function(Ya,Lb,wb,eb){var pb=Ya.split(".");Ya=1===pb.length;eb=pb[0];eb=!Ya&&eb in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var zb=0;zb<pb.length-1;zb++){var Yb=pb[zb];if(!(Yb in eb))return;eb=eb[Yb]}pb=pb[pb.length-1];wb=$jscomp.IS_SYMBOL_NATIVE&&"es6"===wb?eb[pb]:null;Lb=Lb(wb);null!=Lb&&(Ya?$jscomp.defineProperty($jscomp.polyfills,pb,{configurable:!0,writable:!0,value:Lb}):Lb!==wb&&(void 0===$jscomp.propertyToPolyfillSymbol[pb]&&(wb=1E9*Math.random()>>>0,
$jscomp.propertyToPolyfillSymbol[pb]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(pb):$jscomp.POLYFILL_PREFIX+wb+"$"+pb),$jscomp.defineProperty(eb,$jscomp.propertyToPolyfillSymbol[pb],{configurable:!0,writable:!0,value:Lb})))};$jscomp.polyfill("Array.prototype.find",function(Ya){return Ya?Ya:function(Lb,wb){return $jscomp.findInternal(this,Lb,wb).v}},"es6","es3");
$jscomp.polyfill("Array.prototype.fill",function(Ya){return Ya?Ya:function(Lb,wb,eb){var pb=this.length||0;0>wb&&(wb=Math.max(0,pb+wb));if(null==eb||eb>pb)eb=pb;eb=Number(eb);0>eb&&(eb=Math.max(0,pb+eb));for(wb=Number(wb||0);wb<eb;wb++)this[wb]=Lb;return this}},"es6","es3");$jscomp.typedArrayFill=function(Ya){return Ya?Ya:Array.prototype.fill};$jscomp.polyfill("Int8Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Uint8Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");
$jscomp.polyfill("Uint8ClampedArray.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Int16Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Uint16Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Int32Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Uint32Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Float32Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");
$jscomp.polyfill("Float64Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");
(function(){function Ya(){var ua=this,W,fa,Ea=function(){void 0===W&&(W=ua.protectedParseLongerDesignerAccessable(),fa=ua.protectedParseLongerDesignerOperationJudger())};this.isLongerDesignerAccessable=function(){Ea();return W};this.getLongerDesignerOperationJudger=function(){Ea();return fa};this.mergeToNewInstance=function(Va){var Oa=ua.isLongerDesignerAccessable()&&Va.isLongerDesignerAccessable(),wa=ua.getLongerDesignerOperationJudger().mergeToNewInstance(Va.getLongerDesignerOperationJudger());return new function(){Ya.call(this);
this.protectedParseLongerDesignerAccessable=function(){return Oa};this.protectedParseLongerDesignerOperationJudger=function(){return wa}}};this.protectedParseLongerDesignerAccessable=function(){return!0};this.protectedParseLongerDesignerOperationJudger=function(){return new wb}}function Lb(){var ua=this,W,fa,Ea,Va,Oa=function(){void 0===W&&(W=ua.protectedParseSquareDesignerAccessable(),fa=ua.protectedParseSquareDesignerOperationJudger(),Ea=ua.protectedParseAdvancedAnalysisAccessable(),Va=ua.protectedParseAdvancedAnalysisOperationJudger())};
this.isSquareDesignerAccessable=function(){Oa();return W};this.getSquareDesignerOperationJudger=function(){Oa();return fa};this.isAdvancedAnalysisAccessable=function(){Oa();return Ea};this.getAdvancedAnalysisOperationJudger=function(){Oa();return Va};this.mergeToNewInstance=function(wa){var Ga=ua.isSquareDesignerAccessable()&&wa.isSquareDesignerAccessable(),Ia=ua.getSquareDesignerOperationJudger().mergeToNewInstance(wa.getSquareDesignerOperationJudger()),hb=ua.isAdvancedAnalysisAccessable()&&wa.isAdvancedAnalysisAccessable(),
ib=ua.getAdvancedAnalysisOperationJudger().mergeToNewInstance(wa.getAdvancedAnalysisOperationJudger());return new function(){Lb.call(this);this.protectedParseSquareDesignerAccessable=function(){return Ga};this.protectedParseSquareDesignerOperationJudger=function(){return Ia};this.protectedParseAdvancedAnalysisAccessable=function(){return hb};this.protectedParseAdvancedAnalysisOperationJudger=function(){return ib}}};this.protectedParseSquareDesignerAccessable=function(){return!0};this.protectedParseSquareDesignerOperationJudger=
function(){return new eb};this.protectedParseAdvancedAnalysisAccessable=function(){return!0};this.protectedParseAdvancedAnalysisOperationJudger=function(){return new wb}}function wb(){var ua=this,W,fa,Ea,Va,Oa,wa,Ga=function(){void 0===W&&(W=ua.protectedParseDesignable(),fa=ua.protectedParseDataDetailReadable(),Ea=ua.protectedParseExportable(),Va=ua.protectedParsePrintable(),Oa=ua.protectedParsePublishable(),wa=ua.protectedParseTimingPushable())};this.isDesignable=function(){Ga();return W};this.isDataDetailReadable=
function(){Ga();return fa};this.isExportable=function(){Ga();return Ea};this.isPrintable=function(){Ga();return Va};this.isPublishable=function(){Ga();return Oa};this.isTimingPushable=function(){Ga();return wa};this.mergeToNewInstance=function(Ia){return new function(){wb.call(this);this.protectedParseDesignable=function(){return ua.isDesignable()&&Ia.isDesignable()};this.protectedParseDataDetailReadable=function(){return ua.isDataDetailReadable()&&Ia.isDataDetailReadable()};this.protectedParseExportable=
function(){return ua.isExportable()&&Ia.isExportable()};this.protectedParsePrintable=function(){return ua.isPrintable()&&Ia.isPrintable()};this.protectedParsePublishable=function(){return ua.isPublishable()&&Ia.isPublishable()};this.protectedParseTimingPushable=function(){return ua.isTimingPushable()&&Ia.isTimingPushable()}}};this.protectedParseDesignable=function(){return!0};this.protectedParseDataDetailReadable=function(){return!0};this.protectedParseExportable=function(){return!0};this.protectedParsePrintable=
function(){return!0};this.protectedParsePublishable=function(){return!0};this.protectedParseTimingPushable=function(){return!0}}function eb(){var ua=this,W,fa,Ea=function(){void 0===W&&(W=ua.protectedParsePublishable(),fa=ua.protectedParseTimingPushable())};this.isPublishable=function(){Ea();return W};this.isTimingPushable=function(){Ea();return fa};this.mergeToNewInstance=function(Va){return new function(){eb.call(this);this.protectedParsePublishable=function(){return ua.isPublishable()&&Va.isPublishable()};
this.protectedParseTimingPushable=function(){return ua.isTimingPushable()&&Va.isTimingPushable()}}};this.protectedParsePublishable=function(){return!0};this.protectedParseTimingPushable=function(){return!0}}"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.core&&(com.kingdee.bos.qing.core={});var pb=
com.kingdee.bos.qing.core,zb,Yb,Mb,S,Ma;(function(){var ua=com.kingdee.bos.qing.framework.common;zb=ua.AbstractFacade;Yb=ua.AbstractIcons;Mb=ua.MultilanguageManager.createPackageAccessor(pb);ua=ua.MultilanguageManager.createPackageAccessor(com.kingdee.bos.qing.chart);com.kingdee.bos.qing.chart.MultiLanguageString.setImpl(ua);ua=com.kingdee.bos.qing.ui.component;S=ua.WorkButton;ua=com.kingdee.bos.qing.chart.model;Ma=ua.ContinuousColorLegendModel})();pb.Facade=function(ua,W,fa,Ea){zb.call(this,ua,W,
fa,Ea);var Va=this.protectedMethod;this.getDefaultTemplate=function(wa){Va.remote("getDefaultTemplate",{template:wa})};this.getMeta=function(){Va.remote("getMeta",{})};this.updateMeta=function(wa){wa={meta:JSON.stringify(wa.toJsonObject())};Va.remote("updateMeta",wa)};this.checkFormula=function(wa,Ga,Ia){wa={name:Ia,formula:wa,meta:JSON.stringify(Ga.toJsonObject())};Va.remote("checkFormula",wa)};this.getMetaTableDetailRowData=function(wa,Ga,Ia,hb){wa={metaTable:JSON.stringify(wa.toJsonObject()),startRowNum:Ga,
endRowNum:Ia,"export":hb?!0:!1};Va.remote("getMetaTableDetailRowData",wa)};this.getCustomizedOrderDimensionMembers=function(wa,Ga,Ia){wa={meta:JSON.stringify(wa.toJsonObject()),fieldFullName:Ga,oriCustomOrder:JSON.stringify(Ia)};Va.remote("getCustomizedOrderDimensionMembers",wa)};this.getDetailRowNums=function(wa,Ga,Ia,hb,ib){wa={executingModelWrapper:JSON.stringify(Oa(wa,Ga)),additionalFilters:Ia?JSON.stringify(Ia):null,tvCoordinate:hb,showAllField:ib};Va.remote("getDetailRowNums",wa);!ib&&Ja.occur(Ja.LONGER_SEARCH_DETAILS,
1)};this.getDetailRowData=function(wa,Ga,Ia,hb){wa={executingModelWrapper:JSON.stringify(Oa(Ga,Ia)),dataSourceCacheKey:wa,dataRowInfo:JSON.stringify(hb.toJsonObject())};Va.remote("getDetailRowData",wa)};this.searchDetailRowLinkTargetForeignKeyMember=function(wa,Ga,Ia,hb){Va.remote("searchDetailRowLinkTargetForeignKeyMember",{dataSourceCacheKey:wa,row:Ga,col:Ia,bizUiId:hb})};this.exportDetailRowData=function(wa,Ga,Ia,hb,ib){wa={executingModelWrapper:JSON.stringify(Oa(wa,Ga)),dataSourceCacheKey:Ia,
assignedOnly:hb,dataRowInfo:JSON.stringify(ib.toJsonObject())};Va.remote("exportDetailRowData",wa);Ja.occur(Ja.LONGER_EXPORT_DETAILS,1)};this.exportExhibition=function(wa,Ga){wa={model:JSON.stringify(wa.toJsonObject()),fileName:Ga};Va.remote("exportExhibition",wa)};this.christmasExecute=function(wa,Ga,Ia,hb,ib){wa={checkSelectedValueScope:ib,executingModelWrapper:JSON.stringify(Oa(wa,Ga,Ia)),additionalFilters:hb?JSON.stringify(hb):null};Ia=Va.remote("christmas",wa);Ja.occur(Ja.LONGER_CHART_TYPE,Ga.getChartType());
Ja.occur(Ja.CORE_CUSTOM_FIELD,Ga.howManyCalculatedFieldsUsed());Ja.occur(Ja.LONGER_DATASOURCE_TYPE,wa.tag);return Ia};this.filteringExecute=function(wa,Ga,Ia,hb,ib){wa={filterIndex:ib,executingModelWrapper:JSON.stringify(Oa(wa,Ga,Ia)),additionalFilters:hb?JSON.stringify(hb):null};Ia=Va.remote("filtering",wa);Ja.occur(Ja.LONGER_CHART_TYPE,Ga.getChartType());Ja.occur(Ja.CORE_CUSTOM_FIELD,Ga.howManyCalculatedFieldsUsed());Ja.occur(Ja.LONGER_DATASOURCE_TYPE,wa.tag);return Ia};this.execute=function(wa,
Ga,Ia,hb){wa={executingModelWrapper:JSON.stringify(Oa(wa,Ga,Ia)),additionalFilters:hb?JSON.stringify(hb):null};Ia=Va.remote("execute",wa);Ja.occur(Ja.LONGER_CHART_TYPE,Ga.getChartType());Ja.occur(Ja.CORE_CUSTOM_FIELD,Ga.howManyCalculatedFieldsUsed());Ja.occur(Ja.LONGER_DATASOURCE_TYPE,wa.tag);return Ia};this.easter=function(wa,Ga,Ia,hb,ib,nb){Va.remote("easter",{timestamp:wa,cacheKey:Ga,fromRow:Ia,fromCol:hb,rows:ib,appendRowAtView:nb})};this.getFilterPreparedValue=function(wa,Ga,Ia,hb,ib){wa=Oa(wa,
Ga,Ia);hb&&(wa.model.filter=hb);hb={executingModelWrapper:JSON.stringify(wa),field:JSON.stringify(ib.toJsonObject())};Va.remote("getFilterPreparedValue",hb)};this.parseDateRange=function(wa){wa={dateFilter:JSON.stringify(wa.toJsonObject())};Va.remote("parseDateRange",wa)};this.squareExecute=function(wa,Ga,Ia,hb,ib){wa={executingModelWrapper:JSON.stringify(Oa(wa,Ga,Ia)),additionalFilters:hb?JSON.stringify(hb):null,paletteFitSkin:ib?JSON.stringify(ib):null};Ia=Va.remote("squareExecute",wa);Ja.occur(Ja.SQUARE_CHART_TYPE,
Ga.getChart().getChartTypeName());Ja.occur(Ja.CORE_CUSTOM_FIELD,Ga.howManyCalculatedFieldsUsed());Ja.occur(Ja.SQUARE_DATASOURCE_TYPE,wa.tag);return Ia};this.getSquareFilterPreparedValue=function(wa,Ga,Ia,hb){wa=Oa(wa,Ga);Ia&&(wa.model.filters=Ia);Ia={executingModelWrapper:JSON.stringify(wa),field:JSON.stringify(hb.toJsonObject())};Va.remote("getSquareFilterPreparedValue",Ia)};this.loadMapTemplate=function(wa){wa={refToId:wa?wa.getRefToId():null,refToFullPath:wa?wa.getFullPath():null};Va.remote("loadMapTemplate",
wa)};this.loadMapRegions=function(wa,Ga,Ia){wa={refToId:wa?wa.getRefToId():null,refToFullPath:wa?wa.getFullPath():null,executingModelWrapper:JSON.stringify(Oa(Ga,Ia))};Va.remote("loadMapRegions",wa)};this.getGisServerConfig=function(){Va.remote("getGisServerConfig",{})};this.searchLinkTargetForeignKeyMembers=function(wa,Ga,Ia,hb,ib,nb){wa={foreignKey:ib,bizUiId:nb,executingModelWrapper:JSON.stringify(Oa(wa,Ga)),additionalFilters:Ia?JSON.stringify(Ia):null,linkageContext:JSON.stringify(hb)};Va.remote("searchLinkTargetForeignKeyMembers",
wa)};this.getPresetPalettes=function(wa,Ga){Va.remote("getPresetPalettes",{paletteGroup:wa,paletteType:Ga})};this.previewContinuousColor=function(wa){wa={model:JSON.stringify(wa.toJsonObject())};Va.remote("previewContinuousColor",wa)};this.previewWarningRule=function(wa,Ga,Ia,hb){wa={executingModelWrapper:JSON.stringify(Oa(wa,Ga,Ia)),definition:JSON.stringify(hb.toJsonObject(null))};Va.remote("previewWarningRule",wa)};this.previewBriefOutput=function(wa,Ga,Ia,hb){wa={executingModelWrapper:JSON.stringify(Oa(wa,
Ga,Ia)),definition:JSON.stringify(hb.toJsonObject({isFieldExist:function(ib){return!0}}))};Va.remote("previewBriefOutput",wa)};this.executeBriefOutput=function(wa,Ga,Ia,hb,ib){wa={executingModelWrapper:JSON.stringify(Oa(wa,Ga,Ia)),additionalFilters:hb?JSON.stringify(hb):null,paramNames:JSON.stringify(ib)};Va.remote("executeBriefOutput",wa)};this.makeBasicInsight=function(wa,Ga,Ia,hb){wa={executingModelWrapper:JSON.stringify(Oa(wa,Ga,Ia)),additionalFilters:hb?JSON.stringify(hb):null};Va.remote("makeBasicInsight",
wa)};this.makeAdvancedInsight=function(wa,Ga,Ia,hb){wa={executingModelWrapper:JSON.stringify(Oa(wa,Ga,Ia)),additionalFilters:hb?JSON.stringify(hb):null};Va.remote("makeAdvancedInsight",wa)};var Oa=function(wa,Ga,Ia){var hb={};hb.meta=wa.toJsonObject();hb.model=Ga?Ga.toJsonObject():null;hb.preferences=Ia?Ia.toJsonObject():null;return hb}};pb.CommonJsonParser=new function(){this.parseContontinuousColorLegendModel=function(ua){var W=ua.minText,fa=ua.maxText,Ea=ua.gradientColor,Va=ua.segmentColor;ua=
new Ma;if(Ea){Va=Ea.color1;var Oa=Ea.color2,wa=Ea.color3,Ga=Ea.color4;Ea=(Ea=Ea.pos)?parseFloat(Ea):null;ua.prepareGradient(W,fa,Va,Oa,Ea,wa,Ga)}else ua.prepareSegment(W,fa,Va);return ua}};pb.Icons=new function(){Yb.call(this);var ua=this.protectedMethod,W;this.setComboIconImpl=function(Va){W=Va};this.protectedInit=function(Va,Oa){if(!W)throw Error("Please setComboIconImpl() first.");W.define(Oa,"chart-type");fa(0,0,"chart_table");fa(0,1,"chart_pie");fa(0,2,"chart_ring");fa(0,3,"chart_rose");fa(0,
4,"chart_sunburst");fa(1,0,"chart_heatmap");fa(1,1,"chart_treemap");fa(2,0,"chart_bar");fa(2,1,"chart_msbar");fa(2,2,"chart_stackbar");fa(2,3,"chart_percentbar");fa(3,0,"chart_horizontalbar");fa(3,1,"chart_horizontalmsbar");fa(3,2,"chart_horizontalstackbar");fa(3,3,"chart_horizontalpercentbar");fa(4,0,"chart_line");fa(4,1,"chart_mline");fa(4,2,"chart_area");fa(4,3,"chart_percentarea");fa(5,0,"chart_scatter");fa(5,1,"chart_bubble");fa(6,0,"chart_kpi");fa(6,1,"chart_map");fa(6,2,"chart_radar");fa(6,
3,"chart_composite");fa(6,4,"chart_dial");fa(1,4,"chart_progresscircle");fa(2,4,"chart_progressvbar");fa(3,4,"chart_progresshbar");fa(7,0,"chart_grid");fa(8,0,"chart_customlist");fa(7,1,"chart_gis");fa(4,4,"chart_waterfall");fa(5,4,"chart_funnel");W.define(Oa,"card-item");fa(0,0,"mark_label");fa(0,1,"mark_size");fa(0,2,"mark_color");fa(0,3,"mark_angle");fa(0,4,"mark_empty");fa(0,7,"icon_reset");fa(0,8,"icon_collapsable");fa(0,9,"icon_expandable");W.define(Oa,"meta-tree");fa(0,0,"meta_date");fa(1,
0,"meta_date_selected");fa(0,1,"meta_string");fa(1,1,"meta_string_selected");fa(0,2,"meta_number");fa(1,2,"meta_number_selected");fa(0,3,"meta_tree1");fa(1,3,"meta_tree1_selected");fa(0,4,"meta_tree2");fa(1,4,"meta_tree2_selected");fa(0,5,"meta_table");fa(1,5,"meta_table_selected");fa(0,6,"meta_folder");fa(1,6,"meta_folder_selected");fa(0,7,"meta_elastic");fa(1,7,"meta_elastic_selected");fa(2,0,"meta_table-md");fa(3,0,"meta_table-md_selected");fa(2,1,"meta_table-preagg");fa(3,1,"meta_table-preagg_selected");
fa(2,2,"meta_preagg");fa(3,2,"meta_preagg_selected");W.define(Oa,"operate");fa(0,0,"icon_search");fa(0,2,"icon_left_collapse");fa(0,3,"icon_delete");fa(0,4,"icon_search_auto_select");W.define(Oa,"sort");fa(0,0,"icon_sort-asc-h");fa(0,1,"icon_sort-desc-h");fa(0,2,"icon_sortable-h");fa(1,0,"icon_sort-asc-v");fa(1,1,"icon_sort-desc-v");fa(1,2,"icon_sortable-v");W.define(Oa,"roll");W.define(Oa,"tooltips-bar");fa(0,0,"icon_data_detail");fa(0,1,"icon_bill_linkage");W.define(Oa,"extra");fa(0,0,"icon_extra_close");
fa(0,1,"icon_extra_search");fa(0,2,"icon_extra_setting");fa(1,0,"icon_extra_filter");fa(1,1,"icon_extra_level");W.define(Oa,"toolbar");Ea(0,0,"btn_undo");Ea(0,1,"btn_redo");Ea(0,2,"btn_clear");Ea(0,3,"btn_resume");Ea(0,4,"btn_suspend");Ea(0,5,"btn_export");Ea(0,6,"btn_print");Ea(0,7,"btn_param");Ea(4,0,"btn_analysis");Ea(4,1,"btn_reverse");Ea(4,2,"btn_preview")};var fa=function(Va,Oa,wa){ua.registIcon(Va,Oa,wa)},Ea=function(Va,Oa,wa){fa(Va,Oa,wa);fa(Va+1,Oa,wa+"_hover");fa(Va+2,Oa,wa+"_disabled")}};
pb.ErrorCodeParser=new function(){this.toDisplayText=function(ua,W){switch(ua){case 205403:case 205301:return Mb.get("canNotRun","\u964d\u7ea7");case 402200:return Mb.get("dataEmpty","\u6ca1\u6709\u6570\u636e\u53ef\u4f9b\u5206\u6790\u548c\u5c55\u73b0");case 402202:return Mb.get("relationMissing","\u5206\u6790\u5f15\u64ce\u4e00\u8138\u8499\u5708\u3002");case 403001:return Mb.get("necessaryDimensionMissing","\u7f3a\u5c11\u5fc5\u8981\u7684\u7ef4\u5ea6\uff1a")+W;default:return null}};this.attemptToAppendNecessaryDimensions=
function(ua,W,fa){403001==ua&&(ua=new S,ua.setText(Mb.get("autoAppendNecessaryDimensions","\u5c06\u5fc5\u8981\u5b57\u6bb5\u6dfb\u52a0\u5230\u7b5b\u9009\u5668")),ua.addActionListener(function(Ea){fa()}),ua.getJqUi().css({position:"relative",width:"240px",height:"30px","margin-left":"40px"}),ua.getJqUi().appendTo(W))}};pb.LinkageRegister=new function(){var ua;this.register=function(W){ua=W};this.isDesigntimeSupported=function(){return ua?!0:!1};this.isRuntimeSupported=function(){return ua?!0:!1};this.setup=
function(W,fa,Ea){ua.setup(W,fa,Ea)};this.lookupBizMeta=function(W,fa,Ea){ua.lookupBizMeta(W,fa,Ea)};this.jumpToBizListUi=function(W,fa,Ea){ua.jumpToBizListUi(W.getBizUiId(),W.getUsableDisplayName(),fa,Ea)};this.jumpToBizEditUi=function(W,fa){ua.jumpToBizEditUi(W.getBizUiId(),W.getUsableDisplayName(),fa)}};pb.MapLibraryRegister=new function(){var ua;this.registerTemplateSelector=function(W){ua=W};this.selectTemplate=function(W,fa){ua?ua(W,fa):(W=com.kingdee.bos.qing.core.model.OutsideReference.create("map20180808_china",
"map20180808_china",null,"\u4e2d\u56fd\u7701\u4efd\u793a\u610f\u56fe"),fa(W))}};pb.RtLongerEditableConfirmer=Ya;pb.RtSquareEditableConfirmer=Lb;pb.LongerDesignerOperationJudger=wb;pb.SquareDesignerOperationJudger=eb;var Ja=new function(){var ua;this.hookCollector=function(W){ua=W};this.occur=function(W,fa){try{ua&&ua(W,fa)}catch(Ea){window.console&&console.warn(Ea)}}};Ja.LONGER_CHART_TYPE="longer-chart-type";Ja.SQUARE_CHART_TYPE="square-chart-type";Ja.DSB_WIDGET_TYPE="dsb-widget-type";Ja.CORE_CUSTOM_FIELD=
"core-customfield";Ja.LONGER_SEARCH_DETAILS="longer-search-details";Ja.LONGER_EXPORT_DETAILS="longer-export-details";Ja.SQUARE_DRILLDOWN="square-drilldown";Ja.SQUARE_AFFECTION="square-affection";Ja.SQUARE_NAVIGATETO="square-navigateto";Ja.SQUARE_EXTRA_FILTER="square-extrafilter";Ja.SQUARE_DATASOURCE_TYPE="square-datasource-type";Ja.LONGER_DATASOURCE_TYPE="longer-datasource-type";pb.UserOperationReporter=Ja})();
(function(){function Ya(){var S={};this.protectedMethod=S;S.msToSeconds=function(Ma){Ma=Math.round(.01*Ma);return Math.floor(.1*Ma)+"."+Ma%10};S.createJqTable=function(){var Ma=$("<table>");Ma.css({"border-collapse":"collapse","font-size":"12px"});return Ma};S.createJqTr=function(Ma,Ja){var ua=$("<tr>");Ja&&ua.css({"border-bottom":"1px solid #ccc"});ua.appendTo(Ma);return ua};S.createJqTd=function(Ma,Ja){var ua=$("<td>");ua.css({padding:"4px 4px"});ua.text(Ja);ua.appendTo(Ma);return ua};S.letMeLeft=
function(Ma){Ma.css("text-align","left");return Ma};S.letMeRight=function(Ma){Ma.css("text-align","right");return Ma};S.letMeNoWrap=function(Ma){Ma.css("white-space","nowrap");return Ma};S.letMePending=function(Ma){Ma.css("color","#F90");return Ma};S.letMeWaiting=function(Ma){Ma.css("color","#093");return Ma};S.letMeFinished=function(Ma){Ma.css("color","");return Ma};S.letMeBold=function(Ma){Ma.css({"font-weight":"bold"});return Ma}}"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.core&&(com.kingdee.bos.qing.core={});"undefined"==typeof com.kingdee.bos.qing.core.commonui&&(com.kingdee.bos.qing.core.commonui={});var Lb=com.kingdee.bos.qing.core.commonui,wb,eb,pb,zb,Yb,Mb;(function(){var S=com.kingdee.bos.qing.common;wb=S.DomUtil;S=com.kingdee.bos.qing.framework.common;eb=S.MultilanguageManager.createPackageAccessor(Lb);
pb=S.Resource;S=com.kingdee.bos.qing.ui.component;zb=S.Label;Yb=S.DropdownSelector;S=com.kingdee.bos.qing.core;Mb=S.LinkageRegister})();Lb.DataDetailTable=function(){var S=com.kingdee.bos.qing.core.model.MetaField,Ma=this,Ja,ua=new zb,W=new KTable,fa=1,Ea=-1,Va=0,Oa=2147483647,wa=1,Ga;this.hookOperation=function(nb){var bb=nb?!0:!1;fa=bb?2:1;Ea=bb?0:-1;Va=bb?1:0;ib(nb)};this.getJqUi=function(){if(!Ja){hb();var nb=$(W.getUI());Ja=$("<div>");Ja.append(ua.getJqUi());Ja.append(nb);wb.layoutCtrlWithLRTB(ua.getJqUi(),
0,0,null,0,null,23);wb.layoutCtrlWithLRTB(nb,0,0,null,30,0,null)}return Ja};this.resize=function(){W.relayoutViews()};this.reset=function(){W.removeAllRows();W.updateUI(!1)};this.setTotalRowsCount=function(nb){wa=1;Oa=nb;ua.setText(eb.get("rowsInTotal","\u5171#1\u884c").replace("#1",Oa))};this.setLoader=function(nb){Ga=nb};this.setupColumns=function(nb,bb){var la=new KTStyle;la.setTextAlign("center");la.setBold(!0);la.setColor("#666");la.setBackgroundColor("#E9E9E9");var Jb=W.addRow();Jb.setStyle(la);
Jb.setHeight(22);la=new KTStyle;la.setTextAlign("center");var pa=new KTStyle;pa.setTextAlign("left");var Gb=new KTStyle;Gb.setTextAlign("right");nb+=fa;W.removeAllColumns();W.addColumns(nb);for(var Vb=0;Vb<nb;Vb++){var tb=W.getColumn(Vb),lb=Jb.getCell(Vb);if(Vb<fa)Vb==Va?(lb.setValue(eb.get("rowNum","\u5e8f\u53f7")),tb.setWidth(40),tb.setStyle(la)):Vb==Ea&&(tb.setWidth(20),tb.setStyle(la));else{var Na=bb(Vb-fa);switch(Na.getDataType()){case S.DT_STRING:tb.setWidth(100);tb.setStyle(pa);break;case S.DT_NUMBER:tb.setWidth(80);
tb.setStyle(Gb);break;case S.DT_DATE:tb.setWidth(76);tb.setStyle(pa);break;default:throw Error("Unknown data type.");}lb.setUserObject(Na.getFullName())}}};this.updateColumnsVisible=function(nb,bb,la){for(var Jb=W.getRow(0),pa=fa;pa<W.getColumnsCount();pa++){var Gb=Jb.getCell(pa),Vb=Gb.getUserObject(),tb=nb(Vb);W.getColumn(pa).setHide(!tb);tb&&Gb.setValue(bb(Vb))}la&&W.updateUI(!0)};this.loadRows=function(){var nb=wa,bb=nb+1E3-1;bb=bb>Oa?Oa:bb;Ga(nb,bb)};this.appendRows=function(nb,bb){Ia(nb,bb);
W.updateUI(!1)};this.lazyAppendRows=function(nb,bb){W.lazyAppendData(!0);Ia(nb,bb);W.lazyAppendData(!1)};var Ia=function(nb,bb){var la=new KTStyle;la.setColor("#333");la.setBackgroundColor("#fff");var Jb=new KTStyle;Jb.setColor("#333");Jb.setBackgroundColor("#F3F3F3");for(var pa=0;pa<nb;pa++){var Gb=1==wa%2?la:Jb,Vb=W.addRow();Vb.setHeight(22);Vb.setStyle(Gb);for(Gb=0;Gb<W.getColumnsCount();Gb++){var tb=Vb.getCell(Gb);if(Gb==Ea)tb.setUserObject(wa);else if(Gb==Va)tb.setValue(wa);else{var lb=bb(pa,
Gb-fa);tb.setValue(lb)}}wa++}},hb=function(){var nb=new KTBorderStyle;nb.setBorderWidth(1);nb.setBorderPen("solid");nb.setBorderColor("#E3E3E3");var bb=new KTStyle;bb.setVerticalAlign("bottom");W.setBorder(nb);W.setStyle(bb);W.setDraggableAdjusting(!0,1,0);W.setSyncUIWhenModelChanged(!1);W.setLargeDataMode(!0);W.setFrozenRows(1);W.setFrozenColumns(fa);W.getCellRender().setOutsideVisible(!1);var la;W.addScrollToBottomListener(function(){wa<=Oa&&(clearTimeout(la),la=setTimeout(Ma.loadRows,100))})},
ib=function(nb){if(nb){var bb=-1,la;W.setCellAcrossListener(function(Jb,pa,Gb,Vb){pa=Jb?pa:-1;bb!=pa&&(la&&la.empty(),bb=pa,1<=bb&&(Jb=W.getRow(bb).getCell(Ea).getUserObject(),la=Vb(bb,Ea),nb(la,Jb)))})}else W.setCellAcrossListener(null)}};Lb.MetaFieldSelector=function(){var S=com.kingdee.bos.qing.core.ui.SearchableMetaList,Ma=this,Ja,ua=new Yb;(function(){ua.setDropdownCreator(function(W,fa,Ea){if(!Ja)return[-1,40];var Va=new S;Va.setMetaModel(Ja);Va.setSelectedMetaField(Ma.getSelected(),!0);Va.requestSelectedVisible();
Va.addPressedListener(function(Oa,wa){(Oa=Va.getSelectedLeafMetaField())&&Ea(Oa)});fa=Va.getJqUi();wb.layoutCtrlWithLRTB(fa,0,0,null,0,0,null);fa.appendTo(W);return[-1,21*Math.max(4,Va.getVisibleItemsCount()+1)]});ua.setCustomPainter(function(W,fa){fa.text(W?W.getFullDisplayName():"")})})();this.getJqUi=function(){return ua.getJqUi()};this.setModel=function(W,fa){if(fa){for(var Ea={},Va=0;Va<fa.length;Va++)Ea[fa[Va]]=!0;for(Va=0;Va<W.getTableCount();Va++){fa=W.getTable(Va);for(var Oa=fa.getFieldCount()-
1;0<=Oa;Oa--){var wa=fa.getField(Oa);Ea[wa.getDataType()]||fa.removeField(Oa)}}}Ja=W};this.setSelected=function(W){W=W?Ja.searchMetaField(W):null;ua.setSelectedModel(W)};this.getSelected=function(){var W=ua.getSelectedModel();return W?W.getFullName():null};this.setSelectedListener=function(W){ua.addSelectionListener(function(fa,Ea){Ea&&W(Ma.getSelected())})};this.setEnabled=function(W){ua.setEnabled(W)}};Lb.LinkageHelper=new function(){this.makeItemDisplay=function(Ma){Ma=Ma.getUsableDisplayName();
var Ja=eb.get("linkageJumpTo","\u8054\u67e5\u5230#1");return Ja=Ja.replace("#1",Ma)};this.makeDetailDataLinkageCaption=function(Ma){var Ja=eb.get("linkageFromDetailRow","\u7b2c#1\u884c\uff0c\u5355\u636e\u8054\u67e5\uff1a");return Ja=Ja.replace("#1",Ma)};this.jumpToEditUi=function(Ma,Ja,ua,W,fa){Ja=Ja(function(Ea){fa(eb.get("linkageJumping","\u6b63\u5728\u8df3\u8f6c\u5230\u4e1a\u52a1\u754c\u9762")+"...");Mb.jumpToBizEditUi(Ma,Ea)},function(Ea,Va,Oa){switch(Ea){case 401202:Va=eb.get("linkageJumpingError3",
"\u7531\u4e8e\u672a\u4f7f\u7528\u5230\u8be5\u8054\u67e5\u76ee\u6807\u7684\u5b57\u6bb5\uff0c\u5f53\u524d\u660e\u7ec6\u6570\u636e\u4e0e\u8be5\u8054\u67e5\u76ee\u6807\u65e0\u5173\u3002");fa(Va,!1);S(Ea+" "+Va);break;default:S(Ea+"\r\n"+Va+"\r\n"+Oa)}return!0});Ja.setShowBlocking(!1);Ja.searchDetailRowLinkTargetForeignKeyMember(ua,W,Ma.getForeignKey(),Ma.getBizUiId())};this.makeJsonLongerClickedContext=function(Ma){return{forLonger:Ma}};this.makeJsonSquareClickedContext=function(Ma){return{forSquare:Ma.toJsonObject()}};
this.jumpToListUi=function(Ma,Ja,ua,W,fa,Ea,Va,Oa){ua=ua(function(wa){var Ga=wa.foreignKeyMembersCachedId;wa=wa.linkageMaxNums;0<wa?(wa=eb.get("confirmGoOnLinkageJump","\u8054\u67e5\u76ee\u6807\u5df2\u8d85\u51fa#1\u6761\u8bb0\u5f55\u7684\u4e0a\u9650\uff0c\u5c06\u65e0\u6cd5\u5217\u51fa\u5168\u90e8\u7ed3\u679c\u3002").replace("#1",wa),Oa(wa,function(Ia){Ia||Va(eb.get("linkageJumping","\u6b63\u5728\u8df3\u8f6c\u5230\u4e1a\u52a1\u754c\u9762")+"...");Mb.jumpToBizListUi(Ma,Ga,Ia)})):(Va(eb.get("linkageJumping",
"\u6b63\u5728\u8df3\u8f6c\u5230\u4e1a\u52a1\u754c\u9762")+"..."),Mb.jumpToBizListUi(Ma,Ga,!1))},function(wa,Ga,Ia){switch(wa){case 401201:Ga=eb.get("linkageJumpingError1","\u5173\u8054\u5b57\u6bb5\u4e0d\u5b58\u5728\u3002");Va(Ga,!1);S(wa+" "+Ga);break;case 402202:Ga=eb.get("linkageJumpingError2","\u5173\u8054\u5b57\u6bb5\u65e0\u6cd5\u5efa\u7acb\u5173\u7cfb\u3002");Va(Ga,!1);S(wa+" "+Ga);break;case 402200:case 402230:Ga=eb.get("linkageJumpingError4","\u8054\u67e5\u76ee\u6807\u6ca1\u6709\u6570\u636e\u53ef\u5c55\u793a\u3002")+
wa;Va(Ga,!1);S(wa+" "+Ga);break;default:S(wa+"\r\n"+Ga+"\r\n"+Ia)}return!0});ua.setShowBlocking(!1);ua.searchLinkTargetForeignKeyMembers(W,fa,Ea,Ja,Ma.getForeignKey(),Ma.getBizUiId())};var S=function(Ma){window.console&&console.warn(Ma)}};Lb.AbstractCoveredSlideDownUi=function(){var S,Ma=this;this.show=function(ua){if(S)Ma.hide();else{S=$("<div>");S.css("z-index",65535);S.appendTo(ua);wb.layoutCtrlWithLRTB(S,0,0,null,0,0,null);ua=S.prop("clientWidth");var W=S.prop("clientHeight");ua=Ja(ua,W);W=ua.css("height");
ua.css({height:0});ua.appendTo(S);ua.animate({height:W},200,function(){Ma.protectedAfterSlidedDown()})}};var Ja=function(ua,W){var fa=$("<div>");fa.css("z-index",1);fa.addClass("sa-extra");Ma.protectedInitJqUi(ua,W,fa);return fa};this.protectedInitJqUi=function(ua,W,fa){throw Error("Implement");};this.protectedAfterSlidedDown=function(){};this.hide=function(){S&&(S.remove(),S=null)};this.protectedMethod={getComfortableSize:function(ua,W){var fa=Math.max(.1,Math.min(.6,ua/window.screen.width));ua=
parseInt((-.7*fa+1.02)*ua);fa=Math.max(.1,Math.min(.6,W/window.screen.height));W=parseInt((-.7*fa+1.02)*W);return[ua,W]},createPromptLabel:function(ua){var W=$("<div>");W.text(ua);W.css({color:"#666","text-align":"center"});wb.layoutCtrlWithLRTB(W,0,0,null);wb.layoutCtrlMiddleAlign(W,20);return W},initManualClosable:function(ua){S&&S.on("click",function(W){ua.animate({height:0},200,function(){Ma.hide()})})},getJqModalLayer:function(){return S}}};Lb.LongtimeWaitingMask=function(){var S,Ma,Ja,ua,W,
fa;this.hookOwner=function(bb,la){Ma=bb;S=la};this.setIconVisible=function(bb){bb?(Ja=$("<div>"),Ja.addClass("sa-common-loading-icon"),Ja.css("background-image",pb.getIconUrl("common","loading.gif")),Ja.css({"margin-left":"-20px","margin-top":"-30px"}),wb.layoutCtrl(Ja,"50%","50%",40,40)):Ja&&(Ja.remove(),Ja=null)};this.showWaiting=function(bb,la){if(!ua){var Jb=$("<div>");wb.layoutCtrlWithLRTB(Jb,0,0,null,0,0,null);var pa=la?Ia(la):null;Jb.on("mouseenter",function(Gb){pa&&hb(pa);Ea()});Jb.on("mouseleave",
function(Gb){pa&&ib(pa);ib(W);Va()});Ja&&Ja.appendTo(Jb);ua=$("<div>");ua.css("text-align","center");ua.append($("<span>"));ua.append(Ga());pa&&ua.append(pa);ua.appendTo(Jb);W=wa();W.appendTo(Jb);wb.layoutCtrlWithLRTB(ua,4,4,null,"50%",null,null);S?S(Jb,ua):(Jb.css("color","#666"),Jb.addClass("sa-common-loading-modallayer"));Ma.append(Jb);Va()}ua.children(":eq(0)").text(bb)};this.hideWaiting=function(){ua&&(ua.parent().remove(),fa=W=ua=null)};this.hookProgressDisplayer=function(bb){fa=bb;Ea()};var Ea=
function(){bRelayoutProgress=!0;if(fa){var bb=ua.parent(),la=bb.prop("clientWidth"),Jb=bb.prop("clientHeight"),pa=fa(300>la||120>Jb);fa=null;var Gb=W.prop("scrollTop");W.empty();if(pa){wb.layoutCtrl(pa,12,12,null,null);bb.append(pa);bb=pa.prop("offsetWidth");var Vb=pa.prop("offsetHeight");Oa(la,Jb,bb,Vb);bRelayoutProgress=!1;W.data("contentSize",[bb,Vb]);W.append(pa);Gb&&W.prop("scrollTop",Gb)}nb(W)}else hb(W);Va(bRelayoutProgress)},Va=function(bb){var la=ua.prop("offsetHeight"),Jb=Ja?15:-(la>>1),
pa="";W.is(":visible")&&(W.is(":empty")?W.css("display","none"):(bb&&(Jb=ua.parent(),bb=Jb.prop("clientWidth"),Jb=Jb.prop("clientHeight"),pa=W.data("contentSize"),Oa(bb,Jb,pa[0],pa[1])),bb=ua.parent().prop("clientHeight")>>1,Jb=W.prop("offsetTop"),Jb=-(bb-Jb+6+la),pa="none"));ua.css("margin-top",Jb+"px");Ja&&Ja.css("display",pa)},Oa=function(bb,la,Jb,pa){var Gb=4+ua.prop("offsetHeight")+6;bb=Math.max(0,bb-4);la=Math.max(0,la-4-Gb);Jb=Math.min(Jb+26,bb);pa=Math.min(pa+26,la);wb.layoutCtrl(W,1+(bb-
Jb>>1),1+(la-pa>>1)+Gb,Jb,pa)},wa=function(){var bb=$("<div>");bb.css({display:"none",overflow:"auto","border-radius":"6px",border:"1px solid #ddd","background-color":"#fff",color:"#333"});return bb},Ga=function(){var bb=0,la=function(){bb=++bb%3;for(var pa="",Gb=0;Gb<=bb;Gb++)pa+=".";Jb.text(pa);Jb.is(":visible")&&setTimeout(la,1E3)},Jb=$("<span>");Jb.css({display:"inline-block",width:"12px","text-align":"left"});setTimeout(la,0);return Jb},Ia=function(bb){setTimeout(function(){nb(la)},1E4);var la=
$("<span>");la.text(eb.get("cancel","\u53d6\u6d88"));la.on("click",function(Jb){bb()});la.css({display:"none","margin-left":"16px",cursor:"pointer",color:"#88d"});return la},hb=function(bb){bb.data("appeared")?bb.css("display",""):bb.data("display_request",!0)},ib=function(bb){bb.data("appeared")?bb.css("display","none"):bb.removeData("display_request")},nb=function(bb){bb.data("appeared",!0);bb.data("display_request")&&(bb.removeData("display_request"),hb(bb))}};Lb.DataPreparingProgressParser=new function(){Ya.call(this);
var S=this.protectedMethod;this.getWaitingText=function(){return eb.get("dataPreparingWaiting","\u6570\u636e\u51c6\u5907\u4e2d")};this.makeUiCreator=function(Ma){return function(Ja){if(Ja){Ja=0;for(var ua=!1,W=Ma.tables,fa=0;fa<W.length;fa++){var Ea=W[fa],Va=Ea.exeMs;(Ea=Ea.writeRows)?Ja+=Ea:Va&&(ua=!0)}Ja?Ja=eb.get("dataPreparingWaitingPrompt3","\u5df2\u7d2f\u8ba1\u63d0\u53d6\u6570\u636e#1\u884c\u3002").replace("#1",Ja):(Ja=ua?eb.get("dataPreparingWaitingPrompt2","\u5df2\u5f00\u59cb\u6267\u884c\uff0c\u8017\u65f6#1\u79d2\u3002"):
eb.get("dataPreparingWaitingPrompt1","\u6392\u961f\u7b49\u5f85\u4e2d\uff0c\u8017\u65f6#1\u79d2\u3002"),Ja=Ja.replace("#1",S.msToSeconds(Ma.totalMs||0)));ua=$("<span>");ua.text(Ja);Ja=ua}else for(Ja=S.createJqTable(),ua=Ma.tables,W=0;W<ua.length;W++){Ea=ua[W];fa=Ea.name;Va=Ea.type;var Oa=Ea.exeMs,wa=Ea.rwMs,Ga=Ea.writeRows;if(Ea.finished){Ea=eb.get("finished","\u5df2\u5b8c\u6210");var Ia=S.letMeFinished}else Oa?(Ea=eb.get("extracting","\u4f20\u8f93\u4e2d"),Ia=S.letMeWaiting):(Ea=eb.get("pending","\u672a\u5f00\u59cb"),
Ia=S.letMePending);Oa=(Oa=(Oa?Oa:0)+(wa?wa:0))?eb.get("seconds","#1\u79d2").replace("#1",S.msToSeconds(Oa)):"";Ga=Ga?eb.get("rows","#1\u884c").replace("#1",Ga):"";wa=S.createJqTr(Ja,1<ua.length);S.letMeLeft(S.createJqTd(wa,fa));S.letMeLeft(S.createJqTd(wa,Va));S.letMeNoWrap(Ia(S.createJqTd(wa,Ea)));S.letMeNoWrap(S.letMeRight(S.createJqTd(wa,Oa)));S.letMeNoWrap(S.letMeRight(S.createJqTd(wa,Ga)))}return Ja}}};Lb.ExecutingProgressParser=new function(){Ya.call(this);var S=this.protectedMethod;this.getWaitingText=
function(){return eb.get("executingWaiting","\u65b9\u6848\u6267\u884c\u4e2d")};this.makeUiCreator=function(Ma){return function(Ja){var ua=Ma.period;if("JOIN"==ua){if(Ja){var W=Ma.totalMs||0;W=eb.get("tableJoinWaitingPrompt","\u6b63\u5728\u5173\u8054\u8868\uff0c\u8017\u65f6#1\u79d2\u3002").replace("#1",S.msToSeconds(W));Ja=$("<span>");Ja.text(W);W=Ja}else{Ja=S.createJqTable();ua=Ma.joins;for(var fa=0;fa<ua.length;fa++){var Ea=ua[fa],Va=Ea.left,Oa=Ea.right,wa=Ea.usedMs;Ea.finished?(Ea=eb.get("finished",
"\u5df2\u5b8c\u6210"),wa=S.letMeFinished):wa?(Ea=eb.get("tableJoining","\u5173\u8054\u4e2d"),W=eb.get("seconds","#1\u79d2").replace("#1",S.msToSeconds(wa)),wa=S.letMeWaiting):(Ea=eb.get("pending","\u672a\u5f00\u59cb"),W="",wa=S.letMePending);var Ga=S.createJqTr(Ja,1<ua.length);S.letMeLeft(S.createJqTd(Ga,Va));S.letMeNoWrap(S.createJqTd(Ga,eb.get("tableJoin","\u5173\u8054")));S.letMeLeft(S.createJqTd(Ga,Oa));S.letMeNoWrap(wa(S.createJqTd(Ga,Ea)));S.letMeNoWrap(S.letMeRight(S.createJqTd(Ga,W)))}W=Ja}return W}if("EXEC"==
ua)return Ja?(W=Ma.totalMs||0,W=eb.get("executingWaitingPrompt","\u7d2f\u8ba1\u8017\u65f6#1\u79d2\u3002").replace("#1",S.msToSeconds(W)),Ja=$("<span>"),Ja.text(W),W=Ja):((W=Ma.visualEngine)?(ua=W.usedMs||0,W=eb.get("executingWaitingPromptB1","\u53ef\u89c6\u5316\u5f15\u64ce\u8017\u65f6#1\u79d2\u3002"),W=W.replace("#1",S.msToSeconds(ua))):(W=Ma.cubeEngine,Ja=W.visitedDataRows||0,ua=W.usedMs||0,W=eb.get("executingWaitingPromptA1","\u6570\u636e\u8bbf\u95ee\u81f3#2\u884c\uff0c\u7d2f\u8ba1\u8017\u65f6#1\u79d2\u3002"),
W=W.replace("#1",S.msToSeconds(ua)),W=W.replace("#2",Ja)),Ja=$("<span>"),Ja.text(W),W=Ja),W;console&&console.log("Invalid progress model: "+JSON.stringify(Ma));return $("<span>")}}};Lb.ConsumingStatistics=function(){Ya.call(this);var S=this.protectedMethod,Ma=!1;this.setEmbeded=function(Ea){Ma=Ea};this.parse=function(Ea,Va,Oa){var wa=$("<div>");wa.css({"background-color":"#fff",padding:"10px",overflow:"auto"});if(Ea){var Ga=wa.append;var Ia=Ea.tables;if(0==Ia.length)Ia=$("<div>"),Ia.text("\u6ca1\u6709\u53d1\u751f\u5b9e\u65f6\u6570\u636e\u63d0\u53d6\u3002");
else{var hb=Ea.totalMs;Ea=$("<div>");Ea.text("\u6570\u636e\u51c6\u5907\uff0c\u603b\u5171\u8017\u65f6\uff1a#1 \u79d2\u3002".replace("#1",W(hb)));var ib=[["\u6570\u636e\u8868"],["\u7c7b\u578b"],["\u6267\u884c\u53d6\u6570(\u79d2)",!0],["\u5199\u5165\u6570\u636e\u6587\u4ef6(\u79d2)",!0],["\u8bfb\u53d6\u884c\u6570",!0],["\u5199\u5165\u884c\u6570",!0]];hb=S.createJqTable();for(var nb=S.letMeBold(S.createJqTr(hb,!0)),bb=0;bb<ib.length;bb++){var la=ib[bb][1],Jb=S.createJqTd(nb,ib[bb][0]);la&&ua(Jb)}for(bb=
0;bb<Ia.length;bb++){nb=Ia[bb];ib=nb.name;la=nb.type;Jb=nb.exeMs;var pa=nb.rwMs,Gb=nb.finished?!0:!1,Vb=nb.readRows,tb=nb.writeRows;nb=S.createJqTr(hb,!0);!Gb&&S.letMePending(nb);S.createJqTd(nb,ib);S.createJqTd(nb,la);ua(S.createJqTd(nb,Jb||0===Jb?W(Jb):""));ua(S.createJqTd(nb,pa||0===pa?W(pa):""));ua(S.createJqTd(nb,fa(Vb)));ua(S.createJqTd(nb,fa(tb)))}Ia=$("<div>");Ia.append(Ea);Ia.append(hb);Ma||(Ea=Ia,hb=Ea.append,bb=$("<li>"),bb.text("\u5982\u679c\u4e0a\u8868\u7684\u8bfb\u53d6\u884c\u6570\u8fdc\u8fdc\u5927\u4e8e\u5199\u5165\u884c\u6570\uff0c\u53ef\u68c0\u67e5\u201c\u6570\u636e\u51c6\u5907\u201d\u8bbe\u7f6e\u4e2d\u7684\u8fc7\u6ee4\u9879\uff0c\u907f\u514d\u4f7f\u7528\u8ba1\u7b97\u5b57\u6bb5\u3001\u6570\u636e\u7c7b\u578b\u8f6c\u6362\u8fc7\u7684\u5b57\u6bb5\u505a\u8fc7\u6ee4\u3002"),
nb=$("<li>"),nb.text("\u5982\u679c\u754c\u9762\u957f\u65f6\u95f4\u505c\u987f\u5728\u201c\u6570\u636e\u51c6\u5907\u4e2d\u201d\uff0c\u53ef\u80fd\u9700\u8981\u8003\u8651\u5728\u4e1a\u52a1\u4e3b\u9898\u7684\u201c\u6570\u636e\u51c6\u5907\u201d\u8bbe\u7f6e\u4e2d\u9009\u62e9\u201c\u5b9a\u65f6\u9884\u63d0\u53d6\u201d\u3002"),ib=$("<ul>"),ib.append(bb),ib.append(nb),hb.call(Ea,ib))}Ga.call(wa,Ia);wa.append("<br>");if(Va){Ga=$("<div>");if(bb=Va.finished?!0:!1)if((Ia=Va.joins)&&0!=Ia.length){ib="\u5176\u4e2d\u5305\u542b\u8868\u5173\u8054\u8017\u65f6 #1 \u79d2\u3002".replace("#1",
W(Va.totalMs));Ga.text(ib);bb=[["\u5de6\u8868"],["JOIN"],["\u53f3\u8868"],["\u8017\u65f6(\u79d2)",!0],["\u5de6\u8868\u884c\u6570",!0],["\u53f3\u8868\u884c\u6570",!0],["\u8fde\u63a5\u540e\u884c\u6570",!0]];Va=S.createJqTable();hb=S.letMeBold(S.createJqTr(Va,!0));for(Ea=0;Ea<bb.length;Ea++)ib=bb[Ea][0],nb=bb[Ea][1],ib=S.createJqTd(hb,ib),nb&&ua(ib);for(Ea=0;Ea<Ia.length;Ea++){hb=Ia[Ea];bb=hb.finished?!0:!1;nb=hb.left;ib=hb.right;la=hb.usedMs;Jb=hb.leftJoined;pa=hb.rightJoined;Gb=hb.join;Vb=hb.leftRows;
tb=hb.rightRows;var lb=hb.rows;hb=S.createJqTr(Va,!0);!bb&&S.letMePending(hb);Ja(S.createJqTd(hb,nb),Jb);S.createJqTd(hb,Gb);Ja(S.createJqTd(hb,ib),pa);ua(S.createJqTd(hb,la?la||0===la?W(la):"":"\u7f13\u5b58"));ua(S.createJqTd(hb,fa(Vb)));ua(S.createJqTd(hb,fa(tb)));ua(S.createJqTd(hb,fa(lb)))}Ia=$("<div>");Ia.append(Ga);Ia.append(Va);Ma||(Va=Ia.append,Ga=$("<li>"),Ga.text("\u5982\u679c\u957f\u65f6\u95f4\u8868\u5173\u8054\uff0c\u53ef\u68c0\u67e5\u201c\u6570\u636e\u51c6\u5907\u201d\u8bbe\u7f6e\u4e2d\u7684\u8868\u95f4\u5173\u7cfb\uff0c\u907f\u514d\u5173\u8054\u8868\u4e24\u8fb9\u90fd\u201c\u4fdd\u7559\u65e0\u6cd5\u5173\u8054\u7684\u884c\u201d\uff1b\u5c3d\u91cf\u907f\u514d\u591a\u8868\u5173\u8054\uff0c\u5fc5\u8981\u65f6\u6539\u7528\u201c\u81ea\u5b9a\u4e49SQL\u201d\u3002"),
Ea=$("<ul>"),Ea.append(Ga),Va.call(Ia,Ea));Va=Ia}else Ga.text("\u6ca1\u6709\u8868\u5173\u8054\u3002"),Va=Ga;else Ga.text("\u8868\u5173\u8054\uff0c\u6ca1\u6709\u6b63\u5e38\u5b8c\u6210\u3002"),Va=Ga;Oa?(Ga=wa.append,Ia=$("<div>"),Ea=!1,Oa.finished&&(hb=Oa.totalMs,Oa=Oa.cubeEngine)&&(Ea=!0,Oa=Oa.visitedDataRows,hb="\u6267\u884c\u65b9\u6848\uff0c\u8bbf\u95ee\u6570\u636e #2 \u884c\uff0c\u5171\u7d2f\u8ba1\u8017\u65f6 #1 \u79d2\u3002".replace("#1",W(hb)),hb=hb.replace("#2",Oa),Ia.text(hb)),Ea||Ia.text("\u6267\u884c\u65b9\u6848\uff0c\u6ca1\u6709\u6b63\u5e38\u5b8c\u6210\u3002"),
Ga.call(wa,Ia)):(Oa=$("<div>"),Oa.text("\u65b9\u6848\u6267\u884c\u672a\u6b63\u5e38\u7ed3\u675f\u3002"),wa.append(Oa))}else Va=$("<div>"),Va.text("\u8868\u5173\u8054\u672a\u6b63\u5e38\u7ed3\u675f\u3002");wa.append(Va)}else Oa=$("<div>"),Oa.text("\u6570\u636e\u51c6\u5907\u672a\u6b63\u5e38\u7ed3\u675f\u3002"),wa.append(Oa);return wa};var Ja=function(Ea,Va){if(Ea.text()!=Va){var Oa=$("<div>");Oa.text(Va);Oa.css("color","#abc");Ea.append(Oa)}},ua=function(Ea){S.letMeNoWrap(S.letMeRight(Ea))},W=function(Ea){Ea+=
"";var Va=Ea.length;if(3<Va){var Oa=Ea.substring(0,Va-3);Ea=Ea.substring(Va-3);return Oa+"."+Ea}for(Oa=Va;3>Oa;Oa++)Ea="0"+Ea;return"0."+Ea},fa=function(Ea){return Ea||0===Ea?Ea+"":""}}})();(function(){"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.exportmanage&&(com.kingdee.bos.qing.exportmanage={});var Ya=com.kingdee.bos.qing.exportmanage,Lb,wb,eb;(function(){var pb=com.kingdee.bos.qing;Lb=pb.CodeLoader;pb=com.kingdee.bos.qing.ui.component;wb=pb.MenuModel;eb=pb.MenuItemModel})();Ya.ExportMenuCreator=
function(){var pb,zb,Yb,Mb,S;this.create=function(Ga,Ia,hb,ib,nb){Mb=hb;pb=nb;Ga&&(hb=new wb,hb.addItemModel(Ma(fa,"EXCEL...")),hb.addItemModel(Ma(Ea,"PDF...")),hb.addItemModel(Ma(Va,"PNG")),zb=ib(hb,"btn_export",pb("exportMenuMormal","\u5bfc\u51fa")),zb.setEnabled(!1));Ia&&(hb=new wb,hb.addItemModel(Ma(Oa,pb("printSubMenuPreview","\u6253\u5370")+"...")),hb.addItemModel(Ma(wa,pb("printSubMenuSetting","\u8bbe\u7f6e")+"...")),Yb=ib(hb,"btn_print",pb("printMenuNormal","\u6253\u5370")),Yb.setEnabled(!1));
return Ga&&Ia?[zb,Yb]:Ga?[zb]:Ia?[Yb]:[]};var Ma=function(Ga,Ia){Ga=new eb(Ga);Ga.setText(Ia);return Ga},Ja=function(Ga){var Ia=Lb.createSafety();Ia.pushJs("export/export-manage.js");Ia.pushI18n("export","export-manage");Ia.load(function(){S||(S=new Ya.ExportManage,S.setDependentApi(Mb),S.setMenuStateUpdater(ua,W));Ga()})},ua=function(Ga){Ga?(zb.setText(pb("exportMenuDoing","\u6b63\u5728\u5bfc\u51fa...")),zb.setEnabled(!1)):(zb.setText(pb("exportMenuMormal","\u5bfc\u51fa")),zb.setEnabled(!0))},W=
function(Ga){Ga?(Yb.setText(pb("printMenuDoing","\u6b63\u5728\u751f\u6210\u9884\u89c8...")),Yb.setEnabled(!1)):(Yb.setText(pb("printMenuNormal","\u6253\u5370")),Yb.setEnabled(!0))},fa=function(Ga){Ja(function(){S.exportExcel()})},Ea=function(Ga){Ja(function(){S.exportPdf()})},Va=function(Ga){Ja(function(){S.exportPng()})},Oa=function(Ga){Ja(function(){S.printPreview()})},wa=function(Ga){Ja(function(){S.printSetting()})}}})();(function(){function Ya(){var g=this,d=new Ca,e,c,b,q,t,w=!1,x,A,N,ba,ca,M,ia,sa,mb=!1,Wa,xb=!1,gb,fb,Da,Y,z=!1;this.setLost=function(I){z=I};this.getTable=function(){return fb};this.setTable=function(I){fb=I};this.addPropertyChangeListener=function(I){d.addListener(I)};this.removePropertyChangeListener=function(I){d.removeListener(I)};var D=function(I){d.fireEvent(function(P){P(new Ma(g),I)})};this.getFullName=function(){Da||(Da=u.encodeFullName(fb.getName(),e));return Da};this.getFullDisplayName=
function(){if(!Y){var I=fb.searchSubViewContainsField(g);I=I?I.getDisplayName():fb.getDisplayName();Y=u.encodeFullName(I,c)}return Y};this.setPureName=function(I){e=I;Da=null};this.getPureName=function(){return e};this.setDisplayName=function(I){c!=I&&(c=I,Y=null,D(Ya.KEY_DISPLAYNAME))};this.getDisplayName=function(){return c};this.getComplexText=function(){return" ["+g.getDisplayName()+"] "};this.setDataType=function(I){b=I};this.getDataType=function(){return b};this.setFormatString=function(I){q!=
I&&(q=I,D(Ya.KEY_FORMATSTRING))};this.getFormatString=function(){return q};this.setFiscalYearStart=function(I){t!=I&&(t=I,D(Ya.KEY_FISCALYEARSTART))};this.getFiscalYearStart=function(){return t};this.getSortAccording=function(){return ca};this.getCustomOrder=function(){return M};this.isOrderDefined=function(){return ca||M};this.defineOrder=function(I,P){ca=I;M=P;D(Ya.KEY_SORTACCORDING)};this.setFormula=function(I){ia!=I&&(ia=I,D(Ya.KEY_FORMULA))};this.getFormula=function(){return ia};this.getFormulaDependence=
function(){return sa};this.setFormulaDependence=function(I){sa=I};this.getFormulaAggStatus=function(){return Wa};this.setFormulaAggStatus=function(I){Wa!=I&&(Wa=I,D(Ya.KEY_FORMULA))};this.isRelativeAggregation=function(){return Wa==Ya.FORMULA_STATUS_AGG||Wa==Ya.FORMULA_STATUS_INTERLINE||Wa==Ya.FORMULA_STATUS_WITHTOTAL||gb};this.isInvalid=function(){return mb};this.setInvalid=function(I){mb!=I&&(mb=I,D(Ya.KEY_FORMULA))};this.setHierachy=function(I){A=I};this.getHierachy=function(){return A};this.isUserCreated=
function(){return xb};this.setUserCreated=function(I){xb=I};this.isPreAgg=function(){return gb};this.isHide=function(){return w};this.getGroupName=function(){return x};this.isParentChildDimension=function(){return x?!0:!1};this.isCanAsDimension=function(){return g.isRelativeAggregation()?!1:!0};this.isCanAsMeasure=function(){return!0};this.getDimensionNecessity=function(){return N};this.isNecessaryDimension=function(){if(g.isParentChildDimension()){var I=fb.getParentChildDimensionByName(x);if(null!=
I)return I.isNecessaryDimension()}else if(Mb.isNecessary(N))return!0;return!1};this.getCustomPeriod=function(){return ba};this.mergeFrom=function(I){c=I.getDisplayName();b=I.getDataType();x=I.getGroupName();N=I.getDimensionNecessity();w=I.isHide();ba=I.getCustomPeriod();gb=I.isPreAgg()};this.clone=function(){var I=new Ya;I.fromJsonObject(g.toJsonObject());I.setInvalid(mb);I.setFormulaAggStatus(Wa);return I};this.fromJsonObject=function(I){Y=Da=null;e=I.name;c=I.displayName;b=I.dataType;q=I.formatString;
var P=parseInt(I.fiscalYearStart);P&&(t=P);ca=I.sortAccording;M=I.customOrder;if(P=I.formula)ia=P,sa=I.dependence,mb="true"==I.invalid?!0:!1,Wa=I.formulaAggStaus;xb="true"==I.userCreated?!0:!1;"true"==I.preAgg&&(gb=!0);w="true"==I.hide?!0:!1;x=I.group;N=I.necessary;ba=(I=I.customPeriod)?I:null};this.toJsonObject=function(){var I={};I.name=e;I.displayName=c;I.dataType=b;I.formatString=q;t&&(I.fiscalYearStart=t);ca&&(I.sortAccording=ca);M&&(I.customOrder=M);ia&&(I.formula=ia,I.dependence=sa);xb&&(I.userCreated=
"true");gb&&(I.preAgg="true");w&&(I.hide="true");x&&(I.group=x);N&&(I.necessary=N);ba&&(I.customPeriod=ba);z&&(I.lost=!0);return I}}function Lb(g){var d=this,e=g,c,b,q=[],t,w=new Ca,x,A;this.addSthChangedListener=function(gb){w.addListener(gb)};this.removeSthChangedListener=function(gb){w.removeListener(gb)};this.removeAllSthChangedListener=function(){w.removeAllListener()};var N=function(gb,fb){w.fireEvent(function(Da){Da(d,gb,fb)})},ba=function(gb,fb){N(fb,gb)};this.getName=function(){return e};
this.getDisplayName=function(){return c};this.getParentName=function(){return b};this.getFieldCount=function(){return q.length};this.getField=function(gb){return q[gb]};this.insertField=function(gb,fb){q.splice(fb,0,gb);ca(gb);N()};var ca=function(gb){gb.addPropertyChangeListener(ba);gb.setTable(d)};this.removeField=function(gb){if(0>gb||gb>=q.length)throw Error("Illegal arguments.");gb=q.splice(gb,1)[0];gb.removePropertyChangeListener(ba);gb.setTable(null);N()};this.searchMetaField=function(gb){var fb;
M(q,function(Da){return gb==Da.getPureName()?(fb=Da,!0):!1});return fb};this.isAnyCalculationFieldExist=function(){var gb=!1;M(q,function(fb){return fb.getFormula()?gb=!0:!1});return gb};var M=function(gb,fb){for(var Da=0;Da<gb.length&&!fb(gb[Da]);Da++);};this.searchHierachy=function(gb){var fb=-1,Da=null;M(q,function(Y){if(Y=Y.getHierachy())for(var z=0;z<Y.length;z++)if(gb==Y[z])return fb=z,Da=Y,!0;return!1});return 0<=fb?[Da,fb]:null};this.getParentChildDimensionByName=function(gb){if(t)for(var fb=
0;fb<t.length;fb++)if(t[fb].getName()==gb)return t[fb];return null};this.getNecessaryParentChildDimensions=function(){var gb=[];if(t)for(var fb=0;fb<t.length;fb++){var Da=t[fb];Da.isNecessaryDimension()&&gb.push(Da)}return gb};this.getDimensionNecessityMetaFields=function(){var gb=[];if(t)for(var fb=0;fb<t.length;fb++){var Da=t[fb];Da.getDimensionNecessity()&&(Da=d.searchMetaField(Da.getIdFieldName()),gb.push(Da))}for(fb=0;fb<q.length;fb++)Da=q[fb],Da.getDimensionNecessity()&&gb.push(Da);return gb};
this.hasSubViews=function(){return x&&0<x.length};this.getSubViews=function(gb){!x&&gb&&(x=[]);return x};this.getViewItems=function(gb){!A&&gb&&(A=[]);return A};this.traversalSubViews=function(gb){ia(x,gb)};var ia=function(gb,fb){for(gb=gb.slice();0<gb.length;){var Da=gb.shift();if(fb(Da))break;(Da=Da.getSubViews())&&(gb=gb.concat(Da.slice()))}};this.updateFieldAtView=function(gb,fb,Da,Y,z){var D=A;Da&&x&&d.traversalSubViews(function(Z){var G=!1;Z.getName()==Da&&(D=Z.getViewItems(!0),G=!0);return G});
var I=-1;if(D){var P=D;if(Y)for(var O=0;O<D.length;O++){var R=D[O];if(R instanceof eb&&R.getName()==Y){P=R.getFieldNames();break}}if(fb)z="number"==typeof z&&0<=z?z:P.length,P.splice(z,0,gb);else for(O=P.length-1;0<=O;O--)P[O]==gb&&(P.splice(O,1),I=O)}return I};this.searchSubViewContainsField=function(gb,fb){if(!x)return null;var Da=gb.getPureName(),Y=null;d.traversalSubViews(function(z){var D=!1,I;a:{if(I=z.getViewItems())for(var P=0;P<I.length;P++){var O=I[P];if(O==Da){I=!0;break a}else if(O instanceof
eb)for(var R=O.getFieldNames(),Z=0;Z<R.length;Z++)if(Da==R[Z]){fb&&(fb[0]=O);I=!0;break a}}I=!1}I&&(Y=z,D=!0);return D});return Y};this.carryOut=function(){return[q,t,x,A]};this.mergeFrom=function(gb){c=gb.getDisplayName();b=gb.getParentName();var fb=gb.carryOut(),Da=fb[0];gb=fb[2];var Y=fb[3];t=fb[1];var z=[],D=[];for(fb=0;fb<Da.length;fb++){for(var I=Da[fb],P,O=!1,R=0;R<q.length;R++)if(P=q[R],P.getPureName()==I.getPureName()){P.mergeFrom(I);O=z[R]=!0;break}O||(P=I.clone(),P.setTable(d));D.push(P)}for(fb=
0;fb<q.length;fb++)z[fb]||(P=q[fb],P.isUserCreated()&&D.push(P));q=D;Da={};for(fb=0;fb<q.length;fb++)P=q[fb],Da[P.getPureName()]=P;if((x=mb(x,gb,Da))||Y){!A&&(A=[]);for(var Z in Da)A.push(Z);A=sa(A,Y,Da)}else A=null};var sa=function(gb,fb,Da){var Y={},z=null;if(fb){z=[];for(var D=0;D<fb.length;D++){var I=fb[D];if(I instanceof eb){var P={},O=I.clone(P);z.push(O);Y[I.getName()]=[O,P]}else z.push(I),Y[I]=!0}}if(gb)for(D=0;D<gb.length;D++)if(I=gb[D],I instanceof eb){if(P=Y[I.getName()]){O=P[0];P=P[1];
I=I.getFieldNames();for(var R=0;R<I.length;R++){var Z=I[R];P[Z]||((fb=Da[Z])&&fb.isUserCreated()&&O.getFieldNames().push(Z),delete Da[Z])}}}else Y[I]||((fb=Da[I])&&fb.isUserCreated()&&(!z&&(z=[]),z.push(I)),delete Da[I]);return z},mb=function(gb,fb,Da){if(!fb)return null;for(var Y=[],z=0;z<fb.length;z++)Y.push(fb[z].clone());if(!gb)return Y;ia(Y,function(D){var I=D.getName(),P=null;ia(gb,function(R){var Z=!1;I==R.getName()&&(P=R.getViewItems(),Z=!0);return Z});var O=sa(P,D.getViewItems(),Da);D.carryInViewItem(O)});
return Y};this.clone=function(){for(var gb=[],fb=0;fb<q.length;fb++)gb.push(q[fb].clone());var Da;t&&(Da=Wa(xb(t)));if(x){var Y=[];for(fb=0;fb<x.length;fb++)Y.push(x[fb].clone())}if(A){var z=[];for(fb=0;fb<A.length;fb++){var D=A[fb];D instanceof eb?(D=D.clone(),z.push(D)):z.push(D)}}fb=new Lb;fb.carryIn(e,c,b,gb,Da,Y,z);return fb};this.carryIn=function(gb,fb,Da,Y,z,D,I){e=gb;c=fb;b=Da;q=Y;t=z;for(gb=0;gb<q.length;gb++)ca(q[gb]);x=D;A=I};this.fromJsonObject=function(gb){e=gb.name;c=gb.displayName;
b=gb.parentName;var fb=gb.fields,Da=[];if(fb&&0<fb.length)for(var Y=0;Y<fb.length;Y++){var z=fb[Y],D=new Ya;D.fromJsonObject(z);ca(D);Da.push(D)}q=Da;t=Wa(gb.parentChildDimensions);wb.itemsFromJsonObject(d,gb);wb.subViewsFromJsonObject(d,gb)};var Wa=function(gb){if(gb&&0<gb.length){for(var fb=[],Da=0;Da<gb.length;Da++){var Y=gb[Da],z=new Mb;z.fromJsonObject(Y);fb.push(z)}return fb}return null};this.toJsonObject=function(){var gb={};gb.name=e;gb.displayName=c;b&&(gb.parentName=b);for(var fb=q,Da=[],
Y=0;Y<fb.length;Y++){var z=fb[Y].toJsonObject();Da.push(z)}gb.fields=Da;t&&(gb.parentChildDimensions=xb(t));wb.itemsToJsonObject(d,gb);wb.subViewsToJsonObject(d,gb);return gb};var xb=function(gb){for(var fb=[],Da=0;Da<gb.length;Da++){var Y=gb[Da].toJsonObject();fb.push(Y)}return fb}}function wb(g,d,e){var c=this,b,q;this.getName=function(){return g};this.getDisplayName=function(){return d};this.getDisplayAs=function(){return e};this.getSubViews=function(t){!b&&t&&(b=[]);return b};this.getViewItems=
function(t){!q&&t&&(q=[]);return q};this.carryInViewItem=function(t){q=t};this.clone=function(){var t=new wb(g,d,e);if(b)for(var w=0;w<b.length;w++){var x=b[w];t.getSubViews(!0).push(x.clone())}if(q)for(w=0;w<q.length;w++)x=q[w],x instanceof eb?t.getViewItems(!0).push(x.clone()):t.getViewItems(!0).push(x);return t};this.fromJsonObject=function(t){wb.itemsFromJsonObject(c,t);wb.subViewsFromJsonObject(c,t)};this.toJsonObject=function(){var t={};wb.itemsToJsonObject(c,t);wb.subViewsToJsonObject(c,t);
return t}}function eb(g,d){var e=[];this.getName=function(){return g};this.getDisplayName=function(){return d};this.getFieldNames=function(){return e};this.clone=function(c){for(var b=new eb(g,d),q=0;q<e.length;q++){var t=e[q];b.getFieldNames().push(t);c&&(c[t]=!0)}return b}}function pb(){var g=this,d=[],e,c,b=new Ca;this.addChangedListener=function(w){b.addListener(w)};this.removeChangedListener=function(w){b.removeListener(w)};this.removeAllChangedListener=function(){b.removeAllListener()};var q=
function(w){b.fireEvent(function(x){x(g,w)})},t=function(w,x,A){q(x)};this.isMultiTableMode=function(){return!(1==d.length&&!d[0].getName())};this.getTableCount=function(){return d.length};this.getTable=function(w){return d[w]};this.searchTableByName=function(w){for(var x=0;x<d.length;x++){var A=d[x];if(A.getName()==w)return A}return null};this.searchMetaField=function(w){var x=u.decodeFullName(w);w=x[0];x=x[1];return(w=g.isMultiTableMode()?g.searchTableByName(w):g.getTable(0))?w.searchMetaField(x):
null};this.isAnyCalculationFieldExist=function(){for(var w=0;w<d.length;w++)if(d[w].isAnyCalculationFieldExist())return!0;return!1};this.getTableTreeLevel=function(w){var x=0;if(w.getParentName())for(;w=g.searchTableByName(w.getParentName());)x++;return x};this.merge=function(w){for(var x=[],A=0;A<w.getTableCount();A++){for(var N=w.getTable(A),ba,ca=!1,M=0;M<d.length;M++)if(ba=d[M],ba.getName()==N.getName()){ba.mergeFrom(N);ca=!0;break}ca||(ba=N.clone(),ba.addSthChangedListener(t));x.push(ba)}d=x;
g.setEliminations(w.getEliminations());c=w.getSrcMode();q()};this.getSrcMode=function(){return c};this.isMdOfSrcMode=function(){return"MD"==c};this.isPreaggOfSrcMode=function(){return"PRE_AGG"==c};this.isNormalSrcMode=function(){return!c||"ER"==c};this.getDimensionNecessityMetaFields=function(){for(var w=[],x=0;x<d.length;x++)w=w.concat(d[x].getDimensionNecessityMetaFields());return w};this.setEliminations=function(w){e=w};this.getEliminations=function(){return e};this.getEliminationKeyMetaFields=
function(){var w=[];if(e&&0<e.length)for(var x=0;x<e.length;x++){var A=e[x].getKeyFieldName();A=g.searchMetaField(A);w.push(A)}return w};this.carryIn=function(w,x){d=w;for(w=0;w<d.length;w++)d[w].addSthChangedListener(t);c=x};this.createExecutingCopy=function(w){for(var x=[],A={},N=0;N<w.length;N++){var ba=w[N],ca=ba.getTable();if(ca){var M=ca.getName(),ia=A[M];if(!ia){ia=[];var sa=ca.carryOut()[1],mb=new Lb;mb.carryIn(M,ca.getDisplayName(),null,ia,sa);A[M]=ia;x.push(mb)}ia.push(ba)}}w=new pb;w.carryIn(x,
c);w.setEliminations(e);return w};this.fromJsonObject=function(w){d=[];for(var x=w.tables,A=0;A<x.length;A++){var N=x[A],ba=new Lb;ba.fromJsonObject(N);ba.addSthChangedListener(t);d.push(ba)}if(x=w.eliminations){A=[];for(N=0;N<x.length;N++){ba=x[N];var ca=new Yb;ca.fromJsonObject(ba);A.push(ca)}x=A}else x=null;e=x;c=w.src};this.toJsonObject=function(){for(var w=[],x=0;x<d.length;x++)w.push(d[x].toJsonObject());x={};x.tables=w;if(e){w=e;for(var A=[],N=0;N<w.length;N++)A.push(w[N].toJsonObject());x.eliminations=
A}c&&(x.src=c);return x}}function zb(g){var d=this,e=[],c={};this.getUsingMetaFields=function(){return e};this.checkField=function(q){if(b(q)&&g){var t=q.getFormulaDependence();if(t)for(var w=0;w<t.length;w++){var x=g.searchMetaField(t[w]);x&&d.checkField(x)}q.getGroupName()&&(t=q.getTable(),w=t.getParentChildDimensionByName(q.getGroupName()),null!=w&&(x=u.encodeFullName(t.getName(),w.getIdFieldName()),b(g.searchMetaField(x)),x=u.encodeFullName(t.getName(),w.getParentFieldName()),b(g.searchMetaField(x))));
q.getSortAccording()&&(q=g.searchMetaField(q.getSortAccording()))&&d.checkField(q)}};var b=function(q){return c[q.getFullName()]?!1:(e.push(q),c[q.getFullName()]=!0)}}function Yb(){var g,d;this.getKeyFieldName=function(){return g};this.toJsonObject=function(){var e={};e.idField=g;e.associatedFields=d;return e};this.fromJsonObject=function(e){g=e.idField;d=e.associatedFields}}function Mb(){var g,d,e,c,b,q,t;this.getName=function(){return g};this.getAlias=function(){return d};this.getIdFieldName=function(){return e};
this.getParentFieldName=function(){return c};this.getDisplayFieldName=function(){return b};this.getDimensionNecessity=function(){return t};this.isNecessaryDimension=function(){return Mb.isNecessary(t)};this.fromJsonObject=function(w){g=w.name;d=w.alias;e=w.idFieldName;c=w.parentIdFieldName;b=w.displayFieldName;q=w.sortAccordingFieldName;t=w.necessary};this.toJsonObject=function(){var w={};w.name=g;w.alias=d;w.idFieldName=e;w.parentIdFieldName=c;w.displayFieldName=b;w.sortAccordingFieldName=q;w.necessary=
t;return w}}function S(){var g=this,d=new Ca,e,c,b,q,t,w=!0,x,A,N,ba,ca,M,ia=!0,sa=!1,mb,Wa,xb,gb;this.addPropertyChangeListener=function(z){d.addListener(z)};this.removePropertyChangeListener=function(z){d.removeListener(z)};var fb=function(z,D){var I=new Ja(g);D&&I.setMetaFieldSubEventTarget(D);d.fireEvent(function(P){P(I,z)})};this.clearListener=function(){d.removeAllListener();b.removePropertyChangeListener(Y)};this.setMetaField=function(z){b&&b.removePropertyChangeListener(Y);b=z};this.getMetaField=
function(){return b};this.getId=function(){return q};this.setId=function(z){q=z};this.setNumberFormat=function(z){x!=z&&(x=z,fb(S.KEY_NUMBERFORMAT))};this.getNumberFormat=function(){return x?x:b.getFormatString()};this.setDateFormat=function(z){A!=z&&(A=z,fb(S.KEY_DATEFORMAT))};this.getDateFormat=function(){return A};this.setContinuousColor=function(z){N=z;fb(S.KEY_CONTINUOUSCOLOR)};this.getContinuousColor=function(){return N};this.setDiscreteColor=function(z){ba=z;fb(S.KEY_DISCRETECOLOR)};this.getDiscreteColor=
function(){return ba};this.setRole=function(z,D){if(z!==S.ROLE_DIMENSION&&z!==S.ROLE_MEASURE)throw Error("Illegal argument: "+z);if(t!=z||ca!=D)t=z,ca=D?D:null,fb(S.KEY_ROLE)};this.getRole=function(){return t};this.isDimension=function(){return t==S.ROLE_DIMENSION?!0:!1};this.isMeasure=function(){return t==S.ROLE_MEASURE?!0:!1};this.setContinuous=function(z){w=z};this.isContinuous=function(){return w};this.getAggregation=function(){return ca};this.setTotalUsing=function(z){M!=z&&(M=z,fb(S.KEY_TOTALUSING))};
this.getTotalUsing=function(){return M};this.setTotalDisplayHidden=function(z){z=!z;ia!=z&&(ia=z,fb(S.KEY_TOTALDISPLAY))};this.isTotalDisplayHidden=function(){return!ia};this.setShowSubtotal=function(z){sa!=z&&(sa=z,fb(S.KEY_SUBTOTAL))};this.isShowSubtotal=function(){return sa};this.setPartValue=function(z){mb!=z&&(mb=z,fb(S.KEY_PARTVALUE))};this.getPartValue=function(){return mb};this.setSort=function(z){Wa!=z&&(Wa=z,fb(S.KEY_SORT))};this.getSort=function(){return Wa};this.setQuickSetup=function(z){xb!=
z&&(xb=z,fb(S.KEY_QUICKSETUP))};this.getQuickSetup=function(){return xb};this.setDisplayName=function(z){gb!=z&&(gb=z,fb(S.KEY_DISPLAYNAME))};this.getDisplayName=function(){return gb};this.getText=function(){return gb?gb:Da(b.getDisplayName())};var Da=function(z){if(t==S.ROLE_DIMENSION){var D=mb?S.partValueToString(mb):null;return(D?D+":":"")+z}if(t==S.ROLE_MEASURE)return D=S.aggregationToString(ca),D+":"+z;throw Error("Unknown role: "+t);};this.getTextTooltips=function(){var z=Da("["+b.getFullDisplayName()+
"]");xb&&(z=z+"("+S.quickSetupToString(xb),z+=")");return z};this.getTextForExhibition=function(){if(gb)return gb;var z=b.getDisplayName(),D=mb?S.partValueToString(mb):null;return z+(D?"("+D+")":"")};this.getComplexText=function(){return" ["+g.getText()+"] "};this.setInvalidPromptListener=function(z){e=z};this.getInvalidPrompt=function(){return c};this.setInvalidPrompt=function(z){var D=!1;z.isCancel()?c&&c.getLevel()==z.getLevel()&&(c=null,D=!0):c?z.getLevel()<=c.getLevel()&&(c=z,D=!0):(c=z,D=!0);
D&&e&&e()};this.isInvalid=function(){return c?!0:!1};var Y=function(z,D){if(D==Ya.KEY_FORMATSTRING)fb(D,z),x||fb(S.KEY_NUMBERFORMAT,z);else if(D==Ya.KEY_FISCALYEARSTART||D==Ya.KEY_SORTACCORDING)fb(D,z);else if(D==Ya.KEY_DISPLAYNAME||D==Ya.KEY_FORMULA)b.getDataType()==Ya.DT_DATE?!mb&&g.setPartValue(S.PARTVALUE_DATE_YEAR):mb&&(mb=null),fb(S.KEY_FORMULA,z)};this.clone=function(){var z=g.protectedCreateInstance(),D=g.toJsonObject();z.fromJsonObject(D,{searchMetaField:function(I){return b}});return z};
this.protectedCreateInstance=function(){throw Error("Override me.");};this.toJsonObject=function(){var z={};z.id=q;z.name=b.getFullName();z.displayName=gb;z.role=t;z.isContinuous=w;t==S.ROLE_MEASURE?(z.aggregation=ca,z.totalUsing=M,z.isTotalDisplay=ia,xb&&(z.quickSetup=xb)):(sa&&(z.isShowSubtotal=!0),mb&&(z.partValue=mb),Wa&&(z.sort=Wa));x&&(z.numberFormat=x);A&&(z.dateFormat=A);N&&(z.continuousColor=N.toJsonObject());ba&&(z.discreteColor=ba.toJsonObject());return z};this.fromJsonObject=function(z,
D){q=z.id;var I=z.name;b=D.searchMetaField(I);gb=z.displayName;if(null==b){var P=u.decodeFullName(I);I=P[0];P=P[1];D=D.isMultiTableMode()?D.searchTableByName(I):D.getTable(0);b=new Ya;b.setLost(!0);b.setTable(D?D:new Lb(I));b.setPureName(P);b.setDisplayName(P);c=new S.InvalidPrompt;c.setLevel(S.InvalidPrompt.LEVEL_META_LOST,!0)}x=(D=z.numberFormat)?D:null;A=(D=z.dateFormat)?D:null;N=null;if(D=z.continuousColor)N=new p,N.fromJsonObject(D);ba=null;if(D=z.discreteColor)ba=new ka,ba.fromJsonObject(D);
t=z.role;w=z.isContinuous;t==S.ROLE_MEASURE?(ca=z.aggregation,ia=z.isTotalDisplay?!0:!1,M=z.totalUsing,xb=z.quickSetup):(sa=z.isShowSubtotal?!0:!1,mb=z.partValue,Wa=z.sort)};this.protectedMethod={bindMetaEvent:function(){b.addPropertyChangeListener(Y)},innerSetDiscreteColor:function(z){ba=z}}}function Ma(g){this.getMetaField=function(){return g};this.toString=function(){return g.constructor.name}}function Ja(g){var d;this.getField=function(){return g};this.setMetaFieldSubEventTarget=function(e){d=
e};this.getMetaFieldSubEventTarget=function(){return d};this.toString=function(){return g.constructor.name+(d?"-"+d.toString():"")};this.getSubEventMetaField=function(){return d?d.getMetaField():null}}function ua(){this.fromJsonObject=function(g){throw Error("Override me");};this.updateFromJsonObject=function(g){}}function W(){function g(){var c,b,q=0,t=!1;this.getValue=function(){return c};this.getDisplayText=function(){return b};this.isValueNull=function(){return c==Ga.STRING_NULL_VALUE};this.getLevel=
function(){return q};this.isSelected=function(){return t};this.fromJsonObject=function(w){c=w.value;c=void 0==c?Ga.STRING_NULL_VALUE:c;b=w.text;q=w.level;t=!1!==w.selected}}ua.call(this);var d=this,e;this.getItems=function(){return e};this.updateFromJsonObject=function(c){d.fromJsonObject(c)};this.fromJsonObject=function(c){e=[];c=c.nodes;for(var b=0;b<c.length;b++){var q=c[b],t=new g;t.fromJsonObject(q);e.push(t)}}}function fa(){function g(){var c,b,q=!1;this.getValue=function(){return c};this.getDisplayText=
function(){return void 0==b?c==Ga.STRING_NULL_VALUE?"":c:b};this.isValueNull=function(){return c==Ga.STRING_NULL_VALUE};this.isSelected=function(){return q};this.fromJsonObject=function(t){c=t.value;c=void 0==c?Ga.STRING_NULL_VALUE:c;b=t.text;q=!1!==t.selected}}ua.call(this);var d=this,e;this.getItems=function(){return e};this.updateFromJsonObject=function(c){d.fromJsonObject(c)};this.fromJsonObject=function(c){e=[];c=c.values;for(var b=0;b<c.length;b++){var q=c[b],t=new g;t.fromJsonObject(q);e.push(t)}}}
function Ea(){ua.call(this);var g=this,d,e,c,b;this.getMin=function(){return d};this.getMax=function(){return e};this.getSelectedMin=function(){return c};this.getSelectedMax=function(){return b};this.updateFromJsonObject=function(q){g.fromJsonObject(q)};this.fromJsonObject=function(q){d=q.min?q.min:0;e=q.max?q.max:0;c=q.selectedMin?q.selectedMin:0;b=q.selectedMax?q.selectedMax:0}}function Va(){ua.call(this);var g=this,d,e;this.getFromDateMs=function(){return d};this.getToDateMs=function(){return e};
this.updateFromJsonObject=function(c){g.fromJsonObject(c)};this.fromJsonObject=function(c){d=c.fromDate?c.fromDate:(new Date).getTime();e=c.toDate?c.toDate:(new Date).getTime()}}function Oa(){var g;ua.call(this);this.fromJsonObject=function(d){g=d.state};this.getState=function(){return g}}function wa(){var g=this,d=!0,e=!1,c=!0,b,q=wa.STATE_VALID,t,w=new Ca,x=new Ca,A=new Ca;this.setPreparedModel=function(M){q=g.protectedCheckPreparedModel(M);q==wa.STATE_VALID&&(t=M,d&&g.protectedAfterSetFullValue(!0))};
this.getPreparedModel=function(){return t};this.innerCarryPreparedModel=function(M){t=M};this.setFullValue=function(M){d=M;g.protectedAfterSetFullValue(d);N()};this.isFullValue=function(){return d};this.protectedAfterSetFullValue=function(M){throw Error("Override me.");};this.setJustShowAffected=function(M){e!=M&&(e=M,ca(wa.KEY_AFFECTED))};this.isJustShowAffected=function(){return e};this.setOnShow=function(M){c!=M&&(c=M,ca(wa.KEY_ONSHOW))};this.isOnShow=function(){return c};this.updatePreparedModel=
function(M){t&&(t.updateFromJsonObject(M),d&&g.protectedAfterSetFullValue(!0),ba())};this.setAssociatedField=function(M){b=M};this.getAssociatedField=function(){return b};this.toJsonObject=function(){throw Error("Override me");};this.fromJsonObject=function(M){throw Error("Override me");};this.applySelectedValues=function(M){throw Error("Override me");};this.addValueChangedListener=function(M){w.addListener(M)};this.removeValueChangedListener=function(M){w.removeListener(M)};var N=function(){w.fireEvent(function(M){M(g)})};
this.addPreparedValueUpdatedListener=function(M){x.addListener(M)};this.removePreparedValueUpdatedListener=function(M){x.removeListener(M)};var ba=function(){x.fireEvent(function(M){M(g)})};this.addPropertyChangeListener=function(M){A.addListener(M)};this.removePropertyChangeListener=function(M){A.removeListener(M)};var ca=function(M){A.fireEvent(function(ia){ia(g,M)})};this.getState=function(){return q};this.isStateValid=function(){return q==wa.STATE_VALID};this.getStateDisplay=function(){return q==
wa.STATE_FIELD_ERROR?E.get("filterFieldInvalid","\u65e0\u6548\u7684\u5b57\u6bb5"):q==wa.STATE_PMODEL_UNMATCH?E.get("filterDataTypeUnmatched","\u5b57\u6bb5\u6570\u636e\u7c7b\u578b\u4e0e\u7b5b\u9009\u5668\u4e0d\u5339\u914d"):q};this.checkState=function(M){(M=g.protectedCheckStateByField(M))&&(q=M)};this.protectedCheckStateByField=function(M){throw Error("Override");};this.protectedCheckPreparedModel=function(M){throw Error("Override");};this.copyForSetting=function(){var M=g.toJsonObject(),ia=new g.constructor;
ia.fromJsonObject(M);ia.setAssociatedField(g.getAssociatedField());ia.setPreparedModel(g.getPreparedModel());return ia};this.applyFromSetting=function(M){var ia=M.toJsonObject();g.fromJsonObject(ia);e&&g.innerCarryPreparedModel(M.getPreparedModel())};this.protectedMethod={fireValueChangedEvent:N,firePropertyChangeEvent:ca,innerSetFullValue:function(M){d=M}}}function Ga(){wa.call(this);var g=this,d=this.protectedMethod,e=!1,c={},b,q=null;this.applySelectedValues=function(w){c={};w=w.values;for(var x=
0;x<w.length;x++)c[w[x]]=!0};this.getSelectableItems=function(){var w=g.getPreparedModel();return w?w.getItems():[]};this.setExclude=function(w){e!=w&&(e=w,d.firePropertyChangeEvent(Ga.KEY_EXCLUDE),d.fireValueChangedEvent())};this.isExclude=function(){return e};this.abandonExclude=function(){if(e&&g.getPreparedModel()){e=!1;for(var w=!0,x={},A=g.getSelectableItems(),N=0;N<A.length;N++){var ba=A[N].getValue();g.isValueSelected(ba)?w=!1:x[ba]=!0}c=x;d.innerSetFullValue(w)}};this.protectedAfterSetFullValue=
function(w){for(var x=g.getSelectableItems(),A=0;A<x.length;A++){var N=x[A].getValue();w?c[N]=!0:delete c[N]}};this.setSelectedValue=function(w){c={};c[w]=!0;d.innerSetFullValue(!1);d.fireValueChangedEvent()};this.addSelectedValue=function(w){c[w]=!0;t();d.fireValueChangedEvent()};this.getAllSelectedValue=function(){return c};this.removeSelectedValue=function(w){c[w]&&(delete c[w],d.innerSetFullValue(!1),d.fireValueChangedEvent())};this.isValueSelected=function(w){return 1==c[w]};this.cloneAllSelectedValue=
function(){return JSON.parse(JSON.stringify(c))};this.resetAllSelectedValue=function(w){c=w;t();d.fireValueChangedEvent()};var t=function(){for(var w=!0,x=g.getSelectableItems(),A=0;A<x.length;A++)if(!c[x[A].getValue()]){w=!1;break}d.innerSetFullValue(w)};this.isTreeSelectingIncludeSubs=function(){return!1===b?!1:!0};this.setTreeSelectingIncludeSubs=function(w){b=w};this.getCtrlType=function(){return q};this.setCtrlType=function(w,x,A){q=w;x&&(c=x,d.innerSetFullValue(A),d.fireValueChangedEvent());
d.firePropertyChangeEvent(Ga.KEY_CTRLTYPE)};this.isSingleValueMode=function(w){w=w?w:q;return w==Ga.CTRLTYPE_RADIOBUTTON_LIST||w==Ga.CTRLTYPE_RADIOBUTTON_POPUP};this.toJsonObject=function(){var w={};w.name=Ga.FILTER_NAME;w.full=g.isFullValue();w.affected=g.isJustShowAffected();w.onShow=g.isOnShow();w.exclude=e;if(g.isFullValue())var x=[];else{x=[];for(var A in c)A=A==Ga.STRING_NULL_VALUE?null:A,x.push(A)}w.selected=x;!1===b&&(w.treeSelectingIncludeSubs=!1);q&&(w.ctrl=q);return w};this.fromJsonObject=
function(w){var x=w.full?!0:!1;d.innerSetFullValue(x);c={};if(!x){x=w.selected;for(var A=0;A<x.length;A++)c[null==x[A]?Ga.STRING_NULL_VALUE:x[A]]=!0}g.setJustShowAffected(w.affected?!0:!1);g.setOnShow(w.onShow?!0:!1);e=w.exclude?!0:!1;b=!1===w.treeSelectingIncludeSubs?!1:!0;q=w.ctrl};this.protectedCheckStateByField=function(w){var x=w.getMetaField().getDataType(),A=x==Ya.DT_STRING&&!w.getPartValue();w=x==Ya.DT_DATE&&w.getPartValue();return A||w?null:wa.STATE_PMODEL_UNMATCH};this.protectedCheckPreparedModel=
function(w){return null==w?wa.STATE_INVALID:w instanceof Oa?w.getState():w instanceof fa||w instanceof W?wa.STATE_VALID:wa.STATE_PMODEL_UNMATCH}}function Ia(){wa.call(this);var g=this,d=this.protectedMethod,e,c,b=!0;this.protectedAfterSetFullValue=function(q){q=g.getPreparedModel();e=q.getMin();c=q.getMax()};this.isContainNull=function(){return b};this.setContainNull=function(q){b=q};this.setValue=function(q,t,w){var x=!1;e!=q&&(e=q,x=!0);c!=t&&(c=t,x=!0);b!=w&&(b=w,x=!0);x&&(q=g.getPreparedModel(),
q=b&&e==q.getMin()&&c==q.getMax(),d.innerSetFullValue(q),d.fireValueChangedEvent())};this.getFloor=function(){return e};this.getCeiling=function(){return c};this.getFormatString=function(){return g.getAssociatedField().getNumberFormat()};this.applySelectedValues=function(q){e=q.floor;c=q.ceiling};this.toJsonObject=function(){var q={};q.name=Ia.FILTER_NAME;q.full=g.isFullValue();q.affected=g.isJustShowAffected();q.onShow=g.isOnShow();q.floor=e;q.ceiling=c;q.containNull=b;return q};this.fromJsonObject=
function(q){d.innerSetFullValue(q.full?!0:!1);e=q.floor;c=q.ceiling;g.setJustShowAffected(q.affected?!0:!1);g.setOnShow(q.onShow?!0:!1);b=q.containNull};this.protectedCheckStateByField=function(q){return q.getMetaField().getDataType()==Ya.DT_NUMBER?null:wa.STATE_PMODEL_UNMATCH};this.protectedCheckPreparedModel=function(q){return null==q?wa.STATE_INVALID:q instanceof Oa?q.getState():q instanceof Ea?wa.STATE_VALID:wa.STATE_PMODEL_UNMATCH}}function hb(){wa.call(this);var g=this,d=this.protectedMethod,
e=!1,c,b,q;this.setValue=function(t,w,x,A){d.innerSetFullValue(!1);c=t;b=w;q=x;e=A;d.fireValueChangedEvent()};this.isContainNull=function(){return e};this.setContainNull=function(t){e=t};this.getFromDateMs=function(){return c};this.setFromDateMs=function(t){c=t};this.getToDateMs=function(){return b};this.setToDateMs=function(t){b=t};this.getRelativePeriodModel=function(){return q};this.setRelativePeriodModel=function(t){q=t};this.protectedAfterSetFullValue=function(t){t=g.getPreparedModel();c=t.getFromDateMs();
b=t.getToDateMs()};this.applySelectedValues=function(t){};this.copy=function(){var t=null;q&&(t=new U,t.fromJsonObject(q.toJsonObject()));var w=new hb;w.setValue(c,b,t,e);return w};this.toJsonObject=function(){var t={};t.name=hb.FILTER_NAME;t.full=g.isFullValue();t.onShow=g.isOnShow();t.containNull=e;t.dateFrom=c;t.dateTo=b;q&&(t.relative=q.toJsonObject());return t};this.fromJsonObject=function(t){d.innerSetFullValue(t.full?!0:!1);g.setJustShowAffected(!1);g.setOnShow(t.onShow?!0:!1);e=t.containNull;
c=t.dateFrom;b=t.dateTo;(t=t.relative)?(q=new U,q.fromJsonObject(t)):q=null};this.protectedCheckStateByField=function(t){return t.getMetaField().getDataType()==Ya.DT_DATE?null:wa.STATE_PMODEL_UNMATCH};this.protectedCheckPreparedModel=function(t){return null==t?wa.STATE_INVALID:t instanceof Oa?t.getState():t instanceof Va?wa.STATE_VALID:wa.STATE_PMODEL_UNMATCH}}function ib(){var g=this,d,e,c,b;this.getModel=function(){return d};this.setModel=function(q){d=q};this.getPreferences=function(){return e};
this.setPreferences=function(q){e=q};this.getName=function(){return c};this.setName=function(q){c=q};this.isCurrent=function(){return b};this.setCurrent=function(q){b=q};this.toJsonObject=function(q){var t={};t.type=q.encodeModelPageType(d);t.model=d.toJsonObject();e&&(t.preferences=e.toJsonObject());c&&(t.name=c);b&&(t.current="true");return t};this.fromJsonObject=function(q,t,w){w.decodeModelPageType(q.type,g);d.fromJsonObject(q.model,t);t=q.preferences;e&&t&&e.fromJsonObject(t);c=q.name;b=q.current?
!0:!1}}function nb(){var g=this,d,e,c;this.setName=function(b){d=b};this.getName=function(){return d};this.setDescription=function(b){e=b};this.getDescription=function(){return e};this.setPostScript=function(b){c=b};this.getPostScript=function(){return c};this.copy=function(){var b=g.protectedCopy();b.setName(d);b.setDescription(e);b.setPostScript(c);return b};this.protectedCopy=function(){throw Error("Implement");};this.toJsonObject=function(b){var q={};q.name=d;q.description=e;q.postScript=c;g.protectedToJsonObject(q,
b);return q};this.protectedToJsonObject=function(b,q){throw Error("Implement");};this.fromJsonObject=function(b,q){d=b.name;e=b.description;c=b.postScript;g.protectedFromJsonObject(b,q)};this.protectedFromJsonObject=function(b,q){throw Error("Implement");}}function bb(){nb.call(this);var g=[],d=[];this.setDimensionPickers=function(b){g=b};this.getDimensionPickers=function(){return g};this.setMeasurePickers=function(b){d=b};this.getMeasurePickers=function(){return d};this.protectedCopy=function(){for(var b=
[],q=0;q<g.length;q++){var t=g[q];b.push(t.copy())}var w=[];for(q=0;q<d.length;q++)t=d[q],w.push(t.copy());q=new bb;q.setDimensionPickers(b);q.setMeasurePickers(w);return q};this.protectedToJsonObject=function(b,q){b.dimensionPickers=e(g,q);b.measurePickers=e(d,q)};var e=function(b,q){for(var t=[],w=0;w<b.length;w++){var x=b[w];q.isFieldExist(x.getField())&&t.push(x.toJsonObject())}return t};this.protectedFromJsonObject=function(b,q){g=c(b.dimensionPickers,q);d=c(b.measurePickers,q)};var c=function(b,
q){for(var t=[],w=0;w<b.length;w++){var x=b[w],A=bb.createPicker(x.type);A.fromJsonObject(x,q);A.getField()?t.push(A):window.console&&window.console.warn("Picker fromJson(), field '#1' not found.".replace("#1",x.fieldId))}return t}}function la(){var g=this,d,e=!1,c=!1,b;this.setField=function(q){d=q};this.getField=function(){return d};this.getType=function(){throw Error("Implement");};this.setSortAccording=function(q,t){e=q?!0:!1;c=t?!0:!1};this.isSortAccording=function(){return e};this.isSortAsc=
function(){return c};this.setOutputTargetIndex=function(q){b=q};this.getOutputTargetIndex=function(){return b};this.isOutputTarget=function(){return b?!0:!1};this.takeDetail=function(q){};this.copy=function(){var q=g.toJsonObject(),t=bb.createPicker(g.getType());t.fromJsonObject(q,{searchFieldById:function(w){return g.getField()}});return t};this.toJsonObject=function(){var q={};q.fieldId=d.getId();e&&(q.sortAsc=c);q.outputTarget=b;q.type=g.getType();g.protectedToJsonObject(q);return q};this.protectedToJsonObject=
function(q){throw Error("Implement");};this.fromJsonObject=function(q,t){d=t.searchFieldById(q.fieldId);t=q.sortAsc;!0===t||!1===t?(e=!0,c=t):e=!1;b=q.outputTarget;g.protectedFromJsonObject(q)};this.protectedFromJsonObject=function(q){throw Error("Implement");}}function Jb(){la.call(this);this.getType=function(){return bb.PICKER_FULL};this.protectedToJsonObject=function(g){};this.protectedFromJsonObject=function(g){}}function pa(){la.call(this);var g;this.getType=function(){return bb.PICKER_CONDITION};
this.setScript=function(d){g=d};this.getScript=function(){return g};this.takeDetail=function(d){g=d.getScript()};this.protectedToJsonObject=function(d){d.conditionScript=g};this.protectedFromJsonObject=function(d){g=d.conditionScript}}function Gb(){la.call(this);var g=1;this.setTopN=function(d){g=d};this.getTopN=function(){return g};this.takeDetail=function(d){g=d.getTopN()};this.protectedToJsonObject=function(d){d.topN=g};this.protectedFromJsonObject=function(d){g=d.topN}}function Vb(){Gb.call(this);
this.getType=function(){return bb.PICKER_MAX}}function tb(){Gb.call(this);this.getType=function(){return bb.PICKER_MIN}}function lb(){nb.call(this);var g=[];this.setConditionItems=function(d){g=d};this.getConditionItems=function(){return g};this.protectedCopy=function(){for(var d=[],e=0;e<g.length;e++)d.push(g[e].copy());e=new lb;e.setConditionItems(d);return e};this.protectedToJsonObject=function(d,e){e=[];for(var c=0;c<g.length;c++)e.push(g[c].toJsonObject());d.items=e};this.protectedFromJsonObject=
function(d,e){d=d.items;g=[];for(var c=0;c<d.length;c++){var b=d[c],q=new Na;q.fromJsonObject(b,e);g.push(q)}}}function Na(){var g=0,d,e=0,c;this.getLeftBrackets=function(){return g};this.setLeftBrackets=function(b){g=b};this.getCondition=function(){return d};this.setCondition=function(b){d=b};this.getRightBrackets=function(){return e};this.setRightBrackets=function(b){e=b};this.getLogic=function(){return c};this.setLogic=function(b){c=b};this.copy=function(){var b=new Na;b.setLeftBrackets(g);b.setRightBrackets(e);
b.setLogic(c);b.setCondition(d.copy());return b};this.toJsonObject=function(){var b={};0<g&&(b.leftBrackets=g);0<e&&(b.rightBrackets=e);c&&(b.logic=c);b.condition=d.toJsonObject();return b};this.fromJsonObject=function(b,q){var t=b.leftBrackets;g=t?t:0;e=(t=b.rightBrackets)?t:0;c=(t=b.logic)?t:null;b=b.condition;d=lb.createCondition(b.type);d.fromJsonObject(b,q)}}function $a(){var g=this,d,e;this.setEditingAlarm=function(c){e=c};this.getEditingAlarm=function(){return e};this.setField=function(c){d=
c};this.getField=function(){return d};this.getType=function(){throw Error("Implement");};this.isValid=function(){return d&&g.protectedCheckValid()};this.protectedCheckValid=function(){throw Error("Implement");};this.copy=function(){var c=g.toJsonObject(),b=lb.createCondition(g.getType());b.fromJsonObject(c,{searchFieldById:function(q){return g.getField()}});return b};this.toJsonObject=function(){var c={};c.fieldId=d?d.getId():"missing";c.type=g.getType();g.protectedToJsonObject(c);return c};this.protectedToJsonObject=
function(c){throw Error("Implement");};this.fromJsonObject=function(c,b){d=b.searchFieldById(c.fieldId);g.protectedFromJsonObject(c)};this.protectedFromJsonObject=function(c){throw Error("Implement");}}function La(){$a.call(this);var g,d;this.setOperation=function(e){g=e};this.getOperation=function(){return g};this.setComparing=function(e){d=e};this.getComparing=function(){return d};this.getType=function(){return lb.CONDITION_NORMAL};this.protectedCheckValid=function(){return g&&(g==lb.OP_NULL||g==
lb.OP_NOT_NULL||d)?!0:!1};this.protectedToJsonObject=function(e){e.op=g;e.comparing=d};this.protectedFromJsonObject=function(e){g=e.op;d=e.comparing}}function ab(){$a.call(this);var g;this.getType=function(){return lb.CONDITION_CUSTOM};this.setScript=function(d){g=d};this.getScript=function(){return g};this.protectedCheckValid=function(){return g?!0:!1};this.protectedToJsonObject=function(d){d.conditionScript=g};this.protectedFromJsonObject=function(d){g=d.conditionScript}}function ma(){var g,d,e,
c;this.getRefToId=function(){return d};this.getFullPath=function(){return e};this.getRefName=function(){return c};this.toJsonObject=function(){var b={};b.uid=g;b.refToId=d;b.fullPath=e;b.refName=c;return b};this.fromJsonObject=function(b){g=b.uid;d=b.refToId;e=b.fullPath;c=b.refName}}function ha(){var g=0,d=ha.TYPE_AVG,e,c;this.setMeasureIndex=function(b){g=b};this.getMeasureIndex=function(){return g};this.setType=function(b){d=b};this.getType=function(){return d};this.setValue=function(b){e=b};this.getValue=
function(){return e};this.setLabel=function(b){c=b};this.getLabel=function(){return c};this.copy=function(){var b=new ha;b.setMeasureIndex(g);b.setType(d);b.setValue(e);b.setLabel(c);return b};this.toJsonObject=function(){var b={};b.measure=g;b.type=d;e&&(b.value=e);c&&(b.label=c);return b};this.fromJsonObject=function(b){g=b.measure;d=b.type;e=b.value;c=b.label}}function ta(){var g,d=[];this.getPresetName=function(){return g};this.setColors=function(e){d=e};this.getColors=function(){return d};this.isInvalid=
function(){return 0==d.length};this.encodeToString=function(){return d.join(",")};this.decodeFromString=function(e){d=(e=$.trim(e))?e.split(","):[]};this.toJsonObject=function(){var e={};e.colors=d;return e};this.fromJsonObject=function(e){g=e.name;d=(e=e.colors)?e:[]}}function ka(){var g=null,d=null;this.getPaletteMapping=function(){return d};this.setPaletteMapping=function(e){d=e};this.toJsonObject=function(){var e={};g&&(e.palette=g.toJsonObject());d&&(e.paletteMapping=d);return e};this.fromJsonObject=
function(e){g=null;var c=e.palette;c&&(g=new ta,g.fromJsonObject(c));d=(e=e.paletteMapping)?e:null}}function p(){function g(){var A=0,N=100,ba=50,ca=0,M=20,ia=80;this.setColor=function(sa,mb){A=sa[0];N=sa[1];ba=sa[2];ca=mb[0];M=mb[1];ia=mb[2]};this.getColorA=function(){return[A,N,ba]};this.getColorB=function(){return[ca,M,ia]};this.toJsonObject=function(){var sa={};sa.ha=A;sa.sa=N;sa.la=ba;sa.hb=ca;sa.sb=M;sa.lb=ia;return sa};this.fromJsonObject=function(sa){A=sa.ha;N=sa.sa;ba=sa.la;ca=sa.hb;M=sa.sb;
ia=sa.lb}}var d=this,e,c,b=0,q=null,t=null,w=0,x=!1;this.getForwardGradientColor=function(A){A&&!e&&(e=new g);return e};this.getBackwardGradientColor=function(A){A&&!c&&(c=new g);return c};this.getSegments=function(){return b};this.setSegments=function(A){b=A};this.getMinData=function(){return q};this.setMinData=function(A){q=A};this.isMinDataDefined=function(){return q||0===q};this.getMaxData=function(){return t};this.setMaxData=function(A){t=A};this.isMaxDataDefined=function(){return t||0===t};
this.getMiddleData=function(){return w};this.setMiddleData=function(A){w=A};this.isMiddleDataDefined=function(){return w||0===w};this.isWholeColorRange=function(){return x};this.setWholeColorRange=function(A){x=A};this.toJsonObject=function(){var A={};e&&(A.forward=e.toJsonObject());c&&(A.backward=c.toJsonObject());b&&(A.segment=b);d.isMinDataDefined()&&(A.min=""+q);d.isMaxDataDefined()&&(A.max=""+t);d.isMiddleDataDefined()&&(A.middle=""+w);A.wholeColorRange=x;return A};this.fromJsonObject=function(A){var N=
A.forward;N?(e=new g,e.fromJsonObject(N)):e=null;(N=A.backward)?(c=new g,c.fromJsonObject(N)):c=null;b=(N=A.segment)?N:0;q=(N=A.min)?parseFloat(N):null;t=(N=A.max)?parseFloat(N):null;w=(N=A.middle)?parseFloat(N):null;x=A.wholeColorRange}}function ra(){function g(){var c,b,q,t,w=!0;this.setBizUiId=function(x){c=x};this.getBizUiId=function(){return c};this.setBizUiDisplayName=function(x){b=x};this.getBizUiDisplayName=function(){return b};this.setUsableDisplayName=function(x){t=x};this.getUsableDisplayName=
function(){return t?t:b};this.setForeignKey=function(x){q=x};this.getForeignKey=function(){return q};this.isMainComplete=function(){return c&&q?!0:!1};this.setRuntimeValid=function(x){w=x};this.isRuntimeValid=function(){return w};this.toJsonObject=function(){var x={};x.bizUiId=c;x.bizUiDisplayName=b;x.foreignKey=q;return x};this.fromJsonObject=function(x){c=x.bizUiId;b=x.bizUiDisplayName;q=x.foreignKey}}var d=[];this.addItem=function(){var c=new g;d.push(c);return c};this.removeItem=function(c){d.splice(c,
1)};this.getItemCount=function(){return d.length};this.getItem=function(c){return d[c]};this.getUsefulItems=function(){for(var c=[],b=0;b<d.length;b++){var q=d[b];q.isMainComplete()&&c.push(q)}return c};this.getRunnableItems=function(){for(var c=[],b=0;b<d.length;b++){var q=d[b];q.isMainComplete()&&q.isRuntimeValid()&&c.push(q)}return c};this.copy=function(){var c=new ra;e(d,function(){return c.addItem()});return c};var e=function(c,b){for(var q=0;q<c.length;q++){var t=c[q],w=b();w.setBizUiId(t.getBizUiId());
w.setBizUiDisplayName(t.getBizUiDisplayName());w.setForeignKey(t.getForeignKey())}};this.toArray=function(){var c=[];e(d,function(){var b=new g;c.push(b);return b});return c};this.fromArray=function(c){d=[];e(c,function(){var b=new g;d.push(b);return b})};this.toJsonObject=function(){for(var c={},b=[],q=0;q<d.length;q++)b.push(d[q].toJsonObject());c.items=b;return c};this.fromJsonObject=function(c){d=[];if(c=c.items)for(var b=0;b<c.length;b++){var q=c[b],t=new g;t.fromJsonObject(q);d.push(t)}}}"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.core&&(com.kingdee.bos.qing.core={});"undefined"==typeof com.kingdee.bos.qing.core.model&&(com.kingdee.bos.qing.core.model={});var ea=com.kingdee.bos.qing.core.model;ea.MetaField=Ya;ea.Meta=pb;ea.ParentChildDimension=Mb;ea.ModelBook=function(){var g,d,e;this.getMeta=
function(){return g};this.setMeta=function(c){g=c};this.getModelPages=function(){return d};this.setModelPages=function(c){d=c};this.isTooModern=function(){return e};this.toJsonObject=function(c){var b={};b.meta=g.toJsonObject();for(var q=[],t=0;t<d.length;t++)q.push(d[t].toJsonObject(c));b.pages=q;return b};this.fromJsonObject=function(c,b,q){e=c.isTooModern;var t=c.meta;t&&(g=new pb,g.fromJsonObject(t),q&&q(g));c=c.pages;d=[];for(q=0;q<c.length;q++){t=c[q];var w=new ib;w.fromJsonObject(t,g,b);d.push(w)}}};
ea.ModelPage=ib;ea.AbstractQingModel=function(){var g=this,d=!1,e,c;this.setListenerDumb=function(b){d=b};this.getBriefOutputableFieldsModel=function(){throw Error("Implement");};this.setBriefOutputDefinitions=function(b){e=b};this.getBriefOutputDefinitions=function(){return e};this.setWarningRuleDefinitions=function(b){c=b};this.getWarningRuleDefinitions=function(){return c};this.protectedMethod={isListenerDumb:function(){return d},sharedToJsonObject:function(b){var q={};if(e||c)q.isFieldExist=function(A){return g.getBriefOutputableFieldsModel().isFieldAlive(A)};
if(e){for(var t=[],w=0;w<e.length;w++){var x=e[w];x=x.toJsonObject(q);t.push(x)}b.briefOutputDefinitions=t}if(c){t=[];for(w=0;w<c.length;w++)x=c[w],x=x.toJsonObject(q),t.push(x);b.warningRuleDefinitions=t}},sharedFromJsonObject:function(b){var q=b.briefOutputDefinitions;b=b.warningRuleDefinitions;var t={};if(q||b)t.searchFieldById=g.getBriefOutputableFieldsModel().createFieldSearcher();e=null;if(q){e=[];for(var w=0;w<q.length;w++){var x=q[w],A=new bb;A.fromJsonObject(x,t);e.push(A)}}c=null;if(b)for(c=
[],w=0;w<b.length;w++)x=b[w],A=new lb,A.fromJsonObject(x,t),c.push(A)}}};ea.BriefOutputableFields=function(){var g=[],d=[];this.getDimensionFields=function(){return g};this.setDimensionFields=function(e){g=e};this.getMeasureFields=function(){return d};this.setMeasureFields=function(e){d=e};this.createFieldSearcher=function(){for(var e={},c=g.concat(d),b=0;b<c.length;b++){var q=c[b];e[q.getId()]=q}return function(t){return e[t]}};this.isFieldAlive=function(e){for(var c=0;c<g.length;c++)if(g[c]==e)return!0;
for(c=0;c<d.length;c++)if(d[c]==e)return!0;return!1}};ea.BriefOutputDefinition=bb;ea.BriefOutput=function(){var g,d,e,c;this.parseFromJson=function(b){g=b.previewMatrix;d=b.display;e=b.errorCode;c=b.errorMessage};this.isError=function(){return e||0===e};this.getErrorCode=function(){return e};this.getErrorMessage=function(){return c};this.getMatrixRowCount=function(){return g?g.length:0};this.getMatrixCell=function(b,q){return g[b][q]};this.getDisplay=function(){return d}};ea.WarningRuleDefinition=
lb;ea.WarningRulePreview=function(){var g,d,e,c,b,q;this.parseFromJson=function(t){g=t.previewTitle;d=t.previewMatrix;e=t.rows;c=t.matched;b=t.errorCode;q=t.errorMessage};this.isError=function(){return b||0===b};this.getErrorCode=function(){return b};this.getErrorMessage=function(){return q};this.getMatrixColumnCount=function(){return g?g.length:0};this.getMatrixColumn=function(t){return g[t]};this.getMatrixRowCount=function(){return d?d.length:0};this.getMatrixCell=function(t,w){return d[t][w]};
this.getFilteredRows=function(){return e};this.isMatched=function(){return c}};ea.OutsideReference=ma;ea.AbstractAnalyticalField=S;ea.ExecutableValue=function(){var g,d;this.asStringValue=function(e){g="Str";d=e};this.asSubtotal=function(){g="Subtotal";d=null};this.asNull=function(){g="Null";d=null};this.getDataType=function(){return g};this.getValue=function(){return d};this.isTheSame=function(e){return g==e.getDataType()?"Subtotal"==g||"Null"==g?!0:d==e.getValue():!1};this.toJsonObject=function(){var e=
{};e.dataType=g;e.value=d;return e};this.fromJsonObject=function(e){g=e.dataType;d=e.value}};ea.AbstractFilterPreparedModel=ua;ea.AbstractFilter=wa;ea.DiscreteFilter=Ga;ea.ContinuousFilter=Ia;ea.ContinuousDateFilter=hb;ea.Refline=ha;ea.Palette=ta;ea.DiscreteColor=ka;ea.ContinuousColor=p;ea.LinkTargets=ra;ea.CommonStyle=function(){var g=null,d=null,e=null,c=null,b=null;this.isFontSizeUnsure=function(){return null==g};this.getFontSize=function(){return g};this.setFontSize=function(w){g=w};this.isBoldUnsure=
function(){return null==d};this.isBold=function(){return d};this.setBold=function(w){d=w};this.isItalicUnsure=function(){return null==e};this.isItalic=function(){return e};this.setItalic=function(w){e=w};this.isColorUnsure=function(){return null==c};this.getColor=function(){return c};this.setColor=function(w){c=w};this.isAlignUnsure=function(){return null==b};this.getAlign=function(){return b};this.setAlign=function(w){b=w};this.toJsonObject=function(){var w={};q(w,"fontSize",g);q(w,"bold",d);q(w,
"italic",e);q(w,"color",c);q(w,"align",b);return w};var q=function(w,x,A){(A||0===A)&&(w[x]=A)};this.fromJsonObject=function(w){g=t(w,"fontSize");d=t(w,"bold");e=t(w,"italic");c=t(w,"color");b=t(w,"align")};var t=function(w,x){return(w=w[x])||0===w?w:null}};var Ca,U,E;(function(){var g=com.kingdee.bos.qing.common;Ca=g.EventListenerList;U=g.RelativePeriodModel;g=com.kingdee.bos.qing.framework.common;E=g.MultilanguageManager.createPackageAccessor(ea)})();var u=new function(){this.encodeFullName=function(g,
d){return g?g+"."+d:d};this.decodeFullName=function(g){var d=g.indexOf(".");if(-1==d)var e=null;else e=g.substring(0,d),g=g.substring(d+1);return[e,g]}};ea.NameUtil=u;Ya.DT_STRING="STRING";Ya.DT_NUMBER="NUMBER";Ya.DT_DATE="DATE";Ya.KEY_FORMATSTRING="meta-formatString";Ya.KEY_FISCALYEARSTART="meta-fiscalYearStart";Ya.KEY_SORTACCORDING="meta-sortAccording";Ya.KEY_FORMULA="meta-formula";Ya.KEY_DISPLAYNAME="meta-displayName";Ya.FORMULA_STATUS_REF="Ref";Ya.FORMULA_STATUS_AGG="Agg";Ya.FORMULA_STATUS_INTERLINE=
"Interline";Ya.FORMULA_STATUS_WITHTOTAL="WithTotal";wb.subViewsFromJsonObject=function(g,d){if(d=d.subViews)for(var e=0;e<d.length;e++){var c=d[e],b=new wb(c.name,c.displayName,c.displayAs);b.fromJsonObject(c);g.getSubViews(!0).push(b)}};wb.subViewsToJsonObject=function(g,d){if(g=g.getSubViews()){for(var e=[],c=0;c<g.length;c++){var b=g[c],q=b.toJsonObject();q.name=b.getName();q.displayName=b.getDisplayName();q.displayAs=b.getDisplayAs();e.push(q)}d.subViews=e}};wb.itemsFromJsonObject=function(g,
d){if(d=d.viewItems)for(var e=0;e<d.length;e++){var c=d[e],b=c.fields;if(b){var q=c.name;c=new eb(q,c.displayName);for(q=0;q<b.length;q++){var t=b[q];c.getFieldNames().push(t.name)}g.getViewItems(!0).push(c)}else q=c.name,g.getViewItems(!0).push(q)}};wb.itemsToJsonObject=function(g,d){if(g=g.getViewItems()){for(var e=[],c=0;c<g.length;c++){var b=g[c],q={};if(b instanceof eb){q.name=b.getName();q.displayName=b.getDisplayName();var t=[];b=b.getFieldNames();for(var w=0;w<b.length;w++)t.push({name:b[w]});
q.fields=t}else q.name=b;e.push(q)}d.viewItems=e}};pb.createSearchingUsingMetaFieldsTool=function(g){return new zb(g)};Mb.isNecessary=function(g){return"Indispensable"==g};S.KEY_NUMBERFORMAT="numberFormat";S.KEY_DATEFORMAT="dateFormat";S.KEY_CONTINUOUSCOLOR="continuousColor";S.KEY_DISCRETECOLOR="discreteColor";S.KEY_ROLE="role";S.KEY_TOTALUSING="totalUsing";S.KEY_TOTALDISPLAY="totalDisplay";S.KEY_SUBTOTAL="subtotal";S.KEY_PARTVALUE="partValue";S.KEY_FORMULA="formula";S.KEY_SORT="sort";S.KEY_QUICKSETUP=
"quickSetup";S.KEY_DISPLAYNAME="displayName";S.AGGREGATION_SUM="SUM";S.AGGREGATION_AVG="AVG";S.AGGREGATION_COUNT="CNT";S.AGGREGATION_CNTD="CNTD";S.AGGREGATION_MAX="MAX";S.AGGREGATION_MIN="MIN";S.AGGREGATION_AGG="AGG";S.ROLE_DIMENSION="dimension";S.ROLE_MEASURE="measure";S.PARTVALUE_DATE_EXACT="DATE_EXACT";S.PARTVALUE_DATE_YEAR="DATE_YEAR";S.PARTVALUE_DATE_QUARTER="DATE_QUARTER";S.PARTVALUE_DATE_MONTH="DATE_MONTH";S.PARTVALUE_DATE_DAY="DATE_DAY";S.PARTVALUE_DATE_YQ="DATE_YQ";S.PARTVALUE_DATE_YM="DATE_YM";
S.PARTVALUE_DATE_YMD="DATE_YMD";S.SORT_ASC="ASC";S.SORT_DESC="DESC";S.QUICKSETUP_LASTPERIOD_RATIO="LP";S.QUICKSETUP_LASTPERIOD_VALUE="LP_V";S.QUICKSETUP_LASTPERIOD_DIFF="LP_D";S.QUICKSETUP_SAMEPERIODLASTYEAR_RATIO="SPLY";S.QUICKSETUP_SAMEPERIODLASTYEAR_VALUE="SPLY_V";S.QUICKSETUP_SAMEPERIODLASTYEAR_DIFF="SPLY_D";S.QUICKSETUP_RUNNINGSUM="RS";S.QUICKSETUP_RUNNINGSUMY="RSY";S.QUICKSETUP_RATIO_10="RATIO_10";S.QUICKSETUP_RATIO_01="RATIO_01";S.QUICKSETUP_RATIO_11="RATIO_11";S.QUICKSETUP_RATIO_90="RATIO_90";
S.QUICKSETUP_RATIO_09="RATIO_09";S.QUICKSETUP_RATIO_99="RATIO_99";S.isAggregationFittedDataType=function(g,d){return d!=Ya.DT_NUMBER?d==Ya.DT_DATE?g==S.AGGREGATION_COUNT||g==S.AGGREGATION_CNTD||g==S.AGGREGATION_MAX||g==S.AGGREGATION_MIN:g==S.AGGREGATION_COUNT||g==S.AGGREGATION_CNTD:!0};S.aggregationToString=function(g){switch(g){case S.AGGREGATION_SUM:return E.get("sum","\u6c42\u548c");case S.AGGREGATION_AVG:return E.get("avg","\u5e73\u5747");case S.AGGREGATION_COUNT:return E.get("count","\u8ba1\u6570");
case S.AGGREGATION_CNTD:return E.get("cntd","\u53bb\u91cd\u8ba1\u6570");case S.AGGREGATION_MAX:return E.get("max","\u6700\u5927");case S.AGGREGATION_MIN:return E.get("min","\u6700\u5c0f");case S.AGGREGATION_AGG:return E.get("aggregation","\u805a\u5408");default:throw Error("Unknown aggregation: "+g);}};S.partValueToString=function(g){switch(g){case S.PARTVALUE_DATE_YEAR:return E.get("year","\u5e74");case S.PARTVALUE_DATE_QUARTER:return E.get("quarter","\u5b63\u5ea6");case S.PARTVALUE_DATE_MONTH:return E.get("month",
"\u6708");case S.PARTVALUE_DATE_DAY:return E.get("day","\u65e5");case S.PARTVALUE_DATE_YQ:return E.get("yearQuarter","\u5e74\u5b63");case S.PARTVALUE_DATE_YM:return E.get("yearMonth","\u5e74\u6708");case S.PARTVALUE_DATE_YMD:return E.get("yearMonthDay","\u5e74\u6708\u65e5");case S.PARTVALUE_DATE_EXACT:return"";default:throw Error("Unknown partValue: "+g);}};S.quickSetupToString=function(g){switch(g){case S.QUICKSETUP_LASTPERIOD_VALUE:return E.get("lastPeriodValue","\u4e0a\u671f\u503c");case S.QUICKSETUP_LASTPERIOD_DIFF:return E.get("lastPeriodDiff",
"\u73af\u6bd4\u5dee\u989d");case S.QUICKSETUP_LASTPERIOD_RATIO:return E.get("lastPeriodRatio","\u73af\u6bd4\u589e\u957f\u7387");case S.QUICKSETUP_SAMEPERIODLASTYEAR_VALUE:return E.get("samePeriodLastYearValue","\u53bb\u5e74\u540c\u671f\u503c");case S.QUICKSETUP_SAMEPERIODLASTYEAR_DIFF:return E.get("samePeriodLastYearDiff","\u540c\u6bd4\u5dee\u989d");case S.QUICKSETUP_SAMEPERIODLASTYEAR_RATIO:return E.get("samePeriodLastYearRatio","\u540c\u6bd4\u589e\u957f\u7387");case S.QUICKSETUP_RUNNINGSUM:return E.get("runningSum",
"\u7d2f\u8ba1");case S.QUICKSETUP_RUNNINGSUMY:return E.get("runningSumY","\u5e74\u5185\u7d2f\u8ba1");case S.QUICKSETUP_RATIO_10:return E.get("ratio10","\u5206\u7ec4\u5185\u540c\u4e00\u884c");case S.QUICKSETUP_RATIO_01:return E.get("ratio01","\u5206\u7ec4\u5185\u540c\u4e00\u5217");case S.QUICKSETUP_RATIO_11:return E.get("ratio11","\u5206\u7ec4\u5185\u540c\u4e00\u5757");case S.QUICKSETUP_RATIO_90:return E.get("ratio90","\u6574\u884c");case S.QUICKSETUP_RATIO_09:return E.get("ratio09","\u6574\u5217");
case S.QUICKSETUP_RATIO_99:return E.get("ratio99","\u6574\u8868");default:throw Error("Unknown quickSetup: "+g);}};S.sortToString=function(g){switch(g){case S.SORT_ASC:return E.get("sortAsc","\u5347\u5e8f");case S.SORT_DESC:return E.get("sortDesc","\u964d\u5e8f");default:return E.get("sortNone","\u9ed8\u8ba4")}};S.InvalidPrompt=function(){var g,d,e;this.isCancel=function(){return!e};this.getLevel=function(){return g};this.setLevel=function(c,b){g=c;e=b?!0:!1};this.getPromptText=function(){return d};
this.setPromptText=function(c){d=c}};S.InvalidPrompt.LEVEL_META_LOST=10;S.InvalidPrompt.LEVEL_META_INVALID=11;S.InvalidPrompt.LEVEL_AGG=20;S.InvalidPrompt.LEVEL_FILTER_UNMATCHED=30;ua.create=function(g){var d=null;if(g){switch(g.type){case "discrete":d=new fa;break;case "tree":d=new W;break;case "continuous":d=new Ea;break;case "continuousDate":d=new Va;break;case "invalid":d=new Oa;break;default:throw Error("Unkonwn FilterPreparedModel type.");}d.fromJsonObject(g)}return d};wa.KEY_AFFECTED="affected";
wa.KEY_ONSHOW="onShow";wa.STATE_VALID="valid";wa.STATE_INVALID="invalid";wa.STATE_FIELD_ERROR="field_error";wa.STATE_PMODEL_UNMATCH="pmodel_unmatch";wa.create=function(g){if(g instanceof fa||g instanceof W){var d=new Ga;d.setPreparedModel(g)}else if(g instanceof Ea)d=new Ia,d.setPreparedModel(g),d.setContainNull(!0);else if(g instanceof Va)d=new hb,d.setPreparedModel(g),d.setContainNull(!0);else throw Error("Unkonwn PreparedModel.");return d};Ga.FILTER_NAME="discrete";Ga.STRING_NULL_VALUE="kd.qing.null";
Ga.KEY_EXCLUDE="exclude";Ga.KEY_CTRLTYPE="ctrlType";Ga.CTRLTYPE_CHECKBOX_LIST="Checkbox_List";Ga.CTRLTYPE_CHECKBOX_POPUP="Checkbox_Popup";Ga.CTRLTYPE_RADIOBUTTON_LIST="RadioButton_List";Ga.CTRLTYPE_RADIOBUTTON_POPUP="RadioButton_Popup";Ia.FILTER_NAME="continuous";hb.FILTER_NAME="continuousDate";bb.createPicker=function(g){switch(g){case bb.PICKER_FULL:return new Jb;case bb.PICKER_CONDITION:return new pa;case bb.PICKER_MAX:return new Vb;case bb.PICKER_MIN:return new tb;default:throw Error("Unknown:"+
g);}};bb.PICKER_FULL="FULL";bb.PICKER_CONDITION="CONDITION";bb.PICKER_MAX="MAX";bb.PICKER_MIN="MIN";lb.createCondition=function(g){switch(g){case lb.CONDITION_NORMAL:return new La;case lb.CONDITION_CUSTOM:return new ab;default:throw Error("Unknown:"+g);}};lb.CONDITION_NORMAL="NORMAL";lb.CONDITION_CUSTOM="CUSTOM";lb.ConditionItem=Na;lb.OP_EQUAL="E";lb.OP_NOT_EQUAL="NOT_E";lb.OP_NULL="N";lb.OP_NOT_NULL="NOT_N";lb.OP_GREATER="G";lb.OP_GREATER_EQUAL="GE";lb.OP_LESS="L";lb.OP_LESS_EQUAL="LE";Na.LOGIC_AND=
"AND";Na.LOGIC_OR="OR";ma.create=function(g,d,e,c){var b={};b.uid=g;b.refToId=d;b.fullPath=e;b.refName=c;g=new ma;g.fromJsonObject(b);return g};ha.TYPE_AVG="AVG";ha.TYPE_MEDIAN="MEDIAN";ha.TYPE_CONST="CONST"})();(function(){function Ya(){this.perform=function(){throw Error("Override me.");};this.unperform=function(){throw Error("Override me.");};this.getCaption=function(){throw Error("Override me.");};this.setValue=function(S){}}function Lb(){var S,Ma=[],Ja;this.setCaption=function(ua){S=ua};this.getCaption=function(){return S};this.appendUnitAction=function(ua){Ma.push(ua)};this.perform=function(){Ja&&Ja(!0);for(var ua=0,W=Ma.length-1;ua<=W;ua++)Ma[ua].perform();Ja&&Ja(!1)};this.unperform=function(){Ja&&
Ja(!0);for(var ua=Ma.length-1;0<=ua;ua--)Ma[ua].unperform();Ja&&Ja(!1)};this.setAnnouncer=function(ua){Ja=ua}}"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.core&&(com.kingdee.bos.qing.core={});"undefined"==typeof com.kingdee.bos.qing.core.controller&&(com.kingdee.bos.qing.core.controller={});var wb=
com.kingdee.bos.qing.core.controller;wb.CommandManager=function(){var S=[],Ma=[],Ja=null,ua=!1,W=new eb,fa=new eb;this.addPerformedListener=function(Ga){fa.addListener(Ga)};this.perform=function(Ga){Ja?Ja.appendUnitAction(Ga):(Ga.perform(),Ea(S,Ga),Ma.length=0,Va(Ga,!0))};this.compositeStart=function(Ga){if(null!=Ja)throw Error("Can not start composite command twice.");Ja=new Lb;Ja.setAnnouncer(wa);Ja.setCaption(Ga)};this.compositeEnd=function(){Ja.perform();var Ga=Ja;Ea(S,Ga);Ma.length=0;Va(Ga,!0);
Ja=null};this.compositeAbort=function(){Ja=null};this.isCompositeStarted=function(){return null!=Ja};this.createCompositeAction=function(){var Ga=new Lb;Ga.setAnnouncer(wa);return Ga};this.untilWakeup=function(Ga){ua?W.addListener(Ga):Ga()};this.isCanUndo=function(){return 0<S.length};this.isCanRedo=function(){return 0<Ma.length};this.undo=function(){var Ga=S.pop();Ga&&(Ga.unperform(),Ea(Ma,Ga),Va(Ga,!1,!0))};this.redo=function(){var Ga=Ma.pop();Ga&&(Ga.perform(),Ea(S,Ga),Va(Ga,!1,!1))};this.reset=
function(){S.length=0;Ma.length=0;Va(null)};var Ea=function(Ga,Ia){Ga.push(Ia);32<Ga.length&&Ga.splice(0,1)},Va=function(Ga,Ia,hb){fa.fireEvent(function(ib){ib(Ga,Ia,hb)})},Oa=function(){ua=!1;W.fireEvent(function(Ga){Ga()});W.removeAllListener()},wa=function(Ga){Ga?ua=!0:Oa()}};wb.AbstractAction=Ya;wb.ActionChangeProperty=function(){Ya.call(this);var S=this,Ma,Ja,ua,W;this.setCaption=function(fa){Ma=fa};this.getCaption=function(){return Ma};this.setMethod=function(fa,Ea){Ja=fa;ua=Ea};this.setValue=
function(fa){W=fa};this.perform=function(){var fa=Ja();ua(W);W=fa};this.unperform=function(){S.perform()}};wb.ActionChangeRole=function(S){Ya.call(this);var Ma=this,Ja,ua,W,fa;this.getCaption=function(){return Ja};this.setValue=function(Ea){Ea==zb.ROLE_DIMENSION?(ua=zb.ROLE_DIMENSION,W=null,fa=!1):(ua=zb.ROLE_MEASURE,W=Ea,fa=!0);Ja=S.getRole()==ua?pb.get("changeAggregation","\u6539\u53d8#1\u805a\u5408\u65b9\u5f0f"):pb.get("changeRole","\u6539\u53d8#1\u7ef4\u5ea6/\u5ea6\u91cf");Ja=Ja.replace("#1",
S.getComplexText())};this.perform=function(){var Ea=S.getRole(),Va=S.getAggregation(),Oa=S.isContinuous();S.setRole(ua,W);S.setContinuous(fa);ua=Ea;W=Va;fa=Oa};this.unperform=function(){Ma.perform()}};wb.ActionChangePartValue=function(S){Ya.call(this);var Ma=this,Ja,ua,W;this.setCaption=function(fa){Ja=fa};this.getCaption=function(){return Ja};this.setValue=function(fa){ua=fa;W=null};this.perform=function(){var fa=S.getPartValue(),Ea=S.getDateFormat();S.setPartValue(ua);S.setDateFormat(W);ua=fa;W=
Ea};this.unperform=function(){Ma.perform()}};wb.ActionChangeFilterCtrlType=function(){Ya.call(this);var S,Ma,Ja,ua,W,fa,Ea;this.setCaption=function(Va){S=Va};this.getCaption=function(){return S};this.setValue=function(Va,Oa){Ma=Va;Ja=Oa;W=Ma.getCtrlType();fa=null;Va=Ma.isSingleValueMode();Oa=Ma.isSingleValueMode(Ja);if(!Va&&Oa){fa=Ma.getAllSelectedValue();Ea=Ma.isFullValue();ua={};Va=!1;Oa=Ma.getSelectableItems();for(var wa=0;wa<Oa.length;wa++){var Ga=Oa[wa].getValue();if(Ma.isValueSelected(Ga)){Va=
ua[Ga]=!0;break}}!Va&&0<Oa.length&&(Va=Oa[0].getValue(),ua[Va]=!0)}};this.perform=function(){Ma.setCtrlType(Ja,ua,!1)};this.unperform=function(){Ma.setCtrlType(W,fa,Ea)}};wb.ActionAddSelectedValueForDiscreteFilter=function(S){Ya.call(this);var Ma,Ja,ua;this.getCaption=function(){return(Ja?pb.get("addFilterValue","\u6dfb\u52a0\u7b5b\u9009\u503c"):pb.get("moveFilterValue","\u79fb\u9664\u7b5b\u9009\u503c"))+": "+ua};this.setValue=function(W,fa,Ea){Ma=W;Ja=fa;ua=void 0==Ea?W:Ea};this.perform=function(){Ja?
S.addSelectedValue(Ma):S.removeSelectedValue(Ma)};this.unperform=function(){Ja?S.removeSelectedValue(Ma):S.addSelectedValue(Ma)}};wb.ActionChangeSelectedValueForDiscreteFilter=function(S){Ya.call(this);var Ma,Ja,ua;this.getCaption=function(){return pb.get("modifyFilterValue","\u4fee\u6539\u7b5b\u9009\u503c")+": "+Ja};this.setValue=function(W,fa){Ma=W;Ja=void 0==fa?W:fa;fa=S.getSelectableItems();for(var Ea=0;Ea<fa.length;Ea++)if(W=fa[Ea].getValue(),S.isValueSelected(W)){ua=W;break}};this.perform=function(){S.setSelectedValue(Ma)};
this.unperform=function(){S.setSelectedValue(ua)}};wb.ActionChangeValueForContinuousFilter=function(S){Ya.call(this);var Ma=this,Ja,ua,W;this.getCaption=function(){return pb.get("modifyFilterValue","\u4fee\u6539\u7b5b\u9009\u503c")};this.setValue=function(fa,Ea,Va){Ja=fa;ua=Ea;W=Va};this.perform=function(){var fa=S.getFloor(),Ea=S.getCeiling(),Va=S.isContainNull();S.setValue(Ja,ua,W);Ja=fa;ua=Ea;W=Va};this.unperform=function(){Ma.perform()}};wb.ActionChangeValueForDateFilter=function(S){Ya.call(this);
var Ma=this,Ja;this.getCaption=function(){return pb.get("modifyFilterValue","\u4fee\u6539\u7b5b\u9009\u503c")};this.setValue=function(ua){Ja=ua};this.perform=function(){var ua=S.copy();S.setValue(Ja.getFromDateMs(),Ja.getToDateMs(),Ja.getRelativePeriodModel(),Ja.isContainNull());Ja=ua};this.unperform=function(){Ma.perform()}};wb.ActionResetAllSelectedValueForDiscreteFilter=function(S){Ya.call(this);var Ma=this,Ja;this.getCaption=function(){return pb.get("modifyFilterValue","\u4fee\u6539\u7b5b\u9009\u503c")};
this.setValue=function(ua){Ja=ua};this.perform=function(){var ua=S.getAllSelectedValue();S.resetAllSelectedValue(Ja);Ja=ua};this.unperform=function(){Ma.perform()}};wb.ActionInsertMetaField=function(S,Ma){Ya.call(this);var Ja=this,ua,W,fa,Ea=Ma,Va,Oa,wa=-1;this.setCaption=function(Ga){ua=Ga};this.getCaption=function(){return ua};this.setValue=function(Ga,Ia){W=Ga;fa=Ia};this.setViewContext=function(Ga,Ia){Va=Ga;Oa=Ia};this.perform=function(){wa=S.updateFieldAtView(W.getPureName(),Ea,Va,Oa,wa);Ea?
S.insertField(W,fa):S.removeField(fa);Ea=!Ea};this.unperform=function(){Ja.perform()}};wb.ActionDefineOrder=function(){Ya.call(this);var S=this,Ma,Ja,ua;this.setValue=function(W,fa,Ea){Ma=W;Ja=fa;ua=Ea};this.perform=function(){var W=Ma.getSortAccording(),fa=Ma.getCustomOrder();Ma.defineOrder(Ja,ua);Ja=W;ua=fa};this.unperform=function(){S.perform()}};wb.AbstractActionAppendAllNecessaryDimensions=function(){Ya.call(this);this.getCaption=function(){return pb.get("appendAllNecessaryDimensions","\u4e00\u952e\u6dfb\u52a0\u5fc5\u8981\u5b57\u6bb5")};
this.protectedMethod={visitMissingNecessaryDimensions:function(S,Ma,Ja){for(var ua=[],W=0,fa=S.getTableCount();W<fa;W++){for(var Ea=S.getTable(W),Va=Ea.getNecessaryParentChildDimensions(),Oa={},wa=0;wa<Va.length;wa++){var Ga=Va[wa];Oa[Ga.getName()]=Ga}for(wa=0;wa<Ma.length;wa++)Va=Ma[wa],Va.getTable()==Ea&&Va.isParentChildDimension()&&(Va=Va.getGroupName(),delete Oa[Va]);for(var Ia in Oa)Ga=Oa[Ia],wa=Ga.getDisplayFieldName()||Ga.getIdFieldName(),Va=Ea.searchMetaField(wa),ua.push(Va)}for(S=0;S<ua.length;S++)Ma=
ua[S],W=Yb.create({type:"tree",nodes:[]}),W=Mb.create(W),W=Ja(W),W.setMetaField(Ma),W.setRole(zb.ROLE_DIMENSION),W.setContinuous(!1)}}};var eb,pb,zb,Yb,Mb;(function(){var S=com.kingdee.bos.qing.common;eb=S.EventListenerList;S=com.kingdee.bos.qing.framework.common;pb=S.MultilanguageManager.createPackageAccessor(wb);S=com.kingdee.bos.qing.core.model;zb=S.AbstractAnalyticalField;Yb=S.AbstractFilterPreparedModel;Mb=S.AbstractFilter})()})();(function(){function Ya(){pb.call(this);var Mb=this,S=this.protectedMethod,Ma,Ja=this.showDialog;this.showDialog=function(fa,Ea,Va,Oa){Ma=Ea;S.setTitle(eb.get("warningRule","\u9884\u8b66\u89c4\u5219"));Mb.setSize(400,480);S.setContentPaneCreator(function(){return ua(fa)});S.setClosingChecker(function(){return Ma?!0:(S.getMessageCurtain().showPrompt(eb.get("warningRuleUsageNoSelected","\u672a\u9009\u62e9\u9884\u8b66\u89c4\u5219\u3002")),!1)});S.setClosingAction(function(wa){wa&&Va(Ma);Oa&&Oa(wa)});
Ja()};var ua=function(fa){var Ea=[],Va={};fa=fa.getModelPages();for(var Oa=0;Oa<fa.length;Oa++){var wa=fa[Oa].getModel().getWarningRuleDefinitions();if(wa)for(var Ga=0;Ga<wa.length;Ga++){var Ia=wa[Ga],hb=Ia.getName();Ia=Ia.getDescription();Ea.push(hb);Va[hb]=Ia?Ia:null}}var ib=$("<div>");ib.css({"box-sizing":"border-box",border:"1px solid #ddd",padding:"6px",color:"#808080","white-space":"pre-wrap",overflow:"auto"});Oa=new Yb;Oa.setItemModels(Ea);Oa.setSelecteds(Ma?[Ma]:[]);Oa.addSelectedChangedListener(function(nb,
bb,la){Ma=la[0];W(Va,ib)});W(Va,ib);wa=new zb(eb.get("warningRuleUsageCaptionSelectable","\u5df2\u5b9a\u4e49\u7684\u9884\u8b66\u89c4\u5219"));Ga=new zb(eb.get("warningRuleUsageCaptionSelected","\u9009\u4e2d\u7684\u9884\u8b66\u89c4\u5219\u53ca\u5176\u63cf\u8ff0"));fa=$("<div>");fa.append(wa.getJqUi());fa.append(Oa.getJqUi());fa.append(Ga.getJqUi());fa.append(ib);wb.layoutCtrlWithLRTB(wa.getJqUi(),0,0,null,0,null,23);wb.layoutCtrlWithLRTB(Oa.getJqUi(),0,0,null,23,120,null);wb.layoutCtrlWithLRTB(Ga.getJqUi(),
0,0,null,null,80,23);wb.layoutCtrlWithLRTB(ib,0,0,null,null,0,80);0==Ea.length&&(Ea=new zb(eb.get("warningRuleUsageSelectableEmpty","\u672a\u5b9a\u4e49\u9884\u8b66\u89c4\u5219")),Ea.setEnabled(!1),Ea.setAlign(zb.ALIGN_CENTER),Ea.getJqUi().appendTo(fa),wb.layoutCtrlWithLRTB(Ea.getJqUi(),0,0,null,50,null,23));return fa},W=function(fa,Ea){Ma?((fa=fa[Ma])?Ea.css("color",""):null===fa?(Ea.css("color",""),fa=eb.get("warningRuleUsageNoDescription","\u8be5\u9884\u8b66\u89c4\u5219\u65e0\u63cf\u8ff0\u3002")):
(Ea.css("color","#c00"),fa=eb.get("warningRuleUsageNotExistName","\u8be5\u540d\u79f0\u4e0d\u5b58\u5728\u3002")),fa=Ma+"\r\n"+fa,Ea.text(fa)):(Ea.css("color","#ccc"),Ea.text(eb.get("warningRuleUsageNoSelected","\u672a\u9009\u62e9\u9884\u8b66\u89c4\u5219\u3002")))}}"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.core&&
(com.kingdee.bos.qing.core={});"undefined"==typeof com.kingdee.bos.qing.core.ui&&(com.kingdee.bos.qing.core.ui={});var Lb=com.kingdee.bos.qing.core.ui;Lb.WarningRuleSelector=Ya;var wb,eb,pb,zb,Yb;(function(){var Mb=com.kingdee.bos.qing.common;wb=Mb.DomUtil;Mb=com.kingdee.bos.qing.framework.common;eb=Mb.MultilanguageManager.createPackageAccessor(Lb);Mb=com.kingdee.bos.qing.ui.component;pb=Mb.AbstractModalDialog;zb=Mb.Label;Yb=Mb.List})();Ya.checkWarningRuleExist=function(Mb,S){Mb=Mb.getModelPages();
for(var Ma=0;Ma<Mb.length;Ma++){var Ja=Mb[Ma].getModel().getWarningRuleDefinitions();if(Ja)for(var ua=0;ua<Ja.length;ua++)if(S==Ja[ua].getName())return!0}return!1}})();(function(){function Ya(){var Y=this,z=[],D,I,P=!1;this.getJqUi=function(){D||(D=$("<div>"),D.css("overflow","auto"),I=new ma,I.setText(Y.protectedGetAddButtonText()),I.getJqUi().addClass("sa-itempane-add"),I.addActionListener(function(da){Y.protectedAddItemAction()}),I.getJqUi().appendTo(D),J());return D};var O=function(){return D.children(".sa-itempane-item")},R=function(da){z.splice(da,1);var Aa=O().eq(da);Aa.animate({height:"0px"},"fast",function(){Aa.remove()})},Z=function(da){for(var Aa=0;Aa<
z.length&&!da(z[Aa],Aa);Aa++);},G=function(da){var Aa=-1;Z(function(Za,sb){var Ab=!1;da==Za&&(Aa=sb,Ab=!0);return Ab});return Aa},J=function(){P=!0;Y.protectedUpdateUiImpl();P=!1},ja=function(da){da=G(da);0<=da&&(Y.protectedDeleteItemModel(da),R(da))},Q=function(da,Aa){return 0==z.length||Aa&&da==z[0]||!Aa&&da==z[z.length-1]?!1:!0},T=function(da,Aa){var Za=G(da);if(0<=Za){var sb=Za+(Aa?-1:1),Ab=z[sb],xa=O(),Ra=xa.eq(Za),kb=xa.eq(sb),Db=Ra.prop("offsetTop"),Ub=kb.prop("offsetTop"),$b=Ra.prop("offsetHeight"),
Cb=kb.prop("offsetHeight");xa=function(){var Qa=$("<div>");Qa.css("height",$b);Qa.addClass("sa-itempane-item");Qa.insertBefore(Ra);var Ua=$("<div>");Ua.css("height",Cb);Ua.addClass("sa-itempane-item");Ua.insertBefore(kb);za(Ra,!0,Db);za(kb,!0,Ub);kb.animate({top:Db},"slow");Ra.animate({top:Ub},"slow",function(){Qa.remove();Ua.remove();za(Ra,!1);za(kb,!1);Aa?Ra.insertBefore(kb):Ra.insertAfter(kb);z.splice(Za,1);z.splice(sb,0,da);Y.protectedMoveItemModel(Za,sb);da.requestMovingButtonVisibleUpdating();
Ab.requestMovingButtonVisibleUpdating()})};var Nb=Math.min(Db,Ub),ac=Nb+$b+Cb,cc=D.prop("scrollTop"),na=cc,Fa=na+D.prop("clientHeight");Nb<na?D.animate({scrollTop:Nb},"fast",xa):ac>Fa?D.animate({scrollTop:cc+(ac-Fa)},"fast",xa):xa()}},za=function(da,Aa,Za){Aa?da.css({position:"absolute",top:Za}):da.css({position:"",top:""})};this.protectedGetAddButtonText=function(){throw Error("Override");};this.protectedUpdateUiImpl=function(){throw Error("Override");};this.protectedCreateOneItemPanel=function(da){throw Error("Override");
};this.protectedAddItemAction=function(){throw Error("Override");};this.protectedDeleteItemModel=function(da){throw Error("Override");};this.protectedMovable=function(){return!1};this.protectedMoveItemModel=function(da,Aa){};this.protectedMethod={updateUi:J,clearAllItemUi:function(){D&&O().remove();z=[]},appendItemUi:function(da){D&&(da=Y.protectedCreateOneItemPanel(da),da.setDeleteListener(ja),Y.protectedMovable()&&da.setMovingDependence(Q,T),z.push(da),da=da.createJqUi(),da.addClass("sa-itempane-item"),
da.insertBefore(I.getJqUi()),P||(da=I.getJqUi().prop("offsetTop"),D.animate({scrollTop:da})))},searchItemPanelIndex:G,visitAllItemPanel:Z,scrollItemUiToVisible:function(da,Aa){var Za=O().eq(da);da=Za.prop("offsetTop");Za=da+Za.prop("offsetHeight");var sb=D.prop("clientHeight"),Ab=D.prop("scrollTop"),xa=Ab+sb;da<Ab?D.animate({scrollTop:da-10},"fast",Aa):Za>xa?D.animate({scrollTop:Za-sb+10},"fast",Aa):Aa()}}}function Lb(){var Y=new E,z=new function(){E.AbstractTabPane.call(this);var G,J=new e;this.getTitle=
function(){return la.get("formatTabNormal","\u5e38\u89c4")};this.getJqUi=function(){G||(G=$("<div>"),J.getJqUi().appendTo(G),Ia.layoutCtrlWithLRTB(J.getJqUi(),10,10,null,10,10,null));return G};this.getSettingPanel=function(){return J}},D=new function(){E.AbstractTabPane.call(this);var G=this,J,ja=new $a,Q=$("<div>"),T,za=!1;(function(){ja.addEditedListener(function(Aa){za=!0;T&&T(za);da()});Q.text(la.get("formatStringEmptyPrompt","\u81ea\u5b9a\u4e49\u683c\u5f0f\u5316\u4e32\u4e0d\u80fd\u4e3a\u7a7a\u3002"));
Q.css({color:"#c00",display:"none"})})();this.getTitle=function(){return la.get("formatTabCustom","\u81ea\u5b9a\u4e49")};this.getJqUi=function(){if(!J){J=$("<div>");var Aa=new Vb(la.get("formatString","\u683c\u5f0f\u5316\u4e32"));Aa.getJqUi().appendTo(J);ja.getJqUi().appendTo(J);Q.appendTo(J);Ia.layoutCtrlWithLRTB(Aa.getJqUi(),10,10,null,10,null,23);Ia.layoutCtrlWithLRTB(ja.getJqUi(),10,10,null,34,null,23);Ia.layoutCtrlWithLRTB(Q,10,10,null,60,null,23)}return J};this.getCustomFormat=function(){var Aa=
ja.getText();return null===Aa?d.UNSURE:$.trim(Aa)};this.setCustomFormat=function(Aa){ja.setText(Aa==d.UNSURE?null:Aa);da()};this.isValidToAccepted=function(){return G.getCustomFormat()?!0:!1};this.isDirty=function(){return za};this.clearDirtyState=function(){za=!1;T&&T(za)};this.setDirtyListener=function(Aa){T=Aa};var da=function(){var Aa=G.getCustomFormat()?!1:!0;Q.css("display",Aa?"":"none")}},I=!1,P=!1,O=!1,R,Z=!1;(function(){Y.setTabLevel(E.SECOND_LEVEL);Y.addTab(z);Y.addTab(D);Y.addTabChangedListener(function(G,
J){if(!I)if(Z=!0,R&&R(!0),J==z)O&&(G=D.getCustomFormat(),J=new d,G!=d.UNSURE&&J.decode(G),z.getSettingPanel().setModel(J)),P=!1;else{if(P||!D.getCustomFormat())J=new d,J.accept(z.getSettingPanel().getModel()),G=J.encode(),D.setCustomFormat(G);O=!1}});z.getSettingPanel().setDirtyListener(function(G){G&&(P=!0,R&&R(!0))});D.setDirtyListener(function(G){G&&(O=!0,R&&R(!0))})})();this.setModelPair=function(G){var J=G[0];G=G[1];if(J){z.getSettingPanel().setModel(J);if(J.isUnsure()){var ja=new d;ja.accept(J);
J=ja.encode()}else J=J.encode();D.setCustomFormat(J);J=z}else D.setCustomFormat(G),ja=new d,G!=d.UNSURE&&ja.decode(G),z.getSettingPanel().setModel(ja),J=D;I=!0;Y.setCurrentTabPane(J);I=!1};this.getModelPair=function(){return Y.getCurrentTabPane()==z?[z.getSettingPanel().getModel(),null]:[null,D.getCustomFormat()]};this.getJqUi=function(){return Y.getJqUi()};this.setDirtyListener=function(G){R=G};this.isDirty=function(){return Z||z.getSettingPanel().isDirty()||D.isDirty()};this.clearDirtyState=function(){O=
P=Z=!1;z.getSettingPanel().clearDirtyState();D.clearDirtyState();R&&R(!1)};this.isValidToAccepted=function(){return Y.getCurrentTabPane()==z?z.getSettingPanel().isValidToAccepted():D.isValidToAccepted()}}function wb(){function Y(){var ja,Q,T,za=!1;this.setTargetField=function(da){ja=da};this.getTargetField=function(){return ja};this.getTargetFieldFullName=function(){return ja?ja.getFullName():null};this.setBoundFieldFullName=function(da){Q=da};this.getBoundFieldFullName=function(){return Q};this.setManualOrder=
function(da){T=da};this.getManualOrder=function(){return T};this.setCustom=function(da){za=da};this.isCustom=function(){return za};this.isAllEmpty=function(){return!ja&&!Q&&!T};this.isCompleted=function(){return ja&&(!za&&Q||za&&T)}}function z(){Ya.AbstractOneItemPanel.call(this);var ja;this.setItemModel=function(xa){ja=xa};this.getItemModel=function(){return ja};this.protectedGetHeight=function(){return 112};this.protectedInitJqUi=function(xa){var Ra=new Vb(la.get("sortAccordingTargetField","\u76ee\u6807\u5b57\u6bb5")),
kb=new Vb(la.get("sortAccordingType","\u6392\u5e8f\u4f9d\u636e")),Db=new Vb,Ub=new tb;Ub.setText(la.get("sortAccordingBound","\u4f9d\u636e\u5b57\u6bb5"));var $b=new tb;$b.setText(la.get("sortAccordingManual","\u624b\u52a8\u6392\u5e8f"));var Cb=new lb;Cb.addElement(Ub);Cb.addElement($b);Cb.addChangedListener(function(na){na=na==$b;ja.setCustom(na);Db.setText(na?la.get("sortAccordingManualTitle","\u624b\u52a8\u6392\u5e8f"):la.get("sortAccordingBoundTitle","\u4f9d\u636e\u5b57\u6bb5"));ac.getJqUi().css("display",
na?"none":"");cc.getJqUi().css("display",na?"":"none")});Cb=(Cb=ja.getTargetField())?O.searchMetaField(Cb.getFullName()):null;var Nb=T(O);Nb.setSelectedModel(Cb);Nb.setCustomPainter(da);Nb.addSelectionListener(function(na,Fa){Fa&&(na=na.getSelectedModel(),ja.setTargetField(na),ja.setBoundFieldFullName(na.getSortAccording()),ja.setManualOrder(na.getCustomOrder()),ja.setCustom(na.getCustomOrder()?!0:!1),Q(Ub,$b,ac,cc))});var ac=T(R);ac.setCustomPainter(Aa);ac.addSelectionListener(function(na,Fa){Fa&&
ja.setBoundFieldFullName(na.getSelectedModel().getFullName())});var cc=new ab;cc.setCustomPainter(Za);cc.addActionListener(sb);Q(Ub,$b,ac,cc);xa.append(Ra.getJqUi());xa.append(kb.getJqUi());xa.append(Db.getJqUi());xa.append(Nb.getJqUi());xa.append(Ub.getJqUi());xa.append($b.getJqUi());xa.append(ac.getJqUi());xa.append(cc.getJqUi());Ia.layoutCtrlWithLRTB(Ra.getJqUi(),0,null,100,6,null,23);Ia.layoutCtrlWithLRTB(kb.getJqUi(),0,null,100,40,null,23);Ia.layoutCtrlWithLRTB(Db.getJqUi(),0,null,100,74,null,
23);Ia.layoutCtrlWithLRTB(Nb.getJqUi(),100,100,null,6,null,23);Ia.layoutCtrlWithLRTB(Ub.getJqUi(),100,null,120,40,null,23);Ia.layoutCtrlWithLRTB($b.getJqUi(),240,null,120,40,null,23);Ia.layoutCtrlWithLRTB(ac.getJqUi(),100,100,null,74,null,23);Ia.layoutCtrlWithLRTB(cc.getJqUi(),100,100,null,74,null,23)};var Q=function(xa,Ra,kb,Db){ja.isCustom()?Ra.setChecked(!0):xa.setChecked(!0);xa=(xa=ja.getBoundFieldFullName())?R.searchMetaField(xa):null;kb.setSelectedModel(xa);Db.setModel(ja.getManualOrder())},
T=function(xa){var Ra=new La;Ra.setDropdownCreator(function(kb,Db,Ub){return za(kb,Db,Ub,xa)});return Ra},za=function(xa,Ra,kb,Db){var Ub=Z.createMetaList();Ub.setMetaModel(Db);Ub.setSelectedMetaField(Ra);Ub.addPressedListener(function($b,Cb){($b=Ub.getSelectedLeafMetaField())&&kb($b)});Ra=Ub.getJqUi();Ia.layoutCtrlWithLRTB(Ra,0,0,null,0,0,null);Ra.appendTo(xa);return[-1,21*Math.max(4,Ub.getVisibleItemsCount()+1)]},da=function(xa,Ra){Ra.text(xa?xa.getFullDisplayName():"")},Aa=function(xa,Ra){xa?(Ra.css("color",
""),Ra.text(xa.getFullDisplayName())):(Ra.css("color","#999"),Ra.text(la.get("sortAccordingBoundPlaceholder","\uff08\u8bf7\u786e\u4fdd\u6b64\u5b57\u6bb5\u4e0e\u76ee\u6807\u5b57\u6bb5\u7684\u503c\u4e00\u4e00\u5bf9\u5e94\uff09")))},Za=function(xa){var Ra="";if(xa){for(var kb=0;kb<Math.min(10,xa.length);kb++)0<Ra.length&&(Ra+=", "),Ra+=xa[kb];10<xa.length&&(Ra+="...")}return Ra},sb=function(xa){var Ra=ja.getTargetFieldFullName();if(Ra){var kb=ja.getManualOrder();!kb&&(kb=[]);Z.createFacade(function(Db){Db?
0<Db.length?Ab(xa,Db):Z.showWarning(la.get("sortAccordingManualPrompt2","\u6ca1\u6709\u6570\u636e\u3002")):Z.showWarning(la.get("sortAccordingManualPrompt3","\u76ee\u6807\u5b57\u6bb5\u8d85\u8fc7#1\u4e2a\u503c\uff0c\u4e0d\u5efa\u8bae\u8fdb\u884c\u624b\u52a8\u6392\u5e8f\u3002").replace("#1",100))}).getCustomizedOrderDimensionMembers(P,Ra,kb)}else Z.showWarning(la.get("sortAccordingManualPrompt1","\u8bf7\u5148\u6307\u5b9a\u76ee\u6807\u5b57\u6bb5\u3002"))},Ab=function(xa,Ra){var kb=new D;kb.setMembers(Ra);
kb.setConfirmAction(function(Db){xa.setModel(Db);ja.setManualOrder(Db)});kb.showDialog()}}function D(){pa.call(this);var ja=this,Q=this.protectedMethod,T=new c,za;(function(){ja.setSize(480,400);Q.setMaxSize(720,560);Q.setTitle(la.get("sortAccordingManual","\u624b\u52a8\u6392\u5e8f"));Q.setContentPaneCreator(function(){return T.createJqUi()});Q.setClosingAction(function(da){da&&za(T.getItems())})})();this.setConfirmAction=function(da){za=da};this.setMembers=function(da){T.setItems(da)}}Ya.call(this);
var I=this.protectedMethod,P,O,R,Z;this.setContext=function(ja,Q){P=ja;O=J(ja,[ba.DT_STRING]);R=J(ja,[ba.DT_STRING,ba.DT_NUMBER]);Z=Q;I.updateUi()};this.check=function(){var ja="",Q={};I.visitAllItemPanel(function(T,za){var da=T.getItemModel();if(!da.isAllEmpty())if(da.isCompleted()){T=da.getTargetFieldFullName();var Aa=Q[T];if(Aa)var Za=la.get("sortAccordingPromptDuplicated","\u4e0e\u7b2c#1\u9879\u76ee\u6807\u5b57\u6bb5\u91cd\u590d").replace("#1",Aa);else Q[T]=za+1,(da=da.isCustom()?null:da.getBoundFieldFullName())&&
da==T&&(Za=la.get("sortAccordingPromptSame","\u4f9d\u636e\u5b57\u6bb5\u4e0e\u76ee\u6807\u5b57\u6bb5\u76f8\u540c"))}else Za=la.get("sortAccordingPromptIncomplete","\u8bbe\u7f6e\u4e0d\u5b8c\u6574");Za&&(Za=la.get("sortAccordingPrompt","\u7b2c#1\u9879\uff0c#2\u3002").replace("#1",za+1).replace("#2",Za),ja&&(ja+="\r\n"),ja+=Za)});return ja};this.acceptEditing=function(){var ja={};I.visitAllItemPanel(function(sb,Ab){sb=sb.getItemModel();sb.isCompleted()&&(ja[sb.getTargetFieldFullName()]=sb)});for(var Q=
[],T=0;T<P.getTableCount();T++)for(var za=P.getTable(T),da=0;da<za.getFieldCount();da++){var Aa=za.getField(da),Za=ja[Aa.getFullName()];Za?Q.push([Aa,Za.isCustom()?null:Za.getBoundFieldFullName(),Za.isCustom()?Za.getManualOrder():null]):Aa.isOrderDefined()&&Q.push([Aa,null,null])}return Q};this.protectedGetAddButtonText=function(){return la.get("sortAccordingAddItem","\u6dfb\u52a0\u6392\u5e8f\u4f9d\u636e")};this.protectedUpdateUiImpl=function(){I.clearAllItemUi();for(var ja=!1,Q=0;Q<P.getTableCount();Q++)for(var T=
P.getTable(Q),za=0;za<T.getFieldCount();za++){var da=T.getField(za);da.isOrderDefined()&&(G(da),ja=!0)}!ja&&G(null)};this.protectedCreateOneItemPanel=function(ja){var Q=new z;Q.setItemModel(ja);return Q};this.protectedAddItemAction=function(){G(null)};this.protectedDeleteItemModel=function(ja){};var G=function(ja){var Q=new Y;ja&&(Q.setTargetField(ja),Q.setBoundFieldFullName(ja.getSortAccording()),Q.setManualOrder(ja.getCustomOrder()),Q.setCustom(ja.getCustomOrder()?!0:!1));I.appendItemUi(Q)},J=function(ja,
Q){for(var T={},za=0;za<Q.length;za++){var da=Q[za];T[da]=!0}Q=[];for(za=0;za<ja.getTableCount();za++){var Aa=ja.getTable(za).clone();Q.push(Aa);for(var Za=Aa.getFieldCount()-1;0<=Za;Za--){var sb=Aa.getField(Za);da=sb.getDataType();T[da]&&sb.isCanAsDimension()||Aa.removeField(Za)}}ja=new N;ja.carryIn(Q);return ja}}function eb(Y,z){this.getJqAnchor=function(){return Y};this.getPrompt=function(){return z}}function pb(){function Y(){var G,J,ja,Q,T=!1;this.setColor=function(kb){G=kb;J&&za()};this.getColor=
function(){return G};this.getJqUi=function(){J||(J=$("<div>"),J.css("border","1px solid #ccc"),J.on("mousemove",sb),J.on("mouseenter",sb),J.on("mouseleave",Ab),za());return J};this.setSelected=function(kb){J.css("box-shadow",kb?"0 0 5px 2px #0097f0":"")};var za=function(){J.css("background-color",G?G:"");J.find(".diagonal").remove();if(!G){var kb=J.prop("clientWidth"),Db=J.prop("clientHeight"),Ub=Math.sqrt(kb*kb+Db*Db),$b=Math.atan(Db/kb);$b=180*$b/Math.PI;kb=da($b);$b=da(-$b);Ia.layoutCtrl(kb,0,
0,Ub,0);Ia.layoutCtrl($b,0,Db,Ub,0)}},da=function(kb){var Db=$("<div>");Db.addClass("diagonal");Db.css("border-top","1px solid #f4f4f4");Db.css("transform-origin","left top");Db.css("transform","rotate("+kb+"deg)");Db.appendTo(J);return Db},Aa=function(){T||(ja&&ja.getJqUi().remove(),ja=null)},Za=function(){!Q&&G&&(Q=new ma,Q.addActionListener(function(kb){Ra(null)}),Q.setText("X"),Q.getJqUi().css("color","#00a0d1"),Q.getJqUi().css("background-color","#fff"),Q.getJqUi().css("border","1px solid #ccc"),
Q.getJqUi().css("border-radius","8px"),Q.getJqUi().appendTo(J),Ia.layoutCtrlWithLRTB(Q.getJqUi(),null,-6,16,-6,null,16))},sb=function(kb){ja||(ja=new ha,ja.setPopupListener(xa),ja.addSelectedListener(Ra),ja.getJqUi().appendTo(J),Ia.layoutCtrlWithLRTB(ja.getJqUi(),0,0,null,null,0,20),G&&ja.getModel().decodeFrom(G));Za()},Ab=function(kb){Aa();Q&&Q.getJqUi().remove();Q=null},xa=function(kb){T=kb;Aa()},Ra=function(kb){G=kb?kb.encodeToHexRgb():null;za();O&&O()}}var z=[],D,I=4,P=5,O,R,Z=!0;this.setChangedListener=
function(G){O=G};this.setColors=function(G){for(var J=0;J<z.length;J++)z[J].setColor(G[J])};this.getColors=function(){for(var G=[],J=0;J<z.length;J++)G.push(z[J].getColor());return G};this.checkDuplication=function(){for(var G={},J=0;J<z.length;J++){var ja=z[J];if(ja.getColor()){var Q=G[ja.getColor()];if("number"==typeof Q)return R&&R.setSelected(!1),R=ja,R.setSelected(!0),G=Math.floor(J/P)+1,J=J%P+1,Q=z[Q].getJqUi(),J=la.get("palettePromptDuplication","\u4e0e\u7b2c#1\u884c\u7b2c#2\u4e2a\u989c\u8272\u91cd\u590d\u3002").replace("#1",
G).replace("#2",J),new eb(Q,J);G[ja.getColor()]=J}}return null};this.createJqUi=function(G,J){I=G?G:I;P=J?J:P;z.length=I*P;G=parseInt(100/I);J=parseInt(.8*G)+"%";var ja=parseInt(100/P),Q=parseInt(.8*ja)+"%";D=$("<div>");for(var T=0;T<I;T++)for(var za=G*T+"%",da=0;da<P;da++){var Aa=T*P+da,Za=z[Aa];Za||(Za=new Y,z[Aa]=Za);D.append(Za.getJqUi());Aa=ja*da+"%";Ia.layoutCtrl(Za.getJqUi(),Aa,za,Q,J);Za.getJqUi().addClass("pane")}return D};this.clickToSelecting=function(G){R&&R.setSelected(!1);if(G=Ia.upwardSearchHasClass($(G.target),
$(G.currentTarget),"pane"))for(var J=0;J<z.length;J++){var ja=z[J];if(G[0]==ja.getJqUi()[0])return R=ja,R.setSelected(!0),!0}return!1};this.moving=function(G,J){if(Z){for(var ja=R.getJqUi(),Q,T=0;T<z.length;T++)if(ja[0]==z[T].getJqUi()[0]){Q=T;break}G=parseInt(Q/P)+G;J=Q%P+J;G=0>G?I-1:G>=I?0:G;J=0>J?P-1:J>=P?0:J;J=G*P+J;G=z[J];z[J]=R;z[Q]=G;Q=ja.css("left");J=ja.css("top");G=G.getJqUi();T=G.css("left");var za=G.css("top");Z=!1;ja.animate({left:T,top:za},150);G.animate({left:Q,top:J},150,function(){Z=
!0});O&&O()}}}function zb(){var Y=this,z,D,I,P,O,R,Z,G,J,ja,Q,T,za,da,Aa,Za=!1;this.setContext=function(Ka){z=Ka;D||(D=$("<div>"),Ka=new Vb(la.get("continuousColorMode","\u6e10\u53d8\u6a21\u5f0f")),Ra(),kb(),Db(),xa(Ka.getJqUi(),0,null,60,0,null,23),xa(P.getJqUi(),60,null,160,0,null,23),xa(O.getJqUi(),0,null,50,40,null,23),xa(R.getJqUi(),null,0,50,40,null,23),xa(I,0,null,"100%",70,null,23),xa(Z.getJqUi(),0,null,140,110,null,23),xa(T.getJqUi(),0,null,140,133,null,23),xa(J.getJqUi(),null,null,140,110,
null,23),xa(da.getJqUi(),null,null,140,133,null,23),xa(G.getJqUi(),null,0,140,110,null,23),xa(za.getJqUi(),null,0,140,133,null,23),xa(ja.getJqUi(),0,null,88,180,null,23),xa(Aa.getJqUi(),80,null,60,180,null,23),xa(Q.getJqUi(),0,null,320,210,null,23))};this.model2Ui=function(Ka){var Xa=Ka.getForwardGradientColor(),db=Ka.getBackwardGradientColor();P.setSelected((Xa?1:0)|(db?16:0));cc(O,db?db.getColorA():null,db?db.getColorB():null);cc(R,Xa?Xa.getColorA():null,Xa?Xa.getColorB():null);na(Ka);Fa(Ka);Qa(Ka);
Ua(Ka);Q.setChecked(Ka.isWholeColorRange());setTimeout(function(){ac();sb(Ka)},0)};this.ui2Model=function(){var Ka=16==(P.getSelected()&16),Xa=1==(P.getSelected()&1),db=Ka&&Xa,ub=new ia;if(Ka){Ka=O.getModel();Ka=ib.rgbToHsl(Ka.getRed(),Ka.getGreen(),Ka.getBlue());var Ob=O.getUserObject();!db&&(Ob=zb.undressGray(Ob));ub.getBackwardGradientColor(!0).setColor(Ka,Ob)}Xa&&(Xa=R,Ka=Xa.getModel(),Ka=ib.rgbToHsl(Ka.getRed(),Ka.getGreen(),Ka.getBlue()),Xa=Xa.getUserObject(),Xa=[Ka,Xa],Ka=Xa[0],Ob=Xa[1],!db&&
(Ob=zb.undressGray(Ob)),ub.getForwardGradientColor(!0).setColor(Ka,Ob));ub.setSegments(ja.isChecked()?Aa.getValue():null);Xa=Z.isChecked()?parseFloat(T.getText()):null;Xa=isNaN(Xa)?null:Xa;Ka=G.isChecked()?parseFloat(za.getText()):null;Ka=isNaN(Ka)?null:Ka;null!=Xa&&null!=Ka&&Xa>Ka&&(Ob=Xa,Xa=Ka,Ka=Ob);ub.setMinData(Xa);ub.setMaxData(Ka);db?(db=ub.setMiddleData,Xa=J.isChecked()?parseFloat(da.getText()):null,Xa=isNaN(Xa)?null:Xa,db.call(ub,Xa),ub.setWholeColorRange(Q.isChecked())):(ub.setMiddleData(null),
ub.setWholeColorRange(!1));return ub};this.getJqUi=function(){return D};var sb=function(Ka){var Xa=z(function(db){var ub=I.prop("clientWidth"),Ob=I.prop("clientHeight");Ob=bb.createContext2d(I[0],ub,Ob);db=A.parseContontinuousColorLegendModel(db);(new w).draw(Ob,ub,db)});Xa.setShowBlocking(!1);Xa.previewContinuousColor(Ka)},Ab=function(){Za||(Za=!0,setTimeout(function(){var Ka=Y.ui2Model();sb(Ka);Za=!1},100))},xa=function(Ka,Xa,db,ub,Ob,Zb,Fb){D.append(Ka);Ia.layoutCtrlWithLRTB(Ka,Xa,db,ub,Ob,Zb,
Fb);null===Xa&&null===db&&Ia.layoutCtrlCenterAlign(Ka,ub)},Ra=function(){P=new Na;P.setItemModels([17,1,16]);P.setCustomPainter(function(Ka,Xa,db){switch(db){case 17:var ub=la.get("continuousColorModeBoth","\u6b63\u8d1f\u5411\u53cc\u8272\u6e10\u53d8");break;case 1:ub=la.get("continuousColorModePositve","\u6b63\u5411\u5355\u8272\u6e10\u53d8");break;case 16:ub=la.get("continuousColorModeNegative","\u8d1f\u5411\u5355\u8272\u6e10\u53d8")}Xa.text(ub)});P.addSelectedChangedListener(function(Ka,Xa,db){if(!O.getUserObject()||
!R.getUserObject()){Ka=zb.getDefaultBackwardColor();Xa=zb.getDefaultForwardColor();var ub=zb.makeCustomColorB(Ka),Ob=zb.makeCustomColorB(Xa);cc(O,Ka,ub);cc(R,Xa,Ob)}17==db&&isNaN(parseFloat(da.getText()))&&(da.setText("0"),J.setChecked(!0));ac();Ab()})},kb=function(){I=$(bb.createCanvas());var Ka=function(Xa,db){db=ib.rgbToHsl(db.getRed(),db.getGreen(),db.getBlue());db=zb.makeCustomColorB(db);Xa.setUserObject(db);Ab()};O=new ha;O.addSelectedListener(function(Xa){Ka(O,Xa)});R=new ha;R.addSelectedListener(function(Xa){Ka(R,
Xa)})},Db=function(){Z=new ta;Z.setText(la.get("continuousColorMin","\u6307\u5b9a\u6570\u636e\u6700\u5c0f\u503c"));G=new ta;G.setText(la.get("continuousColorMax","\u6307\u5b9a\u6570\u636e\u6700\u5927\u503c"));J=new ta;J.setText(la.get("continuousColorMiddle","\u6307\u5b9a\u6570\u636e\u4e2d\u5fc3\u70b9"));ja=new ta;ja.setText(la.get("continuousColorSegment","\u5206\u6bb5"));Q=new ta;Q.setText(la.get("continuousColorWholeRange","\u4f7f\u7528\u5b8c\u6574\u989c\u8272\u8303\u56f4"));Q.addCheckedListener(function(Ka,
Xa){Xa&&Ab()});T=Ub();za=Ub();da=Ub();Aa=new ka;Aa.setConstraint(2,20,1);Aa.addValueChangedListener(function(Ka,Xa,db,ub){Ab()},!0);$b(Z,T);$b(G,za);$b(J,da);Cb(ja,Aa)},Ub=function(){var Ka=function(){var db=parseFloat(Xa.getText());Xa.setText(isNaN(db)?"":db)},Xa=new $a;Xa.setPlaceholder(la.get("continuousColorInputNumber","\u5728\u6b64\u5904\u586b\u5199\u6570\u503c"));Xa.addAcceptableListener(function(db,ub){ub&&(Ka(),Ab())});Xa.addBlurListener(function(db){Ka();Ab()});return Xa},$b=function(Ka,
Xa){Ka.addCheckedListener(function(db,ub){ub&&(Nb(Xa,db.isChecked()),db.isChecked()&&Xa.requestFocus(),Xa.getText()&&Ab())})},Cb=function(Ka,Xa){Ka.addCheckedListener(function(db,ub){ub&&(Nb(Xa,db.isChecked()),Ab())})},Nb=function(Ka,Xa){Ka.getJqUi().css("display",Xa?"":"none")},ac=function(){var Ka=16==(P.getSelected()&16),Xa=1==(P.getSelected()&1),db=Ka&&Xa;Nb(O,Ka);Nb(R,Xa);Nb(J,db);Nb(Q,db);Nb(da,J.getJqUi().is(":visible")&&J.isChecked())},cc=function(Ka,Xa,db){Xa&&db?(Ka.getModel().setHsl(Xa[0],
Xa[1],Xa[2]),Ka.setUserObject(db)):Ka.setUserObject(null)},na=function(Ka){(Ka=Ka.getSegments())?(ja.setChecked(!0),Aa.setValue(Ka)):(ja.setChecked(!1),Aa.setValue(2));Nb(Aa,ja.isChecked())},Fa=function(Ka){var Xa=Ka.isMinDataDefined();Z.setChecked(Xa);T.setText(Xa?Ka.getMinData():"");Nb(T,Z.isChecked())},Qa=function(Ka){var Xa=Ka.isMaxDataDefined();G.setChecked(Xa);za.setText(Xa?Ka.getMaxData():"");Nb(za,G.isChecked())},Ua=function(Ka){var Xa=Ka.isMiddleDataDefined();J.setChecked(Xa);da.setText(Xa?
Ka.getMiddleData():"");Nb(da,J.isChecked())}}function Yb(){pa.call(this);var Y=this,z=this.protectedMethod,D,I,P,O;this.edit=function(Z,G,J){var ja=Y.protectedInitDialog(),Q=ja[0],T=ja[1];D=!1;z.setContentPaneCreator(function(){var za=R(G);I.setModelBook(Z);return za});z.setClosingChecker2(function(){O&&O.isParamDefinition()&&P.ui2Model(O.getDefinition());var za=I.checkValid();return za?(z.getMessageCurtain().showPrompt(za),!1):!0},function(){if(D){var za=new Gb;za.setOptionType(Gb.OPTION_YES_NO);
za.setMessage(Q);za.setClosingChecker(function(da){da==Gb.RETURN_YES&&z.destroy();return!0});za.showDialog();return!1}return!0});z.setClosingAction(function(za){if(za){var da=G.getCommandManager();da.compositeStart(T);for(var Aa=I.acceptEditing(),Za=0;Za<Aa.length;Za++)da.perform(Aa[Za]);da.compositeEnd()}J&&J(za)});Y.showDialog()};this.protectedInitDialog=function(){throw Error("Implement");};this.protectedCreateTreeUi=function(){throw Error("Implement");};this.protectedCreateSettingUi=function(){throw Error("Implement");
};this.protectedPreview=function(Z,G,J,ja){throw Error("Implement");};var R=function(Z){I=Y.protectedCreateTreeUi();I.setEditingListener(function(){D=!0});I.setSelectedListener(function(T,za){T&&T.isParamDefinition()&&(P.ui2Model(T.getDefinition()),T.setText(T.getDefinition().getName()));za?(O=za,za.isParamDefinition()?(P.model2Ui(za.getQingModel(),za.getDefinition()),P.display(!0),J.display(!1)):(J.model2Ui(za),J.display(!0),P.display(!1))):(J.display(!1),P.display(!1))});var G=I.getJqUi(),J=new Ja;
P=Y.protectedCreateSettingUi();P.setEditingListener(function(){D=!0});P.setNameChangingListener(function(T){I.updateParamName(T)});P.setPreviewAction(function(){if(O&&O.isParamDefinition()){var T=O.getQingModel(),za=O.getPreferences(),da=O.getDefinition();P.ui2Model(da);var Aa=I.checkValid(da);Aa?z.getMessageCurtain().showPrompt(Aa):Y.protectedPreview(Z,T,za,da)}});var ja=$("<div>");ja.append(J.getJqUi());ja.append(P.getJqUi());J.display(!1);P.display(!1);Ia.layoutCtrlWithLRTB(J.getJqUi(),0,0,null,
0,0,null);Ia.layoutCtrlWithLRTB(P.getJqUi(),0,0,null,0,0,null);var Q=$("<div>");Q.append(G);Q.append(ja);Ia.layoutCtrlWithLRTB(G,0,null,200,0,0,null);Ia.layoutCtrlWithLRTB(ja,220,0,null,0,0,null);return Q}}function Mb(){function Y(){var da,Aa;this.isParamDefinition=function(){return!1};this.setText=function(Za){da=Za};this.getText=function(){return da};this.setModelPage=function(Za){Aa=Za};this.getModelPage=function(){return Aa};this.getQingModel=function(){return Aa.getModel()};this.getPreferences=
function(){return Aa.getPreferences()}}function z(){Y.call(this)}function D(){Y.call(this)}function I(da){Y.call(this);this.isParamDefinition=function(){return!0};this.getDefinition=function(){return da}}var P=this,O,R,Z;this.setModelBook=function(da){Z=[];da=da.getModelPages();for(var Aa=0;Aa<da.length;Aa++){var Za=da[Aa],sb=Za.getModel(),Ab=new D;Ab.setModelPage(Za);0==Aa?Ab.setText(la.get("briefModelCurrent","\u5f53\u524d\u6a21\u578b")):Ab.setText(la.get("briefModelN","\u6a21\u578b#1").replace("#1",
Aa));Z.push(Ab);var xa=P.protectedGetModelGetter(sb)();if(xa)for(var Ra=0;Ra<xa.length;Ra++){var kb=xa[Ra].copy();P.protectedPrecheckError(sb,kb);Ab=new I(kb);Ab.setModelPage(Za);Ab.setText(kb.getName());Z.push(Ab)}Ab=new z;Ab.setModelPage(Za);Ab.setText("+ "+P.protectedGetDisplayTextForAppend());Z.push(Ab)}J().setItemModels(Z);J().setSelecteds([Z[0]])};this.setSelectedListener=function(da){J().addSelectedChangedListener(function(Aa,Za,sb){da(Za?Za[0]:null,sb?sb[0]:null)})};this.setEditingListener=
function(da){O=da};this.getJqUi=function(){return J().getJqUi()};this.updateParamName=function(da){var Aa=J().getSelecteds()[0];Aa.setText(da);Aa=J().getItemUiByModel(Aa).children("span");za(Aa,da)};this.checkValid=function(da){if(da)return G(da,{});for(var Aa={},Za=1;Za<Z.length;Za++){var sb=Z[Za];if(sb.isParamDefinition()&&(da=sb.getDefinition(),da=G(da,Aa)))return J().setSelecteds([sb]),da}return null};var G=function(da,Aa){var Za=da.getName();if(!Za)return la.get("briefCheckNameLack","\u5fc5\u987b\u5b9a\u4e49\u540d\u79f0\uff0c\u4ee5\u4f9b\u4f7f\u7528\u573a\u666f\u5f15\u7528\u3002");
if(!hb.checkVariableNaming(Za))return la.get("briefCheckNameInvalid","\u540d\u79f0\u5fc5\u987b\u4ee5\u5b57\u6bcd\u5f00\u5934\uff0c\u53ea\u80fd\u5305\u542b\u5b57\u6bcd\u3001\u6570\u5b57\u3001\u4e0b\u5212\u7ebf\u3002");if(20<Za.length)return la.get("briefCheckNameTooLong","\u540d\u79f0\u4e0d\u80fd\u8d85\u8fc7#1\u4e2a\u5b57\u7b26\u3002").replace("#1",20);if(Aa[Za])return la.get("briefCheckNameDuplicated","\u540d\u79f0\u91cd\u590d\u3002");Aa[Za]=!0;return P.protectedCustomCheckInvalid(da)};this.protectedCustomCheckInvalid=
function(da){throw Error("Implement");};this.acceptEditing=function(){for(var da=Z[0].getQingModel(),Aa=[],Za=1;Za<Z.length;Za++){var sb=Z[Za];sb.isParamDefinition()&&Aa.push(sb.getDefinition())}Za=new fb;Za.setMethod(P.protectedGetModelGetter(da),P.protectedGetModelSetter(da));Za.setValue(Aa);return[Za]};this.protectedGetModelGetter=function(da){throw Error("Implement");};this.protectedGetModelSetter=function(da){throw Error("Implement");};var J=function(){R||(R=new p,R.setCustomItemPainter(T));
return R};this.protectedPrecheckError=function(da,Aa){};this.protectedGetDisplayTextForAppend=function(){throw Error("Implement");};var ja=function(da){return function(Aa){Aa=P.protectedCreateDefinition();Aa=new I(Aa);Aa.setModelPage(da.getModelPage());for(var Za=Z.length-1;0<=Za;Za--)if(Z[Za]==da){Z.splice(Za,0,Aa);J().setItemModels(Z);J().setSelecteds([Aa]);break}O()}};this.protectedCreateDefinition=function(){throw Error("Implement");};var Q=function(da,Aa){var Za=new ea;Za.setText(P.protectedGetDisplayTextForAskDelete());
Za.setConfirmedListener(function(sb){if(sb){var Ab;sb=!1;for(var xa=Z.length-1;0<=xa;xa--){var Ra=Z[xa];sb||Ra!=Aa?sb&&Ra instanceof D&&Ra.getQingModel()==Aa.getQingModel()&&(Ab=Ra):(Z.splice(xa,1),sb=!0)}J().setItemModels(Z);J().setSelecteds([Ab])}});Za.show(da)};this.protectedGetDisplayTextForAskDelete=function(){throw Error("Implement");};var T=function(da,Aa){da.empty();var Za=da,sb=0;Aa instanceof z&&(sb=1,p.undressItem(da),da.css({color:"#69c","text-decoration":"underline",cursor:"pointer"}),
da.on("click",ja(Aa)));Aa instanceof D&&(sb=0,da.css("font-weight","bold"));if(Aa instanceof I){sb=1;Za=$("<span>");var Ab=$("<div>");Ab.attr("title",la.get("briefDelete","\u5220\u9664"));Ab.css({cursor:"pointer",display:"none"});x.background(Ab,"icon_delete");Ia.layoutCtrlWithLRTB(Ab,null,4,16);Ia.layoutCtrlMiddleAlign(Ab,16);Za.appendTo(da);Ab.appendTo(da);da.on("mouseenter",function(xa){Ab.css("display","")});da.on("mouseleave",function(xa){Ab.css("display","none")});Ab.on("click",function(xa){Q(da,
Aa)})}da.css({"padding-left":4+24*sb+"px",height:"26px","line-height":"26px"});za(Za,Aa.getText())},za=function(da,Aa){da.text(Aa?Aa:"("+la.get("briefNonameDisplay","\u672a\u547d\u540d")+")")}}function S(){Mb.call(this);this.protectedCustomCheckInvalid=function(Y){for(var z=!1,D=Y.getDimensionPickers(),I=0;I<D.length;I++){var P=D[I];z=z||P.isOutputTarget();if(P.getType()==sa.PICKER_CONDITION&&!P.getScript())return la.get("briefCheckConditionLack","\u7b5b\u9009\u6761\u4ef6\u672a\u8bbe\u7f6e\u3002")}Y=
Y.getMeasurePickers();for(I=0;I<Y.length;I++)if(P=Y[I],z=z||P.isOutputTarget(),P.getType()==sa.PICKER_CONDITION&&!P.getScript())return la.get("briefCheckConditionLack","\u7b5b\u9009\u6761\u4ef6\u672a\u8bbe\u7f6e\u3002");return z?null:la.get("briefCheckOutputTargetLack","\u672a\u6307\u5b9a\u8f93\u51fa\u5b57\u6bb5\u3002")};this.protectedGetModelGetter=function(Y){return Y.getBriefOutputDefinitions};this.protectedGetModelSetter=function(Y){return Y.setBriefOutputDefinitions};this.protectedCreateDefinition=
function(){return new sa};this.protectedGetDisplayTextForAppend=function(){return la.get("briefAppend","\u6dfb\u52a0\u8f93\u51fa\u53c2\u6570")};this.protectedGetDisplayTextForAskDelete=function(){return la.get("briefAskDelete","\u5220\u9664\u8f93\u51fa\u53c2\u6570\uff1f")}}function Ma(){Mb.call(this);this.protectedCustomCheckInvalid=function(Y){var z=0;Y=Y.getConditionItems();for(var D=0;D<Y.length;D++){var I=Y[D],P=I.getCondition();if(P.getEditingAlarm())return P.getEditingAlarm();if(P.isValid()){if(z+=
I.getLeftBrackets(),z-=I.getRightBrackets(),0>z)return la.get("warningRulePrompt1","\u5de6\u53f3\u62ec\u53f7\u4e0d\u5339\u914d")}else return la.get("warningRulePrompt2","\u6761\u4ef6\u4e0d\u5b8c\u6574")}return 0<z?la.get("warningRulePrompt1","\u5de6\u53f3\u62ec\u53f7\u4e0d\u5339\u914d"):null};this.protectedGetModelGetter=function(Y){return Y.getWarningRuleDefinitions};this.protectedGetModelSetter=function(Y){return Y.setWarningRuleDefinitions};this.protectedCreateDefinition=function(){return new Wa};
this.protectedPrecheckError=function(Y,z){var D=Y.getBriefOutputableFieldsModel();Y=D.getDimensionFields();D=D.getMeasureFields();z=z.getConditionItems();for(var I=0;I<z.length;I++){var P=z[I].getCondition();if(P){for(var O=P.getField(),R=null,Z=0;Z<Y.length;Z++){var G=Y[Z];if(!G.isInvalid()&&G==O){R=!0;break}}if(null===R)for(Z=0;Z<D.length;Z++)if(G=D[Z],!G.isInvalid()&&G==O){R=!1;break}null===R?(R=la.get("warningRuleError1","\u539f\u5148\u4f7f\u7528\u7684\u5206\u6790\u5b57\u6bb5\u5df2\u4e0d\u5b58\u5728"),
O&&(R+=": ",R+=O.getComplexText()),P.setEditingAlarm(R)):(G=O.getMetaField().getDataType(),R=Oa.createSelectableOperations(R,G),Oa.isOperationFit(P,R)||(R=la.get("warningRuleError2","\u5206\u6790\u5b57\u6bb5\u5c5e\u6027\u53d1\u751f\u53d8\u5316\uff0c\u539f\u5148\u8bbe\u7f6e\u7684\u6bd4\u8f83\u7b26\u4e0d\u5339\u914d"),R+=": ",R+=O.getComplexText(),R+=" ",R+=Oa.operationToString(P.getOperation()),R+=" ",R+=Oa.comparingToString(P.getComparing()),P.setEditingAlarm(R)))}}};this.protectedGetDisplayTextForAppend=
function(){return la.get("warningRuleAppend","\u6dfb\u52a0\u9884\u8b66\u89c4\u5219")};this.protectedGetDisplayTextForAskDelete=function(){return la.get("warningRuleAskDelete","\u5220\u9664\u9884\u8b66\u89c4\u5219\uff1f")}}function Ja(){var Y;this.getJqUi=function(){Y||(Y=$("<div>"),Y.css({overflow:"auto","white-space":"pre-wrap","line-height":"24px"}));return Y};this.model2Ui=function(z){var D=z.getText();z=z.getQingModel().getBriefOutputableFieldsModel();var I=z.getDimensionFields(),P=z.getMeasureFields(),
O=0;z="";for(var R=0;R<I.length;R++){var Z=I[R];Z.isInvalid()||(0<R&&(z+=", "),z+=Z.getComplexText(),O++)}I=0;var G="";for(R=0;R<P.length;R++)Z=P[R],Z.isInvalid()||(0<R&&(G+=", "),G+=Z.getComplexText(),I++);P=la.get("briefModelOverviewDimension","#1\u6709#2\u4e2a\u7ef4\u5ea6\u3002").replace("#1",D).replace("#2",O);P=P+"\r\n"+z+"\r\n\r\n"+la.get("briefModelOverviewMeasure","#1\u6709#2\u4e2a\u5ea6\u91cf\u3002").replace("#1",D).replace("#2",I);P=P+"\r\n"+G;Y.text(P)};this.display=function(z){Y.css("display",
z?"block":"none")}}function ua(){function Y(){var T,za;this.setCompositeInfo=function(Aa,Za){T=Aa;za=Za};this.getAnalyticalField=function(){return T};this.isDimension=function(){return za};this.getDataType=function(){return T.getMetaField().getDataType()};this.getDisplayText=function(){return da()};this.toString=function(){return da()};var da=function(){var Aa=za?la.get("briefDimension","\u7ef4\u5ea6"):T.isDimension()?la.get("briefProperty","\u5c5e\u6027"):la.get("briefMeasure","\u5ea6\u91cf");return T.getComplexText()+
"("+Aa+")"}}var z=this,D,I,P,O,R,Z,G;this.getJqUi=function(){if(!O){O=$("<div>");J();ja();G=new ab;z.protectedInitPostScript(G);var T=new ma;T.setText(la.get("briefPreview","\u5c1d\u8bd5\u6267\u884c\u4ee5\u67e5\u770b\u7ed3\u679c"));T.addActionListener(function(za){P()});z.protectedInitUi(O,R,Z,G,T)}return O};this.protectedInitUi=function(T,za,da,Aa,Za){throw Error("Implement");};this.display=function(T){O.css("display",T?"block":"none");z.protectedCustomDisplay(T)};this.protectedCustomDisplay=function(T){throw Error("Implement");
};this.setNameChangingListener=function(T){D=T};this.setEditingListener=function(T){I=T};this.setPreviewAction=function(T){P=T};this.model2Ui=function(T,za){R.setText(za.getName());Z.setText(za.getDescription());var da=za.getPostScript();G.setModel(da?da:"");z.protectedModel2Ui(T,za)};this.protectedModel2Ui=function(T,za){throw Error("Implement");};this.ui2Model=function(T){T.setName($.trim(R.getText()));T.setDescription($.trim(Z.getText()));var za=G.getModel();T.setPostScript(za?za:null);z.protectedUi2Model(T)};
this.protectedUi2Model=function(T){throw Error("Implement");};var J=function(){R=new $a;R.addEditedListener(function(T){D($.trim(T.getText()));I()})},ja=function(){Z=new ra;Z.addEditedListener(function(T){I()})};this.protectedInitPostScript=function(T){throw Error("Implement");};var Q=function(T,za,da,Aa,Za,sb,Ab){O.append(T);Ia.layoutCtrlWithLRTB(T,za,da,Aa,Za,sb,Ab)};this.protectedMethod={};this.protectedMethod.fireEditingEvent=function(){I()};this.protectedMethod.layoutCtrl=function(T,za,da,Aa,
Za,sb,Ab){Q(T.getJqUi(),za,da,Aa,Za,sb,Ab)};this.protectedMethod.layoutJqCtrl=Q;this.protectedMethod.getFilterScriptDemo=function(){var T=la.get("briefConditionDemo1","\u7ef4\u5ea6\u6210\u5458\u5355\u9009\uff1a")+' VALUE="..."';T+="\r\n"+la.get("briefConditionDemo2","\u7ef4\u5ea6\u6210\u5458\u591a\u9009\uff1a")+' OR(VALUE="...", VALUE="...", VALUE="...")';T+="\r\n"+la.get("briefConditionDemo3","\u65e5\u671f\u7ef4\u5ea6\u6309\u5e74\uff1a")+" YEAR(VALUE)=2021";T+="\r\n"+la.get("briefConditionDemo4",
"\u65e5\u671f\u7ef4\u5ea6\u6309\u5e74\u6708\uff1a")+' FIRSTDAY(VALUE,"MD")=DATE(2021,10,1)';T+="\r\n"+la.get("briefConditionDemo5","\u5ea6\u91cf\u503c\u5927\u4e8e\uff1a")+" VALUE>1";return T+="\r\n"+la.get("briefConditionDemo6","\u5ea6\u91cf\u503c\u8303\u56f4\uff1a")+" AND(VALUE>=1, VALUE<=10)"};this.protectedMethod.searchAllFieldItems=function(T,za,da){var Aa=T.getDimensionFields();T=T.getMeasureFields();for(var Za=0;Za<Aa.length;Za++){var sb=Aa[Za];if(!sb.isInvalid()){var Ab=new Y;Ab.setCompositeInfo(sb,
!0);za.push(Ab)}}for(Za=0;Za<T.length;Za++)sb=T[Za],sb.isInvalid()||(Ab=new Y,Ab.setCompositeInfo(sb,!1),da.push(Ab))}}function W(){function Y(Q){KTDefaultCellRender.call(this,Q);var T=[sa.PICKER_FULL,sa.PICKER_CONDITION],za=[sa.PICKER_FULL,sa.PICKER_CONDITION,sa.PICKER_MAX,sa.PICKER_MIN],da=this,Aa=this.paintCellUI;this.paintCellUI=function(Ra,kb){if(da.getCurrentRowIdx()<b.getHeadRowCount())Aa(Ra,kb);else{var Db=da.getCurrentRow().getUserObject();if(Db){var Ub=da.getCurrentRow().getCell(0).getValue(),
$b=da.getCurrentRow().getCell(1).getValue();if(0==da.getCurrentColIdx())Aa(Ra,kb),$(Ra).attr("title",Ub.getDisplayText());else if(1==da.getCurrentColIdx())Ra=b.createCtrlInCell(Ra,da.getCellWidth(),da.getCellHeight(),Na),Ra.setSelected($b.getType()),Ra.setItemModels(Ub.isDimension()?T:za),Ra.setCustomPainter(Za),Ra.addSelectedChangedListener(Ab(da.getCell(),Db));else if(2==da.getCurrentColIdx())switch($b.getType()){case sa.PICKER_CONDITION:Db=b.createCtrlInCell(Ra,da.getCellWidth(),da.getCellHeight(),
ab);Db.setModel($b.getScript());Db.addActionListener(xa($b));Db.setCustomPainter(sb);break;case sa.PICKER_MAX:case sa.PICKER_MIN:Db=b.createCtrlInCell(Ra,da.getCellWidth(),da.getCellHeight(),ka);Db.setConstraint(1,99,1);Db.setValue($b.getTopN());Db.addValueChangedListener(function(Cb,Nb,ac,cc){cc!=ka.CHANGED_BY_API&&($b.setTopN(ac),z.fireEditingEvent())},!0);break;case sa.PICKER_FULL:Db=b.createCtrlInCell(Ra,da.getCellWidth(),da.getCellHeight(),Vb),Db.setText(la.get("briefPickerFullSetting","\u5b9a\u4f4d\u65b9\u5f0f\u4e3a\u201c\u5168\u90e8\u201d\uff0c\u4e0d\u5fc5\u8be6\u7ec6\u8bbe\u7f6e\u3002")),
Db.setEnabled(!1)}}}};var Za=function(Ra,kb,Db){switch(Db){case sa.PICKER_FULL:Ra=la.get("briefPickerTypeFull","\u5168\u90e8");break;case sa.PICKER_CONDITION:Ra=la.get("briefPickerTypeCondition","\u7b5b\u9009\u6761\u4ef6");break;case sa.PICKER_MAX:Ra=la.get("briefPickerTypeMax","\u6700\u5927\u524d\u51e0\u540d");break;case sa.PICKER_MIN:Ra=la.get("briefPickerTypeMin","\u6700\u5c0f\u524d\u51e0\u540d");break;default:Ra=""}kb.text(Ra)},sb=function(Ra){return Ra?Ra:"("+la.get("briefPickerConditionNone",
"\u672a\u8bbe\u7f6e")+")"},Ab=function(Ra,kb){return function(Db,Ub,$b){Db=sa.createPicker($b);Db.setField(kb.getField());$b==kb.getType()&&Db.takeDetail(kb);Ra.setValue(Db);b.refresh(Q);z.fireEditingEvent()}},xa=function(Ra){return function(kb){var Db=new fa;Db.setTitle(la.get("briefPickerTypeCondition","\u7b5b\u9009\u6761\u4ef6"));Db.setDemo(z.getFilterScriptDemo());Db.show(kb.getModel(),function(Ub){Ub=$.trim(Ub);Ra.setScript(Ub);b.refresh(Q);z.fireEditingEvent()})}}}ua.call(this);var z=this.protectedMethod,
D,I,P,O,R;this.protectedModel2Ui=function(Q,T){var za=[],da=[];Q=Q.getBriefOutputableFieldsModel();z.searchAllFieldItems(Q,za,da);var Aa=za.concat(da);P.setItemModels(Aa);R.setUserObject(Aa);Q=G(za,T.getDimensionPickers());T=G(da,T.getMeasurePickers());b.clearWithoutHead(D);Z(za,Q);Z(da,T);for(Aa=Aa.length;5>Aa;Aa++)b.createRow(D).setHeight(26);b.refresh(D);var Za=[],sb,Ab;Aa=function(xa,Ra){for(var kb=0;kb<xa.length;kb++){var Db=xa[kb];!Ab&&Db.isSortAccording()&&(sb=Db,Ab=Ra[kb]);Db.isOutputTarget()&&
(Za[Db.getOutputTargetIndex()]=Ra[kb])}};Aa(Q,za);Aa(T,da);for(Aa=Za.length-1;0<=Aa;Aa--)!Za[Aa]&&Za.splice(Aa,1);R.setModel(Za);sb?(I.setChecked(!0),P.setSelected(Ab),O.setSelected(sb.isSortAsc())):(I.setChecked(!1),P.setSelected(null),O.setSelected(!0))};var Z=function(Q,T){for(var za=0;za<Q.length;za++){var da=Q[za],Aa=T[za],Za=Aa.copy(),sb=b.createRow(D);sb.setHeight(26);sb.setUserObject(Aa);sb.getCell(0).setValue(da);sb.getCell(1).setValue(Za)}},G=function(Q,T){for(var za=[],da=0;da<Q.length;da++){for(var Aa=
Q[da],Za=null,sb=0;sb<T.length;sb++){var Ab=T[sb];if(Ab.getField()==Aa.getAnalyticalField()){Za=Ab;break}}Za||(Za=sa.createPicker(sa.PICKER_FULL),Za.setField(Aa.getAnalyticalField()));za.push(Za)}return za};this.protectedUi2Model=function(Q){var T=R.getModel(),za=null,da=!0;if(I.isChecked()){var Aa=P.getSelected();da=O.getSelected();za=Aa?Aa.getAnalyticalField():null}for(var Za=[],sb=[],Ab=b.getHeadRowCount(D);Ab<D.getRowsCount();Ab++){var xa=D.getRow(Ab);Aa=xa.getCell(0).getValue();if(xa.getUserObject()){var Ra=
xa=xa.getCell(1).getValue(),kb=Ra.setOutputTargetIndex;a:{var Db=xa.getField();for(var Ub=0;Ub<T.length;Ub++)if(T[Ub].getAnalyticalField()==Db){Db=Ub+1;break a}Db=null}kb.call(Ra,Db);xa.setSortAccording(xa.getField()==za,da);(Aa.isDimension()?Za:sb).push(xa)}}Q.setDimensionPickers(Za);Q.setMeasurePickers(sb)};this.protectedCustomDisplay=function(Q){Q&&b.refresh(D)};this.protectedInitUi=function(Q,T,za,da,Aa){Q=new Vb(la.get("briefAttrCaptionName","\u540d\u79f0"));var Za=new Vb(la.get("briefAttrCaptionDescription",
"\u7b80\u8981\u63cf\u8ff0")),sb=new Vb(la.get("briefAttrCaptionFilter","\u8ba1\u7b97\u7ed3\u679c\u5b9a\u4f4d\u5230")),Ab=new Vb(la.get("briefAttrCaptionTarget","\u8f93\u51fa\u5b57\u6bb5")),xa=new Vb(la.get("briefAttrCaptionSort","\u6392\u5e8f\u4f9d\u636e\uff08\u5f53\u5b58\u5728\u591a\u884c\u65f6\uff09")),Ra=new Vb(la.get("briefAttrCaptionPostscript","\u540e\u5904\u7406\u811a\u672c\uff08\u81ea\u5b9a\u4e49\u663e\u793a\u6587\u5b57\uff09"));D=b.createTable();D.setDraggableAdjusting(!1);D.setCellRender(new Y(D));
D.getCellRender().setOutsideVisible(!1);b.bindTableListenerForCtrl(D);D.addColumns(3);D.getColumn(0).setWidth(200);D.getColumn(1).setWidth(100);D.getColumn(2).setWidth(225);var kb=b.createHeadRow(D);kb.setHeight(18);kb.getCell(0).setValue(la.get("briefPickerField","\u5b57\u6bb5"));kb.getCell(1).setValue(la.get("briefPickerType","\u5b9a\u4f4d\u65b9\u5f0f"));kb.getCell(2).setValue(la.get("briefPickerSetting","\u8be6\u7ec6\u8bbe\u7f6e"));J();ja();kb=$(D.getUI());kb.addClass("sa-ctrl-common-border");
z.layoutCtrl(Q,0,null,60,0,null,23);z.layoutCtrl(T,60,0,null,0,null,23);z.layoutCtrl(Za,0,0,null,30,null,23);z.layoutCtrl(za,0,0,null,55,null,40);z.layoutCtrl(sb,0,0,null,110,null,20);z.layoutJqCtrl(kb,0,0,null,135,120,null);z.layoutCtrl(xa,null,0,250,null,85,20);z.layoutCtrl(I,null,230,20,null,60,23);z.layoutCtrl(P,null,70,160,null,60,23);z.layoutCtrl(O,null,0,60,null,60,23);z.layoutCtrl(Ab,0,300,null,null,85,20);z.layoutCtrl(R,0,300,null,null,60,23);z.layoutCtrl(Ra,0,300,null,null,25,20);z.layoutCtrl(da,
0,300,null,null,1,23);z.layoutCtrl(Aa,null,0,250,null,0,40)};var J=function(){R=new ab;R.addActionListener(function(Q){Q=R.getUserObject();var T=R.getModel().slice(0);(new Ea).show(Q,T,function(za){R.setModel(za);z.fireEditingEvent()})});R.setCustomPainter(function(Q){var T="";if(Q)for(var za=0;za<Q.length;za++)0<za&&(T+=", "),T+=Q[za].getDisplayText();return T})},ja=function(){I=new ta;I.setChecked(!0);I.addCheckedListener(function(Q,T){Q=Q.isChecked();P.setEnabled(Q);O.setEnabled(Q);T&&z.fireEditingEvent()});
P=new Na;P.addSelectedChangedListener(function(Q,T,za){z.fireEditingEvent()});O=new Na;O.setItemModels([!0,!1]);O.setCustomPainter(function(Q,T,za){Q=!0===za?la.get("briefSortAsc","\u5347\u5e8f"):!1===za?la.get("briefSortDesc","\u964d\u5e8f"):"";T.text(Q)});O.addSelectedChangedListener(function(Q,T,za){z.fireEditingEvent()})};this.protectedInitPostScript=function(Q){var T="",za=function(da,Aa,Za){T&&(T+="\r\n");T+=da;T+=".  ";T+=Aa;T+="    ";T+=Za};za(1,'eachRow("{1}", "\u3001")',la.get("briefPostScriptDemo1",
"\u62fc\u63a5\u6240\u6709\u884c\u7b2c1\u5217\u6587\u5b57\uff0c\u7528\u987f\u53f7\u5206\u9694\u3002"));za(2,'eachRow("{1}{2}", "\uff1b", rankTop(3))',la.get("briefPostScriptDemo2","\u62fc\u63a5\u524d3\u540d\u7684\u6240\u6709\u884c\u7684\u7b2c1\u5217\u7b2c2\u5217\u6587\u5b57\uff0c\u7528\u5206\u53f7\u5206\u9694\u3002"));za(3,'topRows(2, "{1}", "\u3001")',la.get("briefPostScriptDemo3","\u62fc\u63a5\u524d2\u884c\u7684\u7b2c1\u5217\u6587\u5b57\uff0c\u7528\u987f\u53f7\u5206\u9694\u3002"));za(4,'topRows(3, "{1}", "&", rank(2))',
la.get("briefPostScriptDemo4","\u62fc\u63a5\u7b2c2\u540d\uff08\u5b58\u5728\u5e76\u5217\uff09\u7684\u524d3\u884c\u7684\u7b2c1\u5217\u6587\u5b57\uff0c\u7528&\u53f7\u5206\u9694\u3002"));za(5,"rowsCount()",la.get("briefPostScriptDemo5","\u6982\u8981\u8ba1\u7b97\u7ed3\u679c\u603b\u5171\u6709\u591a\u5c11\u884c\u3002"));za(6,"rowsCount(rank(1))",la.get("briefPostScriptDemo6","\u6392\u540d\u7b2c\u4e00\u7684\u6709\u591a\u5c11\u884c\u3002"));Q.addActionListener(function(da){var Aa=new fa;Aa.setTitle(la.get("briefAttrCaptionPostscript",
"\u540e\u5904\u7406\u811a\u672c\uff08\u81ea\u5b9a\u4e49\u663e\u793a\u6587\u5b57\uff09"));Aa.setDemo(T);Aa.show(da.getModel(),function(Za){Za=$.trim(Za);da.setModel(Za);z.fireEditingEvent()})})}}function fa(){pa.call(this);var Y=this,z=this.protectedMethod,D,I=$("<div>");this.setTitle=function(P){z.setTitle(P)};this.setDemo=function(P){I.text(P)};this.show=function(P,O){Y.setSize(720,480);z.setContentPaneCreator(function(){var R=new Vb;R.setText(la.get("briefScriptContent","\u811a\u672c"));var Z=new Vb;
Z.setText(la.get("briefScriptDemo","\u8bed\u6cd5\u793a\u4f8b"));D=new ra;D.setText(P);I.css({"box-sizing":"border-box",padding:"4px",color:"#999","white-space":"pre-wrap","line-height":"20px",overflow:"auto"});I.addClass("sa-ctrl-common-border");var G=$("<div>");G.append(R.getJqUi());G.append(D.getJqUi());G.append(Z.getJqUi());G.append(I);Ia.layoutCtrlWithLRTB(R.getJqUi(),0,0,null,0,null,23);Ia.layoutCtrlWithLRTB(D.getJqUi(),0,0,null,25,180,null);Ia.layoutCtrlWithLRTB(Z.getJqUi(),0,0,null,null,142,
23);Ia.layoutCtrlWithLRTB(I,0,0,null,null,0,140);return G});z.setClosingAction(function(R){R&&O($.trim(D.getText()))});z.setSelectable(!0);Y.showDialog();D.requestFocus()}}function Ea(){function Y(){q.call(this);var P=new p,O=new p,R;this.setSelectableAndSelected=function(Q,T){P.setItemModels(Q);R=T;Z()};this.getSelecteds=function(){return R};this.protectedCreateLeftJqTitle=function(){var Q=$("<div>");Q.text(la.get("briefFieldSelectable","\u53ef\u9009\u5b57\u6bb5"));return Q};this.protectedCreateRightJqTitle=
function(){var Q=$("<div>");Q.text(la.get("briefFieldSelected","\u5df2\u9009\u5b57\u6bb5"));var T=new ma;T.setText("\u2191");T.addActionListener(J);var za=new ma;za.setText("\u2193");za.addActionListener(ja);var da=$("<div>");da.append(Q);da.append(T.getJqUi());da.append(za.getJqUi());Ia.layoutCtrlWithLRTB(Q,0,40,null,0,0,null);Ia.layoutCtrlWithLRTB(T.getJqUi(),null,20,20,0,0,null);Ia.layoutCtrlWithLRTB(za.getJqUi(),null,0,20,0,0,null);return da};this.protectedGetLeftCtrl=function(){return P};this.protectedGetRightCtrl=
function(){return O};this.protectedSelect=function(Q){if(Q)(Q=G(P))?0<=R.indexOf(Q)?(O.setSelecteds([Q]),I(la.get("briefFieldPrompt2","\u201c\u5df2\u9009\u5b57\u6bb5\u201d\u4e2d\u5df2\u5b58\u5728#1\u3002").replace("#1",Q))):3<=R.length?I(la.get("briefFieldPrompt3","\u6700\u591a\u5141\u8bb8#1\u4e2a\u8f93\u51fa\u5b57\u6bb5\u3002").replace("#1",3)):(R.push(Q),Z(Q)):I(la.get("briefFieldPrompt1","\u672a\u9009\u4e2d\u201c\u53ef\u9009\u5b57\u6bb5\u201d\u3002"));else if(Q=G(O)){var T=R.indexOf(Q);R.splice(T,
1);Z(null);P.setSelecteds([Q])}else I(la.get("briefFieldPrompt4","\u672a\u9009\u4e2d\u201c\u5df2\u9009\u5b57\u6bb5\u201d\u3002"))};var Z=function(Q){O.setItemModels(R);O.setSelecteds(Q?[Q]:[])},G=function(Q){Q=Q.getSelecteds();return 0<Q.length?Q[0]:null},J=function(Q){if(Q=G(O)){var T=R.indexOf(Q);0<T&&(R.splice(T,1),R.splice(T-1,0,Q),Z(Q))}else I(la.get("briefFieldPrompt4","\u672a\u9009\u4e2d\u201c\u5df2\u9009\u5b57\u6bb5\u201d\u3002"))},ja=function(Q){if(Q=G(O)){var T=R.indexOf(Q);T<R.length-1&&
(R.splice(T,1),R.splice(T+1,0,Q),Z(Q))}else I(la.get("briefFieldPrompt4","\u672a\u9009\u4e2d\u201c\u5df2\u9009\u5b57\u6bb5\u201d\u3002"))}}pa.call(this);var z=this,D=this.protectedMethod;this.show=function(P,O,R){var Z;z.setSize(720,480);D.setTitle(la.get("briefAttrCaptionTarget","\u8f93\u51fa\u5b57\u6bb5"));D.setContentPaneCreator(function(){Z=new Y;Z.setSelectableAndSelected(P,O);return Z.getJqUi()});D.setClosingAction(function(G){G&&R(Z.getSelecteds())});z.showDialog();Z.relayout()};var I=function(P){D.getMessageCurtain().showPrompt(P)}}
function Va(){pa.call(this);var Y=this,z=this.protectedMethod;this.show=function(R,Z){Y.setSize(720,480);z.setTitle(la.get("briefPreviewTitle","\u9884\u89c8\u6267\u884c\u7ed3\u679c"));z.setFooterPaneCreator(null);z.setContentPaneCreator(function(){return D(R,Z)});z.setClosingAction(function(G){});z.setSelectable(!0);Y.showDialog()};var D=function(R,Z){var G=new Ca;G.setText(la.get("briefPreviewClose","\u5173\u95ed"));G.addActionListener(function(T){z.destroy()});var J=new Vb(la.get("briefPreviewMatrix",
"\u5b9a\u4f4d\u540e\u7684\u6982\u8981\u8ba1\u7b97\u7ed3\u679c")),ja=new Vb(la.get("briefPreviewDisplay","\u663e\u793a\u6587\u5b57"));R=I(R,Z);R=$(R.getUI());R.css({border:"1px solid #ddd"});var Q=$("<div>");Q.css({"box-sizing":"border-box",overflow:"auto","white-space":"pre-wrap","line-height":"20px",padding:"6px",border:"1px solid #ddd"});Q.text(O(Z));Z=$("<div>");Z.append(J.getJqUi());Z.append(R);Z.append(ja.getJqUi());Z.append(Q);Z.append(G.getJqUi());Ia.layoutCtrlWithLRTB(J.getJqUi(),0,0,null,
0,null,20);Ia.layoutCtrlWithLRTB(R,0,0,null,20,150,null);Ia.layoutCtrlWithLRTB(ja.getJqUi(),0,0,null,null,120,20);Ia.layoutCtrlWithLRTB(Q,0,0,null,null,40,80);Ia.layoutCtrlWithLRTB(G.getJqUi(),null,null,null,null,6,26);Ia.layoutCtrlCenterAlign(G.getJqUi(),80);return Z},I=function(R,Z){var G=[],J=b.createTable();J.getCellRender().setOutsideVisible(!1);J.addColumns(4);J.getColumn(0).setWidth(50);var ja=b.createHeadRow(J);G[1]=P(R,J,ja,1);G[2]=P(R,J,ja,2);G[3]=P(R,J,ja,3);R=new KTStyle;R.setTextAlign("right");
for(var Q=!1,T=0;T<Z.getMatrixRowCount();T++)for(var za=b.createRow(J),da=0;4>da;da++){var Aa=Z.getMatrixCell(T,da),Za=za.getCell(da);Za.setValue(Aa);G[da]||Za.setStyle(R);0==da&&Aa&&(Q=!0)}Q&&ja.getCell(0).setValue(la.get("briefPreviewMatrixRanking","\u6392\u540d"));setTimeout(function(){b.refresh(J)},0);return J},P=function(R,Z,G,J){Z.getColumn(J).setWidth(188);a:{Z=R.getDimensionPickers();for(var ja=0;ja<Z.length;ja++){var Q=Z[ja];if(Q.isOutputTarget()&&Q.getOutputTargetIndex()==J){R=Q.getField();
break a}}Z=R.getMeasurePickers();for(ja=0;ja<Z.length;ja++)if(Q=Z[ja],Q.isOutputTarget()&&Q.getOutputTargetIndex()==J){R=Q.getField();break a}R=null}return R?(G.getCell(J).setValue(la.get("briefPreviewMatrixColumn","\u5217")+J+R.getComplexText()),R.isDimension()):!0},O=function(R){if(R.isError()){var Z=R.getErrorMessage();Z=Z+"\r\nErrorCode: "+R.getErrorCode()}else Z=R.getDisplay();return Z}}function Oa(){function Y(Q){KTDefaultCellRender.call(this,Q);var T=[0,1,2,3,4],za=["",xb.LOGIC_AND,xb.LOGIC_OR],
da=this,Aa;this.setSelectableFieldItems=function(na){Aa=na};var Za=this.paintCellUI;this.paintCellUI=function(na,Fa){if(da.getCurrentRowIdx()<b.getHeadRowCount())Za(na,Fa);else{var Qa=da.getCurrentRow();Fa=da.getCellWidth();var Ua=da.getCellHeight();switch(da.getCurrentColIdx()){case 0:Fa=Qa.getCell(0).getValue();na=$(na);na.empty();Fa&&(Ua=t.createWarning(),Ua.attr("title",Fa),Ua.appendTo(na),Ia.layoutCtrl(Ua,2,6));break;case 1:Qa=Qa.getCell(1);var Ka=Qa.getValue();na=b.createCtrlInCell(na,Fa,Ua,
Na);na.setUserObject(Qa);na.setSelected(Ka?Ka:0);na.setItemModels(T);na.setCustomPainter(Ub);na.addSelectedChangedListener(Ab);break;case 5:Qa=Qa.getCell(5);Ka=Qa.getValue();na=b.createCtrlInCell(na,Fa,Ua,Na);na.setUserObject(Qa);na.setSelected(Ka?Ka:0);na.setItemModels(T);na.setCustomPainter($b);na.addSelectedChangedListener(Ab);break;case 6:Qa=Qa.getCell(6);Ka=Qa.getValue();na=b.createCtrlInCell(na,Fa,Ua,Na);na.setUserObject(Qa);na.setSelected(Ka?Ka:"");na.setItemModels(za);na.setCustomPainter(Cb);
na.addSelectedChangedListener(Ab);break;case 2:Ka=Qa.getCell(2).getValue();Fa=b.createCtrlInCell(na,Fa,Ua,Na);Fa.setUserObject(Qa);Fa.setSelected(Ka);Fa.setItemModels(Aa);Fa.addSelectedChangedListener(xa);$(na).attr("title",Ka?Ka.getDisplayText():"");break;case 3:var Xa=Qa.getCell(2).getValue();Ka=Qa.getCell(3).getValue();Ka=J(Ka);Xa=Xa?ac(Xa):[];na=b.createCtrlInCell(na,Fa,Ua,Na);na.setUserObject(Qa);na.setSelected(Ka);na.setItemModels(Xa);na.setCustomPainter(Nb);na.addSelectedChangedListener(Ra);
break;case 4:sb(na,Qa,Fa,Ua)}}};var sb=function(na,Fa,Qa,Ua){var Ka=$(na);Ka.empty();var Xa=Fa.getCell(3).getValue(),db=Fa.getCell(4).getValue();switch(J(Xa)){case Wa.CONDITION_CUSTOM:Ua=b.createCtrlInCell(na,Qa,Ua,ab);Ua.addActionListener(function(ub){Db(ub,Fa)});Ua.setModel(db);break;case Wa.OP_EQUAL:case Wa.OP_NOT_EQUAL:case Wa.OP_GREATER:case Wa.OP_GREATER_EQUAL:case Wa.OP_LESS:case Wa.OP_LESS_EQUAL:ja(Xa)?(Ka=null,db&&(db=parseInt(db),isNaN(db)||(Ka=new Date(db))),Ua=b.createCtrlInCell(na,Qa,
Ua,U),Ua.setUserObject(Fa),Ua.setSelectedNullable(!0),Ua.setDateObject(Ka),Ua.addModelChangedListener(kb)):(na=$("<div>"),na.text(db),na.css({"line-height":Ua+"px",cursor:"pointer"}),na.appendTo(Ka),Ia.layoutCtrlWithLRTB(na,4,4,null,1,1,null))}},Ab=function(na,Fa,Qa){na.getUserObject().setValue(Qa);P();z.fireEditingEvent()},xa=function(na,Fa,Qa){Fa=na.getUserObject();var Ua=Fa.getCell(2);na=Fa.getCell(3);Fa=Fa.getCell(4);Ua.setValue(Qa);Ua=na.getValue();var Ka;if(Ka=Ua)Ka=ac(Qa),Ka=Oa.isOperationFit(Ua,
Ka);Ka?(Ua.setField(Qa.getAnalyticalField()),na.setValue(Ua)):(na.setValue(null),Fa.setValue(null));P();z.fireEditingEvent()},Ra=function(na,Fa,Qa){var Ua=na.getUserObject();na=Ua.getCell(3);Fa=na.getValue();var Ka;if(Ka=Fa){var Xa=Fa;Xa.getType()==Wa.CONDITION_NORMAL?(Ka=cc(Qa),Xa=cc(Xa.getOperation()),Ka=Ka==Xa):Ka=!1}if(Ka)Fa.setOperation(Qa);else{if(Qa==Wa.CONDITION_CUSTOM)Fa=Wa.createCondition(Wa.CONDITION_CUSTOM);else if(Qa)Fa=Wa.createCondition(Wa.CONDITION_NORMAL),Fa.setOperation(Qa);else throw Error("Impossible");
Qa=Ua.getCell(2);Ua=Ua.getCell(4);Qa=Qa.getValue().getAnalyticalField();Fa.setField(Qa);na.setValue(Fa);Ua.setValue(null)}P();z.fireEditingEvent()},kb=function(na){var Fa=na.getDateObject();Fa=Fa?Fa.getTime():null;var Qa=na.getUserObject();na=Qa.getCell(3);Qa=Qa.getCell(4);na.getValue().setComparing(Fa);Qa.setValue(Fa);P();z.fireEditingEvent()},Db=function(na,Fa){var Qa=new fa;Qa.setTitle(la.get("warningRuleFilterCustomScript","\u81ea\u5b9a\u4e49\u811a\u672c"));Qa.setDemo(z.getFilterScriptDemo());
Qa.show(na.getModel(),function(Ua){Ua=$.trim(Ua);na.setModel(Ua);Fa.getCell(4).setValue(Ua);Fa.getCell(3).getValue().setScript(Ua);P();z.fireEditingEvent()})},Ub=function(na,Fa,Qa){for(var Ua="",Ka=0;Ka<Qa;Ka++)Ua+="(";Fa.text(Ua);na&&Fa.css("padding-left","8px")},$b=function(na,Fa,Qa){for(var Ua="",Ka=0;Ka<Qa;Ka++)Ua+=")";Fa.text(Ua);na&&Fa.css("padding-left","8px")},Cb=function(na,Fa,Qa){na=Qa==xb.LOGIC_AND?la.get("warningRuleLogicAnd","\u5e76\u4e14"):Qa==xb.LOGIC_OR?la.get("warningRuleLogicOr",
"\u6216"):"";Fa.text(na)},Nb=function(na,Fa,Qa){Fa.text(Oa.operationToString(Qa))},ac=function(na){var Fa=na.isDimension();na=na.getDataType();return Oa.createSelectableOperations(Fa,na)},cc=function(na){return na==Wa.OP_EQUAL||na==Wa.OP_NOT_EQUAL||na==Wa.OP_GREATER||na==Wa.OP_GREATER_EQUAL||na==Wa.OP_LESS||na==Wa.OP_LESS_EQUAL?1:0}}ua.call(this);var z=this.protectedMethod,D,I;this.protectedModel2Ui=function(Q,T){Q=Q.getBriefOutputableFieldsModel();var za=[],da=[];z.searchAllFieldItems(Q,za,da);Q=
za.concat(da);D.getCellRender().setSelectableFieldItems(Q);T=T.getConditionItems();b.clearWithoutHead(D);for(za=0;za<T.length;za++){var Aa=T[za];da=Aa.getCondition();var Za=b.createRow(D);Za.setHeight(26);Za.getCell(1).setValue(Aa.getLeftBrackets());Za.getCell(5).setValue(Aa.getRightBrackets());Za.getCell(6).setValue(Aa.getLogic());if(da){Aa=null;for(var sb=da.getField(),Ab=0;Ab<Q.length;Ab++){var xa=Q[Ab];if(sb==xa.getAnalyticalField()){Aa=xa;break}}Za.getCell(2).setValue(Aa);Za.getCell(3).setValue(da);
Za=Za.getCell(4);switch(da.getType()){case Wa.CONDITION_NORMAL:Za.setValue(da.getComparing());break;case Wa.CONDITION_CUSTOM:Za.setValue(da.getScript());break;default:throw Error("Unknown");}}}G(Math.max(6,T.length+2)-T.length);P()};this.protectedUi2Model=function(Q){for(var T=[],za=b.getHeadRowCount(D);za<D.getRowsCount();za++){var da=D.getRow(za),Aa=da.getCell(3).getValue();if(Aa){var Za=da.getCell(6).getValue(),sb=da.getCell(1).getValue();da=da.getCell(5).getValue();sb=sb?sb:0;da=da?da:0;var Ab=
new xb;Ab.setLeftBrackets(sb);Ab.setRightBrackets(da);za<D.getRowsCount()-1&&Ab.setLogic(Za);Ab.setCondition(Aa);T.push(Ab)}}for(za=0;za<T.length;za++)Ab=T[za],za==T.length-1?Ab.setLogic(null):Ab.getLogic()||Ab.setLogic(xb.LOGIC_AND);Q.setConditionItems(T)};this.protectedCustomDisplay=function(Q){Q&&b.refresh(D)};this.protectedInitUi=function(Q,T,za,da,Aa){Q=new Vb(la.get("briefAttrCaptionName","\u540d\u79f0"));var Za=new Vb(la.get("briefAttrCaptionDescription","\u7b80\u8981\u63cf\u8ff0")),sb=new Vb(la.get("warningRuleAttrCaptionFilter",
"\u9884\u8b66\u6761\u4ef6")),Ab=new Vb(la.get("warningRuleAttrCaptionPostscript","\u540e\u5904\u7406\u811a\u672c"));D=b.createTable();D.setDraggableAdjusting(!1);D.setSyncUIWhenModelChanged(!1);D.setCellRender(new Y(D));D.getCellRender().setOutsideVisible(!1);b.bindTextEditor(D,O,R);b.bindTableListenerForCtrl(D,Z);D.addColumns(8);D.getColumn(0).setWidth(20);D.getColumn(1).setWidth(56);D.getColumn(2).setWidth(150);D.getColumn(3).setWidth(80);D.getColumn(4).setWidth(180);D.getColumn(5).setWidth(56);
D.getColumn(6).setWidth(60);D.getColumn(7).setWidth(100);var xa=b.createHeadRow(D);xa.setHeight(18);xa.getCell(1).setValue(la.get("warningRuleFilterLeftBracket","\u5de6\u62ec\u53f7"));xa.getCell(2).setValue(la.get("warningRuleFilterField","\u5b57\u6bb5"));xa.getCell(3).setValue(la.get("warningRuleFilterOperation","\u6bd4\u8f83"));xa.getCell(4).setValue(la.get("warningRuleFilterComparing","\u503c"));xa.getCell(5).setValue(la.get("warningRuleFilterRightBracket","\u53f3\u62ec\u53f7"));xa.getCell(6).setValue(la.get("warningRuleFilterLogic",
"\u903b\u8f91"));xa=$(D.getUI());xa.addClass("sa-ctrl-common-border");z.layoutCtrl(Q,0,0,null,0,null,23);z.layoutCtrl(T,0,0,null,25,null,23);z.layoutCtrl(Za,0,0,null,55,null,23);z.layoutCtrl(za,0,0,null,80,null,50);z.layoutCtrl(sb,0,0,null,140,null,20);z.layoutJqCtrl(xa,0,0,null,165,60,null);z.layoutCtrl(Ab,0,300,null,null,25,20);z.layoutCtrl(da,0,300,null,null,1,23);z.layoutCtrl(Aa,null,0,250,null,0,40)};this.protectedInitPostScript=function(Q){var T="",za=function(Aa,Za){T&&(T+="\r\n");T+=Aa;Za&&
(T+="    ",T+=Za)};za("rowsCount() > 3",la.get("warningRulePostScriptDemo1","\u7b26\u5408\u9884\u8b66\u6761\u4ef6\u7684\u8ba1\u7b97\u7ed3\u679c\u8d85\u8fc73\u884c\u3002"));var da=la.get("warningRulePostScriptDemo2","\u6ce8\uff1a\u51fd\u6570#1\uff0c\u53ef\u4ee5\u83b7\u5f97\u7b26\u5408\u9884\u8b66\u6761\u4ef6\u7684\u8ba1\u7b97\u7ed3\u679c\u884c\u6570\u3002\u672a\u4f7f\u7528\u540e\u5904\u7406\u811a\u672c\u65f6\uff0c\u76f8\u5f53\u4e8e#2\u3002");da=da.replace("#1","rowsCount()").replace("#2","rowsCount() > 0");
za(da);Q.addActionListener(function(Aa){var Za=new fa;Za.setTitle(la.get("warningRuleAttrCaptionPostscript","\u540e\u5904\u7406\u811a\u672c"));Za.setDemo(T);Za.show(Aa.getModel(),function(sb){sb=$.trim(sb);Aa.setModel(sb);z.fireEditingEvent()})})};var P=function(){for(var Q=b.getHeadRowCount(D),T=Q;T<D.getRowsCount();T++)D.getRow(T).getCell(0).setValue("");var za=null,da=0;for(T=Q;T<D.getRowsCount()&&!za;T++){var Aa=D.getRow(T);var Za=Aa.getCell(3).getValue(),sb=Aa.getCell(2).getValue(),Ab=Aa.getCell(6).getValue(),
xa=Aa.getCell(1).getValue(),Ra=Aa.getCell(5).getValue();xa=xa?xa:0;Ra=Ra?Ra:0;if(Za)Za.getEditingAlarm()?za=Za.getEditingAlarm():Za.isValid()?(da+=xa,da-=Ra,0>da&&(za=la.get("warningRulePrompt1","\u5de6\u53f3\u62ec\u53f7\u4e0d\u5339\u914d"))):za=la.get("warningRulePrompt2","\u6761\u4ef6\u4e0d\u5b8c\u6574");else if(sb||xa||Ra||Ab)za=la.get("warningRulePrompt2","\u6761\u4ef6\u4e0d\u5b8c\u6574")}za?Aa.getCell(0).setValue(za):0<da&&D.getRow(Q).getCell(0).setValue(la.get("warningRulePrompt1","\u5de6\u53f3\u62ec\u53f7\u4e0d\u5339\u914d"));
b.refresh(D)},O=function(Q,T){return 4!=T||(Q=D.getRow(Q).getCell(3).getValue(),ja(Q))?!1:(Q=J(Q),Q==Wa.OP_EQUAL||Q==Wa.OP_NOT_EQUAL||Q==Wa.OP_GREATER||Q==Wa.OP_GREATER_EQUAL||Q==Wa.OP_LESS||Q==Wa.OP_LESS_EQUAL)},R=function(Q,T,za,da,Aa){Q=Q.getCell(3).getValue();Q.getComparing()!=da&&(Q.setComparing(da),za.setValue(da),P());return!0},Z=function(Q,T,za,da){Q=null;T?(Q=D.searchJqCell(za,7),T=new ma(la.get("warningRuleFilterRowAdd","\u63d2\u5165")),T.getJqUi().appendTo(Q),T.addActionListener(function(Aa){Aa=
za==D.getRowsCount()-1;var Za=D.getRow(za).getStyle(),sb=D.insertRow(za);sb.setHeight(26);sb.setStyle(Za);for(sb=D.getRowsCount()-1;sb>za+1;sb--)Za=D.getRow(sb-1).getStyle(),D.getRow(sb).setStyle(Za);Za=za==b.getHeadRowCount()?3:-1;Za=D.getRow(za+Za).getStyle();D.getRow(za+1).setStyle(Za);Aa&&G(2);b.refresh(D);z.fireEditingEvent()}),da=new ma(la.get("warningRuleFilterRowDelete","\u5220\u9664")),da.getJqUi().appendTo(Q),da.addActionListener(function(Aa){for(Aa=D.getRowsCount()-1;Aa>za;Aa--){var Za=
D.getRow(Aa-1).getStyle();D.getRow(Aa).setStyle(Za)}D.removeRow(za);5>D.getRowsCount()-b.getHeadRowCount(D)&&G(1);P();z.fireEditingEvent()}),Ia.layoutCtrlWithLRTB(T.getJqUi(),0,null,50,2,2,null),Ia.layoutCtrlWithLRTB(da.getJqUi(),50,null,50,2,2,null)):I&&I.empty();I=Q},G=function(Q){for(var T=0;T<Q;T++)b.createRow(D).setHeight(26)},J=function(Q){if(Q)switch(Q.getType()){case Wa.CONDITION_NORMAL:return Q.getOperation();case Wa.CONDITION_CUSTOM:return Wa.CONDITION_CUSTOM;default:throw Error("Unknown");
}return null},ja=function(Q){return Q?(Q=Q.getField(),(Q?Q.getMetaField().getDataType():null)==ba.DT_DATE):!1}}function wa(){pa.call(this);var Y=this,z=this.protectedMethod;this.show=function(R,Z){Y.setSize(920,480);z.setTitle(la.get("briefPreviewTitle","\u9884\u89c8\u6267\u884c\u7ed3\u679c"));z.setFooterPaneCreator(null);z.setContentPaneCreator(function(){return D(R,Z)});z.setClosingAction(function(G){});z.setSelectable(!0);Y.showDialog()};var D=function(R,Z){var G=new Ca;G.setText(la.get("briefPreviewClose",
"\u5173\u95ed"));G.addActionListener(function(T){z.destroy()});var J=I(Z),ja=new Vb(la.get("warningRulePreviewResult","\u5224\u65ad\u7ed3\u679c"));R=P(R,Z);R=$(R.getUI());R.css({border:"1px solid #ddd"});var Q=$("<div>");Q.css({"box-sizing":"border-box",overflow:"auto","white-space":"pre-wrap","line-height":"20px",padding:"6px",border:"1px solid #ddd"});Q.text(O(Z));Z=$("<div>");Z.append(J.getJqUi());Z.append(R);Z.append(ja.getJqUi());Z.append(Q);Z.append(G.getJqUi());Ia.layoutCtrlWithLRTB(J.getJqUi(),
0,0,null,0,null,20);Ia.layoutCtrlWithLRTB(R,0,0,null,20,150,null);Ia.layoutCtrlWithLRTB(ja.getJqUi(),0,0,null,null,120,20);Ia.layoutCtrlWithLRTB(Q,0,0,null,null,40,80);Ia.layoutCtrlWithLRTB(G.getJqUi(),null,null,null,null,6,26);Ia.layoutCtrlCenterAlign(G.getJqUi(),80);return Z},I=function(R){var Z=R.getMatrixRowCount(),G=R.getFilteredRows();R=la.get("warningRulePreviewMatrix1","\u7b26\u5408\u9884\u8b66\u6761\u4ef6\u7684\u8ba1\u7b97\u7ed3\u679c\u5171#1\u884c").replace("#1",G);G>Z&&(Z=la.get("warningRulePreviewMatrix2",
"\u4ec5\u663e\u793a\u524d#1\u884c").replace("#1",Z),R=R+"("+Z+")");return new Vb(R)},P=function(R,Z){R=R.getBriefOutputableFieldsModel().getDimensionFields().length;var G=Z.getMatrixRowCount(),J=Z.getMatrixColumnCount(),ja=new KTStyle;ja.setTextAlign("right");var Q=b.createTable();Q.getCellRender().setOutsideVisible(!1);Q.addColumns(Z.getMatrixColumnCount());for(var T=b.createHeadRow(Q),za=0;za<J;za++){var da=Z.getMatrixColumn(za);Q.getColumn(za).setWidth(120);T.getCell(za).setValue(da)}for(T=0;T<
G;T++)for(da=b.createRow(Q),za=0;za<J;za++){var Aa=Z.getMatrixCell(T,za),Za=da.getCell(za);Za.setValue(Aa);za>=R&&Za.setStyle(ja)}setTimeout(function(){b.refresh(Q)},0);return Q},O=function(R){if(R.isError()){var Z=R.getErrorMessage();Z=Z+"\r\nErrorCode: "+R.getErrorCode()}else Z=R.isMatched()?la.get("warningRulePreviewResultTrue","\u662f"):la.get("warningRulePreviewResultFalse","\u5426");return 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.core&&(com.kingdee.bos.qing.core={});"undefined"==typeof com.kingdee.bos.qing.core.ui&&(com.kingdee.bos.qing.core.ui={});var Ga=com.kingdee.bos.qing.core.ui;Ga.FormulaEditor=function(){function Y(Q){g.FieldsProvider.call(this);var T=this.protectedMethod;(function(){Q.setMultiSelectable(!1);Q.addDoubleClickListener(function(){var za=Q.getSelectedMetaFields();0<za.length&&
(za="["+za[0].getFullDisplayName()+"]",T.fireChoosingEvent(za))});Q.getJqUi().addClass("sa-common-border")})();this.getJqUi=function(){return Q.getJqUi()}}pa.call(this);var z=this,D=this.protectedMethod,I=new g,P,O,R;(function(){z.setSize(762,594);D.setMinSize(762,540);D.setSelectable(!0);D.setContentPaneCreator(function(){return I.getJqUi()});D.setClosingChecker(function(){return I.isValidToAccepted()});D.setClosingAction(function(Q){Q&&(I.acceptEditing(),R.setDisplayName(I.getEditedDisplayName()),
R.setFormula(I.getEditedExecutableFormula()),P())});I.setDuplicatedNameChecker(function(Q,T){a:{for(var za=R.getTable(),da=za.getFieldCount()-1;0<=da;da--){var Aa=za.getField(da);if(Q!=Aa.getPureName()&&T==Aa.getDisplayName()){Q=!0;break a}}Q=!1}return Q});I.setDisplayNameTranslator(function(Q,T){return T?J(Q):G(Q)});I.setFunctionsProviderCreator(function(Q){return Q.getInstanceForCore()})})();this.setContext=function(Q,T,za,da){O=T;R=za;T=za.getPureName();var Aa=da?za.getDisplayName():"";za=za.getFormula();
I.setEditingTarget(T,Aa,za);I.setFieldsProvider(new Y(Q));Q=da?la.get("editCalculatedField","\u7f16\u8f91\u8ba1\u7b97\u5b57\u6bb5"):la.get("createCalculatedField","\u521b\u5efa\u8ba1\u7b97\u5b57\u6bb5");D.setTitle(Q)};this.setSyntaxValidator=function(Q){I.setSyntaxValidator(Q)};this.setAcceptedListener=function(Q){P=Q};var Z=this.showDialog;this.showDialog=function(){Z();I.prepareToStart()};var G=function(Q){return ja(Q,function(T){return T.getFullDisplayName()},function(T){return T.getFullName()})},
J=function(Q){return ja(Q,function(T){return T.getFullName()},function(T){return T.getFullDisplayName()})},ja=function(Q,T,za){for(var da={},Aa=O.getTableCount()-1;0<=Aa;Aa--)for(var Za=O.getTable(Aa),sb=Za.getFieldCount()-1;0<=sb;sb--){var Ab=Za.getField(sb),xa="["+T(Ab)+"]";Ab="["+za(Ab)+"]";if(xa!=Ab)for(var Ra=null;-1!=Q.indexOf(xa);)Ra||(Ra="["+hb.createUUID()+"]",da[Ra]=Ab),Q=Q.replace(xa,Ra)}for(Ra in da)for(Ab=da[Ra];-1!=Q.indexOf(Ra);)Q=Q.replace(Ra,Ab);return Q}};Ga.NumberFormatSettingForMeta=
function(){pa.call(this);var Y=this,z=this.protectedMethod,D=new Lb,I,P,O;(function(){Y.setSize(450,300);z.setContentPaneCreator(function(){return D.getJqUi()});z.setClosingChecker(function(){return D.isValidToAccepted()});z.setClosingAction(function(G){if(G){O.compositeStart(Z());var J=D.getModelPair();G=J[0];J=J[1];for(var ja=0;ja<P.length;ja++){var Q=P[ja],T=Q[0];Q=Q[1];G?(T.accept(G),T=T.encode()):T=J==d.UNSURE?Q:J;Q=I[ja];var za=new fb;za.setMethod(Q.getFormatString,Q.setFormatString);za.setValue(T);
O.perform(za)}O.compositeEnd()}})})();this.setCommandManager=function(G){O=G};var R=this.showDialog;this.showDialog=function(G){R();I=G;z.setTitle(Z());P=[];G=!1;for(var J=0;J<I.length;J++){var ja=I[J].getFormatString();!ja&&(ja=(new d).encode());var Q=new d;Q.decode(ja);if(G||Q.encode()!=ja)if(G=!0,T)T!=ja&&(T=d.UNSURE);else var T=ja;else if(za)za.merge(Q);else{var za=new d;za.decode(ja)}P[J]=[Q,ja]}za=G?[null,T]:[za?za:new d,null];D.setModelPair(za)};var Z=function(){var G=la.get("setDefaultDataFormat",
"\u8bbe\u7f6e#1\u7684\u9ed8\u8ba4\u6570\u5b57\u683c\u5f0f");var J=1==I.length?I[0].getComplexText():la.get("selectedFields","\u591a\u4e2a\u9009\u4e2d\u5b57\u6bb5");return G=G.replace("#1",J)}};Ga.NumberFormatSetting=function(Y){var z=this,D=new Jb(Y),I,P,O,R=!1,Z;this.showDialog=function(){if(!P){P=new Lb;P.setDirtyListener(za);O&&J();var da=$("<div>");da.append(P.getJqUi());Ia.layoutCtrlWithLRTB(P.getJqUi(),0,0,null,0,8,null);var Aa=Y.innerWidth()-450>>1,Za=Y.innerHeight()-288>>1;D.setBounds(Aa,
Za,450,288);D.setContent(da);D.createToolbarButton(la.get("reset","\u91cd\u7f6e"),ja);I=D.createToolbarButton(la.get("apply","\u5e94\u7528"),Q,!0)}D.show()};this.hideDialog=function(){O&&O.removePropertyChangeListener(T);D.hide()};this.isVisible=function(){return D.isVisible()};this.setCommandManager=function(da){Z=da};this.setModel=function(da){O&&O.removePropertyChangeListener(T);O=da;O.addPropertyChangeListener(T);D.setTitle(G());D.isVisible()&&J()};this.getModel=function(){return O};this.acceptEditing=
function(){if(P.isDirty()&&P.isValidToAccepted()){var da=P.getModelPair(),Aa=da[0];da=da[1];Aa=Aa?Aa.encode():da;R=!0;da=new fb;da.setCaption(G());da.setMethod(O.getNumberFormat,O.setNumberFormat);da.setValue(Aa);Z.perform(da);R=!1;P.clearDirtyState()}};var G=function(da){da=da?la.get("clearDataFormat","\u6e05\u9664#1\u6570\u5b57\u683c\u5f0f"):la.get("setDataFormat","\u8bbe\u7f6e#1\u6570\u5b57\u683c\u5f0f");return da=da.replace("#1",O.getComplexText())},J=function(){var da=O.getNumberFormat(),Aa=
new d;Aa.decode(da);da=Aa.encode()==da?[Aa,null]:[null,da];P.setModelPair(da);P.clearDirtyState()},ja=function(){R=!0;var da=new fb;da.setCaption(G(!0));da.setMethod(O.getNumberFormat,O.setNumberFormat);da.setValue(null);Z.perform(da);J();R=!1},Q=function(){z.acceptEditing()},T=function(da,Aa){Aa!=ca.KEY_NUMBERFORMAT||R||J()},za=function(da){var Aa=I.find(".sa-formatsetting-dirtymark");0==Aa.length&&(Aa=$("<div>"),Aa.text("*"),Aa.addClass("sa-formatsetting-dirtymark"),Aa.appendTo(I));Aa.css("display",
da?"block":"none")}};Ga.DateFormatSetting=function(){pa.call(this);var Y=this,z=this.protectedMethod,D,I,P,O,R;this.setCommandManager=function(T){D=T};var Z=this.showDialog;this.showDialog=function(T){Y.setSize(450,300);z.setTitle(J(T));z.setContentPaneCreator(function(){return G(T)});z.setClosingAction(function(za){if(za){za=P.isChecked()?$.trim(O.getText()):null;var da=new fb;da.setCaption(J(T));da.setMethod(T.getDateFormat,T.setDateFormat);da.setValue(za);D.perform(da)}});Z()};var G=function(T){I=
new tb;I.setText(la.get("dateFormatDefault","\u7cfb\u7edf\u9ed8\u8ba4"));P=new tb;P.setText(la.get("dateFormatCustom","\u81ea\u5b9a\u4e49"));var za=new lb;za.addElement(I);za.addElement(P);za.addChangedListener(function(da){O.setEnabled(P.isChecked());Q()});O=new $a;O.addEditedListener(function(da){Q()});R=new Vb;(za=T.getDateFormat())?(P.setChecked(!0),O.setText(za)):(I.setChecked(!0),O.setText(ja(T.getPartValue())));O.setEnabled(P.isChecked());Q();T=$("<div>");T.append(I.getJqUi());T.append(P.getJqUi());
T.append(O.getJqUi());T.append(R.getJqUi());Ia.layoutCtrlWithLRTB(I.getJqUi(),0,null,100,10,null,23);Ia.layoutCtrlWithLRTB(P.getJqUi(),0,null,100,45,null,23);Ia.layoutCtrlWithLRTB(O.getJqUi(),100,20,null,45,null,23);Ia.layoutCtrlWithLRTB(R.getJqUi(),100,20,null,70,null,23);return T},J=function(T){var za=la.get("dateFormatTitle","\u8bbe\u7f6e#1\u6570\u5b57\u683c\u5f0f");return za=za.replace("#1",T.getComplexText())},ja=function(T){switch(T){case ca.PARTVALUE_DATE_YEAR:return"yyyy";case ca.PARTVALUE_DATE_QUARTER:return"'Q'q";
case ca.PARTVALUE_DATE_MONTH:return"MMM";case ca.PARTVALUE_DATE_DAY:return"d";case ca.PARTVALUE_DATE_YQ:return"yyyy-'Q'q";case ca.PARTVALUE_DATE_YM:return"yyyy-MM";default:return"yyyy-MM-dd"}},Q=function(){var T=P.isChecked()?$.trim(O.getText()):null,za="";if(T){var da=new nb;da.setFormatString(T);za=la.get("dateFormatPreview","\u9884\u89c8\uff1a");za+=da.format(new Date)}R.setText(za)}};Ga.FiscalYearStartSelector=function(){pa.call(this);var Y=this,z=this.protectedMethod,D,I,P,O;(function(){Y.setSize(386,
270);z.setContentPaneCreator(function(){return D});z.setClosingAction(function(G){if(G&&0!=P){O.compositeStart(R());for(G=0;G<I.length;G++){var J=I[G],ja=new fb;ja.setMethod(J.getFiscalYearStart,J.setFiscalYearStart);ja.setValue(P);O.perform(ja)}O.compositeEnd()}})})();this.setCommandManager=function(G){O=G};this.setTargetMetaFields=function(G){I=G;z.setTitle(R());for(var J=G=0;J<I.length;J++){var ja=I[J].getFiscalYearStart();ja=ja?ja:0;if(0==J)G=ja;else if(G!=ja){G=0;break}}G=P=G;J=$("<div>");ja=
new Vb(la.get("fiscalYearFromMonth","\u4f1a\u8ba1\u5e74\u5ea6\u4ece\u51e0\u6708\u4efd\u5f00\u59cb\uff1f"));z.layoutCtrl(J,ja.getJqUi(),0,0,300,23);ja=[la.get("January","\u4e00\u6708"),la.get("February","\u4e8c\u6708"),la.get("March","\u4e09\u6708"),la.get("April","\u56db\u6708"),la.get("May","\u4e94\u6708"),la.get("June","\u516d\u6708"),la.get("July","\u4e03\u6708"),la.get("August","\u516b\u6708"),la.get("September","\u4e5d\u6708"),la.get("October","\u5341\u6708"),la.get("November","\u5341\u4e00\u6708"),
la.get("December","\u5341\u4e8c\u6708")];var Q=new lb;Q.addChangedListener(Z);for(var T=0;12>T;T++){var za=T+1,da=ja[T],Aa=new tb;Aa.setText(da);Aa.setUserObject(za);Q.addElement(Aa);da=T%3*118;var Za=30*Math.floor(T/3)+27;z.layoutCtrl(J,Aa.getJqUi(),da,Za,118,23);G==za&&Aa.setChecked(!0)}D=J};var R=function(){var G=la.get("setFiscalYear","\u8bbe\u7f6e#1\u7684\u4f1a\u8ba1\u5e74\u5ea6");var J=1==I.length?I[0].getComplexText():la.get("selectedFields","\u591a\u4e2a\u9009\u4e2d\u5b57\u6bb5");return G=
G.replace("#1",J)},Z=function(G){P=G.getUserObject()}};Ga.SortAccordingSelector=function(){pa.call(this);var Y=this,z=this.protectedMethod,D,I,P;(function(){Y.setSize(640,480);z.setMaxSize(800,600);z.setTitle(la.get("sortAccording","\u6392\u5e8f\u4f9d\u636e"));z.setContentPaneCreator(function(){return P.getJqUi()});z.setClosingChecker(function(){var Z;if(Z=P.check()){var G=new Gb;G.setOptionType(Gb.OPTION_OK);G.setTitle(la.get("sortAccording","\u6392\u5e8f\u4f9d\u636e"));G.setMessage(Z);G.showDialog();
Z=!1}else Z=!0;return Z});z.setClosingAction(function(Z){if(Z&&(Z=P.acceptEditing(),0<Z.length)){I.compositeStart(la.get("sortAccordingModified","\u4fee\u6539\u6392\u5e8f\u4f9d\u636e"));for(var G=0;G<Z.length;G++){var J=Z[G],ja=J[0],Q=J[1];J=J[2];var T=new Da;T.setValue(ja,Q,J);I.perform(T)}I.compositeEnd()}})})();this.setCommandManager=function(Z){I=Z};this.setMeta=function(Z,G,J){D=Z;O(G,J)};var O=function(Z,G){P=new wb;P.setContext(D,{createMetaList:function(){return Z()},createFacade:function(J,
ja){return G(J,ja)},showWarning:R})},R=function(Z){z.getMessageCurtain().showPrompt(Z)}};Ga.NumberFilterAggregationSelector=function(){pa.call(this);var Y=this,z=this.protectedMethod,D,I,P;(function(){z.setContentPaneCreator(function(){return R()});z.setClosingAction(function(J){P(J,J?I:void 0)})})();var O=this.showDialog;this.showDialog=function(J,ja,Q){D=ja;P=Q;ja=J.outerWidth()+2;var T=0;T+223>J.outerHeight()&&(T=J.outerHeight()-223);Q=$(document.body);T=[ja,T];T=Ia.upwardCoordinate(J[0],T,Q[0]);
ja=T[0];T=T[1];Y.setPosition(ja,T);Y.setSize(350,223);z.setTitle(la.get("dataFilter","\u6570\u636e\u7b5b\u9009"));O()};var R=function(){var J=$("<div>"),ja=function(Ra,kb,Db,Ub,$b){z.layoutCtrl(J,Ra.getJqUi(),kb,Db,Ub,$b)},Q=new lb,T=new Vb(la.get("whatValueToFilter","\u5bf9#1\u7684\u4ec0\u4e48\u503c\u8fdb\u884c\u7b5b\u9009?").replace("#1",D)),za=Z(Q,la.get("originalValue","\u539f\u59cb\u503c"),null),da=Z(Q,la.get("sumValue","\u6c42\u548c\u503c"),ca.AGGREGATION_SUM),Aa=Z(Q,la.get("avgValue","\u5e73\u5747\u503c"),
ca.AGGREGATION_AVG),Za=Z(Q,la.get("count","\u8ba1\u6570"),ca.AGGREGATION_COUNT),sb=Z(Q,la.get("countDistinct","\u53bb\u91cd\u8ba1\u6570"),ca.AGGREGATION_CNTD),Ab=Z(Q,la.get("maxValue","\u6700\u5927\u503c"),ca.AGGREGATION_MAX),xa=Z(Q,la.get("minValue","\u6700\u5c0f\u503c"),ca.AGGREGATION_MIN);ja(T,0,0,300,23);ja(za,0,27,100,23);ja(da,0,54,80,23);ja(Aa,100,54,80,23);ja(Za,200,54,80,23);ja(Ab,0,81,80,23);ja(xa,100,81,80,23);ja(sb,200,81,80,23);Q.addChangedListener(G);za.setChecked(!0);return J},Z=function(J,
ja,Q){var T=new tb;T.setText(ja);T.setUserObject(Q);J.addElement(T);return T},G=function(J){I=J.getUserObject()}};Ga.DateFilterPartValueSelector=function(){pa.call(this);var Y=this,z=this.protectedMethod,D,I,P;(function(){z.setContentPaneCreator(function(){return R()});z.setClosingAction(function(J){P(J,J?I:void 0)})})();var O=this.showDialog;this.showDialog=function(J,ja,Q){D=ja;P=Q;ja=J.outerWidth()+2;var T=0;T+260>J.outerHeight()&&(T=J.outerHeight()-260);Q=$(document.body);T=[ja,T];T=Ia.upwardCoordinate(J[0],
T,Q[0]);ja=T[0];T=T[1];Y.setPosition(ja,T);Y.setSize(360,260);z.setTitle(la.get("dataFilter","\u6570\u636e\u7b5b\u9009"));O()};var R=function(){var J=$("<div>"),ja=function(Db,Ub,$b,Cb,Nb){z.layoutCtrl(J,Db.getJqUi(),Ub,$b,Cb,Nb)},Q=new lb,T=new Vb(la.get("whatValueToFilter","\u5bf9#1\u7684\u4ec0\u4e48\u503c\u8fdb\u884c\u7b5b\u9009?").replace("#1",D)),za=Z(Q,la.get("dateRange","\u65e5\u671f\u8303\u56f4"),ca.PARTVALUE_DATE_EXACT),da=Z(Q,la.get("year","\u5e74"),ca.PARTVALUE_DATE_YEAR),Aa=Z(Q,la.get("quarter",
"\u5b63\u5ea6"),ca.PARTVALUE_DATE_QUARTER),Za=Z(Q,la.get("month","\u6708"),ca.PARTVALUE_DATE_MONTH),sb=Z(Q,la.get("day","\u65e5"),ca.PARTVALUE_DATE_DAY),Ab=Z(Q,la.get("yearQuarter","\u5e74\u5b63"),ca.PARTVALUE_DATE_YQ),xa=Z(Q,la.get("yearMonth","\u5e74\u6708"),ca.PARTVALUE_DATE_YM),Ra=Z(Q,la.get("yearMonthDay","\u5e74\u6708\u65e5"),ca.PARTVALUE_DATE_YMD),kb=$("<div>");kb.css("border-bottom","1px solid #ddd");ja(T,0,0,300,23);ja(za,0,27,160,23);z.layoutCtrl(J,kb,0,56,"100%",0);ja(da,0,64,100,23);ja(Aa,
0,91,100,23);ja(Za,110,91,100,23);ja(sb,220,91,100,23);ja(Ab,0,118,100,23);ja(xa,110,118,100,23);ja(Ra,220,118,100,23);Q.addChangedListener(G);za.setChecked(!0);return J},Z=function(J,ja,Q){var T=new tb;T.setText(ja);T.setTooltips(ja);T.setUserObject(Q);J.addElement(T);return T},G=function(J){I=J.getUserObject()}};Ga.ReflinesPanel=function(){function Y(){Ya.AbstractOneItemPanel.call(this);var O,R,Z=new Na,G=new $a,J=new Vb,ja=new $a;this.setModel=function(sb,Ab){O=sb;Z.setSelected([sb.getType(),sb.getMeasureIndex()]);
G.setText(sb.getValue());ja.setText(sb.getLabel());R=Ab};this.protectedGetHeight=function(){return 100};this.protectedInitJqUi=function(sb){var Ab=[];if(0==R.length)Ab.push([M.TYPE_AVG,-1]),Ab.push([M.TYPE_MEDIAN,-1]);else for(var xa=0;xa<R.length;xa++)Ab.push([M.TYPE_AVG,xa]),Ab.push([M.TYPE_MEDIAN,xa]);Ab.push([M.TYPE_CONST,-1]);Z.setItemModels(Ab,Q);Z.setCustomPainter(T);Z.addSelectedChangedListener(za);G.addEditedListener(da);Za();ja.addEditedListener(Aa);Ab=Z.getJqUi();xa=G.getJqUi();var Ra=
ja.getJqUi(),kb=new Vb;kb.setText(la.get("reflineType","\u53d6\u503c"));kb=kb.getJqUi();J.setText(la.get("reflineValue","\u81ea\u5b9a\u4e49\u503c"));var Db=J.getJqUi(),Ub=new Vb;Ub.setText(la.get("reflineLabel","\u6807\u7b7e"));Ub=Ub.getJqUi();sb.append(kb);sb.append(Ab);sb.append(Db);sb.append(xa);sb.append(Ub);sb.append(Ra);Ia.layoutCtrlWithLRTB(kb,0,null,60,0,null,23);Ia.layoutCtrlWithLRTB(Ab,60,60,null,0,null,23);Ia.layoutCtrlWithLRTB(Db,0,null,60,33,null,23);Ia.layoutCtrlWithLRTB(xa,60,60,null,
33,null,23);Ia.layoutCtrlWithLRTB(Ub,0,null,60,66,null,23);Ia.layoutCtrlWithLRTB(Ra,60,60,null,66,null,23)};this.check=function(){if(O.getType()==M.TYPE_CONST){var sb=O.getValue();if(!sb)return G.requestFocus(),la.get("reflinePromptValueEmpty","\u81ea\u5b9a\u4e49\u503c\u4e0d\u80fd\u4e3a\u7a7a\u3002");if(isNaN(sb))return G.requestFocus(),la.get("reflinePromptValueInvalid","\u81ea\u5b9a\u4e49\u503c\u4e0d\u662f\u6b63\u786e\u7684\u6570\u5b57\u3002")}return null};var Q=function(sb,Ab){return sb[0]==Ab[0]&&
sb[1]==Ab[1]},T=function(sb,Ab,xa){sb=xa[0];xa=xa[1];switch(sb){case M.TYPE_AVG:sb=la.get("reflineTypeAvg","\u5e73\u5747\u503c");break;case M.TYPE_MEDIAN:sb=la.get("reflineTypeMed","\u4e2d\u4f4d\u6570");break;case M.TYPE_CONST:sb=la.get("reflineTypeConst","\u81ea\u5b9a\u4e49"),xa=-1}xa=0<=xa&&0<R.length?xa<R.length?R[xa].getComplexText():la.get("reflineNthMeasure","\u7b2c#1\u4e2a\u5ea6\u91cf\u7684").replace("#1",xa+1):"";Ab.text(xa+sb)},za=function(sb,Ab,xa){sb=xa[0];xa=xa[1];O.setMeasureIndex(0>
xa?0:xa);O.setType(sb);Za(!0)},da=function(sb){sb=$.trim(sb.getText());O.setValue(sb)},Aa=function(sb){sb=$.trim(sb.getText());O.setLabel(sb)},Za=function(sb){var Ab=O.getType()==M.TYPE_CONST;J.setEnabled(Ab);G.setEnabled(Ab);sb&&Ab&&setTimeout(function(){G.requestFocus()},200)}}Ya.call(this);var z=this.protectedMethod,D=[],I,P;this.setMeasureFields=function(O){I=O};this.getModel=function(){return D};this.setModel=function(O){!O&&(O=[]);D=[];for(var R=0;R<O.length;R++){var Z=O[R].copy();D.push(Z)}z.updateUi()};
this.setPromptDisplayer=function(O){P=O};this.isValidToAccepted=function(){var O=!1;z.visitAllItemPanel(function(G,J){J=!1;if(G=G.check())P(G),J=O=!0;return J});if(O)return!1;for(var R=0;R<D.length;R++){var Z=D[R];Z.getType()!=M.TYPE_CONST&&Z.setValue("")}return!0};this.protectedGetAddButtonText=function(){return la.get("reflineAdd","\u6dfb\u52a0\u53c2\u8003\u7ebf")};this.protectedUpdateUiImpl=function(){z.clearAllItemUi();for(var O=0;O<D.length;O++)z.appendItemUi(D[O])};this.protectedCreateOneItemPanel=
function(O){var R=new Y;R.setModel(O,I);return R};this.protectedAddItemAction=function(){var O=new M;O.setMeasureIndex(0);O.setType(M.TYPE_AVG);D.push(O);z.appendItemUi(O)};this.protectedDeleteItemModel=function(O){D.splice(O,1)}};Ga.AbstractEditableItemsPanel=Ya;Ga.PaletteSettingPanel=function(){var Y=new pb;this.setPalette=function(I){Y.setColors(I.getColors())};this.checkEditingInvalid=function(){return Y.checkDuplication()};this.acceptEditing=function(I){for(var P=Y.getColors(),O=P.length-1;0<=
O;O--)P[O]||P.splice(O,1);I.setColors(P)};this.createJqUi=function(){var I=Y.createJqUi(),P=$("<div>");P.on("mousedown",D);P.append(I);Ia.layoutCtrl(I,0,0,400,240);I=z(P,la.get("paletteMoveUp","\u4e0a\u79fb"),-1,0);var O=z(P,la.get("paletteMoveDown","\u4e0b\u79fb"),1,0),R=z(P,la.get("paletteMoveLeft","\u5de6\u79fb"),0,-1),Z=z(P,la.get("paletteMoveRight","\u53f3\u79fb"),0,1);Ia.layoutCtrl(I.getJqUi(),400,0,80,26);Ia.layoutCtrl(O.getJqUi(),400,30,80,26);Ia.layoutCtrl(R.getJqUi(),400,60,80,26);Ia.layoutCtrl(Z.getJqUi(),
400,90,80,26);return P};var z=function(I,P,O,R){var Z=new ma;Z.setText(P);Z.addActionListener(function(G,J){return function(ja){Y.moving(G,J)}}(O,R));Z.getJqUi().addClass("movingbutton");Z.getJqUi().css("display","none");Z.getJqUi().appendTo(I);return Z},D=function(I){var P=$(I.currentTarget);Ia.upwardSearchHasClass($(I.target),P,"movingbutton")||(I=Y.clickToSelecting(I),P.find(".movingbutton").css("display",I?"":"none"))}};Ga.PaletteMappingSettingPanel=function(){function Y(Cb){KTDefaultCellRender.call(this,
Cb);var Nb=this,ac=this.paintCellUI;this.paintCellUI=function(cc,na){if(Nb.getCurrentRowIdx()<b.getHeadRowCount()||0==Nb.getCurrentColIdx())ac(cc,na);else if(1==Nb.getCurrentColIdx()){na=Nb.getCell().getValue();var Fa=$("<div>");Fa.css("background-color",na);Fa.appendTo($(cc));Ia.layoutCtrlWithLRTB(Fa,4,4,null,4,4,null)}else 2==Nb.getCurrentColIdx()&&(Fa=$(cc),null===da(Nb.getCell())?(Fa.css({color:"#ccc","text-align":"center","line-height":"24px"}),Fa.text(la.get("paletteMappingUnbound","\u672a\u6307\u5b9a"))):
(Fa.css({color:"","text-align":""}),ac(cc,na)))}}function z(Cb,Nb,ac,cc){this.isSolidInvalid=function(){return cc?!0:!1};this.getPrompt=function(){return ac};this.getJqAnchor=function(){var na=O.searchJqCell(Cb,Nb);O.scrollCellVisible(Cb,Nb);return na}}var D,I,P,O,R,Z,G,J,ja;this.setMemberTextRequester=function(Cb){Z=Cb};this.setInitMapping=function(Cb){P=(I=Cb?!0:!1)?Cb:null};this.getEditedMapping=function(){var Cb=null;if(I)if(O)for(var Nb=b.getHeadRowCount(O);Nb<O.getRowsCount();Nb++){var ac=O.getRow(Nb);
ac=da(ac.getCell(2));if(null===ac)break;!Cb&&(Cb=[]);Cb.push(ac)}else Cb=P;return Cb};this.checkEditingInvalid=function(){if(I&&O)for(var Cb=-1,Nb={},ac=b.getHeadRowCount(O),cc=ac;cc<O.getRowsCount();cc++){var na=O.getRow(cc);na=da(na.getCell(2));if(null===na)0>Cb&&(Cb=cc);else{if(0<=Cb)return ac=la.get("paletteMappingPromptOrder","\u5fc5\u987b\u6309\u987a\u5e8f\u4f9d\u6b21\u6307\u5b9a\u503c\uff0c\u4e2d\u95f4\u4e0d\u80fd\u51fa\u73b0\u201c\u672a\u6307\u5b9a\u201d\u9879\u3002"),new z(Cb,1,ac,!0);var Fa=
Nb[na];if("number"==typeof Fa)return Cb=cc-ac+1,ac=Fa-ac+1,na=na?na:la.get("dataNull","\uff08\u7a7a\uff09"),ac=la.get("paletteMappingPromptDuplication","\u7b2c#1\u884c\u4e0e\u7b2c#2\u884c\u91cd\u590d\uff0c\u90fd\u662f\u201c#3\u201d\u3002").replace("#1",Cb).replace("#2",ac).replace("#3",na),new z(cc,2,ac);Nb[na]=cc}}return null};this.announceClick=function(Cb){if(J&&!Ia.upwardSearchHasClass(Cb,D,"q-sys-mark")){var Nb=D.parent().children(".sa-ctrl-dialog");Ia.isDescendent(Cb[0],Nb[0])||J.hide()}};this.getJqUi=
function(){!D&&Q();return D};this.updatePalette=function(Cb,Nb){if(!Nb||O){Nb={};if(P){for(var ac=0,cc=Math.min(Cb.length,P.length);ac<cc;ac++){var na=Cb[ac];Nb[na]=P[ac]}P=null}else for(ac=b.getHeadRowCount(O);ac<O.getRowsCount();ac++){cc=O.getRow(ac);var Fa=da(cc.getCell(2));null!==Fa&&(na=cc.getCell(1).getValue(),Nb[na]=Fa)}O.setSyncUIWhenModelChanged(!1);b.clearWithoutHead(O);for(ac=0;ac<Cb.length;ac++)na=Cb[ac],cc=b.createRow(O),cc.setHeight(24),cc.getCell(0).setValue(ac+1),cc.getCell(1).setValue(na),
Fa=Nb[na],!Fa&&""!==Fa&&(Fa=null),za(cc.getCell(2),Fa);b.refresh(O);O.setSyncUIWhenModelChanged(!0)}};var Q=function(){T();var Cb=$(O.getUI()),Nb=new ma;Nb.setText(la.get("paletteMappingFillAll","\u81ea\u52a8\u5168\u586b"));Nb.addActionListener(xa);var ac=new ma;ac.setText(la.get("paletteMappingClearAll","\u5168\u6e05\u9664"));ac.addActionListener(Ra);var cc=$("<div>");cc.append(Nb.getJqUi());cc.append(ac.getJqUi());cc.append(Cb);Ia.layoutCtrlWithLRTB(Nb.getJqUi(),null,80,80,0,null,23);Ia.layoutCtrlWithLRTB(ac.getJqUi(),
null,0,80,0,null,23);Ia.layoutCtrlWithLRTB(Cb,0,0,null,28,0,null);Cb=new tb;Cb.setText(la.get("paletteMappingAuto","\u81ea\u52a8"));var na=new tb;na.setText(la.get("paletteMappingAppointed","\u6309\u989c\u8272\u987a\u5e8f\u6307\u5b9a\u503c"));Nb=new lb;Nb.addElement(Cb);Nb.addElement(na);Nb.addChangedListener(function(Fa,Qa){I=Fa==na;cc.css("visibility",I?"visible":"hidden")});Cb.setChecked(!I);na.setChecked(I);D=$("<div>");D.append(Cb.getJqUi());D.append(na.getJqUi());D.append(cc);Ia.layoutCtrlWithLRTB(Cb.getJqUi(),
0,null,200,0,null,23);Ia.layoutCtrlWithLRTB(na.getJqUi(),0,null,200,33,null,23);Ia.layoutCtrlWithLRTB(cc,20,0,null,35,0,null)},T=function(){O=b.createTable();O.setDraggableAdjusting(!1);O.setCellRender(new Y(O));O.getCellRender().setOutsideVisible(!1);b.bindTextEditor(O,Aa,Za);b.bindTableListenerForCtrl(O,sb);O.addColumns(4);O.getColumn(0).setWidth(28);O.getColumn(1).setWidth(40);O.getColumn(2).setWidth(320);O.getColumn(3).setWidth(100);var Cb=b.createHeadRow(O);Cb.setHeight(18);Cb.getCell(1).setValue(la.get("paletteMappingColor",
"\u989c\u8272"));Cb.getCell(2).setValue(la.get("paletteMappingText","\u7ef4\u5ea6\u6210\u5458\uff08\u663e\u793a\u503c\uff09"));Cb.getCell(3).setValue(la.get("paletteMappingOperation","\u64cd\u4f5c"));Cb=new KTStyle;Cb.setTextAlign("right");O.getColumn(0).setStyle(Cb)},za=function(Cb,Nb){var ac=null===Nb?" ":Nb;Cb.setUserObject(null===Nb?null:"exist");Cb.setValue(ac)},da=function(Cb){return null===Cb.getUserObject()?null:Cb.getValue()},Aa=function(Cb,Nb){return 2==Nb},Za=function(Cb,Nb,ac,cc,na){za(ac,
cc);return!0},sb=function(Cb,Nb,ac,cc){Cb=null;Nb?(Cb=O.searchJqCell(ac,3),Nb=new ma(la.get("paletteMappingSelect","\u9009\u62e9")),Nb.getJqUi().addClass("q-sys-mark"),Nb.getJqUi().appendTo(Cb),Nb.addActionListener(function(na){na=ac-b.getHeadRowCount(O)+1;$b(ac,na)}),cc=new ma(la.get("paletteMappingClear","\u6e05\u9664")),cc.getJqUi().appendTo(Cb),cc.addActionListener(function(na){za(O.getRow(ac).getCell(2),null)}),Ia.layoutCtrlWithLRTB(Nb.getJqUi(),0,null,50,2,2,null),Ia.layoutCtrlWithLRTB(cc.getJqUi(),
50,null,50,2,2,null)):R&&R.empty();R=Cb},Ab=function(){for(var Cb=!0,Nb=b.getHeadRowCount(O);Nb<O.getRowsCount();Nb++){var ac=O.getRow(Nb);if(da(ac.getCell(2))){Cb=!1;break}}return!Cb},xa=function(Cb){if(Ab()){var Nb=new ea;Nb.setText(la.get("paletteMappingFillAllConfirmer","\u6e05\u9664\u5168\u90e8\u5df2\u6307\u5b9a\u7684\u503c\uff0c\u5e76\u91cd\u65b0\u81ea\u52a8\u586b\u5199\u5417\uff1f"));Nb.setConfirmedListener(function(ac){ac&&Db()});Nb.show(Cb.getJqUi())}else Db()},Ra=function(Cb){if(Ab()){var Nb=
new ea;Nb.setText(la.get("paletteMappingClearAllConfirmer","\u6e05\u9664\u5168\u90e8\u5df2\u6307\u5b9a\u7684\u503c\u5417\uff1f"));Nb.setConfirmedListener(function(ac){ac&&kb()});Nb.show(Cb.getJqUi())}else kb()},kb=function(){O.setSyncUIWhenModelChanged(!1);for(var Cb=b.getHeadRowCount(O);Cb<O.getRowsCount();Cb++){var Nb=O.getRow(Cb).getCell(2);za(Nb,null)}b.refresh(O);O.setSyncUIWhenModelChanged(!0)},Db=function(){kb();Ub(function(){var Cb=b.getHeadRowCount(O),Nb=O.getRowsCount()-Cb;O.setSyncUIWhenModelChanged(!1);
for(Nb=Math.min(G.length,Nb)-1;0<=Nb;Nb--){var ac=G[Nb],cc=O.getRow(Nb+Cb).getCell(2);za(cc,ac)}b.refresh(O);O.setSyncUIWhenModelChanged(!0)})},Ub=function(Cb){G?Cb():Z(function(Nb){G=Nb;Cb()})},$b=function(Cb,Nb){ja=Cb;if(!J){Cb=D.parent();var ac=Cb.prop("clientWidth"),cc=Cb.prop("clientHeight"),na=Math.round(.5*ac);ac=ac-na-4;cc-=8;J=new Jb(Cb);J.setMinSize(120,120);J.setBounds(ac,4,na,cc);J.setToolbarVisible(!1);J.setResizeEnabled(!0);J.setFullScreenEnabled();var Fa=new u;Fa.setItemHeight(22);
Fa.setItemUiCreator(function(Qa){var Ua=G[Qa];Qa=new ma;Qa.setText(Ua?Ua:la.get("dataNull","\uff08\u7a7a\uff09"));Qa.addActionListener(function(Ka){J.hide();za(O.getRow(ja).getCell(2),Ua)});Qa.getJqUi().css({"text-align":"left",left:0,width:"100%"});return Qa.getJqUi()});J.setContent(Fa.getJqUi());Ub(function(){Fa.setItemCount(G.length);Fa.repaint()})}J.setTitle(la.get("paletteMappingSelectorTitle","\u9009\u62e9\u7b2c#1\u4e2a\u989c\u8272\u5bf9\u5e94\u7684\u503c").replace("#1",Nb));J.show()}};Ga.ContinuousColorSettingDialog=
function(){pa.call(this);var Y=this,z=this.protectedMethod,D=new zb,I=!1;this.setTitle=function(O){z.setTitle(O)};this.setup=function(O,R,Z){if(O)I=!0;else{I=!1;var G=zb.getDefaultBackwardColor(),J=zb.getDefaultForwardColor(),ja=zb.makeCustomColorB(G),Q=zb.makeCustomColorB(J);O=new ia;O.getBackwardGradientColor(!0).setColor(G,ja);O.getForwardGradientColor(!0).setColor(J,Q);O.setSegments(0);O.setMinData(null);O.setMaxData(null);O.setMiddleData(0);O.setWholeColorRange(!1)}D=new zb;D.setContext(R);D.model2Ui(O);
Y.setSize(640,480);z.setContentPaneCreator(P);z.setClosingAction(function(T){T&&Z(I?D.ui2Model():null)})};var P=function(){var O=$("<div>");O.css("border-top","1px solid #f0f0f0");var R=$("<div>");R.append(O);R.append(D.getJqUi());Ia.layoutCtrlWithLRTB(O,0,0,null,0,null,0);Ia.layoutCtrlWithLRTB(D.getJqUi(),20,0,null,10,0,null);O=new tb;O.setText(la.get("continuousColorDefault","\u7cfb\u7edf\u9ed8\u8ba4"));var Z=new tb;Z.setText(la.get("continuousColorCustom","\u81ea\u5b9a\u4e49"));var G=new lb;G.addElement(O);
G.addElement(Z);G.addChangedListener(function(J,ja){I=J==Z;R.css("visibility",I?"visible":"hidden")});O.setChecked(!I);Z.setChecked(I);G=$("<div>");G.append(O.getJqUi());G.append(Z.getJqUi());G.append(R);Ia.layoutCtrlWithLRTB(O.getJqUi(),0,null,160,0,null,23);Ia.layoutCtrlWithLRTB(Z.getJqUi(),0,null,160,33,null,23);Ia.layoutCtrlWithLRTB(R,0,0,null,70,0,null);return G}};Ga.BriefOutputManageDialog=function(){Yb.call(this);var Y=this,z=this.protectedMethod;this.protectedInitDialog=function(){Y.setSize(800,
540);z.setTitle(la.get("briefOutputParam","\u8f93\u51fa\u53c2\u6570"));return[la.get("briefAskAbort","\u662f\u5426\u53d6\u6d88\u5bf9\u201c\u8f93\u51fa\u53c2\u6570\u201d\u7684\u4fee\u6539\uff1f"),la.get("briefCommandCaption","\u8bbe\u7f6e\u8f93\u51fa\u53c2\u6570")]};this.protectedCreateTreeUi=function(){return new S};this.protectedCreateSettingUi=function(){return new W};this.protectedPreview=function(D,I,P,O){D.createFacade(function(R){var Z=new mb;Z.parseFromJson(R);(new Va).show(O,Z)}).previewBriefOutput(D.getMeta(),
I,P,O)}};Ga.WarningRuleManageDialog=function(){Yb.call(this);var Y=this,z=this.protectedMethod;this.protectedInitDialog=function(){Y.setSize(960,540);z.setTitle(la.get("warningRule","\u9884\u8b66\u89c4\u5219"));return[la.get("warningRuleAskAbort","\u662f\u5426\u53d6\u6d88\u5bf9\u201c\u9884\u8b66\u89c4\u5219\u201d\u7684\u4fee\u6539\uff1f"),la.get("warningRuleCommandCaption","\u8bbe\u7f6e\u9884\u8b66\u89c4\u5219")]};this.protectedCreateTreeUi=function(){return new Ma};this.protectedCreateSettingUi=
function(){return new Oa};this.protectedPreview=function(D,I,P,O){D.createFacade(function(R){var Z=new gb;Z.parseFromJson(R);(new wa).show(I,Z)}).previewWarningRule(D.getMeta(),I,P,O)}};var Ia,hb,ib,nb,bb,la,Jb,pa,Gb,Vb,tb,lb,Na,$a,La,ab,ma,ha,ta,ka,p,ra,ea,Ca,U,E,u,g,d,e,c,b,q,t,w,x,A,N,ba,ca,M,ia,sa,mb,Wa,xb,gb,fb,Da;(function(){var Y=com.kingdee.bos.qing.common;Ia=Y.DomUtil;hb=Y.Util;ib=Y.ColorUtil;nb=Y.DateFormater;bb=Y.CanvasUtil;Y=com.kingdee.bos.qing.framework.common;la=Y.MultilanguageManager.createPackageAccessor(Ga);
Y=com.kingdee.bos.qing.ui.component;Jb=Y.Dialog;pa=Y.AbstractModalDialog;Gb=Y.MessageDialog;Vb=Y.Label;tb=Y.RadioButton;lb=Y.RadioButtonGroup;Na=Y.ComboBox;$a=Y.TextField;La=Y.DropdownSelector;ab=Y.F7Selector;ma=Y.WorkButton;ha=Y.ComboColor;ta=Y.CheckBox;ka=Y.Spinner;p=Y.List;ra=Y.TextArea;ea=Y.SimpleConfirmer;Ca=Y.Button;U=Y.DateSelector;E=Y.TabContainer;u=Y.DynamicScroller;Y=com.kingdee.bos.qing.common.ui;g=Y.FormulaEditorPanel;d=Y.NumberFormatModel;e=Y.NumberFormatSettingPanel;c=Y.ManualOrderingList;
b=Y.TableUtil;q=Y.AbstractLeftRightSelector;t=Y.CommonIconUtil;Y=com.kingdee.bos.qing.chart.render;w=Y.ContinuousColorLegendRender;Y=com.kingdee.bos.qing.core;x=Y.Icons;A=Y.CommonJsonParser;Y=com.kingdee.bos.qing.core.model;N=Y.Meta;ba=Y.MetaField;ca=Y.AbstractAnalyticalField;M=Y.Refline;ia=Y.ContinuousColor;sa=Y.BriefOutputDefinition;mb=Y.BriefOutput;Wa=Y.WarningRuleDefinition;xb=Wa.ConditionItem;gb=Y.WarningRulePreview;Y=com.kingdee.bos.qing.core.controller;fb=Y.ActionChangeProperty;Da=Y.ActionDefineOrder})();
Ya.AbstractOneItemPanel=function(){var Y=this,z,D,I,P=!1;this.setDeleteListener=function(O){z=O};this.setMovingDependence=function(O,R){D=O;I=R};this.requestMovingButtonVisibleUpdating=function(){P=!0};this.createJqUi=function(){var O=new ma;O.setText("\u00d7");O.addActionListener(function(T){z(Y)});var R=Y.protectedGetHeight(),Z=(R-18>>1)-5,G=$("<div>");G.css("height",R);G.append(O.getJqUi());Ia.layoutCtrlWithLRTB(O.getJqUi(),null,0,18,Z,null,18);if(D){var J=function(T,za){ja.getJqUi().css("display",
T?"":"none");Q.getJqUi().css("display",za?"":"none")},ja=new ma;ja.setText("\u2191");ja.getJqUi().css("display","none");ja.addActionListener(function(T){D(Y,!0)&&I(Y,!0)});var Q=new ma;Q.setText("\u2193");Q.getJqUi().css("display","none");Q.addActionListener(function(T){D(Y,!1)&&I(Y,!1)});Ia.layoutCtrlWithLRTB(ja.getJqUi(),null,0,18,0,null,18);Ia.layoutCtrlWithLRTB(Q.getJqUi(),null,0,18,null,10,18);G.append(ja.getJqUi());G.append(Q.getJqUi());G.on("mouseenter",function(T){J(D(Y,!0),D(Y,!1))});G.on("mouseleave",
function(T){J(!1,!1)});G.on("mousemove",function(T){P&&(P=!1,J(D(Y,!0),D(Y,!1)))})}Y.protectedInitJqUi(G);return G};this.protectedGetHeight=function(){throw Error("Override");};this.protectedInitJqUi=function(O){throw Error("Override");}};zb.getDefaultBackwardColor=function(){return[349,90,30]};zb.getDefaultForwardColor=function(){return[142,90,20]};zb.makeCustomColorB=function(Y){return[Y[0],0,85]};zb.undressGray=function(Y){return[Y[0],15,85]};Oa.isOperationFit=function(Y,z){if(Y.getType()==Wa.CONDITION_NORMAL){for(var D=
0;D<z.length;D++)if(z[D]==Y.getOperation())return!0;return!1}return!0};Oa.createSelectableOperations=function(Y,z){var D=[Wa.CONDITION_CUSTOM];D.push(Wa.OP_EQUAL);D.push(Wa.OP_NOT_EQUAL);Y&&z!=ba.DT_DATE||(D.push(Wa.OP_GREATER),D.push(Wa.OP_GREATER_EQUAL),D.push(Wa.OP_LESS),D.push(Wa.OP_LESS_EQUAL));D.push(Wa.OP_NULL);D.push(Wa.OP_NOT_NULL);return D};Oa.operationToString=function(Y){switch(Y){case Wa.CONDITION_CUSTOM:Y=la.get("warningRuleOpCustom","\u81ea\u5b9a\u4e49");break;case Wa.OP_EQUAL:Y=la.get("warningRuleOpEqual",
"\u7b49\u4e8e");break;case Wa.OP_NOT_EQUAL:Y=la.get("warningRuleOpNotEqual","\u4e0d\u7b49\u4e8e");break;case Wa.OP_GREATER:Y=la.get("warningRuleOpGreater","\u5927\u4e8e");break;case Wa.OP_GREATER_EQUAL:Y=la.get("warningRuleOpGreaterEqual","\u5927\u4e8e\u7b49\u4e8e");break;case Wa.OP_LESS:Y=la.get("warningRuleOpLess","\u5c0f\u4e8e");break;case Wa.OP_LESS_EQUAL:Y=la.get("warningRuleOpLessEqual","\u5c0f\u4e8e\u7b49\u4e8e");break;case Wa.OP_NULL:Y=la.get("warningRuleOpNull","\u4e3a\u7a7a");break;case Wa.OP_NOT_NULL:Y=
la.get("warningRuleOpNotNull","\u4e0d\u4e3a\u7a7a");break;default:Y=""}return Y};Oa.comparingToString=function(Y){return Y}})();(function(){function Ya(){var ea;this.getFilter=function(){return ea};this.setFilter=function(Ca){ea=Ca};this.getJqUi=function(){throw Error("Override me.");};this.getSuggestDialogSize=function(Ca){return[640,480,!1,0,0]};this.accepting=function(Ca){throw Error("Override me.");}}function Lb(){Ya.call(this);var ea=this,Ca;this.getSuggestDialogSize=function(U){return[640,480,!1]};this.getJqUi=function(){if(!Ca){var U=ea.getFilter().copy();Ca=new ua;Ca.setModel(U)}return Ca.getJqUi()};this.accepting=
function(U){var E=Ca.acceptEditing(),u=new ka(ea.getFilter());u.setValue(E);U.perform(u);return!0}}function wb(){Ya.call(this);var ea=this,Ca,U,E,u=!1;this.getSuggestDialogSize=function(e){return[360,240,!1]};this.getJqUi=function(){Ca||(Ca=$("<div>"),g(Ca));return Ca};this.accepting=function(e){if(u){var c=U.getValue(),b=E.isChecked(),q=ea.getFilter();q=new p(q);q.setValue(c[0],c[1],b);e.perform(q);return!0}return!1};var g=function(e){U=new bb;U.addValueChangedListener(function(c){u=!0});E=new Jb;
E.setText(nb.get("dateFilterIncludeNull","\u5305\u542b\u7a7a\u503c"));E.addCheckedListener(function(c,b){b&&(u=!0)});hb.layoutCtrlWithLRTB(U.getJqUi(),0,0,null,10,40,null);hb.layoutCtrlWithLRTB(E.getJqUi(),0,0,null,null,0,30);U.getJqUi().appendTo(e);E.getJqUi().appendTo(e);d();u=!1},d=function(){var e=ea.getFilter(),c=e.getPreparedModel();if(e.isJustShowAffected()){var b=c.getSelectedMin();c=c.getSelectedMax();var q=Math.min(c,Math.max(b,e.getFloor()));var t=Math.min(c,Math.max(b,e.getCeiling()))}else b=
c.getMin(),c=c.getMax(),q=e.getFloor(),t=e.getCeiling();U.setFormatString(e.getFormatString());U.setLimited(b,c);U.setValue(q,t);E.setChecked(e.isContainNull())}}function eb(){var ea=this,Ca,U,E,u,g,d,e,c={},b={},q=!1;this.suggestDialogSize=function(ia){var sa=ea.protectedGetSelectableItems().length;ia=Math.max(60,parseInt(.9*ia.innerHeight())-180);return[600,Math.min(ia,Math.max(60,21*sa))+180,!0,480,240]};this.getJqUi=function(){Ca||(Ca=$("<div>"),t(Ca));return Ca};this.protectedGetSelectableItems=
function(){throw Error("Impl");};var t=function(ia){U=ia;c=ea.protectedCloneSelectedValue();d=!1;var sa=$("<div>");sa.appendTo(ia);var mb=w(sa);hb.layoutCtrlWithLRTB(sa,0,0,null,0,null,mb);g=new la;g.setItemHeight(21);g.setItemUiCreator(function(Wa){return ea.protectedItemCreator(e[Wa])});g.getJqUi().appendTo(ia);hb.layoutCtrlWithLRTB(g.getJqUi(),0,0,null,mb,0,null);x()};this.protectedCloneSelectedValue=function(){throw Error("Impl");};this.protectedItemCreator=function(ia){throw Error("Impl");};
var w=function(ia){u=new W;!ea.protectedIsAutoSelectEnabled()&&u.setAutoSelectDisabled();u.setSearchingHandler(ba);var sa=u.getJqUi();hb.layoutCtrlWithLRTB(sa,0,200,null,0,null,23);sa.appendTo(ia);sa=new Jb;sa.setText(nb.get("showOnlySelected","\u4ec5\u663e\u793a\u9009\u4e2d\u9879"));sa.setChecked(d);sa.addCheckedListener(ca);sa=sa.getJqUi();hb.layoutCtrlWithLRTB(sa,null,0,160,0,null,21);sa.appendTo(ia);return ea.protectedInitBar(ia)};this.protectedInitBar=function(ia){return 28};this.protectedIsAutoSelectEnabled=
function(){return!0};var x=function(){var ia=ea.protectedGetSelectableItems();e=u.isSearching()||d?$.grep(ia,function(sa){var mb=u.check(sa.getDisplayText());sa=!d||N(sa.getValue());return mb&&sa}):ia;g.setItemCount(e.length);g.repaint();ea.protectedAfterUpdateDynamicScroller()};this.protectedAfterUpdateDynamicScroller=function(){};var A=function(){if(0==e.length){if(!E){var ia=new Gb;ia.setText(nb.get("nothingSearched","\u627e\u4e0d\u5230\u7b26\u5408\u7684\u7ed3\u679c"));ia.setEnabled(!1);E=ia.getJqUi();
hb.layoutCtrlWithLRTB(E,0,0,null,60,null,16);E.appendTo(U)}}else E&&E.remove(),E=null},N=function(ia){return 1==M()[ia]},ba=function(){b={};if(u.isAutoSelectMode()&&u.isSearching()){q=!0;for(var ia=ea.protectedGetSelectableItems(),sa=0;sa<ia.length;sa++){var mb=ia[sa];u.check(mb.getDisplayText())&&(b[mb.getValue()]=!0)}}ea.protectedAfterAutoSelectedBySearching();x();A()};this.protectedAfterAutoSelectedBySearching=function(){};var ca=function(ia,sa){d=ia.isChecked();x();A()},M=function(){return u.isAutoSelectMode()&&
u.isSearching()?b:c};this.protectedMethod={repaintWithScrollState:function(){g.keepState();g.repaint();g.restoreState()},visitAllVisibleSelectableItems:function(ia){for(var sa=0;sa<e.length&&!ia(e[sa]);sa++);},isSelected:N,select:function(ia,sa){var mb=M();sa?mb[ia]=!0:delete mb[ia];q=!0},selectOnlyOne:function(ia){c={};q=c[ia]=!0},acceptSelectingResult:function(){return q?M():null}}}function pb(){eb.call(this);var ea=this.protectedMethod;this.protectedIsAutoSelectEnabled=function(){return!1};this.protectedItemCreator=
function(U){var E=U.getValue();E=ea.isSelected(E);var u=U.getDisplayText(),g=new Vb;g.addCheckedListener(Ca);g.setUserObject(U);g.setText(u);g.setChecked(E);U=g.getJqUi();hb.layoutCtrlWithLRTB(U,0,0,null);return U};var Ca=function(U,E){E&&(U.isChecked()?(U=U.getUserObject(),ea.selectOnlyOne(U.getValue()),ea.repaintWithScrollState()):U.setChecked(!0))}}function zb(){eb.call(this);var ea=this,Ca=this.protectedMethod,U,E;this.protectedInitBar=function(c){U=new Jb;U.setText(nb.get("selectAll","\u5168\u9009"));
U.addCheckedListener(e);var b=U.getJqUi();hb.layoutCtrlWithLRTB(b,0,null,80,30,null,21);b.appendTo(c);E=new Gb;b=E.getJqUi();hb.layoutCtrlWithLRTB(b,80,0,null,30,null,21);b.appendTo(c);u();return 55};this.protectedItemCreator=function(c){var b=c.getValue();b=Ca.isSelected(b);var q=c.getDisplayText(),t=new Jb;t.addCheckedListener(d);t.setUserObject(c);t.setText(q);t.setChecked(b);ea.protectedIsExcludeMode()&&t.setCustomStyle("text-decoration","line-through");c=t.getJqUi();hb.layoutCtrlWithLRTB(c,0,
0,null);return c};this.protectedIsExcludeMode=function(){return!1};this.protectedAfterUpdateDynamicScroller=function(){g()};this.protectedAfterAutoSelectedBySearching=function(){u()};var u=function(){var c=0;for(var b=ea.protectedGetSelectableItems(),q=0;q<b.length;q++)Ca.isSelected(b[q].getValue())&&c++;c=nb.get("selectedCount","(\u5df2\u9009\u62e9#1\u9879)").replace("#1",c);E.setText(c)},g=function(){var c=!0,b=!1;Ca.visitAllVisibleSelectableItems(function(q){b=!0;var t=!1;Ca.isSelected(q.getValue())||
(c=!1,t=!0);return t});U.setChecked(b&&c)},d=function(c,b){b&&(b=c.getUserObject(),c=c.isChecked(),Ca.select(b.getValue(),c),g(),u())},e=function(c,b){if(b){var q=c.isChecked();Ca.visitAllVisibleSelectableItems(function(t){Ca.select(t.getValue(),q)});Ca.repaintWithScrollState();u()}}}function Yb(){Ya.call(this);pb.call(this);var ea=this,Ca=this.protectedMethod;this.protectedGetSelectableItems=function(){return ea.getFilter().getSelectableItems()};this.protectedCloneSelectedValue=function(){return ea.getFilter().cloneAllSelectedValue()};
this.getSuggestDialogSize=function(U){return ea.suggestDialogSize(U)};this.accepting=function(U){var E=Ca.acceptSelectingResult();if(E){var u=new ra(ea.getFilter());u.setValue(E);U.perform(u);return!0}return!1}}function Mb(){Ya.call(this);zb.call(this);var ea=this,Ca=this.protectedMethod;this.protectedIsExcludeMode=function(){return ea.getFilter().isExclude()};this.protectedGetSelectableItems=function(){return ea.getFilter().getSelectableItems()};this.protectedCloneSelectedValue=function(){return ea.getFilter().cloneAllSelectedValue()};
this.getSuggestDialogSize=function(U){return ea.suggestDialogSize(U)};this.accepting=function(U){var E=Ca.acceptSelectingResult();if(E){var u=new ra(ea.getFilter());u.setValue(E);U.perform(u);return!0}return!1}}function S(){function ea(A){KTDefaultTreeHandlerRender.call(this,A);var N=this.create;this.create=function(ba,ca,M,ia,sa,mb,Wa){return t()?[]:N(ba,ca,M,ia,sa,mb,Wa)}}function Ca(A){KTDefaultCellRender.call(this,A);var N=this;this.paintCellUI=function(ba,ca){var M=N.getCell().getValue(),ia=
N.getCurrentRowIdx();M=U.protectedCreateItemUi(A,M,ia);M.css("overflow","visible");M.children().css("overflow","visible");ba=$(ba);ba.css("overflow","visible");ca?(ca=$(ca),ca.css("overflow","visible"),M.appendTo(ca),hb.layoutCtrlWithLRTB(M,4,0,null,0,null,"100%")):(M.appendTo(ba),hb.layoutCtrlWithLRTB(M,0,0,null,0,null,"100%"))}}Ya.call(this);var U=this,E,u={},g={},d,e=!1,c=!1;this.getSuggestDialogSize=function(A){var N=U.getFilter().getSelectableItems().length;A=Math.max(40,parseInt(.9*A.innerHeight())-
200);return[640,Math.min(A,Math.max(40,23*N))+200,!0,480,240]};this.getJqUi=function(){if(!E){E=$("<div>");u=U.getFilter().cloneAllSelectedValue();e=!1;d=new W;!U.protectedIsAutoSelectEnabled()&&d.setAutoSelectDisabled();var A=new KTable;A.setCellRender(new Ca(A));A.setTreeHandlerRender(new ea(A));A.setSyncUIWhenModelChanged(!1);A.setLargeDataMode(!0);A.addColumn().setWidth(320);var N=new KTStyle;N.setVerticalAlign("middle");A.setStyle(N);N=U.getFilter().getSelectableItems();if(0==N.length)N=!1;else{for(var ba=
!0,ca=0;ca<N.length;ca++){var M=N[ca],ia=w(M.getValue()),sa=A.addRow();sa.setHeight(23);sa=sa.getCell(0);sa.setValue(M);M=new KTCellTreeModel(M.getLevel());sa.setTreeModel(M);ba=ba&&ia}N=ba}A.updateUI();ba=U.protectedGetBarHeight()+6;ca=$(A.getUI());hb.layoutCtrlWithLRTB(ca,0,0,null,ba,0,null);E.append(ca);A=[N,A];b(A[0],A[1])}return E};this.accepting=function(A){var N=U.protectedIsIncludeSubs(),ba=U.getFilter();if(c||N!=ba.isTreeSelectingIncludeSubs()){var ca=new ra(ba);ca.setValue(x());var M=new ta;
M.setMethod(ba.isTreeSelectingIncludeSubs,ba.setTreeSelectingIncludeSubs);M.setValue(N);A.compositeStart(ca.getCaption());A.perform(ca);A.perform(M);A.compositeEnd();return!0}return!1};this.protectedIsIncludeSubs=function(){return!1};this.protectedIsAutoSelectEnabled=function(){return!0};var b=function(A,N){var ba=$("<div>");ba.css("border-bottom","1px solid #eee");var ca=U.protectedGetBarHeight();hb.layoutCtrlWithLRTB(ba,0,0,null,0,null,ca);d.setSearchingHandler(function(){g={};if(d.isAutoSelectMode()&&
d.isSearching()){c=!0;for(var M=U.getFilter().getSelectableItems(),ia=0;ia<M.length;ia++){var sa=M[ia];d.check(sa.getDisplayText())&&(g[sa.getValue()]=!0)}}U.protectedAfterAutoSelectedBySearching();q(N);N.updateUI(!0)});ca=d.getJqUi();hb.layoutCtrlWithLRTB(ca,0,200,null,0,null,23);ca.appendTo(ba);ca=new Jb;ca.setText(nb.get("showOnlySelected","\u4ec5\u663e\u793a\u9009\u4e2d\u9879"));ca.setChecked(e);ca.addCheckedListener(function(M,ia){ia&&(e=M.isChecked(),q(N),N.updateUI(!0))});ca=ca.getJqUi();hb.layoutCtrlWithLRTB(ca,
null,0,160,0,null,21);ca.appendTo(ba);U.protectedInitBar(ba,A,N);ba.appendTo(E)};this.protectedInitBar=function(A,N,ba){};this.protectedGetBarHeight=function(){return 30};var q=function(A){for(var N=t(),ba=!0,ca=!1,M=65535,ia=0;ia<A.getRowsCount();ia++){var sa=A.getRow(ia),mb=sa.getCell(0),Wa=mb.getTreeModel(),xb=!0;Wa.getLevel()<=M&&(xb=!1);var gb=mb.getValue();mb=w(gb.getValue());gb=e&&!mb||d.isSearching()&&!d.check(gb.getDisplayText());var fb=xb;sa.setHide(N?gb:fb);gb||(ca=ca||mb,ba=ba&&mb);xb||
(M=Wa.isExpanded()?65535:Wa.getLevel())}U.protectedAfterUpdateTree(ca?ba:!1,N)};this.protectedAfterUpdateTree=function(A,N){};this.protectedCreateItemUi=function(A,N,ba){throw Error("Override");};this.protectedAfterAutoSelectedBySearching=function(){};var t=function(){return e||d&&d.isSearching()},w=function(A){return 1==x()[A]},x=function(){return d.isAutoSelectMode()&&d.isSearching()?g:u};this.protectedMethod={isSelected:w,select:function(A,N){var ba=x();N?ba[A]=!0:delete ba[A];c=!0},selectOnlyOne:function(A){u=
{};c=u[A]=!0},isAnySearched:t}}function Ma(){S.call(this);var ea=this.protectedMethod;this.protectedIsAutoSelectEnabled=function(){return!1};this.protectedCreateItemUi=function(Ca,U,E){var u=U.getValue();E=ea.isSelected(u);var g=new Vb;g.setText(U.getDisplayText());g.setChecked(E);g.addCheckedListener(function(d,e){e&&(ea.selectOnlyOne(u),Ca.updateUI(!0))});return g.getJqUi()}}function Ja(){S.call(this);var ea=this,Ca=this.protectedMethod,U=!0,E,u,g;this.protectedInitBar=function(c,b,q){U=ea.getFilter().isTreeSelectingIncludeSubs();
g=new Jb;g.setText(nb.get("includeSubs","\u9009\u62e9\u65f6\u5305\u542b\u4e0b\u7ea7\u8282\u70b9"));g.setChecked(U);g.addCheckedListener(e);var t=g.getJqUi();hb.layoutCtrlWithLRTB(t,null,0,160,30,null,21);t.appendTo(c);E=new Jb;E.setText(nb.get("selectAll","\u5168\u9009"));E.setChecked(b);E.addCheckedListener(function(w,x){if(x){w=w.isChecked();x=!Ca.isAnySearched();for(var A=0;A<q.getRowsCount();A++){var N=q.getRow(A);if(x||!N.isHide())N=N.getCell(0).getValue(),Ca.select(N.getValue(),w)}q.updateUI(!0);
d()}});b=E.getJqUi();hb.layoutCtrlWithLRTB(b,0,null,80,30,null,21);b.appendTo(c);u=new Gb;d();b=u.getJqUi();hb.layoutCtrlWithLRTB(b,80,null,160,30,null,21);b.appendTo(c)};this.protectedGetBarHeight=function(){return 58};this.protectedAfterUpdateTree=function(c,b){E.setChecked(c);g.setEnabled(!b)};this.protectedIsIncludeSubs=function(){return U};this.protectedCreateItemUi=function(c,b,q){var t=b.getValue();t=Ca.isSelected(t);var w=new Jb;w.setUserObject(q);w.setText(b.getDisplayText());w.setChecked(t);
w.addCheckedListener(function(x,A){if(A){A=x.getUserObject();x=x.isChecked();var N=c.getRow(A).getCell(0),ba=N.getValue();Ca.select(ba.getValue(),x);if(U&&!Ca.isAnySearched()){ba=N.getTreeModel();var ca=ba.getLevel();for(A+=1;A<c.getRowsCount();A++){N=c.getRow(A).getCell(0);ba=N.getTreeModel();if(ba.getLevel()<=ca)break;ba=N.getValue();Ca.select(ba.getValue(),x)}}c.updateUI(!0);A=!0;for(x=0;x<c.getRowsCount();x++)if(N=c.getRow(x),!N.isHide()&&(N=N.getCell(0).getValue(),!Ca.isSelected(N.getValue()))){A=
!1;break}E.setChecked(A);d()}});return w.getJqUi()};this.protectedAfterAutoSelectedBySearching=function(){d()};var d=function(){var c=0;for(var b=ea.getFilter().getSelectableItems(),q=0;q<b.length;q++)Ca.isSelected(b[q].getValue())&&c++;c=nb.get("selectedCount","(\u5df2\u9009\u62e9#1\u9879)").replace("#1",c);u.setText(c)},e=function(c,b){b&&(U=c.isChecked())}}function ua(){var ea,Ca,U,E,u,g;this.getJqUi=function(){if(!Ca){Ca=$("<div>");var e=U=new lb,c=e.addItem;u=new Na;u.setDateRange(ea.getFromDateMs(),
ea.getToDateMs());var b=u.getJqUi();c.call(e,"A",120,b,nb.get("dateFilterAbsolute","\u65e5\u671f\u8303\u56f4"));e=U;c=e.addItem;g=ea.getRelativePeriodModel();g||(g=new ib,g.setPeriod(ib.PERIOD_DAY),g.setWhichPeriod(0));b=$("<div>");var q=new $a;q.setContainsTime(!1);q.setModel(g);q.getJqUi().appendTo(b);hb.layoutCtrlWithLRTB(q.getJqUi(),0,0,null,0,0,null);c.call(e,"R",120,b,nb.get("dateFilterRelative","\u76f8\u5bf9\u65e5\u671f"));E=new Jb;E.setText(nb.get("dateFilterIncludeNull","\u5305\u542b\u7a7a\u503c"));
hb.layoutCtrlWithLRTB(U.getJqUi(),0,0,null,0,28,null);hb.layoutCtrlWithLRTB(E.getJqUi(),0,null,160,null,0,23);Ca.append(U.getJqUi());Ca.append(E.getJqUi());ea&&d()}return Ca};this.setModel=function(e){ea=e;Ca&&d()};this.acceptEditing=function(){if("A"==U.getSelected()){var e=u.getDateRange();ea.setFromDateMs(e[0]);ea.setToDateMs(e[1]);ea.setRelativePeriodModel(null)}else ea.setRelativePeriodModel(g);ea.setContainNull(E.isChecked());return ea};var d=function(){var e=ea.getRelativePeriodModel();U.setSelected(e?
"R":"A");E.setChecked(ea.isContainNull())}}function W(){fa.call(this);var ea=this.protectedMethod,Ca=W.MODE_AUTO_SELECT,U=!0;this.isAutoSelectMode=function(){return Ca==W.MODE_AUTO_SELECT};this.setAutoSelectDisabled=function(){Ca=W.MODE_SEARCH_ONLY;U=!1};this.protectedInitUi=function(u,g){var d=new tb;d.setItemModels([W.MODE_AUTO_SELECT,W.MODE_SEARCH_ONLY]);d.setSelected(Ca);d.setDropdownMinWidth(220);d.setCustomPainter(E);d.setEnabled(U);d.addSelectedChangedListener(function(b,q,t){Ca=t;ea.changeSearchMode()});
(new Gb).setText(nb.get("searcherTitle","\u641c\u7d22"));var e=ea.createAllSearchImpl();ea.changeSearchImpl(e[0],!1);var c=new tb;c.setItemModels(e);c.setSelected(e[0]);c.setCustomPainter(function(b,q,t){t&&q.text(t.getCaption())});c.addSelectedChangedListener(function(b,q,t){ea.changeSearchImpl(t,!0)});d=d.getJqUi();c=c.getJqUi();hb.layoutCtrlWithLRTB(d,0,null,80,0,null,23);hb.layoutCtrlWithLRTB(c,84,null,80,0,null,23);hb.layoutCtrlWithLRTB(g,168,0,null,0,null,23);u.append(d);u.append(c);u.append(g)};
var E=function(u,g,d){u=u?nb.get("searcherTitle","\u641c\u7d22"):d==W.MODE_AUTO_SELECT?nb.get("searcherModeAutoSelect","\u641c\u7d22\u7ed3\u679c\u81ea\u52a8\u9009\u4e2d"):nb.get("searcherModeSearching","\u4ec5\u641c\u7d22\uff0c\u4e0d\u5f71\u54cd\u9009\u4e2d\u72b6\u6001");var e=d==W.MODE_AUTO_SELECT?"icon_search_auto_select":"icon_search";d=$("<div>");d.appendTo(g);La.background(d,e);e=$("<div>");e.text(u);e.appendTo(g);hb.layoutCtrlMiddleAlign(d,16);hb.layoutCtrlWithLRTB(d,2,null,16);hb.layoutCtrlWithLRTB(e,
20,0,null,0,0,null)}}function fa(){var ea=this,Ca,U,E,u;this.setSearchingHandler=function(d){u=d};this.isSearching=function(){return U&&U.getText()?!0:!1};this.check=function(d){return!(U&&U.getText())||E.check(d.toLowerCase(),(U?U.getText():null).toLowerCase())};this.clear=function(){U&&U.clear()};this.getJqUi=function(){Ca||(Ca=$("<div>"),ea.protectedInitUi(Ca,g().getJqUi()));return Ca};this.protectedInitUi=function(d,e){throw Error("Implement");};var g=function(){U=new pa;U.setPlaceholder(nb.get("searcherTips",
"\u641c\u7d22\u5185\u5bb9"));U.addSearchListener(function(d){u()});U.setSearchListenerDelay(1E3);return U};this.protectedMethod={changeSearchMode:function(){u()},createAllSearchImpl:function(){return[new Va(!0),new Va(!1),new wa(!0),new wa(!1),new Ga(!0),new Ga(!1),new Oa(!0),new Oa(!1)]},changeSearchImpl:function(d,e){E=d;e&&u()}}}function Ea(ea){var Ca=this;this.getCaption=function(){return Ca.protectedGetCaption(!ea)};this.protectedGetCaption=function(U){throw Error("Override");};this.check=function(U,
E){U=Ca.protectedCheckImpl(U,E);return ea?U:!U};this.protectedCheckImpl=function(U,E){throw Error("Override");}}function Va(ea){Ea.call(this,ea);this.protectedGetCaption=function(Ca){return Ca?nb.get("searchNotInclude","\u4e0d\u5305\u542b"):nb.get("searchInclude","\u5305\u542b")};this.protectedCheckImpl=function(Ca,U){return 0<=Ca.indexOf(U)}}function Oa(ea){Ea.call(this,ea);this.protectedGetCaption=function(Ca){return Ca?nb.get("searchNotEqual","\u4e0d\u7b49\u4e8e"):nb.get("searchEqual","\u7b49\u4e8e")};
this.protectedCheckImpl=function(Ca,U){return Ca===U}}function wa(ea){Ea.call(this,ea);this.protectedGetCaption=function(Ca){return Ca?nb.get("searchNotStartOf","\u5f00\u5934\u4e0d\u662f"):nb.get("searchStartOf","\u5f00\u5934\u662f")};this.protectedCheckImpl=function(Ca,U){return 0==Ca.indexOf(U)}}function Ga(ea){Ea.call(this,ea);this.protectedGetCaption=function(Ca){return Ca?nb.get("searchNotEndOf","\u7ed3\u5c3e\u4e0d\u662f"):nb.get("searchEndOf","\u7ed3\u5c3e\u662f")};this.protectedCheckImpl=function(Ca,
U){var E=Ca.lastIndexOf(U);return 0<=E&&E==Ca.length-U.length}}"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.core&&(com.kingdee.bos.qing.core={});"undefined"==typeof com.kingdee.bos.qing.core.ui&&(com.kingdee.bos.qing.core.ui={});var Ia=com.kingdee.bos.qing.core.ui;Ia.AbstractPopupFilterPane=Ya;
Ia.AbstractTextSearcher=fa;Ia.AbstractSingleValueDiscreteSelector=pb;Ia.AbstractMultiValueDiscreteSelector=zb;var hb,ib,nb,bb,la,Jb,pa,Gb,Vb,tb,lb,Na,$a,La,ab,ma,ha,ta,ka,p,ra;(function(){var ea=com.kingdee.bos.qing.common;hb=ea.DomUtil;ib=ea.RelativePeriodModel;ea=com.kingdee.bos.qing.framework.common;nb=ea.MultilanguageManager.createPackageAccessor(Ia);ea=com.kingdee.bos.qing.ui.component;bb=ea.RegionSlider;la=ea.DynamicScroller;Jb=ea.CheckBox;pa=ea.SearchBox;Gb=ea.Label;Vb=ea.RadioButton;tb=ea.ComboBox;
ea=com.kingdee.bos.qing.common.ui;lb=ea.RadioButtonGroupWithTabbedPane;Na=ea.DateRangePanel;$a=ea.RelativePeriodPanel;ea=com.kingdee.bos.qing.core;La=ea.Icons;ea=com.kingdee.bos.qing.core.model;ab=ea.DiscreteFilter;ma=ea.ContinuousFilter;ha=ea.ContinuousDateFilter;ea=com.kingdee.bos.qing.core.controller;ta=ea.ActionChangeProperty;ka=ea.ActionChangeValueForDateFilter;p=ea.ActionChangeValueForContinuousFilter;ra=ea.ActionResetAllSelectedValueForDiscreteFilter})();Ya.create=function(ea){if(ea instanceof
ab)var Ca=ea.getAssociatedField().getMetaField().isParentChildDimension()?ea.isSingleValueMode()?new Ma:new Ja:ea.isSingleValueMode()?new Yb:new Mb;else if(ea instanceof ma)Ca=new wb;else if(ea instanceof ha)Ca=new Lb;else throw Error("Modify here.");Ca.setFilter(ea);return Ca};W.MODE_AUTO_SELECT=1;W.MODE_SEARCH_ONLY=2})();(function(){function Ya(){var Na=this,$a,La,ab,ma,ha,ta=!1;this.getIconName=function(){return $a};this.setIconName=function(ra){$a=ra};this.hookUiCreater=function(ra){La=ra};this.hookExitHandler=function(ra){ab=ra};this.hookDestroyHandler=function(ra){ma=ra};this.popup=function(ra,ea,Ca,U){ta||(ta=!0,!ha&&p(ra),ra=parseInt(ha.css("height")),U=U(ra),ha.css("display",""),fa.layoutCtrlWithLRTB(ha,ea,null,0,U,null,null),ha.animate({width:Ca},250))};this.hideWithAnimation=function(ra){ta&&(ta=!1,ra?ha.animate({width:0},
250,ka):ka())};this.maybeDestroy=function(){ma&&ma(ha)};var ka=function(){ha.css("display","none");ab&&ab()},p=function(ra){ha=$("<div>");ha.css("z-index",2);ha.addClass("sa-extrafilter-popup");var ea=$("<div>");Jb.background(ea,"icon_extra_close");ea.addClass("sa-extrafilter-popup-close");ea.on("click",function(Ca){Na.hideWithAnimation(!0)});ea.appendTo(ha);fa.layoutCtrlWithLRTB(ea,null,-2,12,-2,null,12);ea=La(ha);ha.css("height",ea);ha.appendTo(ra);return ea}}function Lb(){Ga.AbstractTabPane.call(this);
var Na=this,$a,La,ab,ma,ha=!1;this.getTabHeadText=function(){return $a.getAssociatedField().getText()};this.getJqUi=function(){La||(La=$("<div>"),La.addClass("sa-extrafilter-pane"));return La};this.into=function(){ma(Na.protectedCreatePopupTools());ab($a,function(ta){if(!ha||ta)$a.isStateValid()?Na.protectedRefreshUi():Na.getJqUi().text($a.getStateDisplay()),ha=!0})};this.protectedRefreshUi=function(){throw Error("Implement");};this.protectedCreatePopupTools=function(){return null};this.setFilter=
function(ta){$a=ta};this.setRequestPreparedValueListener=function(ta){ab=ta};this.setEnteredListener=function(ta){ma=ta};this.protectedMethod={getFilter:function(){return $a}}}function wb(){Lb.call(this);var Na=this,$a,La,ab,ma=function(U){!La&&ta();var E=La.getJqUi();fa.layoutCtrlWithLRTB(E,6,12,null,2,null,23);ab||(ab=new nb,ab.setText(Ea.get("showOnlySelected","\u4ec5\u663e\u793a\u9009\u4e2d\u9879")),ab.setChecked(!1),ab.addCheckedListener(ra));var u=ab.getJqUi();fa.layoutCtrlWithLRTB(u,6,12,null,
28,null,23);U.append(E);U.append(u);return 52},ha=function(U){!La&&ta();var E=La.getJqUi();fa.layoutCtrlWithLRTB(E,6,12,null,2,null,23);U.append(E);return 30},ta=function(){La=new function(){lb.call(this);var U=this.protectedMethod;this.protectedInitUi=function(E,u){var g=U.createAllSearchImpl();U.changeSearchImpl(g[0],!1);var d=new la;d.setItemModels(g);d.setSelected(g[0]);d.setCustomPainter(function(e,c,b){b&&c.text(b.getCaption())});d.addSelectedChangedListener(function(e,c,b){U.changeSearchImpl(b,
!0)});g=d.getJqUi();fa.layoutCtrlWithLRTB(g,0,null,80,0,null,23);fa.layoutCtrlWithLRTB(u,90,0,null,0,null,23);E.append(g);E.append(u)}};La.setSearchingHandler(p)},ka=function(){if(Ca()||ea())La&&La.clear(),ab&&ab.setChecked(!1),Na.protectedRefreshUi()},p=function(){Na.protectedSearch();Na.getJqUi().click()};this.protectedSearch=function(){throw Error("Implement");};var ra=function(U,E){E&&p()},ea=function(){return ab&&ab.isChecked()},Ca=function(){return La&&La.isSearching()};this.protectedMethod.getSearchingPopupTool=
function(U){$a||($a=new Ya,$a.setIconName("icon_extra_search"),$a.hookUiCreater(U?ma:ha),$a.hookExitHandler(ka));return $a};this.protectedMethod.isOnlyShowSelected=ea;this.protectedMethod.isSearching=Ca;this.protectedMethod.isSearchingMatched=function(U){return La.check(U)}}function eb(){wb.call(this);var Na=this,$a=this.protectedMethod,La,ab;this.protectedRefreshUi=function(){La=$a.getFilter().getSelectableItems();ma()};var ma=function(){var ha=Na.getJqUi(),ta=Math.max(120,.4*ha.prop("clientWidth"));
ab=[];var ka=$(document.createDocumentFragment());if(0<La.length){$a.isSearching()||Na.protectedBeforeCreateItems(ka);for(var p=0;p<La.length;p++){var ra=La[p],ea=$a.getFilter();var Ca=ra.getValue();ea=!ea.isFullValue()&&ea.isValueSelected(Ca);ra=ra.getDisplayText();var U=new wa;U.setUserObject(Ca);U.setText(ra);U.setTooltips(ra);U.setSelected(ea);ab.push(U);Ca=U;ea=Ca.getJqUi();fa.makeTextOmissible(ea);ea.addClass("sa-extrafilter-discretepane-button");ea.css("max-width",ta);ea.appendTo(ka);Na.protectedInitButton(Ca)}}else ta=
new hb,$a.isSearching()?ta.setText(Ea.get("nothingSearched","\u627e\u4e0d\u5230\u7b26\u5408\u7684\u7ed3\u679c")):ta.setText(Ea.get("nothingSelectable","\u6ca1\u6709\u53ef\u9009\u62e9\u7684\u5185\u5bb9")),ta.getJqUi().appendTo(ka),fa.layoutCtrlWithLRTB(ta.getJqUi(),8,8,null,8,null,20);ha.empty();ha.append(ka)};this.protectedBeforeCreateItems=function(ha){};this.protectedInitButton=function(ha){throw Error("Implement");};this.protectedCreatePopupTools=function(){return[$a.getSearchingPopupTool(!1)]};
this.protectedSearch=function(){La=$a.getFilter().getSelectableItems();$a.isSearching()&&(La=$.grep(La,function(ha){return $a.isSearchingMatched(ha.getDisplayText())}));ma()};this.protectedMethod.visitEachButton=function(ha){for(var ta=0;ta<ab.length;ta++)ha(ab[ta])}}function pb(){eb.call(this);var Na=this.protectedMethod;this.protectedInitButton=function(La){La.addActionListener($a)};var $a=function(La,ab){ab?(ab=La.getUserObject(),Na.getFilter().setSelectedValue(ab),Na.visitEachButton(function(ma){ma!=
La&&ma.isSelected()&&ma.setSelected(!1)})):La.setSelected(!0)}}function zb(){eb.call(this);var Na=this.protectedMethod,$a;this.protectedBeforeCreateItems=function(ab){$a=new wa;$a.setText(Ea.get("ignored","\uff08\u4e0d\u9650\uff09"));$a.setSelected(Na.getFilter().isFullValue());$a.addActionListener(function(ha,ta){ta?(Na.getFilter().setFullValue(!0),Na.visitEachButton(function(ka){ka.isSelected()&&ka.setSelected(!1)})):$a.setSelected(!0)});var ma=$a.getJqUi();ma.addClass("sa-extrafilter-discretepane-button");
ma.appendTo(ab)};this.protectedInitButton=function(ab){ab.addActionListener(La)};var La=function(ab,ma){ab=ab.getUserObject();var ha=Na.getFilter();ma?(ha.isFullValue()&&ha.setFullValue(!1),ha.addSelectedValue(ab)):ha.removeSelectedValue(ab);a:{ma=Na.getFilter();ab=ma.getSelectableItems();for(ha=0;ha<ab.length;ha++)if(ma.isValueSelected(ab[ha].getValue())){ma=!0;break a}ma=!1}ma?$a.setSelected(!1):($a.setSelected(!0),Na.getFilter().setFullValue(!0))}}function Yb(){function Na(ta){KTDefaultTreeHandlerRender.call(this,
ta);var ka=this.create;this.create=function(p,ra,ea,Ca,U,E,u){return ha()?[]:ka(p,ra,ea,Ca,U,E,u)}}function $a(ta){KTDefaultCellRender.call(this,ta);var ka=this;this.paintCellUI=function(p,ra){var ea=ka.getCell().getValue(),Ca=ka.getCurrentRowIdx();ea=La.protectedCreateItemUi(ta,ea,Ca,ha);ea.css("overflow","visible");ea.children().css("overflow","visible");p=$(p);p.css("overflow","visible");ra?(ra=$(ra),ra.css("overflow","visible"),ea.appendTo(ra),fa.layoutCtrlWithLRTB(ea,4,0,null,0,null,"100%")):
(ea.appendTo(p),fa.layoutCtrlWithLRTB(ea,0,0,null,0,null,"100%"))}}wb.call(this);var La=this,ab=this.protectedMethod,ma;this.protectedRefreshUi=function(){var ta=La.getJqUi();ta.empty();ma=new KTable;ma.setCellRender(new $a(ma));ma.setTreeHandlerRender(new Na(ma));ma.setSyncUIWhenModelChanged(!1);ma.setLargeDataMode(!0);ma.addColumn().setWidth(100);var ka=new KTStyle;ka.setVerticalAlign("middle");ma.setStyle(ka);ka=ab.getFilter().getSelectableItems();if(0!=ka.length)for(var p=0;p<ka.length;p++){var ra=
ka[p],ea=ma.addRow();ea.setHeight(21);ea=ea.getCell(0);ea.setValue(ra);ra=new KTCellTreeModel(ra.getLevel());ea.setTreeModel(ra)}ma.updateUI();ka=$(ma.getUI());fa.layoutCtrlWithLRTB(ka,6,0,null,2,2,null);ta.append(ka)};this.protectedSearch=function(){for(var ta=ab.getFilter(),ka=ha(),p=65535,ra=0;ra<ma.getRowsCount();ra++){var ea=ma.getRow(ra),Ca=ea.getCell(0),U=Ca.getTreeModel(),E=!0;U.getLevel()<=p&&(E=!1);Ca=Ca.getValue();Ca=ka?ab.isOnlyShowSelected()&&!ta.isValueSelected(Ca.getValue())||ab.isSearching()&&
!ab.isSearchingMatched(Ca.getDisplayText()):E;ea.setHide(Ca);E||(p=U.isExpanded()?65535:U.getLevel())}ma.updateUI(!0)};this.protectedCreateItemUi=function(ta,ka,p,ra){throw Error("Override");};var ha=function(){return ab.isOnlyShowSelected()||ab.isSearching()}}function Mb(){Yb.call(this);var Na=this.protectedMethod;this.protectedCreatePopupTools=function(){return[Na.getSearchingPopupTool(!0)]};this.protectedCreateItemUi=function($a,La,ab,ma){var ha=La.getValue();ab=Na.getFilter().isValueSelected(ha);
ma=new bb;ma.setText(La.getDisplayText());ma.setChecked(ab);ma.addCheckedListener(function(ta,ka){ka&&(Na.getFilter().setSelectedValue(ha),$a.updateUI(!0))});return ma.getJqUi()}}function S(){Yb.call(this);var Na=this.protectedMethod;this.protectedCreatePopupTools=function(){return[Na.getSearchingPopupTool(!0),$a()]};this.protectedCreateItemUi=function(La,ab,ma,ha){var ta=ab.getValue();ta=Na.getFilter().isValueSelected(ta);var ka=new nb;ka.setUserObject(ma);ka.setText(ab.getDisplayText());ka.setChecked(ta);
ka.addCheckedListener(function(p,ra){if(ra){ra=p.getUserObject();p=p.isChecked();var ea=La.getRow(ra).getCell(0),Ca=ea.getValue(),U=Ca.getValue();p?Na.getFilter().addSelectedValue(U):Na.getFilter().removeSelectedValue(U);if(Na.getFilter().isTreeSelectingIncludeSubs()&&!ha())for(Ca=ea.getTreeModel(),U=Ca.getLevel(),ra+=1;ra<La.getRowsCount();ra++){ea=La.getRow(ra).getCell(0);Ca=ea.getTreeModel();if(Ca.getLevel()<=U)break;Ca=ea.getValue();ea=Ca.getValue();p?Na.getFilter().addSelectedValue(ea):Na.getFilter().removeSelectedValue(ea)}La.updateUI(!0)}});
return ka.getJqUi()};var $a=function(){var La=new Ya;La.setIconName("icon_extra_setting");La.hookUiCreater(function(ab){var ma=Na.getFilter(),ha=Ea.get("treeIncludeSubs","\u9009\u62e9\u65f6\u5305\u542b\u4e0b\u7ea7\u8282\u70b9 \uff08\u4ec5\u9650#1\uff09");ha=ha.replace("#1",ma.getAssociatedField().getComplexText());var ta=new nb;ta.setText(ha);ta.setTooltips(ha);ta.setChecked(ma.isTreeSelectingIncludeSubs());ta.addCheckedListener(function(ka,p){p&&ma.setTreeSelectingIncludeSubs(ka.isChecked())});ha=
ta.getJqUi();fa.layoutCtrlWithLRTB(ha,8,20,null,4,null,23);ab.append(ha);return 30});La.hookDestroyHandler(function(ab){ab&&ab.remove()});return La}}function Ma(){Lb.call(this);var Na=this,$a=this.protectedMethod;this.protectedRefreshUi=function(){var ab=$a.getFilter(),ma=ab.getPreparedModel();if(ab.isJustShowAffected()){var ha=ma.getSelectedMin();var ta=ma.getSelectedMax();var ka=Math.min(ta,Math.max(ha,ab.getFloor()));var p=Math.min(ta,Math.max(ha,ab.getCeiling()))}else ha=ma.getMin(),ta=ma.getMax(),
ka=ab.getFloor(),p=ab.getCeiling();ma=new ib;ma.addValueChangedListener(La);ma.setFormatString(ab.getFormatString());ma.setLimited(ha,ta);ma.setValue(ka,p);ab=Na.getJqUi();ab.empty();ha=ab.prop("clientWidth");ha=parseInt(Math.min(.9*ha,Math.max(200,.4*ha)));ma=ma.getJqUi();ma.css({position:"relative",width:ha,height:60});ma.appendTo(ab)};var La=function(ab){ab=ab.getValue();$a.getFilter().setValue(ab[0],ab[1])}}function Ja(){Lb.call(this);var Na=this,$a=this.protectedMethod,La,ab;this.protectedRefreshUi=
function(){var E=$a.getFilter();La=new ua;La.setDateMs(E.getFromDateMs());La.setChangedListener(Ca);ab=new ua;ab.setDateMs(E.getToDateMs());ab.setChangedListener(Ca);E=new hb(Ea.get("dateFrom","\u4ece\uff1a"));var u=new hb(Ea.get("dateTo","\u5230\uff1a")),g=ma(Ea.get("currentDay","\u4eca\u5929"),ka),d=ma(Ea.get("currentWeek","\u672c\u5468"),p),e=ma(Ea.get("currentMonth","\u672c\u6708"),ra),c=ma(Ea.get("currentYear","\u672c\u5e74"),ea),b=Na.getJqUi();b.empty();ta(b,g,48,23);ta(b,d,48,23);ta(b,e,48,
23);ta(b,c,48,23);b.append(ha());ta(b,E,40,23);ta(b,La);b.append(ha());ta(b,u,40,23);ta(b,ab)};var ma=function(E,u){var g=new Oa;g.setText(E);g.addActionListener(u);return g},ha=function(){var E=$("<div>");E.css({clear:"left",position:"relative",height:1});return E},ta=function(E,u,g,d){u=u.getJqUi();u.css({"float":"left",position:"relative","margin-bottom":6});g&&u.css("width",g);d&&u.css("height",d);E.append(u)},ka=function(E){E=new Date;La.setDateMs(E.getTime());ab.setDateMs(E.getTime());U()},
p=function(E){var u=new Date;E=u.getTime();u=u.getDay();u=(0==u?7:u)-1;La.setDateMs(E-864E5*u);ab.setDateMs(E+864E5*(6-u));U()},ra=function(E){E=new Date;E.setDate(1);La.setDateMs(E.getTime());E.setFullYear(E.getFullYear(),E.getMonth()+1,0);ab.setDateMs(E.getTime());U()},ea=function(E){E=new Date;E.setFullYear(E.getFullYear(),0,1);La.setDateMs(E.getTime());E.setFullYear(E.getFullYear()+1,0,0);ab.setDateMs(E.getTime());U()},Ca=function(E){U()},U=function(){var E=La.getPureDate(),u=ab.getPureDate();
if(E.getTime()>u.getTime()){var g=E;E=u;u=g}u.setHours(23,59,59,999);E=E.getTime();u=u.getTime();g=$a.getFilter();g.setValue(E,u,g.getRelativePeriodModel(),g.isContainNull());g.setRelativePeriodModel(null)}}function ua(){var Na=this,$a=new Ia,La=new Ia,ab=new Ia,ma,ha;this.setDateMs=function(ra){ra=new Date(ra);$a.setValue(ra.getFullYear());La.setValue(ra.getMonth()+1);ab.setValue(ra.getDate());p()};this.getPureDate=function(){var ra=new Date;ra.setFullYear($a.getValue(),La.getValue()-1,ab.getValue());
ra.setHours(0,0,0,0);return ra};this.setChangedListener=function(ra){ha=ra};this.getJqUi=function(){if(!ma){$a.setConstraint(1900,2199,1);La.setConstraint(1,12,1);$a.addValueChangedListener(ka);La.addValueChangedListener(ka);ab.addValueChangedListener(ka);var ra=new hb(Ea.get("tinyDateYear","\u5e74")),ea=new hb(Ea.get("tinyDateMonth","\u6708")),Ca=new hb(Ea.get("tinyDateDay","\u65e5"));ma=$("<div>");ta($a,0,56);ta(ra,0);ta(La,6,42);ta(ea,0);ta(ab,6,42);ta(Ca,0)}return ma};var ta=function(ra,ea,Ca){ra=
ra.getJqUi();ra.css({"float":"left",position:"relative",height:23,"margin-left":ea});Ca&&ra.css("width",Ca);ma.append(ra)},ka=function(ra,ea,Ca,U){ra!=$a&&ra!=La||p();U!=Ia.CHANGED_BY_API&&ha&&ha(Na)},p=function(){var ra=$a.getValue(),ea=La.getValue(),Ca=ab.getValue();ra=2==ea?0==ra%4&&0!=ra%100||0==ra%400?29:28:4==ea||6==ea||9==ea||11==ea?30:31;ab.setConstraint(1,ra,1);Ca>ra&&ab.setValue(ra)}}"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.core&&(com.kingdee.bos.qing.core={});"undefined"==typeof com.kingdee.bos.qing.core.ui&&(com.kingdee.bos.qing.core.ui={});var W=com.kingdee.bos.qing.core.ui;W.ExtraFilter=function(){tb.call(this);var Na=this,$a=this.protectedMethod,La,ab,ma,ha,ta,ka,p;this.setContextApi=function(u,g,d){La=u;ab=g;ma=d};this.protectedInitJqUi=function(u,g,d){p=La();if(0<p.length){g=$a.getComfortableSize(u,
g);u=g[0];g=g[1];var e=parseInt(Math.max(.15*u,Math.min(.25*u,100)));for(var c=[],b=0;b<p.length;b++){var q=p[b];if(q instanceof pa)var t=q.getAssociatedField().getMetaField().isParentChildDimension()?q.isSingleValueMode()?new Mb:new S:q.isSingleValueMode()?new pb:new zb;else if(q instanceof Gb)t=new Ma;else if(q instanceof Vb)t=new Ja;else throw Error("Modify here.");t.setFilter(q);t.setRequestPreparedValueListener(Ca);t.setEnteredListener(U);c.push(t)}ha=new Ga;ha.setTabPanes(c);ha.setTabHeadItemHeight(30);
ha.setTabHeadWidth(e);e=ha.getJqUi();ta=$("<div>");fa.layoutCtrlWithLRTB(ta,0,120,null,0,0,null);c=new Oa;c.setText(Ea.get("extraOk","\u786e\u5b9a"));c.addActionListener(ra);c.getJqUi().addClass("sa-extrafilter-footer-okcancel-"+(Va.isModern()?"right":"left"));fa.layoutCtrlMiddleAlign(c.getJqUi(),22);b=new Oa;b.setText(Ea.get("extraCancel","\u53d6\u6d88"));b.addActionListener(ea);b.getJqUi().addClass("sa-extrafilter-footer-okcancel-"+(Va.isModern()?"left":"right"));fa.layoutCtrlMiddleAlign(b.getJqUi(),
22);t=$("<div>");t.addClass("sa-extrafilter-footer");t.append(ta);t.append(c.getJqUi());t.append(b.getJqUi());d.append(e);d.append(t);fa.layoutCtrlWithLRTB(e,0,0,null,0,30,null);fa.layoutCtrlWithLRTB(t,0,0,null,null,0,30)}else u=Math.min(160,parseInt(.9*u)),g=Math.min(60,parseInt(.9*g)),$a.createPromptLabel(Ea.get("extraNoFilters","\u672a\u8bbe\u7f6e\u7b5b\u9009\u5668")).appendTo(d),$a.initManualClosable(d);fa.layoutCtrlWithLRTB(d,null,4,u,4,null,g)};this.protectedAfterSlidedDown=function(){ha&&ha.refreshUi()};
var ra=function(u){ma(p);Na.hide()},ea=function(u){Na.hide()},Ca=function(u,g){u.getPreparedModel()?g(!1):ab(p,u,function(d){d&&g(!0)},ha.getJqUi().parent())},U=function(u){if(ka)for(var g=0;g<ka.length;g++){var d=ka[g];d.hideWithAnimation(!1);d.maybeDestroy()}ta.empty();if(!(160>$a.getJqModalLayer().prop("clientWidth")||80>$a.getJqModalLayer().prop("clientHeight"))&&(ka=u))for(g=0;g<ka.length;g++)d=ka[g],u=$("<div>"),u.addClass("sa-extrafilter-footer-tool"),u.on("click",E(d)),Jb.background(u,d.getIconName()),
ta.append(u)},E=function(u){return function(g){var d=ta.parent();g=d.prop("clientWidth");g=Math.min(400,g);var e=[0,0];e=fa.upwardCoordinate(d[0],e,$a.getJqModalLayer()[0]);d=e[0]-4;var c=e[1]+4;u.popup($a.getJqModalLayer(),d,g,function(b){var q=$a.getJqModalLayer().prop("clientHeight")-2;c+b>q&&(c=q-b);return c})}}};var fa,Ea,Va,Oa,wa,Ga,Ia,hb,ib,nb,bb,la,Jb,pa,Gb,Vb,tb,lb=W.AbstractTextSearcher;(function(){var Na=com.kingdee.bos.qing.common;fa=Na.DomUtil;Na=com.kingdee.bos.qing.framework.common;
Ea=Na.MultilanguageManager.createPackageAccessor(W);Na=com.kingdee.bos.qing.ui.component;Va=Na.SkinUiContext;Oa=Na.WorkButton;wa=Na.ToggleButton;Ga=Na.LeftTabContainer;Ia=Na.Spinner;hb=Na.Label;ib=Na.RegionSlider;nb=Na.CheckBox;bb=Na.RadioButton;la=Na.ComboBox;Na=com.kingdee.bos.qing.core;Jb=Na.Icons;Na=com.kingdee.bos.qing.core.model;pa=Na.DiscreteFilter;Gb=Na.ContinuousFilter;Vb=Na.ContinuousDateFilter;Na=com.kingdee.bos.qing.core.commonui;tb=Na.AbstractCoveredSlideDownUi})()})();(function(){function Ya(){var U=this,E=Ya.TYPE_LongPainting,u={};this.setSupportedType=function(d){E=d};this.setTypeMode=function(d,e){u[d]=e};this.isTypeSupported=function(d){return(E&d)==d};var g=function(d){var e=u[d];return U.isTypeSupported(d)?e?e:Ya.MODE_1:0};this.isAtLeastOne=function(d){return(g(d)&Ya.MASK_AtLeastOne)==Ya.MASK_AtLeastOne};this.isMulti=function(d){return(g(d)&Ya.MASK_Multi)==Ya.MASK_Multi}}function Lb(){var U=!1,E=!1,u=!1;this.setError=function(g){U=g};this.isError=function(){return U};
this.setUnmatchedType=function(g){u=g};this.isUnmatchedType=function(){return u};this.setTooModern=function(g){E=g};this.isTooModern=function(){return E}}function wb(U,E){function u(d){var e,c,b,q,t;(function(){e=$("<div>");e.addClass("sa-ctrl-common-modallayer");e.appendTo($(document.body));e.on("click",function(A){w()});c=$("<div>");c.addClass("sa-toolbar-dropdown-area");c.appendTo(e);c.css("max-height",Math.floor(e.prop("clientHeight")-c.prop("offsetTop")-30));b=$("<div>");b.addClass("sa-toolbar-dropdown-container");
b.appendTo(c);q=$("<div>");q.addClass("sa-toolbar-dropdown-collapse");q.appendTo(c);var x=$("<div>");x.text("<<");x.addClass("sa-toolbar-dropdown-collapse-text");x.appendTo(q)})();this.getJqContainer=function(){return b};this.animateHeight=function(x,A){0===x?w():(x+=q.prop("offsetHeight"),c&&c.animate({height:x},{duration:100,queue:!1,complete:function(){A&&A()}}))};this.setCollapseListener=function(x){t=x};var w=function(){c&&(c.animate({height:0},function(){e.remove()}),c=null,t&&t())}}var g=!1;
this.setCurrentName=function(d){E.setCurrentName(d)};this.showShortPrompt=function(d,e,c){E.showShortPrompt(d,e,c)};this.setProductInfoJqUi=function(d){E.setProductInfoJqUi(d)};this.setDirtyListener=function(d){E.hookDirtyListener(d)};this.clearDirty=function(){E.setDirty(!1)};this.isDirty=function(){return E.isDirty()};this.hideBriefOutput=function(){g=!0};this.isBriefOutputHid=function(){return g};this.insertToolbarButton=function(d,e,c,b){return U.addButtonForHeadCustom(d,e,c,b)};this.appendToolbarButton=
function(d,e,c,b){return U.addButtonForTailCustom(d,e,c,b)};this.insertToolbarSeperator=function(){U.addSeperatorForHeadCustom()};this.insertToolbarMenu=function(d,e,c,b){return U.addMenuButtonForHeadCustom(function(){return d},e,c,b)};this.appendToolbarMenu=function(d,e,c,b){return U.addMenuButtonForTailCustom(function(){return d},e,c,b)};this.popupWarningRuleEditor=function(d){E.popupToEditWarningRule(d)};this.popupWarningRuleSelector=function(d,e,c){E.popupToSelectWarningRule(d,e,c)};this.checkWarningRuleExist=
function(d){return E.checkWarningRuleExist(d)};this.showModalUi=function(d){return new u(d.getJqUi())};this.setConsumingStatisticsDisplayer=function(d){E.setConsumingStatisticsDisplayer(d)}}function eb(){var U=$("<div>"),E=[],u;this.getJqUi=function(){return U};this.setTabChangedListener=function(d){u=d};this.addTab=function(d,e){E.push(d);var c=d.getJqUi();ua.layoutCtrlWithLRTB(c,0,0,null,0,22,null);c.appendTo(U);c=$("<div>");c.addClass("sa-viewtab-head");c.text(e);c.css({"text-align":"center","line-height":"20px",
border:"1px solid #bbb","border-top":"0px","border-bottom-left-radius":"5px","border-bottom-right-radius":"5px"});ua.layoutCtrlWithLRTB(c,80*(E.length-1)+18,null,79,null,2,20);c.appendTo(U);c.data("myModel",d);c.on("click",function(b){g($(b.currentTarget))});g(c)};this.getTabCount=function(){return E.length};this.getView=function(d){return E[d]};this.getCurrentView=function(){if(1==E.length)return E[0];for(var d=0;d<E.length;d++){var e=E[d];if("none"!=e.getJqUi().css("display"))return e}throw Error("Sth must be wrong.");
};this.forEach=function(d){for(var e=0;e<E.length&&!d(E[e]);e++);};this.hideTabHead=function(){if(1!=E.length)throw Error("Wrong opportunity.");U.find(".sa-viewtab-head").css("display","none");var d=E[0],e=d.getJqUi();ua.layoutCtrlWithLRTB(e,0,0,null,0,0,null);d.resize()};var g=function(d){for(var e=U.find(".sa-viewtab-head"),c=0;c<e.length;c++){var b=$(e[c]),q=b.data("myModel");b[0]==d[0]?(b.css("cursor","default"),b.css("background",""),q.getJqUi().css("display",""),q.resize(),u&&u(q)):(b.css("cursor",
"pointer"),b.css("background","#ddd"),q.getJqUi().css("display","none"))}}}function pb(){var U=new Va,E,u=$("<div>"),g=$("<div>"),d=$("<div>"),e=$("<div>"),c=$("<div>");this.getJqUi=function(){E||(E=U.getJqUi(),E.addClass("sa-toolbar"),b(u),b(g),b(d),b(e),b(c));return E};this.refresh=function(){U.refresh()};this.addSeperator=function(){U.appendSeperator(d)};this.addSeperatorForHeadCustom=function(){U.appendSeperator(g)};this.addSeperatorForView=function(t){U.appendSeperator(t)};this.addButtonForViewTab=
function(t,w,x,A){t=q(u,!1,t,w,x,A);U.appendSeperator(u);return t};this.addButton=function(t,w,x,A){return q(d,!1,t,w,x,A)};this.addButtonForHeadCustom=function(t,w,x,A){return q(g,!1,t,w,x,A)};this.addButtonForTailCustom=function(t,w,x,A){return q(c,!1,t,w,x,A)};this.addButtonForView=function(t,w,x,A,N){return q(t,!1,w,x,A,N)};this.addMenuButton=function(t,w,x,A){return q(d,!0,t,w,x,A)};this.addMenuButtonForHeadCustom=function(t,w,x,A){return q(g,!0,t,w,x,A)};this.addMenuButtonForTailCustom=function(t,
w,x,A){return q(c,!0,t,w,x,A)};this.addMenuButtonForView=function(t,w,x,A,N){return q(t,!0,w,x,A,N)};this.updateIndividualPart=function(t){e.children().detach();e.append(t)};var b=function(t){t.css({"float":"left",position:"relative",height:"100%"});t.appendTo(E)},q=function(t,w,x,A,N,ba){t=U.createButton(t,w,x,N,ba);t.setIconSetter(function(ca,M){la.background(ca,M)});t.setIconName(A);return t}}function zb(){var U,E,u,g,d,e,c,b,q;this.getJqUi=function(){U||t();return U};var t=function(){U=$("<div>");
U.addClass("sa-statusbar");U.on("contextmenu",function(w){w.ctrlKey&&(w.preventDefault(),q())});E=$("<span>");E.addClass("sa-statusbar-name");E.appendTo(U);u=$("<span>");u.addClass("sa-statusbar-dirtystate");u.appendTo(U);g=$("<span>");g.addClass("sa-statusbar-prompt");g.appendTo(U);d=$("<span>");d.addClass("sa-statusbar-prompt");d.appendTo(U);e=$("<div>");ua.layoutCtrlWithLRTB(e,null,0,200,0,0,null);e.appendTo(U)};this.setCurrentName=function(w){E.text(w)};this.setDirtyPromptVisible=function(w){u.css("display",
w?"":"none")};this.showDirtyState=function(w){u.text(w?"*":"")};this.showShortPrompt=function(w,x,A){clearTimeout(c);g.text(w);g.css("color",A?A:"");if(x){var N=0,ba=function(){if(5<N)g.text("");else{if(0==N%2){g.text(w);var ca=650}else g.text(""),ca=350;c=setTimeout(ba,ca);N++}};ba()}else c=setTimeout(function(){g.text("")},5E3)};this.showSecondaryShortPrompt=function(w){clearTimeout(b);d.text(w);b=setTimeout(function(){d.text("")},5E3)};this.setProductInfoJqUi=function(w){e.append(w)};this.setConsumingStatisticsDisplayer=
function(w){q=w}}function Yb(){function U(){var Da,Y=!0;this.setLevel=function(z){Da=z};this.getLevel=function(){return Da};this.isExpandable=function(){throw Error("Override me.");};this.isAlwaysHide=function(){throw Error("Override me.");};this.isEquals=function(z){throw Error("Override me.");};this.setSearchingVisible=function(z){Y=z};this.protectedMethod={isSearchingVisible:function(){return Y}}}function E(Da){U.call(this);var Y=this.protectedMethod;this.isExpandable=function(){return!1};this.isAlwaysHide=
function(){return Da.isHide()||!Y.isSearchingVisible()};this.getMetaField=function(){return Da};this.isEquals=function(z){return z instanceof E?Da.getFullName()==z.getMetaField().getFullName():!1}}function u(){U.call(this);var Da=this.protectedMethod,Y=!1;this.isExpandable=function(){return!0};this.isAlwaysHide=function(){return!Da.isSearchingVisible()};this.isExpanded=function(){return Y};this.setExpanded=function(z){Y=z}}function g(Da){u.call(this);var Y,z;this.getModel=function(){return Da};this.setBelongsTo=
function(D,I){Y=D;z=I};this.getBelongsToMetaTable=function(){return Y};this.getBelongsToSubView=function(){return z};this.isEquals=function(D){return D instanceof g&&Da.getName()==D.getModel().getName()&&Y.getName()==D.getBelongsToMetaTable().getName()?(D=D.getBelongsToSubView(),z?D&&z.getName()==D.getName():!D):!1}}function d(Da){u.call(this);var Y;this.getParentChildDimension=function(){return Da};this.setDefaultMetaField=function(z){Y=z};this.getDefaultMetaField=function(){return Y};this.isEquals=
function(z){return z instanceof d?Da.getName()==z.getParentChildDimension().getName():!1}}function e(Da){u.call(this);var Y=null;this.getMetaTable=function(){return Da};this.setSubView=function(z){Y=z};this.getSubView=function(){return Y};this.isSubViewNode=function(){return Y?!0:!1};this.getDrawingDisplayName=function(){return Y?Y.getDisplayName():Da.getDisplayName()};this.isDrawingAsElasticField=function(){return Y&&"ElasticField"==Y.getDisplayAs()};this.isEquals=function(z){return z instanceof
e&&Da.getName()==z.getMetaTable().getName()?(z=z.getSubView(),Y?z&&Y.getName()==z.getName():!z):!1}}var c=this,b,q,t,w,x=0,A=-1;(function(){b=new Ia;b.setBorderVisible(!1);b.setCustomItemPainter(function(Da,Y){Da.data(Yb.ITEM_MODEL,Y);Da.addClass("sa-metapane-item");if(Y instanceof e){var z=sa(Y);Da.css("font-weight","bold");var D=Y.isDrawingAsElasticField()?"meta_elastic":w;D=Wa(Da,!0,D,Y.getDrawingDisplayName());xb(D,Y);D=!t&&!Y.isSubViewNode();(!z||Y.isAlwaysHide()||D)&&Da.css("display","none")}else if(Y instanceof
E){sa(Y)&&!Y.isAlwaysHide()||Da.css("display","none");Y=Y.getMetaField();if(Y.isPreAgg())z="meta_preagg";else switch(Y.getDataType()){case Na.DT_STRING:z="meta_string";break;case Na.DT_NUMBER:z="meta_number";break;case Na.DT_DATE:z="meta_date";break;default:throw Error("Unknown data type.");}D=Y.isUserCreated();var I=Wa(Da,D,z,Y.getDisplayName());D=I[0];z=I[1];I=I[2];Y.isUserCreated()&&(D.text("="),D.addClass("sa-metapane-item-header_calculating"));Y.isInvalid()&&(D=bb.createWarning(),D.addClass("sa-metapane-item-img_usercreated_error"),
D.appendTo(z),I.addClass("sa-metapane-item-text_error"),Da.attr("title",fa.get("calculatedFieldInvalid","\u8ba1\u7b97\u5b57\u6bb5#1\u65e0\u6548").replace("#1",Y.getComplexText())))}else if(Y instanceof d)z=sa(Y),D=Y.getParentChildDimension(),D=Wa(Da,!0,"meta_tree1",D.getAlias()),xb(D,Y),z&&!Y.isAlwaysHide()||Da.css("display","none");else if(Y instanceof g)z=sa(Y),D=Wa(Da,!0,"meta_folder",Y.getModel().getDisplayName()),xb(D,Y),z&&!Y.isAlwaysHide()||Da.css("display","none");else throw Error("Modify here.");
Da.css("margin-left",20*(x+(t?0:-1)))});b.setCustomSelectedsPainter(function(Da,Y){for(var z=0;z<Da.length;z++){var D=Da[z];mb(D,!1)}for(z=0;z<Y.length;z++)D=Y[z],mb(D,!0)})})();this.getJqUi=function(){return b.getJqUi()};this.addPressedListener=function(Da){b.addPressedListener(Da)};this.addDoubleClickListener=function(Da){b.addDBLClickListener(Da)};this.setMultiSelectable=function(Da){b.setMultiSelectable(Da)};this.requestSelectedVisible=function(){setTimeout(function(){b.scrollSelectedToVisible()},
0)};this.clearSelecteds=function(){b.setSelecteds([])};this.setSelectedMetaField=function(Da,Y){for(var z=0;z<q.length;z++){var D=q[z],I=c.getMetaFieldFromItemModel(D);if(I&&(Y?I.getFullName()==Da:I==Da)){b.setSelecteds([D]);return}}b.setSelecteds([])};this.getSelectedMetaFields=function(Da){for(var Y={},z=[],D=b.getSelecteds(),I=0;I<D.length;I++){var P=c.getMetaFieldFromItemModel(D[I]);P?Y[P.getFullName()]||(z.push(P),Y[P.getFullName()]=!0):Da&&z.push(null)}return z};this.getSelectedLeafMetaField=
function(){var Da=b.getSelecteds()[0];return Da instanceof E?Da.getMetaField():null};this.getOnlyOneSelectedMetaTable=function(Da,Y){for(var z=null,D=null,I=b.getSelecteds(),P=0;P<I.length;P++){var O=I[P];if(O instanceof e){var R=O.getMetaTable();if(Da){var Z=O.getSubView();Da[0]=Z?Z.getName():null}D=O}else O instanceof g?(R=O.getBelongsToMetaTable(),Da&&(Z=O.getBelongsToSubView(),Da[0]=Z?Z.getName():null,Da[1]=O.getModel().getName()),D=O):(Z=c.getMetaFieldFromItemModel(O),R=Z.getTable(),Da&&(O=[],
Z=R.searchSubViewContainsField(Z,O),O=O[0],Da[0]=Z?Z.getName():null,Da[1]=O?O.getName():null));if(z){if(z!=R)return null}else z=R}Y&&D&&D.setExpanded(!0);return z};this.getMetaFieldFromItemModel=function(Da){if(Da instanceof E)return Da.getMetaField();if(Da instanceof d)return Da.getDefaultMetaField();if(Da instanceof e||Da instanceof g)return null;throw Error("Modify here when new type appended.");};this.setMetaModel=function(Da){t=Da.isMultiTableMode();w=Da.isMdOfSrcMode()?"meta_table-md":Da.isPreaggOfSrcMode()?
"meta_table-preagg":"meta_table";for(var Y=ba(),z=[],D=0;D<Da.getTableCount();D++){var I=Da.getTable(D),P=Da.getTableTreeLevel(I),O=z.concat,R=Y,Z=[],G=new e(I);G.setLevel(P);G.setExpanded(R(G,!0));Z.push(G);G=I.getSubViews();var J=I.getViewItems();if(J||G){var ja=I;for(var Q={},T=0;T<ja.getFieldCount();T++){var za=ja.getField(T);Q[za.getPureName()]=za}ja=Q;M(Z,J,P+1,I,null,ja,R);ca(Z,G,P+1,I,ja,R)}else for(G=0;G<I.getFieldCount();G++)J=I.getField(G),ia(J,Z,P+1,R);z=O.call(z,Z)}b.setItemModels(z,
N);q=z};this.getVisibleItemsCount=function(){return b.getJqUi().find(".sa-metapane-item:visible").length};var N=function(Da,Y){return Da.isEquals(Y)},ba=function(){for(var Da=q?q.slice():[],Y=Da.length-1;0<=Y;Y--)Da[Y].isExpandable()||Da.splice(Y,1);return function(z,D){for(var I=0;I<Da.length;I++){var P=Da[I];if(P.isEquals(z))return Da.splice(I,1),P.isExpanded()}return D}},ca=function(Da,Y,z,D,I,P){if(Y)for(var O=0;O<Y.length;O++){var R=Y[O],Z=new e(D);Z.setLevel(z);Z.setSubView(R);Z.setExpanded(P(Z,
!0));Da.push(Z);Z=R.getViewItems();M(Da,Z,z+1,D,R,I,P);R=R.getSubViews();ca(Da,R,z+1,D,I,P)}},M=function(Da,Y,z,D,I,P,O){if(Y)for(var R=0;R<Y.length;R++){var Z=Y[R];if("string"==typeof Z){var G=Z;G=P[G];ia(G,Da,z,O)}else{var J=new g(Z);J.setLevel(z);J.setBelongsTo(D,I);J.setExpanded(O(J,!1));Da.push(J);Z=Z.getFieldNames();for(J=0;J<Z.length;J++)G=Z[J],G=P[G],ia(G,Da,z+1,O)}}},ia=function(Da,Y,z,D){if(Da)if(Da.getGroupName()){for(var I=Da.getGroupName(),P=null,O=0;O<Y.length;O++){var R=Y[O];if(P){if(!(R instanceof
E&&R.getMetaField().getGroupName()==I)){P.getParentChildDimension().getDisplayFieldName()==Da.getPureName()&&P.setDefaultMetaField(Da);R=new E(Da);R.setLevel(z+1);Y.splice(O-1,0,R);Da=null;break}}else if(R instanceof d){var Z=R.getParentChildDimension();I==Z.getName()&&(P=R)}}P&&Da?(P.getParentChildDimension().getDisplayFieldName()==Da.getPureName()&&P.setDefaultMetaField(Da),R=new E(Da),R.setLevel(z+1),Y.push(R)):P||(Z=Da.getTable().getParentChildDimensionByName(I),null!=Z&&(R=new d(Z),R.setLevel(z),
R.setDefaultMetaField(Da),R.setExpanded(D(R,!1)),Y.push(R)),R=new E(Da),R.setLevel(z+1),Y.push(R))}else D=new E(Da),D.setLevel(z),Y.push(D)},sa=function(Da){x=Da.getLevel();if(0<=A&&x>A)var Y=!1;else Y=!0,Da.isExpandable()&&(A=Da.isExpanded()?-1:x);return Y},mb=function(Da,Y){Da=Da.find(".sa-metapane-item-img");var z=Da.data("myIconName");la.background(Da,z+(Y?"_selected":""))},Wa=function(Da,Y,z,D){var I=null;Y&&(I=$("<div>"),I.addClass("sa-metapane-item-header"),I.appendTo(Da));Y=$("<div>");Y.addClass("sa-metapane-item-img");
Y.data("myIconName",z);Y.appendTo(Da);mb(Da,!1);z=$("<div>");z.addClass("sa-metapane-item-text");z.text(D);z.appendTo(Da);return[I,Y,z]},xb=function(Da,Y){Da=Da[0];Da.css("cursor","pointer");var z=$("<div>");z.text("\u25b2");z.addClass("sa-metapane-item-header-expand");z.appendTo(Da);gb(z,Y.isExpanded());Da.on("click",fb(Y,z))},gb=function(Da,Y){Da.removeClass(Y?"sa-metapane-item-header-expand_able":"sa-metapane-item-header-expand_ed");Da.addClass(Y?"sa-metapane-item-header-expand_ed":"sa-metapane-item-header-expand_able")},
fb=function(Da,Y){return function(z){z=Da.isExpanded();z=!z;Da.setExpanded(z);gb(Y,z);for(var D=32767,I,P=!1,O=b.getJqUi().find(".sa-metapane-item"),R=0;R<O.length;R++){var Z=$(O[R]),G=Z.data(Yb.ITEM_MODEL);if(P){if(G.getLevel()<=Da.getLevel())break;z?(G.getLevel()>D?I=!1:(I=!0,D=G.isExpandable()&&!G.isExpanded()?G.getLevel():32767),Z.css("display",!I||G.isAlwaysHide()?"none":"")):Z.css("display","none")}else G==Da&&(P=!0)}}};this.protectedMethod={getListCtrl:function(){return b},repaintListCtrl:function(Da){Da(q);
b.setItemModels(q,N)}}}function Mb(){Yb.call(this);var U=this,E=this.protectedMethod,u,g,d=!0,e,c=!1;this.getJqUi=function(){u||(u=$("<div>"),u.append(E.getListCtrl().getJqUi()),u.append(q().getJqUi()),b());return u};this.setSearchBoxVisible=function(w){d=w;u&&b()};this.clearSearching=function(){c&&(q().clear(),c=!1,t(""))};this.requestFocusAtSearchBox=function(){setTimeout(function(){q().setFoucs()},0)};this.setSearchBoxHideRequester=function(w){q().setAlwaysShowCleanIcon(!0);q().addCloseListener(function(x){w()})};
var b=function(){var w=q().getJqUi(),x=E.getListCtrl().getJqUi();d?(w.css("display","block"),ua.layoutCtrlWithLRTB(w,0,0,null,0,null,23),ua.layoutCtrlWithLRTB(x,0,0,null,23,0,null)):(w.css("display","none"),ua.layoutCtrlWithLRTB(x,0,0,null,0,0,null))},q=function(){e||(e=new hb,e.setPlaceholder(fa.get("fieldSearchPlaceholder","\u641c\u7d22")),e.addSearchListener(function(w){w=$.trim(w.getText());(c=(w=w.toLowerCase())?!0:!1)&&U.clearSelecteds();t(w)}),e.setSearchListenerDelay(1E3));return e},t=function(w){E.repaintListCtrl(function(x){for(var A=
!1,N=-1,ba=[],ca=x.length-1;0<=ca;ca--){var M=x[ca];if(M.getLevel()>=N)for(var ia=N+1;ia<=M.getLevel();ia++)ba[ia]=!1;N=M.getLevel();if(M.isExpandable()){if(ia=ba[N+1],M.setSearchingVisible(ia),c&&ia)for(M.setExpanded(!0),ia=N;0<ia;ia--)ba[ia]=!0}else ia=M.getMetaField(),ia.isHide()||(ia=c?0<=ia.getDisplayName().toLowerCase().indexOf(w):!0,M.setSearchingVisible(ia),ba[N]=ba[N]||ia,A=A||ia)}A?(g&&g.remove(),g=null):g||(x=new ib,x.setText(fa.get("fieldNothingSearched","\u627e\u4e0d\u5230\u7b26\u5408\u7684\u7ed3\u679c")),
x.setEnabled(!1),x.setAlign(ib.ALIGN_CENTER),g=x.getJqUi(),g.appendTo(u),ua.layoutCtrlWithLRTB(g,0,0,null,30,null,20),g.css({"z-index":999}))})}}function S(){var U=this,E=$("<div>"),u=[],g=0;this.getJqUi=function(){return E};this.addChild=function(e){e.setRequestRelayoutListener(function(){clearTimeout(g);g=setTimeout(function(){U.relayout()},20)});u.push(e);E.append(e.getJqUi())};this.getChildCount=function(){return u.length};this.getChild=function(e){return u[e]};this.childLeaveHome=function(e){u.splice(e,
1)};this.clear=function(e){for(var c=u.length-1;0<=c;c--){var b=u[c];if(!e||b instanceof e)b.setRequestRelayoutListener(null),b.destroy(),b.getJqUi().remove(),u.splice(c,1)}};this.relayout=function(){var e=E.prop("clientHeight"),c=e;e=S.GAP;for(var b=Math,q=b.max,t=0,w=0;w<u.length;w++)u[w].isVisible()&&t++;e=c-e*q.call(b,0,t-1);if(!(0>=e)){c=[];for(q=b=0;q<u.length;q++){var x=u[q];t=x.isVisible()?x.getPerfectHeight():0;w={};w.index=q;w.min=x.isVisible()?x.getMinHeight():0;w.perfect=t;w.value=t;b+=
t;for(x=0;x<c.length&&!(t<c[x].perfect);x++);c.splice(x,0,w)}for(e=b-e;0<e&&0<c.length;){b=c.pop();q=b.value;t=b.min;w=-1;for(x=0;x<c.length;x++){var A=c[x];w=x;if(A.value==q){w=x-1;break}}if(0<=w){if(x=c[w].value,A=c.length-w,1<A){var N=q-x;A*N>e&&(N=Math.floor(e/A),x=q-N)}}else N=Math.ceil(e/(c.length+1)),x=q-N;x=Math.max(t,x);N=Math.min(q-x,e);x=q-N;b.value=x;e-=N;x==t?d(b):c.splice(0<=w?w:0,0,b)}for(e=0;e<c.length;e++)d(c[e]);for(e=c=0;e<u.length;e++)b=u[e],q=b.getJqUi(),b.isVisible()?(t=q.height(),
q.css("display",""),q.css("position","absolute"),q.css("left",0),q.css("right",0),q.css("top",c),c+=t+S.GAP):q.css("display","none"),b.afterRelayout()}};var d=function(e){u[e.index].getJqUi().css("height",e.value)}}function Ma(){nb.call(this);var U=this,E=this.protectedMethod,u=new tb,g=!0;this.init=function(e,c,b){c=c.clone();for(var q={},t=c.getFieldCount()-1;0<=t;t--){var w=c.getField(t);w.isHide()||w.isUserCreated()?c.removeField(t):q[w.getFullName()]=w}w=$(document.body);t=w.prop("clientWidth");
w=w.prop("clientHeight");var x=Math.min(1,Math.max(.8,1.16-2E-4*t));t=parseInt(x*t);w=parseInt(x*w);U.setSize(t,w);E.setTitle(e);E.setSelectable(!0);E.getDialogCtrl().setFullScreenEnabled();E.getDialogCtrl().setResizeEnabled();E.getDialogCtrl().addResizeListener(function(){u.resize()});E.setFooterPaneCreator(null);E.setContentPaneCreator(function(){return u.getJqUi()});E.setClosingAction(function(A){});u.setupColumns(c.getFieldCount(),function(A){return c.getField(A)});u.updateColumnsVisible(function(A){return!0},
function(A){return q[A].getDisplayName()},!0);u.setLoader(function(A,N){b(d).getMetaTableDetailRowData(c,A,N)});u.loadRows()};var d=function(e){if(g){u.setTotalRowsCount(e.totalRows);var c=u.appendRows}else c=u.lazyAppendRows;g=!1;var b=e.rows;c(b.length,function(q,t){return b[q][t]})}}"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.core&&(com.kingdee.bos.qing.core={});"undefined"==typeof com.kingdee.bos.qing.core.ui&&(com.kingdee.bos.qing.core.ui={});var Ja=com.kingdee.bos.qing.core.ui;Ja.ViewConfig=Ya;Ja.Main=function(){var U,E,u,g,d,e=new pb,c=new zb,b,q,t=new La,w,x,A,N=!1,ba,ca=new function(){this.createFacade=function(G,J,ja){var Q=new Jb(w,G,function(T,za,da){return J&&J(T,za,da)||b.getCurrentView().sharedErrorHandler(Q,T,za,da)?!0:!1},ja);return Q};this.getTopJqUi=function(){return d};this.getCommandManager=
function(){return t};this.getMeta=function(){return g};this.isAnyCalculatedFieldUsed=function(G){var J=!1;b.forEach(function(ja){return J=J||ja.isAnyCalculatedFieldUsed(G)});return J};this.showStatusBarPrompt=function(G){c.showSecondaryShortPrompt(G)};this.getDesignerOperationJudger=function(G){var J=U?U[G]:null;if(!J){if(G==Ya.TYPE_LongPainting)J=new Gb;else if(G==Ya.TYPE_Square)J=new Vb;else throw Error("Modify here.");!U&&(U={});U[G]=J}return J}};this.setDesignerOperationJudger=function(G,J){U=
{};U[Ya.TYPE_LongPainting]=G;U[Ya.TYPE_Square]=J};this.setViewIntegration=function(G){E=G};this.setViewConfig=function(G){q=G};this.setRemoteImpl=function(G){w=G};this.getConductor=function(){if(!x){var G={};G.setDirty=mb;G.isDirty=function(){return N};G.hookDirtyListener=function(J){ba=J};G.setCurrentName=function(J){c.setCurrentName(J)};G.showShortPrompt=function(J,ja,Q){c.showShortPrompt(J,ja,Q)};G.setProductInfoJqUi=function(J){c.setProductInfoJqUi(J)};G.setConsumingStatisticsDisplayer=function(J){c.setConsumingStatisticsDisplayer(J)};
G.popupToEditWarningRule=O;G.popupToSelectWarningRule=R;G.checkWarningRuleExist=Z;x=new wb(e,G)}return x};this.setExhibitionContentChangedListener=function(G){A=G};this.createJqUi=function(){d=$("<div>");d.addClass("sa-main");d.on("mousedown",function(J){1==J.which&&document.getSelection().removeAllRanges()});var G=Da();ua.makeSelectable(e.getJqUi(),!1);d.append(e.getJqUi());d.append(c.getJqUi());b=new eb;b.setTabChangedListener(function(J){J.updateToolbarIndividualPart(e);J=J.isDesignable();for(var ja=
0;ja<G.length;ja++){var Q=G[ja].getJqUi(),T=ua.isInDomTree(Q[0]);J&&!T?Q.appendTo(Q.data("myJqParent")):J||(Q.data("myJqParent",Q.parent()),Q.detach())}c.setDirtyPromptVisible(J)});b.getJqUi().addClass("sa-main-body");d.append(b.getJqUi());xb();b.forEach(function(J){J.setExhibitionContentChangedListener(A)});t.addPerformedListener(fb);return d};this.resize=function(){b.getCurrentView().resize();e.refresh()};this.prepareMeta=function(G){u=new lb;G&&u.fromJsonObject(G);ia(new lb)};var M=function(){for(var G=
[],J=0,ja=b.getTabCount();J<ja;J++){var Q=b.getView(J).getModelPage();G.push(Q)}J=new $a;J.setMeta(g);J.setModelPages(G);return J};this.getJsonModelBook=function(){return M().toJsonObject(E)};this.setJsonModelBook=function(G,J,ja){var Q=new Lb,T=new $a;try{G&&T.fromJsonObject(G,E,function(sb){sb&&(ia(sb),sa())});var za=T.getModelPages();G=0;for(var da=b.getTabCount();G<da;G++){var Aa=b.getView(G),Za=za?za[G]:null;Za&&ja&&ja.transform(Za);if(Za&&!Aa.isModelPageMatched(Za)){Q.setUnmatchedType(!0);break}Aa.setModelPage(Za)}}catch(sb){Q.setError(!0),
window.console&&console.error(sb)}mb(!1);T.isTooModern()&&c.showShortPrompt(fa.get("loadHighVersion","\u517c\u5bb9\u6027\u52a0\u8f7d\u9ad8\u7248\u672c\u6587\u6863"));Q.setTooModern(T.isTooModern());J&&J(Q)};this.born=function(){b.forEach(function(G){G.born()})};this.reExecute=function(){b.forEach(function(G){G.reExecute()})};this.destroy=function(){b.forEach(function(G){G.destroy()})};var ia=function(G){g&&g.removeAllChangedListener();g=G;g.merge(u);b.forEach(function(J){J.metaChanged(g)})},sa=function(){g.isAnyCalculationFieldExist()&&
ca.createFacade(function(G){b.forEach(function(Aa){Aa.getModelPage().getModel().setListenerDumb(!0)});var J=new lb;J.fromJsonObject(G);for(G=g.getTableCount()-1;0<=G;G--)for(var ja=g.getTable(G),Q=J.getTable(G),T=ja.getFieldCount()-1;0<=T;T--){var za=ja.getField(T);if(za.getFormula()){var da=Q.getField(T);za.setDisplayName(da.getDisplayName());za.setDataType(da.getDataType());za.setFormula(da.getFormula());za.setFormulaDependence(da.getFormulaDependence());za.setInvalid(da.isInvalid());za.setFormulaAggStatus(da.getFormulaAggStatus())}}b.forEach(function(Aa){Aa.getModelPage().getModel().setListenerDumb(!1)})}).updateMeta(g)},
mb=function(G){N=G;c&&c.showDirtyState(N);ba&&ba(N)},Wa=function(){q||(q=new Ya);return q},xb=function(){var G=Ya.TYPE_LongPainting,J=Wa().isMulti(G);Wa().isAtLeastOne(G)&&gb(G);G=Ya.TYPE_Square;J=J||Wa().isMulti(G);Wa().isAtLeastOne(G)&&gb(G);J||1!=b.getTabCount()||b.hideTabHead()},gb=function(G){var J;G==Ya.TYPE_LongPainting?J="\u6570\u636e\u5206\u6790":G==Ya.TYPE_Square&&(J="\u6570\u636e\u6597\u65b9");G=E.createView(G);G.setGlobalDependence(ca);b.addTab(G,J)},fb=function(G,J,ja){mb(!0);G&&(J=J?
"":(ja?fa.get("undo","\u64a4\u6d88"):fa.get("redo","\u91cd\u505a"))+" ",J+=G.getCaption(),c.showShortPrompt(J))},Da=function(){var G=e.addButton(z,"btn_undo",fa.get("undo","\u64a4\u6d88")),J=e.addButton(D,"btn_redo",fa.get("redo","\u91cd\u505a"));Y(G,J);t.addPerformedListener(function(ja,Q,T){Y(G,J)});return x&&x.isBriefOutputHid()?[]:[e.addMenuButton(function(){var ja=new Ga(I);ja.setText(fa.get("briefOutputParam","\u8f93\u51fa\u53c2\u6570")+"...");var Q=new Ga(P);Q.setText(fa.get("warningRule",
"\u9884\u8b66\u89c4\u5219")+"...");var T=new wa;T.addItemModel(ja);T.addItemModel(Q);return T},"btn_param",fa.get("brief","\u6458\u8981"))]},Y=function(G,J){G.setEnabled(t.isCanUndo());J.setEnabled(t.isCanRedo())},z=function(){t.isCanUndo()&&t.undo()},D=function(){t.isCanRedo()&&t.redo()},I=function(){(new ra).edit(M(),ca)},P=function(){O()},O=function(G){(new ea).edit(M(),ca,G)},R=function(G,J,ja){(new Ca).showDialog(M(),G,J,ja)},Z=function(G){return Ca.checkWarningRuleExist(M(),G)}};Ja.AbstractDesignerView=
function(){var U=this,E,u;this.isDesignable=function(){return!0};this.setGlobalDependence=function(e){throw Error("Override me.");};this.metaChanged=function(e){throw Error("Override me.");};this.isAnyCalculatedFieldUsed=function(e){throw Error("Override me.");};this.isModelPageMatched=function(e){return!1};this.setModelPage=function(e){throw Error("Override me.");};this.getModelPage=function(){throw Error("Override me.");};this.getJqUi=function(){throw Error("Override me.");};this.suspend=function(){throw Error("Override me.");
};this.reExecute=function(){throw Error("Override me.");};this.destroy=function(){};this.updateToolbarIndividualPart=function(e){E||(E=U.protectedCreateToolbarIndividualPart(e),E.css("position","relative"),E.css("height","100%"));e.updateIndividualPart(E)};this.protectedCreateToolbarIndividualPart=function(e){return $("<div>To implement</div>")};this.resize=function(){U.protectedResizeImpl();var e=$(".sa-desk-executednotvisible");if(0<e.length){var c=e.data("myDelayRunning");c&&(e.removeData("myDelayRunning"),
c())}};this.protectedResizeImpl=function(){throw Error("Override me.");};this.born=function(){U.getJqUi().is(":visible")||g()};this.setExhibitionContentChangedListener=function(e){u=e};this.protectedShowExecutingAccident=function(e,c){throw Error("Override me.");};this.protectedAppendNecessaryDimensions=function(){throw Error("Override me.");};var g=function(e,c){var b=$("<div>");b.addClass("sa-desk-executednotvisible");b.text(fa.get("executedNotVisible","\u7b49\u5f85\u5237\u65b0"));var q=function(){b.remove();
e&&e(c)};b.data("myDelayRunning",q);b.on("mousemove",function(t){U.protectedResizeImpl();q()});b.appendTo($(document.body))},d=function(e,c,b,q){switch(c){case 205401:case 205402:!q&&U.suspend();q=new Ea;q.setOptionType(Ea.OPTION_OK_CANCEL);q.setMessage(fa.get("busyServer","\u670d\u52a1\u5668\u5fd9\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5\u3002"));q.setDetail(c+"\n"+b);q.setButtonText(Ea.RETURN_OK,fa.get("tryAgain","\u518d\u8bd5\u8bd5"));q.setButtonText(Ea.RETURN_CANCEL,fa.get("giveUp","\u653e\u5f03"));
q.setClosingChecker(function(t){t==Ea.RETURN_OK&&e.tryAgain();return!0});q.showDialog();break;case 205403:case 205301:case 205302:!q&&U.suspend();q=new Ea;q.setOptionType(Ea.OPTION_OK);q.setMessage(pa.toDisplayText(c,b));q.setDetail(c+"\n"+b);q.showDialog();break;default:return!1}return!0};this.sharedErrorHandler=function(e,c,b,q){return d(e,c,b,!0)};this.protectedMethod={executingPerformanceErrorHandler:d,executingCommonErrorHandler:function(e,c){return(c=pa.toDisplayText(e,c))?(U.protectedShowExecutingAccident(c,
function(b){pa.attemptToAppendNecessaryDimensions(e,b,U.protectedAppendNecessaryDimensions)}),!0):!1},fireExhibitionContentChangedEvent:function(e){u&&u(e)}}};Ja.MetaPane=function(){var U=this,E,u,g,d,e,c=new W;this.setGlobalDependence=function(z){E=z};this.getJqUi=function(){t();return u};this.addPressedListener=function(z){t();g.addPressedListener(function(D,I){z(U,I)})};this.clearSelecteds=function(){g.clearSelecteds()};this.getSelecteds=function(){return g.getSelectedMetaFields()};this.getDraggingMetaField=
function(z){z=ua.upwardSearchHasData(z,u,Yb.ITEM_MODEL);if(!z)return null;z=z.data(Yb.ITEM_MODEL);z=g.getMetaFieldFromItemModel(z);return!z||z.isInvalid()?null:z};this.setMeta=function(z){z.addChangedListener(function(D,I){I!=Na.KEY_FORMATSTRING&&I!=Na.KEY_FISCALYEARSTART&&I!=Na.KEY_SORTACCORDING&&q(D)});q(z)};this.addTitleBarButton=function(z){for(var D=u.find(".sa-metapane-button"),I=0;I<D.length;I++)$(D[I]).css("right",23*(D.length-I));z.addClass("sa-metapane-button");z.appendTo(u)};this.lockScroll=
function(z){u.find(".sa-ctrl-list-owner").css("overflow",z?"hidden":"auto")};this.addClearSelectedAsker=function(z){c.addListener(z)};var b=function(z){c.fireEvent(function(D){D(z)})},q=function(z){g&&z&&g.setMetaModel(z);N(!0)},t=function(){if(!u){u=$("<div>");u.addClass("sa-metapane");var z=$("<div>");z.addClass("sa-metapane-title");z.appendTo(u);var D=$("<div>");D.text(fa.get("field","\u5b57\u6bb5"));D.attr("title",fa.get("ctrlSelectMoreField","[Ctrl]+\u9f20\u6807\uff0c\u53ef\u4ee5\u9009\u62e9\u591a\u4e2a\u5b57\u6bb5\u3002"));
D.addClass("sa-metapane-title-text");D.appendTo(z);d=$("<div>");U.addTitleBarButton(d);d.on("mousedown",function(I){N()});d.attr("title",fa.get("searchField","\u67e5\u627e\u5b57\u6bb5"));z=$("<div>");la.background(z,"icon_search");z.addClass("sa-metapane-button-search-icon");z.appendTo(d);z=$("<div>");U.addTitleBarButton(z);z.on("mousedown",ba);z.attr("title",fa.get("dropdownMenu","\u4e0b\u62c9\u83dc\u5355"));D=$("<div>");D.text("\u25b2");D.addClass("sa-metapane-button-operate-text");D.appendTo(z);
w();g=new Mb;g.setSearchBoxVisible(!1);g.setMultiSelectable(!0);g.setSearchBoxHideRequester(function(){N(!0)});z=g.getJqUi();z.addClass("sa-metapane-list");z.appendTo(u);q(E.getMeta());E.getTopJqUi().on("mousedown",A)}},w=function(){var z=new wa;x(z,fa.get("dataFormat","\u6570\u5b57\u683c\u5f0f")+"...",gb,ca);x(z,fa.get("fiscalYear","\u4f1a\u8ba1\u5e74\u5ea6")+"...",fb,function(){var D;if(D=E.getMeta().isNormalSrcMode()){D=g.getSelectedMetaFields(!0);for(var I=0<D.length,P=0;P<D.length;P++){var O=
D[P];if(!O||O.getDataType()!=Na.DT_DATE){I=!1;break}}D=I}return D});z.addSeperator();x(z,fa.get("sortAccording","\u6392\u5e8f\u4f9d\u636e")+"...",Da,null);z.addSeperator();x(z,fa.get("createCalculatedField","\u521b\u5efa\u8ba1\u7b97\u5b57\u6bb5")+"...",function(D){Wa(!0)},M);x(z,fa.get("editCalculatedField","\u7f16\u8f91\u8ba1\u7b97\u5b57\u6bb5")+"...",function(D){Wa(!1)},ia);x(z,fa.get("deleteCalculatedField","\u522a\u9664\u8ba1\u7b97\u5b57\u6bb5"),xb,ia);z.addSeperator();x(z,fa.get("viewMetaTableData",
"\u67e5\u770b\u539f\u59cb\u6570\u636e")+"...",Y,function(){return E.getMeta().isNormalSrcMode()&&M()});e=new Oa;e.setWidth(160);e.setModel(z)},x=function(z,D,I,P){I=new Ga(I);I.setUserObject(P);I.setText(D);z.addItemModel(I)},A=function(z){if(!z.ctrlKey&&!z.metaKey){var D=z.target;if(!(ua.isDescendent(D,u[0])||(z=e.getJqUi(),z&&0<z.length&&ua.isDescendent(D,z[0])))){var I=!1;z=new function(){this.getTarget=function(){return D};this.retain=function(){I=!0}};b(z);I||U.clearSelecteds()}}},N=function(z){z||
d.hasClass("sa-metapane-button-search_press")?(d.removeClass("sa-metapane-button-search_press"),g.setSearchBoxVisible(!1),g.clearSearching()):(d.addClass("sa-metapane-button-search_press"),g.setSearchBoxVisible(!0),g.requestFocusAtSearchBox())},ba=function(z){var D=$(z.currentTarget);z=$(z.target);if(e.isShowing())e.hide();else{for(var I=e.getModel(),P=0,O=I.getItemCount();P<O;P++){var R=I.getItemModel(P);if(!I.isSeperator(R)){var Z=R.getUserObject();Z&&(Z=Z(),R.setEnabled(Z))}}I=E.getTopJqUi();D=
[u.innerWidth()-164,D.outerHeight()+4];D=ua.upwardCoordinate(u[0],D,I[0]);e.show(I,D[0],D[1],z,!1)}},ca=function(){for(var z=g.getSelectedMetaFields(!0),D=0<z.length,I=0;I<z.length;I++)if(!z[I]){D=!1;break}return D},M=function(){var z=E.getMeta();return 1!=z.getTableCount()||z.getTable(0).hasSubViews()?g.getOnlyOneSelectedMetaTable()?!0:!1:!0},ia=function(){for(var z=g.getSelectedMetaFields(!0),D=0<z.length,I=0;I<z.length;I++){var P=z[I];if(!P||!P.getFormula()){D=!1;break}}return D},sa=function(z,
D,I,P,O){E.createFacade(function(R){var Z=new lb;Z.fromJsonObject(R);mb(Z,D,I,P);O&&O()}).updateMeta(z)},mb=function(z,D,I,P){var O=function(Za,sb,Ab){var xa=new ab;xa.setMethod(Za,sb);xa.setValue(Ab);Z.perform(xa)},R=fa.get("deleteCalculatedField","\u522a\u9664\u8ba1\u7b97\u5b57\u6bb5");"create"==D&&(R=fa.get("createCalculatedField","\u521b\u5efa\u8ba1\u7b97\u5b57\u6bb5"));"edit"==D&&(R=fa.get("editCalculatedField","\u7f16\u8f91\u8ba1\u7b97\u5b57\u6bb5"));var Z=E.getCommandManager();Z.compositeStart(R);
D=E.getMeta();for(R=D.getTableCount()-1;0<=R;R--){for(var G=[],J=D.getTable(R),ja=z.getTable(R),Q=J.getFieldCount()-1;0<=Q;Q--){for(var T=J.getField(Q),za=!1,da=ja.getFieldCount()-1;0<=da;da--){var Aa=ja.getField(da);if(T.getPureName()==Aa.getPureName()){za=G[da]=!0;break}}za?T.getFormula()&&(O(T.getDisplayName,T.setDisplayName,Aa.getDisplayName()),O(T.getDataType,T.setDataType,Aa.getDataType()),O(T.getFormula,T.setFormula,Aa.getFormula()),O(T.getFormulaDependence,T.setFormulaDependence,Aa.getFormulaDependence()),
O(T.isInvalid,T.setInvalid,Aa.isInvalid()),O(T.getFormulaAggStatus,T.setFormulaAggStatus,Aa.getFormulaAggStatus())):(za=new ma(J,!1),za.setValue(T,Q),za.setViewContext(I,P),Z.perform(za))}da=0;for(Q=ja.getFieldCount();da<Q;da++)if(!G[da]){za=new ma(J,!0);za.setValue(ja.getField(da).clone(),da);za.setViewContext(I,P);Z.perform(za);break}}Z.compositeEnd()},Wa=function(z){N(!0);var D=E.getMeta(),I=new lb;I.merge(D);var P=[],O=g.getOnlyOneSelectedMetaTable(P,!0),R=null,Z=null;O=O?O:D.getTable(0);var G=
O.getName();O=I.searchTableByName(G);var J=null;if(z)J=new Na,J.setPureName("calculatingField"+(new Date).getTime()),J.setUserCreated(!0),J.setFormatString("#,##0.00"),O.insertField(J,O.getFieldCount()),R=P[0],Z=P[1],O.updateFieldAtView(J.getPureName(),!0,R,Z);else{P=g.getSelectedMetaFields()[0];g.setSelectedMetaField(P);for(var ja=O.getFieldCount()-1;0<=ja;ja--){var Q=O.getField(ja);if(Q.getPureName()==P.getPureName()){J=Q;break}}}O=new Mb;O.setSearchBoxVisible(!0);O.setMetaModel(D);P=new ha;P.setContext(O,
I,J,!z);var T,za=null,da=E.createFacade(function(Aa){var Za=Aa.ok,sb=Aa.errorPosition,Ab=Aa.errorPrompt;T=Aa.dataType;za(Za,sb,Ab)});da.setShowBlocking(!1);P.setSyntaxValidator(function(Aa,Za,sb){za=sb;da.checkFormula(Aa,D,J.getFullName())});P.setAcceptedListener(function(){J.setDataType(T?T:Na.DT_NUMBER);var Aa=null;z&&(Aa=function(){var Za=D.searchTableByName(G);Za=Za.getField(Za.getFieldCount()-1);g.setSelectedMetaField(Za)});sa(I,z?"create":"edit",R,Z,Aa)});P.showDialog()},xb=function(z){var D=
null,I=null,P=function(sb){U.clearSelecteds();sa(sb,"delete",D,I)};z=E.getMeta();var O=new lb;O.merge(z);var R=!1,Z=!1;z=[];for(var G=g.getSelectedMetaFields(),J=0;J<G.length;J++){var ja=G[J];R||(R=E.isAnyCalculatedFieldUsed(ja.getFullName()));for(var Q=O.getTableCount()-1;0<=Q;Q--)for(var T=O.getTable(Q),za=T.getFieldCount()-1;0<=za;za--){var da=T.getField(za);if(da.getFormula()){var Aa=da.getFormulaDependence();if(Aa&&0<Aa.length)for(var Za=0;Za<Aa.length;Za++)Aa[Za]==ja.getFullName()&&(Z=!0,z.push(da.getFullDisplayName()));
da.getFullName()==ja.getFullName()&&(Za=[],Aa=T.searchSubViewContainsField(da,Za),Za=Za[0],D=Aa?Aa.getName():null,I=Za?Za.getName():null,T.removeField(za),T.updateFieldAtView(da.getPureName(),!1,D,I))}}}if(R||Z){if(R&&Z)for(R=fa.get("usedAndQuotedPromot","\u4e00\u4e2a\u6216\u591a\u4e2a\u9009\u4e2d\u5b57\u6bb5\u5df2\u5728\u89c6\u56fe\u4e2d\u4f7f\u7528\uff0c\u5e76\u4e14\u5c06\u4f1a\u5f71\u54cd\u4ee5\u4e0b\u5b57\u6bb5\uff1a")+"\r\n",J=0;J<z.length;J++)R+="\u25aa "+z[J]+"\r\n";else if(Z)for(R=fa.get("quotedPromot",
"\u5c06\u4f1a\u5f71\u54cd\u4ee5\u4e0b\u5b57\u6bb5\uff1a")+"\r\n",J=0;J<z.length;J++)R+="\u25aa "+z[J]+"\r\n";else R=fa.get("usedPromot","\u5b57\u6bb5\u5df2\u5728\u89c6\u56fe\u4e2d\u4f7f\u7528\uff0c");R+=fa.get("sureDelete","\u786e\u5b9a\u5220\u9664\u5417\uff1f");z=new Ea;z.setOptionType(Ea.OPTION_OK_CANCEL);z.setMessage(R);z.showDialog();z.setClosingChecker(function(sb){sb==Ea.RETURN_OK&&P(O);return!0})}else P(O)},gb=function(z){z=g.getSelectedMetaFields();var D=new ka;D.setCommandManager(E.getCommandManager());
D.showDialog(z)},fb=function(z){z=g.getSelectedMetaFields();var D=new ta;D.setCommandManager(E.getCommandManager());D.setTargetMetaFields(z);D.showDialog()},Da=function(z){z=E.getMeta();var D=new p;D.setCommandManager(E.getCommandManager());D.setMeta(z,function(){var I=new Mb;I.setSearchBoxVisible(!0);return I},function(I,P){return E.createFacade(I,P)});D.showDialog()},Y=function(){var z=E.getMeta(),D=g.getOnlyOneSelectedMetaTable();!D&&(D=z.getTable(0));z=D.getDisplayName();z=fa.get("viewMetaTableData",
"\u67e5\u770b\u539f\u59cb\u6570\u636e")+(z?" - "+z:"");var I=new Ma;I.init(z,D,E.createFacade);I.showDialog()}};Ja.SearchableMetaList=Mb;Ja.AdjustableLane=S;Ja.DragDropHandler=function(){var U,E=[],u,g=null,d,e,c,b;this.bindParentUi=function(x){U=x};this.bindDragUi=function(x,A,N,ba,ca){var M=!1,ia=[-1,-1],sa=null,mb=function(){u=M=!1;sa=null;ia=[-1,-1]},Wa=function(Da){mb()},xb=function(Da){M=!0;u=!1;sa=$(Da.target);ia=[Da.screenX,Da.screenY]},gb=function(Da){M=!1},fb=function(Da){var Y=!1;M&&(Y=
5<Math.abs(Da.screenX-ia[0])||5<Math.abs(Da.screenY-ia[1]));Y&&(M=!1,u=!0,U.on("mousemove",q),U.on("mouseleave",t),U.on("mouseup",t),(g=A(sa))||mb(),e=function(z,D){N&&N(z,D)},c=function(){ba&&ba()},b=ca)};x.on("mousedown",xb);x.on("mouseup",Wa);x.on("mouseleave",gb);x.on("mousemove",fb);x.data("myDragEventHandlerSet",[xb,Wa,gb,fb])};this.unbindDragUi=function(x){var A=x.data("myDragEventHandlerSet");x.off("mousedown",A[0]);x.off("mouseup",A[1]);x.off("mouseleave",A[2]);x.off("mousemove",A[3])};this.bindDropUi=
function(x,A,N,ba,ca,M){E.push(x);var ia;x=function(xb){u&&(g&&(xb=ia&&ca(g,ia),e(xb,ia),xb&&M(g,ia),c()),ia=g=null,w())};var sa=function(xb){},mb=function(xb){u&&ba()},Wa=function(xb){if(u){var gb=ua.getCurrentTargetPosition(xb);gb=ua.upwardCoordinate(xb.target,gb,A[0]);ia=N(gb[0],gb[1])}};A.on("mouseup",x);A.on("mouseenter",sa);A.on("mouseleave",mb);A.on("mousemove",Wa);A.data("myDropEventHandlerSet",[x,sa,mb,Wa])};this.unbindDropUi=function(x,A){var N=A.data("myDropEventHandlerSet");A.off("mouseup",
N[0]);A.off("mouseenter",N[1]);A.off("mouseleave",N[2]);A.off("mousemove",N[3]);for(A=E.length-1;0<=A;A--)E[A][0]==x[0]&&E.splice(A,1)};var q=function(x){if(u){var A=ua.getCurrentTargetPosition(x);A=ua.upwardCoordinate(x.target,A,U[0]);if(!d)for(d=$("<div>"),d.addClass("sa-dragdrop-dragingtips"),x=$("<span style='margin-left:5px;margin-right:5px'>"),x.text(g.getText()),x.appendTo(d),d.appendTo(U),x=0;x<E.length;x++)E[x].addClass("sa-dragdrop-droptarget");d.css({left:A[0]+15+"px",top:A[1]+10+"px"})}},
t=function(x){e(!1);c();w()},w=function(){u=!1;d&&(d.remove(),d=null,g&&b&&b(g));g=null;for(var x=0;x<E.length;x++)E[x].removeClass("sa-dragdrop-droptarget");U.off("mousemove",q);U.off("mouseleave",t);U.off("mouseup",t)}};Ja.MenuUtil=new function(){this.createActionMenuItem=function(E,u,g){u=U(u,g);return Oa.createActionMenuItem(E,u)};this.createCheckboxMenuItem=function(E,u,g,d){g=U(g,d);return Oa.createCheckbox(E,u,g)};this.createRadioMenuItem=function(E,u,g,d,e){d=U(d,e);return Oa.createRadio(E,
u,g,d)};var U=function(E,u){return function(g){g.isCheckbox()&&E.setValue(g.isChecked());u.perform(E)}}};var ua,W,fa,Ea,Va,Oa,wa,Ga,Ia,hb,ib,nb,bb,la,Jb,pa,Gb,Vb,tb,lb,Na,$a,La,ab,ma,ha=Ja.FormulaEditor,ta=Ja.FiscalYearStartSelector,ka=Ja.NumberFormatSettingForMeta,p=Ja.SortAccordingSelector,ra=Ja.BriefOutputManageDialog,ea=Ja.WarningRuleManageDialog,Ca=Ja.WarningRuleSelector;(function(){var U=com.kingdee.bos.qing.common;ua=U.DomUtil;W=U.EventListenerList;U=com.kingdee.bos.qing.framework.common;fa=
U.MultilanguageManager.createPackageAccessor(Ja);U=com.kingdee.bos.qing.ui.component;Ea=U.MessageDialog;Va=U.Toolbar;Oa=U.Menu;wa=U.MenuModel;Ga=U.MenuItemModel;Ia=U.List;hb=U.SearchBox;ib=U.Label;nb=U.AbstractModalDialog;U=com.kingdee.bos.qing.common.ui;bb=U.CommonIconUtil;U=com.kingdee.bos.qing.core;la=U.Icons;Jb=U.Facade;pa=U.ErrorCodeParser;Gb=U.LongerDesignerOperationJudger;Vb=U.SquareDesignerOperationJudger;U=com.kingdee.bos.qing.core.commonui;tb=U.DataDetailTable;U=com.kingdee.bos.qing.core.model;
lb=U.Meta;Na=U.MetaField;$a=U.ModelBook;U=com.kingdee.bos.qing.core.controller;La=U.CommandManager;ab=U.ActionChangeProperty;ma=U.ActionInsertMetaField})();Ya.TYPE_LongPainting=1;Ya.TYPE_Square=16;Ya.MODE_1=1;Ya.MODE_0N=16;Ya.MODE_1N=17;Ya.MASK_AtLeastOne=1;Ya.MASK_Multi=16;Yb.ITEM_MODEL="list-item-model";S.GAP=6;S.Child=function(){this.getJqUi=function(){throw Error("Override me.");};this.getMinHeight=function(){throw Error("Override me.");};this.getPerfectHeight=function(){throw Error("Override me.");
};this.setRequestRelayoutListener=function(U){throw Error("Override me.");};this.isVisible=function(){return!0};this.afterRelayout=function(){};this.keepState=function(){};this.restoreState=function(){};this.destroy=function(){}}})();(function(){function Ya(){var lb=this,Na=[],$a=[];this.append=function(La,ab){Na.push(La);$a.push(ab)};this.isContainKey=function(La,ab){for(var ma=0;ma<Na.length;ma++)if(La==Na[ma])if(ab){if($a[ma]&&$a[ma].getFieldSet()==ab)return!0}else return!0;return!1};this.isContainKeys=function(La,ab){for(var ma=0;ma<La.length;ma++)if(lb.isContainKey(La[ma],ab))return!0;return!1};this.isContainFieldSet=function(La){for(var ab=0;ab<$a.length;ab++)if($a[ab]&&La==$a[ab].getFieldSet())return!0;return!1};this.getTargetField=
function(La,ab){for(var ma=0;ma<Na.length;ma++)if(ab==Na[ma]&&$a[ma]&&La==$a[ma].getFieldSet())return $a[ma].getField();return null}}function Lb(lb,Na){var $a=Na?Na:null,La;this.getFieldSet=function(){return lb};this.getField=function(){return $a};this.setFieldSubEventTarget=function(ab){La=ab};this.getFieldSubEventTarget=function(){return La};this.toString=function(){return lb.constructor.name+(La?"-"+La.toString():"")}}function wb(){ib.call(this);var lb=this,Na=this.protectedMethod,$a=new Ga,La=
wb.CHARTTYPE_TABLE,ab=new eb,ma=new eb,ha=new pb,ta=new zb,ka=!1,p=!1,ra=null,ea=null,Ca;(function(){var d,e,c=function(b,q){Na.isListenerDumb()||(e||(e=new Ya),e.append(q,b),(b=b.getFieldSubEventTarget())&&b.getMetaFieldSubEventTarget()?(d&&clearTimeout(d),d=setTimeout(function(){E(e);e=null},50)):(E(e),e=null))};ab.addChangedListener(c);ma.addChangedListener(c);ha.addChangedListener(c);ta.addChangedListener(c)})();this.getBriefOutputableFieldsModel=function(){var d=[],e=[],c=function(b){for(var q=
0;q<b.getCount();q++){var t=b.get(q);(t.isDimension()?d:e).push(t)}};c(ma);c(ab);c(ha);c=new Vb;c.setDimensionFields(d);c.setMeasureFields(e);return c};this.isExecutableContentEmpty=function(){return ab.isEmpty()&&ma.isEmpty()&&ha.isEmpty()&&ta.isEmpty()};this.clear=function(){var d=[],e=function(c){for(var b=[],q=0,t=c.getCount();q<t;q++)b.push(c.get(q));c=c.removeSome(b);return[b,c]};lb.setListenerDumb(!0);d[0]=e(ab);d[1]=e(ma);d[2]=e(ha);d[3]=e(ta);lb.setListenerDumb(!1);d[4]=ka;d[5]=p;d[6]=ra;
d[7]=ea;p=ka=!1;ea=ra=null;U(wb.KEY_CLEAR);return d};this.undoClear=function(d){lb.setListenerDumb(!0);var e=d[0];ab.undoRemoveSome(e[0],e[1]);e=d[1];ma.undoRemoveSome(e[0],e[1]);e=d[2];ha.undoRemoveSome(e[0],e[1]);e=d[3];ta.undoRemoveSome(e[0],e[1]);lb.setListenerDumb(!1);ka=d[4];p=d[5];ra=d[6];ea=d[7];U(wb.KEY_UNCLEAR)};this.setChartType=function(d){La=d;U(wb.KEY_CHART_TYPE)};this.getChartType=function(){return La};this.getColumnAnalyticalFieldSet=function(){return ab};this.getRowAnalyticalFieldSet=
function(){return ma};this.getMarkFieldSet=function(){return ha};this.getFilterFieldSet=function(){return ta};this.setRowGrandTotal=function(d){ka!=d&&(ka=d,U(wb.KEY_ROW_GRAND_TOTAL))};this.isRowGrandTotal=function(){return ka};this.setColumnGrandTotal=function(d){p!=d&&(p=d,U(wb.KEY_COLUMN_GRAND_TOTAL))};this.isColumnGrandTotal=function(){return p};this.setColumnsSortingLane=function(d){ra=d;U(wb.KEY_SORTING_LANE)};this.getColumnsSortingLane=function(){return ra};this.setRowsSortingLane=function(d){ea=
d;U(wb.KEY_SORTING_LANE)};this.getRowsSortingLane=function(){return ea};this.setLinkTargets=function(d){Ca=d};this.getLinkTargets=function(){return Ca};this.announceTreeExpanding=function(){U(wb.KEY_TREE_EXPANDING)};this.addModelChangedListener=function(d){$a.addListener(d)};this.removeModelChangedListener=function(d){$a.removeListener(d)};var U=function(d){var e=new Ya;e.append(d);E(e)},E=function(d){$a.fireEvent(function(e){e(d)})};this.getUsingMetaFields=function(d){return u(d,null,null)};this.createDependentMeta=
function(d,e){var c=d.getEliminationKeyMetaFields(),b=d.getDimensionNecessityMetaFields();c=c.concat(b);e=u(d,e,c);return d.createExecutingCopy(e)};var u=function(d,e,c){var b=Ia.createSearchingUsingMetaFieldsTool(d),q=function(w){for(var x=0;x<w.getCount();x++){var A=w.get(x);b.checkField(A.getMetaField())}};q(ab);q(ma);q(ha);q(ta);if(e)for(q=0;q<e.length;q++){var t=d.searchMetaField(e[q]);t&&b.checkField(t)}if(c)for(q=0;q<c.length;q++)t=c[q],b.checkField(t);return b.getUsingMetaFields()};this.isAnyCalculatedFieldUsed=
function(d){var e=!1,c=function(b){for(var q=0;q<b.getCount();q++){var t=b.get(q);if(t.getMetaField().getFormula()&&(!d||d==t.getMetaField().getFullName())){e=!0;break}}};!e&&c(ab);!e&&c(ma);!e&&c(ha);!e&&c(ta);return e};this.howManyCalculatedFieldsUsed=function(){var d=0,e=function(c){for(var b=0;b<c.getCount();b++)c.get(b).getMetaField().getFormula()&&d++};e(ab);e(ma);e(ha);e(ta);return d};var g=function(d){var e={},c=[],b=function(x){for(var A=0;A<x.getCount();A++){var N=x.get(A),ba=d?null:N.getId();
ba?e[ba]=!0:c.push(N)}};b(ab);b(ma);b(ha);b(ta);b=1;for(var q=0;q<c.length;q++){var t=c[q],w=null;do w="field"+b++;while(e[w]);t.setId(w);e[w]=!0}};this.toJsonObject=function(){g(!0);var d={};d.chartType=La;d.column=ab.toJsonObject();d.row=ma.toJsonObject();d.marks=[ha.toJsonObject()];d.filter=ta.toJsonObject();ka&&(d.isRowGrandTotal=!0);p&&(d.isColumnGrandTotal=!0);ra&&(d.columnsSortingLane=ra.toJsonObject());ea&&(d.rowsSortingLane=ea.toJsonObject());Ca&&(d.linkTargets=Ca.toJsonObject());Na.sharedToJsonObject(d);
return d};this.fromJsonObject=function(d,e){La=d.chartType;ab.fromJsonObject(d.column,e);ma.fromJsonObject(d.row,e);ta.fromJsonObject(d.filter,e);ha.fromJsonObject(d.marks[0],e);ka=d.isRowGrandTotal?!0:!1;p=d.isColumnGrandTotal?!0:!1;if(e=d.columnsSortingLane)ra=new Mb,ra.fromJsonObject(e);if(e=d.rowsSortingLane)ea=new Mb,ea.fromJsonObject(e);Ca=null;if(e=d.linkTargets)Ca=new tb,Ca.fromJsonObject(e);g(!1);Na.sharedFromJsonObject(d)}}function eb(){var lb=this,Na=[],$a=new Ga;this.isEmpty=function(){return 0==
Na.length};this.add=function(ha,ta){var ka=lb.getIndex(ha),p=-1;if(0<=ka){var ra=lb.protectedGetExtendInfo(ka);p=ta>ka?ka:ka+1}!ta&&0!=ta||0>ta?lb.protectedAddItem(ha,ra):lb.protectedInsertItem(ta,ha,ra);0<=p&&lb.protectedRemoveItem(p,!1);La(eb.KEY_ADD,ha);return[p]};this.undoAdd=function(ha,ta){ta=ta[0];0<=ta?lb.add(ha,ta):lb.remove(ha)};this.replace=function(ha,ta){var ka=lb.get(ha),p=ka.clone(),ra=lb.protectedGetExtendInfo(ha),ea=lb.getIndex(ta);ha=0<=ea&&ea!=ha;var Ca;ha&&(Ca=lb.protectedGetExtendInfo(ea));
lb.protectedReplaceItem(ka,ta,Ca);ha&&lb.protectedRemoveItem(ea,!0);La(eb.KEY_REPLACE,ka);return[p,ra,ea,Ca]};this.undoReplace=function(ha,ta,ka){var p=ka[0],ra=ka[1],ea=ka[2];ka=ka[3];0<=ea&&lb.protectedInsertItem(ea,ta,ka);ha=lb.get(ha);lb.protectedReplaceItem(ha,p,ra);La(eb.KEY_REPLACE,ha)};this.remove=function(ha){var ta=lb.getIndex(ha);if(0>ta)throw Error("Sth must be wrong.");var ka=lb.protectedGetExtendInfo(ta);lb.protectedRemoveItem(ta,!0);La(eb.KEY_REMOVE,ha);return[ta,ka]};this.undoRemove=
function(ha,ta){lb.protectedInsertItem(ta[0],ha,ta[1]);La(eb.KEY_ADD,ha)};this.removeSome=function(ha){for(var ta=[],ka=ha.length-1;0<=ka;ka--){var p=lb.getIndex(ha[ka]),ra=lb.protectedGetExtendInfo(p);lb.protectedRemoveItem(p,!0);ta[ka]=[p,ra]}La(eb.KEY_CHANGE);return ta};this.undoRemoveSome=function(ha,ta){for(var ka=0;ka<ha.length;ka++)lb.protectedInsertItem(ta[ka][0],ha[ka],ta[ka][1]);La(eb.KEY_CHANGE)};this.keepLogicalOrder=function(){for(var ha=Na.slice(0),ta=[],ka=[],p=!1,ra=!1,ea=0;ea<Na.length;ea++){var Ca=
Na[ea];Ca.isDimension()?(ta.push(Ca),p&&(ra=!0)):Ca.isMeasure()&&(p=!0,ka.push(Ca))}return ra?(Na=ta.concat(ka),La(eb.KEY_CHANGE),[ha]):null};this.undoKeepLogicalOrder=function(ha){ha&&(Na=ha[0],La(eb.KEY_CHANGE))};this.getCount=function(){return Na.length};this.get=function(ha){return Na[ha]};this.getIndex=function(ha){for(var ta=0;ta<Na.length;ta++)if(Na[ta]==ha)return ta;return-1};this.getDimensionCount=function(){for(var ha=Na.length-1;0<=ha;ha--)if(Na[ha].isDimension())return ha+1;return 0};
this.hasAnyDimension=function(){return 0<lb.getCount()&&lb.get(0).isDimension()};this.addChangedListener=function(ha){$a.addListener(ha)};this.removeChangedListener=function(ha){$a.removeListener(ha)};var La=function(ha,ta,ka){var p=new Lb(lb,ta);ka&&p.setFieldSubEventTarget(ka);$a.fireEvent(function(ra){ra(p,ha)})};this.protectedAddItem=function(ha,ta){Na.push(ha);ha.addPropertyChangeListener(ab);ha.bindMetaEvent()};this.protectedInsertItem=function(ha,ta,ka){Na.splice(ha,0,ta);ta.addPropertyChangeListener(ab);
ta.bindMetaEvent()};this.protectedReplaceItem=function(ha,ta,ka){ha.setMetaField(ta.getMetaField());ha.bindMetaEvent();ha.setPartValue(ta.getPartValue());ha.setDateFormat(ta.getDateFormat());ha.setRole(ta.getRole(),ta.getAggregation())};this.protectedRemoveItem=function(ha,ta){ha=Na.splice(ha,1);ta&&ha[0].clearListener()};this.protectedGetExtendInfo=function(ha){return null};var ab=function(ha,ta){La(ta,null,ha)},ma=function(ha,ta){if(!ha.isDimension())return null;ta=ha.getMetaField();if(ta.getDataType()==
hb.DT_DATE){ha=ha.getPartValue();ta=[nb.PARTVALUE_DATE_YEAR,nb.PARTVALUE_DATE_QUARTER,nb.PARTVALUE_DATE_MONTH,nb.PARTVALUE_DATE_DAY];for(var ka=0;ka<ta.length;ka++)if(ta[ka]==ha)return[ta,ka];return null}return(ha=ta.getTable())?ha.searchHierachy(ta):null};this.getInitialDateHierachyForField=function(ha,ta){if(ha.isMeasure()||ha.getMetaField().getDataType()!=hb.DT_DATE||ha.getPartValue())return null;var ka=[nb.PARTVALUE_DATE_YEAR,nb.PARTVALUE_DATE_QUARTER,nb.PARTVALUE_DATE_MONTH,nb.PARTVALUE_DATE_DAY];
for(--ta;0<=ta;ta--){var p=Na[ta];if(p.getMetaField()==ha.getMetaField()){p=p.getPartValue();for(var ra=ka.length-2;0<=ra;ra--)if(ka[ra]==p)return ka[ra+1]}}return nb.PARTVALUE_DATE_YEAR};this.getHierachyExpandableStates=function(ha){for(var ta=function(E,u,g){for(g+=1;g<u.length;g++)for(var d=u[g],e=0;e<Na.length;e++){var c=Na[e];if(c!=E&&c.getMetaField()==d)return!0}return!1},ka=function(E,u,g){for(g+=1;g<u.length;g++)for(var d=u[g],e=0;e<Na.length;e++){var c=Na[e];if(c!=E&&c.getMetaField()==E.getMetaField()&&
d==c.getPartValue())return!0}return!1},p=[],ra=0;ra<Na.length;ra++){var ea=Na[ra],Ca=ma(ea,ha),U=Ca?Ca[0]:null;Ca=Ca?Ca[1]:-1;U&&Ca!=U.length-1?ea.getMetaField().getDataType()==hb.DT_DATE?p[ra]=!ka(ea,U,Ca):p[ra]=!ta(ea,U,Ca):p[ra]=null}return p};this.createFieldForHierachyExpanding=function(ha,ta){var ka=ma(ta,ha);ha=ka[0];var p=ka[1];ka=new Yb;ta.getMetaField().getDataType()==hb.DT_DATE?(ha=ha[p+1],ka.setMetaField(ta.getMetaField()),ka.setPartValue(ha)):ka.setMetaField(ha[p+1]);ka.setRole(nb.ROLE_DIMENSION);
ka.setContinuous(!1);return ka};this.searchFieldsForHierachyCollapsing=function(ha,ta){var ka=[],p=ma(ta,ha),ra=p[0];p=p[1];for(var ea=0;ea<Na.length;ea++){var Ca=Na[ea];if(Ca!=ta){var U=ma(Ca,ha);if(U){var E=U[0];U=U[1];(ta.getMetaField().getDataType()==hb.DT_DATE?Ca.getMetaField()==ta.getMetaField():ra==E)&&U>p&&ka.push(Ca)}}}return ka};this.toJsonObject=function(){for(var ha=[],ta=0;ta<Na.length;ta++)ha.push(Na[ta].toJsonObject());return{fields:ha}};this.fromJsonObject=function(ha,ta){Na.length=
0;ha=ha.fields;for(var ka=0;ka<ha.length;ka++){var p=ha[ka],ra=new Yb;ra.fromJsonObject(p,ta);lb.protectedAddItem(ra)}};this.protectedMethod={fireChangedListener:La}}function pb(){eb.call(this);var lb=this,Na=this.protectedMethod,$a=[];this.setFieldMatchingMarkType=function(ka,p){var ra=lb.getIndex(ka);0<=ra&&($a[ra]=p,Na.fireChangedListener(pb.KEY_FIELD_MARK_TYPE,ka))};this.getFieldMatchingMarkType=function(ka){ka="number"==typeof ka?parseInt(ka):lb.getIndex(ka);return 0<=ka?$a[ka]:null};this.protectedGetExtendInfo=
function(ka){return $a[ka]};var La=this.protectedAddItem;this.protectedAddItem=function(ka,p){La(ka);$a.push(p?p:"")};var ab=this.protectedInsertItem;this.protectedInsertItem=function(ka,p,ra){ab(ka,p);$a.splice(ka,0,ra?ra:"")};var ma=this.protectedRemoveItem;this.protectedRemoveItem=function(ka,p){ma(ka,p);$a.splice(ka,1)};var ha=this.toJsonObject;this.toJsonObject=function(){for(var ka=ha(),p=[],ra=0;ra<$a.length;ra++)p.push($a[ra]);ka.markTypes=p;return ka};var ta=this.fromJsonObject;this.fromJsonObject=
function(ka,p){ta(ka,p);ka=ka.markTypes;for(p=0;p<ka.length;p++)$a[p]=ka[p]}}function zb(){eb.call(this);var lb=this,Na=this.protectedMethod,$a=[];this.addSome=function(U,E){for(var u=0;u<U.length;u++)lb.protectedAddItem(U[u],E[u]);Na.fireChangedListener(eb.KEY_CHANGE)};this.setFilter=function(U,E){U=La(U);0<=U&&($a[U]=E,ka(E,U),Na.fireChangedListener(zb.KEY_FILTER,lb.get(U)))};this.getFilter=function(U){U=La(U);return 0<=U?$a[U]:null};this.getFilterIndex=function(U){for(var E=0;E<$a.length;E++)if($a[E]==
U)return E;return-1};var La=function(U){return"number"==typeof U?parseInt(U):lb.getIndex(U)};this.protectedGetExtendInfo=function(U){return $a[U]};var ab=this.protectedAddItem;this.protectedAddItem=function(U,E){ab(U);U=E?E:null;$a.push(U);ka(U,$a.length-1)};var ma=this.protectedInsertItem;this.protectedInsertItem=function(U,E,u){ma(U,E);E=u?u:null;$a.splice(U,0,E);ka(E,U)};var ha=this.protectedReplaceItem;this.protectedReplaceItem=function(U,E,u){ha(U,E);U=lb.getIndex(U);u=u?u:null;$a[U]=u;ka(u,
U)};var ta=this.protectedRemoveItem;this.protectedRemoveItem=function(U,E){ta(U,E);U=$a.splice(U,1);E&&((E=U[0])&&E.removeValueChangedListener(p),E&&E.removePropertyChangeListener(ra))};var ka=function(U,E){U&&(U.addValueChangedListener(p),U.addPropertyChangeListener(ra),E=lb.get(E),U.setAssociatedField(E))},p=function(U){U=lb.get(lb.getFilterIndex(U));Na.fireChangedListener(zb.KEY_FILTER_VALUE,U)},ra=function(U,E){E==bb.KEY_ONSHOW&&(U=lb.get(lb.getFilterIndex(U)),Na.fireChangedListener(zb.KEY_FILTER_ONSHOW,
U))};this.getOnShowFilterCount=function(){for(var U=0,E=0;E<lb.getCount();E++)lb.getFilter(E).isOnShow()&&U++;return U};this.copyFiltersForSetting=function(){for(var U=[],E=0;E<lb.getCount();E++){var u=lb.getFilter(E).copyForSetting();U.push(u)}return U};this.applyFiltersFromSetting=function(U){for(var E=0;E<lb.getCount();E++)lb.getFilter(E).applyFromSetting(U[E])};this.toInsteadJson=function(U){for(var E=lb.toJsonObject(),u=[],g=0;g<U.length;g++){var d=U[g].toJsonObject();u.push(d)}E.filters=u;return E};
this.toPartJson=function(U){var E=lb.toJsonObject();0<=U&&(E.fields.splice(U,1),E.filters.splice(U,1));return E};var ea=this.toJsonObject;this.toJsonObject=function(){for(var U=ea(),E=[],u=0;u<$a.length;u++){var g=$a[u].toJsonObject();E.push(g)}U.filters=E;return U};var Ca=this.fromJsonObject;this.fromJsonObject=function(U,E){Ca(U,E);U=U.filters;$a=[];for(E=0;E<U.length;E++){var u=U[E];switch(u.name){case Jb.FILTER_NAME:var g=new Jb;break;case pa.FILTER_NAME:g=new pa;break;case Gb.FILTER_NAME:g=new Gb;
break;default:throw Error("Unknown filter name.");}g.fromJsonObject(u);$a[E]=g;ka(g,E)}}}function Yb(){nb.call(this);var lb=this.protectedMethod;this.bindMetaEvent=function(){lb.bindMetaEvent()};this.protectedCreateInstance=function(){return new Yb}}function Mb(){var lb=[],Na,$a=nb.SORT_ASC;this.getHeadValue=function(){return lb};this.setHeadValue=function(La){lb=La};this.getMeasureIndex=function(){return Na||0===Na?Na:-1};this.setMeasureIndex=function(La){Na=La};this.getOrder=function(){return $a};
this.setOrder=function(La){$a=La};this.toJsonObject=function(){for(var La={},ab=[],ma=0;ma<lb.length;ma++)ab.push(lb[ma].toJsonObject());La.headValue=ab;if(Na||0===Na)La.measure=Na;$a&&(La.order=$a);return La};this.fromJsonObject=function(La){lb=[];for(var ab=La.headValue,ma=0;ma<ab.length;ma++){var ha=new la;ha.fromJsonObject(ab[ma]);lb.push(ha)}Na=La.measure;$a=La.order}}function S(){var lb=this,Na=new Ga,$a,La,ab,ma,ha;this.getDesignerStatus=function(){!$a&&($a=new Ma);return $a};this.getExhibitionStatus=
function(){!La&&(La=new Ja);return La};this.getChartConfig=function(){ab||(ab=new ua,ab.addChangedListener(ta));return ab};this.addChartConfigChangedListener=function(ka){Na.addListener(ka)};this.removeChartConfigChangedListener=function(ka){Na.removeListener(ka)};var ta=function(ka,p){Na.fireEvent(function(ra){ra(ka,p?S.KEY_EXECUTE:S.KEY_REPAINT)})};this._innerSetItems=function(ka,p){La=ka;ab=p};this.getExportSetting=function(){return ma};this.setExportSetting=function(ka){ma=ka};this.getExportConfig=
function(){return ha};this.setExportConfig=function(ka){ha=ka};this.createExecutingCopy=function(ka,p){var ra=La?La.getJsonTreeExpandStates()?!0:!1:!1;ra=p||ra?La:null;ka=ab?ab.createExecutingCopy(ka):null;var ea=new S;ea._innerSetItems(ra,ka);p&&ea.setExportSetting(ma);p&&ea.setExportConfig(ha);return ea};this.toJsonObject=function(){var ka={};$a&&(ka.designerStatus=JSON.stringify($a.toJsonObject()));La&&(ka.exhibitionStatus=La.toJsonObject());ab&&(ka.chartConfig=lb.getChartConfig().toJsonObject());
ma&&(ka.exportSetting=ma);ha&&(ka.exportConfig=ha);return ka};this.fromJsonObject=function(ka){$a=new Ma;var p=ka.designerStatus;if(p)try{var ra=JSON.parse(p);$a.fromJsonObject(ra)}catch(ea){window.console&&console.log(ea)}else $a.setHide(!1);if(p=ka.exhibitionStatus)La=new Ja,La.fromJsonObject(p);(p=ka.chartConfig)&&lb.getChartConfig().fromJsonObject(p);ma=ka.exportSetting;ha=ka.exportConfig}}function Ma(){var lb=!0,Na=260,$a=320;this.isHide=function(){return lb};this.setHide=function(La){lb=La};
this.getWidth=function(){return Na};this.setWidth=function(La){Na=La};this.getHeight=function(){return $a};this.setHeight=function(La){$a=La};this.toJsonObject=function(){var La={};La.hide=lb;La.width=Na;La.height=$a;return La};this.fromJsonObject=function(La){lb=La.hide;Na=La.width;$a=La.height}}function Ja(){var lb,Na,$a,La,ab;this.setHeights=function(ma){lb=ma};this.getHeights=function(){return lb};this.setWidths=function(ma){Na=ma};this.getWidths=function(){return Na};this.getPaintableWidths=
function(){return La};this.getPaintableHeights=function(){return $a};this.collectPaintableStatus=function(ma,ha){$a=ma;La=ha};this.setJsonTreeExpandStates=function(ma){ab=ma};this.getJsonTreeExpandStates=function(){return ab};this.toJsonObject=function(){var ma={};lb&&(ma.row=lb);Na&&(ma.column=Na);ma.height=$a;ma.width=La;ab&&(ma.treeExpandState=ab);return ma};this.fromJsonObject=function(ma){lb=ma.row;Na=ma.column;$a=ma.height;La=ma.width;ab=ma.treeExpandState}}function ua(){var lb=this,Na=new Ga,
$a=!1,La=!0,ab,ma,ha,ta=0,ka=!1;this.addChangedListener=function(ea){Na.addListener(ea)};this.removeChangedListener=function(ea){Na.removeListener(ea)};var p=function(ea){ka|=ea;clearTimeout(ta);ta=setTimeout(function(){Na.fireEvent(function(Ca){Ca(lb,ka)});ka=!1},50)};this.setShowLabel=function(ea){$a!=ea&&($a=ea,p(!1))};this.isShowLabel=function(){return $a};this.setShowLegend=function(ea){La!=ea&&(La=ea,p(!0))};this.isShowLegend=function(){return La};this.getTableConfig=function(){ab||(ab=new fa,
ab.setChangedListener(ra));return ab};this.getPieConfig=function(){ma||(ma=new Ea,ma.setChangedListener(ra));return ma};this.getRectTreeConfig=function(){ha||(ha=new Va,ha.setChangedListener(ra));return ha};this.carry=function(ea,Ca,U){ab=ea;ma=Ca;ha=U};var ra=function(ea,Ca){p(Ca)};this.backup=function(){var ea=new ua;ea.setShowLabel($a);ea.setShowLegend(La);ea.carry(lb.getTableConfig().backup(),lb.getPieConfig().backup(),lb.getRectTreeConfig().backup());return ea};this.restore=function(ea){lb.setShowLabel(ea.isShowLabel());
lb.setShowLegend(ea.isShowLegend());lb.getTableConfig().restore(ea.getTableConfig());lb.getPieConfig().restore(ea.getPieConfig());lb.getRectTreeConfig().restore(ea.getRectTreeConfig())};this.createExecutingCopy=function(ea){var Ca=ea==wb.CHARTTYPE_PIE?ma:null;ea=ea==wb.CHARTTYPE_TREEMAP?ha:null;var U=new ua;U.setShowLabel($a);U.setShowLegend(La);U.carry(ab,Ca,ea);return U};this.toJsonObject=function(){var ea={};$a&&(ea.showLabel=!0);!La&&(ea.showLegend=!1);ab&&(ea.table=ab.toJsonObject());ma&&(ea.pie=
ma.toJsonObject());ha&&(ea.rectTree=ha.toJsonObject());return ea};this.fromJsonObject=function(ea){$a=!0===ea.showLabel?!0:!1;La=!1===ea.showLegend?!1:!0;var Ca=ea.table;Ca&&lb.getTableConfig().fromJsonObject(Ca);(Ca=ea.pie)&&lb.getPieConfig().fromJsonObject(Ca);(ea=ea.rectTree)&&lb.getRectTreeConfig().fromJsonObject(ea)}}function W(){var lb=this,Na;this.setChangedListener=function($a){Na=$a};this.protectedMethod={fireChanged:function($a){Na&&Na(lb,$a)}}}function fa(){W.call(this);var lb=this,Na=
this.protectedMethod,$a=!1,La=fa.PML_ATCOLUMN,ab=!0,ma=!0;this.isTotalAhead=function(){return $a};this.setTotalAhead=function(ha){$a!=ha&&($a=ha,Na.fireChanged(!0))};this.isParallelMeasureLayoutAtRow=function(){return La==fa.PML_ATROW};this.setParallelMeasureLayoutAtRow=function(ha){var ta=La;La=ha?fa.PML_ATROW:fa.PML_ATCOLUMN;La!=ta&&Na.fireChanged(!0)};this.isFrozenTop=function(){return ab};this.setFrozenTop=function(ha){ab!=ha&&(ab=ha,Na.fireChanged(!1))};this.isFrozenLeft=function(){return ma};
this.setFrozenLeft=function(ha){ma!=ha&&(ma=ha,Na.fireChanged(!1))};this.backup=function(){var ha=new fa;ha.setTotalAhead($a);ha.setParallelMeasureLayoutAtRow(lb.isParallelMeasureLayoutAtRow());ha.setFrozenTop(ab);ha.setFrozenLeft(ma);return ha};this.restore=function(ha){lb.setTotalAhead(ha.isTotalAhead());lb.setParallelMeasureLayoutAtRow(ha.isParallelMeasureLayoutAtRow());lb.setFrozenTop(ha.isFrozenTop());lb.setFrozenLeft(ha.isFrozenLeft())};this.toJsonObject=function(){var ha={};$a&&(ha.totalAhead=
!0);ha.parallelMeasureLayout=La;!ab&&(ha.frozenTop=!1);!ma&&(ha.frozenLeft=!1);return ha};this.fromJsonObject=function(ha){$a=ha.totalAhead?!0:!1;var ta=ha.parallelMeasureLayout;ta&&(La=ta);ab=!1!==ha.frozenTop;ma=!1!==ha.frozenLeft}}function Ea(){W.call(this);var lb=this,Na=this.protectedMethod,$a=0,La=Ea.LABEL_NUMBER,ab=!1;this.getTopN=function(){return $a};this.setTopN=function(ma){$a!=ma&&($a=ma,Na.fireChanged(!0))};this.getLabelType=function(){return La};this.setLabelType=function(ma){La!=ma&&
(La=ma,Na.fireChanged(!1))};this.isHideNegative=function(){return ab};this.setHideNegative=function(ma){ab!=ma&&(ab=ma,Na.fireChanged(!0))};this.backup=function(){var ma=new Ea;ma.setTopN($a);ma.setLabelType(La);ma.setHideNegative(ab);return ma};this.restore=function(ma){lb.setTopN(ma.getTopN());lb.setLabelType(ma.getLabelType());lb.setHideNegative(ma.isHideNegative())};this.toJsonObject=function(){var ma={};$a&&(ma.topN=$a);La&&(ma.labelType=La);ab&&(ma.hideNegative="true");return ma};this.fromJsonObject=
function(ma){var ha=ma.topN;$a=ha?parseInt(ha):0;La=(ha=ma.labelType)?parseInt(ha):0;ab=ma.hideNegative?!0:!1}}function Va(){W.call(this);var lb=this,Na=this.protectedMethod,$a=!1;this.isHideNegative=function(){return $a};this.setHideNegative=function(La){$a!=La&&($a=La,Na.fireChanged(!0))};this.backup=function(){var La=new Va;La.setHideNegative($a);return La};this.restore=function(La){lb.setHideNegative(La.isHideNegative())};this.toJsonObject=function(){var La={};$a&&(La.hideNegative="true");return La};
this.fromJsonObject=function(La){$a=La.hideNegative?!0:!1}}function Oa(lb){var Na,$a;this.isNumberAxis=function(){return lb==Oa.TYPE_NUMBER};this.isContinueAxis=function(){return lb==Oa.TYPE_CONTINUE};this.setDirection=function(La){Na=La};this.getDirection=function(){return Na};this.setDisplayName=function(La){$a=La};this.getDisplayName=function(){return $a}}"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});
"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.longer&&(com.kingdee.bos.qing.longer={});"undefined"==typeof com.kingdee.bos.qing.longer.model&&(com.kingdee.bos.qing.longer.model={});var wa=com.kingdee.bos.qing.longer.model;wa.AnalyticalModel=wb;wa.AnalyticalFieldSet=eb;wa.MarkFieldSet=pb;wa.FilterFieldSet=zb;wa.AnalyticalField=Yb;wa.SortingLane=Mb;wa.PieChartConfig=Ea;wa.AnalyticalPreferences=S;wa.ChartContext=function(){var lb=!0,Na=null,
$a=null,La;this.setLandscape=function(ab){lb=ab};this.isLandscape=function(){return lb};this.setSecondaryType=function(ab){Na=ab};this.getSecondaryType=function(){return Na};this.setAxisModel=function(ab){$a=ab};this.getAxisModel=function(){return $a};this.isForAxis=function(){return $a?!0:!1};this.setChatConfig=function(ab){La=ab};this.getChartConfig=function(){return La};this.isShowLabel=function(){return La?La.isShowLabel():!1}};wa.AxisModel=Oa;var Ga,Ia,hb,ib,nb,bb,la,Jb,pa,Gb,Vb,tb;(function(){var lb=
com.kingdee.bos.qing.common;Ga=lb.EventListenerList;lb=com.kingdee.bos.qing.core.model;Ia=lb.Meta;hb=lb.MetaField;ib=lb.AbstractQingModel;nb=lb.AbstractAnalyticalField;bb=lb.AbstractFilter;la=lb.ExecutableValue;Jb=lb.DiscreteFilter;pa=lb.ContinuousFilter;Gb=lb.ContinuousDateFilter;Vb=lb.BriefOutputableFields;tb=lb.LinkTargets})();wb.KEY_CLEAR="clearAll";wb.KEY_UNCLEAR="unclearAll";wb.KEY_CHART_TYPE="chartType";wb.KEY_ROW_GRAND_TOTAL="isRowGrandTotal";wb.KEY_COLUMN_GRAND_TOTAL="isColumnGrandTotal";
wb.KEY_SORTING_LANE="sortingLane";wb.KEY_TREE_EXPANDING="treeExpanding";wb.CHARTTYPE_TABLE="Table";wb.CHARTTYPE_HEATMAP="HeatMap";wb.CHARTTYPE_PIE="Pie";wb.CHARTTYPE_LINE="Line";wb.CHARTTYPE_MLINE="MultiLine";wb.CHARTTYPE_AREA="Area";wb.CHARTTYPE_BAR="Bar";wb.CHARTTYPE_STACKBAR="StackBar";wb.CHARTTYPE_TREEMAP="TreeMap";wb.CHARTTYPE_SCATTER="Scatter";eb.KEY_ADD="add";eb.KEY_REMOVE="remove";eb.KEY_REPLACE="replace";eb.KEY_CHANGE="change";pb.KEY_FIELD_MARK_TYPE="setFieldMarkType";pb.TYPE_LABEL="label";
pb.TYPE_COLOR="color";pb.TYPE_SIZE="size";pb.TYPE_ANGLE="angle";pb.TYPE_BLANK="blank";zb.KEY_FILTER="setFilter";zb.KEY_FILTER_VALUE="filterValueChanged";zb.KEY_FILTER_ONSHOW="filterOnShowChanged";Yb.InvalidPrompt_LEVEL_POSITION_WRONG=100;S.KEY_REPAINT="repaint";S.KEY_EXECUTE="execute";fa.PML_ATCOLUMN="AtColumn";fa.PML_ATROW="AtRow";Ea.LABEL_NAME=1;Ea.LABEL_NUMBER=2;Ea.LABEL_PERCENT=4;Oa.TYPE_NUMBER="number";Oa.TYPE_CONTINUE="continue";Oa.TYPE_DISCRETE="discrete";Oa.DIR_TOP="top";Oa.DIR_BOTTOM="bottom";
Oa.DIR_LEFT="left";Oa.DIR_RIGHT="right"})();(function(){"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.longer&&(com.kingdee.bos.qing.longer={});"undefined"==typeof com.kingdee.bos.qing.longer.controller&&(com.kingdee.bos.qing.longer.controller={});var Ya=com.kingdee.bos.qing.longer.controller,Lb,wb,eb,pb;(function(){var zb=com.kingdee.bos.qing.framework.common;
Lb=zb.MultilanguageManager.createPackageAccessor(Ya);zb=com.kingdee.bos.qing.core.controller;wb=zb.AbstractAction;eb=zb.AbstractActionAppendAllNecessaryDimensions;zb=com.kingdee.bos.qing.longer.model;pb=zb.AnalyticalField})();Ya.ActionClearModel=function(){wb.call(this);var zb,Yb;this.getCaption=function(){return Lb.get("clearModel","\u6e05\u9664")};this.setValue=function(Mb){zb=Mb};this.perform=function(){Yb=zb.clear()};this.unperform=function(){zb.undoClear(Yb)}};Ya.ActionAddAnalyticalField=function(zb){wb.call(this);
var Yb,Mb,S,Ma;this.getCaption=function(){return Ma};this.setValue=function(Ja,ua){Yb=Ja;Mb=ua;Ma=0<=zb.getIndex(Yb)?Lb.get("moveField","\u79fb\u52a8"):Lb.get("addField","\u6dfb\u52a0");Ma+=Yb.getComplexText()};this.perform=function(){S=zb.add(Yb,Mb)};this.unperform=function(){zb.undoAdd(Yb,S)}};Ya.ActionReplaceAnalyticalField=function(zb){wb.call(this);var Yb,Mb,S;this.getCaption=function(){return Lb.get("replaceField","\u66ff\u6362\u5206\u6790\u5b57\u6bb5")};this.setValue=function(Ma,Ja){Mb=Ma;
Yb=Ja};this.perform=function(){S=zb.replace(Mb,Yb)};this.unperform=function(){zb.undoReplace(Mb,Yb,S)}};Ya.ActionRemoveAnalyticalField=function(zb){wb.call(this);var Yb,Mb;this.getCaption=function(){return Lb.get("removeField","\u5220\u9664")+Yb.getComplexText()};this.setValue=function(S){Yb=S};this.perform=function(){Mb=zb.remove(Yb)};this.unperform=function(){zb.undoRemove(Yb,Mb)}};Ya.ActionKeepLogicalOrder=function(zb){wb.call(this);var Yb;this.perform=function(){Yb=zb.keepLogicalOrder()};this.unperform=
function(){zb.undoKeepLogicalOrder(Yb)}};Ya.ActionSetMarkType=function(zb){wb.call(this);var Yb=this,Mb,S;this.getCaption=function(){return Lb.get("setMarkType","\u8bbe\u7f6e#1\u503c\u5c55\u73b0\u65b9\u5f0f").replace("#1",Mb.getComplexText())};this.setValue=function(Ma,Ja){Mb=Ma;S=Ja};this.perform=function(){var Ma=zb.getFieldMatchingMarkType(Mb);zb.setFieldMatchingMarkType(Mb,S);S=Ma};this.unperform=function(){Yb.perform()}};Ya.ActionSetFilter=function(zb){wb.call(this);var Yb=this,Mb,S;this.setValue=
function(Ma,Ja){Mb=Ma;S=Ja};this.perform=function(){var Ma=zb.getFilter(Mb);zb.setFilter(Mb,S);S=Ma};this.unperform=function(){Yb.perform()}};Ya.ActionExpandHierachy=function(zb){wb.call(this);var Yb,Mb,S,Ma;this.getCaption=function(){return Lb.get("expandHierachy","\u5c55\u5f00")+Yb.getComplexText()};this.setValue=function(Ja,ua){Yb=ua;S=zb.getIndex(ua)+1;Mb=zb.createFieldForHierachyExpanding(Ja,ua)};this.perform=function(){Ma=zb.add(Mb,S)};this.unperform=function(){zb.undoAdd(Mb,Ma)}};Ya.ActionCollapseHierachy=
function(zb){wb.call(this);var Yb,Mb,S;this.getCaption=function(){return Lb.get("collapseHierachy","\u6536\u8d77")+Yb.getComplexText()};this.setValue=function(Ma,Ja){Yb=Ja;Mb=zb.searchFieldsForHierachyCollapsing(Ma,Ja)};this.perform=function(){S=zb.removeSome(Mb)};this.unperform=function(){zb.undoRemoveSome(Mb,S)}};Ya.ActionSetAllSelectedForDiscreteFilter=function(zb){wb.call(this);var Yb,Mb;this.setCaption=function(S){Yb=S};this.getCaption=function(){return Yb};this.perform=function(){Mb=zb.cloneAllSelectedValue();
zb.setFullValue(!0)};this.unperform=function(){zb.resetAllSelectedValue(Mb)}};Ya.ActionAppendAllNecessaryDimensions=function(){eb.call(this);var zb=this.protectedMethod,Yb,Mb,S;this.setValue=function(Ma,Ja){Yb=Ja.getFilterFieldSet();Mb=[];S=[];Ja=Ja.getUsingMetaFields(Ma);zb.visitMissingNecessaryDimensions(Ma,Ja,function(ua){var W=new pb;Mb.push(W);S.push(ua);return W})};this.perform=function(){Yb.addSome(Mb,S)};this.unperform=function(){Yb.removeSome(Mb)}}})();(function(){function Ya(u){var g=this,d,e,c;this.getName=function(){return u};this.getText=function(){return d};this.getIconFileName=function(){return e};this.getSuppliedMarks=function(){throw Error("Override me.");};this.getCardsDynamicInfo=function(){c||(c=new Yb,c.getColumnCardInfo().setTitle(ib.get("columnCardTitle","\u5217")),c.getRowCardInfo().setTitle(ib.get("rowCardTitle","\u884c")),c.getMarkCardInfo().setTitle(ib.get("markCardTitle","\u503c\u5c55\u73b0\u65b9\u5f0f")));return c};this.getCardsOperatingPrompt=
function(x){return new zb(null,null,null)};this.smartChangeModel=function(x,A,N){throw Error("Override me.");};this.smartDropField=function(x,A,N,ba){};this.rowColReverse=function(x,A){A.compositeStart(ib.get("rowColReverse","\u884c\u5217\u7f6e\u6362"));g.protectedRowColReverseImpl(x,A);A.compositeEnd()};this.isFieldValid=function(x,A,N){};this.isCellMeasurable=function(x){return!1};this.getSuggestedSize=function(x,A){throw Error("Override me.");};this.createJsonCellParser=function(){throw Error("Override me.");
};this.exhibit=function(x,A,N,ba,ca,M,ia){throw Error("Override me.");};this.isRowColReverseEnable=function(x){var A=x.getRowAnalyticalFieldSet();x=x.getColumnAnalyticalFieldSet();return 0<A.getCount()||0<x.getCount()};this.protectedRowColReverseImpl=function(x,A){var N=x.getRowAnalyticalFieldSet();x=x.getColumnAnalyticalFieldSet();for(var ba=[],ca=[],M=0;M<N.getCount();M++)ba.push(N.get(M));for(M=0;M<x.getCount();M++)ca.push(x.get(M));for(M=0;M<N.getCount();M++){var ia=new $a(N);ia.setValue(N.get(M));
A.perform(ia)}for(M=0;M<x.getCount();M++)ia=new $a(x),ia.setValue(x.get(M)),A.perform(ia);for(M=0;M<ba.length;M++)ia=new Na(x),ia.setValue(ba[M]),A.perform(ia);for(M=0;M<ca.length;M++)ia=new Na(N),ia.setValue(ca[M]),A.perform(ia)};var b=function(x){return x.getMarkFieldSet()},q=function(x,A,N,ba,ca){for(var M=0,ia=A.getCount();M<ia;M++){var sa=A.get(M);if(A instanceof pa){var mb=A.getFieldMatchingMarkType(M);for(var Wa=!1,xb=0;xb<N.length;xb++){var gb=N[xb][1];if(N[xb][0]==mb&&gb==sa.getRole()){Wa=
!0;break}}Wa||(mb=null)}sa.isDimension()?ba.push(new wb(sa,mb)):sa.isMeasure()&&ca.push(new wb(sa,mb));Wa=new $a(A);Wa.setValue(sa);x.perform(Wa)}},t=function(x,A,N,ba){for(var ca=0;ca<A.length;ca++){var M=A[ca];if(M instanceof wb){var ia=M.getField();var sa=M.getExtendInfo()}else ia=M;if(!ba||ia.getMetaField().getDataType()==ba){M=x;for(var mb=sa,Wa=!1,xb=0;xb<M.length;xb++){var gb=M[xb].getField();if(gb.getMetaField()==ia.getMetaField()&&gb.getRole()==ia.getRole())if(gb.isMeasure()){if(gb.getAggregation()==
ia.getAggregation()){Wa=!0;break}}else{Wa=!0;break}}Wa?M=!1:(M.push(new wb(ia,mb)),M=!0);if(N&&M){A.splice(ca,1);break}}}},w=function(x,A){for(var N=0;N<x.length;N++)if(x[N].getExtendInfo()==A)return N;return-1};this.protectedMethod={setText:function(x){d=x},setIconFileName:function(x){e=x},getCommonClickListener:function(x,A,N){return function(ba,ca,M){A.toggleMenu(ba,ca)&&N.setMouseStateLocked(!0);ba=x.getJsonForDetailSearching(M);A.setDetailSearchingParam(ba)}},getCommonTooltipsListener:function(x,
A,N){var ba=function(){N.setMouseStateLocked(!1)};return function(ca,M,ia){if(ca&&x){A.setPosition(ca,M);ca=x.getDisplayShedTitle();M=[];for(var sa=0;sa<ca.length;sa++){var mb=ca[sa];M.push({key:mb.key,value:mb.value})}M=M.concat(ia);A.setContent(M);A.hookHideAnnouncer(ba)}else A.hide()}},getMarkFieldSet:b,setCardsTitle:function(x,A,N){var ba=g.getCardsDynamicInfo();x&&ba.getColumnCardInfo().setTitle(x);A&&ba.getRowCardInfo().setTitle(A);N&&ba.getMarkCardInfo().setTitle(N)},isMeasureExist:function(x){for(var A=
x.getCount()-1;0<=A;A--){var N=x.get(A);if(N.isMeasure()&&!N.getInvalidPrompt())return!0}return!1},lookupMeasures:function(x,A){for(var N=0;N<x.getCount();N++){var ba=x.get(N);ba.isMeasure()&&A(ba)}},lookupMarks:function(x,A,N){for(var ba=0;ba<x.getCount();ba++){var ca=x.get(ba);x.getFieldMatchingMarkType(ba)==A&&N(ca)}},isMarkExist:function(x,A){for(var N=0;N<x.getCount();N++)if(x.getFieldMatchingMarkType(N)==A)return!0;return!1},setFieldInvalid:function(x,A){var N=new bb.InvalidPrompt;N.setLevel(Jb.InvalidPrompt_LEVEL_POSITION_WRONG,
A?!0:!1);N.setPromptText(A);x.setInvalidPrompt(N)},washFields:function(x,A,N){var ba=[],ca=[];q(x,A.getRowAnalyticalFieldSet(),N,ba,ca);var M=[],ia=[];q(x,A.getColumnAnalyticalFieldSet(),N,M,ia);var sa=[],mb=[];q(x,b(A),N,sa,mb);x=new eb;x.setWashedFields(ba,ca,M,ia,sa,mb);return x},mergeAllNoDuplicated:function(x,A){t(x,A,!1)},mergeOnlyOneNoDuplicated:function(x,A,N){t(x,A,!0,N)},searchMark:function(x,A){A=w(x,A);return 0<=A?x[A]:null},pickupMark:function(x,A){A=w(x,A);if(0<=A){var N=x[A];x.splice(A,
1);return N}return null},patchMark:function(x,A,N){for(var ba=0;ba<x.length;ba++){var ca=x[ba];if(!ca.getExtendInfo()&&(ca.setExtendInfo(A),N))break}},appendFields:function(x,A,N){for(var ba=0;ba<A.length;ba++){var ca=A[ba],M=ca.getField(),ia=new Na(N);ia.setValue(M);x.perform(ia);N instanceof pa&&(ca=ca.getExtendInfo(),ia=new La(N),ia.setValue(M,ca),x.perform(ia))}}}}function Lb(){this.isRowColReverseEnable=function(u){var g=u.getRowAnalyticalFieldSet();u=u.getColumnAnalyticalFieldSet();for(var d=
[],e=[],c=0;c<g.getCount();c++){var b=g.get(c);b.isDimension()&&d.push(b)}for(c=0;c<u.getCount();c++)b=u.get(c),b.isDimension()&&e.push(b);return 0<d.length||1<e.length};this.protectedRowColReverseImpl=function(u,g){var d=u.getRowAnalyticalFieldSet();u=u.getColumnAnalyticalFieldSet();for(var e=[],c=[],b=0;b<d.getCount();b++){var q=d.get(b);q.isDimension()&&e.push(q)}for(b=0;b<u.getCount();b++)q=u.get(b),q.isDimension()&&c.push(q);0<c.length&&c.pop();for(b=0;b<e.length;b++)q=new $a(d),q.setValue(e[b]),
g.perform(q);for(b=0;b<c.length;b++)q=new $a(u),q.setValue(c[b]),g.perform(q);for(b=e.length-1;0<=b;b--)q=new Na(u),q.setValue(e[b],0),g.perform(q);for(b=c.length-1;0<=b;b--)q=new Na(d),q.setValue(c[b],0),g.perform(q)}}function wb(u,g){var d=g;this.getField=function(){return u};this.getExtendInfo=function(){return d};this.setExtendInfo=function(e){d=e}}function eb(){var u,g,d,e,c,b;this.setWashedFields=function(q,t,w,x,A,N){u=q;g=t;d=w;e=x;c=A;b=N};this.getRowDimensionWrap=function(){return u};this.getRowMesaureWrap=
function(){return g};this.getColumnDimensionWrap=function(){return d};this.getColumnMesaureWrap=function(){return e};this.getMarkDimensionWrap=function(){return c};this.getMarkMesaureWrap=function(){return b}}function pb(){var u=this,g,d,e,c,b=-1,q=-1,t=-1,w=null,x=null;this.getMinWidth=function(){return g};this.getMaxWidth=function(){return d};this.getMinHeight=function(){return e};this.getMaxHeight=function(){return c};this.setSize=function(A,N){u.setMinSize(A,N);u.setMaxSize(A,N)};this.setMinSize=
function(A,N){g=A;e=N};this.setMaxSize=function(A,N){d=A;c=N};this.getWidthHeightRatio=function(){return b};this.setWidthHeightRatio=function(A){b=A};this.getLeftAxisColumnWidth=function(){return q};this.setLeftAxisColumnWidth=function(A){q=A};this.getTopAxisRowHeight=function(){return t};this.setTopAxisRowHeight=function(A){t=A};this.isLeftAsNumberAxis=function(){return w};this.setLeftAsNumberAxis=function(A){w=A};this.isTopAsNumberAxis=function(){return x};this.setTopAsNumberAxis=function(A){x=
A}}function zb(u,g,d){this.getColumnCardPrompt=function(){return u};this.getRowCardPrompt=function(){return g};this.getMarkCardPrompt=function(){return d}}function Yb(){function u(){var c;this.setTitle=function(b){c=b};this.getTitle=function(){return c}}var g=new u,d=new u,e=new u;this.getColumnCardInfo=function(){return g};this.getRowCardInfo=function(){return d};this.getMarkCardInfo=function(){return e}}function Mb(){var u=this,g;this.parseCommonCell=function(d){g=null;d&&(g=u.parseExhibitModel(d))};
this.getCommonModel=function(){return g};this.parseAxisModel=function(d){throw Error("Override me.");};this.parseExhibitModel=function(d){throw Error("Override me.");}}function S(){Mb.call(this);var u=this;this.parseAxisModel=function(d){var e=d.title,c=new Vb(d.axis);e&&c.setDisplayName(e);switch(d.dir){case "top":c.setDirection(Vb.DIR_TOP);break;case "bottom":c.setDirection(Vb.DIR_BOTTOM);break;case "left":c.setDirection(Vb.DIR_LEFT);break;case "right":c.setDirection(Vb.DIR_RIGHT)}return c};this.parseExhibitModel=
function(d){return g(d?d.chart:null)};var g=function(d){d?d=ab.createFromJson(d):(d=new ab,d.setCategories([]),d.setSeries([]));var e=d,c=u.getCommonModel();c&&e.merge(c);return d};this.protectedMethod={parseChartModelImpl:g}}function Ma(){Mb.call(this);this.parseExhibitModel=function(u){return[ma.createFromJson(u?u.tree:{root:[]}),u]}}function Ja(){function u(){Mb.call(this);var d=this;this.parseExhibitModel=function(e){if(e){var c=d.getCommonModel();if(c){var b=c.colorTitle;b&&(e.colorTitle=b);
(c=c.title)&&(e.title=c)}}return e}}Ya.call(this,la.CHARTTYPE_TABLE);var g=this.protectedMethod;g.setIconFileName("chart_table");g.setText(ib.get("table","\u8868\u683c"));g.setCardsTitle(null,null,ib.get("markCardTitleForTable","\u6570\u503c\u533a\u57df"));this.getSuppliedMarks=function(){return[pa.TYPE_LABEL,pa.TYPE_COLOR]};this.smartDropField=function(d,e,c,b){var q=g.getMarkFieldSet(d);e==q?(!c.isMeasure()&&c.getMetaField().isCanAsMeasure()&&(d=c.getMetaField().getDataType()==nb.DT_NUMBER,e=new tb(c),
e.setValue(d?bb.AGGREGATION_SUM:bb.AGGREGATION_COUNT),b.perform(e),d=new lb(c),d.setValue(null),b.perform(d)),q=new La(q),q.setValue(c,pa.TYPE_LABEL),b.perform(q)):e!=d.getColumnAnalyticalFieldSet()&&e!=d.getRowAnalyticalFieldSet()||c.isDimension()||!c.getMetaField().isCanAsDimension()||(e=new tb(c),e.setValue(bb.ROLE_DIMENSION),b.perform(e),c.getMetaField().getDataType()!=nb.DT_DATE||c.getPartValue()||(d=new lb(c),d.setValue(bb.PARTVALUE_DATE_YEAR),b.perform(d)))};this.smartChangeModel=function(d,
e,c){var b=g.washFields(e,d,[[pa.TYPE_LABEL,bb.ROLE_MEASURE],[pa.TYPE_COLOR,bb.ROLE_MEASURE]]),q=b.getRowDimensionWrap(),t=b.getRowMesaureWrap(),w=b.getColumnDimensionWrap(),x=b.getColumnMesaureWrap(),A=b.getMarkDimensionWrap();b=b.getMarkMesaureWrap();var N=c.getDimensionSelecteds();c=c.getMeasureSelecteds();1<q.length+A.length+N.length&&(0==w.length&&g.mergeOnlyOneNoDuplicated(w,A),0==w.length&&g.mergeOnlyOneNoDuplicated(w,N));g.mergeAllNoDuplicated(q,A);g.mergeAllNoDuplicated(q,N);g.mergeAllNoDuplicated(b,
t);g.mergeAllNoDuplicated(b,x);g.mergeAllNoDuplicated(b,c);g.patchMark(b,pa.TYPE_LABEL);g.appendFields(e,q,d.getRowAnalyticalFieldSet());g.appendFields(e,w,d.getColumnAnalyticalFieldSet());g.appendFields(e,b,g.getMarkFieldSet(d))};this.getCardsOperatingPrompt=function(d){var e=null,c=null,b=null;0==d.getRowAnalyticalFieldSet().getCount()+d.getColumnAnalyticalFieldSet().getCount()&&(e=c=ib.get("tryDragTextField","\u5c1d\u8bd5\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));0==g.getMarkFieldSet(d).getCount()&&
(b=ib.get("dragNumField","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));return new zb(c,e,b)};this.isFieldValid=function(d,e,c){if(e==d.getRowAnalyticalFieldSet()||e==d.getColumnAnalyticalFieldSet()){if(null!=c&&c.isMeasure())return g.setFieldInvalid(c,ib.get("tableRowColCardPrompt","\u5f53\u56fe\u8868\u7c7b\u578b\u4e3a\u201c\u8868\u683c\u201d\uff0c\u884c/\u5217\u4e0a\u4e0d\u80fd\u6709\u5ea6\u91cf\u3002")),!1}else if(e==g.getMarkFieldSet(d)){d=!0;for(var b=c=0;b<e.getCount();b++){var q=
e.get(b),t=e.getFieldMatchingMarkType(q);q.isDimension()?(g.setFieldInvalid(q,ib.get("tableMarkCardPrompt","\u6570\u503c\u533a\u57df\u4e2d\u4e0d\u80fd\u6709\u7ef4\u5ea6\uff0c\u5c1d\u8bd5\u62d6\u5230\u884c/\u5217\u4e0a\u3002")),d=!1):t==pa.TYPE_COLOR&&(c++,1==c?g.setFieldInvalid(q,null):(g.setFieldInvalid(q,ib.get("onlyOneFieldForColor","\u53ea\u80fd\u6709\u4e00\u4e2a\u5b57\u6bb5\u5c55\u73b0\u4e3a\u989c\u8272\u3002")),d=!1))}return d}return!0};this.isCellMeasurable=function(d){return!0};this.getSuggestedSize=
function(d,e){d=new pb;d.setSize(120,24);return d};this.createJsonCellParser=function(){return new u};this.exhibit=function(d,e,c,b,q,t,w){b&&(d.onmousemove=function(x){w.setPosition(x.clientX,x.clientY);x=[];for(var A=t.getDisplayShedTitle(),N=0;N<A.length;N++){var ba=A[N];x.push({key:ba.key,value:ba.value})}x.push({key:b.title,value:b.text});b.colorTitle&&b.colorText&&x.push({key:b.colorTitle,value:b.colorText});w.setContent(x);d.style.cursor="pointer"},$(d).on("mouseleave",function(x){w.hide()}),
d.onclick=function(x){w.toggleMenu(x.clientX,x.clientY);x=t.getJsonForDetailSearching();w.setDetailSearchingParam(x)})}}function ua(){function u(){Mb.call(this);var d=this;this.parseExhibitModel=function(e){if(e){var c=d.getCommonModel();if(c){var b=c.colorTitle;b&&(e.colorTitle=b);(c=c.sizeTitle)&&(e.sizeTitle=c)}}return e}}Ya.call(this,la.CHARTTYPE_HEATMAP);var g=this.protectedMethod;g.setIconFileName("chart_heatmap");g.setText(ib.get("heatmap","\u70ed\u529b\u56fe"));this.getSuppliedMarks=function(){return[pa.TYPE_SIZE,
pa.TYPE_COLOR]};this.smartDropField=function(d,e,c,b){d=g.getMarkFieldSet(d);e==d&&(c.isMeasure()?(e=new La(d),g.isMarkExist(d,pa.TYPE_SIZE)?g.isMarkExist(d,pa.TYPE_COLOR)?e.setValue(c,pa.TYPE_SIZE):e.setValue(c,pa.TYPE_COLOR):e.setValue(c,pa.TYPE_SIZE)):(e=new La(d),e.setValue(c,pa.TYPE_SIZE)),b.perform(e))};this.smartChangeModel=function(d,e,c){var b=g.washFields(e,d,[[pa.TYPE_SIZE,bb.ROLE_MEASURE],[pa.TYPE_COLOR,bb.ROLE_MEASURE]]),q=b.getRowDimensionWrap(),t=b.getRowMesaureWrap(),w=b.getColumnDimensionWrap(),
x=b.getColumnMesaureWrap(),A=b.getMarkDimensionWrap();b=b.getMarkMesaureWrap();var N=c.getDimensionSelecteds();c=c.getMeasureSelecteds();1<q.length+A.length+N.length&&(0==w.length&&g.mergeOnlyOneNoDuplicated(w,A),0==w.length&&g.mergeOnlyOneNoDuplicated(w,N));g.mergeAllNoDuplicated(q,A);g.mergeAllNoDuplicated(q,N);g.mergeAllNoDuplicated(b,t);g.mergeAllNoDuplicated(b,x);g.mergeAllNoDuplicated(b,c);g.searchMark(b,pa.TYPE_SIZE)||g.patchMark(b,pa.TYPE_SIZE,!0);g.searchMark(b,pa.TYPE_COLOR)||g.patchMark(b,
pa.TYPE_COLOR,!0);g.patchMark(b,pa.TYPE_SIZE);g.appendFields(e,q,d.getRowAnalyticalFieldSet());g.appendFields(e,w,d.getColumnAnalyticalFieldSet());g.appendFields(e,b,g.getMarkFieldSet(d))};this.getCardsOperatingPrompt=function(d){var e=null,c=null,b=null;0==d.getRowAnalyticalFieldSet().getCount()+d.getColumnAnalyticalFieldSet().getCount()&&(e=c=ib.get("tryDragTextField","\u5c1d\u8bd5\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));0==g.getMarkFieldSet(d).getCount()&&(b=ib.get("dragNumField",
"\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));return new zb(c,e,b)};this.isFieldValid=function(d,e,c){if(e==d.getRowAnalyticalFieldSet()||e==d.getColumnAnalyticalFieldSet()){if(null!=c&&c.isMeasure())return g.setFieldInvalid(c,ib.get("heatmapRowColCardPrompt","\u5f53\u56fe\u8868\u7c7b\u578b\u4e3a\u201c\u70ed\u529b\u56fe\u201d\uff0c\u884c/\u5217\u4e0a\u4e0d\u80fd\u6709\u5ea6\u91cf\u3002")),!1}else if(e==g.getMarkFieldSet(d)){d=!0;for(var b=c=0,q=0;q<e.getCount();q++){var t=e.get(q),
w=e.getFieldMatchingMarkType(t);t.isDimension()?(g.setFieldInvalid(t,ib.get("heatmapMarkCardPrompt","\u6570\u503c\u533a\u57df\u4e2d\u4e0d\u80fd\u6709\u7ef4\u5ea6\uff0c\u5c1d\u8bd5\u62d6\u5230\u884c/\u5217\u4e0a\u3002")),d=!1):w==pa.TYPE_COLOR?(c++,1==c?g.setFieldInvalid(t,null):(g.setFieldInvalid(t,ib.get("onlyOneFieldForColor","\u53ea\u80fd\u6709\u4e00\u4e2a\u5b57\u6bb5\u5c55\u73b0\u4e3a\u989c\u8272\u3002")),d=!1)):w==pa.TYPE_SIZE&&(b++,1==b?g.setFieldInvalid(t,null):(g.setFieldInvalid(t,ib.get("onlyOneFieldForSize",
"\u53ea\u80fd\u6709\u4e00\u4e2a\u5b57\u6bb5\u8868\u793a\u5927\u5c0f\u3002")),d=!1))}return d}return!0};this.isCellMeasurable=function(d){return!0};this.getSuggestedSize=function(d,e){d=new pb;d.setSize(60,30);return d};this.createJsonCellParser=function(){return new u};this.exhibit=function(d,e,c,b,q,t,w){if(b){var x=new ta;x.setColor(b.color);if("shape"==q.getSecondaryType()){var A=parseFloat(b.size);A=parseInt(.8*Math.min(e,c)*A);x.setDiameter(A);x.drawShape(d,e,c)}else"color"==q.getSecondaryType()&&
x.drawColorRect(d,e,c);x.setClickListener(function(ba,ca,M){g.getCommonClickListener(t,w,x)(ba,ca,null)});x.setTooltipsListener(function(ba,ca,M){if(ba&&t){w.setPosition(ba,ca);ba=t.getDisplayShedTitle();for(ca=0;ca<ba.length;ca++){var ia=ba[ca];M.push({key:ia.key,value:ia.value})}"shape"==q.getSecondaryType()&&M.push({key:b.sizeTitle,value:b.sizeText});b.colorTitle&&b.colorText&&M.push({key:b.colorTitle,value:b.colorText});w.setContent(M);d.style.cursor="pointer";w.hookHideAnnouncer(N)}else w.hide()});
var N=function(){x.setMouseStateLocked(!1)}}}}function W(){function u(){S.call(this);var e=this.protectedMethod;this.parseExhibitModel=function(c){return[e.parseChartModelImpl(c?c.pie:null),c]}}Ya.call(this,la.CHARTTYPE_PIE);var g=this.protectedMethod;g.setIconFileName("chart_pie");g.setText(ib.get("chartPie","\u997c\u56fe"));this.getSuppliedMarks=function(){return[pa.TYPE_ANGLE,pa.TYPE_COLOR,pa.TYPE_SIZE]};this.smartDropField=function(e,c,b,q){e=g.getMarkFieldSet(e);c==e&&(c=new La(e),b.isDimension()?
c.setValue(b,pa.TYPE_COLOR):g.isMarkExist(e,pa.TYPE_ANGLE)?c.setValue(b,pa.TYPE_SIZE):c.setValue(b,pa.TYPE_ANGLE),q.perform(c))};this.smartChangeModel=function(e,c,b){var q=g.washFields(c,e,[[pa.TYPE_COLOR,bb.ROLE_DIMENSION],[pa.TYPE_ANGLE,bb.ROLE_MEASURE],[pa.TYPE_SIZE,bb.ROLE_MEASURE]]),t=q.getRowDimensionWrap(),w=q.getRowMesaureWrap(),x=q.getColumnDimensionWrap(),A=q.getColumnMesaureWrap(),N=q.getMarkDimensionWrap();q=q.getMarkMesaureWrap();var ba=b.getDimensionSelecteds();b=b.getMeasureSelecteds();
var ca=g.pickupMark(N,pa.TYPE_COLOR);ca||(ca=[],0==ca.length&&g.mergeOnlyOneNoDuplicated(ca,N),0==ca.length&&g.mergeOnlyOneNoDuplicated(ca,ba),0==ca.length&&g.mergeOnlyOneNoDuplicated(ca,t),0==ca.length&&g.mergeOnlyOneNoDuplicated(ca,x),ca=0==ca.length?null:new wb(ca[0].getField(),pa.TYPE_COLOR));1<t.length+N.length+ba.length&&(0==x.length&&g.mergeOnlyOneNoDuplicated(x,N),0==x.length&&g.mergeOnlyOneNoDuplicated(x,ba));g.mergeAllNoDuplicated(t,N);g.mergeAllNoDuplicated(t,ba);g.mergeAllNoDuplicated(q,
w);g.mergeAllNoDuplicated(q,A);g.mergeAllNoDuplicated(q,b);g.searchMark(q,pa.TYPE_ANGLE)||g.patchMark(q,pa.TYPE_ANGLE,!0);g.patchMark(q,pa.TYPE_SIZE);g.searchMark(q,pa.TYPE_ANGLE)||(w=g.searchMark(q,pa.TYPE_SIZE))&&w.setExtendInfo(pa.TYPE_ANGLE);g.patchMark(N,pa.TYPE_COLOR);g.appendFields(c,t,e.getRowAnalyticalFieldSet());g.appendFields(c,x,e.getColumnAnalyticalFieldSet());ca&&g.appendFields(c,[ca],g.getMarkFieldSet(e));g.appendFields(c,q,g.getMarkFieldSet(e))};this.getCardsOperatingPrompt=function(e){var c=
null;0==g.getMarkFieldSet(e).getCount()&&(c=ib.get("dragNumAndTextField","\u5c06\u4e00\u4e2a\u6570\u503c\u5b57\u6bb5\u548c\u4e00\u4e2a\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));return new zb(null,null,c)};this.isFieldValid=function(e,c,b){if(c==e.getRowAnalyticalFieldSet()||c==e.getColumnAnalyticalFieldSet()){if(null!=b&&b.isMeasure())return g.setFieldInvalid(b,ib.get("pieRowColCardPrompt","\u5f53\u56fe\u8868\u7c7b\u578b\u4e3a\u997c\u56fe\uff0c\u884c/\u5217\u4e0a\u4e0d\u80fd\u6709\u5ea6\u91cf\u3002")),
!1}else if(c==g.getMarkFieldSet(e)){e=!0;for(var q=0,t=0,w=0,x=0;x<c.getCount();x++){var A=c.get(x),N=c.getFieldMatchingMarkType(A),ba=!0;A.isDimension()&&N!=pa.TYPE_COLOR?ba=!1:A.isMeasure()&&N!=pa.TYPE_ANGLE&&N!=pa.TYPE_SIZE&&(ba=!1);ba?N==pa.TYPE_COLOR?(q++,1==q?g.setFieldInvalid(A,null):(g.setFieldInvalid(A,ib.get("onlyOneFieldForColor","\u53ea\u80fd\u6709\u4e00\u4e2a\u5b57\u6bb5\u5c55\u73b0\u4e3a\u989c\u8272\u3002")),e=!1)):N==pa.TYPE_ANGLE?(t++,1==t?g.setFieldInvalid(A,null):(g.setFieldInvalid(A,
ib.get("onlyOneFieldForAngle","\u53ea\u80fd\u6709\u4e00\u4e2a\u5b57\u6bb5\u4f5c\u4e3a\u89d2\u5ea6\u3002")),e=!1)):N==pa.TYPE_SIZE&&(w++,1==w?g.setFieldInvalid(A,null):(g.setFieldInvalid(A,ib.get("onlyOneFieldForSize","\u53ea\u80fd\u6709\u4e00\u4e2a\u5b57\u6bb5\u8868\u793a\u5927\u5c0f\u3002")),e=!1)):(null!=b&&g.setFieldInvalid(b,ib.get("pieMarkCardPrompt","\u7528\u7ef4\u5ea6\u8868\u793a\u989c\u8272\uff0c\u7528\u5ea6\u91cf\u8868\u793a\u89d2\u5ea6\u3002")),e=!1)}return e}return!0};this.isCellMeasurable=
function(e){e=g.getMarkFieldSet(e);return g.isMarkExist(e,pa.TYPE_SIZE)};this.getSuggestedSize=function(e,c){e=new pb;e.setSize(200,200);c.getRowAnalyticalFieldSet().hasAnyDimension()||(c.getColumnAnalyticalFieldSet().hasAnyDimension()?e.setLeftAxisColumnWidth(50):(e.setLeftAxisColumnWidth(10),e.setTopAxisRowHeight(10)));return e};this.createJsonCellParser=function(){return new u};this.exhibit=function(e,c,b,q,t,w,x){var A=q[0],N=q[1];q=parseInt(.8*Math.min(c,b));var ba=N?N.size:null;ba&&(ba=parseFloat(ba),
q=parseInt(q*ba));ba=t.getChartConfig();var ca=new ra;ca.setModel(A);ca.getAttr().setShowDataLabel(t.isShowLabel());ca.getAttr().setDataLabelType(d(ba.getPieConfig().getLabelType()));ca.setDiameter(q);ca.draw(e,c,b);ca.setClickListener(function(ia,sa,mb){var Wa=g.getCommonClickListener(w,x,ca);0<=mb?(mb=[ca.getModel().getCategories()[mb].getExecutableValue()],Wa(ia,sa,mb)):N&&N.sizeTitle&&Wa(ia,sa,null)});ca.setTooltipsListener(function(ia,sa,mb){if(ia&&w){x.setPosition(ia,sa);ia=w.getDisplayShedTitle();
sa=[];for(var Wa=0;Wa<ia.length;Wa++){var xb=ia[Wa];sa.push({key:xb.key,value:xb.value})}if(mb&&0!=mb.length)sa=sa.concat(mb);else if(N&&N.sizeTitle)sa.push({key:N.sizeTitle,value:N.sizeText});else{x.hide();return}x.setContent(sa);x.hookHideAnnouncer(M)}else x.hide()});var M=function(){ca.setMouseStateLocked(!1)}};var d=function(e){var c=0;(e&Gb.LABEL_NAME)==Gb.LABEL_NAME&&(c|=ha.SHOW_LABEL_NAME);(e&Gb.LABEL_NUMBER)==Gb.LABEL_NUMBER&&(c|=ha.SHOW_LABEL_NUMBER);(e&Gb.LABEL_PERCENT)==Gb.LABEL_PERCENT&&
(c|=ha.SHOW_LABEL_PERCENT);return c}}function fa(){Ya.call(this,la.CHARTTYPE_LINE);Lb.call(this);var u=this.protectedMethod;u.setIconFileName("chart_line");u.setText(ib.get("chartLine","\u6298\u7ebf\u56fe"));u.setCardsTitle(ib.get("columnCardTitleWithAxis","\u5217\uff08\u6a2a\u8f74\uff09"),ib.get("rowCardTitleWithAxis","\u884c\uff08\u7eb5\u8f74\uff09")," ");this.getSuppliedMarks=function(){return[]};this.smartChangeModel=function(g,d,e){var c=u.washFields(d,g,[]),b=c.getRowDimensionWrap(),q=c.getRowMesaureWrap(),
t=c.getColumnDimensionWrap(),w=c.getColumnMesaureWrap(),x=c.getMarkDimensionWrap();c=c.getMarkMesaureWrap();var A=e.getDimensionSelecteds();e=e.getMeasureSelecteds();0==t.length&&u.mergeOnlyOneNoDuplicated(t,x,nb.DT_STRING);0==t.length&&u.mergeOnlyOneNoDuplicated(t,A,nb.DT_STRING);0==t.length&&u.mergeOnlyOneNoDuplicated(t,b,nb.DT_STRING);var N=t.length;t.length==N&&u.mergeOnlyOneNoDuplicated(t,x,nb.DT_DATE);t.length==N&&u.mergeOnlyOneNoDuplicated(t,A,nb.DT_DATE);t.length==N&&u.mergeOnlyOneNoDuplicated(t,
b,nb.DT_DATE);u.mergeAllNoDuplicated(b,x);u.mergeAllNoDuplicated(b,A);u.mergeAllNoDuplicated(q,w);u.mergeAllNoDuplicated(q,c);u.mergeAllNoDuplicated(q,e);u.appendFields(d,b,g.getRowAnalyticalFieldSet());u.appendFields(d,q,g.getRowAnalyticalFieldSet());u.appendFields(d,t,g.getColumnAnalyticalFieldSet())};this.getCardsOperatingPrompt=function(g){var d=null,e=null;0==g.getRowAnalyticalFieldSet().getCount()&&(d=ib.get("dragNumField","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));0==
g.getColumnAnalyticalFieldSet().getCount()&&(e=ib.get("tryDragDateField","\u5c1d\u8bd5\u5c06\u65e5\u671f\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));return new zb(e,d,null)};this.isFieldValid=function(g,d,e){if(null==e){var c=0,b=!0;d==g.getRowAnalyticalFieldSet()&&u.lookupMeasures(g.getRowAnalyticalFieldSet(),function(q){c++;1==c?u.setFieldInvalid(q,null):(u.setFieldInvalid(q,ib.get("chartLineRowCardPrompt","\u5f53\u56fe\u8868\u7c7b\u578b\u4e3a\u6298\u7ebf\u56fe\uff0c\u884c\u4e0a\u53ea\u80fd\u6709\u4e00\u4e2a\u5ea6\u91cf\u3002")),
b=!1)});return b}return d==g.getRowAnalyticalFieldSet()?(c=0,b=!0,e.isMeasure()&&u.lookupMeasures(g.getRowAnalyticalFieldSet(),function(q){c++;1==c?u.setFieldInvalid(q,null):(u.setFieldInvalid(q,ib.get("chartLineRowCardPrompt","\u5f53\u56fe\u8868\u7c7b\u578b\u4e3a\u6298\u7ebf\u56fe\uff0c\u884c\u4e0a\u53ea\u80fd\u6709\u4e00\u4e2a\u5ea6\u91cf\u3002")),b=!1)}),b):d==g.getColumnAnalyticalFieldSet()&&e.isMeasure()?(u.setFieldInvalid(e,ib.get("chartLineColCardPrompt","\u5f53\u56fe\u8868\u7c7b\u578b\u4e3a\u6298\u7ebf\u56fe\uff0c\u5217\u4e0a\u4e0d\u80fd\u6709\u5ea6\u91cf\u3002")),
!1):!0};this.getSuggestedSize=function(g,d){g=new pb;g.setMinSize(120,80);g.setMaxSize(640,480);g.setLeftAsNumberAxis(!0);g.setLeftAxisColumnWidth(100);g.setTopAsNumberAxis(!1);g.setTopAxisRowHeight(-1);return g};this.createJsonCellParser=function(){return new S};this.exhibit=function(g,d,e,c,b,q,t){var w=new ea;w.setModel(c);w.getAttr().setShowDataLabel(b.isShowLabel());b.isForAxis()?(c=b.getAxisModel(),c.isNumberAxis()?(c=c.getDisplayName(),w.drawNumberAxis(g,d,e,c)):c.isContinueAxis()&&w.drawCategoryAxis(g,
d,e)):(w.draw(g,d,e),w.setClickListener(function(x,A,N){0<=N&&(N=[w.getModel().getCategories()[N].getExecutableValue()],u.getCommonClickListener(q,t,w)(x,A,N))}),w.setTooltipsListener(u.getCommonTooltipsListener(q,t,w)))}}function Ea(){Ya.call(this,la.CHARTTYPE_MLINE);Lb.call(this);var u=this.protectedMethod;u.setIconFileName("chart_mline");u.setText(ib.get("chartMLine","\u591a\u7cfb\u5217\u6298\u7ebf\u56fe"));u.setCardsTitle(ib.get("columnCardTitleWithAxis","\u5217\uff08\u6a2a\u8f74\uff09"),ib.get("rowCardTitleWithAxis",
"\u884c\uff08\u7eb5\u8f74\uff09"),null);this.getSuppliedMarks=function(){return[pa.TYPE_COLOR]};this.smartDropField=function(g,d,e,c){g=u.getMarkFieldSet(g);d==g&&(d=new La(g),d.setValue(e,pa.TYPE_COLOR),c.perform(d))};this.smartChangeModel=function(g,d,e){var c=u.washFields(d,g,[]),b=c.getRowDimensionWrap(),q=c.getRowMesaureWrap(),t=c.getColumnDimensionWrap(),w=c.getColumnMesaureWrap(),x=c.getMarkDimensionWrap(),A=c.getMarkMesaureWrap();c=e.getDimensionSelecteds();e=e.getMeasureSelecteds();0==t.length&&
u.mergeOnlyOneNoDuplicated(t,x,nb.DT_STRING);0==t.length&&u.mergeOnlyOneNoDuplicated(t,c,nb.DT_STRING);0==t.length&&u.mergeOnlyOneNoDuplicated(t,b,nb.DT_STRING);var N=t.length;t.length==N&&u.mergeOnlyOneNoDuplicated(t,x,nb.DT_DATE);t.length==N&&u.mergeOnlyOneNoDuplicated(t,c,nb.DT_DATE);t.length==N&&u.mergeOnlyOneNoDuplicated(t,b,nb.DT_DATE);u.mergeAllNoDuplicated(q,w);u.mergeAllNoDuplicated(q,A);u.mergeAllNoDuplicated(q,e);if(1==q.length){var ba=u.pickupMark(x,pa.TYPE_COLOR);ba||(w=[],0==w.length&&
u.mergeOnlyOneNoDuplicated(w,x),0==w.length&&u.mergeOnlyOneNoDuplicated(w,c),0==w.length&&u.mergeOnlyOneNoDuplicated(w,b),0==w.length&&1<t.length&&u.mergeOnlyOneNoDuplicated(w,t,nb.DT_STRING),ba=0==w.length?null:new wb(w[0].getField(),pa.TYPE_COLOR))}u.mergeAllNoDuplicated(b,x);u.mergeAllNoDuplicated(b,c);u.appendFields(d,b,g.getRowAnalyticalFieldSet());u.appendFields(d,q,g.getRowAnalyticalFieldSet());u.appendFields(d,t,g.getColumnAnalyticalFieldSet());ba&&u.appendFields(d,[ba],u.getMarkFieldSet(g))};
this.getCardsOperatingPrompt=function(g){var d=null,e=null,c=null;0==g.getRowAnalyticalFieldSet().getCount()&&(d=ib.get("dragNumField","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));0==g.getColumnAnalyticalFieldSet().getCount()&&(e=ib.get("tryDragDateField","\u5c1d\u8bd5\u5c06\u65e5\u671f\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));0==u.getMarkFieldSet(g).getCount()&&(c=ib.get("tryDragTextFieldAsSeries","\u5c1d\u8bd5\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u4f5c\u4e3a\u7cfb\u5217\u3002"));
return new zb(e,d,c)};this.isFieldValid=function(g,d,e){if(null==e)if(d==g.getRowAnalyticalFieldSet()){if(d=u.getMarkFieldSet(g),u.isMarkExist(d,pa.TYPE_COLOR)){var c=0;u.lookupMeasures(g.getRowAnalyticalFieldSet(),function(t){c++;1==c&&u.setFieldInvalid(t,null)});if(1==c){var b=0;g=u.getMarkFieldSet(g);u.lookupMarks(g,pa.TYPE_COLOR,function(t){t.isDimension()&&(b++,1==b&&u.setFieldInvalid(t,null))})}}}else d==u.getMarkFieldSet(g)&&(b=0,u.lookupMarks(d,pa.TYPE_COLOR,function(t){t.isDimension()&&(b++,
1==b&&u.setFieldInvalid(t,null))}),0==b&&u.lookupMeasures(g.getRowAnalyticalFieldSet(),function(t){u.setFieldInvalid(t,null)}));else{if(d==g.getRowAnalyticalFieldSet()){c=0;var q=!0;d=u.getMarkFieldSet(g);u.isMarkExist(d,pa.TYPE_COLOR)&&u.lookupMeasures(g.getRowAnalyticalFieldSet(),function(t){c++;1==c?u.setFieldInvalid(t,null):(u.setFieldInvalid(t,ib.get("seriesConflictPrompt","\u5df2\u4f7f\u7528\u7ef4\u5ea6\u503c\u8868\u793a\u591a\u4e2a\u989c\u8272\uff08\u7cfb\u5217\uff09\uff0c\u4e0d\u80fd\u540c\u65f6\u51fa\u73b0\u591a\u4e2a\u5ea6\u91cf\u3002")),
q=!1)});return q}if(d==g.getColumnAnalyticalFieldSet()){if(e.isMeasure())return u.setFieldInvalid(e,ib.get("chartMLineColCardPrompt","\u5f53\u56fe\u8868\u7c7b\u578b\u4e3a\u591a\u7cfb\u5217\u6298\u7ebf\u56fe\uff0c\u5217\u4e0a\u4e0d\u80fd\u6709\u5ea6\u91cf\u3002")),!1}else if(d==u.getMarkFieldSet(g))return b=0,q=!0,u.lookupMarks(d,pa.TYPE_COLOR,function(t){t.isMeasure()?(u.setFieldInvalid(t,ib.get("useDimensionForColor","\u7528\u7ef4\u5ea6\u8868\u793a\u989c\u8272\u3002")),q=!1):(b++,1==b?u.setFieldInvalid(t,
null):(u.setFieldInvalid(t,ib.get("onlyOneFieldForColor","\u53ea\u80fd\u6709\u4e00\u4e2a\u5b57\u6bb5\u5c55\u73b0\u4e3a\u989c\u8272\u3002")),q=!1))}),0<b&&(c=0,u.lookupMeasures(g.getRowAnalyticalFieldSet(),function(t){c++;1<c&&(u.setFieldInvalid(t,ib.get("seriesConflictPrompt","\u5df2\u4f7f\u7528\u7ef4\u5ea6\u503c\u8868\u793a\u591a\u4e2a\u989c\u8272\uff08\u7cfb\u5217\uff09\uff0c\u4e0d\u80fd\u540c\u65f6\u51fa\u73b0\u591a\u4e2a\u5ea6\u91cf\u3002")),q=!1)})),q}return!0};this.getSuggestedSize=function(g,
d){g=new pb;g.setMinSize(120,80);g.setMaxSize(640,480);g.setLeftAsNumberAxis(!0);g.setLeftAxisColumnWidth(100);g.setTopAsNumberAxis(!1);g.setTopAxisRowHeight(-1);return g};this.createJsonCellParser=function(){return new S};this.exhibit=function(g,d,e,c,b,q,t){var w=new ea;w.setModel(c);w.getAttr().setShowDataLabel(b.isShowLabel());b.isForAxis()?(c=b.getAxisModel(),c.isNumberAxis()?(c=c.getDisplayName(),w.drawNumberAxis(g,d,e,c)):c.isContinueAxis()&&w.drawCategoryAxis(g,d,e)):(w.draw(g,d,e),w.setClickListener(function(x,
A,N){0<=N&&(N=[w.getModel().getCategories()[N].getExecutableValue()],u.getCommonClickListener(q,t,w)(x,A,N))}),w.setTooltipsListener(u.getCommonTooltipsListener(q,t,w)))}}function Va(){Ya.call(this,la.CHARTTYPE_AREA);Lb.call(this);var u=this.protectedMethod;u.setIconFileName("chart_area");u.setText(ib.get("chartArea","\u9762\u79ef\u56fe"));u.setCardsTitle(ib.get("columnCardTitleWithAxis","\u5217\uff08\u6a2a\u8f74\uff09"),ib.get("rowCardTitleWithAxis","\u884c\uff08\u7eb5\u8f74\uff09"),null);this.getSuppliedMarks=
function(){return[pa.TYPE_COLOR]};this.smartDropField=function(g,d,e,c){g=u.getMarkFieldSet(g);d==g&&(d=new La(g),d.setValue(e,pa.TYPE_COLOR),c.perform(d))};this.smartChangeModel=function(g,d,e){var c=u.washFields(d,g,[]),b=c.getRowDimensionWrap(),q=c.getRowMesaureWrap(),t=c.getColumnDimensionWrap(),w=c.getColumnMesaureWrap(),x=c.getMarkDimensionWrap(),A=c.getMarkMesaureWrap();c=e.getDimensionSelecteds();e=e.getMeasureSelecteds();0==t.length&&u.mergeOnlyOneNoDuplicated(t,x,nb.DT_STRING);0==t.length&&
u.mergeOnlyOneNoDuplicated(t,c,nb.DT_STRING);0==t.length&&u.mergeOnlyOneNoDuplicated(t,b,nb.DT_STRING);var N=t.length;t.length==N&&u.mergeOnlyOneNoDuplicated(t,x,nb.DT_DATE);t.length==N&&u.mergeOnlyOneNoDuplicated(t,c,nb.DT_DATE);t.length==N&&u.mergeOnlyOneNoDuplicated(t,b,nb.DT_DATE);u.mergeAllNoDuplicated(q,w);u.mergeAllNoDuplicated(q,A);u.mergeAllNoDuplicated(q,e);w=u.pickupMark(x,pa.TYPE_COLOR);w||(w=[],0==w.length&&u.mergeOnlyOneNoDuplicated(w,x),0==w.length&&u.mergeOnlyOneNoDuplicated(w,c),
0==w.length&&u.mergeOnlyOneNoDuplicated(w,b),0==w.length&&1<t.length&&u.mergeOnlyOneNoDuplicated(w,t,nb.DT_STRING),w=0==w.length?null:new wb(w[0].getField(),pa.TYPE_COLOR));u.mergeAllNoDuplicated(b,x);u.mergeAllNoDuplicated(b,c);u.appendFields(d,b,g.getRowAnalyticalFieldSet());u.appendFields(d,q,g.getRowAnalyticalFieldSet());u.appendFields(d,t,g.getColumnAnalyticalFieldSet());w&&u.appendFields(d,[w],u.getMarkFieldSet(g))};this.getCardsOperatingPrompt=function(g){var d=null,e=null,c=null;0==g.getRowAnalyticalFieldSet().getCount()&&
(d=ib.get("dragNumField","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));0==g.getColumnAnalyticalFieldSet().getCount()&&(e=ib.get("tryDragDateField","\u5c1d\u8bd5\u5c06\u65e5\u671f\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));0==u.getMarkFieldSet(g).getCount()&&(c=ib.get("tryDragTextFieldAsSeries","\u5c1d\u8bd5\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u4f5c\u4e3a\u7cfb\u5217\u3002"));return new zb(e,d,c)};this.isFieldValid=function(g,d,e){if(null==e){if(d==g.getRowAnalyticalFieldSet()){if(d=
u.getMarkFieldSet(g),u.isMarkExist(d,pa.TYPE_COLOR)){var c=0;u.lookupMeasures(g.getRowAnalyticalFieldSet(),function(t){c++;1==c&&u.setFieldInvalid(t,null)});if(1==c){var b=0;g=u.getMarkFieldSet(g);u.lookupMarks(g,pa.TYPE_COLOR,function(t){t.isDimension()&&(b++,1==b&&u.setFieldInvalid(t,null))})}}}else d==u.getMarkFieldSet(g)&&(b=0,u.lookupMarks(d,pa.TYPE_COLOR,function(t){t.isDimension()&&(b++,1==b&&u.setFieldInvalid(t,null))}),0==b&&u.lookupMeasures(g.getRowAnalyticalFieldSet(),function(t){u.setFieldInvalid(t,
null)}));return!0}if(d==g.getRowAnalyticalFieldSet()){c=0;var q=!0;d=u.getMarkFieldSet(g);u.isMarkExist(d,pa.TYPE_COLOR)&&u.lookupMeasures(g.getRowAnalyticalFieldSet(),function(t){c++;1==c?u.setFieldInvalid(t,null):(u.setFieldInvalid(t,ib.get("seriesConflictPrompt","\u5df2\u4f7f\u7528\u7ef4\u5ea6\u503c\u8868\u793a\u591a\u4e2a\u989c\u8272\uff08\u7cfb\u5217\uff09\uff0c\u4e0d\u80fd\u540c\u65f6\u51fa\u73b0\u591a\u4e2a\u5ea6\u91cf\u3002")),q=!1)});return q}if(d==g.getColumnAnalyticalFieldSet())return e.isMeasure()?
(u.setFieldInvalid(e,ib.get("chartAreaColCardPrompt","\u5f53\u56fe\u8868\u7c7b\u578b\u4e3a\u9762\u79ef\u56fe\uff0c\u5217\u4e0a\u4e0d\u80fd\u6709\u5ea6\u91cf\u3002")),!1):!0;if(d==u.getMarkFieldSet(g))return b=0,q=!0,u.lookupMarks(d,pa.TYPE_COLOR,function(t){t.isMeasure()?(u.setFieldInvalid(t,ib.get("useDimensionForColor","\u7528\u7ef4\u5ea6\u8868\u793a\u989c\u8272\u3002")),q=!1):(b++,1==b?u.setFieldInvalid(t,null):(u.setFieldInvalid(t,ib.get("onlyOneFieldForColor","\u53ea\u80fd\u6709\u4e00\u4e2a\u5b57\u6bb5\u5c55\u73b0\u4e3a\u989c\u8272\u3002")),
q=!1))}),0<b&&(c=0,u.lookupMeasures(g.getRowAnalyticalFieldSet(),function(t){c++;1<c&&(u.setFieldInvalid(t,ib.get("seriesConflictPrompt","\u5df2\u4f7f\u7528\u7ef4\u5ea6\u503c\u8868\u793a\u591a\u4e2a\u989c\u8272\uff08\u7cfb\u5217\uff09\uff0c\u4e0d\u80fd\u540c\u65f6\u51fa\u73b0\u591a\u4e2a\u5ea6\u91cf\u3002")),q=!1)})),q};this.getSuggestedSize=function(g,d){g=new pb;g.setMinSize(120,90);g.setMaxSize(640,480);g.setLeftAsNumberAxis(!0);g.setLeftAxisColumnWidth(100);g.setTopAsNumberAxis(!1);g.setTopAxisRowHeight(-1);
return g};this.createJsonCellParser=function(){return new S};this.exhibit=function(g,d,e,c,b,q,t){var w=new Ca;w.setModel(c);w.getAttr().setShowDataLabel(b.isShowLabel());b.isForAxis()?(c=b.getAxisModel(),c.isNumberAxis()?(c=c.getDisplayName(),w.drawNumberAxis(g,d,e,c)):c.isContinueAxis()&&w.drawCategoryAxis(g,d,e)):(w.draw(g,d,e),w.setClickListener(function(x,A,N){0<=N&&(N=[w.getModel().getCategories()[N].getExecutableValue()],u.getCommonClickListener(q,t,w)(x,A,N))}),w.setTooltipsListener(u.getCommonTooltipsListener(q,
t,w)))}}function Oa(){Ya.call(this,la.CHARTTYPE_BAR);var u=this.protectedMethod;u.setIconFileName("chart_bar");u.setText(ib.get("chartBar","\u67f1\u5f62\u56fe"));u.setCardsTitle(ib.get("columnCardTitleWithAxis","\u5217\uff08\u6a2a\u8f74\uff09"),ib.get("rowCardTitleWithAxis","\u884c\uff08\u7eb5\u8f74\uff09")," ");this.getSuppliedMarks=function(){return[]};this.smartChangeModel=function(g,d,e){var c=u.washFields(d,g,[]),b=c.getRowDimensionWrap(),q=c.getRowMesaureWrap(),t=c.getColumnDimensionWrap(),
w=c.getColumnMesaureWrap(),x=c.getMarkDimensionWrap();c=c.getMarkMesaureWrap();var A=e.getDimensionSelecteds();e=e.getMeasureSelecteds();0==t.length&&u.mergeOnlyOneNoDuplicated(t,x);0==t.length&&u.mergeOnlyOneNoDuplicated(t,A);0==t.length&&u.mergeOnlyOneNoDuplicated(t,b);u.mergeAllNoDuplicated(b,x);u.mergeAllNoDuplicated(b,A);u.mergeAllNoDuplicated(q,w);u.mergeAllNoDuplicated(q,c);u.mergeAllNoDuplicated(q,e);u.appendFields(d,b,g.getRowAnalyticalFieldSet());u.appendFields(d,q,g.getRowAnalyticalFieldSet());
u.appendFields(d,t,g.getColumnAnalyticalFieldSet())};this.getCardsOperatingPrompt=function(g){var d=null,e=null;0==g.getRowAnalyticalFieldSet().getCount()&&(d=ib.get("dragNumField","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));0==g.getColumnAnalyticalFieldSet().getCount()&&(e=ib.get("tryDragTextField","\u5c1d\u8bd5\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));return new zb(e,d,null)};this.isFieldValid=function(g,d,e){var c=!0,b=u.isMeasureExist(g.getRowAnalyticalFieldSet());
u.lookupMeasures(g.getColumnAnalyticalFieldSet(),function(q){q==e&&(c=!1);var t=b?ib.get("chartBarRowColCardPrompt","\u5f53\u56fe\u8868\u7c7b\u578b\u4e3a\u67f1\u5f62\u56fe\uff0c\u5ea6\u91cf\u4e0d\u80fd\u540c\u65f6\u51fa\u73b0\u5728\u884c\u3001\u5217\u4e0a\u3002"):null;u.setFieldInvalid(q,t)});return c};this.isCellMeasurable=function(g){return!0};this.getSuggestedSize=function(g,d){d=new pb;g.isLandscape()?(d.setMinSize(20,100),d.setMaxSize(60,1E3),d.setLeftAsNumberAxis(!0),d.setLeftAxisColumnWidth(100),
d.setTopAsNumberAxis(!1),d.setTopAxisRowHeight(60)):(d.setMinSize(140,24),d.setMaxSize(1E3,40),d.setTopAsNumberAxis(!0),d.setTopAxisRowHeight(30),d.setLeftAsNumberAxis(!1),d.setLeftAxisColumnWidth(120));return d};this.createJsonCellParser=function(){return new S};this.exhibit=function(g,d,e,c,b,q,t){var w=b.isLandscape()?new ka:new p;w.setModel(c);w.getAttr().setShowDataLabel(b.isShowLabel());b.isForAxis()?(c=b.getAxisModel().getDisplayName(),w.drawNumberAxis(g,d,e,c)):(w.draw(g,d,e),w.setClickListener(function(x,
A,N){u.getCommonClickListener(q,t,w)(x,A,null)}),w.setTooltipsListener(u.getCommonTooltipsListener(q,t,w)))}}function wa(){Ya.call(this,la.CHARTTYPE_STACKBAR);var u=this.protectedMethod;u.setIconFileName("chart_stackbar");u.setText(ib.get("chartStackedBar","\u5806\u79ef\u67f1\u5f62\u56fe"));u.setCardsTitle(ib.get("columnCardTitleWithAxis","\u5217\uff08\u6a2a\u8f74\uff09"),ib.get("rowCardTitleWithAxis","\u884c\uff08\u7eb5\u8f74\uff09"),null);this.getSuppliedMarks=function(){return[pa.TYPE_COLOR]};
this.smartDropField=function(g,d,e,c){g=u.getMarkFieldSet(g);d==g&&(d=new La(g),d.setValue(e,pa.TYPE_COLOR),c.perform(d))};this.smartChangeModel=function(g,d,e){var c=u.washFields(d,g,[[pa.TYPE_COLOR,bb.ROLE_DIMENSION]]),b=c.getRowDimensionWrap(),q=c.getRowMesaureWrap(),t=c.getColumnDimensionWrap(),w=c.getColumnMesaureWrap(),x=c.getMarkDimensionWrap();c=c.getMarkMesaureWrap();var A=e.getDimensionSelecteds();e=e.getMeasureSelecteds();var N=u.pickupMark(x,pa.TYPE_COLOR);N||(N=[],0==N.length&&u.mergeOnlyOneNoDuplicated(N,
x),0==N.length&&u.mergeOnlyOneNoDuplicated(N,A),0==N.length&&u.mergeOnlyOneNoDuplicated(N,b),N=0==N.length?null:new wb(N[0].getField(),pa.TYPE_COLOR));0==t.length&&u.mergeOnlyOneNoDuplicated(t,x);0==t.length&&u.mergeOnlyOneNoDuplicated(t,A);0==t.length&&u.mergeOnlyOneNoDuplicated(t,b);u.mergeAllNoDuplicated(b,x);u.mergeAllNoDuplicated(b,A);u.mergeAllNoDuplicated(q,w);u.mergeAllNoDuplicated(q,c);u.mergeAllNoDuplicated(q,e);u.appendFields(d,b,g.getRowAnalyticalFieldSet());u.appendFields(d,q,g.getRowAnalyticalFieldSet());
u.appendFields(d,t,g.getColumnAnalyticalFieldSet());N&&u.appendFields(d,[N],u.getMarkFieldSet(g))};this.getCardsOperatingPrompt=function(g){var d=null,e=null,c=null;0==g.getRowAnalyticalFieldSet().getCount()&&(d=ib.get("dragNumField","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));0==g.getColumnAnalyticalFieldSet().getCount()&&(e=ib.get("tryDragTextField","\u5c1d\u8bd5\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));0==u.getMarkFieldSet(g).getCount()&&(c=ib.get("dragTextField",
"\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));return new zb(e,d,c)};this.isFieldValid=function(g,d,e){if(d==u.getMarkFieldSet(g)){var c=!0,b=0;u.lookupMarks(d,pa.TYPE_COLOR,function(t){t.isMeasure()?(u.setFieldInvalid(t,ib.get("useDimensionForColor","\u7528\u7ef4\u5ea6\u8868\u793a\u989c\u8272\u3002")),c=!1):(b++,1==b?u.setFieldInvalid(t,null):(u.setFieldInvalid(t,ib.get("onlyOneFieldForColor","\u53ea\u80fd\u6709\u4e00\u4e2a\u5b57\u6bb5\u5c55\u73b0\u4e3a\u989c\u8272\u3002")),c=!1))})}else{c=
!0;var q=u.isMeasureExist(g.getRowAnalyticalFieldSet());u.lookupMeasures(g.getColumnAnalyticalFieldSet(),function(t){t==e&&(c=!1);var w=q?ib.get("chartStackedBarRowColCardPrompt","\u5f53\u56fe\u8868\u7c7b\u578b\u4e3a\u5806\u79ef\u67f1\u5f62\u56fe\uff0c\u5ea6\u91cf\u4e0d\u80fd\u540c\u65f6\u51fa\u73b0\u5728\u884c\u3001\u5217\u4e0a\u3002"):null;u.setFieldInvalid(t,w)})}return c};this.isCellMeasurable=function(g){return!0};this.getSuggestedSize=function(g,d){d=new pb;g.isLandscape()?(d.setMinSize(20,
100),d.setMaxSize(60,1E3),d.setLeftAsNumberAxis(!0),d.setLeftAxisColumnWidth(100),d.setTopAsNumberAxis(!1),d.setTopAxisRowHeight(60)):(d.setMinSize(140,24),d.setMaxSize(1E3,40),d.setTopAsNumberAxis(!0),d.setTopAxisRowHeight(30),d.setLeftAsNumberAxis(!1),d.setLeftAxisColumnWidth(120));return d};this.createJsonCellParser=function(){return new S};this.exhibit=function(g,d,e,c,b,q,t){var w=b.isLandscape()?new ka:new p;w.setModel(c);w.getAttr().setShowDataLabel(b.isShowLabel());w.setStackMode(!0);b.isForAxis()?
(c=b.getAxisModel().getDisplayName(),w.drawNumberAxis(g,d,e,c)):(w.draw(g,d,e),w.setClickListener(function(x,A,N){u.getCommonClickListener(q,t,w)(x,A,null)}),w.setTooltipsListener(u.getCommonTooltipsListener(q,t,w)))}}function Ga(){Ya.call(this,la.CHARTTYPE_TREEMAP);var u=this.protectedMethod;u.setIconFileName("chart_treemap");u.setText(ib.get("chartTreeMap","\u6811\u56fe"));this.getSuppliedMarks=function(){return[pa.TYPE_BLANK,pa.TYPE_COLOR,pa.TYPE_SIZE]};this.smartDropField=function(g,d,e,c){g=
u.getMarkFieldSet(g);d==g&&(e.isDimension()?(d=new La(g),u.isMarkExist(g,pa.TYPE_COLOR)?d.setValue(e,pa.TYPE_BLANK):d.setValue(e,pa.TYPE_COLOR),c.perform(d)):e.isMeasure()&&(d=new La(g),u.isMarkExist(g,pa.TYPE_SIZE)?u.isMarkExist(g,pa.TYPE_COLOR)?d.setValue(e,pa.TYPE_SIZE):d.setValue(e,pa.TYPE_COLOR):d.setValue(e,pa.TYPE_SIZE),c.perform(d)))};this.smartChangeModel=function(g,d,e){var c=u.washFields(d,g,[[pa.TYPE_COLOR,bb.ROLE_DIMENSION]]),b=c.getRowDimensionWrap(),q=c.getRowMesaureWrap(),t=c.getColumnDimensionWrap(),
w=c.getColumnMesaureWrap(),x=c.getMarkDimensionWrap();c=c.getMarkMesaureWrap();var A=e.getDimensionSelecteds();e=e.getMeasureSelecteds();var N=u.pickupMark(c,pa.TYPE_SIZE);if(!N){var ba=[];0==ba.length&&u.mergeOnlyOneNoDuplicated(ba,c);0==ba.length&&u.mergeOnlyOneNoDuplicated(ba,e);0==ba.length&&u.mergeOnlyOneNoDuplicated(ba,q);0==ba.length&&u.mergeOnlyOneNoDuplicated(ba,w);N=0==ba.length?null:new wb(ba[0].getField(),pa.TYPE_SIZE)}ba=u.pickupMark(c,pa.TYPE_COLOR);ba||(ba=[],0==ba.length&&u.mergeOnlyOneNoDuplicated(ba,
c),0==ba.length&&u.mergeOnlyOneNoDuplicated(ba,e),0==ba.length&&u.mergeOnlyOneNoDuplicated(ba,q),0==ba.length&&u.mergeOnlyOneNoDuplicated(ba,w),ba=0==ba.length?null:new wb(ba[0].getField(),pa.TYPE_COLOR));if(ba){var ca=u.searchMark(x,pa.TYPE_COLOR);ca&&ca.setExtendInfo(pa.TYPE_BLANK)}else ba=u.pickupMark(x,pa.TYPE_COLOR),ba||(ba=[],0==ba.length&&u.mergeOnlyOneNoDuplicated(ba,x),0==ba.length&&u.mergeOnlyOneNoDuplicated(ba,A),0==ba.length&&u.mergeOnlyOneNoDuplicated(ba,b),0==ba.length&&u.mergeOnlyOneNoDuplicated(ba,
t),ba=0==ba.length?null:new wb(ba[0].getField(),pa.TYPE_COLOR));u.mergeAllNoDuplicated(x,A);u.mergeAllNoDuplicated(c,q);u.mergeAllNoDuplicated(c,w);u.mergeAllNoDuplicated(c,e);u.patchMark(x,pa.TYPE_BLANK);u.patchMark(c,pa.TYPE_SIZE);ba&&u.appendFields(d,[ba],u.getMarkFieldSet(g));u.appendFields(d,x,u.getMarkFieldSet(g));N&&u.appendFields(d,[N],u.getMarkFieldSet(g));u.appendFields(d,c,u.getMarkFieldSet(g));u.appendFields(d,b,g.getRowAnalyticalFieldSet());u.appendFields(d,t,g.getColumnAnalyticalFieldSet())};
this.getCardsOperatingPrompt=function(g){var d=null;0==u.getMarkFieldSet(g).getCount()&&(d=ib.get("dragNumAndTextField","\u5c06\u4e00\u4e2a\u6570\u503c\u5b57\u6bb5\u548c\u4e00\u4e2a\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));return new zb(null,null,d)};this.isFieldValid=function(g,d,e){if(d==g.getRowAnalyticalFieldSet()||d==g.getColumnAnalyticalFieldSet()){if(null!=e&&e.isMeasure())return u.setFieldInvalid(e,ib.get("chartTreeMapRowColCardPrompt","\u5f53\u56fe\u8868\u7c7b\u578b\u4e3a\u6811\u56fe\uff0c\u884c/\u5217\u4e0a\u4e0d\u80fd\u6709\u5ea6\u91cf\u3002")),
!1}else if(d==u.getMarkFieldSet(g)){var c=!0,b=0;u.lookupMarks(d,pa.TYPE_COLOR,function(t){b++;1==b?u.setFieldInvalid(t,null):(u.setFieldInvalid(t,ib.get("onlyOneFieldForColor","\u53ea\u80fd\u6709\u4e00\u4e2a\u5b57\u6bb5\u5c55\u73b0\u4e3a\u989c\u8272\u3002")),c=!1)});var q=0;u.lookupMarks(d,pa.TYPE_SIZE,function(t){t.isDimension()?(u.setFieldInvalid(t,ib.get("useMeasureForSize","\u7528\u5ea6\u91cf\u8868\u793a\u5927\u5c0f\u3002")),c=!1):(q++,1==q?u.setFieldInvalid(t,null):(u.setFieldInvalid(t,ib.get("oneOneFieldForSize",
"\u53ea\u80fd\u6709\u4e00\u4e2a\u5b57\u6bb5\u5c55\u73b0\u4e3a\u5927\u5c0f\u3002")),c=!1))});u.lookupMarks(d,pa.TYPE_BLANK,function(t){t.isMeasure()&&(u.setFieldInvalid(t,ib.get("useMeasureForSize","\u7528\u5ea6\u91cf\u8868\u793a\u5927\u5c0f\u3002")),c=!1)});return c}return!0};this.isCellMeasurable=function(g){return!0};this.getSuggestedSize=function(g,d){g=new pb;g.setMinSize(120,90);g.setMaxSize(720,540);g.setWidthHeightRatio(4/3);d.getRowAnalyticalFieldSet().hasAnyDimension()||(d.getColumnAnalyticalFieldSet().hasAnyDimension()?
g.setLeftAxisColumnWidth(50):(g.setLeftAxisColumnWidth(10),g.setTopAxisRowHeight(10)));return g};this.createJsonCellParser=function(){return new Ma};this.exhibit=function(g,d,e,c,b,q,t){var w=c[0];c=(c=c[1])?c.size:null;var x=1;c&&(x*=parseFloat(c));d=Math.max(0,parseInt(d*Math.sqrt(x))-4);e=Math.max(0,parseInt(e*Math.sqrt(x))-3);var A=new U;A.setModel(w);A.getAttr().setShowDataLabel(b.isShowLabel());A.getAttr().setIgnoreNegative(b.getChartConfig().getRectTreeConfig().isHideNegative());A.draw(g,d,
e);A.setClickListener(function(N,ba,ca){if(ca){for(var M=[],ia=w.getRoot(),sa=0;sa<ca.length;sa++)ia=ia.getChild(ca[sa]),M.push(ia.getExecutableValue());u.getCommonClickListener(q,t,A)(N,ba,M)}});A.setTooltipsListener(u.getCommonTooltipsListener(q,t,A))}}function Ia(){Ya.call(this,la.CHARTTYPE_SCATTER);var u=this.protectedMethod;u.setIconFileName("chart_scatter");u.setText(ib.get("chartScatter","\u6563\u70b9/\u6c14\u6ce1\u56fe"));u.setCardsTitle(ib.get("columnCardTitleWithAxis","\u5217\uff08\u6a2a\u8f74\uff09"),
ib.get("rowCardTitleWithAxis","\u884c\uff08\u7eb5\u8f74\uff09"),null);this.getSuppliedMarks=function(){return[pa.TYPE_BLANK,pa.TYPE_COLOR,pa.TYPE_SIZE]};this.smartDropField=function(d,e,c,b){d=u.getMarkFieldSet(d);e==d&&(c.isMeasure()?(e=new La(d),e.setValue(c,pa.TYPE_SIZE)):(e=new La(d),u.isMarkExist(d,pa.TYPE_BLANK)?e.setValue(c,pa.TYPE_COLOR):e.setValue(c,pa.TYPE_BLANK)),b.perform(e))};this.smartChangeModel=function(d,e,c){var b=u.washFields(e,d,[[pa.TYPE_BLANK,bb.ROLE_DIMENSION],[pa.TYPE_COLOR,
bb.ROLE_DIMENSION],[pa.TYPE_SIZE,bb.ROLE_MEASURE]]),q=b.getRowDimensionWrap(),t=b.getRowMesaureWrap(),w=b.getColumnDimensionWrap(),x=b.getColumnMesaureWrap(),A=b.getMarkDimensionWrap();b=b.getMarkMesaureWrap();var N=c.getDimensionSelecteds();c=c.getMeasureSelecteds();0==t.length&&u.mergeOnlyOneNoDuplicated(t,c);0==x.length&&u.mergeOnlyOneNoDuplicated(x,c);0==t.length&&1<x.length&&u.mergeOnlyOneNoDuplicated(t,x);0==x.length&&1<t.length&&u.mergeOnlyOneNoDuplicated(x,t);0==t.length&&u.mergeOnlyOneNoDuplicated(t,
b);for(0==x.length&&u.mergeOnlyOneNoDuplicated(x,b);1<t.length;)u.mergeOnlyOneNoDuplicated(b,t);for(;1<x.length;)u.mergeOnlyOneNoDuplicated(b,x);u.mergeAllNoDuplicated(b,c);u.patchMark(b,pa.TYPE_SIZE);2>A.length&&u.mergeOnlyOneNoDuplicated(A,N);2>A.length&&u.mergeOnlyOneNoDuplicated(A,N);2>A.length&&u.mergeOnlyOneNoDuplicated(A,w);2>A.length&&u.mergeOnlyOneNoDuplicated(A,q);2>A.length&&u.mergeOnlyOneNoDuplicated(A,w);2>A.length&&u.mergeOnlyOneNoDuplicated(A,q);u.patchMark(A,pa.TYPE_BLANK,!0);u.patchMark(A,
pa.TYPE_COLOR);u.mergeAllNoDuplicated(q,N);u.appendFields(e,q,d.getRowAnalyticalFieldSet());u.appendFields(e,t,d.getRowAnalyticalFieldSet());u.appendFields(e,w,d.getColumnAnalyticalFieldSet());u.appendFields(e,x,d.getColumnAnalyticalFieldSet());u.appendFields(e,A,u.getMarkFieldSet(d));u.appendFields(e,b,u.getMarkFieldSet(d))};this.getCardsOperatingPrompt=function(d){var e=null,c=null,b=null;0==d.getRowAnalyticalFieldSet().getCount()&&(e=ib.get("dragNumField","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));
0==d.getColumnAnalyticalFieldSet().getCount()&&(c=ib.get("dragNumField","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));0==u.getMarkFieldSet(d).getCount()&&(b=ib.get("dragTextField","\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));return new zb(c,e,b)};this.isFieldValid=function(d,e,c){if(e==d.getRowAnalyticalFieldSet()||e==d.getColumnAnalyticalFieldSet()){var b=0,q=!0;(null==c||c.isMeasure())&&u.lookupMeasures(e,function(t){b++;1==b?u.setFieldInvalid(t,null):(u.setFieldInvalid(t,
ib.get("chartScatterRowColCardPrompt","\u5f53\u56fe\u8868\u7c7b\u578b\u4e3a\u6563\u70b9\u56fe\uff0c\u8981\u6c42\u884c\u5217\u4e0a\u5404\u6709\u4e14\u53ea\u6709\u4e00\u4e2a\u5ea6\u91cf\u3002")),q=!1)});return q}return e==u.getMarkFieldSet(d)?(q=!0,q=g(e,bb.ROLE_MEASURE,pa.TYPE_SIZE,ib.get("useMeasureForSize","\u7528\u5ea6\u91cf\u8868\u793a\u5927\u5c0f\u3002"),ib.get("oneOneFieldForSize","\u53ea\u80fd\u6709\u4e00\u4e2a\u5b57\u6bb5\u5c55\u73b0\u4e3a\u5927\u5c0f\u3002"))&&q,q=g(e,bb.ROLE_DIMENSION,pa.TYPE_BLANK,
ib.get("useMeasureForSize","\u7528\u5ea6\u91cf\u8868\u793a\u5927\u5c0f\u3002"),ib.get("chartScatterMarkCardPrompt","\u53ea\u80fd\u6709\u4e00\u4e2a\u7ef4\u5ea6\u3002"))&&q,q=g(e,bb.ROLE_DIMENSION,pa.TYPE_COLOR,ib.get("useDimensionForColor","\u7528\u7ef4\u5ea6\u8868\u793a\u989c\u8272\u3002"),ib.get("onlyOneFieldForColor","\u53ea\u80fd\u6709\u4e00\u4e2a\u5b57\u6bb5\u5c55\u73b0\u4e3a\u989c\u8272\u3002"))&&q):!0};var g=function(d,e,c,b,q){var t=!0,w=0;u.lookupMarks(d,c,function(x){e==bb.ROLE_DIMENSION&&
x.isMeasure()||e==bb.ROLE_MEASURE&&x.isDimension()?(u.setFieldInvalid(x,b),t=!1):(w++,1==w?u.setFieldInvalid(x,null):(u.setFieldInvalid(x,q),t=!1))});return t};this.getSuggestedSize=function(d,e){d=new pb;d.setMinSize(120,120);d.setMaxSize(640,640);d.setLeftAsNumberAxis(!0);d.setLeftAxisColumnWidth(100);d.setTopAsNumberAxis(!0);d.setTopAxisRowHeight(30);return d};this.createJsonCellParser=function(){return new S};this.exhibit=function(d,e,c,b,q,t,w){var x=new E;x.setModel(b);q.isForAxis()?(b=q.getAxisModel(),
q=b.getDisplayName(),b.getDirection()==Vb.DIR_TOP?x.drawXAxis(d,e,c,q):b.getDirection()==Vb.DIR_LEFT&&x.drawYAxis(d,e,c,q)):(x.draw(d,e,c),x.setClickListener(function(A,N,ba){var ca=ba[0],M=ba[1];0>ca||0>M||(ba=[],ca=x.getModel().getCategories()[ca].getExecutableValue(),void 0!==ca&&ba.push(ca),ca=x.getModel().getSeries()[M].getExecutableSeriesFieldValue(),void 0!==ca&&ba.push(ca),u.getCommonClickListener(t,w,x)(A,N,ba))}),x.setTooltipsListener(u.getCommonTooltipsListener(t,w,x)))}}"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.longer&&(com.kingdee.bos.qing.longer={});"undefined"==typeof com.kingdee.bos.qing.longer.ui&&(com.kingdee.bos.qing.longer.ui={});var hb=com.kingdee.bos.qing.longer.ui,ib,nb,bb,la,Jb,pa,Gb,Vb,tb,lb,Na,$a,La,ab,ma,ha,ta,ka,p,ra,ea,Ca,U,E;(function(){var u=com.kingdee.bos.qing.framework.common;
ib=u.MultilanguageManager.createPackageAccessor(hb);u=com.kingdee.bos.qing.core.model;nb=u.MetaField;bb=u.AbstractAnalyticalField;u=com.kingdee.bos.qing.longer.model;la=u.AnalyticalModel;Jb=u.AnalyticalField;pa=u.MarkFieldSet;Gb=u.PieChartConfig;Vb=u.AxisModel;u=com.kingdee.bos.qing.core.controller;tb=u.ActionChangeRole;lb=u.ActionChangePartValue;u=com.kingdee.bos.qing.longer.controller;Na=u.ActionAddAnalyticalField;$a=u.ActionRemoveAnalyticalField;La=u.ActionSetMarkType;u=com.kingdee.bos.qing.chart.model;
ab=u.NormalChartModel;ma=u.TreeChartModel;ha=u.PieAttr;u=com.kingdee.bos.qing.chart.longer;ta=u.HeatMap;ka=u.VerticalBar;p=u.HorizontalBar;ra=u.PieChart;ea=u.LineChart;Ca=u.AreaChart;U=u.RectTreeChart;E=u.ScatterChart})();hb.ChartTypeFactory=new function(){var u,g={},d=function(){if(!u){var e=[Ja,Oa,wa,fa,Ea,Va,W,ua,Ga,Ia];u=[];for(var c=0;c<e.length;c++){var b=new e[c];u[c]=b;g[b.getName()]=b}}};this.getInstance=function(e){d();e=g[e];if(!e)throw Error("Unknown display-type name.");return e};this.getAllInstance=
function(){d();return u.slice(0)}}})();(function(){function Ya(){var ma,ha,ta;this.bindContext=function(g,d,e){ma=g;ha=d;ta=e};this.createLittleBox=function(g,d,e,c){g=ka(g,d);p(g,e.getSort(),c,!1);g.on("click",function(b){var q=e.getSort();q=q==Jb.SORT_ASC?Jb.SORT_DESC:q==Jb.SORT_DESC?null:Jb.SORT_ASC;var t=new Na;t.setCaption(Va.get("sortField","\u4fee\u6539#1\u7684\u6392\u5e8f\u65b9\u5f0f\u4e3a\uff1a").replace("#1",e.getComplexText())+Jb.sortToString(q));t.setMethod(e.getSort,e.setSort);t.setValue(q);var w=c?ha.getColumnAnalyticalFieldSet():
ha.getRowAnalyticalFieldSet(),x=c?ha.getColumnsSortingLane:ha.getRowsSortingLane,A=c?ha.setColumnsSortingLane:ha.setRowsSortingLane,N=x()?!0:!1;N&&0<w.getDimensionCount()&&u(N,w,e,q)&&(q=new Na,q.setMethod(x,A),q.setValue(null),x=ta.createCompositeAction(),x.setCaption(t.getCaption()),x.appendUnitAction(t),x.appendUnitAction(q),t=x);ta.perform(t);b=$(b.currentTarget);p(b,e.getSort(),c,!0)});return g};this.showOperatingTips=function(g,d){g=g.find(".sa-exhibition-sort-box");d?g.addClass("sa-exhibition-sort-box_clickable"):
g.removeClass("sa-exhibition-sort-box_clickable");for(var e=0;e<g.length;e++){var c=$(g[e]),b=c.data("my-sortable-direction");b&&nb.background(c,d?"icon_sortable-"+b:null)}};var ka=function(g,d){var e=Ya.BOX_LEN-2,c=$("<div>");c.attr("title",Va.get("sort","\u6392\u5e8f"));c.addClass("sa-exhibition-sort-box");c.css("left",g);c.css("top",d);c.css("width",e);c.css("height",e);return c},p=function(g,d,e,c){e=e?"h":"v";g.data("my-sortable-direction",d?null:e);var b=null;d==Jb.SORT_ASC?b="icon_sort-asc-":
d==Jb.SORT_DESC?b="icon_sort-desc-":c&&(b="icon_sortable-");nb.background(g,b?b+e:null)};this.createRowsSortingLittleBox=function(g,d,e){var c=ha.getRowsSortingLane();return ra(g,d,c,e)};this.showRowsSortingTips=function(g,d){var e=g.find(".sa-exhibition-sort-box");0==e.length&&(e=ra(g.width(),g.height(),null,d),nb.background(e,"icon_sortable-v"),g.append(e));e.addClass("sa-exhibition-sort-box_clickable")};this.hideRowsSortingTips=function(g){g=g.find(".sa-exhibition-sort-box");g.removeClass("sa-exhibition-sort-box_clickable");
g.data("my-sortable-direction")&&g.remove()};var ra=function(g,d,e,c){var b=e?e.getOrder():null;g=ka(g-Ya.BOX_LEN-1,d-Ya.BOX_LEN-1);g.addClass("sa-exhibition-sort-box-top");p(g,b,!1,!1);g.on("click",function(q){var t=E(e,c),w=Jb.sortToString(t?t.getOrder():null),x=new Na;x.setCaption(Va.get("sortRows","\u884c\u6392\u5e8f\uff1a")+w);x.setMethod(ha.getRowsSortingLane,ha.setRowsSortingLane);x.setValue(t);U(x,null!=t,ha.getRowAnalyticalFieldSet());t=(t=ha.getRowsSortingLane())?t.getOrder():null;q=$(q.currentTarget);
p(q,t,!1,!0);Ca(q[0],"sa-exhibition-sort-box-top")});return g};this.createColumnsSortingLittleBox=function(g,d,e){var c=ha.getColumnsSortingLane();return ea(g,d,c,e)};this.showColumnsSortingLittleBox=function(g,d){var e=g.find(".sa-exhibition-sort-box");0==e.length&&(e=ea(g.width(),g.height(),null,d),nb.background(e,"icon_sortable-h"),g.append(e));e.addClass("sa-exhibition-sort-box_clickable")};this.hideColumnsSortingTips=function(g){g=g.find(".sa-exhibition-sort-box");g.removeClass("sa-exhibition-sort-box_clickable");
g.data("my-sortable-direction")&&g.remove()};var ea=function(g,d,e,c){var b=e?e.getOrder():null;g=ka(g-Ya.BOX_LEN-1,d-Ya.BOX_LEN>>1);g.addClass("sa-exhibition-sort-box-left");p(g,b,!0,!1);g.on("click",function(q){var t=E(e,c),w=Jb.sortToString(t?t.getOrder():null),x=new Na;x.setCaption(Va.get("sortColumns","\u5217\u6392\u5e8f\uff1a")+w);x.setMethod(ha.getColumnsSortingLane,ha.setColumnsSortingLane);x.setValue(t);U(x,null!=t,ha.getColumnAnalyticalFieldSet());t=(t=ha.getColumnsSortingLane())?t.getOrder():
null;q=$(q.currentTarget);p(q,t,!0,!0);Ca(q[0],"sa-exhibition-sort-box-left")});return g},Ca=function(g,d){d=ma.find("."+d);for(var e=0;e<d.length;e++)g!=d[e]&&$(d[e]).remove()},U=function(g,d,e){d&&0<e.getDimensionCount()&&u(d,e)&&(e=e.get(e.getDimensionCount()-1),d=new Na,d.setMethod(e.getSort,e.setSort),d.setValue(null),e=ta.createCompositeAction(),e.setCaption(g.getCaption()),e.appendUnitAction(g),e.appendUnitAction(d),g=e);ta.perform(g)},E=function(g,d){if(g)if(g=g.getOrder(),g==Jb.SORT_ASC){var e=
new Vb;e.setOrder(Jb.SORT_DESC)}else g==Jb.SORT_DESC&&(e=null);else e=new Vb,e.setOrder(Jb.SORT_ASC);if(e){g=[];for(var c=0;c<d.getExecutableValueItemCount();c++)g.push(d.getItemExecutableValue(c));e.setHeadValue(g);d=d.getMeasureIndex();0<=d&&e.setMeasureIndex(d)}return e},u=function(g,d,e,c){for(var b=!1,q=0,t=d.getDimensionCount();q<t;q++){var w=d.get(q);if(!(q<t-1)||w.isShowSubtotal())if(w==e?!c:!w.getSort()){b=!0;break}}return!b&&g}}function Lb(ma){var ha=this,ta,ka;this.getType=function(){return ma};
this.setJsonModel=function(p){ta=p.title;ka=ha.protectedParseJson(p)};this.protectedParseJson=function(p){throw Error("Override me.");};this.getModel=function(){return ka};this.askHeight=function(){throw Error("Override me.");};this.draw=function(p){throw Error("Override me.");};this.getTitle=function(){return ta};this.protectedMethod={createCanvas:function(p,ra,ea){var Ca=Ea.createCanvas(),U=$(Ca);fa.layoutCtrl(U,0,0,ra,ea);U.appendTo(p);return Ea.createContext2d(Ca,ra,ea)}}}function wb(){Lb.call(this,
Lb.TYPE_SIZE);var ma=this.protectedMethod,ha,ta,ka,p;this.setBaseDiameter=function(ea){ha=ea;p&&(p.empty(),ra())};this.protectedParseJson=function(ea){ta=ea.ratios;ka=ea.texts;return[ta,ka]};this.askHeight=function(){return 1+20*ta.length};this.draw=function(ea){p=ea;return ra()};var ra=function(){var ea=p.innerWidth(),Ca=p.innerHeight();Ca=ma.createCanvas(p,ea,Ca);(new Ia).draw(Ca,ha,ea,ta,ka)}}function eb(){Lb.call(this,Lb.TYPE_CONTINUOUS_COLOR);var ma=this.protectedMethod,ha=this;this.protectedParseJson=
function(ta){return bb.parseContontinuousColorLegendModel(ta)};this.askHeight=function(){return 40};this.draw=function(ta){var ka=ta.innerWidth(),p=ta.innerHeight();ta=ma.createCanvas(ta,ka,p);(new hb).draw(ta,ka,ha.getModel())}}function pb(){Lb.call(this,Lb.TYPE_DISCRETE_COLOR);var ma=this.protectedMethod,ha=this;this.protectedParseJson=function(ta){var ka=ta.colors,p=ta.texts,ra=ta.captions;ta=ta.othersInfo;null!=ta&&(ka=ka.slice(),p=p.slice(),ka.push("rgba(0,0,0,0)"),p.push(ta),ra&&(ra=ra.slice(),
ra.push("")));ta=new Ga;ta.prepare(ka,p,ra,0);return ta};this.askHeight=function(){return 20*ha.getModel().getItemCount()};this.draw=function(ta){var ka=ha.getModel(),p=ta.innerWidth(),ra=ta.innerHeight();ta=ma.createCanvas(ta,p,ra);(new ib).draw(ta,ka)}}function zb(){var ma,ha;this.setShedTitleModel=function(ta){ma=ta};this.getShedTitleModel=function(){return ma};this.setBizRowIdx=function(ta){ha=ta};this.getBizRowIdx=function(){return ha}}function Yb(){var ma=[],ha=[],ta=[],ka=-1;this.addItem=function(p,
ra,ea,Ca){ma.push(p);ha.push(ra);if(ea){var U=new pa;U.asStringValue(ea)}else Ca&&(U=new pa,U.fromJsonObject(Ca));ta.push(U)};this.addItemForSubtotal=function(){var p=new pa;p.asSubtotal();ta.push(p)};this.getItemCount=function(){return ma.length};this.getItemTitle=function(p){return ma[p]};this.getItemValue=function(p){return ha[p]};this.getExecutableValueItemCount=function(){return ta.length};this.getItemExecutableValue=function(p){var ra=ta[p];ra||(ra=new pa,ra.asStringValue(ha[p]));return ra};
this.getMeasureIndex=function(){return ka};this.setMeasureIndex=function(p){ka=p}}function Mb(){var ma,ha;this.combine=function(p,ra){ma=p;ha=ra};this.getJsonForDetailSearching=function(p){var ra=ta(ma),ea=ta(ha);ra={row:ra,column:ea};if(p){ea=[];for(var Ca=0;Ca<p.length;Ca++){var U=p[Ca];void 0!==U&&(""===U?(U=new pa,U.asNull(),U=U.toJsonObject()):U={complex:U},ea.push(U))}ra.others=ea}return ra};var ta=function(p){for(var ra=[],ea=0,Ca=p.getItemCount();ea<Ca;ea++){var U=p.getItemExecutableValue(ea);
ra.push(U.toJsonObject())}return ra};this.getDisplayShedTitle=function(){var p={},ra=[];ma&&ka(ma,ra,p);ha&&ka(ha,ra,p);return ra};var ka=function(p,ra,ea){for(var Ca=0,U=p.getItemCount();Ca<U;Ca++){var E=p.getItemTitle(Ca),u=p.getItemValue(Ca);ea[E]!==u&&(ea[E]=u,ra.push({key:E,value:u}))}}}function S(){var ma,ha,ta,ka;this.setLeftHeight=function(p){ma=p};this.getLeftHeight=function(){return ma};this.setLeftWidth=function(p){ha=p};this.getLeftWidth=function(){return ha};this.setTopHeight=function(p){ta=
p};this.getTopHeight=function(){return ta};this.setTopWidth=function(p){ka=p};this.getTopWidth=function(){return ka}}function Ma(){var ma=!1,ha=[],ta=!1;this.setHorizontal=function(ka){ma=ka};this.isHorizontal=function(){return ma};this.addKey=function(ka){ha.push(ka)};this.setKeys=function(ka){ha=ka};this.getKeys=function(){return ha};this.isSameKey=function(ka){if(ma!=ka.isHorizontal())return!1;ka=ka.getKeys();if(ha.length!=ka.length)return!1;for(var p=0;p<ha.length;p++)if(ha[p]!=ka[p])return!1;
return!0};this.setExpanded=function(ka){ta=ka};this.isExpanded=function(){return ta};this.fromJsonObject=function(ka){ma=ka.horizontal?!0:!1;ta=ka.expanded?!0:!1;(ka=ka.keys)&&(ha=ka.split(Ma.SEPARATER))};this.toJsonObject=function(){var ka={};ma&&(ka.horizontal=!0);ta&&(ka.expanded=!0);ka.keys=ha.join(Ma.SEPARATER);return ka}}function Ja(){var ma,ha,ta,ka,p,ra;this.setContent=function(ea){throw Error("Override");};this.setPosition=function(ea,Ca){throw Error("Override");};this.hide=function(ea){throw Error("Override");
};this.toggleMenu=function(ea,Ca){};this.destroy=function(){};this.setDetailSearchingParam=function(ea){ma=ea};this.setDetailShowedImpl=function(ea,Ca){ha=ea;ta=Ca};this.setLinkageImpl=function(ea,Ca){ka=ea;p=Ca};this.hookHideAnnouncer=function(ea){ra&&ra!=ea&&ra();ra=ea};this.protectedMethod={checkShowDetailAllowed:function(ea){ha?ha(function(Ca){ea(Ca)}):ea(!0)},showDetail:function(){ta(ma)},checkLinkageAllowed:function(){return ka()},jumpToBizUi:function(){p(ma)},fireHideAnnouncer:function(){ra&&
ra();ra=null}}}function ua(){Ja.call(this);var ma=this,ha=this.protectedMethod,ta,ka,p,ra,ea,Ca,U,E=!1,u=!1;this.destroy=function(){ta&&ta.remove()};this.setPosition=function(w,x){ta||g();e(!0);var A=!0;b()&&(q(w,x)?A=!1:c(!1));if(A){var N=ta.width();A=ta.height();var ba=document.body.clientHeight;w+15+N+25<document.body.clientWidth?(E=!1,w+=15):(E=!0,w=w-15-N);x+15+A+25<ba?(u=!1,x+=15):(u=!0,x=x-15-A);ta.css({left:w,top:x})}};this.hide=function(w){!ta||!w&&b()||(e(!1),c(!1))};this.setContent=function(w){if(!b()){for(var x=
{},A=$(document.createDocumentFragment()),N=0;N<w.length;N++){var ba=w[N],ca=ba.key,M=ba.value,ia=ba.color;if(!x[ca]){x[ca]=!0;var sa=$("<tr>");sa.appendTo(A);var mb=$("<td>");ba=$("<td>");mb.appendTo(sa);ba.appendTo(sa);ia?(sa=$("<span>"),sa.css({display:"inline-block",position:"relative",width:"8px",height:"8px","margin-right":"4px","background-color":ia}),sa.appendTo(mb),ia=$("<span style='color:#787878'>"),ia.text(ca)):(ia=$("<span style='color:#787878'>"),ia.text(ca+": "));ia.appendTo(mb);ca=
$("<span style='font-size:12px; color:#333; font-weight:bold;'>");ca.text(M);ca.appendTo(ba)}}p.empty();p.append(A)}};this.toggleMenu=function(w,x){if(!p||!p.is(":visible"))return!1;if(b())return c(!1),!1;c(!0);Ca=w;U=x;var A=function(N){b()&&q(N.clientX,N.clientY)||(ma.hide(!0),$(document.body).off("mousemove",A))};$(document.body).on("mousemove",A);return!0};var g=function(){ta=$("<div>");ta.addClass("sa-tooltips");ta.appendTo($(document.body));ta.mouseleave(function(w){c(!1);e(!1)});ra=d("icon_data_detail",
Va.get("viewData","\u67e5\u770b\u6570\u636e"),function(){ha.showDetail()});ea=d("icon_bill_linkage",Va.get("linkage","\u5355\u636e\u8054\u67e5"),function(){ha.jumpToBizUi()});ka=$("<div>");ka.addClass("sa-tooltips-menu");ka.append(ra);ka.append(ea);ka.appendTo(ta);p=$("<table style='margin:6px'>");p.addClass("sa-tooltips-content");p.appendTo(ta)},d=function(w,x,A){var N=$("<div>");N.addClass("sa-tooltips-menu-button");N.css("display","none");N.attr("title",x);N.on("click",function(ba){A()});x=$("<div>");
x.appendTo(N);nb.background(x,w);fa.layoutCtrlCenterAlign(x,12);fa.layoutCtrlMiddleAlign(x,12);return N},e=function(w){ta.css("display",w?"block":"none");!w&&ha.fireHideAnnouncer()},c=function(w){var x=b();w?x||(ka.animate({height:"toggle",opacity:"toggle"},325),t()):x&&ka.css("display","none")},b=function(){return ka.is(":visible")},q=function(w,x){if(E){var A=ta.offset().left;var N=Ca+10}else A=Ca-10,N=ta.offset().left+ta.width();if(u){var ba=ta.offset().top;var ca=U+10}else ba=U-10,ca=ta.offset().top+
ta.height();return A<w&&w<N&&ba<x&&x<ca},t=function(){ha.checkShowDetailAllowed(function(x){ra.css("display",x?"":"none")});var w=la.isRuntimeSupported()&&ha.checkLinkageAllowed();ea.css("display",w?"":"none")}}"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.longer&&(com.kingdee.bos.qing.longer={});
"undefined"==typeof com.kingdee.bos.qing.longer.ui&&(com.kingdee.bos.qing.longer.ui={});var W=com.kingdee.bos.qing.longer.ui;W.AbstractLegendUi=Lb;W.Exhibition=function(){function ma(){KTableUIDraggableAdjustingHandler.CustomExpendor.call(this);this.isColumnDraggable=function(va,Ha){return Ha<va.getColumnsCount()-fb};this.rowDraggedAction=function(va,Ha,jb){var rb,Qb=!1;if(Ha<sa){va=rb=Ha;var Kb=n().getColumnAnalyticalFieldSet();Ha=Ha<Kb.getCount()?Kb.get(Ha):null;Kb=ic(Ha);Ha=Kb.setTopHeight;Kb=
Kb.getTopHeight()}else rb=sa,va=va.getRowsCount()-1,Qb=C(),Kb=ic(Qb),Ha=Kb.setLeftHeight,Kb=Kb.getLeftHeight(),Qb=!0;var Eb=new ha;Eb.setValue(Ha,rb,va,jb,Kb);I.getCommandManager().perform(Eb);Qb&&k()};this.columnDraggedAction=function(va,Ha,jb){var rb,Qb=!1;if(Ha<ia){va=rb=Ha;var Kb=n().getRowAnalyticalFieldSet();Ha=Ha<Kb.getCount()?Kb.get(Ha):null;Kb=ic(Ha);Ha=Kb.setLeftWidth;Kb=Kb.getLeftWidth()}else rb=ia,va=va.getColumnsCount()-1-fb,Qb=aa(),Kb=ic(Qb),Ha=Kb.setTopWidth,Kb=Kb.getTopWidth(),Qb=
!0;var Eb=new ta;Eb.setValue(Ha,rb,va,jb,Kb);I.getCommandManager().perform(Eb);Qb&&k();Hb()}}function ha(){lb.call(this);var va,Ha,jb,rb,Qb;this.getCaption=function(){return Va.get("dragRowHeight","\u8c03\u6574\u884c\u9ad8")};this.setValue=function(Eb,Ib,Xb,kc,sc){va=Eb;Ha=Ib;jb=Xb;rb=kc;Qb=sc};this.perform=function(){var Eb=Kb();va(Eb);rb=-rb};this.unperform=function(){Kb();va(Qb);rb=-rb};var Kb=function(){var Eb=e.isSyncUIWhenModelChanged();e.setSyncUIWhenModelChanged(!1);for(var Ib=Ha;Ib<=jb;Ib++){var Xb=
e.getRow(Ib);var kc=Xb.getHeight();kc=Math.max(0,kc+rb);Xb.setHeight(kc)}e.setSyncUIWhenModelChanged(Eb);e.updateUI(!0);return kc}}function ta(){lb.call(this);var va,Ha,jb,rb,Qb;this.getCaption=function(){return Va.get("dragColumnWidth","\u8c03\u6574\u5217\u5bbd")};this.setValue=function(Eb,Ib,Xb,kc,sc){va=Eb;Ha=Ib;jb=Xb;rb=kc;Qb=sc};this.perform=function(){var Eb=Kb();va(Eb);rb=-rb};this.unperform=function(){Kb();va(Qb);rb=-rb};var Kb=function(){var Eb=e.isSyncUIWhenModelChanged();e.setSyncUIWhenModelChanged(!1);
for(var Ib=Ha;Ib<=jb;Ib++){var Xb=e.getColumn(Ib);var kc=Xb.getWidth();kc=Math.max(0,kc+rb);Xb.setWidth(kc)}e.setSyncUIWhenModelChanged(Eb);e.updateUI(!0);return kc}}function ka(){lb.call(this);var va=this,Ha,jb,rb={};this.setMethod=function(Qb,Kb){Ha=Qb;jb=Kb};this.perform=function(){var Qb=Ha();jb(rb);rb=Qb};this.unperform=function(){va.perform()}}function p(){lb.call(this);var va;this.perform=function(){va=db;db=[]};this.unperform=function(){db=va}}function ra(){lb.call(this);var va,Ha,jb,rb,Qb;
this.getCaption=function(){return Va.get("expandOrCollapse","\u5c55\u5f00/\u6536\u8d77")};this.setValue=function(Kb){va=Kb};this.perform=function(){Ha=null;jb=-1;for(var Kb=db.length-1;0<=Kb;Kb--)if(db[Kb].isSameKey(va)){jb=Kb;Ha=db.splice(Kb,1)[0];break}rb=!1;va.isExpanded()&&(rb=!0,db.push(va));Qb=null;128<db.length&&(Qb=db.splice(0,1)[0]);n().announceTreeExpanding()};this.unperform=function(){Qb&&db.unshift(Qb);rb&&db.pop();Ha&&db.splice(jb,0,Ha);n().announceTreeExpanding()}}function ea(va){KTDefaultCellRender.call(this,
va);var Ha=this,jb=this.paintCellUI;this.paintCellUI=function(Eb,Ib){var Xb=Ib?Ib:Eb,kc=Ha.getCurrentRowIdx(),sc=Ha.getCurrentColIdx();if(kc<sa||sc<ia){var wc=Ha.getCell();if(wc&&!wc.getValue()){var yc=wc.getUserObject();if(yc&&"axis"==yc.type){Ib=Ha.getTextAreaWidth();yc=Ha.getTextAreaHeight();var vc=g.getCommonModel();wc=wc.getUserObject();wc=g.parseAxisModel(wc);var Bc=h();Bc.setAxisModel(wc);ba.exhibit(Xb,Ib,yc,vc,Bc,null,null);Qb(Eb,kc,sc);return}}jb(Eb,Ib);Qb(Eb,kc,sc)}else m()?(jb(Xb),Eb=(Eb=
Ha.getCell())?Eb.getUserObject():null,Eb=g.parseExhibitModel(Eb),kc=rb(),ba.exhibit(Xb,0,0,Eb,null,kc,c)):(sc=Ha.getCell(),Eb=Ha.getTextAreaWidth(),kc=Ha.getTextAreaHeight(),sc=sc?sc.getUserObject():null,sc=g.parseExhibitModel(sc),Ib=h(),yc=rb(),ba.exhibit(Xb,Eb,kc,sc,Ib,yc,c))};var rb=function(){var Eb=Ha.getCurrentRow().getUserObject();Eb=Eb instanceof zb?Eb.getShedTitleModel():Eb;var Ib=Ha.getCurrentCol().getUserObject(),Xb=new Mb;Xb.combine(Eb,Ib);return Xb},Qb=function(Eb,Ib,Xb){gb&&Ib<sa&&Xb<
ia?(Eb=$(Eb),Ib=n().getRowAnalyticalFieldSet(),Xb=Ha.getCurrentColIdx(),Xb>=Ib.getCount()||(Ib=Ib.get(Xb),Xb=Ha.getCellHeight()-Ya.BOX_LEN-1,Ib=Fa.createLittleBox(1,Xb,Ib,!1),Eb.append(Ib))):ba.isCellMeasurable(n())&&(n().getRowAnalyticalFieldSet().hasAnyDimension()&&Ib==sa-1?(Ib=Ha.getCurrentCol().getUserObject(),Xb=n().getRowsSortingLane(),Kb(Ib,Xb)&&Fa.createRowsSortingLittleBox(Ha.getCellWidth(),Ha.getCellHeight(),Ib).appendTo($(Eb))):n().getColumnAnalyticalFieldSet().hasAnyDimension()&&Xb==ia-
1&&(Ib=Ha.getCurrentRow().getUserObject(),Ib=Ib instanceof zb?Ib.getShedTitleModel():Ib,Xb=n().getColumnsSortingLane(),Kb(Ib,Xb)&&Fa.createColumnsSortingLittleBox(Ha.getCellWidth(),Ha.getCellHeight(),Ib).appendTo($(Eb))))},Kb=function(Eb,Ib){if(!Ib||!Eb)return!1;var Xb=Ib.getHeadValue();if(Xb.length!=Eb.getExecutableValueItemCount())return!1;for(var kc=0;kc<Xb.length;kc++)if(!Xb[kc].isTheSame(Eb.getItemExecutableValue(kc)))return!1;return Eb.getMeasureIndex()!=Ib.getMeasureIndex()?!1:!0}}function Ca(){KTDiagonalRender.call(this);
var va,Ha=this.create;this.create=function(jb,rb,Qb,Kb,Eb,Ib){jb=Ha(jb,rb,Qb,Kb,Eb,Ib);fa.layoutCtrl($(jb),0,0,Eb,Ib);va=$("<div>");va.width(Eb);va.height(Ib);Eb=va[0];Eb.appendChild(jb);Ib=va;var Xb=[0];for(jb=0;jb<ia;jb++)Xb[jb+1]=Xb[jb]+e.getColumn(jb).getWidth();rb=[1];for(jb=0;jb<sa;jb++)rb[jb+1]=rb[jb]+e.getRow(jb).getHeight();Kb=rb[rb.length-1]-Ya.BOX_LEN-2;var kc=n().getRowAnalyticalFieldSet();for(jb=0;jb<Wa;jb++){var sc=kc.get(jb);sc&&(Qb=Xb[jb]+1,sc=Fa.createLittleBox(Qb,Kb,sc,!1),Ib.append(sc))}Qb=
Xb[Xb.length-1]-Ya.BOX_LEN-1;Xb=n().getColumnAnalyticalFieldSet();for(jb=0;jb<xb;jb++)if(sc=Xb.get(jb))Kb=rb[jb],sc=Fa.createLittleBox(Qb,Kb,sc,!0),Ib.append(sc);return Eb}}var U=120,E=this,u,g,d,e,c,b=!0,q=!0,t,w,x=!1,A,N=!1,ba,ca,M,ia,sa,mb,Wa,xb,gb,fb=0,Da,Y,z,D,I,P,O,R,Z,G,J,ja,Q,T,za,da,Aa,Za,sb,Ab,xa,Ra,kb,Db,Ub=10,$b=10,Cb=0,Nb=0,ac,cc,na,Fa=new Ya,Qa={},Ua,Ka,Xa,db=[],ub,Ob=-1,Zb=-1,Fb=-1,ob;this.getJqUi=function(){d||(d=$("<div>"),d.css("cursor","default"),d.on("contextmenu",function(va){return!1}));
return d};this.resize=function(va){x||(u&&(va=u,u=null,r(va)),e&&(e.relayoutViews(),Hb()))};this.setFakeClipboardSupported=function(va){b=va};this.setRowColumnDraggable=function(va){q=va};this.setScrollerVisible=function(va,Ha){t=va;w=Ha};this.keepCalm=function(va){x!=va&&((x=va)||E.resize())};this.destroy=function(){c.destroy()};this.setTooltipsWidgetInstance=function(va){c=va};var qa=function(va,Ha,jb){ob(ub,va,-1,Ha,-1,jb)},a=function(va,Ha,jb,rb){ob(ub,va,Ha,-1,jb,rb)},l=function(va){c.hide(!0);
Da&&Da("");e=null;x=N=!1;Fa.bindContext(d,n(),I.getCommandManager());na=cc=null;d.is(":visible")?r(va):u=va};this.reset=function(){Qa={};db=[];xb=Wa=sa=ia=0;x=!0;A=null};this.repaint=function(va){va?l(va):e&&(e.updateUI(!0),Pb())};this.setPromptListener=function(va){Da=va};this.setLegendsNeededListener=function(va){Y=va};this.setPreUpdateListener=function(va){z=va};this.setExhibitionChangedListener=function(va){D=va};this.showNoDataPrompt=function(va,Ha){d.empty();var jb=$("<div>");jb.addClass("sa-exhibition-nodata-prompt");
jb.css({position:"relative",padding:"40px"});jb.appendTo(d);jb.text(va);Ha&&Ha(d)};this.clearHeightWidthCacheAction=function(){var va=new ka;va.setMethod(function(){return Qa},function(Ha){Qa=Ha});I.getCommandManager().perform(va)};this.clearTreeExpandState=function(){var va=new p;I.getCommandManager().perform(va)};this.collectStatus=function(va){var Ha=va.setHeights;a:{var jb=F(-1,-1);var rb=Sa(-1);jb[jb.length-1]=rb;for(rb=0;rb<jb.length;rb++)if(-1!=jb[rb])break a;jb=null}Ha.call(va,jb);Ha=va.setWidths;
a:{jb=H(-1,-1);rb=Ta(-1);jb[jb.length-1]=rb;for(rb=0;rb<jb.length;rb++)if(-1!=jb[rb])break a;jb=null}Ha.call(va,jb);Ha=F(B(),Nb);jb=Sa($b);Ha[Ha.length-1]=jb;jb=H(U,Cb);rb=Ta(Ub);jb[jb.length-1]=rb;va.collectPaintableStatus(Ha,jb);Ha=[];if(0<db.length)for(jb=0;jb<db.length;jb++)rb=db[jb].toJsonObject(),Ha.push(rb);va.setJsonTreeExpandStates(Ha)};this.applyStatus=function(va){Qa={};var Ha=va.getHeights(),jb=va.getWidths();if(Ha){for(var rb=n().getColumnAnalyticalFieldSet(),Qb=rb.getCount(),Kb=Ha.length-
1,Eb=0;Eb<Kb;Eb++){var Ib=Ha[Eb];if(-1!=Ib){var Xb=Eb<Qb?rb.get(Eb):null;ic(Xb).setTopHeight(Ib)}}Ha=Ha[Ha.length-1];-1!=Ha&&(rb=C(),ic(rb).setLeftHeight(Ha))}if(jb){Ha=n().getRowAnalyticalFieldSet();rb=Ha.getCount();Qb=jb.length-1;for(Kb=0;Kb<Qb;Kb++)Eb=jb[Kb],-1!=Eb&&(Ib=Kb<rb?Ha.get(Kb):null,ic(Ib).setLeftWidth(Eb));jb=jb[jb.length-1];-1!=jb&&(Ha=aa(),ic(Ha).setTopWidth(jb))}if(va=va.getJsonTreeExpandStates())for(jb=0;jb<va.length;jb++)Ha=va[jb],rb=new Ma,rb.fromJsonObject(Ha),db.push(rb)};this.keepScrollStatus=
function(va){A=va&&e?e.keepScrollStatus():null};this.setContextGetter=function(va){I=va};this.isExportable=function(){return N};var n=function(){return I.getAnalyticalModel()};this.protectedMethod={initTooltipsWidget:function(va,Ha,jb,rb){c||(c=new ua);c.setDetailShowedImpl(va,Ha);c.setLinkageImpl(jb,rb)},setCacheLoader:function(va){ob=va},createFacade:function(va,Ha,jb){return I.createFacade(va,Ha,jb)},getBlockingJqUi:function(){return I.getBlockingJqUi()},setExecutedModel:l};var f=function(){for(var va=
n().getRowAnalyticalFieldSet(),Ha=0;Ha<va.getCount();Ha++)if(va.get(Ha).getMetaField().isParentChildDimension())return!0;return!1},m=function(){return ba.getName()==Gb.CHARTTYPE_TABLE},h=function(){cc||(cc=new tb,M==La.LANDSCAPE?cc.setLandscape(!0):M==La.PORTRAIT&&cc.setLandscape(!1),cc.setSecondaryType(ca));cc.setChatConfig(I.getPreferences().getChartConfig());cc.setAxisModel(null);return cc},r=function(va){if(va){var Ha=f();P=new KTStyle;P.setVerticalAlign("middle");P.setFontSize(Oa.getFontSize());
P.setFontUnit("px");P.setFontName(Oa.getFontName());P.setTextAlign("right");O=new KTStyle;O.setTextAlign("center");O.setColor($a.TOP_HEAD_COLOR);O.setBackgroundColor($a.TOP_HEAD_BACKGROUND);R=new KTStyle;R.setTextAlign("right");R.setColor($a.TOP_HEAD_COLOR);R.setBackgroundColor($a.TOP_HEAD_BACKGROUND);Z=new KTStyle;Z.setTextAlign("left");Z.setBackgroundColor($a.LEFT_HEAD_BACKGROUND);G=new KTStyle;G.setTextAlign("left");J=new KTStyle;J.setBold(!0);ja=new KTStyle;ja.setBackgroundColor(Ha?$a.LEFT_HEAD_BACKGROUND:
$a.ROW_BACKGROUND_ODD);T=ja.copy();T.setBold(!0);Q=new KTStyle;Q.setBackgroundColor(Ha?$a.LEFT_HEAD_BACKGROUND:$a.ROW_BACKGROUND_EVEN);za=Q.copy();za.setBold(!0);da=new KTStyle;da.setBold(!1);Ha?(Aa=new KTBorderStyle,Aa.setBorderWidth(1),Aa.setBorderPen("solid"),Aa.setBorderColor($a.BORDER_COLOR)):Aa=null;sb=new KTBorderStyle;sb.setLeftBorderWidth(1);sb.setLeftBorderPen("solid");sb.setLeftBorderColor($a.BORDER_COLOR);Ab=new KTBorderStyle;Ab.setRightBorderWidth(1);Ab.setRightBorderPen("solid");Ab.setRightBorderColor($a.BORDER_COLOR);
xa=new KTBorderStyle;xa.setLeftBorderWidth(1);xa.setLeftBorderPen("solid");xa.setLeftBorderColor($a.BORDER_COLOR);xa.setRightBorderWidth(1);xa.setRightBorderPen("solid");xa.setRightBorderColor($a.BORDER_COLOR);Za=new KTBorderStyle;Za.setBottomBorderWidth(1);Za.setBottomBorderPen("solid");Za.setBottomBorderColor($a.BORDER_COLOR);Ra=new KTBorderStyle;Ra.setTopBorderWidth(1);Ra.setTopBorderPen("solid");Ra.setTopBorderColor($a.BORDER_COLOR);kb=new KTBorderStyle;kb.setLeftBorderWidth(1);kb.setLeftBorderPen("solid");
kb.setLeftBorderColor($a.BORDER_COLOR);Db=new KTBorderStyle;Db.setRightBorderWidth(1);Db.setRightBorderPen("solid");Db.setRightBorderColor($a.BORDER_COLOR);Db.setBottomBorderWidth(1);Db.setBottomBorderPen("solid");Db.setBottomBorderColor($a.BORDER_COLOR);gb=(Ha=(Ha=va.leftTopHead)?Ha.plane:null)&&0<Ha.length?!0:!1;var jb=va.topHead;sa=0==jb.length?gb?1:0:jb[0].length;var rb=va.leftHead;ia=0==rb.length?gb?Ha.length:0:rb[0].length;U=1!=ia||gb?120:160;Ha=0==sa&&0==ia;N=!Ha;var Qb=va.draw,Kb=Qb.type;
ca=Qb.secondaryType;M=Qb.direction;Qb=va.commonCell;ba=W.ChartTypeFactory.getInstance(Kb);g=ba.createJsonCellParser();g.parseCommonCell(Qb);var Eb=va.legends;Xa=Ka=Ua=null;if(Eb){Kb=Eb.size;Qb=Eb.continuousColor;Eb=Eb.discreteColor;if(Qb){var Ib=new eb;Ib.setJsonModel(Qb);Ua=Ib}Eb&&(Ib=new pb,Ib.setJsonModel(Eb),Ka=Ib);Kb&&(Ib=new wb,Ib.setJsonModel(Kb),Xa=Ib)}rb=rb.length;jb=jb.length;Kb=[Ua,Ka,Xa];z&&z(rb,jb,Kb);d.empty();Ha?(E.showNoDataPrompt(Va.get("incompleteTemplate","\u5b9a\u4e49\u4e0d\u5b8c\u6574\uff0c\u65e0\u53ef\u89c6\u5316\u5185\u5bb9\u3002")),
Y([null,null,null])):(Ha=A,y(va),k(),Y([Ua,Ka,Xa]),Ha&&e.restoreScrollStatus(Ha));e&&Pb()}else d.empty();D&&D()},k=function(){if(Xa){var va=Math.min(Sa($b),Ta(Ub));va=parseInt(.8*va);Xa.setBaseDiameter(va)}},v=function(va,Ha){va?(ub=va.cacheKey,Ob=va.nextPartRowStart,Zb=va.everyPartRows,(va=va.totalRows)&&(Fb=va),m()&&void 0!==Ob&&(0<=Ob?(va=Va.get("promptLazyLoading","\u5171#1\u884c\uff0c\u5df2\u52a0\u8f7d#2\u884c\u3002"),va=va.replace("#1",Fb).replace("#2",Ob),Da&&Da(va)):(va=Va.get("promptAllRowsLoaded",
"\u5171#1\u884c\uff0c\u5df2\u5168\u90e8\u52a0\u8f7d\u3002"),va=va.replace("#1",Fb),Da&&Da(va)))):(ub=null,Zb=Ob=-1,Fb=Ha,m()&&(va=Va.get("promptAllRowsLoaded","\u5171#1\u884c\uff0c\u5df2\u5168\u90e8\u52a0\u8f7d\u3002"),va=va.replace("#1",Fb),Da&&Da(va)))},y=function(va){var Ha=[];v(va.exhibitionCache,va.leftHead.length);e=new KTable;e.setCrossFrozenRenderMode(KTCrossFrozenRenderMode.STUPID_LIGHT);e.setSyncUIWhenModelChanged(!1);e.setMergeBlockTextVisibleAlways(!0);e.setDraggableAdjusting(q,sa,ia,
new ma);e.setCellAcrossListener(hc);e.setMultiTreeSupported(!0,sa,ia);e.addCellClickListener(Tb);e.setLargeDataMode(!0,!1);I.getMeta().isMdOfSrcMode()?e.addTreeExpandListener(Rb):(e.setSyncMergeBlockWhenModelChanged(!1),ub&&void 0===Ob&&(e.addTreeExpandListener(vb),e.addTreeStateChangedListener(function(Ib,Xb){Ib=Xb.getCell().getTreeModel();Ib.isHorizontal()||Ib.isLazyLoaded()||!Ib.isExpanded()||Xb.preventDefault()})),ub&&void 0!==Ob&&e.addScrollToBottomListener(function(Ib,Xb){0<=Ob&&qa(Ob,Zb,function(kc){v(kc.exhibitionCache);
e.lazyAppendData(!0);K(kc.leftHead,kc.cells,Ha);e.lazyAppendData(!1)})}));t&&w&&e.setScrollerVisible(t,w);e.setStyle(P);Aa&&e.setBorder(Aa);var jb=new ea(e);jb.setOutsideVisible(!1);e.setCellRender(jb);var rb=va.shedTitle.atColumn;mb=va.shedTitle.atRow;xb=rb.length;Wa=mb.length;jb=dc();var Qb=va.rowsIdx,Kb=null;Qb&&(Kb=function(Ib,Xb){var kc=new zb;kc.setShedTitleModel(Xb);kc.setBizRowIdx(Qb[Ib]);Ib=e.addRow();Ib.setUserObject(kc);return Ib});var Eb=va.warning;Eb&&Ba(Eb);qb(va.cells);V(va.topHead,
rb,jb);K(va.leftHead,va.cells,Ha,Kb);yb(va.mergeBlocks);e.setUICustomStyleMap({"background-color":$a.TABLE_CONTAINER_BACKGROUND});rb=$(e.getUI());rb.appendTo(d);rb.addClass("sa-exhibition-table");0<e.getRowsCount()&&0<e.getColumnsCount()&&(L(va.leftTopHead),e.updateUI(!0,A));A=null;e.setSyncUIWhenModelChanged(!0);jc(jb)},L=function(va){var Ha=va.diagonal;va=va.plane;if(Ha){va=Ha.crossRows;var jb=Ha.crossColumns,rb=Ha.titles;Ha=new KTDiagonalModel;Ha.setCrossRows(va);Ha.setCrossColumns(jb);for(var Qb=
[],Kb=[],Eb=0;Eb<va;Eb++)Eb<va-1&&(Qb[Eb]=1),Ha.setText(rb[Eb],Eb),Ha.setLean(!0,Eb);for(Eb=0;Eb<jb;Eb++){Eb<jb-1&&(Kb[Eb]=1);var Ib=jb+va-Eb-1;Ha.setText(rb[Ib],Ib);Ha.setLean(0<Eb,Ib)}Ha.setLinkToRows(Qb);Ha.setLinkToColumns(Kb);va=e.getRow(0).getCell(0);va.setValue(Ha);va.setBorder(Db);va.setStyle(O);e.setDiagonalRender(new Ca)}else if(va)for(jb=0;jb<va.length;jb++)Ha=e.getRow(0).getCell(jb),Ha.setValue(va[jb]),Ha.setBorder(Za),Ha.setStyle(O)},B=function(){return parseInt(10*((gb?.5:ia/(0==sa?
1:sa))-.5)+30)},F=function(va,Ha){for(var jb=[],rb=0,Qb=n().getColumnAnalyticalFieldSet(),Kb=Qb.getCount(),Eb=0;Eb<sa;Eb++){if(Eb<Kb){var Ib=Qb.get(Eb);var Xb=ec(Ib,!0);!Xb&&Ib.getMetaField().isParentChildDimension()&&(Xb=50)}else Xb=ec(null,!0);jb[Eb]=Xb?Xb:Eb==sa-1?Ha:va;rb+=jb[Eb]}jb[sa]=rb;return jb},H=function(va,Ha){for(var jb=[],rb=0,Qb=n().getRowAnalyticalFieldSet(),Kb=Qb.getCount(),Eb=0;Eb<ia;Eb++){if(Eb<Kb){var Ib=Qb.get(Eb);Ib=lc(Ib,!0)}else Ib=lc(null,!0);jb[Eb]=Ib?Ib:Eb==ia-1?Ha:va;rb+=
jb[Eb]}jb[ia]=rb;return jb},C=function(){var va=n().getRowAnalyticalFieldSet();return 0<va.getCount()?va.get(va.getCount()-1):null},aa=function(){var va=n().getColumnAnalyticalFieldSet();return 0<va.getCount()?va.get(va.getCount()-1):null},Sa=function(va){var Ha=C();return(Ha=ec(Ha,!1))?Ha:va},Ta=function(va){var Ha=aa();return(Ha=lc(Ha,!1))?Ha:va},qb=function(va){var Ha=0,jb=0;va&&0<va.length&&(Ha=va.length,(va=va[0])&&0<va.length&&(jb=va.length));va=h();var rb=ba.getSuggestedSize(va,n());ac=rb;
var Qb=rb.getMinWidth(),Kb=rb.getMinHeight(),Eb=rb.getMaxWidth(),Ib=rb.getMaxHeight();va=rb.getWidthHeightRatio();var Xb=U;Cb=rb.getLeftAxisColumnWidth();Cb=0<Cb?Cb:Xb;Xb=H(Xb,Cb);Xb=Xb[Xb.length-1];var kc=B();Nb=rb.getTopAxisRowHeight();Nb=0<Nb?Nb:kc;rb=F(kc,Nb);rb=rb[rb.length-1];Eb>Qb?(kc=d.innerWidth()-30,jb=parseInt((kc-Xb)/(0==jb?10:jb))+1,Ub=jb<Qb?Qb:jb>Eb?Eb:jb):Ub=Qb;Ib>Kb?(jb=d.innerHeight()-30,Ha=parseInt((jb-rb)/(0==Ha?10:Ha))+1,$b=Ha<Kb?Kb:Ha>Ib?Ib:Ha):$b=Kb;0<va&&(Ha=parseInt($b*va),
Ha<Ub?Ub=Ha:Ha>Ub&&($b=parseInt(Ub/va)))},Ba=function(va){var Ha=$("<div>");Ha.text(va);Ha.appendTo(d);Ha.addClass("sa-exhibition-warning");va=new wa;va.setText("X");va.addActionListener(function(){Ha.remove()});va.getJqUi().addClass("sa-exhibition-warning-close");va.getJqUi().appendTo(Ha)},V=function(va,Ha,jb){var rb=m(),Qb=va.length,Kb=!1;256<Qb&&(Kb=!0,Qb=256,Ba(Va.get("tooMuchColumns","\u5217\u6570\u592a\u591a\u4e0d\u80fd\u663e\u793a\u5b8c\u6574\uff0c\u5c1d\u8bd5\u628a\u6570\u636e\u591a\u7684\u5b57\u6bb5\u653e\u5230\u884c\u4e0a\u3002")));
for(var Eb=H(U,Cb),Ib=0;Ib<ia;Ib++){var Xb=e.addColumn();Xb.setWidth(Eb[Ib]);Ib==ia-1?(Xb.setStyle(G),0==Ib?Xb.setBorder(Ab):Xb.setBorder(xa)):(Xb.setStyle(Z),Xb.setBorder(kb))}Eb=Ta(Ub);fb=!f()&&rb||Kb?1:0;var kc=Qb+fb;for(Ib=0;Ib<kc;Ib++)Xb=e.addColumn(),Xb.setUserObject(new Yb),Xb.setWidth(Ib<Qb?Eb:4),0==Ib&&Xb.setBorder(kb);Eb=F(B(),Nb);kc=[];var sc=[];for(Ib=0;Ib<sa;Ib++){var wc=e.addRow();wc.setHeight(Eb[Ib]);Ib==sa-1&&wc.setBorder(Za);(Xb=Ib<sa-1||!rb)||(Xb=n().getColumnAnalyticalFieldSet(),
Xb=0<Xb.getCount()?Xb.get(Xb.getCount()-1).getMetaField().isParentChildDimension():!1);Xb?wc.setStyle(O):wc.setStyle(R);for(var yc,vc=null,Bc=!0,Cc=!1,Gc=65535,Dc=0;Dc<Qb;Dc++){var cb=ia+Dc;Xb=e.getColumn(cb);var Bb=Xb.getUserObject(),Sb=oa(va[Dc][Ib],Bb,Ib<Ha.length?Ha[Ib]:null);Bb=Sb[0];var gc=Sb[1],fc=Sb[2];Sb=Sb[3];var pc=null,mc=null;0<jb.length&&(mc=sc[Dc],mc||(mc=new Ma,mc.setHorizontal(!0),sc[Dc]=mc));Bb||gc?(pc=wc.getCell(cb),pc.setValue(Bb),pc.setUserObject(gc),!Sb&&pc.setStyle(da),fc?((Bc=
Pa(Bc,vc,pc,fc,!0,jb,mc))?vc=Cc:(vc=!0,Cc=pc.getTreeModel(),Cc.getLevel()<=Gc&&(vc=!1,Gc=Cc.isExpanded()?65535:Cc.getLevel()),Cc=vc),kc[Dc]=kc[Dc]||vc):(mc&&mc.addKey(Bb),Bc=Bc?vc?vc.getValue()==Bb:!0:!1)):(mc&&mc.addKey(null),Bc=!1);Sb&&Xb.setStyle(J);Ib<sa-1&&(Bb!=yc&&Xb.setBorder(kb),yc=Bb);kc[Dc]&&Xb.setHide(!0);vc=pc}}!rb&&0<sa&&!1===ac.isTopAsNumberAxis()&&(va=e.getRow(sa-1),Ha=va.getStyle(),Ha=Ha.copy(),Ha.setWrapText(!0),Ha.setVerticalAlign("top"),va.setStyle(Ha));if(Kb&&0<sa)for(cb=e.getColumnsCount()-
1,e.getColumn(cb).setWidth(40),Ib=0;Ib<sa;Ib++)wc=e.getRow(Ib),pc=wc.getCell(cb),pc.setValue("...")},K=function(va,Ha,jb,rb){rb||(rb=function(Bc,Cc){Bc=e.addRow();Bc.setUserObject(Cc);return Bc});for(var Qb=m(),Kb=e.getColumnsCount()-ia-fb,Eb=Sa($b),Ib=Q,Xb=!1,kc=null,sc=0;sc<va.length;sc++){Qb&&(Ib=Xb?ja:Q);var wc=va[sc],yc=new Yb,vc=rb(sc,yc);vc.setHeight(Eb);vc.setStyle(Ib);X(jb,wc,vc,kc,yc,Xb);(kc=Ha[sc])&&0<kc.length&&ya(Kb,kc,vc,Qb);Qb&&(Xb=!Xb);kc=vc}},X=function(va,Ha,jb,rb,Qb,Kb){for(var Eb=
!0,Ib=0;Ib<Ha.length;Ib++){var Xb=oa(Ha[Ib],Qb,Ib<mb.length?mb[Ib]:null),kc=Xb[0],sc=Xb[1],wc=Xb[2];Xb=Xb[3];if(kc||sc){var yc=rb?rb.getCell(Ib):null,vc=jb.getCell(Ib);vc.setValue(kc);vc.setUserObject(sc);!Xb&&vc.setStyle(da);Eb=wc?Pa(Eb,yc,vc,wc,!1,null,null):Eb?yc?yc.getValue()==kc:!0:!1}else Eb=!1;Xb&&jb.setStyle(Kb?T:za);Ib<ia-1&&(kc!=va[Ib]&&jb.setBorder(Ra),va[Ib]=kc)}},ya=function(va,Ha,jb,rb){for(var Qb=0;Qb<va;Qb++){var Kb=Ha[Qb];if(Kb){var Eb=jb.getCell(Qb+ia);Eb.setUserObject(Kb);if(rb){var Ib=
Kb.text;Ib&&(Eb.setValue(Ib),Kb=Kb.color)&&(Ib=new KTStyle,Ib.setColor(" "+Kb),Eb.setStyle(Ib))}}}},oa=function(va,Ha,jb){var rb=null,Qb=null,Kb=null,Eb=!1,Ib=!1;if("string"==typeof va)rb=va,Eb=!0;else if(va)switch(va.type){case "ns":rb=va.text;var Xb=va.value;Eb=!0;break;case "axis":Kb=va;break;case "subtotal":rb=va.text;Ib=!0;break;case "measure":rb=va.text;Ha.setMeasureIndex(va.index);break;case "tree":rb=va.text;var kc=va;Eb=!0;Qb=va.id;break;default:throw Error("Unknown HeadCell type.");}Ha&&
jb&&(Eb?Ha.addItem(jb,rb,Qb,Xb):Ib&&Ha.addItemForSubtotal());return[rb,Kb,kc,Ib]},Pa=function(va,Ha,jb,rb,Qb,Kb,Eb){var Ib=rb.id;Eb&&Eb.addKey(Ib);var Xb;if(Ha){var kc=Ha.getUserObject();(va=va?Ib==kc:!1)&&(Xb=Ha.getTreeModel())}else va=!1;if(!Xb){Ha=rb.level;kc=rb.last;var sc=rb.asParent?!0:!1;rb=rb.expanded?!0:!1;Xb=new KTCellTreeModel(Ha,Qb);(kc||0===kc)&&Xb.setLastChildLevel(kc);Xb.setHaveHandlerAlways(sc);if(Qb){if(Eb){rb=0>Ha;a:{if(0<Kb.length)for(Qb=0;Qb<Kb.length;Qb++)if(Ha=Kb[Qb],Ha.isSameKey(Eb)){Kb.splice(Qb,
1);Kb=Ha;break a}Kb=null}Kb&&(rb=Kb.isExpanded())}}else sc&&Xb.setLazyLoaded(rb);Xb.setExpanded(rb)}jb.setTreeModel(Xb);jb.setUserObject(Ib);return va},yb=function(va){for(var Ha=e.getColumnsCount()-fb,jb=[],rb=0;rb<va.length;rb++){var Qb=va[rb],Kb=Qb[2];Kb<Ha&&jb.push(new KTMergeBlock(Qb[0],Qb[1],Kb,Qb[3]<Ha?Qb[3]:Ha-1))}e.addMergeBlocks(jb)},Pb=function(){h().getChartConfig().getTableConfig().isFrozenTop()?e.setFrozenRows(sa):e.setFrozenRows(0);Hb()},Hb=function(){if(h().getChartConfig().getTableConfig().isFrozenLeft()){for(var va=
d.innerWidth(),Ha=0,jb=0,rb=Math.min(ia+1,e.getColumnsCount());jb<rb;jb++)Ha+=e.getColumn(jb).getWidth();e.setFrozenColumns(Ha>va?0:ia)}else e.setFrozenColumns(0)},Tb=function(va,Ha){b&&Ha.isLeftButton()&&(va=(va=Ha.getCell())?va.getValue():"",ab.fakeCopy("string"==typeof va?va:""))},hc=function(va,Ha,jb){var rb=!0,Qb=!0;if(va){var Kb=Ha<sa||jb<ia;if((Qb=jb>=e.getColumnsCount()-fb)||!m()&&!Kb)rb=!1}Kb=va&&0<va.length?va[0]:null;if(na!=Kb){if(na){var Eb=na["qing-bg"];delete na["qing-bg"];Eb&&$(na).css("background-color",
Eb);na["qing-left-top-header"]?Fa.showOperatingTips($(na),!1):na["qing-sorting-top-header"]?Fa.hideRowsSortingTips($(na)):na["qing-sorting-left-header"]&&Fa.hideColumnsSortingTips($(na))}Kb&&(rb&&(Kb["qing-bg"]=va.css("background-color"),va.css("background-color",$a.CELL_ACROSS_COLOR)),gb&&0==Ha&&jb<ia||!gb&&0==Ha&&0==jb?(Fa.showOperatingTips(va,!0),Kb["qing-left-top-header"]=!0):ba.isCellMeasurable(n())&&(!Qb&&(n().getRowAnalyticalFieldSet().hasAnyDimension()&&Ha==sa-1||gb&&0==Ha&&jb>=ia)?(Ha=e.getColumn(jb).getUserObject(),
Fa.showRowsSortingTips(va,Ha),Kb["qing-sorting-top-header"]=!0):n().getColumnAnalyticalFieldSet().hasAnyDimension()&&jb==ia-1&&(Ha=e.getRow(Ha).getUserObject(),Ha=Ha instanceof zb?Ha.getShedTitleModel():Ha,Fa.showColumnsSortingLittleBox(va,Ha),Kb["qing-sorting-left-header"]=!0)));na=Kb}},oc=function(va,Ha,jb,rb){var Qb=new Ma;Qb.setExpanded(va);Qb.setHorizontal(Ha);va=function(Eb){Eb=Eb.getTreeModel()?Eb.getUserObject():Eb.getValue();Qb.addKey(Eb)};if(Ha)for(Ha=0;Ha<=jb;Ha++){var Kb=e.getRow(Ha).getCell(rb);
va(Kb)}else for(jb=e.getRow(jb),Ha=0;Ha<=rb;Ha++)Kb=jb.getCell(Ha),va(Kb);return Qb},Rb=function(va,Ha){va=Ha.isExpanded();var jb=Ha.getCell().getTreeModel().isHorizontal(),rb=Ha.getRowIdx();Ha=Ha.getColIdx();Ha=oc(va,jb,rb,Ha);va=new ra;va.setValue(Ha);I.getCommandManager().perform(va)},vb=function(va,Ha){var jb=Ha.isExpanded(),rb=Ha.getCell().getTreeModel(),Qb=rb.isHorizontal();va=Ha.getRowIdx();var Kb=Ha.getColIdx();Ha=oc(jb,Qb,va,Kb);bc(Ha,rb.getLevel());if(!Qb&&jb&&!rb.isLazyLoaded()){rb.setLazyLoaded(!0);
Ha=e.searchMergeBlock(va,Kb);var Eb=(Ha?Ha.getRowIdxTo():va)+1,Ib=!1;va=e.getRow(va).getUserObject().getBizRowIdx();a(va,Kb,Eb,function(Xb){var kc=Xb.leftHead,sc=Xb.cells,wc=Xb.rowsIdx;Xb=Xb.mergeBlocks;Ib=0<Xb.length;var yc=e.isSyncUIWhenModelChanged();e.setSyncUIWhenModelChanged(!1);K(kc,sc,[],function(vc,Bc){var Cc=new zb;Cc.setShedTitleModel(Bc);Cc.setBizRowIdx(wc[vc]);vc=e.insertRow(Eb);vc.setUserObject(Cc);Ib=Wb(Eb,Kb)||Ib;Eb++;return vc});yb(Xb);Ib&&e.bucketingMergeBlocks(!0);e.setSyncUIWhenModelChanged(yc);
e.updateUI(!0)})}},Wb=function(va,Ha){var jb=[],rb=!1;e.visitAllMergeBlocks(function(Eb){va<=Eb.getRowIdxFrom()?(Eb.setRowIdxFrom(Eb.getRowIdxFrom()+1),Eb.setRowIdxTo(Eb.getRowIdxTo()+1),rb=!0):va<=Eb.getRowIdxTo()?(Eb.setRowIdxTo(Eb.getRowIdxTo()+1),rb=!0):va-1==Eb.getRowIdxTo()&&Eb.getColIdxTo()<Ha&&(Eb.setRowIdxTo(Eb.getRowIdxTo()+1),rb=!0,jb[Eb.getColIdxTo()]=!0)});for(var Qb=[],Kb=0;Kb<Ha;Kb++)jb[Kb]||Qb.push(new KTMergeBlock(va-1,va,Kb,Kb));0<Qb.length&&e.addMergeBlocks(Qb);return rb},bc=function(va,
Ha){for(var jb=db.length-1;0<=jb;jb--)if(db[jb].isSameKey(va)){db.splice(jb,1);break}va.isExpanded()!=0>Ha&&(db.push(va),128<db.length&&db.splice(0,1))},dc=function(){for(var va=[],Ha=0;Ha<db.length;Ha++){var jb=db[Ha];jb.isHorizontal()&&va.push(jb)}return va},jc=function(va){for(var Ha=0;Ha<va.length;Ha++)for(var jb=va[Ha],rb=0;rb<db.length;rb++)if(db[rb].isSameKey(jb)){db.splice(rb,1);break}},ic=function(va){va=qc(va);var Ha=Qa[va];Ha||(Ha=new S,Qa[va]=Ha);return Ha},qc=function(va){if(va){var Ha=
va.getMetaField().getFullName();va=va.getPartValue();return Ha+(va?"~"+va:"")}return"qing-system-non-field"},ec=function(va,Ha){va=qc(va);va=Qa[va];var jb;va&&(jb=Ha?va.getTopHeight():va.getLeftHeight());return jb},lc=function(va,Ha){va=qc(va);va=Qa[va];var jb;va&&(jb=Ha?va.getLeftWidth():va.getTopWidth());return jb}};W.AbstractTooltipsWidget=Ja;var fa,Ea,Va,Oa,wa,Ga,Ia,hb,ib,nb,bb,la,Jb,pa,Gb,Vb,tb,lb,Na;(function(){var ma=com.kingdee.bos.qing.common;fa=ma.DomUtil;Ea=ma.CanvasUtil;ma=com.kingdee.bos.qing.framework.common;
Va=ma.MultilanguageManager.createPackageAccessor(W);Oa=ma.GlobalFont;ma=com.kingdee.bos.qing.ui.component;wa=ma.WorkButton;ma=com.kingdee.bos.qing.core;nb=ma.Icons;bb=ma.CommonJsonParser;la=ma.LinkageRegister;ma=com.kingdee.bos.qing.core.model;Jb=ma.AbstractAnalyticalField;pa=ma.ExecutableValue;ma=com.kingdee.bos.qing.longer.model;Gb=ma.AnalyticalModel;Vb=ma.SortingLane;tb=ma.ChartContext;ma=com.kingdee.bos.qing.chart.model;Ga=ma.DiscreteColorLegendModel;ma=com.kingdee.bos.qing.chart.render;Ia=ma.SizeLegendRender;
hb=ma.ContinuousColorLegendRender;ib=ma.DiscreteColorLegendRender;ma=com.kingdee.bos.qing.core.controller;lb=ma.AbstractAction;Na=ma.ActionChangeProperty})();var $a={BORDER_COLOR:"#d7e2e2",TOP_HEAD_COLOR:"#333",TOP_HEAD_BACKGROUND:"#f4f4f4",LEFT_HEAD_BACKGROUND:"#fff",ROW_BACKGROUND_EVEN:"#fff",ROW_BACKGROUND_ODD:"#f0f4fa",TABLE_CONTAINER_BACKGROUND:"#e9ecf1",CELL_ACROSS_COLOR:"#D6E6F8"},La=new function(){this.PORTRAIT="PORTRAIT";this.LANDSCAPE="LANDSCAPE"};Ya.BOX_LEN=15;Lb.TYPE_SIZE="size";Lb.TYPE_CONTINUOUS_COLOR=
"continuousColor";Lb.TYPE_DISCRETE_COLOR="discreteColor";Ma.SEPARATER="_|_";var ab=new function(){var ma;this.fakeCopy=function(ha){ma||(ma=$("<div>"),ma.appendTo($(document.body)),ma.css({position:"absolute",left:-1E3,top:-1E3}));ma.text(ha);var ta=document.createRange();ta.setStart(ma[0],0);ta.setEnd(ma[0],0==ha.length?0:1);ha=window.getSelection();ha.removeAllRanges();ha.addRange(ta)}}})();(function(){function Ya(){function bb(){var ba,ca,M,ia;this.setStart=function(sa){ca=sa};this.getStart=function(){return ca};this.setEnd=function(sa){M=sa};this.getEnd=function(){return M};this.setRowNums=function(sa){ba=sa};this.getRowNums=function(){return ba};this.setContinuousRows=function(sa){ia=sa};this.isContinuousRows=function(){return ia};this.getRowsCount=function(){return ia?M:ba.length};this.getRowNum=function(sa){return ia?sa:ba[sa-1]};this.toJsonObject=function(){var sa={};sa.continuousRows=
ia;sa.rowNumbers=ba;sa.start=ca;sa.end=M;return sa};this.fromJsonObject=function(sa){ia=sa.continuousRows;ba=sa.rowNumbers;ca=sa.start;M=sa.end}}function la(){var ba={},ca={};this.collect=function(M){var ia=M.getDisplayName(),sa=ba[ia];sa||(sa=[],ba[ia]=sa);sa.push(M);ca[M.getFullName()]=M};this.getDisplayName=function(M){var ia=M.getDisplayName(),sa=ba[ia];return sa&&1<sa.length?(M=M.getFullDisplayName(),M=nb.decodeFullName(M)[0],ia+"("+M+")"):ia};this.getVisibleMetaField=function(M){return ca[M]}}
Mb.call(this);var Jb=this,pa=this.protectedMethod,Gb=new wa,Vb,tb,lb,Na,$a,La,ab,ma,ha,ta,ka=!1,p=1,ra,ea;this.setContext=function(ba,ca,M,ia,sa){$a=ba;La=ca;ab=M;Na=ia;lb=sa};this.setEncodedCoordinate=function(ba){ma=ba};var Ca=this.showDialog;this.showDialog=function(){var ba=$(document.body),ca=ba.prop("clientWidth");ba=ba.prop("clientHeight");var M=Math.min(1,Math.max(.8,1.16-2E-4*ca)),ia=parseInt(M*ca);ca=parseInt(M*ba);Jb.setSize(ia,ca);pa.setTitle(zb.get("viewData","\u67e5\u770b\u6570\u636e"));
pa.setSelectable(!0);pa.getDialogCtrl().setFullScreenEnabled();pa.getDialogCtrl().setResizeEnabled();pa.getDialogCtrl().addResizeListener(function(){Gb.resize()});pa.setFooterPaneCreator(null);pa.setContentPaneCreator(function(){return U(ia)});pa.setClosingAction(function(sa){});x();Gb.setLoader(d);Ca();g(!1)};var U=function(ba){var ca=Gb.getJqUi();Vb=new S;Vb.setChecked(!1);Vb.setText(zb.get("showAllFields","\u663e\u793a\u6240\u6709\u5b57\u6bb5"));Vb.addCheckedListener(u);var M=$("<div>");M.append(ca);
M.append(Vb.getJqUi());lb(function(ia){ia&&(tb=new Ma,tb.addActionListener(c),tb.getJqUi().appendTo(M),E(!1));400>ba&&tb?(pb.layoutCtrlWithLRTB(ca,0,0,null,30,10,null),pb.layoutCtrlWithLRTB(tb.getJqUi(),null,0,100,0,null,23),pb.layoutCtrlWithLRTB(Vb.getJqUi(),0,null,100,0,null,23)):(pb.layoutCtrlWithLRTB(ca,0,0,null,0,10,null),ia=0,tb&&(pb.layoutCtrlWithLRTB(tb.getJqUi(),null,ia,100,0,null,23),ia+=120),pb.layoutCtrlWithLRTB(Vb.getJqUi(),null,ia,100,0,null,23))});return M},E=function(ba){ba?(tb.setText(zb.get("exporting",
"\u6b63\u5728\u5bfc\u51fa...")),tb.setEnabled(!1)):(tb.setText(zb.get("exportToExcel","\u5bfc\u51fa\u5230Excel")),tb.setEnabled(!0))},u=function(ba,ca){1==p&&Vb.isChecked()?(p=2,g(!0)):(w(),q(!0))},g=function(ba){var ca=Na(function(ia){ta=new bb;ta.fromJsonObject(ia.dataRowInfo);ha=ia.dataSourceCacheKey;2==p&&(p=3);Gb.reset();Gb.setTotalRowsCount(ta.getRowsCount());0<ta.getRowsCount()&&Gb.loadRows()},function(ia,sa){p=1}),M=La.createDependentMeta($a);ca.setBlockingJqUi($(document.body));ca.getDetailRowNums(M,
La,ab,ma,ba)},d=function(ba,ca){var M=new bb;M.setContinuousRows(ta.isContinuousRows());ta.isContinuousRows()?(M.setStart(ba),M.setEnd(ca)):M.setRowNums(ta.getRowNums().slice(ba-1,ca-ba+1));ba=Na(e);ba.setBlockingJqUi($(document.body));ba.getDetailRowData(ha,$a,La,M)},e=function(ba){var ca=ba.dataSegment;ba=ba.columnInfos;3==p?(p=4,ra=w(ba),b(ba),q(),t(ca,!0)):ka?t(ca,!1):(ka=!0,ea=w(),b(ba),q(),t(ca,!0))},c=function(ba){if(0!=ta.getRowsCount()){ba=!Vb.isChecked();var ca=Na(function(M){E(!1);var ia=
eb.formatDate("yyyyMMdd_HHmmss");Yb.downloadFile("Qing-"+ia+".xlsx",M)},function(M,ia){E(!1);return wb.ExportHelper.facadeErrorHandler(M,ia)});ca.setShowBlocking(!1);E(!0);ca.exportDetailRowData($a,La,ha,ba,ta)}},b=function(ba){Gb.setupColumns(ba.length,function(ca){return $a.searchMetaField(ba[ca])})},q=function(ba){var ca=Vb.isChecked()?ra:ea;Gb.updateColumnsVisible(function(M){return ca.getVisibleMetaField(M)?!0:!1},function(M){M=ca.getVisibleMetaField(M);return ca.getDisplayName(M)},ba?!0:!1)},
t=function(ba,ca){ca?Gb.appendRows(ba.length,function(M,ia){return ba[M][ia]}):Gb.lazyAppendRows(ba.length,function(M,ia){return ba[M][ia]})},w=function(ba){var ca=new la;if(ba)for(var M=0;M<ba.length;M++){var ia=$a.searchMetaField(ba[M]);ca.collect(ia)}else for(ba=La.getUsingMetaFields(),M=0;M<ba.length;M++)ca.collect(ba[M]);return ca},x=function(){Gb.hookOperation(function(){});Va.isRuntimeSupported()&&La.getLinkTargets()&&A(function(ba){Gb.hookOperation(function(ca,M){var ia=$("<div>");Oa.background(ia,
"icon_bill_linkage");pb.layoutCtrlCenterAlign(ia,12);pb.layoutCtrlMiddleAlign(ia,12);ia.css("cursor","pointer");ia.attr("title",zb.get("linkage","\u5355\u636e\u8054\u67e5"));ia.appendTo(ca);ia.on("click",function(sa){sa=ta.getRowNum(M);sa=N(sa,ba);var mb=Gb.getJqUi().parent(),Wa=[12,16];Wa=pb.upwardCoordinate(ia[0],Wa,mb[0]);sa.show(mb,Wa[0],Wa[1],ia,!0,[0,-20])})})})},A=function(ba){var ca=La.getLinkTargets().copy().getUsefulItems();if(0!=ca.length){for(var M=[],ia=0;ia<ca.length;ia++)M.push(ca[ia].getBizUiId());
Va.lookupBizMeta(M,function(sa){for(var mb=ca.length-1;0<=mb;mb--){var Wa=sa[mb];Wa?ca[mb].setUsableDisplayName(Wa):ca.splice(mb,1)}0<ca.length&&ba(ca)},!0)}},N=function(ba,ca){var M=new fa,ia=W.createActionMenuItem(Ga.makeDetailDataLinkageCaption(ba));ia.setEnabled(!1);M.addItemModel(ia);for(var sa=function(xb){return W.createActionMenuItem(Wa,function(gb){Ga.jumpToEditUi(xb,Na,ha,ba,function(fb,Da){!1===Da?pa.getMessageCurtain().showPrompt(fb,-1):pa.getMessageCurtain().showSuccess(fb)})})},mb=0;mb<
ca.length;mb++){ia=ca[mb];var Wa=Ga.makeItemDisplay(ia);ia=sa(ia);M.addItemModel(ia)}ca=new W;ca.setModel(M);return ca}}function Lb(){function bb(){Mb.call(this);var ma=this.protectedMethod,ha,ta;(function(){ma.setTitle(zb.get("linkage","\u5355\u636e\u8054\u67e5"));ma.getDialogCtrl().setResizeEnabled();ma.setFooterPaneCreator(null);ma.setContentPaneCreator(function(){return ha=$("<div>")});ma.setClosingAction(function(ka){ta&&ta(ka)})})();this.setClosingAction=function(ka){ta=ka};this.setContent=
function(ka){pb.layoutCtrlWithLRTB(ka,0,0,null,0,0,null);ha.empty();ha.append(ka)};this.closeDialog=function(){ma.destroy()}}var la,Jb,pa,Gb,Vb,tb;this.setContext=function(ma,ha,ta,ka,p){la=ma;Jb=ha;pa=ta;Gb=ka;Vb=p};this.jumping=function(){var ma=pa.getLinkTargets().getRunnableItems();1<ma.length?Na(ma,function(ha){ha&&lb(ha)}):lb(ma[0])};var lb=function(ma){var ha=pa.createDependentMeta(Jb,[ma.getForeignKey()]),ta=Ga.makeJsonLongerClickedContext(Vb);Ga.jumpToListUi(ma,ta,la,ha,pa,Gb,function(ka,
p){La(ka,!1===p?8E3:5E3)},function(ka,p){$a(ka,function(){p(!1)})})},Na=function(ma,ha){var ta=0,ka=$("<div>");ka.css("overflow","auto");for(var p=0;p<ma.length;p++){var ra=ma[p],ea=Ga.makeItemDisplay(ra),Ca=new Ma;Ca.setText(ea);Ca.setUserObject(ra);Ca.addActionListener(function(U){ha(U.getUserObject())});Ca.getJqUi().appendTo(ka);pb.layoutCtrlWithLRTB(Ca.getJqUi(),0,0,null,ta,null,30);ta+=40}ab(400,80+ta).setContent(ka)},$a=function(ma,ha){var ta=new ua(ma);ta.setAlign(ua.ALIGN_CENTER);var ka=new Ja(zb.get("buttonConfirm",
"\u6211\u77e5\u9053\u4e86"));ka.addActionListener(function(p){ha()});ma=$("<div>");ma.append(ta.getJqUi());ma.append(ka.getJqUi());pb.layoutCtrlWithLRTB(ta.getJqUi(),0,0,null,0,50,null);pb.layoutCtrlWithLRTB(ka.getJqUi(),null,null,null,null,10,26);pb.layoutCtrlCenterAlign(ka.getJqUi(),100);ta=ab(400,200);ta.setContent(ma);ta.setClosingAction(function(p){ha()})},La=function(ma,ha){ma=new ua(ma);ma.setAlign(ua.ALIGN_CENTER);var ta=$("<div>");ta.append(ma.getJqUi());pb.layoutCtrlWithLRTB(ma.getJqUi(),
0,0,null,0,20,null);var ka=ab(400,200);ka.setContent(ta);setTimeout(function(){ka.closeDialog()},ha)},ab=function(ma,ha){tb||(tb=new bb,tb.setSize(ma,ha),tb.showDialog());return tb}}"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.longer&&(com.kingdee.bos.qing.longer={});"undefined"==typeof com.kingdee.bos.qing.longer.ui&&
(com.kingdee.bos.qing.longer.ui={});var wb=com.kingdee.bos.qing.longer.ui;wb.ExecutableExhibition=function(){wb.Exhibition.call(this);var bb=this.protectedMethod,la,Jb,pa,Gb;this.setRenderingInterceptor=function(La){pa=La};this.setExecutedListener=function(La){la=La};this.setExcutedModelChangedListener=function(La){Jb=La};this.initCacheLoader=function(){var La=0;bb.setCacheLoader(function(ab,ma,ha,ta,ka,p){var ra=(new Date).getTime();bb.createFacade(function(ea){ea.timestamp<La||p(ea.tableView)}).easter(ra,
ab,ma,ha,ta,ka);La=ra})};this.initTooltipsWidget=function(La,ab,ma,ha,ta){bb.initTooltipsWidget(La,function(ka){var p=ma(),ra=ha(),ea=ta(),Ca=new Ya;Ca.setContext(p,ra,ea,bb.createFacade,ab);Ca.setEncodedCoordinate(JSON.stringify(ka));Ca.showDialog()},function(){return ha().getLinkTargets()?!0:!1},function(ka){var p=ma(),ra=ha(),ea=ta(),Ca=new Lb;Ca.setContext(bb.createFacade,p,ra,ea,ka);Ca.jumping()})};this.clearExecuted=function(){lb(null)};this.execute=function(La,ab,ma,ha){var ta=bb.createFacade(function(p){la&&
la(!0,void 0,void 0);var ra=p.tableView;p=p.filterPreparedValues;Na(ab.getFilterFieldSet(),p,-1);lb(ra)},function(p,ra,ea){p=[p,ra,ea];la&&la(!1,p,ta);return!0},function(){ka.hideWaiting()});ta.setCancelable(!0);ta.setShowBlocking(!1);ta.setProgressListener(function(p){ka.hookProgressDisplayer(hb.makeUiCreator(p))});La=ta.execute(La,ab,ma,ha);var ka=Vb(La)};this.filteringExecute=function(La,ab,ma,ha,ta){var ka=bb.createFacade(function(ra){la&&la(!0,void 0,void 0);var ea=ra.tableView;ra=ra.filterPreparedValues;
Na(ab.getFilterFieldSet(),ra,ta);lb(ea)},function(ra,ea,Ca){ra=[ra,ea,Ca];la&&la(!1,ra,ka);return!0},function(){p.hideWaiting()});ka.setCancelable(!0);ka.setShowBlocking(!1);ka.setProgressListener(function(ra){p.hookProgressDisplayer(hb.makeUiCreator(ra))});La=ka.filteringExecute(La,ab,ma,ha,ta);var p=Vb(La)};this.christmasExecute=function(La,ab,ma,ha,ta,ka){ta&&Va.isRuntimeSupported()&&$a(ab);var p=bb.createFacade(function(ea){if(p.getUserObject()==Gb){var Ca=function(){la&&la(!0,void 0,void 0);
var U=ea.tableView,E=ea.filterPreparedValues,u=ea.filterSelectedValues,g=ab.getFilterFieldSet();if(0<g.getCount()){for(var d=0;d<g.getCount();d++){var e=E[d],c=g.getFilter(d);e=ib.create(e);c.setPreparedModel(e);u&&!c.isFullValue()&&(e=u[d])&&c.applySelectedValues(e)}ka&&ka(g)}lb(U)};pa?(pa(Ca),pa=null):Ca()}},function(ea,Ca,U){if(p.getUserObject()==Gb){var E=function(){var u=[ea,Ca,U];la&&la(!1,u,p)};pa?(pa(E),pa=null):E()}return!0},function(){ra.hideWaiting()});tb(p);p.setCancelable(!0);p.setShowBlocking(!1);
p.setProgressListener(function(ea){ra.hookProgressDisplayer(hb.makeUiCreator(ea))});La=p.christmasExecute(La,ab,ma,ha,ta);var ra=Vb(La)};var Vb=function(La){var ab=new Ia;ab.setIconVisible(!0);ab.hookOwner(bb.getBlockingJqUi(),null);ab.showWaiting(hb.getWaitingText(),La);return ab},tb=function(La){Gb=(new Date).getTime();La.setUserObject(Gb)},lb=function(La){bb.setExecutedModel(La);Jb&&Jb(La)},Na=function(La,ab,ma){for(var ha=0;ha<ab.length;ha++){var ta=ab[ha];ha!=ma&&ta&&La.getFilter(ha).updatePreparedModel(ta)}},
$a=function(La){if(La=La.getLinkTargets()){var ab=La.getUsefulItems();if(0<ab.length){La=[];for(var ma=0;ma<ab.length;ma++)La.push(ab[ma].getBizUiId());Va.lookupBizMeta(La,function(ha){for(var ta=0;ta<ab.length;ta++){var ka=ab[ta],p=ha[ta];p?(ka.setRuntimeValid(!0),ka.setUsableDisplayName(p)):ka.setRuntimeValid(!1)}})}}}};wb.ExportHelper=new function(){this.facadeErrorHandler=function(bb,la){return 800800==bb?(bb=new Ea,bb.setOptionType(Ea.OPTION_OK),bb.setMessage(la),bb.showDialog(),!0):!1}};var eb,
pb,zb,Yb,Mb,S,Ma,Ja,ua,W,fa,Ea,Va,Oa,wa,Ga,Ia,hb,ib,nb;(function(){var bb=com.kingdee.bos.qing.common;eb=bb.Util;pb=bb.DomUtil;bb=com.kingdee.bos.qing.framework.common;zb=bb.MultilanguageManager.createPackageAccessor(wb);Yb=bb.RemoteFramework;bb=com.kingdee.bos.qing.ui.component;Mb=bb.AbstractModalDialog;S=bb.CheckBox;Ma=bb.WorkButton;Ja=bb.Button;ua=bb.Label;W=bb.Menu;fa=bb.MenuModel;Ea=bb.MessageDialog;bb=com.kingdee.bos.qing.core;Oa=bb.Icons;Va=bb.LinkageRegister;bb=com.kingdee.bos.qing.core.commonui;
wa=bb.DataDetailTable;Ga=bb.LinkageHelper;Ia=bb.LongtimeWaitingMask;hb=bb.ExecutingProgressParser;bb=com.kingdee.bos.qing.core.model;ib=bb.AbstractFilterPreparedModel;nb=bb.NameUtil})()})();(function(){function Ya(){ua.AbstractTabPane.call(this);var Oa=this,wa,Ga=$("<div>"),Ia,hb;this.setModel=function(ib){wa=ib};this.ui2model=function(ib){Ia&&Oa.protectedUi2Model(ib)};this.protectedUi2Model=function(){throw Error("Implement");};this.getJqUi=function(){return Ga};this.into=function(){Ia||(Ia=$("<div>"),Ia.appendTo(Ga),Yb.layoutCtrlWithLRTB(Ia,20,10,null,10,10,null),Oa.protectedInitUi(Ia,wa))};this.protectedInitUi=function(ib,nb){throw Error("Implement");};this.protectedMethod={appendCtrl:function(ib,
nb,bb,la,Jb,pa){ib.append(nb);Yb.layoutCtrl(nb,bb,la,Jb,pa)},createRadio:function(ib,nb){!hb&&(hb={});var bb=hb[ib];bb||(bb=new Ea,hb[ib]=bb);ib=new fa;ib.setText(nb);bb.addElement(ib);return ib}}}function Lb(){Ya.call(this);var Oa=this.protectedMethod,wa,Ga,Ia,hb,ib,nb;this.getTabHeadText=function(){return Mb.get("table","\u8868\u683c")};this.protectedInitUi=function(bb,la){var Jb=Oa.appendCtrl;wa=Oa.createRadio("PML",Mb.get("parallelMeasureAtColumn","\u5de6\u53f3\uff08\u5ea6\u91cf\u540d\u79f0\u663e\u793a\u5728\u4e0a\u8868\u5934\uff09"));
Ga=Oa.createRadio("PML",Mb.get("parallelMeasureAtRow","\u4e0a\u4e0b\uff08\u5ea6\u91cf\u540d\u79f0\u663e\u793a\u5728\u5de6\u8868\u5934\uff09"));var pa=new Ma(Mb.get("parallelMeasureLayout","\u591a\u4e2a\u5ea6\u91cf\u5e76\u5217\u6392\u5e03\uff1a")),Gb=$("<div>");Oa.appendCtrl(Gb,pa.getJqUi(),0,0,300,23);Oa.appendCtrl(Gb,wa.getJqUi(),0,25,300,23);Oa.appendCtrl(Gb,Ga.getJqUi(),0,50,300,23);Jb.call(Oa,bb,Gb,0,0,400,75);Jb=Oa.appendCtrl;Ia=Oa.createRadio("subtotal",Mb.get("totalAhead","\u524d\u9762"));
hb=Oa.createRadio("subtotal",Mb.get("totalBehind","\u540e\u9762"));pa=new Ma(Mb.get("totalPosition","\u5c0f\u8ba1/\u603b\u8ba1\u663e\u793a\u5728\uff1a"));Gb=$("<div>");Oa.appendCtrl(Gb,pa.getJqUi(),0,0,300,23);Oa.appendCtrl(Gb,Ia.getJqUi(),0,25,300,23);Oa.appendCtrl(Gb,hb.getJqUi(),0,50,300,23);Jb.call(Oa,bb,Gb,0,85,400,75);Jb=Oa.appendCtrl;ib=new Ja;ib.setText(Mb.get("frozenTop","\u4e0a\u8868\u5934"));nb=new Ja;nb.setText(Mb.get("frozenLeft","\u5de6\u8868\u5934"));pa=new Ma(Mb.get("frozen","\u51bb\u7ed3\u8868\u5934\uff1a"));
Gb=$("<div>");Oa.appendCtrl(Gb,pa.getJqUi(),0,0,300,23);Oa.appendCtrl(Gb,ib.getJqUi(),0,25,300,23);Oa.appendCtrl(Gb,nb.getJqUi(),0,50,300,23);Jb.call(Oa,bb,Gb,0,170,400,75);bb=la.getTableConfig();bb.isParallelMeasureLayoutAtRow()?Ga.setChecked(!0):wa.setChecked(!0);bb.isTotalAhead()?Ia.setChecked(!0):hb.setChecked(!0);ib.setChecked(bb.isFrozenTop());nb.setChecked(bb.isFrozenLeft())};this.protectedUi2Model=function(bb){bb=bb.getTableConfig();bb.setParallelMeasureLayoutAtRow(Ga.isChecked());bb.setTotalAhead(Ia.isChecked());
bb.setFrozenTop(ib.isChecked());bb.setFrozenLeft(nb.isChecked())}}function wb(){Ya.call(this);var Oa=this.protectedMethod,wa,Ga;this.getTabHeadText=function(){return Mb.get("general","\u5168\u90e8\u56fe\u8868")};this.protectedInitUi=function(Ia,hb){wa=new Ja;wa.setText(Mb.get("showChartLabel","\u663e\u793a\u56fe\u8868\u6807\u7b7e"));wa.setChecked(hb.isShowLabel());Oa.appendCtrl(Ia,wa.getJqUi(),0,0,200,20);Ga=new Ja;Ga.setText(Mb.get("showLegend","\u663e\u793a\u56fe\u4f8b"));Ga.setChecked(hb.isShowLegend());
Oa.appendCtrl(Ia,Ga.getJqUi(),0,30,200,20)};this.protectedUi2Model=function(Ia){Ia.setShowLabel(wa.isChecked());Ia.setShowLegend(Ga.isChecked())}}function eb(){Ya.call(this);var Oa=this.protectedMethod,wa,Ga,Ia,hb,ib,nb,bb;this.getTabHeadText=function(){return Mb.get("chartPie","\u997c\u56fe")};this.protectedInitUi=function(pa,Gb){Oa.appendCtrl(pa,la(),0,0,400,25);var Vb=Oa.appendCtrl;Ia=new Ja;Ia.setText(Mb.get("chartLabelAsName","\u540d\u79f0"));Ia.addCheckedListener(Jb);hb=new Ja;hb.setText(Mb.get("chartLabelAsNumber",
"\u6570\u503c"));hb.addCheckedListener(Jb);ib=new Ja;ib.setText(Mb.get("chartLabelAsPercent","\u767e\u5206\u6bd4"));ib.addCheckedListener(Jb);var tb=new Ma(Mb.get("showChartLabelAs","\u5f53\u663e\u793a\u56fe\u8868\u6807\u7b7e\u65f6\uff0c\u5c55\u73b0\uff1a")),lb=$("<div>");Oa.appendCtrl(lb,tb.getJqUi(),0,0,300,23);Oa.appendCtrl(lb,Ia.getJqUi(),0,25,200,23);Oa.appendCtrl(lb,hb.getJqUi(),0,50,200,23);Oa.appendCtrl(lb,ib.getJqUi(),0,75,200,23);Vb.call(Oa,pa,lb,0,35,400,100);Vb=Oa.appendCtrl;nb=Oa.createRadio("negative",
Mb.get("hideNegative","\u8d1f\u6570\u4e0d\u663e\u793a"));bb=Oa.createRadio("negative",Mb.get("absNegative","\u8d1f\u6570\u4f7f\u7528\u7edd\u5bf9\u503c"));tb=new Ma(Mb.get("pieChartNegative","\u5f53\u6570\u636e\u4e3a\u8d1f\u503c\u65f6\uff1a"));lb=$("<div>");Oa.appendCtrl(lb,tb.getJqUi(),0,0,300,23);Oa.appendCtrl(lb,nb.getJqUi(),0,25,200,23);Oa.appendCtrl(lb,bb.getJqUi(),0,50,200,23);Vb.call(Oa,pa,lb,0,145,400,75);pa=Gb.getPieConfig();Gb=pa.getTopN();wa.setChecked(0!=Gb);0!=Gb?Ga.setValue(Gb):Ga.setValue(3);
Ga.setEnabled(wa.isChecked());Gb=pa.getLabelType();Ia.setChecked((Gb&Va.LABEL_NAME)==Va.LABEL_NAME);hb.setChecked((Gb&Va.LABEL_NUMBER)==Va.LABEL_NUMBER);ib.setChecked((Gb&Va.LABEL_PERCENT)==Va.LABEL_PERCENT);pa.isHideNegative()?nb.setChecked(!0):bb.setChecked(!0)};this.protectedUi2Model=function(pa){pa=pa.getPieConfig();var Gb=Ga.getValue();pa.setTopN(wa.isChecked()&&null!=Gb&&""!=Gb?Gb:0);pa.setLabelType((Ia.isChecked()?Va.LABEL_NAME:0)|(hb.isChecked()?Va.LABEL_NUMBER:0)|(ib.isChecked()?Va.LABEL_PERCENT:
0));pa.setHideNegative(nb.isChecked())};var la=function(){wa=new Ja;wa.addCheckedListener(function(tb){Ga.setEnabled(wa.isChecked())});Ga=new W;Ga.setConstraint(1,100,1);var pa=new Ma(Mb.get("showTop","\u663e\u793a\u524d")),Gb=new Ma(Mb.get("otherAs","\u9879\uff0c\u5176\u4f59\u9879\u663e\u793a\u4e3a\u201c\u5176\u5b83\u201d\u3002")),Vb=$("<div>");Oa.appendCtrl(Vb,wa.getJqUi(),0,0,20,23);Oa.appendCtrl(Vb,pa.getJqUi(),20,0,40,23);Oa.appendCtrl(Vb,Ga.getJqUi(),60,0,60,23);Oa.appendCtrl(Vb,Gb.getJqUi(),
124,0,300,23);return Vb},Jb=function(pa){Ia.isChecked()||hb.isChecked()||ib.isChecked()||pa.setChecked(!0)}}function pb(){Ya.call(this);var Oa=this.protectedMethod,wa,Ga;this.getTabHeadText=function(){return Mb.get("chartTreeMap","\u6811\u56fe")};this.protectedInitUi=function(Ia,hb){var ib=Oa.appendCtrl;wa=Oa.createRadio("negative",Mb.get("hideNegative","\u8d1f\u6570\u4e0d\u663e\u793a"));Ga=Oa.createRadio("negative",Mb.get("absNegative","\u8d1f\u6570\u4f7f\u7528\u7edd\u5bf9\u503c"));var nb=new Ma(Mb.get("pieChartNegative",
"\u5f53\u6570\u636e\u4e3a\u8d1f\u503c\u65f6\uff1a")),bb=$("<div>");Oa.appendCtrl(bb,nb.getJqUi(),0,0,300,23);Oa.appendCtrl(bb,wa.getJqUi(),0,25,200,23);Oa.appendCtrl(bb,Ga.getJqUi(),0,50,200,23);ib.call(Oa,Ia,bb,0,0,400,75);hb.getRectTreeConfig().isHideNegative()?wa.setChecked(!0):Ga.setChecked(!0)};this.protectedUi2Model=function(Ia){Ia.getRectTreeConfig().setHideNegative(wa.isChecked())}}"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.longer&&(com.kingdee.bos.qing.longer={});"undefined"==typeof com.kingdee.bos.qing.longer.ui&&(com.kingdee.bos.qing.longer.ui={});var zb=com.kingdee.bos.qing.longer.ui;zb.ChartSetting=function(){S.call(this);var Oa=this,wa=this.protectedMethod,Ga,Ia,hb=[new wb,new Lb,new eb,new pb],ib,nb=this.showDialog;this.showDialog=function(){Oa.setSize(640,480);wa.setContentPaneCreator(bb);
wa.setClosingAction(function(la){if(la){for(la=0;la<hb.length;la++)hb[la].ui2model(ib);Ga(ib)}});wa.setTitle(Mb.get("chartSetting","\u56fe\u8868\u8bbe\u7f6e"));nb();Ia.refreshUi()};this.setChartConfig=function(la){ib=la;for(var Jb=0;Jb<hb.length;Jb++)hb[Jb].setModel(la)};this.setAcceptedListener=function(la){Ga=la};var bb=function(){Ia=new ua;Ia.setBorderVisible(!0);Ia.setTabPanes(hb);Ia.setTabHeadItemHeight(40);Ia.setTabHeadWidth(120);return Ia.getJqUi()}};var Yb,Mb,S,Ma,Ja,ua,W,fa,Ea,Va;(function(){var Oa=
com.kingdee.bos.qing.common;Yb=Oa.DomUtil;Oa=com.kingdee.bos.qing.framework.common;Mb=Oa.MultilanguageManager.createPackageAccessor(zb);Oa=com.kingdee.bos.qing.ui.component;S=Oa.AbstractModalDialog;Ma=Oa.Label;Ja=Oa.CheckBox;ua=Oa.LeftTabContainer;W=Oa.Spinner;fa=Oa.RadioButton;Ea=Oa.RadioButtonGroup;Oa=com.kingdee.bos.qing.longer.model;Va=Oa.PieChartConfig})()})();(function(){function Ya(){var na=this,Fa,Qa,Ua,Ka=[],Xa=[];this.destroy=function(){na.getExhibition().destroy()};this.getJqUi=function(){Qa||(Qa=new ta,Qa.setHorizontalSplit(!0),Qa.setFirstSize(-1,200,-1),Qa.setSecondSize(0,0,0),Qa.setFirstChild(na.getExhibition()),Qa.setSecondChild(ta.createChildWrapper($("<div>"))),Qa.hideSecondHalf(!0),Qa.setEnabled(!1));return Qa.getJqUi()};this.resize=function(qa){Qa.resize(qa)};this.setContextGetter=function(qa){Fa=qa};this.clearLegends=function(){Xa.length=
0;Ob(!0)};this.clearFilterCards=function(){ob(Ka)};this.refreshRightLanes=function(){Ob()};this.execute=function(qa){var a=Fa.getAdditionalFilterApi(),l=a?a.toMetaFieldNames():null;a=a?a.toExecutableJsonObject():null;var n=Fa.getAnalyticalModel();l=n.createDependentMeta(Fa.getMeta(),l);var f=Fa.getPreferences().createExecutingCopy(n.getChartType());na.getExhibition().setExecutedListener(function(m,h,r){qa(m,h,r)});na.getExhibition().execute(l,n,f,a)};this.filteringExecute=function(qa,a){var l=Fa.getAdditionalFilterApi(),
n=l?l.toMetaFieldNames():null;l=l?l.toExecutableJsonObject():null;var f=Fa.getAnalyticalModel();n=f.createDependentMeta(Fa.getMeta(),n);var m=Fa.getPreferences().createExecutingCopy(f.getChartType());na.getExhibition().setExecutedListener(function(h,r,k){a(h,r,k)});na.getExhibition().filteringExecute(n,f,m,l,qa)};this.christmasExecute=function(qa,a){var l=Fa.getAdditionalFilterApi(),n=l?l.toMetaFieldNames():null;l=l?l.toExecutableJsonObject():null;var f=Fa.getAnalyticalModel();n=f.createDependentMeta(Fa.getMeta(),
n);var m=Fa.getPreferences().createExecutingCopy(f.getChartType());na.getExhibition().setExecutedListener(function(h,r,k){a(h,r,k)});na.getExhibition().christmasExecute(n,f,m,l,qa,function(h){0<h.getOnShowFilterCount()&&Fb(h)})};this.getExhibition=function(){Ua||db();return Ua};var db=function(){Ua=new Nb;Ua.getJqUi().addClass("sa-exhibition");Ua.initCacheLoader();Ua.setLegendsNeededListener(ub);Ua.setContextGetter(Fa);Ua.initTooltipsWidget(function(qa){Fa.loadDesignerOperationJudger(function(a){qa(a.isDataDetailReadable())})},
function(qa){Fa.loadDesignerOperationJudger(function(a){qa(a.isExportable())})},function(){return Fa.getMeta()},function(){return Fa.getAnalyticalModel()},function(){var qa=Fa.getAdditionalFilterApi();return qa?qa.toExecutableJsonObject():null})},ub=function(qa){for(var a=0;a<qa.length;a++){var l=qa[a];if(l){var n=Xa[a];if(!n){switch(l.getType()){case ac.TYPE_CONTINUOUS_COLOR:n=new nb;break;case ac.TYPE_DISCRETE_COLOR:n=new bb;break;case ac.TYPE_SIZE:n=new ib;break;default:throw Error("Unknown legend-ui type.");
}n.setHorizontalOtherwiseVertical(!1);Xa[a]=n}l=l.getTitle();n.setTitle(tb.get("legend","\u56fe\u4f8b")+(l?": "+l:""))}else Xa[a]=null}Ob();for(a=0;a<qa.length;a++)if(l=qa[a])n=Xa[a],n.setLegendUi(l)},Ob=function(qa){na.getExhibition().keepCalm(!0);for(var a=0;a<Ka.length;a++)for(var l=Ka[a],n=0;n<l.getChildCount();n++){var f=l.getChild(n);f.keepState()}Qa.setSecondSize(0,0,0);Qa.hideSecondHalf(!0);l=Fa.getAnalyticalModel().getFilterFieldSet();var m=Ka.slice();Ka.length=0;n=function(r){for(var k=
0;k<m.length;k++)for(var v=m[k],y=0;y<v.getChildCount();y++){var L=v.getChild(y);if(L.getFilter&&L.getFilter()==r)return v.childLeaveHome(y),L}return null};f=function(r){for(var k=0;k<m.length;k++)for(var v=m[k],y=0;y<v.getChildCount();y++)v.getChild(y)==r&&v.childLeaveHome(y)};var h=0;for(a=0;a<Xa.length;a++)h+=Xa[a]?1:0;(0<l.getOnShowFilterCount()||0<h)&&Fb(l,n,f);for(a=0;a<Ka.length;a++)for(l=Ka[a],n=0;n<l.getChildCount();n++)f=l.getChild(n),f.restoreState();ob(m);!qa&&na.getExhibition().keepCalm(!1)},
Zb=function(){for(var qa=0;qa<Ka.length;qa++)Ka[qa].relayout()},Fb=function(qa,a,l){var n=new Za;Ka.unshift(n);for(var f=na.getExhibition().getJqUi().innerHeight(),m=0,h=qa.getCount(),r=0,k=h+Xa.length;r<k;r++){var v=!0;if(r<h){var y=qa.getFilter(r);v=y.isOnShow();var L=a?a(y):null;L||(qa.get(r),L=S.create(y,Fa),L.setHorizontalOtherwiseVertical(!1));y=L}else{y=Xa[r-h];if(!y)continue;l&&l(y)}v=v?Math.max(y.getMinHeight(),Math.min(120,y.getPerfectHeight())):0;m+v>f&&0<m&&(m=0,n=new Za,Ka.unshift(n));
m+=v+Za.GAP;n.addChild(y)}qa=$("<div>");for(r=a=0;r<Ka.length;r++)n=Ka[r],n=n.getJqUi(),Gb.layoutCtrlWithLRTB(n,a,null,pa.FILTER_LANE_WIDTH,0,2,null),qa.append(n),a+=pa.FILTER_LANE_WIDTH+pa.FILTER_LANE_GAP;r=Ka.length*(pa.FILTER_LANE_WIDTH+pa.FILTER_LANE_GAP)-pa.FILTER_LANE_GAP;Qa.setSecondSize(r,r,r);Qa.setSecondChild(ta.createChildWrapper(qa,Zb));Qa.hideSecondHalf(!1)},ob=function(qa){for(var a=0;a<qa.length;a++){var l=qa[a];l.clear();l.getJqUi().remove()}qa.length=0}}function Lb(){var na=this,
Fa,Qa,Ua=$("<div>"),Ka=$("<div>"),Xa=$("<div>"),db,ub;this.setDependence=function(ob){Fa=ob};this.getJqUi=function(){Ob();return Qa};this.setTitle=function(ob){Ka.text(ob)};this.setHorizontalOtherwiseVertical=function(ob){if("undefined"==typeof db||db!=ob)(db=ob)?(Ua.css("left",0),Ua.css("width",pa.CARD_TITLE_WIDTH+"px"),Ua.css("top",0),Ua.css("height","100%"),Xa.css("left",pa.CARD_TITLE_WIDTH+"px"),Xa.css("right",0),Xa.css("top",0),Xa.css("height","100%")):(Ua.css("left",0),Ua.css("right",0),Ua.css("top",
0),Ua.css("height",pa.CARD_TITLE_HEIGHT+"px"),Xa.css("left",0),Xa.css("right",0),Xa.css("top",pa.CARD_TITLE_HEIGHT+"px"),Xa.css("bottom",0))};this.isHorizontalOtherwiseVertical=function(){return db};this.protectedInitCustomUi=function(ob,qa){};var Ob=function(){if(!Qa){Qa=$("<div>");Qa.addClass("sa-card");Qa.mouseenter(function(l){na.protectedShowOperateButton(!0)});Qa.mouseleave(function(l){na.protectedShowOperateButton(!1)});Ua.addClass("sa-card-titlebar");Ua.css("position","absolute");Ua.appendTo(Qa);
Xa.addClass("sa-card-container");Xa.css("position","absolute");Xa.appendTo(Qa);Ka.addClass("sa-card-title");Ka.appendTo(Ua);var ob=$("<div>");ob.appendTo(Ua);na.protectedInitCustomUi(Xa,ob);if(ub){var qa=$("<div>");qa.addClass("sa-card-operate-item");qa.appendTo(Ua);qa.on("mousedown",Zb);var a=$("<div>");a.text("\u25b2");a.addClass("sa-card-operate-text");a.appendTo(qa);Gb.layoutCtrlWithLRTB(ob,null,20,null,0,0,null)}else Gb.layoutCtrlWithLRTB(ob,null,2,null,0,0,null);na.protectedShowOperateButton(!1)}};
this.protectedShowOperateButton=function(ob){Ua.find(".sa-card-operate-item").css("display",ob?"block":"none")};var Zb=function(ob){var qa=$(ob.target),a=$(ob.currentTarget);if((ob=a.data("menu"))&&ob.isShowing())a.data("menu",null),ob.hide();else{ob=new Na;ob.setWidth(160);ob.setModel(ub());ob.setHideListener(function(){a.data("menu",null)});a.data("menu",ob);var l=Qa.parent(),n=[a.outerWidth()-160-2,a.outerHeight()];n=Gb.upwardCoordinate(a[0],n,l[0]);ob.show(l,n[0],n[1],qa,!0)}},Fb=function(){return Fa.getAnalyticalModel()};
this.protectedMethod={setOperateMenuCreator:function(ob){ub=ob},getViewCtx:function(){return Fa},getAnalyticalModel:Fb,getExecutingPreferences:function(){return Fa.getPreferences().createExecutingCopy(Fb().getChartType())},getTitle:function(){return Ka.text()},getJqAll:function(){return Qa},getJqContainer:function(){return Xa}}}function wb(){Lb.call(this);var na=this,Fa=this.protectedMethod,Qa=0,Ua=0,Ka,Xa;this.setMetaPaneVisitor=function(Fb){Xa=Fb};this.protectedInitCustomUi=function(Fb,ob){Fb.on("click",
function(qa){qa=$(qa.target);if(qa.hasClass("sa-charttypecard-button")){qa=qa.data("model");var a=Fa.getViewCtx().getCommandManager();a.compositeStart(tb.get("changeChartTypeTo","\u56fe\u8868\u7c7b\u578b\u5207\u6362\u4e3a")+qa.getText());var l=Fa.getAnalyticalModel(),n=l.getChartType()!=qa.getName(),f=new Wa;f.setMethod(l.getChartType,l.setChartType);f.setValue(qa.getName());a.perform(f);qa.smartChangeModel(l,a,Xa);Xa.clearAllSelecteds();n&&Ka&&Ka();a.compositeEnd()}});Fb.on("mouseover",function(qa){Zb($(qa.target))});
Fb.on("mouseleave",function(qa){Zb(null)})};this.updateDisplay=function(){db(ub());Ob()};this.relayout=function(Fb){if(Qa!=Fb){Qa=Fb;var ob=Fa.getJqContainer();Fb-=2;ob.empty();var qa=4,a=4;Fb=Math.max(36,Fb);for(var l=Cb.getAllInstance(),n=0;n<l.length;n++){qa+28+4>Fb&&(qa=4,a+=27);var f=l[n],m=$("<div>");m.data("model",f);m.addClass("sa-charttypecard-button");m.css("left",qa);m.css("top",a);m.css("width",28);m.css("height",21);u.background(m,f.getIconFileName());m.appendTo(ob);qa+=34}Ua=pa.CARD_TITLE_HEIGHT+
(a+21+4)+2;Fa.getAnalyticalModel()&&Ob()}return Ua};this.setChangedCoworker=function(Fb){Ka=Fb};var db=function(Fb){na.setTitle(tb.get("chartTypeCardTitle","\u56fe\u8868\u7c7b\u578b")+": "+Fb.getText())},ub=function(){var Fb=Fa.getAnalyticalModel().getChartType();return Cb.getInstance(Fb)},Ob=function(){var Fb=ub(),ob=Fa.getJqContainer().find(".sa-charttypecard-button");ob.removeClass("sa-charttypecard-button_selected");for(var qa=0;qa<ob.length;qa++){var a=$(ob[qa]);if(a.data("model").getName()==
Fb.getName()){a.addClass("sa-charttypecard-button_selected");break}}},Zb=function(Fb){Fb&&Fb.hasClass("sa-charttypecard-button")?(Fb=Fb.data("model"),db(Fb)):db(ub())}}function eb(){Lb.call(this);var na=this,Fa=this.protectedMethod,Qa,Ua,Ka,Xa=[],db,ub,Ob;this.setModel=function(a){Qa&&Qa.removeChangedListener(Zb);(Qa=a)&&Qa.addChangedListener(Zb);na.checkAllInvalidFields();na.protectedUpdateUi()};this.getModel=function(){return Qa};this.setItemPressListener=function(a){ub=a};this.setItemMenuCreator=
function(a){db=a};this.setDragDropHandler=function(a){var l=-1;a.bindDragUi(Fa.getJqAll(),function(n){if(n.hasClass("sa-carditem-text")){a:{n=n.parent()[0];for(var f=0;f<Xa.length;f++)if(Xa[f].getJqUi()[0]==n){l=f;break a}l=-1}n=Xa[l];n.getJqUi().addClass("sa-carditem_draging");return n.getAnalyticalField()}return null},function(n,f){if(0<=l){var m=Xa[l];m.getJqUi().removeClass("sa-carditem_draging");n&&f.dropOwner!==na&&(n=new P(Qa),n.setValue(m.getAnalyticalField()),Fa.getViewCtx().getCommandManager().compositeStart(tb.get("move",
"\u79fb\u52a8")+m.getAnalyticalField().getComplexText()),Fa.getViewCtx().getCommandManager().perform(n))}},function(){l=-1},function(n){var f=new P(Qa);f.setValue(n);Fa.getViewCtx().getCommandManager().perform(f)});a.bindDropUi(Fa.getJqAll(),Fa.getJqContainer(),function(n,f){qa();var m=Xa.length;na.isHorizontalOtherwiseVertical()?(f=(n-.5*pa.CARD_ITEM_H_SPACING)/(pa.CARD_ITEM_WIDTH+pa.CARD_ITEM_H_SPACING)+.25,f=0>f?0:f,n=parseInt(f),f=.5<f-n?"replace":"insert"):(f=(f-.5*pa.CARD_ITEM_V_SPACING)/(pa.CARD_ITEM_HEIGHT+
pa.CARD_ITEM_V_SPACING)+.33,f=0>f?0:f,n=parseInt(f),f=.67<f-n?"replace":"insert");n>=m&&(n=m,f="insert");m={action:f,index:n,dropOwner:na};0<=l&&(n="insert"==m.action&&(m.index==l||m.index==l+1),"replace"==m.action&&m.index==l||n)&&(m.action="none",m.index=null);n=m.index;"replace"==m.action?Xa[n].getJqUi().addClass("sa-carditem_replacable"):"insert"==m.action&&(Ua||(Ua=$("<div>"),Ua.addClass("sa-card-insertprompt-"+(na.isHorizontalOtherwiseVertical()?"h":"v")),Ua.appendTo(Fa.getJqContainer())),na.isHorizontalOtherwiseVertical()?
Ua.css("left",n*(pa.CARD_ITEM_WIDTH+pa.CARD_ITEM_H_SPACING)):Ua.css("top",n*(pa.CARD_ITEM_HEIGHT+pa.CARD_ITEM_V_SPACING)));return m},function(){qa()},function(n,f){n=f.action;return"insert"==n||"replace"==n},function(n,f){qa();var m=f.action;f=f.index;var h=null,r=-1;"replace"==m?(h=new I(Qa),h.setValue(f,n),r=f):"insert"==m&&(h=new D(Qa),h.setValue(n,f));h&&na.protectedDropHandlerDataPusher(h,n,f,0<=l,r)})};this.protectedDropHandlerDataPusher=function(a,l,n,f,m){var h=Fa.getViewCtx().getCommandManager();
h.isCompositeStarted()||h.compositeStart(a.getCaption());-1!=m&&na.protectedInitialDateHierachy(h,l,n);h.perform(a);-1==m&&(na.protectedInitialDateHierachy(h,l,n),f||(a=Fa.getAnalyticalModel(),Cb.getInstance(a.getChartType()).smartDropField(a,Qa,l,h)),na.protectedKeepLogicalOrder(h));h.isCompositeStarted()&&h.compositeEnd()};this.protectedInitialDateHierachy=function(a,l,n){if(n=na.getModel().getInitialDateHierachyForField(l,n))l=new gb(l),l.setValue(n),a.perform(l)};this.protectedKeepLogicalOrder=
function(a){};var Zb=function(a,l){l!=ia.KEY_ADD&&l!=ia.KEY_REMOVE&&l!=ia.KEY_REPLACE&&l!=ia.KEY_CHANGE||na.protectedUpdateUi();if(l==ia.KEY_REPLACE){l=a.getField();var n=l.getMetaField();a=n.getPureName();n=n.getTable();bMetaLost=!n||!n.searchMetaField(a);a=new b.InvalidPrompt;a.setLevel(b.InvalidPrompt.LEVEL_META_LOST,bMetaLost);l.setInvalidPrompt(a)}else l==ia.KEY_REMOVE||l==ia.KEY_CHANGE?Fb(null):(l=(l=a.getField())?l:a.getFieldSubEventTarget().getField(),ob(l),Fb(l))};this.checkAllInvalidFields=
function(){if(Qa)for(var a=0,l=Qa.getCount();a<l;a++){var n=Qa.get(a);ob(n);Fb(n)}};var Fb=function(a){var l=Fa.getAnalyticalModel();Cb.getInstance(l.getChartType()).isFieldValid(l,Qa,a)&&null!=a&&(l=new b.InvalidPrompt,a.isMeasure()&&!a.getMetaField().isCanAsMeasure()||a.isDimension()&&!a.getMetaField().isCanAsDimension()?(l.setLevel(M.InvalidPrompt_LEVEL_POSITION_WRONG,!0),l.setPromptText(tb.get("invalidRole","\u7ef4\u5ea6/\u5ea6\u91cf\u7528\u6cd5\u4e0d\u6b63\u786e"))):na.protectedCustomCheckInvalidField(l,
a)?l.setLevel(M.InvalidPrompt_LEVEL_POSITION_WRONG,!0):l.setLevel(M.InvalidPrompt_LEVEL_POSITION_WRONG,!1),a.setInvalidPrompt(l))};this.protectedCustomCheckInvalidField=function(a,l){return!1};var ob=function(a){var l=a.getMetaField(),n=l.getTable(),f=n&&n.searchMetaField(l.getPureName())?!1:!0;n=new b.InvalidPrompt;n.setLevel(b.InvalidPrompt.LEVEL_META_LOST,f);a.setInvalidPrompt(n);f=l.isInvalid()?!0:!1;n=new b.InvalidPrompt;n.setLevel(b.InvalidPrompt.LEVEL_META_INVALID,f);a.setInvalidPrompt(n);
n=l.isRelativeAggregation();f=a.getAggregation()==b.AGGREGATION_AGG;l=b.isAggregationFittedDataType(a.getAggregation(),l.getDataType());l=a.isMeasure()&&(n&&!f||!n&&f||!l);n=new b.InvalidPrompt;n.setLevel(b.InvalidPrompt.LEVEL_AGG,l);a.setInvalidPrompt(n)};this.showOperatingPrompt=function(a){a?(Ob||(Ob=$("<div>"),Ob.addClass("sa-card-operating-prompt"),Ob.appendTo(Fa.getJqContainer())),Ob.text(a)):(Ob&&Ob.remove(),Ob=null)};this.protectedUpdateUi=function(){for(var a=0;a<Xa.length;a++){var l=Xa[a];
l.destroy();l.getJqUi().remove()}Xa=[];var n=Fa.getJqContainer();if(Qa){for(a=0;a<Qa.getCount();a++)l=Qa.get(a),l=na.protectedCreateItem(l),n.append(l.getJqUi()),Xa.push(l);a=Xa;if(na.isHorizontalOtherwiseVertical())for(n=1,l=0;l<a.length;l++){n+=pa.CARD_ITEM_H_SPACING;var f=a[l].getJqUi();Gb.layoutCtrlWithLRTB(f,n,null,pa.CARD_ITEM_WIDTH-2,2,2,null);n+=pa.CARD_ITEM_WIDTH}else{var m=1;for(l=0;l<a.length;l++)m+=pa.CARD_ITEM_V_SPACING,f=a[l].getJqUi(),Gb.layoutCtrlWithLRTB(f,4,4,null,m,null,pa.CARD_ITEM_HEIGHT-
2),m+=pa.CARD_ITEM_HEIGHT;Ka||(Ka=$("<div>"),Ka.appendTo(n));Gb.layoutCtrl(Ka,0,m,1,20)}}return Xa};this.protectedCreateItem=function(a){var l=new Yb(a);l.setActionListener(function(n,f){var m=n.getJqUi(),h=m.data("menu");if(h&&h.isShowing())m.data("menu",null),h.hide();else{var r=n.getJqUi(),k=r.outerWidth(),v=r.outerHeight(),y=Math.min(180,Math.max(k,140));h=new Na;h.setWidth(y);h.setModel(db(Qa,a,n));h.setHideListener(function(){m.data("menu",null)});m.data("menu",h);n=Fa.getViewCtx().getTopJqUi();
k=[k-y-2,v+1];k=Gb.upwardCoordinate(r[0],k,n[0]);h.show(n,k[0],k[1],f,!0,[0,-v-2])}});l.setTextPressListener(function(n){ub&&ub(a)});return l};var qa=function(){na.isHorizontalOtherwiseVertical()?Ua&&Ua.css("left","-65536px"):Ua&&Ua.css("top","-65536px");for(var a=0;a<Xa.length;a++)Xa[a].getJqUi().removeClass("sa-carditem_replacable")}}function pb(){eb.call(this);var na=this,Fa=this.protectedMethod,Qa=this.setModel;this.setModel=function(db){var ub=na.getModel();ub&&ub.removeChangedListener(Ua);Qa(db);
db&&db.addChangedListener(Ua)};var Ua=function(db,ub){ub!=b.KEY_PARTVALUE&&ub!=b.KEY_FORMULA||na.protectedUpdateUi()};this.protectedKeepLogicalOrder=function(db){var ub=na.getModel();ub=new O(ub);db.perform(ub)};this.protectedCustomCheckInvalidField=function(db,ub){var Ob=!1;Fa.getViewCtx().getMeta().isMdOfSrcMode()&&ub.isDimension()&&!ub.getMetaField().isParentChildDimension()&&(Ob=!0,db.setPromptText(tb.get("invalidPcdDimension","\u884c/\u5217\u4e0a\u7684\u7ef4\u5ea6\u5fc5\u987b\u662f\u7236\u5b50\u7ef4")));
return Ob};var Ka=this.protectedUpdateUi;this.protectedUpdateUi=function(){var db=Ka();Xa(db)};var Xa=function(db){for(var ub=Fa.getViewCtx().getMeta(),Ob=na.getModel().getHierachyExpandableStates(ub),Zb=0;Zb<Ob.length;Zb++){var Fb=Ob[Zb],ob=db[Zb];null==Fb?ob.setShowIcon(null):(ob.setShowIcon(Fb?"icon_expandable":"icon_collapsable"),ob.getJqUi().data("expandable",Fb),ob.setIconPressListener(function(qa,a){a=qa.getJqUi().data("expandable");qa.getJqUi().data("expandable",!a);a=a?new J(na.getModel()):
new ja(na.getModel());a.setValue(ub,qa.getAnalyticalField());Fa.getViewCtx().getCommandManager().perform(a)}))}}}function zb(){eb.call(this);var na=this,Fa=this.protectedMethod,Qa=!0,Ua=this.setModel;this.setModel=function(Fb){var ob=na.getModel();ob&&ob.removeChangedListener(Ka);Ua(Fb);Fb&&Fb.addChangedListener(Ka)};var Ka=function(Fb,ob){ob==sa.KEY_FIELD_MARK_TYPE&&na.protectedUpdateUi()};this.setChartType=function(Fb){Qa=0==Cb.getInstance(Fb).getSuppliedMarks()?!1:!0;Fb=na.getJqUi().find(".sa-card-title");
var ob=na.getJqUi().find(".sa-card-container");Qa?(Fb.removeClass("sa-card-title_disabled"),ob.removeClass("sa-card-container_disabled")):(Fb.addClass("sa-card-title_disabled"),ob.addClass("sa-card-container_disabled"))};var Xa=this.protectedCreateItem;this.protectedCreateItem=function(Fb){var ob=Xa(Fb);Fb=(Fb=na.getModel().getFieldMatchingMarkType(Fb))?Ob(Fb).icon:"";ob.setShowIcon(Fb);ob.getJqUi().find(".sa-carditem-icon").addClass("sa-markcard-item-icon");ob.setIconPressListener(db);return ob};
var db=function(Fb,ob){var qa=Fb.getJqUi(),a=qa.data("markTypeMenu");if(a&&a.isShowing())qa.data("markTypeMenu",null),a.hide();else{qa.outerWidth();var l=qa.outerHeight();a=new Na;a.setWidth(120);a.setModel(ub(Fb.getAnalyticalField()));a.setIconSetter(function(f,m){u.background(f,m)});a.setHideListener(function(){qa.data("markTypeMenu",null)});qa.data("markTypeMenu",a);Fb=Fa.getViewCtx().getTopJqUi();var n=[0,l+1];n=Gb.upwardCoordinate(qa[0],n,Fb[0]);a.show(Fb,n[0],n[1],ob,!0,[0,-l-2])}},ub=function(Fb){var ob=
new $a,qa=na.getModel(),a=Fa.getAnalyticalModel().getChartType();a=Cb.getInstance(a).getSuppliedMarks();for(var l=0;l<a.length;l++){var n=a[l],f=new R(qa);f.setValue(Fb,n);n=Ob(n);f=Ab.createActionMenuItem(n.title,f,Fa.getViewCtx().getCommandManager());n.icon&&f.setIconName(n.icon);ob.addItemModel(f)}return ob},Ob=function(Fb){switch(Fb){case sa.TYPE_LABEL:Fb=tb.get("markTypeNumber","\u6570\u5b57");var ob="mark_label";break;case sa.TYPE_COLOR:Fb=tb.get("markTypeColor","\u989c\u8272");ob="mark_color";
break;case sa.TYPE_SIZE:Fb=tb.get("markTypeSize","\u5927\u5c0f");ob="mark_size";break;case sa.TYPE_ANGLE:Fb=tb.get("markTypeAngle","\u89d2\u5ea6");ob="mark_angle";break;case sa.TYPE_BLANK:Fb="";ob="mark_empty";break;default:throw Error("Unknown mark-type: "+Fb);}return{title:Fb,icon:ob}},Zb=this.setDragDropHandler;this.setDragDropHandler=function(Fb,ob){void 0!==ob&&!0!==ob||!Qa?(Fb.unbindDragUi(Fa.getJqAll()),Fb.unbindDropUi(Fa.getJqAll(),Fa.getJqContainer())):Zb(Fb)}}function Yb(na){var Fa=this,
Qa,Ua,Ka=null,Xa,db,ub;this.getAnalyticalField=function(){return na};this.destroy=function(){na.removePropertyChangeListener(Fb);na.setInvalidPromptListener(null)};this.getJqUi=function(){if(!Qa){Qa=$("<div>");Qa.addClass("sa-carditem");Qa.mouseenter(l);Qa.mouseleave(n);var f=$("<div>");f.addClass("sa-carditem-text");f.text(na.getText());f.appendTo(Qa);f.on("mousedown",function(m){db&&db(Fa)});f=$("<div>");f.addClass("sa-carditem-icon");f.appendTo(Qa);f.on("mousedown",function(m){m=$(m.target);ub&&
ub(Fa,m)});Fa.setShowIcon(Ka);Zb();ob();na.addPropertyChangeListener(Fb);na.setInvalidPromptListener(ob)}return Qa};var Ob=function(){return Qa.find(".sa-carditem-text")};this.setActionListener=function(f){Xa=f};this.setTextPressListener=function(f){db=f};this.setIconPressListener=function(f){ub=f};this.setShowIcon=function(f){Ka=f;if(Qa){f=null!==Ka;Ob().css("left",f?20:4);var m=Qa.find(".sa-carditem-icon");m.css("display",f?"":"none");u.background(m,Ka)}};this.modifyDisplayName=function(f){var m=
na.getDisplayName();m||(m=na.getMetaField().getDisplayName());var h=$("<div>");h.css("background-color","#fff");h.css("z-index","65535");h.appendTo(Qa);Gb.layoutCtrlWithLRTB(h,-1,-1,null,-1,-1,null);var r=new ka;r.setText(m);r.addAcceptableListener(function(F,H){H&&L(y());B()});var k=r.getJqUi();Gb.layoutCtrlWithLRTB(k,0,20,null,0,0,null);k.appendTo(h);r.requestFocus();k=$("<div>");k.attr("title",tb.get("reset","\u91cd\u7f6e"));k.on("click",function(F){L(null);B()});u.background(k,"icon_reset");Gb.layoutCtrlWithLRTB(k,
null,2,16,"50%",null,16);k.css("margin-top","-8px");k.css("cursor","pointer");k.appendTo(h);var v=function(F){Gb.isDescendent(F.target,Qa[0])||(L(y()),B())},y=function(){var F=$.trim(r.getText());!F&&(F=null);return F},L=function(F){var H=new Wa;H.setCaption(tb.get("raname","\u91cd\u547d\u540d")+" ["+m+"] ");H.setMethod(na.getDisplayName,na.setDisplayName);H.setValue(F);f.perform(H)},B=function(){document.body.removeEventListener("mousedown",v);h.remove()};document.body.addEventListener("mousedown",
v)};var Zb=function(){Ua=$("<div>");Ua.addClass("sa-carditem-menubtn");Ua.appendTo(Qa);Ua.on("mousedown",function(m){m=$(m.target);Xa(Fa,m)});var f=$("<div>");f.text("\u25b2");f.addClass("sa-carditem-menubtn-text");f.appendTo(Ua);a(!1)},Fb=function(f,m){if(m==b.KEY_PARTVALUE||m==b.KEY_ROLE||m==b.KEY_FORMULA||m==b.KEY_DISPLAYNAME||m==b.KEY_QUICKSETUP)f=f.getField(),Ob().text(f.getText()),qa(f.getTextTooltips())},ob=function(){var f=na.getInvalidPrompt();if(f){f=f.getLevel()==b.InvalidPrompt.LEVEL_META_LOST?
tb.get("notExistField","\u4e0d\u5b58\u5728\u7684\u5b57\u6bb5"):f.getLevel()==b.InvalidPrompt.LEVEL_META_INVALID?tb.get("invalidField","\u65e0\u6548\u7684\u5b57\u6bb5"):f.getLevel()==b.InvalidPrompt.LEVEL_AGG?tb.get("invalidAggregation","\u805a\u5408\u65b9\u5f0f\u4e0d\u6b63\u786e"):f.getPromptText();var m=U.createWarning();m.appendTo(Qa);m.addClass("sa-carditem-erroricon");Qa.addClass("sa-carditem_error");Qa.attr("title",f);qa(null)}else Qa.find(".sa-carditem-erroricon").remove(),Qa.removeClass("sa-carditem_error"),
Qa.attr("title",null),qa(na.getTextTooltips())},qa=function(f){Ob().attr("title",f)},a=function(f){Ua.css("display",f?"block":"none")},l=function(f){a(!0)},n=function(f){a(!1)}}function Mb(){Za.Child.call(this);eb.call(this);var na=this,Fa=this.protectedMethod,Qa,Ua=this.setModel;this.setModel=function(Ob){var Zb=na.getModel();Zb&&Zb.removeChangedListener(Ka);Ua(Ob);Ob&&Ob.addChangedListener(Ka)};var Ka=function(Ob,Zb){(Zb==ia.KEY_ADD||Zb==ia.KEY_REMOVE||Zb==ia.KEY_CHANGE)&&Qa&&Qa()};this.protectedInitialDateHierachy=
function(Ob,Zb,Fb){};this.setRequestRelayoutListener=function(Ob){Qa=Ob};this.getMinHeight=function(){return pa.CARD_TITLE_HEIGHT+.8*(pa.CARD_ITEM_HEIGHT+pa.CARD_ITEM_V_SPACING)};this.getPerfectHeight=function(){var Ob=na.getModel().getCount();return pa.CARD_TITLE_HEIGHT+(pa.CARD_ITEM_HEIGHT+pa.CARD_ITEM_V_SPACING)*Math.max(1.5,Ob+.8)};var Xa=this.protectedDropHandlerDataPusher;this.protectedDropHandlerDataPusher=function(Ob,Zb,Fb,ob,qa){ob?Xa(Ob,Zb,Fb,ob,qa):db(Zb,function(a,l){var n=Fa.getViewCtx().getCommandManager();
if(a){var f=na.getModel(),m=f.toPartJson(qa),h=Fa.getAnalyticalModel(),r=Fa.getExecutingPreferences(),k=Fa.getViewCtx().createFacade(function(y){y=q.create(y);var L=t.create(y);y=new G(f);y.setValue(Fb,L);n.isCompositeStarted()||(L=tb.get("addFilterField","\u6dfb\u52a0#1\u4f5c\u4e3a\u7b5b\u9009\u5b57\u6bb5").replace("#1",l.getComplexText()),n.compositeStart(L));for(L=0;L<a.length;L++)n.perform(a[L]);n.perform(Ob);n.perform(y);n.compositeEnd()},function(y,L,B){n.isCompositeStarted()&&n.compositeAbort();
var F=d.toDisplayText(y,L);F||(F=y+"\n"+L);y=new p;y.setOptionType(p.OPTION_OK);y.setMessage(F);B&&y.setDetail(B);y.showDialog();return!0}),v=h.createDependentMeta(Fa.getViewCtx().getMeta(),[l.getMetaField().getFullName()]);k.getFilterPreparedValue(v,h,r,m,l)}else n.isCompositeStarted()&&n.compositeAbort()})};var db=function(Ob,Zb){var Fb=Ob.clone(),ob=Ob.getMetaField(),qa=ob.getDataType();qa==e.DT_NUMBER?ob.isRelativeAggregation()?(ob=ub(Ob,Fb,b.AGGREGATION_AGG,null),Zb(ob,Fb)):(ob=" ["+ob.getDisplayName()+
"] ",qa=new kb,qa.showDialog(na.getJqUi(),ob,function(a,l){var n=null;a&&(n=ub(Ob,Fb,l,null),a=Ob.isContinuous(),l=new Wa,l.setMethod(Ob.isContinuous,Ob.setContinuous),l.setValue(a),n.push(l));Zb(n,Fb)})):qa==e.DT_DATE?(ob=" ["+ob.getDisplayName()+"] ",qa=new Db,qa.showDialog(na.getJqUi(),ob,function(a,l){var n=null;a&&(n=ub(Ob,Fb,null,l),a=l==b.PARTVALUE_DATE_EXACT?!0:!1,Fb.setContinuous(a),l=new Wa,l.setMethod(Ob.isContinuous,Ob.setContinuous),l.setValue(a),n.push(l));Zb(n,Fb)})):(ob=ub(Ob,Fb,null,
null),Zb(ob,Fb))},ub=function(Ob,Zb,Fb,ob){Zb.setRole(Fb?b.ROLE_MEASURE:b.ROLE_DIMENSION,Fb);Zb.setPartValue(ob);Zb.setDateFormat(null);Zb=new xb(Ob);Zb.setValue(Fb?Fb:b.ROLE_DIMENSION);Ob=new gb(Ob);Ob.setValue(ob);return[Zb,Ob]}}function S(){Za.Child.call(this);Lb.call(this);var na=this,Fa=this.protectedMethod,Qa,Ua,Ka,Xa,db;this.getFilter=function(){return Ua};this.setFilter=function(v){Ua&&Fb();if(Ua=v)Ua.addValueChangedListener(qa),Ua.addPreparedValueUpdatedListener(a),Ua.addPropertyChangeListener(l),
Ua.getAssociatedField().addPropertyChangeListener(n);ob()};var ub=function(){if(!db){var v=db=na.protectedCreateFilterPane();v.bindCardDependence.call(v,{getViewCtx:Fa.getViewCtx,getTitle:Fa.getTitle,getFilterModel:na.getFilter,fireRequestParentRelayout:Ob,updateUi:ob,tryToMarkNothingToSelect:r,popupFilterDialog:k})}return db};this.protectedCreateFilterPane=function(){throw Error("Override");};this.destroy=function(){Fb()};this.setRequestRelayoutListener=function(v){Ka=v};var Ob=function(){Ka&&Ka()};
this.afterRelayout=function(){ub().afterRelayout()};this.isVisible=function(){return Ua.isOnShow()};this.protectedInitCustomUi=function(v,y){Qa=y;na.protectedInitOperateMenu();ub().createUi(v);ub().createCustomOperator(Qa)};this.protectedInitOperateMenu=function(){};this.getMinHeight=function(){return Ua.isStateValid()?ub().getCardMinHeight():S.INVALID_HEIGHT};this.getPerfectHeight=function(){return Ua.isStateValid()?ub().getCardPerfectHeight():S.INVALID_HEIGHT};this.keepState=function(){ub().keepScrollState()};
this.restoreState=function(){ub().restoreScrollState()};var Zb=this.protectedShowOperateButton;this.protectedShowOperateButton=function(v){Ua.isStateValid()?Zb(v):Zb(!1)};var Fb=function(){Ua.removeValueChangedListener(qa);Ua.removePreparedValueUpdatedListener(a);Ua.removePropertyChangeListener(l);Ua.getAssociatedField().removePropertyChangeListener(n)},ob=function(){na.setTitle(Ua.getAssociatedField().getText());Fa.getJqContainer();Xa&&Xa.remove();var v=Ua.isStateValid(),y=new b.InvalidPrompt;y.setLevel(b.InvalidPrompt.LEVEL_FILTER_UNMATCHED,
!v);v?ub().refreshUi():(v=Ua.getStateDisplay(),h(v),y.setPromptText(v));v=Fa.getAnalyticalModel().getFilterFieldSet();var L=v.getFilterIndex(Ua);v.get(L).setInvalidPrompt(y)},qa=function(v){v.isStateValid()&&ub().filterValueChangedHandler(v)},a=function(v){v.isStateValid()&&ub().affectedPreparedValueUpdatedHandler(v)},l=function(v,y){y==t.KEY_AFFECTED?m():(na.protectedDoPropertyChanged(v,y),ub().propertyChangedHandler(v,y))};this.protectedDoPropertyChanged=function(v,y){};var n=function(v,y){y==b.KEY_DISPLAYNAME?
na.setTitle(Ua.getAssociatedField().getText()):y==b.KEY_SORT&&m()},f=function(v){na.getFilter().updatePreparedModel(v)},m=function(){var v=Fa.getViewCtx().createFacade(f),y=Fa.getViewCtx().getMeta(),L=Fa.getAnalyticalModel(),B=Fa.getExecutingPreferences(),F=na.getFilter().getAssociatedField();v.getFilterPreparedValue(y,L,B,null,F)},h=function(v){Xa||(Xa=$("<div>"),Xa.addClass("sa-filtercard-nochoice"));var y=Fa.getJqContainer();Xa.text(v);Xa.appendTo(y)},r=function(){0<na.getFilter().getSelectableItems().length||
(na.getFilter().isJustShowAffected()?h(tb.get("noOptionValue","\u6ca1\u6709\u76f8\u5173\u503c\u9009\u9879\n\u60a8\u53ef\u4ee5\u5c1d\u8bd5\u5207\u6362\u5230\u5168\u90e8\u503c")):h(tb.get("noAlternativeValues","\u6ca1\u6709\u5907\u9009\u503c")))},k=function(){var v=Fa.getTitle(),y=Fa.getJqAll(),L=Fa.getViewCtx().getCommandManager();(new la).showDialog(v,na.getFilter(),L,y,!0)};this.protectedMethod.resetFilterPane=function(){var v=Fa.getJqContainer();v.empty();Qa.empty();db=null;ub().createUi(v);ub().createCustomOperator(Qa);
Ob()}}function Ma(){S.call(this);var na=this.protectedMethod;this.protectedCreateFilterPane=function(){return new wa};this.protectedDoPropertyChanged=function(Fa,Qa){Qa==w.KEY_CTRLTYPE&&na.resetFilterPane()}}function Ja(){S.call(this);var na=this,Fa=this.protectedMethod;this.protectedCreateFilterPane=function(){switch(na.getFilter().getCtrlType()){case w.CTRLTYPE_RADIOBUTTON_POPUP:case w.CTRLTYPE_CHECKBOX_POPUP:return new wa;case w.CTRLTYPE_RADIOBUTTON_LIST:return new Oa;default:return new Va}};this.protectedDoPropertyChanged=
function(Qa,Ua){Ua==w.KEY_CTRLTYPE&&Fa.resetFilterPane()}}function ua(){S.call(this);this.protectedCreateFilterPane=function(){return new Ga}}function W(){S.call(this);this.protectedCreateFilterPane=function(){return new Ia}}function fa(){var na=this,Fa;this.bindCardDependence=function(Qa){Fa=Qa};this.createUi=function(Qa){throw Error("Override");};this.getCardMinHeight=function(){return na.getCardPerfectHeight()};this.getCardPerfectHeight=function(){throw Error("Override");};this.refreshUi=function(){throw Error("Override");
};this.createCustomOperator=function(Qa){};this.propertyChangedHandler=function(Qa,Ua){};this.filterValueChangedHandler=function(Qa){Fa.updateUi()};this.affectedPreparedValueUpdatedHandler=function(Qa){Fa.updateUi()};this.afterRelayout=function(){};this.keepScrollState=function(){};this.restoreScrollState=function(){};this.protectedMethod={};this.protectedMethod.getCardApi=function(){return Fa}}function Ea(){fa.call(this);var na=this,Fa=this.protectedMethod,Qa,Ua,Ka=null,Xa,db;this.createUi=function(ob){Xa=
ob;Qa=new ma;Qa.setItemHeight(21);Qa.getJqUi().addClass("sa-filtercard-pane");Qa.getJqUi().appendTo(ob);Fa.getCardApi().updateUi();ub(ob)};this.getCardMinHeight=function(){return pa.CARD_TITLE_HEIGHT+31.5+(Ua&&Ua.getJqUi().is(":visible")?21:0)};this.getCardPerfectHeight=function(){var ob=Fa.getCardApi().getFilterModel().getSelectableItems().length;ob+=na.protectedGetCustomItemCount();return pa.CARD_TITLE_HEIGHT+21*Math.max(1.5,ob)+(Ua&&Ua.getJqUi().is(":visible")?21:0)+2};this.protectedGetCustomItemCount=
function(){return 0};this.refreshUi=function(){Qa&&(Ob(),Qa.repaint(),Fa.getCardApi().tryToMarkNothingToSelect())};this.createCustomOperator=function(ob){var qa=ob.parent().find(".sa-card-operate-item").is(":visible"),a=$("<div>");a.css("display",qa?"":"none");a.addClass("sa-card-operate-item");a.html("&nbsp;");a.mousedown(Fb);a.appendTo(ob);u.background(a,"icon_search")};this.affectedPreparedValueUpdatedHandler=function(ob){na.keepScrollState();Fa.getCardApi().updateUi();Fa.getCardApi().fireRequestParentRelayout()};
this.afterRelayout=function(){na.restoreScrollState();Ua.getJqUi().is(":visible")&&Ua.setFoucs()};this.keepScrollState=function(){Qa.keepState()};this.restoreScrollState=function(){0<Fa.getCardApi().getFilterModel().getSelectableItems().length&&Qa.restoreState()};var ub=function(ob){Ua=new Ca;Ua.setAlwaysShowCleanIcon(!0);Ua.setSearchListenerDelay(1E3);Ua.addSearchListener(function(qa){Zb(qa.getText())});Ua.addCloseListener(function(qa){Fb()});Gb.layoutCtrlWithLRTB(Ua.getJqUi(),0,0,null,0,null,20);
Ua.getJqUi().css("display","none");Ua.getJqUi().css("z-index",1024);Ua.getJqUi().appendTo(ob)},Ob=function(){var ob=Fa.getCardApi().getFilterModel();ob&&(ob=ob.getSelectableItems(),Ka&&(ob=$.grep(ob,function(qa){return 0<=qa.getDisplayText().toLowerCase().indexOf(Ka)})),0==ob.length?(!db&&Ka&&(ob=new ra,ob.setText(tb.get("nothingSearched","\u627e\u4e0d\u5230\u7b26\u5408\u7684\u7ed3\u679c")),ob.setEnabled(!1),ob.setAlign(ra.ALIGN_CENTER),db=ob.getJqUi(),db.addClass("sa-filtercard-search-nodata-result"),
db.appendTo(Xa)),Qa.setItemCount(0)):(db&&db.remove(),db=null,na.protectedSetupDynamicScroller(Qa,ob,Ka?!0:!1)))};this.protectedSetupDynamicScroller=function(ob,qa,a){throw Error("Override");};var Zb=function(ob){0!=Fa.getCardApi().getFilterModel().getSelectableItems().length&&(ob=ob.toLowerCase(),Ka!=ob&&(Ka=ob,Fa.getCardApi().updateUi()))},Fb=function(){var ob="none"!=Ua.getJqUi().css("display");ob&&(Ua.clear(),Zb(""));Ua.getJqUi().css("display",ob?"none":"block");Qa.getJqUi().css("top",ob?0:20);
na.keepScrollState();Fa.getCardApi().fireRequestParentRelayout();Fa.getCardApi().tryToMarkNothingToSelect()};this.protectedMethod.visitingPaintedItems=function(ob){for(var qa=Qa.getPaintedItems(),a=0;a<qa.length;a++)ob(qa[a])}}function Va(){Ea.call(this);var na=this.protectedMethod,Fa;this.propertyChangedHandler=function(db,ub){ub==w.KEY_EXCLUDE&&na.visitingPaintedItems(function(Ob){(Ob=Ob.data("userObject"))&&Ua(Ob)})};this.filterValueChangedHandler=function(db){Fa&&Qa()};this.protectedGetCustomItemCount=
function(){return 1};this.protectedSetupDynamicScroller=function(db,ub,Ob){var Zb=!Ob;db.setItemCount(Zb?ub.length+1:ub.length);db.setItemUiCreator(function(Fb){if(Zb&&0==Fb){Fb=na.getCardApi().getFilterModel();for(var ob=!0,qa=0;qa<ub.length;qa++){var a=ub[qa].getValue();a=Fb.isValueSelected(a);ob=ob&&a;if(0==ob)break}Fa=new La;Fa.setChecked(ob);Fa.setText(tb.get("selectAll","\u5168\u9009"));Fa.getJqUi().addClass("sa-filtercard-discreteitem-all");Fa.addCheckedListener(Xa);Fb=Fa.getJqUi();Fb.addClass("sa-filtercard-discreteitem");
return Fb}Fb=Zb?ub[Fb-1]:ub[Fb];ob=na.getCardApi().getFilterModel();qa=Fb.getValue();qa=ob.isValueSelected(qa);a=Fb.getDisplayText();ob=new La;ob.addCheckedListener(Ka);ob.setUserObject(Fb);ob.setText(a);ob.setChecked(qa);Ua(ob);Fb=ob.getJqUi();Fb.addClass("sa-filtercard-discreteitem");Fb.data("userObject",ob);return Fb})};var Qa=function(){var db=na.getCardApi().getFilterModel(),ub=db.isFullValue();na.visitingPaintedItems(function(Ob){if(Ob=Ob.data("userObject")){if(ub)var Zb=!0;else Zb=Ob.getUserObject(),
Zb=db.isValueSelected(Zb.getValue());Ob.setChecked(Zb)}});Fa.setChecked(ub)},Ua=function(db){var ub=na.getCardApi().getFilterModel().isExclude();db.setCustomStyle("text-decoration",ub?"line-through":"")},Ka=function(db,ub){if(ub){ub=na.getCardApi().getFilterModel();ub=new Da(ub);var Ob=db.getUserObject();ub.setValue(Ob.getValue(),db.isChecked(),Ob.getDisplayText());na.getCardApi().getViewCtx().getCommandManager().perform(ub)}},Xa=function(db,ub){ub&&(ub=na.getCardApi().getFilterModel(),db.isChecked()?
(db=new Q(ub),ub=tb.get("selectAllFilterValue","\u5168\u9009\u7b5b\u9009\u503c")+":"+na.getCardApi().getTitle()):(db=new Wa,db.setMethod(ub.isFullValue,ub.setFullValue),db.setValue(!1),ub=tb.get("clearAllFilterValue","\u5168\u6e05\u7b5b\u9009\u503c")+":"+na.getCardApi().getTitle()),db.setCaption(ub),na.getCardApi().getViewCtx().getCommandManager().perform(db))}}function Oa(){Ea.call(this);var na=this.protectedMethod;this.filterValueChangedHandler=function(Ua){Qa()};this.protectedSetupDynamicScroller=
function(Ua,Ka,Xa){Ua.setItemCount(Ka.length);Ua.setItemUiCreator(function(db){db=Ka[db];var ub=na.getCardApi().getFilterModel(),Ob=db.getValue();Ob=ub.isValueSelected(Ob);var Zb=db.getDisplayText();ub=new ab;ub.addCheckedListener(Fa);ub.setUserObject(db);ub.setText(Zb);ub.setChecked(Ob);db=ub.getJqUi();db.addClass("sa-filtercard-discreteitem");db.data("userObject",ub);return db})};var Fa=function(Ua,Ka){Ka&&(Ua.isChecked()?(Ua=Ua.getUserObject(),Ka=na.getCardApi().getFilterModel(),Ka.isValueSelected(Ua.getValue())||
(Ka=new Y(Ka),Ka.setValue(Ua.getValue(),Ua.getDisplayText()),na.getCardApi().getViewCtx().getCommandManager().perform(Ka))):Ua.setChecked(!0))},Qa=function(){var Ua=na.getCardApi().getFilterModel();na.visitingPaintedItems(function(Ka){Ka=Ka.data("userObject");var Xa=Ka.getUserObject();Xa=Ua.isValueSelected(Xa.getValue());Ka.setChecked(Xa)})}}function wa(){fa.call(this);var na=this.protectedMethod,Fa,Qa=0;this.createUi=function(db){Fa=$("<div>");Fa.addClass("sa-filtercard-pane");Fa.addClass("sa-filtercard-f7");
Fa.on("click",function(ub){na.getCardApi().popupFilterDialog()});Fa.on("mouseenter",function(ub){Fa.addClass("sa-filtercard-f7_hover")});Fa.on("mouseleave",function(ub){Fa.removeClass("sa-filtercard-f7_hover")});Fa.appendTo(db);na.getCardApi().updateUi()};this.getCardMinHeight=function(){return pa.CARD_TITLE_HEIGHT+42};this.getCardPerfectHeight=function(){var db=Math.max(2,Xa()+1);return pa.CARD_TITLE_HEIGHT+21*db};this.refreshUi=function(){Qa=0;na.getCardApi().fireRequestParentRelayout();na.getCardApi().tryToMarkNothingToSelect()};
this.afterRelayout=function(){var db=Fa.height();Qa!=db&&(Qa=db,na.getCardApi().getFilterModel().isStateValid()&&Ua())};this.propertyChangedHandler=function(db,ub){ub==w.KEY_EXCLUDE&&Ua()};var Ua=function(){Fa.empty();var db=na.getCardApi().getFilterModel(),ub=db.getSelectableItems();if(0!=ub.length){for(var Ob=Xa(),Zb=0,Fb=Qa,ob=!1,qa=0;qa<ub.length;qa++){var a=ub[qa];if(db.isValueSelected(a.getValue())){var l=Ka();db.isExclude()&&l.css("text-decoration","line-through");l.addClass("sa-filtercard-f7-item");
l.text(a.getDisplayText());l.appendTo(Fa);Zb++;Fb-=21;if(42>Fb){ob=Zb<Ob;break}}}ob&&(l=Ka(),l.addClass("sa-filtercard-f7-item"),l.text("..."),l.appendTo(Fa));db=db.isFullValue()?tb.get("totalItemsAll","\u5df2\u9009\u62e9\u5168\u90e8\u9009\u9879"):tb.get("totalItemsCount","\u5df2\u9009\u62e9#1\u9879").replace("#1",Ob);ub=Ka();ub.text(db);ub.css("text-align","right");ub.css("padding-right","4px");ub.appendTo(Fa);Gb.layoutCtrlWithLRTB(ub,0,0,null,null,0,null)}},Ka=function(){var db=$("<div>");db.css("height",
"21px");db.css("line-height","21px");return db},Xa=function(){for(var db=0,ub=na.getCardApi().getFilterModel(),Ob=ub.getSelectableItems(),Zb=0;Zb<Ob.length;Zb++)ub.isValueSelected(Ob[Zb].getValue())&&db++;return db}}function Ga(){fa.call(this);var na=this.protectedMethod,Fa;this.createUi=function(Ua){Fa=new ha;Fa.addValueChangedListener(Qa);var Ka=Fa.getJqUi();Ka.addClass("sa-filtercard-pane");Ka.appendTo(Ua);na.getCardApi().updateUi()};this.getCardPerfectHeight=function(){return pa.CARD_TITLE_HEIGHT+
45};this.refreshUi=function(){var Ua=na.getCardApi().getFilterModel();if(Fa&&Ua){var Ka=Ua.getPreparedModel();if(Ka){if(Ua.isJustShowAffected()){var Xa=Ka.getSelectedMin();Ka=Ka.getSelectedMax();var db=Math.min(Ka,Math.max(Xa,Ua.getFloor()));var ub=Math.min(Ka,Math.max(Xa,Ua.getCeiling()))}else Xa=Ka.getMin(),Ka=Ka.getMax(),db=Ua.getFloor(),ub=Ua.getCeiling();Fa.setFormatString(Ua.getFormatString());Fa.setLimited(Xa,Ka);Fa.setValue(db,ub)}}};var Qa=function(Ua){Ua=Ua.getValue();var Ka=na.getCardApi().getFilterModel(),
Xa=new z(Ka);Xa.setValue(Ua[0],Ua[1],Ka.isContainNull());na.getCardApi().getViewCtx().getCommandManager().perform(Xa)}}function Ia(){fa.call(this);var na=this.protectedMethod,Fa;this.createUi=function(Ka){var Xa=$("<div>");Xa.addClass("sa-filtercard-pane");Xa.appendTo(Ka);Fa=$("<div>");Fa.addClass("sa-filtercard-daterange");Fa.on("click",function(db){na.getCardApi().popupFilterDialog()});Fa.appendTo(Xa);Gb.layoutCtrlWithLRTB(Fa,4,4,null,6,null,54);na.getCardApi().updateUi()};this.getCardPerfectHeight=
function(){return pa.CARD_TITLE_HEIGHT+6+54};this.refreshUi=function(){var Ka=na.getCardApi().getFilterModel();Fa&&Ka&&Ka.getPreparedModel()&&(Ka.getRelativePeriodModel()?na.getCardApi().getViewCtx().createFacade(function(Xa){var db=new A;db.fromJsonObject(Xa);Ka.setFromDateMs(db.getFromDateMs());Ka.setToDateMs(db.getToDateMs());Qa()}).parseDateRange(Ka):Qa())};var Qa=function(){Fa.empty();var Ka=na.getCardApi().getFilterModel(),Xa=Ka.getFromDateMs();Ka=Ka.getToDateMs();var db=new Vb;db.setFormatString(tb.get("dateFilterFormat",
"yyyy-MM-dd"));Xa=db.format(Xa);Ka=db.format(Ka);db=$("<div>");db.text(Xa);Xa=$("<div>");Xa.text("~");var ub=$("<div>");ub.text(Ka);Ua(db,16,"left");Ua(Xa,16,"center");Ua(ub,16,"right")},Ua=function(Ka,Xa,db){Ka.css({position:"relative",height:Xa+"px","line-height":Xa+"px","text-align":db});Ka.appendTo(Fa)}}function hb(){Za.Child.call(this);Lb.call(this);var na=this,Fa=this.protectedMethod,Qa,Ua;this.setRequestRelayoutListener=function(Ka){Qa=Ka};this.setLegendUi=function(Ka){Ua=Ka;na.keepState();
Qa&&Qa();na.restoreState()};this.getMinHeight=function(){return 50};this.getPerfectHeight=function(){return pa.CARD_TITLE_HEIGHT+(Ua?Ua.askHeight():0)};this.keepState=function(){var Ka=Fa.getJqContainer();Ka.data("myScrollTop",Ka.prop("scrollTop"))};this.restoreState=function(){var Ka=Fa.getJqContainer(),Xa=Ka.data("myScrollTop");Xa&&Ka.prop("scrollTop",Xa)};this.afterRelayout=function(){if(Ua){var Ka=Fa.getJqContainer();Ka.empty();Ua.draw(Ka)}}}function ib(){hb.call(this)}function nb(){hb.call(this)}
function bb(){hb.call(this)}function la(){lb.call(this);var na=this,Fa=this.protectedMethod,Qa=this.showDialog;this.showDialog=function(Ka,Xa,db,ub,Ob){Fa.setTitle(Ka);var Zb=Ub.create(Xa);Fa.setContentPaneCreator(function(){return Zb.getJqUi()});Fa.setClosingAction(function(Fb){Fb&&Zb.accepting(db)});Ka=$(document.body);Xa=Zb.getSuggestDialogSize(Ka);Ua(Ka,ub,Xa,Ob);Qa()};var Ua=function(Ka,Xa,db,ub){var Ob=db[0],Zb=db[1],Fb=db[2],ob=Gb.upwardCoordinate(Xa[0],[0,0],Ka[0]),qa=ob[0];ob=ob[1];qa=ub?
qa-Ob:qa+Xa.outerWidth();Ka=Ka.innerHeight()-10;ob+Zb>Ka&&(ob=Ka-Zb);na.setSize(Ob,Zb);na.setPosition(qa,ob);Fb&&(Ob=db[3],db=db[4],Fa.setMinSize(Ob,db),Fa.getDialogCtrl().setMinSize(Ob,db),Fa.getDialogCtrl().setResizeEnabled())}}"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.longer&&(com.kingdee.bos.qing.longer=
{});"undefined"==typeof com.kingdee.bos.qing.longer.ui&&(com.kingdee.bos.qing.longer.ui={});var Jb=com.kingdee.bos.qing.longer.ui;Jb.LongPaintingDesk=function(){da.call(this);var na=this,Fa=this.protectedMethod,Qa,Ua,Ka,Xa,db,ub,Ob,Zb,Fb,ob,qa,a,l,n,f,m=!1,h=[],r=!1,k=!1,v,y;this.setGlobalDependence=function(cb){Qa=cb};this.isDesignable=function(){return B().isDesignable()};this.metaChanged=function(cb){ub&&cb&&(ub.setMeta(cb),cb.addChangedListener(function(Bb){Ua.isAnyCalculatedFieldUsed()&&lc()}))};
this.isAnyCalculatedFieldUsed=function(cb){return Ua.isAnyCalculatedFieldUsed(cb)};this.isModelPageMatched=function(cb){return cb.getModel()instanceof ca};this.setModelPage=function(cb){cb?(aa(cb.getPreferences()),Sa(cb.getModel())):(aa(new ba),Sa(new ca));H();B().isDesignable()?bc():(Xa.collapseFirstHalf(!0),db.getJqUi().detach())};this.getModelPage=function(){F();var cb=new c;cb.setModel(Ua);cb.setPreferences(Ka);return cb};this.getJqUi=function(){if(!Xa){var cb=Dc();Fb=new wb;Fb.setDependence(cb);
Fb.setHorizontalOtherwiseVertical(!1);Fb.setChangedCoworker(C);Fb.setMetaPaneVisitor(oa());ob=new Mb;ob.setDependence(cb);ob.setTitle(tb.get("filterFieldCardTitle","\u6570\u636e\u7b5b\u9009"));ob.setHorizontalOtherwiseVertical(!1);ob.setItemMenuCreator(Ib);qa=new pb;qa.setDependence(cb);qa.setTitle(tb.get("columnCardTitle","\u5217"));qa.setHorizontalOtherwiseVertical(!1);qa.setItemMenuCreator(Ib);qa.setItemPressListener(Cc);a=new pb;a.setDependence(cb);a.setTitle(tb.get("rowCardTitle","\u884c"));
a.setHorizontalOtherwiseVertical(!1);a.setItemMenuCreator(Ib);a.setItemPressListener(Cc);l=new zb;l.setDependence(cb);l.setTitle(tb.get("markCardTitle","\u503c\u5c55\u73b0\u65b9\u5f0f"));l.setHorizontalOtherwiseVertical(!1);l.setItemMenuCreator(Ib);l.setItemPressListener(Cc);Zb=$("<div>");Zb.append(Fb.getJqUi());Zb.append(ob.getJqUi());Zb.append(qa.getJqUi());Zb.append(a.getJqUi());Zb.append(l.getJqUi());qb();db=new ta;db.setSplitLineWide(pa.DESK_SPLIT_GAP_V);db.setHorizontalSplit(!1);db.setResizeMode(ta.RESIZE_MODE_SECOND_FIXED);
db.setFirstSize(-1,80,-1);db.setSecondChild(ta.createChildWrapper(Zb,dc));cb=n.getJqUi();var Bb=$("<div>");Bb.append(cb);Gb.layoutCtrlWithLRTB(cb,0,pa.DESK_PADDING_RIGHT,null,pa.DESK_PADDING_TOP,pa.DESK_PADDING_BOTTOM,null);Xa=new ta;Xa.setHorizontalSplit(!0);Xa.collapseFirstHalf(!0);Xa.setSecondSize(-1,320,-1);Xa.setFirstChild(db);Xa.setSecondChild(ta.createChildWrapper(Bb,n.resize));Xa.getJqUi().addClass("sa-desk");Gb.makeSelectable(Xa.getJqUi(),!1);Ta();Ob=new sb;Ob.bindParentUi(Qa.getTopJqUi());
X(ub,Ob);ob.setDragDropHandler(Ob);qa.setDragDropHandler(Ob);a.setDragDropHandler(Ob);l.setDragDropHandler(Ob);aa(new ba);Sa(new ca);H();Xa.collapseFirstHalf(!0)}return Xa.getJqUi()};this.protectedCreateToolbarIndividualPart=function(cb){var Bb=$("<div>");cb.addSeperatorForView(Bb);if(B().isDesignable()){cb.addMenuButtonForView(Bb,Pb,"btn_analysis",tb.get("analysis","\u5206\u6790"));var Sb=cb.addButtonForView(Bb,oc,"btn_reverse",tb.get("rowColReverse","\u884c\u5217\u7f6e\u6362"));cb.addButtonForView(Bb,
Rb,"btn_clear",tb.get("clear","\u6e05\u9664"))}var gc=cb.addButtonForView(Bb,vb,null,"");cb.addSeperatorForView(Bb);var fc=B().isExportable(),pc=B().isPrintable(),mc=(new E).create(fc,pc,{createFacade:Qa.createFacade,createJsonModelWrapper:function(){F();var rc=Ka.createExecutingCopy(Ua.getChartType(),!0),nc=Ua.createDependentMeta(Qa.getMeta()),uc={};uc.meta=nc.toJsonObject();uc.model=Ua.toJsonObject();uc.preferences=rc.toJsonObject();return uc},getExportSetting:function(){return Ka.getExportSetting()},
setExportSetting:function(rc){return Ka.setExportSetting(rc)},getExportConfig:function(){return Ka.getExportConfig()},setExportConfig:function(rc){return Ka.setExportConfig(rc)}},function(rc,nc,uc){return cb.addMenuButtonForView(Bb,function(){return rc},nc,uc)},function(rc,nc){return tb.get(rc,nc)}),tc=function(){for(var rc=!r&&Ba().isExportable(),nc=0;nc<mc.length;nc++)mc[nc].setEnabled(rc);rc=!Ua.isExecutableContentEmpty();Fa.fireExhibitionContentChangedEvent(rc)};v=function(rc){tc()};Ba().setExhibitionChangedListener(function(){tc()});
y=function(){Sb&&yb(Sb)};Pa(gc);Sb&&yb(Sb);Qa.getCommandManager().addPerformedListener(function(rc,nc,uc){Sb&&yb(Sb)});return Bb};var L=this.born;this.born=function(){Ka.getDesignerStatus().setHide(!1);bc();L()};this.protectedResizeImpl=function(){Xa.resize();Ua&&n.refreshRightLanes()};this.suspend=function(){k=!0;V();v&&v(!0)};this.protectedShowExecutingAccident=function(cb,Bb){qc();m=!0;Ba().showNoDataPrompt(cb,Bb)};this.protectedAppendNecessaryDimensions=function(){var cb=new T;cb.setValue(Qa.getMeta(),
Ua);Qa.getCommandManager().perform(cb)};this.reExecute=function(){m=!0;Qb()};this.destroy=function(){Ba().destroy()};var B=function(){return Qa.getDesignerOperationJudger(za.TYPE_LongPainting)},F=function(){var cb=Ka.getDesignerStatus();cb.setWidth(Xa.getNonemptyFirstWide());cb.setHeight(db.getNonemptySecondWide());cb=Ka.getExhibitionStatus();Ba().collectStatus(cb)},H=function(){var cb=Ka.getDesignerStatus(),Bb=cb.getHeight();Bb=200>Bb?200:640<Bb?640:Bb;db.clearState();db.setSecondSize(Bb,200,640);
cb=cb.getWidth();cb=200>cb?200:640<cb?640:cb;Xa.clearState();Xa.setFirstSize(cb,200,640);cb=Ka.getExhibitionStatus();Ba().applyStatus(cb)},C=function(){Ba().clearHeightWidthCacheAction()},aa=function(cb){Ka&&Ka.removeChartConfigChangedListener(Ha);Ka=cb;Ka.addChartConfigChangedListener(Ha)},Sa=function(cb){Ba().reset();qc();Qa.getCommandManager().reset();Ua&&Ua.removeModelChangedListener(jb);Ua=cb;Ua.addModelChangedListener(jb);y&&y();ob.setModel(Ua.getFilterFieldSet());qa.setModel(Ua.getColumnAnalyticalFieldSet());
a.setModel(Ua.getRowAnalyticalFieldSet());l.setModel(Ua.getMarkFieldSet());jc();ic();va();Ua.isExecutableContentEmpty()||Kb(!0)},Ta=function(){ub=new Aa;ub.setGlobalDependence(Qa);na.metaChanged(Qa.getMeta());var cb=ub.getJqUi();Gb.layoutCtrlWithLRTB(cb,pa.DESK_PADDING_LEFT,0,null,pa.DESK_PADDING_TOP,0,null);var Bb=$("<div>");Bb.append(cb);db.setFirstChild(ta.createChildWrapper(Bb));cb=$("<div>");cb.on("click",function(Sb){Wb()});cb.attr("title",tb.get("collapseDesignPanel","\u6536\u8d77\u8bbe\u8ba1\u9762\u677f"));
Bb=$("<div>");Bb.addClass("sa-metapane-button-collapse-icon");u.background(Bb,"icon_left_collapse");cb.append(Bb);ub.addTitleBarButton(cb);ub.addClearSelectedAsker(function(Sb){Gb.isDescendent(Sb.getTarget(),Fb.getJqUi()[0])&&Sb.retain()})},qb=function(){var cb=Dc();n=new Ya;n.setContextGetter(cb);Ba().setPromptListener(function(Bb){Qa.showStatusBarPrompt(Bb)})},Ba=function(){return n.getExhibition()},V=function(){var cb=Ba().getJqUi(),Bb=cb.find(".sa-exhibition-suspend-mask");0==Bb.length&&(Bb=$("<div>"),
Bb.addClass("sa-exhibition-suspend-mask"),Bb.appendTo(cb));Bb.empty();return Bb},K=function(){var cb=V(),Bb=new ea;Bb.setText(tb.get("executingCanceled","\u91cd\u65b0\u6267\u884c"));Bb.addActionListener(function(Sb){Qb()});Bb.getJqUi().css({position:"relative",width:"320px",height:"30px",margin:"20px"});Bb.getJqUi().appendTo(cb)},X=function(cb,Bb){Bb.bindDragUi(cb.getJqUi(),function(Sb){Sb=cb.getDraggingMetaField(Sb);if(!Sb)return null;var gc=Sb.getDataType()!=e.DT_NUMBER&&Sb.isCanAsDimension();Sb=
ya(Sb,gc);cb.lockScroll(!0);return Sb},function(Sb,gc){Sb&&cb.clearSelecteds();cb.lockScroll(!1)})},ya=function(cb,Bb){var Sb=new M;Sb.setMetaField(cb);Bb?(Sb.setRole(b.ROLE_DIMENSION),Sb.setContinuous(!1),cb.getHierachy()&&Sb.setMetaField(cb.getHierachy()[0])):(cb=cb.isRelativeAggregation()?b.AGGREGATION_AGG:b.AGGREGATION_SUM,Sb.setRole(b.ROLE_MEASURE,cb),Sb.setContinuous(!0));return Sb},oa=function(){var cb=function(Bb,Sb){for(var gc=[],fc=0;fc<Bb.length;fc++){var pc=Bb[fc];if(!(pc.isInvalid()||
Sb&&pc.getDataType()==e.DT_NUMBER||!Sb&&pc.getDataType()!=e.DT_NUMBER)){var mc=ya(pc,Sb);pc.getDataType()==e.DT_DATE&&mc.setPartValue(b.PARTVALUE_DATE_YEAR);gc.push(mc)}}return gc};return{getDimensionSelecteds:function(){return cb(ub.getSelecteds(),!0)},getMeasureSelecteds:function(){return cb(ub.getSelecteds(),!1)},clearAllSelecteds:function(){ub.clearSelecteds()}}},Pa=function(cb){r?(cb.setText(tb.get("exeImmediately","\u5373\u65f6\u6267\u884c")),cb.setIconName("btn_resume"),cb.setTooltips(tb.get("exeImmediatelyCurrent",
"\u5f53\u524d\u4e3a\u201c\u6682\u7f13\u6267\u884c\u201d\u6a21\u5f0f\uff0c\u70b9\u51fb\u5207\u6362\u4e3a\u201c\u5373\u65f6\u6267\u884c\u201d"))):(cb.setText(tb.get("exeDelay","\u6682\u7f13\u6267\u884c")),cb.setIconName("btn_suspend"),cb.setTooltips(tb.get("exeDelayCurrent","\u5f53\u524d\u4e3a\u201c\u5373\u65f6\u6267\u884c\u201d\u6a21\u5f0f\uff0c\u70b9\u51fb\u5207\u6362\u4e3a\u201c\u6682\u7f13\u6267\u884c\u201d")))},yb=function(cb){var Bb=Cb.getInstance(Ua.getChartType());cb.setEnabled(Bb.isRowColReverseEnable(Ua))},
Pb=function(){var cb=new $a;cb.addItemModel(Hb());cb.addItemModel(Tb());if(Qa.getMeta().isNormalSrcMode()){cb.addSeperator();var Bb=cb.addItemModel,Sb=Na.createSubMenu(tb.get("total","\u5408\u8ba1")),gc=Ua.isRowGrandTotal(),fc=new Wa;fc.setCaption(gc?tb.get("showRowTotalNo","\u4e0d\u663e\u793a\u884c\u603b\u8ba1"):tb.get("showRowTotalYes","\u663e\u793a\u884c\u603b\u8ba1"));fc.setMethod(Ua.isRowGrandTotal,Ua.setRowGrandTotal);Sb.addItemModel(Ab.createCheckboxMenuItem(tb.get("showRowTotal","\u663e\u793a\u884c\u603b\u8ba1"),
gc,fc,Qa.getCommandManager()));gc=Ua.isColumnGrandTotal();fc=new Wa;fc.setCaption(gc?tb.get("showColTotalNo","\u4e0d\u663e\u793a\u5217\u603b\u8ba1"):tb.get("showColTotalYes","\u663e\u793a\u5217\u603b\u8ba1"));fc.setMethod(Ua.isColumnGrandTotal,Ua.setColumnGrandTotal);Sb.addItemModel(Ab.createCheckboxMenuItem(tb.get("showColTotal","\u663e\u793a\u5217\u603b\u8ba1"),gc,fc,Qa.getCommandManager()));Bb.call(cb,Sb)}g.isDesigntimeSupported()&&Qa.getMeta().isNormalSrcMode()&&(cb.addSeperator(),cb.addItemModel(hc()));
return cb},Hb=function(){var cb=Ka.getChartConfig(),Bb=cb.isShowLabel(),Sb=Qa.getCommandManager();return Na.createCheckbox(tb.get("showChartLabel","\u663e\u793a\u56fe\u8868\u6807\u7b7e"),Bb,function(gc){var fc=new Wa;fc.setCaption(gc.isChecked()?tb.get("showChartLabelYes","\u663e\u793a\u56fe\u8868\u6807\u7b7e"):tb.get("showChartLabelNo","\u4e0d\u663e\u793a\u56fe\u8868\u6807\u7b7e"));fc.setMethod(cb.isShowLabel,cb.setShowLabel);fc.setValue(gc.isChecked());Sb.perform(fc)})},Tb=function(){return Na.createActionMenuItem(tb.get("chartSetting",
"\u56fe\u8868\u8bbe\u7f6e")+"...",function(cb){cb=new cc;var Bb=Ka.getChartConfig();cb.setChartConfig(Bb.backup());cb.setAcceptedListener(function(Sb){var gc=new Wa;gc.setCaption(tb.get("chartSetting","\u56fe\u8868\u8bbe\u7f6e"));gc.setMethod(Bb.backup,Bb.restore);gc.setValue(Sb);Qa.getCommandManager().perform(gc)});cb.showDialog()})},hc=function(){return Na.createActionMenuItem(tb.get("linkageSetting","\u5355\u636e\u8054\u67e5\u8bbe\u7f6e")+"...",function(cb){cb=(cb=Ua.getLinkTargets())?cb.toArray():
[];g.setup(cb,function(){return(new N).addItem()},function(Bb){if(Bb){var Sb=new Wa;Sb.setCaption(tb.get("linkageSetting","\u5355\u636e\u8054\u67e5\u8bbe\u7f6e"));Sb.setMethod(Ua.getLinkTargets,Ua.setLinkTargets);if(0==Bb.length)Sb.setValue(null);else{var gc=new N;gc.fromArray(Bb);Sb.setValue(gc)}Qa.getCommandManager().perform(Sb)}})})},oc=function(){var cb=Cb.getInstance(Ua.getChartType());cb.isRowColReverseEnable(Ua)&&cb.rowColReverse(Ua,Qa.getCommandManager())},Rb=function(){var cb=new Z;cb.setValue(Ua);
Qa.getCommandManager().compositeStart(cb.getCaption());Qa.getCommandManager().perform(cb);C();Ba().clearTreeExpandState();Qa.getCommandManager().compositeEnd()},vb=function(cb){var Bb=!r;r!=Bb&&(r=Bb,!r&&k&&Qb());Pa(cb)},Wb=function(){var cb=!Ka.getDesignerStatus().isHide();Ka.getDesignerStatus().setHide(cb);bc()},bc=function(){var cb=!Ka.getDesignerStatus().isHide(),Bb=Xa.getJqSplitLine();Bb.children(".sa-desk-splitline-button").remove();cb?(Xa.setSplitLineWide(pa.DESK_SPLIT_GAP_H),Xa.collapseFirstHalf(!1)):
(cb=$("<div>"),cb.text(">>"),cb.addClass("sa-desk-splitline-button"),cb.on("click",Wb),Xa.setSplitLineWide(18),Xa.collapseFirstHalf(!0),Bb.append(cb))},dc=function(cb){cb=pa.DESK_PADDING_LEFT;var Bb=pa.DESK_PADDING_BOTTOM,Sb=pa.CARD_GAP,gc=Zb.innerWidth()-cb-Sb,fc=gc>>1;gc-=fc;var pc=fc+Sb+gc,mc=Fb.relayout(pc),tc=Zb.innerHeight()-0-Bb-mc-2*Sb;Bb=tc>>1;tc-=Bb;var rc=cb+fc+Sb,nc=0,uc=ob.getJqUi(),zc=uc.outerWidth()-uc.innerWidth();Gb.layoutCtrl(uc,cb,nc,fc-zc,Bb-zc);Gb.layoutCtrl(qa.getJqUi(),rc,nc,
gc-zc,Bb-zc);nc+=Bb+Sb;Gb.layoutCtrl(a.getJqUi(),cb,nc,fc-zc,tc-zc);Gb.layoutCtrl(l.getJqUi(),rc,nc,gc-zc,tc-zc);nc+=tc+Sb;Gb.layoutCtrl(Fb.getJqUi(),cb,nc,pc-zc,mc-zc)},jc=function(){Ob&&(l.setDragDropHandler(Ob,!1),l.setChartType(Ua.getChartType()),l.setDragDropHandler(Ob,!0))},ic=function(){var cb=Ua.getChartType();cb=Cb.getInstance(cb).getCardsDynamicInfo();qa.setTitle(cb.getColumnCardInfo().getTitle());a.setTitle(cb.getRowCardInfo().getTitle());l.setTitle(cb.getMarkCardInfo().getTitle());Fb.updateDisplay()},
qc=function(){ec();Ua&&(n.clearLegends(),n.clearFilterCards());Ba().clearExecuted()},ec=function(){f&&f.isVisible()&&f.hideDialog();$(document.body).find(".sa-ctrl-common-modallayer").remove()},lc=function(){a.checkAllInvalidFields();qa.checkAllInvalidFields();l.checkAllInvalidFields();ob.checkAllInvalidFields()},va=function(){var cb=Cb.getInstance(Ua.getChartType()).getCardsOperatingPrompt(Ua);a.showOperatingPrompt(cb.getRowCardPrompt());qa.showOperatingPrompt(cb.getColumnCardPrompt());l.showOperatingPrompt(cb.getMarkCardPrompt())},
Ha=function(cb,Bb){Bb==ba.KEY_EXECUTE?Qa.getCommandManager().untilWakeup(Qb):Bb==ba.KEY_REPAINT&&Qa.getCommandManager().untilWakeup(Ba().repaint)},jb=function(cb){y&&y();cb.isContainKeys([ca.KEY_CHART_TYPE,ca.KEY_CLEAR,ca.KEY_UNCLEAR,ia.KEY_ADD,ia.KEY_REMOVE])&&Qa.getCommandManager().untilWakeup(va);if(cb.isContainKey(ca.KEY_CLEAR))qc();else{cb.isContainKeys([ca.KEY_CLEAR,ca.KEY_UNCLEAR,ia.KEY_REMOVE,ia.KEY_REPLACE])&&ec();cb.isContainKey(ca.KEY_CHART_TYPE)&&(jc(),ic(),Qa.getCommandManager().untilWakeup(lc));
var Bb=!1;if(cb.isContainFieldSet(Ua.getFilterFieldSet())){if(cb.isContainKey(mb.KEY_FILTER_ONSHOW)){n.refreshRightLanes();return}if(cb.isContainKey(b.KEY_SORT))Bb=!0;else if(cb.isContainKeys([e.KEY_FORMATSTRING,e.KEY_FISCALYEARSTART,e.KEY_SORTACCORDING,b.KEY_FORMULA],Ua.getFilterFieldSet()))m=!0;else if(cb.isContainKey(mb.KEY_FILTER_VALUE,Ua.getFilterFieldSet()))cb=cb.getTargetField(Ua.getFilterFieldSet(),mb.KEY_FILTER_VALUE),h.push(cb);else{a:{var Sb=Ua.getFilterFieldSet();for(var gc=0;gc<Sb.getCount();gc++)if(Sb.get(gc),
!Sb.getFilter(gc)){Sb=!1;break a}Sb=!0}Sb&&n.refreshRightLanes();if(cb.isContainKey(ia.KEY_ADD))cb=cb.getTargetField(Ua.getFilterFieldSet(),ia.KEY_ADD),!cb.getMetaField().isNecessaryDimension()&&(Bb=!0);else if(cb.isContainKey(mb.KEY_FILTER)||cb.isContainKey(b.KEY_DISPLAYNAME))Bb=!0}}else cb.isContainKeys([ca.KEY_TREE_EXPANDING,ca.KEY_SORTING_LANE,b.KEY_SORT])&&Ba().keepScrollStatus(!0);Bb||Qa.getCommandManager().untilWakeup(Qb)}},rb=function(){for(var cb=h.length-1;0<=cb;cb--){var Bb=h[cb];Bb=Ua.getFilterFieldSet().getIndex(Bb);
if(0<=Bb)return Bb}return-1},Qb=function(){k=!0;r?(V(),v&&v(!0)):(v&&v(!1),k=!1,Ua.isExecutableContentEmpty()?(n.clearLegends(),Ba().clearExecuted()):(window.console&&console.log("remote request data..."),m?(m=!1,qc(),Kb(!1)):0<=rb()?(F(),n.filteringExecute(rb(),Eb)):(F(),n.execute(Eb))))},Kb=function(cb){!cb&&F();n.christmasExecute(cb,function(Bb,Sb,gc){Eb(Bb,Sb,gc);Bb||(Bb=Sb[0],205301!=Bb&&205302!=Bb&&205403!=Bb&&-1!=Bb)||(m=!0)})},Eb=function(cb,Bb,Sb){if(cb)h=[];else{cb=Bb[0];var gc=Bb[1];Bb=
Bb[2];-1==cb?K():Fa.executingPerformanceErrorHandler(Sb,cb,gc)||Fa.executingCommonErrorHandler(cb,gc)||(Sb=new p,Sb.setOptionType(p.OPTION_OK),Sb.setMessage(cb+"\n"+gc),Bb&&Sb.setDetail(Bb),Sb.showDialog())}},Ib=function(cb,Bb,Sb){var gc=cb==Ua.getColumnAnalyticalFieldSet()||cb==Ua.getRowAnalyticalFieldSet(),fc=cb==Ua.getFilterFieldSet(),pc=Bb.getMetaField().getDataType()==e.DT_DATE&&Bb.isDimension(),mc=Bb.getMetaField().getDataType()==e.DT_DATE&&Bb.isMeasure()&&Bb.getAggregation()!=b.AGGREGATION_COUNT&&
Bb.getAggregation()!=b.AGGREGATION_CNTD,tc=new $a;if(!fc&&Bb.isMeasure()&&!mc){var rc=Na.createActionMenuItem(tb.get("dataFormatForNumber","\u6570\u5b57\u683c\u5f0f")+"...",function(nc){f||(f=new xa(na.getJqUi()),f.setCommandManager(Qa.getCommandManager()));f.showDialog();f.setModel(Bb)});tc.addItemModel(rc);cb==Ua.getMarkFieldSet()&&sa.TYPE_COLOR==cb.getFieldMatchingMarkType(Bb)&&(rc=Na.createActionMenuItem(tb.get("markTypeColor","\u989c\u8272")+"...",function(nc){nc=Bb.getContinuousColor();var uc=
new $b;uc.setTitle(tb.get("markTypeColor","\u989c\u8272"));uc.setup(nc,Qa.createFacade,function(zc){var Fc=new Wa;Fc.setCaption(Bb.getComplexText()+tb.get("markTypeColor","\u989c\u8272"));Fc.setMethod(Bb.getContinuousColor,Bb.setContinuousColor);Fc.setValue(zc);Qa.getCommandManager().perform(Fc)});uc.showDialog()}),tc.addItemModel(rc));tc.addSeperator()}fc||!pc&&!mc||(rc=Na.createActionMenuItem(tb.get("dataFormatForDate","\u6570\u5b57\u683c\u5f0f")+"...",function(nc){nc=new Ra;nc.setCommandManager(Qa.getCommandManager());
nc.showDialog(Bb)}),tc.addItemModel(rc),tc.addSeperator());gc&&Qa.getMeta().isNormalSrcMode()&&Xb(Bb,cb)&&(pc=Bb.isShowSubtotal(),mc=new Wa,mc.setCaption(Bb.getComplexText()+(pc?tb.get("showSubtotalNo","\u4e0d\u663e\u793a\u5c0f\u8ba1"):tb.get("showSubtotalYes","\u663e\u793a\u5c0f\u8ba1"))),mc.setMethod(Bb.isShowSubtotal,Bb.setShowSubtotal),tc.addItemModel(Ab.createCheckboxMenuItem(tb.get("showSubtotal","\u5c0f\u8ba1"),pc,mc,Qa.getCommandManager())),tc.addSeperator());fc?kc(Sb,tc,cb,Bb):(Bb.getMetaField().isCanAsDimension()&&
Bb.getMetaField().isCanAsMeasure()&&(yc(tc,cb,Bb,gc),tc.addSeperator()),Bb.isMeasure()&&Qa.getMeta().isNormalSrcMode()&&(vc(tc,Bb),tc.addSeperator(),gc=Bb.getMetaField().getFormulaAggStatus(),gc!=e.FORMULA_STATUS_WITHTOTAL&&gc!=e.FORMULA_STATUS_INTERLINE&&(Bc(tc,Bb),tc.addSeperator())));Bb.isInvalid()||(rc=Na.createActionMenuItem(tb.get("rename","\u91cd\u547d\u540d"),function(nc){Sb.modifyDisplayName(Qa.getCommandManager())}),tc.addItemModel(rc));mc=new P(cb);mc.setValue(Bb);rc=Ab.createActionMenuItem(tb.get("remove",
"\u79fb\u9664"),mc,Qa.getCommandManager());tc.addItemModel(rc);return tc},Xb=function(cb,Bb){if(!cb.isDimension())return!1;for(var Sb=!1,gc=Bb.getCount()-1;0<=gc;gc--){var fc=Bb.get(gc);if(fc==cb)break;if(fc.isDimension()){Sb=!0;break}}return Sb},kc=function(cb,Bb,Sb,gc){var fc=Sb.getFilter(gc),pc=Qa.getCommandManager();fc.isStateValid()&&Bb.addItemModel(Na.createActionMenuItem(tb.get("filterSelectData","\u6570\u636e\u7b5b\u9009")+"...",function(rc){rc=fc.getAssociatedField().getText();var nc=cb.getJqUi();
(new la).showDialog(rc,fc,pc,nc,!1)}));Sb=fc.isOnShow()?tb.get("filterHide","\u9690\u85cf\u7b5b\u9009\u5668"):tb.get("filterShow","\u663e\u793a\u7b5b\u9009\u5668");Sb+=gc.getComplexText();var mc=new Wa;mc.setCaption(Sb);mc.setMethod(fc.isOnShow,fc.setOnShow);Sb=Ab.createCheckboxMenuItem(tb.get("filterOnShowSwitch","\u663e\u793a\u7b5b\u9009\u5668"),fc.isOnShow(),mc,pc);Bb.addItemModel(Sb);if(fc instanceof w){var tc=!gc.getMetaField().isParentChildDimension();Sb=function(rc,nc){var uc=fc.getCtrlType();
!uc&&(uc=tc?w.CTRLTYPE_CHECKBOX_LIST:w.CTRLTYPE_CHECKBOX_POPUP);uc=uc==nc;var zc=new fb;zc.setCaption(tb.get("filterChangeProperty","\u7b5b\u9009\u5668#1: #2").replace("#1",gc.getComplexText()).replace("#2",rc));zc.setValue(fc,nc);return Ab.createRadioMenuItem(rc,"ctrlType",uc,zc,pc)};mc=Na.createSubMenu(tb.get("mode","\u6a21\u5f0f"));tc&&mc.addItemModel(Sb(tb.get("multiSelectedList","\u591a\u9009\u5217\u8868"),w.CTRLTYPE_CHECKBOX_LIST));mc.addItemModel(Sb(tb.get("multiSelectedPopup","\u591a\u9009\u5f39\u7a97\u9009\u62e9\u5668"),
w.CTRLTYPE_CHECKBOX_POPUP));tc&&mc.addItemModel(Sb(tb.get("singleSelectedList","\u5355\u9009\u5217\u8868"),w.CTRLTYPE_RADIOBUTTON_LIST));mc.addItemModel(Sb(tb.get("singleSelectedPopup","\u5355\u9009\u5f39\u7a97\u9009\u62e9\u5668"),w.CTRLTYPE_RADIOBUTTON_POPUP));Bb.addItemModel(mc);sc(Bb,gc,!1)}Bb.addSeperator();Qa.getMeta().isNormalSrcMode()&&(mc=Sb=null,fc instanceof x?(Sb=tb.get("rangeForAllValues","\u8303\u56f4\u5305\u62ec\u5168\u90e8\u503c"),mc=tb.get("rangeForRelevantValues","\u8303\u56f4\u4ec5\u5305\u62ec\u76f8\u5173\u503c")):
fc instanceof w&&(Sb=tb.get("optionForAllValues","\u5907\u9009\u503c\u4e3a\u5168\u90e8\u503c"),mc=tb.get("optionForRelevantValues","\u5907\u9009\u503c\u4ec5\u4e3a\u76f8\u5173\u503c")),null!=Sb&&null!=mc&&(Bb.addItemModel(wc(Sb,!1,fc,gc,pc)),Bb.addItemModel(wc(mc,!0,fc,gc,pc)),Bb.addSeperator()))},sc=function(cb,Bb,Sb){var gc=tb.get("sort","\u6392\u5e8f"),fc=Na.createSubMenu(gc);cb.addItemModel(fc);cb=function(pc,mc){void 0===mc&&(mc=pc);var tc=b.sortToString(pc);pc=Bb.getSort()==pc||Bb.getSort()==
mc;var rc=new Wa;rc.setCaption(gc+"-"+tc);rc.setMethod(Bb.getSort,Bb.setSort);rc.setValue(mc);return Ab.createRadioMenuItem(tc,"sort",pc,rc,Qa.getCommandManager())};Sb?(fc.addItemModel(cb(null)),fc.addItemModel(cb(b.SORT_ASC))):fc.addItemModel(cb(b.SORT_ASC,null));fc.addItemModel(cb(b.SORT_DESC))},wc=function(cb,Bb,Sb,gc,fc){var pc=Sb.isJustShowAffected()==Bb,mc=new Wa;mc.setCaption(tb.get("filterChangeProperty","\u7b5b\u9009\u5668#1: #2").replace("#1",gc.getComplexText()).replace("#2",cb));mc.setMethod(Sb.isJustShowAffected,
Sb.setJustShowAffected);mc.setValue(Bb);return Ab.createRadioMenuItem(cb,"affected",pc,mc,fc)},yc=function(cb,Bb,Sb,gc){var fc=function(xc){gc&&xc.push(new O(Bb));for(var Ac=Qa.getCommandManager().createCompositeAction(),Ec=0;Ec<xc.length;Ec++){var Hc=xc[Ec];Ac.appendUnitAction(Hc);0==Ec&&Ac.setCaption(Hc.getCaption())}return Ac},pc=function(xc){var Ac=new xb(Sb);Ac.setValue(xc);return Ac},mc=function(xc){var Ac=new gb(Sb);Ac.setValue(xc);return Ac},tc=Sb.getMetaField().getDataType()==e.DT_NUMBER,
rc=Sb.getMetaField().getDataType()==e.DT_DATE;if(rc){var nc=Na.createSubMenu(tb.get("dimension","\u7ef4\u5ea6"),!0,"role");cb.addItemModel(nc);var uc=function(xc){var Ac=pc(b.ROLE_DIMENSION),Ec=mc(xc);Ac=fc([Ac,Ec]);Ec=b.partValueToString(xc);xc=xc==Sb.getPartValue();return Ab.createRadioMenuItem(Ec,"role",xc,Ac,Qa.getCommandManager())};nc.addItemModel(uc(b.PARTVALUE_DATE_YEAR));nc.addItemModel(uc(b.PARTVALUE_DATE_QUARTER));nc.addItemModel(uc(b.PARTVALUE_DATE_MONTH));nc.addItemModel(uc(b.PARTVALUE_DATE_DAY));
nc.addItemModel(uc(b.PARTVALUE_DATE_YQ));nc.addItemModel(uc(b.PARTVALUE_DATE_YM));nc.addItemModel(uc(b.PARTVALUE_DATE_YMD))}else nc=pc(b.ROLE_DIMENSION),uc=mc(null),nc=fc([nc,uc]),uc=Sb.isDimension(),nc=Ab.createRadioMenuItem(tb.get("dimension","\u7ef4\u5ea6"),"role",uc,nc,Qa.getCommandManager()),cb.addItemModel(nc);var zc=Sb.isMeasure(),Fc=Sb.getAggregation();nc=Na.createSubMenu(tb.get("measure","\u5ea6\u91cf")+(zc?"("+b.aggregationToString(Fc)+")":""),!0,"role");cb.addItemModel(nc);cb=function(xc){var Ac=
pc(xc);if(!rc||!(Fc==b.AGGREGATION_MAX&&xc==b.AGGREGATION_MIN||Fc==b.AGGREGATION_MIN&&xc==b.AGGREGATION_MAX)){var Ec=mc(null);Ac=fc([Ac,Ec])}Ec=zc&&Fc==xc;xc=b.aggregationToString(xc);return Ab.createRadioMenuItem(xc,"role",Ec,Ac,Qa.getCommandManager())};tc&&(nc.addItemModel(cb(b.AGGREGATION_SUM)),nc.addItemModel(cb(b.AGGREGATION_AVG)));if(tc||rc)nc.addItemModel(cb(b.AGGREGATION_MAX)),nc.addItemModel(cb(b.AGGREGATION_MIN));nc.addItemModel(cb(b.AGGREGATION_COUNT));nc.addItemModel(cb(b.AGGREGATION_CNTD))},
vc=function(cb,Bb){var Sb=tb.get("totalUsing","\u6c47\u603b\u8ba1\u7b97\u65b9\u5f0f"),gc=Na.createSubMenu(Sb);cb.addItemModel(gc);Sb=Bb.getComplexText()+Sb;cb=function(mc){var tc=Bb.getTotalUsing()==mc,rc=mc?b.aggregationToString(mc):tb.get("totalUsingAuto","\u8ddf\u968f\u5ea6\u91cf"),nc=new Wa;nc.setCaption(Sb+"-"+rc);nc.setMethod(Bb.getTotalUsing,Bb.setTotalUsing);nc.setValue(mc);return Ab.createRadioMenuItem(rc,"totalUsing",tc,nc,Qa.getCommandManager())};gc.addItemModel(cb(null));gc.addItemModel(cb(b.AGGREGATION_SUM));
gc.addItemModel(cb(b.AGGREGATION_AVG));gc.addItemModel(cb(b.AGGREGATION_MAX));gc.addItemModel(cb(b.AGGREGATION_MIN));gc.addSeperator();cb=Bb.isTotalDisplayHidden();var fc=tb.get("totalUsingHidden","\u9690\u85cf"),pc=new Wa;pc.setCaption(Sb+"-"+fc+"-"+(cb?"\u00d7":"\u221a"));pc.setMethod(Bb.isTotalDisplayHidden,Bb.setTotalDisplayHidden);cb=Ab.createCheckboxMenuItem(fc,cb,pc,Qa.getCommandManager());gc.addItemModel(cb)},Bc=function(cb,Bb){var Sb=function(pc){var mc=Bb.getQuickSetup()==pc,tc=b.quickSetupToString(pc);
return Na.createCheckbox(tc,mc,function(rc){rc=rc.isChecked()?pc:null;var nc=new Wa;nc.setCaption(gc+"-"+tc);nc.setMethod(Bb.getQuickSetup,Bb.setQuickSetup);nc.setValue(rc);Qa.getCommandManager().perform(nc)})},gc=tb.get("quickSetup1","\u8ba1\u7b97"),fc=Na.createSubMenu(gc,!0);cb.addItemModel(fc);fc.addItemModel(Sb(b.QUICKSETUP_LASTPERIOD_VALUE));fc.addItemModel(Sb(b.QUICKSETUP_LASTPERIOD_DIFF));fc.addItemModel(Sb(b.QUICKSETUP_LASTPERIOD_RATIO));fc.addSeperator();fc.addItemModel(Sb(b.QUICKSETUP_SAMEPERIODLASTYEAR_VALUE));
fc.addItemModel(Sb(b.QUICKSETUP_SAMEPERIODLASTYEAR_DIFF));fc.addItemModel(Sb(b.QUICKSETUP_SAMEPERIODLASTYEAR_RATIO));fc.addSeperator();fc.addItemModel(Sb(b.QUICKSETUP_RUNNINGSUM));fc.addItemModel(Sb(b.QUICKSETUP_RUNNINGSUMY));gc=tb.get("quickSetup2","\u5360\u6bd4");fc=Na.createSubMenu(gc,!0);cb.addItemModel(fc);fc.addItemModel(Sb(b.QUICKSETUP_RATIO_10));fc.addItemModel(Sb(b.QUICKSETUP_RATIO_01));fc.addItemModel(Sb(b.QUICKSETUP_RATIO_11));fc.addItemModel(Sb(b.QUICKSETUP_RATIO_90));fc.addItemModel(Sb(b.QUICKSETUP_RATIO_09));
fc.addItemModel(Sb(b.QUICKSETUP_RATIO_99))},Cc=function(cb){f&&f.isVisible()&&cb.isMeasure()&&cb!=f.getModel()&&(f.acceptEditing(),f.setModel(cb))},Gc=function(cb){cb(B())},Dc=function(){return{createFacade:Qa.createFacade,getTopJqUi:Qa.getTopJqUi,getCommandManager:Qa.getCommandManager,getMeta:Qa.getMeta,getAnalyticalModel:function(){return Ua},getPreferences:function(){return Ka},getAdditionalFilterApi:function(){return null},loadDesignerOperationJudger:Gc,getBlockingJqUi:function(){return $(document.body)}}}};
Jb.LongPaintingDesk.setSkin=function(na){pa=na};Jb.ExecutedArea=Ya;var pa,Gb,Vb,tb,lb,Na,$a,La,ab,ma,ha,ta,ka,p,ra,ea,Ca,U,E,u,g,d,e,c,b,q,t,w,x,A,N,ba,ca,M,ia,sa,mb,Wa,xb,gb,fb,Da,Y,z,D,I,P,O,R,Z,G,J,ja,Q,T,za,da,Aa,Za,sb,Ab,xa,Ra,kb,Db,Ub,$b,Cb=Jb.ChartTypeFactory,Nb=Jb.ExecutableExhibition,ac=Jb.AbstractLegendUi,cc=Jb.ChartSetting;(function(){var na=com.kingdee.bos.qing.common;Gb=na.DomUtil;Vb=na.DateFormater;na=com.kingdee.bos.qing.framework.common;tb=na.MultilanguageManager.createPackageAccessor(Jb);
na=com.kingdee.bos.qing.ui.component;lb=na.AbstractModalDialog;Na=na.Menu;$a=na.MenuModel;La=na.CheckBox;ab=na.RadioButton;ma=na.DynamicScroller;ha=na.RegionSlider;ta=na.SplitPane;ka=na.TextField;p=na.MessageDialog;ra=na.Label;ea=na.WorkButton;Ca=na.SearchBox;na=com.kingdee.bos.qing.common.ui;U=na.CommonIconUtil;na=com.kingdee.bos.qing.exportmanage;E=na.ExportMenuCreator;na=com.kingdee.bos.qing.core;u=na.Icons;g=na.LinkageRegister;d=na.ErrorCodeParser;na=com.kingdee.bos.qing.core.model;e=na.MetaField;
c=na.ModelPage;b=na.AbstractAnalyticalField;q=na.AbstractFilterPreparedModel;t=na.AbstractFilter;w=na.DiscreteFilter;x=na.ContinuousFilter;A=na.ContinuousDateFilter;N=na.LinkTargets;na=com.kingdee.bos.qing.longer.model;ba=na.AnalyticalPreferences;ca=na.AnalyticalModel;M=na.AnalyticalField;ia=na.AnalyticalFieldSet;sa=na.MarkFieldSet;mb=na.FilterFieldSet;na=com.kingdee.bos.qing.core.controller;Wa=na.ActionChangeProperty;xb=na.ActionChangeRole;gb=na.ActionChangePartValue;fb=na.ActionChangeFilterCtrlType;
Da=na.ActionAddSelectedValueForDiscreteFilter;Y=na.ActionChangeSelectedValueForDiscreteFilter;z=na.ActionChangeValueForContinuousFilter;na=com.kingdee.bos.qing.longer.controller;D=na.ActionAddAnalyticalField;I=na.ActionReplaceAnalyticalField;P=na.ActionRemoveAnalyticalField;O=na.ActionKeepLogicalOrder;R=na.ActionSetMarkType;Z=na.ActionClearModel;G=na.ActionSetFilter;J=na.ActionExpandHierachy;ja=na.ActionCollapseHierachy;Q=na.ActionSetAllSelectedForDiscreteFilter;T=na.ActionAppendAllNecessaryDimensions;
na=com.kingdee.bos.qing.core.ui;za=na.ViewConfig;da=na.AbstractDesignerView;Aa=na.MetaPane;Za=na.AdjustableLane;sb=na.DragDropHandler;Ab=na.MenuUtil;xa=na.NumberFormatSetting;Ra=na.DateFormatSetting;kb=na.NumberFilterAggregationSelector;Db=na.DateFilterPartValueSelector;Ub=na.AbstractPopupFilterPane;$b=na.ContinuousColorSettingDialog})();S.INVALID_HEIGHT=60;S.create=function(na,Fa){if(na instanceof w)var Qa=na.getAssociatedField().getMetaField().isParentChildDimension()?new Ma:new Ja;else if(na instanceof
x)Qa=new ua;else if(na instanceof A)Qa=new W;else throw Error("Modify here.");Qa.setDependence(Fa);Qa.setFilter(na);return Qa}})();(function(){function Ya(){var a=this,l=[],n=[];this.append=function(f,m){l.push(f);n.push(m)};this.isContainKey=function(f){for(var m=0;m<l.length;m++)if(f==l[m])return!0;return!1};this.isContainKeys=function(f){for(var m=0;m<f.length;m++)if(a.isContainKey(f[m]))return!0;return!1};this.isContainItemModelSet=function(f){for(var m=0;m<n.length;m++)if(n[m]&&f==n[m].getItemModelSet())return!0;return!1};this.getTargetItemModels=function(f,m){for(var h=0;h<l.length;h++)if(m==l[h]&&n[h]&&f==n[h].getItemModelSet())return n[h].getItemModels();
return null};this.isContainChartPropertyKey=function(){for(var f=0;f<l.length;f++)if(l[f].substring(0,2)==qa.Prefix)return!0;return!1};this.isRepaintNeeded=function(){for(var f=0;f<l.length;f++){var m=l[f];if(m.substring(m.length-4)==qa.NeedRepaint)return!0}return!1};this.isExecuteNeeded=function(){for(var f=0;f<l.length;f++){var m=l[f];if(m.substring(m.length-4)==qa.NeedExecute)return!0}return!1};this.toString=function(){return l.join(";")+" <---\x3e "+n.join(";")}}function Lb(a,l){var n;this.getItemModelSet=
function(){return a};this.getItemModels=function(){return l};this.setSubEventTarget=function(f){n=f};this.getSubEventTarget=function(){return n};this.toString=function(){return a.constructor.name+(n?"-"+n.toString():"")};this.getSubEventMetaField=function(){return n?n.getSubEventMetaField():null}}function wb(a){this.getSubEventMetaField=function(){return null};this.toString=function(){return a.constructor.name+a.getSquareField().getComplexText()}}function eb(){na.call(this);var a=this,l=this.protectedMethod,
n=new Ra,f,m,h,r;this.getBriefOutputableFieldsModel=function(){var H=a.getChart().getBriefOutputableDimensionsAndMeasures(),C=new Zb;C.setDimensionFields(H[0]);C.setMeasureFields(H[1]);return C};this.addModelChangedListener=function(H){n.addListener(H)};this.removeModelChangedListener=function(H){n.removeListener(H)};var k=function(H){a.checkAllFields();n.fireEvent(function(C){C(H)})},v=function(H,C){l.isListenerDumb()||(m||(m=new Ya),m.append(C,H),H&&H.getSubEventMetaField()?(f&&clearTimeout(f),
f=setTimeout(function(){k(m);m=null},50)):(k(m),m=null))};this.getFilterSet=function(){h||(h=new Yb,h.setItemCountMin(0),h.setItemCountMax(65535),h.addChangedListener(v));return h};this.getChart=function(){r||a.setChart(new gb);return r};this.setChart=function(H){r&&(r.setChangedListener(null),r.awake(!1));if(r=H)r.setChangedListener(v),r.awake(!0);a.checkAllFields();v(null,eb.KEY_CHART_TYPE)};this.getChartTypeName=function(){return a.getChart().getChartTypeName()};this.isExecutableContentEmpty=function(){return a.getChart().isExecutableContentEmpty()};
this.getUsingMetaFields=function(H){var C=ac.createSearchingUsingMetaFieldsTool(H);H=function(aa){C.checkField(aa.getMetaField())};r.lookupAllItemModelSet(H,!0);a.getFilterSet().traversalItems(H);return C.getUsingMetaFields()};this.createDependentMeta=function(H,C){var aa=H.getEliminationKeyMetaFields(),Sa=H.getDimensionNecessityMetaFields();aa=aa.concat(Sa);C=y(H,C,aa);return H.createExecutingCopy(C)};var y=function(H,C,aa){var Sa=ac.createSearchingUsingMetaFieldsTool(H),Ta=function(Ba){Sa.checkField(Ba.getMetaField())};
r.lookupAllItemModelSet(Ta);a.getFilterSet().traversalItems(Ta);r.getChartProperty().lookupAllMetaFieldBinding(function(Ba){(Ba=H.searchMetaField(Ba))&&Sa.checkField(Ba)});if(C)for(Ta=0;Ta<C.length;Ta++){var qb=H.searchMetaField(C[Ta]);qb&&Sa.checkField(qb)}if(aa)for(Ta=0;Ta<aa.length;Ta++)qb=aa[Ta],Sa.checkField(qb);return Sa.getUsingMetaFields()};this.isAnyCalculatedFieldUsed=function(H){var C=!1,aa=function(Sa){Sa=Sa.getMetaField();return!Sa.getFormula()||H&&H!=Sa.getFullName()?!1:C=!0};r.lookupAllItemModelSet(aa);
!C&&a.getFilterSet().traversalItems(aa);return C};this.howManyCalculatedFieldsUsed=function(){var H=0,C=function(aa){aa.getMetaField().getFormula()&&H++};r.lookupAllItemModelSet(C);a.getFilterSet().traversalItems(C);return H};this.checkAllFields=function(){r.lookupAllItemModelSet(L);a.getFilterSet().traversalItems(L);r.checkAllFieldsProblem()};var L=function(H){var C=H.getSquareField();H=H.getMetaField();var aa=H.getTable(),Sa=aa&&aa.searchMetaField(H.getPureName())?!1:!0;aa=new Fa.InvalidPrompt;
aa.setLevel(Fa.InvalidPrompt.LEVEL_META_LOST,Sa);C.setInvalidPrompt(aa);Sa=H.isInvalid()?!0:!1;aa=new Fa.InvalidPrompt;aa.setLevel(Fa.InvalidPrompt.LEVEL_META_INVALID,Sa);C.setInvalidPrompt(aa);aa=H.isRelativeAggregation();Sa=C.getAggregation()==Fa.AGGREGATION_AGG;H=Fa.isAggregationFittedDataType(C.getAggregation(),H.getDataType());H=C.isMeasure()&&(aa&&!Sa||!aa&&Sa||!H);aa=new Fa.InvalidPrompt;aa.setLevel(Fa.InvalidPrompt.LEVEL_AGG,H);C.setInvalidPrompt(aa)},B=function(H){var C={},aa=[],Sa=function(V){V=
V.getSquareField();var K=H?null:V.getId();K?C[K]=!0:aa.push(V)};a.getChart().lookupAllItemModelSet(Sa);a.getFilterSet().traversalItems(Sa);Sa=1;for(var Ta=0;Ta<aa.length;Ta++){var qb=aa[Ta],Ba=null;do Ba="field"+Sa++;while(C[Ba]);qb.setId(Ba);C[Ba]=!0}};this.toJsonObject=function(){B(!0);var H={};H.filters=h.toJsonObject(!0);var C=r.toJsonObject();C.chartType=r.getChartTypeName();H.chart=C;l.sharedToJsonObject(H);return H};this.fromJsonObject=function(H,C){var aa=H.filters;aa&&a.getFilterSet().fromJsonObject(S,
aa,C,!0);aa=H.chart;var Sa=F(aa.chartType);Sa.fromJsonObject(aa,C);a.setChart(Sa);B(!1);l.sharedFromJsonObject(H)};var F=function(H){switch(H){case eb.ChartType_KPI:return new A;case eb.ChartType_Pie:return new ba;case eb.ChartType_Ring:return new ca;case eb.ChartType_Rose:return new M;case eb.ChartType_Column:return new gb;case eb.ChartType_StackedColumn:return new fb;case eb.ChartType_PercentStackedColumn:return new Da;case eb.ChartType_Bar:return new mb;case eb.ChartType_StackedBar:return new Wa;
case eb.ChartType_PercentStackedBar:return new xb;case eb.ChartType_Line:return new Y;case eb.ChartType_Area:return new z;case eb.ChartType_PercentArea:return new D;case eb.ChartType_Map:return new I;case eb.ChartType_GIS:return new P;case eb.ChartType_Radar:return new O;case eb.ChartType_ProgressBar:return new Z;case eb.ChartType_ProgressColumn:return new G;case eb.ChartType_ProgressCircle:return new J;case eb.ChartType_Dial:return new ja;case eb.ChartType_Composite:return new Q;case eb.ChartType_Grid:return new T;
case eb.ChartType_CustomList:return new za;case eb.ChartType_Waterfall:return new da;case eb.ChartType_Funnel:return new Aa;case eb.ChartType_Scatter:return new Za;case eb.ChartType_RectTree:return new sb;case eb.ChartType_Sunburst:return new Ab;default:throw Error("Modify here.");}}}function pb(){Mb.call(this);Fa.call(this);var a=this,l=this.protectedMethod;this.getSquareField=function(){return a};this.protectedCreateInstance=function(){return new pb};this.bindMetaEvent=function(){l.bindMetaEvent()};
this.setDiscreteColor=function(n){l.innerSetDiscreteColor(n)}}function zb(){var a=this,l=0,n=1,f=[],m=new Ra;this.setItemCountMin=function(k){l=k};this.getItemCountMin=function(){return l};this.setItemCountMax=function(k){n=k};this.getItemCountMax=function(){return n};this.addChangedListener=function(k){m.addListener(k)};this.removeChangedListener=function(k){m.removeListener(k)};var h=function(k,v){m.fireEvent(function(y){y(k,v)})};this.getItemModelCount=function(){return f.length};this.getItemModel=
function(k){return f[k]};this.goodbyeItemModel=function(k){(k=f[k])&&k.clearListener();return k};this.getItemModelIndex=function(k){for(var v=0;v<f.length;v++)if(f[v]==k)return v;return-1};this.traversalItems=function(k){for(var v=!1,y=0;y<f.length&&!(v=k(f[y]));y++);return v};this.awake=function(k,v){v.removePropertyChangeListener(r);k&&v.addPropertyChangeListener(r)};this.addItemModel=function(k){f.push(k);k.addPropertyChangeListener(r);k.bindMetaEvent();h(new Lb(a,[k]),zb.KEY_ADD)};this.insertItemModel=
function(k,v){f.splice(v,0,k);k.addPropertyChangeListener(r);k.bindMetaEvent();h(new Lb(a,[k]),zb.KEY_ADD)};this.appendItemModels=function(k){for(var v=0;v<k.length;v++){var y=k[v];f.push(y);y.addPropertyChangeListener(r);y.bindMetaEvent()}h(new Lb(a,k),zb.KEY_ADD)};this.removeItemModels=function(k){for(var v=0;v<k.length;v++){var y=k[v];y.clearListener();y=a.getItemModelIndex(y);f.splice(y,1)}h(new Lb(a,k),zb.KEY_REMOVE)};this.removeItemModel=function(k){k.clearListener();var v=a.getItemModelIndex(k);
f.splice(v,1);h(new Lb(a,[k]),zb.KEY_REMOVE)};this.moveItemModel=function(k,v){if(v>k){--v;var y=k}else y=k+1;k=f.splice(k,1)[0];f.splice(v,0,k);h(new Lb(a,[k]),zb.KEY_MOVE);return[v,y]};var r=function(k,v){var y=new Lb(a);y.setSubEventTarget(k);h(y,v)};this.getInitialDateHierachyForField=function(k,v){if(k.getMetaField().getDataType()!=cc.DT_DATE||k.getPartValue())return null;var y=[Fa.PARTVALUE_DATE_YEAR,Fa.PARTVALUE_DATE_QUARTER,Fa.PARTVALUE_DATE_MONTH,Fa.PARTVALUE_DATE_DAY];for(--v;0<=v;v--){var L=
f[v];if(L.getMetaField()==k.getMetaField()){L=L.getPartValue();for(var B=y.length-2;0<=B;B--)if(y[B]==L)return y[B+1]}}return Fa.PARTVALUE_DATE_YEAR};this.toJsonObject=function(k){for(var v=[],y=0;y<f.length;y++)v.push(f[y].toJsonObject());return k?v:{fields:v}};this.fromJsonObject=function(k,v,y,L){v=v?L?v:v.fields:[];f=[];for(L=0;L<v.length;L++){var B=v[L],F=new k;F.fromJsonObject(B,y);F.bindMetaEvent();F.addPropertyChangeListener(r);f.push(F)}}}function Yb(){zb.call(this);var a=this;this.copyFiltersForSetting=
function(){for(var l=[],n=0;n<a.getItemModelCount();n++){var f=a.getItemModel(n);f.isOutsideAllowed()&&(f=f.getUsableFilter().copyForSetting(),l.push(f))}return l};this.applyFiltersFromSetting=function(l){for(var n=0,f=0;f<a.getItemModelCount();f++){var m=a.getItemModel(f);if(m.isOutsideAllowed()){m=m.getUsableFilter();var h=l[n++];m.applyFromSetting(h)}}};this.toInsteadJson=function(l){for(var n=0,f=[],m=0;m<a.getItemModelCount();m++){var h=a.getItemModel(m);if(h.isOutsideAllowed()){var r=l[n++];
f.push(h.toInsteadJson(r))}else f.push(h.toJsonObject())}return f}}function Mb(){this.getMetaField=function(){throw Error("Override me.");};this.getSquareField=function(){throw Error("Override me.");};this.addPropertyChangeListener=function(a){throw Error("Override me.");};this.removePropertyChangeListener=function(a){throw Error("Override me.");};this.clearListener=function(){throw Error("Override me.");};this.toJsonObject=function(){throw Error("Override me.");};this.fromJsonObject=function(a,l){throw Error("Override me.");
};this.bindMetaEvent=function(){throw Error("Override me.");}}function S(){Mb.call(this);var a=this,l=new Ra,n,f,m=!1;this.getMetaField=function(){return n.getMetaField()};this.setSquareField=function(k){n=k};this.getSquareField=function(){return n};this.setFilter=function(k){f&&f.removeValueChangedListener(r);(f=k)&&f.addValueChangedListener(r)};this.getFilter=function(){return f};this.getUsableFilter=function(){f.setAssociatedField(n);return f};this.setOutsideAllowed=function(k){m=k};this.isOutsideAllowed=
function(){return m};this.addPropertyChangeListener=function(k){l.addListener(k)};this.removePropertyChangeListener=function(k){l.removeListener(k)};this.clearListener=function(){l.removeAllListener()};var h=function(k){var v=new wb(a);l.fireEvent(function(y){y(v,k)})},r=function(k){h(S.KEY_FILTER_VALUE)};this.toInsteadJson=function(k){var v=a.toJsonObject();v.filter=k.toJsonObject();return v};this.toJsonObject=function(){var k={};k.field=n.toJsonObject();k.filter=f.toJsonObject();m&&(k.outsideAllowed=
!0);return k};this.fromJsonObject=function(k,v){var y=k.field,L=new pb;L.fromJsonObject(y,v);a.setSquareField(L);v=k.filter;switch(v.name){case Qa.FILTER_NAME:f=new Qa;break;case Ua.FILTER_NAME:f=new Ua;break;case Ka.FILTER_NAME:f=new Ka;break;default:throw Error("Unknown filter name.");}f.fromJsonObject(v);f.addValueChangedListener(r);m=k.outsideAllowed?!0:!1};this.bindMetaEvent=function(){}}function Ma(){var a,l,n=!1;this.addOneLevel=function(f,m){a&&l||(a=[],l=[]);a.push(f);l.push(m)};this.setValueCount=
function(f){0<=f&&f<a.length&&(a.length=f,l.length=f)};this.getValueCount=function(){return a?a.length:0};this.getValueByIndex=function(f){return a[f]};this.getTextByIndex=function(f){return l[f]};this.isPcdNextLevel=function(){return n};this.setPcdNextLevel=function(f){n=f};this.toJsonObject=function(){var f={};f.values=a;f.texts=l;f.pcdNextLevel=n;return f};this.fromJsonObject=function(f){a=f.values;l=f.texts;n=f.pcdNextLevel?!0:!1}}function Ja(){var a=this,l=[],n=0,f=!1,m=new Ra;this.addStateChangedListener=
function(r){m.addListener(r)};this.removeStateChangedListener=function(r){m.removeListener(r)};var h=function(){m.fireEvent(function(r){r(a)})};this.updateItemCountLimited=function(r){f=!1;for(var k=0,v=0,y=r.getItemModelCount();v<y;v++){if(r.getItemModel(v).isInvalid()){f=!0;break}k++}n=k};this.getCurrentRollInFieldCount=function(){var r=l.length;0<r&&l[r-1].isPcdNextLevel()&&r--;return r};this.isRollInNextFieldEnabled=function(){return a.getCurrentRollInFieldCount()<n};this.isRollOutEnabled=function(){return 0<
l.length&&!f};this.getItemCount=function(){return l.length};this.getItem=function(r){return l[r]};this.updateItems=function(r){var k=l;l=r;return k};this.backupItems=function(){for(var r=[],k=0;k<l.length;k++){for(var v=new Ma,y=l[k],L=0;L<y.getValueCount();L++)v.addOneLevel(y.getValueByIndex(L),y.getTextByIndex(L)),v.setPcdNextLevel(y.isPcdNextLevel());r.push(v)}return r};this.restoreItems=function(r){l=r;h()};this.rollIn=function(r){for(var k=0;k<r.length;k++){var v=r[k];v.isPcdNextLevel()?l.push(v):
a.isRollInNextFieldEnabled()&&l.push(v)}h()};this.rollOut=function(r,k){if(0<k){var v=l[r];v.setValueCount(k);v.setPcdNextLevel(!0);l.length=r+1}else l.length=r;h()}}function ua(){var a=320,l=190,n=20,f=20,m=40,h=20;this.isFullArea=function(){return 0>=a||0>=l};this.getWidth=function(){return a};this.getHeight=function(){return l};this.getPaddingLeft=function(){return n};this.getPaddingRight=function(){return f};this.getPaddingTop=function(){return m};this.getPaddingBottom=function(){return h};this.toJsonObject=
function(){var r={};r.width=a;r.height=l;r.paddingLeft=n;r.paddingRight=f;r.paddingTop=m;r.paddingBottom=h;return r};this.fromJsonObject=function(r){a=r.width;l=r.height;n=r.paddingLeft;f=r.paddingRight;m=r.paddingTop;h=r.paddingBottom}}function W(){var a=this,l=new Ra,n,f=!1,m=!1,h,r=W.ShowLegend_Right,k=W.ShowDataEmptyTips_Auto,v,y,L,B,F=!0;this.addChangedListener=function(C){l.addListener(C)};this.removeChangedListener=function(C){l.removeListener(C)};var H=function(C,aa){l.fireEvent(function(Sa){Sa(C,
aa)})};this.lookupAllMetaFieldBinding=function(C){};this.setTitle=function(C){n=C;H(W.KEY_TITLE,n)};this.getTitle=function(){return n};this.setShowLabel=function(C){f=C;H(W.KEY_SHOW_LABEL,f)};this.isShowLabel=function(){return f};this.setDataLabelOverlappable=function(C){m=C;H(W.KEY_LABEL_OVERLAPPABLE,m)};this.isDataLabelOverlappable=function(){return m};this.setLabelFormat=function(C){h=C;H(W.KEY_LABEL_FORMAT,h)};this.getLabelFormat=function(){return h};this.setShowLegend=function(C){r=C;H(W.KEY_SHOW_LEGEND,
r)};this.getShowLegend=function(){return r};this.setShowDataEmptyTips=function(C){k=C;H(W.KEY_SHOW_DATA_EMPTY_TIPS,k)};this.getShowDataEmptyTips=function(){return k};this.setDescription=function(C){v=C;H(W.KEY_DESCRIPTION,v)};this.getDescription=function(){return v};this.setLinkTargets=function(C){y=C;H(W.KEY_LINKAGE,y)};this.getLinkTargets=function(){return y};this.setStyleScripts=function(C){L=C;H(W.KEY_STYLE_SCRIPTS,L)};this.getStyleScripts=function(){return L};this.setPalette=function(C){B=C;
H(W.KEY_PALETTE,B)};this.getPalette=function(){return B};this.setAnimation=function(C){F=C;H(W.KEY_ANIMATION,F)};this.isAnimation=function(){return F};this.moveOut=function(C){C.title=n;C.labelOverlappable=m;C.labelFormat=h;C.showDataEmptyTips=k;C.description=v;C.linkTargets=y;C.palette=B;C.animation=F;var aa=a.protectedCustomMovingKey();C[aa[0]?aa[0]:"showLabel"]=f;C[aa[1]?aa[1]:"showLegend"]=r;a.protectedMoveOut(C)};this.moveIn=function(C){n=C.title;m=C.labelOverlappable;h=C.labelFormat;k=C.showDataEmptyTips;
v=C.description;F=C.animation;var aa=C.linkTargets;aa&&(y=aa);(aa=C.palette)&&(B=aa);aa=a.protectedCustomMovingKey();var Sa=C[aa[0]?aa[0]:"showLabel"];void 0!==Sa&&(f=Sa);aa=C[aa[1]?aa[1]:"showLegend"];void 0!==aa&&(r=aa);a.protectedMoveIn(C)};this.protectedCustomMovingKey=function(){return["showLabel","showLegend"]};this.protectedMoveOut=function(C){throw Error("Override me");};this.protectedMoveIn=function(C){throw Error("Override me");};this.toJsonObject=function(C){var aa={};aa.type=a.protectedGetTypeForJson();
aa.title=n;f&&(aa.showLabel=!0);m&&(aa.labelOverlappable=!0);F&&(aa.animation=!0);aa.labelFormat=h;aa.showLegend=r;aa.showDataEmptyTips=k;aa.description=v;aa.styleScripts=L;B&&(aa.palette=B.toJsonObject());y&&C.isLinkageSupported()&&(aa.linkTargets=y.toJsonObject());a.protectedToJsonObject(aa,C);return aa};this.fromJsonObject=function(C,aa){n=C.title;f=C.showLabel?!0:!1;m=C.labelOverlappable?!0:!1;F=C.animation?!0:!1;h=C.labelFormat;r=C.showLegend;k=C.showDataEmptyTips;v=C.description;L=C.styleScripts;
B=null;var Sa=C.palette;Sa&&(B=new db,B.fromJsonObject(Sa));y=null;(Sa=C.linkTargets)&&aa.isLinkageSupported()&&(y=new Fb,y.fromJsonObject(Sa));a.protectedFromJsonObject(C,aa)};this.protectedGetTypeForJson=function(){throw Error("Override me");};this.protectedToJsonObject=function(C,aa){throw Error("Override me");};this.protectedFromJsonObject=function(C,aa){throw Error("Override me");};this.toRenderAttr=function(C){C.setShowDataLabel(f);C.setDataLabelOverlappable(m);C.setDataLabelFormat(h);C.setAnimation(F);
switch(r){case W.ShowLegend_Right:var aa=Db.ShowLegend_Right;break;case W.ShowLegend_Bottom:aa=Db.ShowLegend_Bottom;break;default:aa=Db.ShowLegend_Non}C.setShowLegend(aa);a.protectedToRenderAttr(C)};this.protectedToRenderAttr=function(C){throw Error("Override me");};this.protectedMethod={fireChangedEvent:H,toRenderAttrForRulerScale:function(C){switch(C){case W.RulerScale_Linear:C=Db.RulerScale_Linear;break;case W.RulerScale_Log:C=Db.RulerScale_Log;break;default:C=Db.RulerScale_Auto}return C},toRenderAttrForRulerStart:function(C){return C==
W.RulerStart_Nonzero?Db.RulerStart_Nonzero:Db.RulerStart_Zero}}}function fa(){var a=this.protectedMethod,l,n=null;this.setLegendFormat=function(f){l=f;a.fireChangedEvent(W.KEY_LEGEND_FORMAT,l)};this.getLegendFormat=function(){return l};this.setContinuousColor=function(f){n=f;a.fireChangedEvent(W.KEY_CONTINUOUS_COLOR,n)};this.getContinuousColor=function(){return n};a.moveInWithMixColorMode=function(f){var m=f.legendFormat;m&&(l=m);n=f.continuousColor};a.moveOutWithMixColorMode=function(f){f.legendFormat=
l;f.continuousColor=n};a.toJsonObjectWithMixColorMode=function(f,m){l&&(f.legendFormat=l);n&&(f.continuousColor=n.toJsonObject())};a.fromJsonObjectWithMixColorMode=function(f,m){l=f.legendFormat;n=null;if(f=f.continuousColor)n=new ub,n.fromJsonObject(f)}}function Ea(){var a=this.protectedMethod,l=null;this.setTooltipsAutoDisplay=function(n){l=n;a.fireChangedEvent(W.KEY_TOOLTIPS_AUTO_DISPLAY,l)};this.getTooltipsAutoDisplay=function(){return l};a.moveOutWithTooltipsAutoDisplay=function(n){n.tooltipsAutoDisplay=
l};a.moveInWithTooltipsAutoDisplay=function(n){l=n.tooltipsAutoDisplay};a.toJsonObjectWithTooltipsAutoDisplay=function(n){l&&(n.tooltipsAutoDisplay=l.toJsonObject())};a.fromJsonObjectWithTooltipsAutoDisplay=function(n){l=null;if(n=n.tooltipsAutoDisplay)l=new Va,l.fromJsonObject(n)};a.toRenderAttrWithTooltipsAutoDisplay=function(n){n.setTooltipsSelfDrivingDuration(l?l.getDuration():-1)}}function Va(){var a=2;this.setDuration=function(l){a=l};this.getDuration=function(){return a};this.toJsonObject=
function(){var l={};l.duration=a;return l};this.fromJsonObject=function(l){a=l.duration}}function Oa(){var a,l=!1,n=!1,f=null,m=!1,h=-1,r=!1;this.setChangedListener=function(k){a=k};this.setOrder=function(k,v){l=k;n=v;a()};this.isOrderByMeasure=function(){return l};this.isAsc=function(){return n};this.setSortAccording=function(k){f=k;a()};this.getSortAccording=function(){return f};this.setTopnSwitch=function(k){(m=k)&&-1==h&&(h=8);a()};this.isTopnSwitch=function(){return m};this.setTopnItems=function(k){h=
k;m=0>=h?!1:!0;a()};this.getTopnItems=function(){return h};this.setOthersAsAnItem=function(k){r=k;a()};this.isOthersAsAnItem=function(){return r};this.toJsonObject=function(){var k={};k.order=l?n?"ASC":"DESC":"NUL";k.according=f?f.toJsonObject():null;k.topN=m?h:-1;k.others=r;return k};this.fromJsonObject=function(k){var v=k.order;l="ASC"==v||"DESC"==v?!0:!1;n="ASC"==v?!0:!1;f=null;if(v=k.according)f=new wa,f.fromJsonObject(v);h=(v=k.topN)?v:-1;m=0>=h?!1:!0;r=k.others?!0:!1}}function wa(){var a=this,
l,n,f;this.setupMeasureIndexMode=function(m){l=m;f=n=null};this.setupAnyFieldMode=function(m,h){l=-1;n=m;f=h};this.isMeasureIndexMode=function(){return"number"==typeof l&&0<=l};this.isAnyFieldMode=function(){return n&&f};this.getMeasureIndex=function(){return l};this.getMetaFieldFullName=function(){return n};this.getAggregation=function(){return f};this.toJsonObject=function(){var m={};a.isMeasureIndexMode()&&(m.measure=l);a.isAnyFieldMode()&&(m.metaField=n,m.aggregation=f);return m};this.fromJsonObject=
function(m){var h=m.measure;l=h||0===h?h:-1;n=m.metaField;f=m.aggregation}}function Ga(){function a(){var k,v,y,L;this.isLoading=function(){return k?!1:!0};this.parseJson=function(B){k=B?B.content:"";v=(B=B?B.backImage:null)?B.url:null;y=B?B.pageWidth:0;L=B?B.pageHeight:0};this.getContent=function(){return k};this.getBackImageUrl=function(){return v};this.getPageWidth=function(){return y};this.getPageHeight=function(){return L}}W.call(this);Ea.call(this);fa.call(this);var l=this,n=this.protectedMethod,
f,m,h=null,r;this.setOutsideReference=function(k){h=null;f=k;n.fireChangedEvent(Ga.KEY_TEMPLATE_REF,f)};this.getOutsideReference=function(){return f};this.setDimensionToRegion=function(k){!m&&(m=new Ia);m.setDimensionToRegion(k);n.fireChangedEvent(Ga.KEY_REGION_MAPPING,m)};this.getDimensionToRegion=function(){!m&&(m=new Ia);return m.getDimensionToRegion()};this.rtTemplateLoaded=function(k){h=new a;h.parseJson(k);k&&(r(),r=null)};this.askRtTemplateNeedReload=function(k){var v=h?!1:!0;v&&(r=k);return v};
this.askRtTemplateLoading=function(k){var v=h&&h.isLoading();v&&(r=k);return v};this.protectedMoveOut=function(k){k.mapOutsideReference=f;k.mapRegionMapping=m;k.mapRtTemplate=h;n.moveOutWithTooltipsAutoDisplay(k);n.moveOutWithMixColorMode(k)};this.protectedMoveIn=function(k){var v=k.mapOutsideReference;v&&(f=v);(v=k.mapRegionMapping)&&(m=v);(v=k.mapRtTemplate)&&(h=v);n.moveInWithTooltipsAutoDisplay(k);n.moveInWithMixColorMode(k)};this.protectedGetTypeForJson=function(){return"Map"};this.protectedToJsonObject=
function(k,v){f&&(k.reference=f.toJsonObject());if(m){var y={};m.toJsonObject(y);k.regionMapping=y}n.toJsonObjectWithTooltipsAutoDisplay(k);n.toJsonObjectWithMixColorMode(k,v)};this.protectedFromJsonObject=function(k,v){f=null;var y=k.reference;y&&(f=new Ob,f.fromJsonObject(y));m=null;if(y=k.regionMapping)m=new Ia,m.fromJsonObject(y);h=null;n.fromJsonObjectWithTooltipsAutoDisplay(k);n.fromJsonObjectWithMixColorMode(k,v)};this.protectedToRenderAttr=function(k){l.rtTemplateToRenderAttr(k);k.setRegionMapping(m);
n.toRenderAttrWithTooltipsAutoDisplay(k)};this.rtTemplateToRenderAttr=function(k){k.setTemplateContent(h?h.getContent():"");k.setBackImageUrl(h?h.getBackImageUrl():null);k.setPageSize(h?h.getPageWidth():0,h?h.getPageHeight():0)}}function Ia(){var a,l;this.setDimensionToRegion=function(n){a=n};this.getDimensionToRegion=function(){return a};this.toJsonObject=function(n){a&&(n.mapping=a);if(l){var f={},m;for(m in l){var h={};l[m].toJsonObject(h);f[m]=h}n.subLevels=f}};this.fromJsonObject=function(n){a=
n.mapping;n=n.subLevels;for(var f in n){var m=n[f],h=new Ia;h.fromJsonObject(m);!l&&(l={});l[f]=h}}}function hb(){W.call(this);var a=this.protectedMethod,l=hb.USAGE_MARKER,n,f=108.9535,m=34.2657,h=4,r;this.setUsage=function(k){l=k;a.fireChangedEvent(hb.KEY_USAGE,l)};this.getUsage=function(){return l};this.setThird=function(k){n=k;a.fireChangedEvent(hb.KEY_THIRD,n)};this.getThird=function(){return n};this.setCustomScript=function(k){r=k;a.fireChangedEvent(hb.KEY_SCRIPT,r)};this.getCustomScript=function(){return r};
this.setInitialContext=function(k,v,y){f=k;m=v;h=y};this.getInitialLongitude=function(){return f};this.getInitialLatitude=function(){return m};this.getInitialZoom=function(){return h};this.protectedMoveOut=function(k){k.gisUsage=l;k.gisThird=n;k.gisCustomScript=r;k.gisInitialContext=[f,m,h]};this.protectedMoveIn=function(k){var v=k.gisUsage;v&&(l=v);(v=k.gisThird)&&(n=v);(v=k.gisCustomScript)&&(r=v);if(k=k.gisInitialContext)f=k[0],m=k[1],h=k[2]};this.protectedGetTypeForJson=function(){return"GIS"};
this.protectedToJsonObject=function(k){k.usage=l;k.third=n;k.longitude=1E-6*parseInt(1E6*f+.5);k.latitude=1E-6*parseInt(1E6*m+.5);k.zoom=h;k.customScript=r};this.protectedFromJsonObject=function(k){l=k.usage;n=k.third;f=parseFloat(k.longitude);m=parseFloat(k.latitude);h=k.zoom;r=k.customScript};this.protectedToRenderAttr=function(k){k.setPropertyDirty(!0);k.setLongitude(f);k.setLatitude(m);k.setZoom(h);k.setUsage(l);k.setCustomScript(r)}}function ib(){W.call(this);var a=this,l=this.protectedMethod,
n,f,m,h=0,r;this.setCaption=function(k){n=k;l.fireChangedEvent(ib.KEY_CAPTION,n)};this.getCaption=function(){return n};this.setPrimaryString=function(k){f=k;l.fireChangedEvent(ib.KEY_P_DISPLAY,f)};this.getPrimaryString=function(){return f};this.setSecondaryString=function(k){m=k;l.fireChangedEvent(ib.KEY_S_DISPLAY,m)};this.getSecondaryString=function(){return m};this.setDataEmptyInstead=function(k){h=k;l.fireChangedEvent(ib.KEY_P_DATA_EMPTY_INSTEAD,h)};this.getDataEmptyInstead=function(){return h};
this.setCustomStyles=function(k){r=k;l.fireChangedEvent(ib.KEY_P_CUSTOM_STYLES,r)};this.getCustomStyles=function(){return r};this.getPrimaryPostfix=function(){if(f){var k=f.indexOf("${0}$");return 0>k?f:f.substring(k+5)}return""};this.setPrimaryPostfix=function(k){a.setPrimaryString("${0}$"+(k?k:""))};this.getSecondaryPrefix=function(){if(m){var k=m.indexOf("${0}$");return 0>k?"":m.substring(0,k)}return""};this.setSecondaryPrefix=function(k){a.setSecondaryString((k?k:"")+"${0}$"+a.getSecondaryPostfix())};
this.getSecondaryPostfix=function(){if(m){var k=m.indexOf("${0}$");return 0>k?m:m.substring(k+5)}return""};this.setSecondaryPostfix=function(k){a.setSecondaryString(a.getSecondaryPrefix()+"${0}$"+(k?k:""))};this.protectedMoveOut=function(k){k.caption=n;k.primaryString=f;k.secondaryString=m;k.dataEmptyInstead=h;k.kpiCustomStyles=r;k.kpiStyleScripts=a.getStyleScripts()};this.protectedMoveIn=function(k){var v=k.caption;v&&(n=v);(v=k.primaryString)&&(f=v);(v=k.secondaryString)&&(m=v);v=k.dataEmptyInstead;
void 0!==v&&(h=v);(v=k.kpiCustomStyles)&&(r=v);k.kpiStyleScripts&&a.setStyleScripts(k.kpiStyleScripts)};this.protectedGetTypeForJson=function(){return"KPI"};this.protectedToJsonObject=function(k){n&&(k.caption=n);f&&(k.primaryString=f);m&&(k.secondaryString=m);r&&(k.customStyles=r.toJsonObject());k.primaryInstead=h};this.protectedFromJsonObject=function(k){n=k.caption;f=k.primaryString;m=k.secondaryString;var v=parseFloat(k.primaryInstead);!isNaN(v)&&(h=v);r=null;if(k=k.customStyles)r=new nb,r.fromJsonObject(k)};
this.protectedToRenderAttr=function(k){}}function nb(){var a=this,l=new ob,n=new ob,f=new ob,m=new ob,h=new ob;this.getCaptionStyleItem=function(){return l};this.getPrimaryValueStyleItem=function(){return n};this.getPrimaryTextStyleItem=function(){return f};this.getSecondaryValueStyleItem=function(){return m};this.getSecondaryTextStyleItem=function(){return h};this.copy=function(){var y=new nb;y.fromJsonObject(a.toJsonObject());return y};this.isColorEmpty=function(){return r("getColor")};this.separateColor=
function(){return k("setColor","getColor")};this.mergeColorFrom=function(y){v(y,"setColor","getColor")};this.isFontEmpty=function(){return r("getFontSize")};this.separateFont=function(){return k("setFontSize","getFontSize")};this.mergeFontFrom=function(y){v(y,"setFontSize","getFontSize")};this.isAlignEmpty=function(){return r("getAlign")};this.separateAlign=function(){return k("setAlign","getAlign")};this.mergeAlignFrom=function(y){v(y,"setAlign","getAlign")};var r=function(y){return l[y]()||n[y]()||
f[y]()||m[y]()||h[y]()?!1:!0},k=function(y,L){if(r(L))return null;var B=new nb;B.getCaptionStyleItem()[y](l[L]());B.getPrimaryValueStyleItem()[y](n[L]());B.getPrimaryTextStyleItem()[y](f[L]());B.getSecondaryValueStyleItem()[y](m[L]());B.getSecondaryTextStyleItem()[y](h[L]());return B},v=function(y,L,B){l[L](y?y.getCaptionStyleItem()[B]():null);n[L](y?y.getPrimaryValueStyleItem()[B]():null);f[L](y?y.getPrimaryTextStyleItem()[B]():null);m[L](y?y.getSecondaryValueStyleItem()[B]():null);h[L](y?y.getSecondaryTextStyleItem()[B]():
null)};this.toJsonObject=function(){var y={};y.c=l.toJsonObject();y.pv=n.toJsonObject();y.pt=f.toJsonObject();y.sv=m.toJsonObject();y.st=h.toJsonObject();return y};this.fromJsonObject=function(y){l.fromJsonObject(y.c);n.fromJsonObject(y.pv);f.fromJsonObject(y.pt);m.fromJsonObject(y.sv);h.fromJsonObject(y.st)}}function bb(){W.call(this);var a=this.protectedMethod,l=this,n=!0,f,m=!1,h,r=W.RulerScale_Linear,k,v,y=W.RulerStart_Zero,L,B;this.lookupAllMetaFieldBinding=function(F){if(n&&B&&B.getSortAccording()){var H=
B.getSortAccording().getMetaFieldFullName();H&&F(H)}};this.setSortSupported=function(F){n=F};this.setXUnitText=function(F){f=F;a.fireChangedEvent(la.KEY_X_UNIT_TEXT,f)};this.getXUnitText=function(){return f};this.setXShowAssistantLine=function(F){m=F;a.fireChangedEvent(la.KEY_X_ASSISTANT_LINE,m)};this.isXShowAssistantLine=function(){return m};this.setYUnitText=function(F){h=F;a.fireChangedEvent(la.KEY_Y_UNIT_TEXT,h)};this.getYUnitText=function(){return h};this.setYRulerScale=function(F){r=F;a.fireChangedEvent(la.KEY_Y_RULER_SCALE,
r)};this.getYRulerScale=function(){return r};this.setYRulerScope=function(F){k=F[0];v=F[1];y=F[2];a.fireChangedEvent(la.KEY_Y_RULER_START,y)};this.getYRulerScope=function(){return[k,v,y]};this.setReflines=function(F){L=F;a.fireChangedEvent(la.KEY_REFLINES,L)};this.getReflines=function(){return L};this.getSort=function(){B||(B=new Oa,B.setChangedListener(function(){a.fireChangedEvent(la.KEY_SORT,B)}));return B};this.protectedMoveOut=function(F){F.cAxisUnitText=f;F.cAxisAssistantLine=m;F.pAxisUnitText=
h;F.pAxisRulerScale=r;F.pAxisRulerMin=k;F.pAxisRulerMax=v;F.pAxisRulerStart=y;F.pAxisReflines=L;n&&B&&(F.sort=B.toJsonObject());F.styleScripts=l.getStyleScripts()};this.protectedMoveIn=function(F){var H=F.cAxisUnitText;H&&(f=H);H=F.cAxisAssistantLine;void 0!==H&&(m=H);(H=F.pAxisUnitText)&&(h=H);(H=F.pAxisRulerScale)&&(r=H);(H=F.pAxisRulerMin)&&(k=H);(H=F.pAxisRulerMax)&&(v=H);(H=F.pAxisRulerStart)&&(y=H);(H=F.pAxisReflines)&&(L=H);H=F.sort;n&&H&&l.getSort().fromJsonObject(H);(F=F.styleScripts)&&l.setStyleScripts(F)};
this.protectedGetTypeForJson=function(){return"XSYN"};this.protectedToJsonObject=function(F){f&&(F.xUnitText=f);m&&(F.xShowAssistantLine=m);h&&(F.yUnitText=h);r&&(F.yRulerScale=r);k&&(F.yRulerMin=k);v&&(F.yRulerMax=v);y&&(F.yRulerStart=y);if(L){for(var H=[],C=0;C<L.length;C++)H.push(L[C].toJsonObject());F.reflines=H}n&&B&&(F.sort=B.toJsonObject())};this.protectedFromJsonObject=function(F){f=F.xUnitText;m=F.xShowAssistantLine?!0:!1;h=F.yUnitText;r=(r=F.yRulerScale)?r:W.RulerScale_Linear;k=F.yRulerMin;
v=F.yRulerMax;y=(y=F.yRulerStart)?y:W.RulerStart_Zero;var H=F.reflines;if(H){L=[];for(var C=0;C<H.length;C++){var aa=H[C],Sa=new Xa;Sa.fromJsonObject(aa);L.push(Sa)}}F=F.sort;n&&F&&l.getSort().fromJsonObject(F)};this.protectedToRenderAttr=function(F){F.setXUnitText(f);F.setXShowAssistantLine(m);F.setYUnitText(h);F.setYRulerScale(a.toRenderAttrForRulerScale(r));F.setYRulerMin(k?parseFloat(k):null);F.setYRulerMax(v?parseFloat(v):null);F.setYRulerStart(a.toRenderAttrForRulerStart(y))}}function la(){bb.call(this);
var a=this.protectedMethod,l="#,##0";this.setYFormat=function(k){l=k;a.fireChangedEvent(la.KEY_Y_FORMAT,l)};this.getYFormat=function(){return l};var n=this.protectedMoveOut;this.protectedMoveOut=function(k){n(k);k.pAxisFormat=l};var f=this.protectedMoveIn;this.protectedMoveIn=function(k){f(k);k=k.pAxisFormat;void 0!==k&&(l=k)};var m=this.protectedToJsonObject;this.protectedToJsonObject=function(k){m(k);l&&(k.yFormat=l)};var h=this.protectedFromJsonObject;this.protectedFromJsonObject=function(k){h(k);
l=k.yFormat};var r=this.protectedToRenderAttr;this.protectedToRenderAttr=function(k){r(k);k.setYFormat(l)}}function Jb(){bb.call(this);var a=this.protectedMethod,l="{-2}0.00%";this.setYFormat=function(k){l=k;a.fireChangedEvent(la.KEY_Y_FORMAT,l)};this.getYFormat=function(){return l};var n=this.protectedMoveOut;this.protectedMoveOut=function(k){n(k);k.pAxisFormatForPercent=l};var f=this.protectedMoveIn;this.protectedMoveIn=function(k){f(k);k=k.pAxisFormatForPercent;void 0!==k&&(l=k)};var m=this.protectedToJsonObject;
this.protectedToJsonObject=function(k){m(k);l&&(k.yFormat=l)};var h=this.protectedFromJsonObject;this.protectedFromJsonObject=function(k){h(k);l=k.yFormat};var r=this.protectedToRenderAttr;this.protectedToRenderAttr=function(k){r(k);k.setYFormat(l)}}function pa(){var a=this.protectedMethod,l=!1,n=!1,f=pa.CONNECT_NULL_AS_DIRECT;this.setSmooth=function(m){l=m;a.fireChangedEvent(pa.KEY_SMOOTH,l)};this.isSmooth=function(){return l};this.setPaintingPoint=function(m){n=m;a.fireChangedEvent(pa.KEY_PAINT_POINT,
n)};this.isPaintingPoint=function(){return n};this.setZeroInsteadNull=function(m){f=m?pa.CONNECT_NULL_AS_ZERO:pa.CONNECT_NULL_AS_DIRECTION;a.fireChangedEvent(pa.KEY_CONNECT_NULL_AS,m)};this.isZeroInsteadNull=function(){return f==pa.CONNECT_NULL_AS_ZERO};a.lineMoveOut=function(m){m.lineChart=[l,n,f]};a.lineMoveIn=function(m){if(m=m.lineChart)l=m[0],n=m[1],f=m[2]};a.lineToJsonObject=function(m){m.smooth=l;m.paintPoint=n;m.connectNullAs=f==pa.CONNECT_NULL_AS_ZERO?"ZERO":null};a.lineFromJsonObject=function(m){l=
m.smooth;n=m.paintPoint;f="ZERO"==m.connectNullAs?pa.CONNECT_NULL_AS_ZERO:pa.CONNECT_NULL_AS_DIRECTION};a.lineToRenderAttr=function(m){m.setSmooth(l);m.setPaintingPoint(n);m.setZeroInsteadNull(f==pa.CONNECT_NULL_AS_ZERO)}}function Gb(){la.call(this);pa.call(this);var a=this.protectedMethod,l=!1;this.setTooltipsSorted=function(k){l=k;a.fireChangedEvent(Gb.KEY_TOOLTIPS_SORTED,l)};this.isTooltipsSorted=function(){return l};var n=this.protectedMoveOut;this.protectedMoveOut=function(k){n(k);a.lineMoveOut(k);
k.tooltipsSorted=l};var f=this.protectedMoveIn;this.protectedMoveIn=function(k){f(k);a.lineMoveIn(k);k=k.tooltipsSorted;void 0!==k&&(l=k)};this.protectedGetTypeForJson=function(){return"Line"};var m=this.protectedToJsonObject;this.protectedToJsonObject=function(k){m(k);a.lineToJsonObject(k);k.tooltipsSorted=l};var h=this.protectedFromJsonObject;this.protectedFromJsonObject=function(k){h(k);a.lineFromJsonObject(k);l=k.tooltipsSorted};var r=this.protectedToRenderAttr;this.protectedToRenderAttr=function(k){r(k);
a.lineToRenderAttr(k);k.setTooltipsSorted(l)}}function Vb(){W.call(this);var a=this.protectedMethod,l=this,n=!0,f,m,h=W.RulerScale_Linear,r,k,v=W.RulerStart_Zero,y,L;this.lookupAllMetaFieldBinding=function(B){if(n&&L&&L.getSortAccording()){var F=L.getSortAccording().getMetaFieldFullName();F&&B(F)}};this.setSortSupported=function(B){n=B};this.setYUnitText=function(B){f=B;a.fireChangedEvent(tb.KEY_Y_UNIT_TEXT,f)};this.getYUnitText=function(){return f};this.setXUnitText=function(B){m=B;a.fireChangedEvent(tb.KEY_X_UNIT_TEXT,
m)};this.getXUnitText=function(){return m};this.setXRulerScale=function(B){h=B;a.fireChangedEvent(tb.KEY_X_RULER_SCALE,h)};this.getXRulerScale=function(){return h};this.setXRulerScope=function(B){r=B[0];k=B[1];v=B[2];a.fireChangedEvent(tb.KEY_X_RULER_START,v)};this.getXRulerScope=function(){return[r,k,v]};this.setReflines=function(B){y=B;a.fireChangedEvent(tb.KEY_REFLINES,y)};this.getReflines=function(){return y};this.getSort=function(){L||(L=new Oa,L.setChangedListener(function(){a.fireChangedEvent(tb.KEY_SORT,
L)}));return L};this.protectedMoveOut=function(B){B.cAxisUnitText=f;B.pAxisUnitText=m;B.pAxisRulerScale=h;B.pAxisRulerMin=r;B.pAxisRulerMax=k;B.pAxisRulerStart=v;B.pAxisReflines=y;n&&L&&(B.sort=L.toJsonObject());B.styleScripts=l.getStyleScripts()};this.protectedMoveIn=function(B){var F=B.cAxisUnitText;F&&(f=F);(F=B.pAxisUnitText)&&(m=F);(F=B.pAxisRulerScale)&&(h=F);(F=B.pAxisRulerMin)&&(r=F);(F=B.pAxisRulerMax)&&(k=F);(F=B.pAxisRulerStart)&&(v=F);(F=B.pAxisReflines)&&(y=F);F=B.sort;n&&F&&l.getSort().fromJsonObject(F);
(B=B.styleScripts)&&l.setStyleScripts(B)};this.protectedGetTypeForJson=function(){return"YSXN"};this.protectedToJsonObject=function(B){f&&(B.yUnitText=f);m&&(B.xUnitText=m);h&&(B.xRulerScale=h);r&&(B.xRulerMin=r);k&&(B.xRulerMax=k);v&&(B.xRulerStart=v);if(y){for(var F=[],H=0;H<y.length;H++)F.push(y[H].toJsonObject());B.reflines=F}n&&L&&(B.sort=L.toJsonObject())};this.protectedFromJsonObject=function(B){f=B.yUnitText;m=B.xUnitText;h=(h=B.xRulerScale)?h:W.RulerScale_Linear;r=B.xRulerMin;k=B.xRulerMax;
v=(v=B.xRulerStart)?v:W.RulerStart_Zero;var F=B.reflines;if(F){y=[];for(var H=0;H<F.length;H++){var C=F[H],aa=new Xa;aa.fromJsonObject(C);y.push(aa)}}B=B.sort;n&&B&&l.getSort().fromJsonObject(B)};this.protectedToRenderAttr=function(B){B.setYUnitText(f);B.setXUnitText(m);B.setXRulerScale(a.toRenderAttrForRulerScale(h));B.setXRulerMin(r?parseFloat(r):null);B.setXRulerMax(k?parseFloat(k):null);B.setXRulerStart(a.toRenderAttrForRulerStart(v))}}function tb(){Vb.call(this);var a=this.protectedMethod,l=
"#,##0";this.setXFormat=function(k){l=k;a.fireChangedEvent(tb.KEY_X_FORMAT,l)};this.getXFormat=function(){return l};var n=this.protectedMoveOut;this.protectedMoveOut=function(k){n(k);k.pAxisFormat=l};var f=this.protectedMoveIn;this.protectedMoveIn=function(k){f(k);k=k.pAxisFormat;void 0!==k&&(l=k)};var m=this.protectedToJsonObject;this.protectedToJsonObject=function(k){m(k);l&&(k.xFormat=l)};var h=this.protectedFromJsonObject;this.protectedFromJsonObject=function(k){h(k);l=k.xFormat};var r=this.protectedToRenderAttr;
this.protectedToRenderAttr=function(k){r(k);k.setXFormat(l)}}function lb(){Vb.call(this);var a=this.protectedMethod,l="{-2}0.00%";this.setXFormat=function(k){l=k;a.fireChangedEvent(tb.KEY_X_FORMAT,l)};this.getXFormat=function(){return l};var n=this.protectedMoveOut;this.protectedMoveOut=function(k){n(k);k.pAxisFormatForPercent=l};var f=this.protectedMoveIn;this.protectedMoveIn=function(k){f(k);k=k.pAxisFormatForPercent;void 0!==k&&(l=k)};var m=this.protectedToJsonObject;this.protectedToJsonObject=
function(k){m(k);l&&(k.xFormat=l)};var h=this.protectedFromJsonObject;this.protectedFromJsonObject=function(k){h(k);l=k.xFormat};var r=this.protectedToRenderAttr;this.protectedToRenderAttr=function(k){r(k);k.setXFormat(l)}}function Na(){W.call(this);var a=this.protectedMethod,l=-1,n=Na.SHOW_LABEL_PERCENT,f=!1,m=Na.LegendOrderMode_AUTO;this.setTopN=function(h){l=h;a.fireChangedEvent(Na.KEY_TOPN,l)};this.getTopN=function(){return l};this.setLabelType=function(h){n=h;a.fireChangedEvent(Na.KEY_LABEL_TYPE,
n)};this.getLabelType=function(){return n};this.setIgnoreNegative=function(h){f=h;a.fireChangedEvent(W.KEY_NEGATIVE,f)};this.isIgnoreNegative=function(){return f};this.setLegendOrderMode=function(h){m=h;a.fireChangedEvent(Na.KEY_LEGEND_ORDER_MODE,m)};this.getLegendOrderMode=function(){return m};this.protectedMoveOut=function(h){h.topN=l;h.labelType=n;h.ignoreNegative=f;h.legendOrderMode=m};this.protectedMoveIn=function(h){var r=h.topN;r&&(l=r);(r=h.labelType)&&(n=r);r=h.ignoreNegative;!0!==r&&!1!==
r||(f=r);(h=h.legendOrderMode)&&(m=h)};this.protectedToJsonObject=function(h){0<=l&&(h.topN=l);h.labelType=n;f&&(h.hideNegative=f);h.legendOrderMode=m};this.protectedFromJsonObject=function(h){l=(l=h.topN)?l:-1;n=h.labelType;f=h.hideNegative?!0:!1;m=h.legendOrderMode};this.protectedToRenderAttr=function(h){var r=0;(n&Na.SHOW_LABEL_NAME)==Na.SHOW_LABEL_NAME&&(r|=Ub.SHOW_LABEL_NAME);(n&Na.SHOW_LABEL_NUMBER)==Na.SHOW_LABEL_NUMBER&&(r|=Ub.SHOW_LABEL_NUMBER);(n&Na.SHOW_LABEL_PERCENT)==Na.SHOW_LABEL_PERCENT&&
(r|=Ub.SHOW_LABEL_PERCENT);h.setDataLabelType(r);h.setIgnoreNegative(f)}}function $a(){Na.call(this);this.protectedGetTypeForJson=function(){return"Pie"}}function La(){Na.call(this);var a=this.protectedMethod,l=!0;this.setShowTotal=function(k){l=k;a.fireChangedEvent(La.KEY_SHOW_TOTAL,l)};this.isShowTotal=function(){return l};var n=this.protectedMoveOut;this.protectedMoveOut=function(k){n(k);k.showTotal=l};var f=this.protectedMoveIn;this.protectedMoveIn=function(k){f(k);k=k.showTotal;!0!==k&&!1!==
k||(l=k)};this.protectedGetTypeForJson=function(){return"Ring"};var m=this.protectedToJsonObject;this.protectedToJsonObject=function(k){m(k);l&&(k.showTotal=l)};var h=this.protectedFromJsonObject;this.protectedFromJsonObject=function(k){h(k);l=k.showTotal?!0:!1};var r=this.protectedToRenderAttr;this.protectedToRenderAttr=function(k){r(k);k.setHollow(!0);k.setShowTotalWhenHollow(l)}}function ab(){Na.call(this);var a=this.protectedMethod,l=!1;this.setAverageAngle=function(k){l=k;a.fireChangedEvent(ab.KEY_AVERAGE_ANGLE,
l)};this.isAverageAngle=function(){return l};var n=this.protectedMoveOut;this.protectedMoveOut=function(k){n(k);k.averageAngle=l};var f=this.protectedMoveIn;this.protectedMoveIn=function(k){f(k);k=k.averageAngle;!0!==k&&!1!==k||(l=k)};this.protectedGetTypeForJson=function(){return"Rose"};var m=this.protectedToJsonObject;this.protectedToJsonObject=function(k){m(k);l&&(k.averageAngle=l)};var h=this.protectedFromJsonObject;this.protectedFromJsonObject=function(k){h(k);l=k.averageAngle?!0:!1};var r=this.protectedToRenderAttr;
this.protectedToRenderAttr=function(k){r(k);k.setPresentByRadius(!0);k.setPresentByAngle(!l)}}function ma(){W.call(this);var a=this.protectedMethod,l="#,##0",n=ma.OUTER_CIRCLE_DIMENSION,f=!0,m=!0;this.setRadarFormat=function(h){l=h;a.fireChangedEvent(ma.KEY_RADAR_FORMAT,l)};this.getRadarFormat=function(){return l};this.setOuterCircle=function(h){n=h;a.fireChangedEvent(ma.KEY_OUTER_CIRCLE,n)};this.getOuterCircle=function(){return n};this.setShowRulerMarkLabel=function(h){f=h;a.fireChangedEvent(ma.KEY_SHOW_RULER_MARK_LABEL,
f)};this.isShowRulerMarkLabel=function(){return f};this.setFillColor=function(h){m=h;a.fireChangedEvent(ma.KEY_FILL_COLOR,m)};this.isFillColor=function(){return m};this.protectedMoveOut=function(h){h.pAxisFormat=l;h.radarOuterCircle=n;h.radarShowRulerMarkLabel=f;h.radarFillColor=m};this.protectedMoveIn=function(h){var r=h.pAxisFormat;void 0!==r&&(l=r);(r=h.radarOuterCircle)&&(n=r);((r=h.radarShowRulerMarkLabel)||!1===r)&&(f=r?!0:!1);((h=h.radarFillColor)||!1===h)&&(m=h?!0:!1)};this.protectedGetTypeForJson=
function(){return"Radar"};this.protectedToJsonObject=function(h){h.axisFormat=l;h.outerCircle=n;f&&(h.showRulerMarkLabel=!0);m&&(h.fillColor=!0)};this.protectedFromJsonObject=function(h){l=h.axisFormat;n=h.outerCircle;f=h.showRulerMarkLabel?!0:!1;m=h.fillColor?!0:!1};this.protectedToRenderAttr=function(h){h.setRadarFormat(l);h.setShowRulerMarkLabel(f);h.setDimensionOutside(n==ma.OUTER_CIRCLE_DIMENSION);h.setFillColor(m)}}function ha(){var a=this.protectedMethod,l=ha.SHOW_LABEL_NUMBER,n;this.setLabelType=
function(f){l=f;a.fireChangedEvent(ha.KEY_LABEL_TYPE,l)};this.getLabelType=function(){return l};this.setThicknessPercent=function(f){n=f;a.fireChangedEvent(ha.KEY_THICKNESS_PERCENT,n)};this.getThicknessPercent=function(){return n?n:100};a.progressMoveOut=function(f){f.progressThicknessPercent=n};a.progressMoveIn=function(f){f=f.progressThicknessPercent;void 0!==f&&(n=f)};a.progressToJsonObject=function(f){100!=n&&(f.thicknessPercent=n)};a.progressFromJsonObject=function(f){n=f.thicknessPercent};a.progressToRenderAttr=
function(f){f.setOverlapShrinkingPercent(n)}}function ta(){ha.multiExtends(tb,this);var a=this,l=this.protectedMethod,n=this.protectedMoveOut;this.protectedMoveOut=function(k){n(k);l.progressMoveOut(k);k.progressLabelType=a.getLabelType()};var f=this.protectedMoveIn;this.protectedMoveIn=function(k){f(k);l.progressMoveIn(k);k=k.progressLabelType;void 0!==k&&a.setLabelType(k)};var m=this.protectedToJsonObject;this.protectedToJsonObject=function(k){m(k);l.progressToJsonObject(k);var v=a.getLabelType();
v&&(k.labelType=v)};var h=this.protectedFromJsonObject;this.protectedFromJsonObject=function(k){h(k);l.progressFromJsonObject(k);a.setLabelType(k.labelType)};this.protectedGetTypeForJson=function(){return"ProgressBar"};var r=this.protectedToRenderAttr;this.protectedToRenderAttr=function(k){r(k);l.progressToRenderAttr(k);k.setLabelType(a.getLabelType())}}function ka(){ha.multiExtends(la,this);var a=this,l=this.protectedMethod,n=this.protectedMoveOut;this.protectedMoveOut=function(k){n(k);l.progressMoveOut(k);
k.progressLabelType=a.getLabelType()};var f=this.protectedMoveIn;this.protectedMoveIn=function(k){f(k);l.progressMoveIn(k);k=k.progressLabelType;void 0!==k&&a.setLabelType(k)};var m=this.protectedToJsonObject;this.protectedToJsonObject=function(k){m(k);l.progressToJsonObject(k);var v=a.getLabelType();v&&(k.labelType=v)};var h=this.protectedFromJsonObject;this.protectedFromJsonObject=function(k){h(k);l.progressFromJsonObject(k);a.setLabelType(k.labelType)};this.protectedGetTypeForJson=function(){return"ProgressColumn"};
var r=this.protectedToRenderAttr;this.protectedToRenderAttr=function(k){r(k);l.progressToRenderAttr(k);k.setLabelType(a.getLabelType())}}function p(){ha.multiExtends(W,this);var a=this.protectedMethod,l=0,n=!0,f=0,m=kb.get("progressCompletedRate","\u5b8c\u6210\u7387"),h="#,##0";this.protectedCustomMovingKey=function(){return[null,"progressCircleShowLegend"]};this.setPercentageDecimalDigit=function(r){l=r;a.fireChangedEvent(p.KEY_PERCENTAGE_DIGIT,l)};this.getPercentageDecimalDigit=function(){return l};
this.setPercentageCeiling=function(r){n=r;a.fireChangedEvent(p.KEY_PERCENTAGE_CEILING,n)};this.isPercentageCeiling=function(){return n};this.setDataEmptyPercentageInstead=function(r){f=r;a.fireChangedEvent(p.KEY_PERCENTAGE_INSTEAD,f)};this.getDataEmptyPercentageInstead=function(){return f};this.setLabelDesc=function(r){m=r;a.fireChangedEvent(p.KEY_LABEL_DESC,m)};this.getLabelDesc=function(){return m};this.setLegendFormat=function(r){h=r;a.fireChangedEvent(p.KEY_LEGEND_FORMAT,h)};this.getLegendFormat=
function(){return h};this.protectedMoveOut=function(r){a.progressMoveOut(r);r.progressPercentageDigit=l;r.progressPercentageCeiling=n;r.progressPercentageInstead=f;r.progressLabelDesc=m;r.pAxisFormat=h};this.protectedMoveIn=function(r){a.progressMoveIn(r);var k=r.progressPercentageDigit;void 0!==k&&(l=k);k=r.progressPercentageCeiling;void 0!==k&&(n=k);k=r.progressPercentageInstead;void 0!==k&&(f=k);k=r.progressLabelDesc;void 0!==k&&(m=k);r=r.pAxisFormat;void 0!==r&&(h=r)};this.protectedToJsonObject=
function(r){a.progressToJsonObject(r);r.percentageDecimalDigit=l;r.percentageCeiling=n;r.percentageInstead=f;m&&(r.labelDesc=m);h&&(r.legendFormat=h)};this.protectedFromJsonObject=function(r){a.progressFromJsonObject(r);l=r.percentageDecimalDigit;n=r.percentageCeiling;f=r.percentageInstead;m=r.labelDesc;h=r.legendFormat};this.protectedGetTypeForJson=function(){return"ProgressCircle"};this.protectedToRenderAttr=function(r){a.progressToRenderAttr(r);r.setPercentageDecimalDigit(l);r.setPercentageCeiling(n);
r.setDataEmptyPercentageInstead(f);r.setLabelDesc(m)}}function ra(){function a(){var C=this,aa,Sa,Ta,qb,Ba;this.setEndValue=function(V){return aa=V};this.getEndValue=function(){return aa};this.setLabel=function(V){Sa=V};this.getLabel=function(){return Sa};this.setColor=function(V){Ta=V};this.getColor=function(){return Ta};this.isBoundField=function(){return qb&&Ba};this.bindField=function(V,K){qb=V;Ba=K};this.getMetaFieldFullName=function(){return qb};this.getAggregation=function(){return Ba};this.copyToEdit=
function(){var V=new a;V.fromJsonObject(C.toJsonObject());return V};this.toJsonObject=function(){var V={};V.endValue=aa;V.label=Sa;V.color=Ta;V.metaField=qb;V.aggregation=Ba;return V};this.fromJsonObject=function(V){aa=V.endValue;Sa=V.label;Ta=V.color;qb=V.metaField;Ba=V.aggregation}}W.call(this);var l=this.protectedMethod,n=ra.PAN_STYLE_WITH_TRACK,f=240,m=0,h=!0,r="#,##0",k=!0,v=!0,y=!1,L,B="#,##0",F=0,H=null;this.protectedGetTypeForJson=function(){return"Dial"};this.lookupAllMetaFieldBinding=function(C){if(H)for(var aa=
0;aa<H.length;aa++){var Sa=H[aa].getMetaFieldFullName();Sa&&C(Sa)}};this.setPanStyle=function(C){n=C;l.fireChangedEvent(ra.KEY_PAN_STYLE,n)};this.getPanStyle=function(){return n};this.setArcDegree=function(C){f=C;l.fireChangedEvent(ra.KEY_ARC_DEGREE,f)};this.getArcDegree=function(){return f};this.setRotateDegree=function(C){m=C;l.fireChangedEvent(ra.KEY_ROTATE_DEGREE,m)};this.getRotateDegree=function(){return m};this.setShowRulerMarkLabel=function(C){h=C;l.fireChangedEvent(ra.KEY_SHOW_RULER_MARK_LABEL,
h)};this.isShowRulerMarkLabel=function(){return h};this.setRulerMarkLabelFormat=function(C){r=C;l.fireChangedEvent(ra.KEY_RULER_MARK_FORMAT,r)};this.getRulerMarkLabelFormat=function(){return r};this.setShowPointerLabel=function(C){k=C[0];v=C[1];y=C[2];l.fireChangedEvent(ra.KEY_SHOW_POINTER_LABEL,C)};this.getShowPointerLabel=function(){return[k,v,y]};this.isShowPointerName=function(){return k};this.isShowPointerNumber=function(){return v};this.setPointerName=function(C){L=C;l.fireChangedEvent(ra.KEY_POINTER_NAME,
L)};this.getPointerName=function(){return L};this.setPointerNumberFormat=function(C){B=C;l.fireChangedEvent(ra.KEY_POINTER_NUMBER_FORMAT,B)};this.getPointerNumberFormat=function(){return B};this.setDataEmptyInstead=function(C){F=C;l.fireChangedEvent(ra.KEY_DATA_EMPTY_INSTEAD,F)};this.getDataEmptyInstead=function(){return F};this.setSections=function(C){H=C;l.fireChangedEvent(ra.KEY_SECTIONS,F)};this.getSections=function(){return H};this.protectedMoveOut=function(C){C.dial=[n,f,m,h,r,k,v,y,L,B,F,H]};
this.protectedMoveIn=function(C){if(C=C.dial){var aa=0;n=C[aa++];f=C[aa++];m=C[aa++];h=C[aa++];r=C[aa++];k=C[aa++];v=C[aa++];y=C[aa++];L=C[aa++];B=C[aa++];F=C[aa++];H=C[aa]}};this.protectedToJsonObject=function(C){C.panStyle=n==ra.PAN_STYLE_ONLY_MARK?"OnlyMark":"WithTrack";C.arcDegree=f;0!=m&&(C.rotateDegree=m);C.showRulerLabel=h;C.rulerLabelFormat=r;C.showPointerName=k;C.showPointerNumber=v;C.showPointerPercent=y;C.pointerName=L;C.pointerNumberFormat=B;C.dataEmptyInstead=F;if(H){for(var aa=[],Sa=
0;Sa<H.length;Sa++)aa.push(H[Sa].toJsonObject());C.sections=aa}};this.protectedFromJsonObject=function(C){n="OnlyMark"==C.panStyle?ra.PAN_STYLE_ONLY_MARK:ra.PAN_STYLE_WITH_TRACK;f=C.arcDegree;m=C.rotateDegree?C.rotateDegree:0;h=C.showRulerLabel;r=C.rulerLabelFormat;k=C.showPointerName;v=C.showPointerNumber;y=C.showPointerPercent;L=C.pointerName;B=C.pointerNumberFormat;F=parseFloat(C.dataEmptyInstead);H=null;if((C=C.sections)&&0<C.length){H=[];for(var aa=0;aa<C.length;aa++){var Sa=C[aa],Ta=new a;Ta.fromJsonObject(Sa);
H.push(Ta)}}};this.protectedToRenderAttr=function(C){var aa=0;k&&(aa|=$b.SHOW_LABEL_NAME);v&&(aa|=$b.SHOW_LABEL_NUMBER);y&&(aa|=$b.SHOW_LABEL_PERCENT);C.setPanStyle(n==ra.PAN_STYLE_ONLY_MARK?$b.PAN_STYLE_ONLY_MARK:$b.PAN_STYLE_WITH_TRACK);C.setArcDegree(f);C.setRotate(m);C.setShowRulerMarkLabel(h);C.setRulerMarkLabelFormat(r);C.setPointerLabelType(aa);C.setPointerName(L);C.setPointerNumberFormat(B)};this.createSection=function(){return new a}}function ea(){W.call(this);pa.call(this);var a=this,l=
this.protectedMethod,n=!1,f=!1,m="#,##0",h,r=W.RulerScale_Linear,k,v,y=W.RulerStart_Zero,L,B="#,##0",F,H=W.RulerScale_Linear,C,aa,Sa=W.RulerStart_Zero,Ta,qb;this.lookupAllMetaFieldBinding=function(Ba){if(qb&&qb.getSortAccording()){var V=qb.getSortAccording().getMetaFieldFullName();V&&Ba(V)}};this.protectedGetTypeForJson=function(){return"Composite"};this.setShowLabel=function(Ba){n=16==(Ba&16);f=1==(Ba&1);l.fireChangedEvent(W.KEY_SHOW_LABEL,Ba)};this.getShowLabel=function(){return(n?16:0)|(f?1:0)};
this.isShowLabel=function(){return 0!=a.getShowLabel()};this.setLeftYUnitText=function(Ba){h=Ba;l.fireChangedEvent(ea.KEY_LY_UNIT_TEXT,h)};this.getLeftYUnitText=function(){return h};this.setLeftYRulerScale=function(Ba){r=Ba;l.fireChangedEvent(ea.KEY_LY_RULER_SCALE,r)};this.getLeftYRulerScale=function(){return r};this.setLeftYRulerScope=function(Ba){k=Ba[0];v=Ba[1];y=Ba[2];l.fireChangedEvent(ea.KEY_LY_RULER_START,y)};this.getLeftYRulerScope=function(){return[k,v,y]};this.setLeftYFormat=function(Ba){m=
Ba;l.fireChangedEvent(ea.KEY_LY_FORMAT,m)};this.getLeftYFormat=function(){return m};this.setLeftReflines=function(Ba){L=Ba;l.fireChangedEvent(ea.KEY_LEFT_REFLINES,L)};this.getLeftReflines=function(){return L};this.setRightYUnitText=function(Ba){F=Ba;l.fireChangedEvent(ea.KEY_RY_UNIT_TEXT,F)};this.getRightYUnitText=function(){return F};this.setRightYRulerScale=function(Ba){H=Ba;l.fireChangedEvent(ea.KEY_RY_RULER_SCALE,H)};this.getRightYRulerScale=function(){return H};this.setRightYRulerScope=function(Ba){C=
Ba[0];aa=Ba[1];Sa=Ba[2];l.fireChangedEvent(ea.KEY_RY_RULER_START,Sa)};this.getRightYRulerScope=function(){return[C,aa,Sa]};this.setRightYFormat=function(Ba){B=Ba;l.fireChangedEvent(ea.KEY_RY_FORMAT,B)};this.getRightYFormat=function(){return B};this.setRightReflines=function(Ba){Ta=Ba;l.fireChangedEvent(ea.KEY_RIGHT_REFLINES,Ta)};this.getRightReflines=function(){return Ta};this.getSort=function(){qb||(qb=new Oa,qb.setChangedListener(function(){l.fireChangedEvent(ea.KEY_SORT,qb)}));return qb};this.protectedMoveIn=
function(Ba){l.lineMoveIn(Ba);var V=Ba.showLabel1;void 0!==V&&(n=V);V=Ba.showLabel2;void 0!==V&&(f=V);(V=Ba.pAxisUnitText)&&(h=V);(V=Ba.pAxisRulerScale)&&(r=V);(V=Ba.pAxisRulerMin)&&(k=V);(V=Ba.pAxisRulerMax)&&(v=V);(V=Ba.pAxisRulerStart)&&(y=V);(V=Ba.pAxisFormat)&&(m=V);(V=Ba.pAxisReflines)&&(L=V);(V=Ba.sAxisUnitText)&&(F=V);(V=Ba.sAxisRulerScale)&&(H=V);(V=Ba.sAxisRulerMin)&&(C=V);(V=Ba.sAxisRulerMax)&&(aa=V);(V=Ba.sAxisRulerStart)&&(Sa=V);(V=Ba.sAxisFormat)&&(B=V);(V=Ba.sAxisReflines)&&(Ta=V);
(V=Ba.styleScripts)&&a.setStyleScripts(V);(Ba=Ba.compositeSort)&&a.getSort().fromJsonObject(Ba)};this.protectedMoveOut=function(Ba){l.lineMoveOut(Ba);Ba.showLabel1=n;Ba.showLabel2=f;Ba.pAxisUnitText=h;Ba.pAxisRulerScale=r;Ba.pAxisRulerMin=k;Ba.pAxisRulerMax=v;Ba.pAxisRulerStart=y;Ba.pAxisFormat=m;Ba.pAxisReflines=L;Ba.sAxisUnitText=F;Ba.sAxisRulerScale=H;Ba.sAxisRulerMin=C;Ba.sAxisRulerMax=aa;Ba.sAxisRulerStart=Sa;Ba.sAxisFormat=B;Ba.sAxisReflines=Ta;Ba.styleScripts=a.getStyleScripts();qb&&(Ba.compositeSort=
qb.toJsonObject())};this.protectedToRenderAttr=function(Ba){l.lineToRenderAttr(Ba);Ba.setShowDataLabel(n,f);Ba.setPYUnitText(h);Ba.setPYFormat(m);Ba.setPYRulerScale(r);Ba.setPYRulerMin(k?parseFloat(k):null);Ba.setPYRulerMax(v?parseFloat(v):null);Ba.setPYRulerStart(y);Ba.setSYUnitText(F);Ba.setSYFormat(B);Ba.setSYRulerScale(H);Ba.setSYRulerMin(C?parseFloat(C):null);Ba.setSYRulerMax(aa?parseFloat(aa):null);Ba.setSYRulerStart(Sa)};this.protectedToJsonObject=function(Ba){l.lineToJsonObject(Ba);Ba.showLabelForLeft=
n;Ba.showLabelForRight=f;h&&(Ba.leftYUnitText=h);r&&(Ba.leftYRulerScale=r);k&&(Ba.leftYRulerMin=k);v&&(Ba.leftYRulerMax=v);y&&(Ba.leftYRulerStart=y);m&&(Ba.leftYFormat=m);if(L){for(var V=[],K=0;K<L.length;K++){var X=L[K];V.push(X.toJsonObject())}Ba.leftReflines=V}F&&(Ba.rightYUnitText=F);H&&(Ba.rightYRulerScale=H);C&&(Ba.rightYRulerMin=C);aa&&(Ba.rightYRulerMax=aa);Sa&&(Ba.rightYRulerStart=Sa);B&&(Ba.rightYFormat=B);if(Ta){V=[];for(K=0;K<Ta.length;K++)X=Ta[K],V.push(X.toJsonObject());Ba.rightReflines=
V}qb&&(Ba.sort=qb.toJsonObject())};this.protectedFromJsonObject=function(Ba){l.lineFromJsonObject(Ba);n=Ba.showLabelForLeft;f=Ba.showLabelForRight;h=Ba.leftYUnitText;r=(r=Ba.leftYRulerScale)?r:W.RulerScale_Linear;k=Ba.leftYRulerMin;v=Ba.leftYRulerMax;y=(y=Ba.leftYRulerStart)?y:W.RulerStart_Zero;m=Ba.leftYFormat;var V=Ba.leftReflines;if(V){L=[];for(var K=0;K<V.length;K++){var X=V[K],ya=new Xa;ya.fromJsonObject(X);L.push(ya)}}F=Ba.rightYUnitText;H=(H=Ba.rightYRulerScale)?H:W.RulerScale_Linear;C=Ba.rightYRulerMin;
aa=Ba.rightYRulerMax;Sa=(Sa=Ba.rightYRulerStart)?Sa:W.RulerStart_Zero;B=Ba.rightYFormat;if(V=Ba.rightReflines)for(Ta=[],K=0;K<V.length;K++)X=V[K],ya=new Xa,ya.fromJsonObject(X),Ta.push(ya);(Ba=Ba.sort)&&a.getSort().fromJsonObject(Ba)}}function Ca(){W.call(this);var a=this,l=this.protectedMethod,n=!1,f=-1,m=Ca.DESCEND_SORT,h,r=!0,k=!1,v=-1,y,L=this.setLinkTargets;this.setLinkTargets=function(B){L(B);l.fireChangedEvent(W.KEY_LINKAGE+qa.NeedExecute,B)};this.setTopnSwitch=function(B){(n=B)&&-1==f&&(f=
20);l.fireChangedEvent(Ca.KEY_TOP_N,f)};this.isTopnSwitch=function(){return n};this.setTopnItems=function(B){f=B;n=0>=f?!1:!0;l.fireChangedEvent(Ca.KEY_TOP_N,f)};this.getTopnItems=function(){return f};this.setSortord=function(B){m=B;l.fireChangedEvent(Ca.KEY_SORTORD,m)};this.getSortord=function(){return m};this.setSortField=function(B){h=B;l.fireChangedEvent(Ca.KEY_SORT_FIELD,h)};this.getSortField=function(){return h};this.setAutoScroll=function(B){r=B;l.fireChangedEvent(Ca.KEY_AUTO_SCROLL,r)};this.isAutoScroll=
function(){return r};this.setStickNRow=function(B){(k=B)&&-1==v&&(v=3);l.fireChangedEvent(Ca.KEY_STICK_ROWS,v)};this.isStickNRow=function(){return k};this.setStickRows=function(B){v=B;k=0>=v?!1:!0;l.fireChangedEvent(Ca.KEY_STICK_ROWS,v)};this.getStickRows=function(){return v};this.setAffectionSrcField=function(B){y=B;l.fireChangedEvent(Ca.KEY_AFFECTIOM_SRC_FIELD,y)};this.getAffectionSrcField=function(){return y};l.listMoveIn=function(B){var F=B.listTopnSwitch;void 0!==F&&(n=F);F=B.listTopnItem;void 0!==
F&&(f=F);F=B.listSortord;void 0!==F&&(m=F);F=B.listSortField;void 0!==F&&(h=F);F=B.listAutoScroll;void 0!==F&&(r=F);F=B.listStickNRow;void 0!==F&&(k=F);F=B.listStickRows;void 0!==F&&(v=F);(F=B.listStyleScripts)&&a.setStyleScripts(F);B=B.listAffectionSrcField;void 0!==B&&(y=B)};l.listMoveOut=function(B){B.listTopnSwitch=n;B.listTopnItem=f;B.listSortord=m;B.listSortField=h;B.listAutoScroll=r;B.listStickNRow=k;B.listStickRows=v;B.listStyleScripts=a.getStyleScripts();B.listAffectionSrcField=y};l.listToRenderAttr=
function(B){B.setAutoScroll(r);B.setStickRows(r&&k?v:0)};l.listToJsonObject=function(B,F){B.topN=n?f:-1;B.autoScroll=r;B.stickRows=k?v:-1;if(h&&h.isMeasure())for(var H=0;H<F.getItemModelCount();H++){var C=F.getItemModel(H);if(C==h){B.sortFields=[H];B.sortords=[m];break}}if(y&&y.isDimension())for(H=0;H<F.getItemModelCount();H++)if(C=F.getItemModel(H),C==y){B.affectionSrcFields=[H];break}};l.listFromJsonObject=function(B,F){var H=B.topN;f=H?H:-1;n=0>=f?!1:!0;r=B.autoScroll;v=(H=B.stickRows)?H:-1;k=
0>=v?!1:!0;H=B.sortFields;var C=B.sortords;H&&0<H.length&&(h=F.getItemModel(H[0]),(H=C[0])&&(m=H));(B=B.affectionSrcFields)&&0<B.length&&(y=F.getItemModel(B[0]))}}function U(){Ca.call(this);var a=this.protectedMethod,l=!1,n="No.",f=!0;this.setShowRowNum=function(m){l=m;a.fireChangedEvent(U.KEY_SHOW_ROWNUM,l)};this.isShowRowNum=function(){return l};this.setTitleOfRowNum=function(m){n=m;a.fireChangedEvent(U.KEY_ROWNUM_TITLE,n)};this.getTitleOfRowNum=function(){return n};this.setShowHeader=function(m){f=
m;a.fireChangedEvent(U.KEY_SHOW_HEADER,f)};this.isShowHeader=function(){return f};this.protectedGetTypeForJson=function(){return"Grid"};this.protectedMoveIn=function(m){a.listMoveIn(m);var h=m.gridShowHeader;void 0!==h&&(f=h);h=m.gridShowRowNum;void 0!==h&&(l=h);m=m.gridTitleOfRowNum;void 0!==m&&(n=m)};this.protectedMoveOut=function(m){a.listMoveOut(m);m.gridShowHeader=f;m.gridShowRowNum=l;m.gridTitleOfRowNum=n};this.protectedToRenderAttr=function(m){a.listToRenderAttr(m);m.setShowHeader(f);m.setShowRowNum(l)};
this.protectedToJsonObject=function(m,h){a.listToJsonObject(m,h.getColumnSet());m.showHeader=f;m.showRowNum=l;m.titleOfRowNum=n};this.protectedFromJsonObject=function(m,h){a.listFromJsonObject(m,h.getColumnSet());f=m.showHeader?!0:!1;l=m.showRowNum?!0:!1;n=m.titleOfRowNum}}function E(){Ca.call(this);var a=this.protectedMethod,l=360,n,f,m=new u,h,r,k;this.getDesigningWidth=function(){return l};this.setCustomDesign=function(v,y,L){f=v;m=y;h=L;a.fireChangedEvent(E.KEY_CUSTOM_CONTENT,m)};this.getCustomHead=
function(){return f};this.getCustomContent=function(){return m};this.getCustomTail=function(){return h};this.setSplitLineColor=function(v){n=v;a.fireChangedEvent(E.KEY_SPLITLINE_COLOR,n)};this.getSplitLineColor=function(){return n};this.setBodyVerticalAlign=function(v){r=v;a.fireChangedEvent(E.KEY_BODY_V_ALIGN,r)};this.getBodyVerticalAlign=function(){return r};this.setBodyShareToRow=function(v){k=v;a.fireChangedEvent(E.KEY_BODY_SHARE_TO_ROW,k)};this.getBodyShareToRow=function(){return k};this.protectedGetTypeForJson=
function(){return"CustomList"};this.protectedMoveIn=function(v){a.listMoveIn(v);var y=v.customListSplitLine;void 0!==y&&(n=y);y=v.customListContent;void 0!==y&&(m=y);y=v.customListHead;void 0!==y&&(f=y);y=v.customListTail;void 0!==y&&(h=y);y=v.customListBodyVAlign;void 0!==y&&(r=y);v=v.customListBodyShareToRow;void 0!==v&&(k=v)};this.protectedMoveOut=function(v){a.listMoveOut(v);v.customListSplitLine=n;v.customListContent=m;v.customListHead=f;v.customListTail=h;v.customListBodyVAlign=r;v.customListBodyShareToRow=
k};this.protectedToRenderAttr=function(v){a.listToRenderAttr(v);v.setSplitLineColor(n);var y=f?f.getRowHeight():0,L=h?h.getRowHeight():0;v.setDesigntimeRowSize(l,m.getRowHeight(),y,L);y=m.getContentAreas();for(L=0;L<y.length;L++){var B=y[L];v.addDesigntimeRect(B.getX(),B.getY(),B.getWidth(),B.getHeight())}if(null!=f)for(v.setHeaderBackgroundColor(f.getBackgroundColor()),y=f.getContentAreas(),L=0;L<y.length;L++)B=y[L],v.addDesigntimeHeaderRect(B.getX(),B.getY(),B.getWidth(),B.getHeight());if(null!=
h)for(v.setFooterBackgroundColor(h.getBackgroundColor()),y=h.getContentAreas(),L=0;L<y.length;L++)B=y[L],v.addDesigntimeFooterRect(B.getX(),B.getY(),B.getWidth(),B.getHeight());v.setBodyMiddleAlign(r==E.BODY_VALIGN_MIDDLE);v.setDynamicRowHeightMode(k==E.BODY_SHARE_TO_ROW_REDUCABLE?Nb.DynamicRowHeight_Reduced:k==E.BODY_SHARE_TO_ROW_INCREASABLE?Nb.DynamicRowHeight_Increased:k==E.BODY_SHARE_TO_ROW_ADJUSTABLE?Nb.DynamicRowHeight_Both:Nb.DynamicRowHeight_None)};this.protectedToJsonObject=function(v,y){a.listToJsonObject(v,
y.getFieldSet());v.width=l;n&&(v.splitLineColor=n);v.content=m.toJsonObject();f&&(v.head=f.toJsonObject());h&&(v.tail=h.toJsonObject());r&&(v.bodyVAlign=r);k&&(v.bodyShareToRow=k)};this.protectedFromJsonObject=function(v,y){a.listFromJsonObject(v,y.getFieldSet());l=v.width;n=v.splitLineColor;y=v.content;m=new u;m.fromJsonObject(y);f=null;if(y=v.head)f=new u,f.fromJsonObject(y);h=null;if(y=v.tail)h=new u,h.fromJsonObject(y);r=v.bodyVAlign;k=v.bodyShareToRow}}function u(){var a=this,l=40,n=[],f;this.setRowHeight=
function(m){l=m};this.getRowHeight=function(){return l};this.setContentAreas=function(m){n=m};this.getContentAreas=function(){return n};this.setBackgroundColor=function(m){f=m};this.getBackgroundColor=function(){return f};this.copyToEdit=function(){var m=new u;m.fromJsonObject(a.toJsonObject());return m};this.toJsonObject=function(){var m={};m.rowHeight=l;for(var h=[],r=0;r<n.length;r++)h.push(n[r].toJsonObject());m.areas=h;f&&(m.backgroundColor=f);return m};this.fromJsonObject=function(m){l=m.rowHeight;
n=[];for(var h=m.areas,r=0;r<h.length;r++){var k=h[r],v=new g;v.fromJsonObject(k);n.push(v)}f=m.backgroundColor}}function g(){var a,l,n,f,m,h,r,k=new ob;this.setRectangle=function(v,y,L,B){a=v;l=y;n=L;f=B};this.getX=function(){return a};this.getY=function(){return l};this.getWidth=function(){return n};this.getHeight=function(){return f};this.setFieldIndex=function(v){m=v;h=null};this.getFieldIndex=function(){return m};this.setCustomText=function(v){m=-1;h=v};this.getCustomText=function(){return h};
this.setColorBar=function(v){r=v};this.getColorBar=function(){return r};this.setCustomStyle=function(v){k=v};this.getCustomStyle=function(){return k};this.toJsonObject=function(){var v={};v.x=a;v.y=l;v.width=n;v.height=f;0<=m&&(v.field=m);h&&(v.text=h);r&&(v.colorBar=r.toJsonObject());v.style=k.toJsonObject();return v};this.fromJsonObject=function(v){a=v.x;l=v.y;n=v.width;f=v.height;var y=v.field;m=y||0===y?y:-1;h=(y=v.text)?y:null;r=(y=v.colorBar)?d.from(y):null;k=new ob;k.fromJsonObject(v.style)}}
function d(){var a,l,n,f,m;this.setMin=function(h){a=h};this.getMin=function(){return a};this.setMax=function(h){l=h};this.getMax=function(){return l};this.setNormalColor=function(h){n=h};this.getNormalColor=function(){return n};this.setNegativeColor=function(h){f=h};this.getNegativeColor=function(){return f};this.setAxisColor=function(h){m=h};this.getAxisColor=function(){return m};this.toJsonObject=function(){var h={};a&&(h.min=a);l&&(h.max=l);n&&(h.color=n);f&&(h.negativeColor=f);m&&(h.axisColor=
m);return h};this.fromJsonObject=function(h){a=h.min;l=h.max;n=h.color;f=h.negativeColor;m=h.axisColor}}function e(){W.call(this);var a=this.protectedMethod,l=!1,n=!1,f=!1,m=!1,h=-1,r=-1,k=!1,v=!1,y,L="#,##0";this.isSortByName=function(){return l};this.setSortByName=function(B){l=B;a.fireChangedEvent(e.KEY_SORT_BY_NAME,l)};this.isNegativeAsc=function(){return f};this.setNegativeAsc=function(B){f=B;a.fireChangedEvent(e.KEY_NEGATIVE_ASC,f)};this.getNegativeTopN=function(){return h};this.setNegativeTopN=
function(B){h=B;a.fireChangedEvent(e.KEY_NEGATIVE_TOP_N,h)};this.getPositiveTopN=function(){return r};this.setPositiveTopN=function(B){r=B;a.fireChangedEvent(e.KEY_POSITIVE_TOP_N,r)};this.isWithoutTotal=function(){return k};this.setWithoutTotal=function(B){k=B;a.fireChangedEvent(e.KEY_WITHOUT_TOTAL,k)};this.isStartFromStage=function(){return v};this.setStartFromStage=function(B){v=B;a.fireChangedEvent(e.KEY_START_FROM_STAGE,v)};this.getYUnitText=function(){return y};this.setYUnitText=function(B){y=
B;a.fireChangedEvent(e.KEY_Y_UNIT_TEXT,y)};this.getYFormat=function(){return L};this.setYFormat=function(B){L=B;a.fireChangedEvent(e.KEY_Y_FORMAT,L)};this.protectedGetTypeForJson=function(){return"Waterfall"};this.protectedMoveIn=function(B){var F=B.waterfall;F&&(l=F[0],n=F[1],f=F[2],m=F[3],h=F[4],r=F[5],k=F[6],v=F[7]);(F=B.pAxisUnitText)&&(y=F);B=B.pAxisFormat;void 0!==B&&(L=B)};this.protectedMoveOut=function(B){B.waterfall=[l,n,f,m,h,r,k,v];B.pAxisUnitText=y;B.pAxisFormat=L};this.protectedToRenderAttr=
function(B){B.setYUnitText(y);B.setYFormat(L)};this.protectedToJsonObject=function(B,F){l&&(B.sortByName=l);n&&(B.negativeAhead=n);f&&(B.negativeAsc=f);m&&(B.positiveAsc=m);0<h&&(B.negativeTopN=h);0<r&&(B.positiveTopN=r);k&&(B.withoutTotal=k);v&&(B.startFromStage=v);y&&(B.yUnitText=y);L&&(B.yFormat=L)};this.protectedFromJsonObject=function(B,F){l=B.sortByName?!0:!1;n=B.negativeAhead?!0:!1;f=B.negativeAsc?!0:!1;m=B.positiveAsc?!0:!1;h=(F=B.negativeTopN)?F:-1;r=(F=B.positiveTopN)?F:-1;k=B.withoutTotal?
!0:!1;v=B.startFromStage?!0:!1;y=B.yUnitText;L=B.yFormat}}function c(){W.call(this);var a=this.protectedMethod,l=!1,n=!1,f=c.RATIO_BY_STEP,m=c.LADDER_PERFECT,h,r=c.LABEL_POSITION_LEFT,k=c.LABEL_POSITION_HIDE,v=c.LABEL_POSITION_RIGHT;this.protectedCustomMovingKey=function(){return[null,"funnelShowLegend"]};this.isSortByName=function(){return l};this.setSortByName=function(F){l=F;a.fireChangedEvent(c.KEY_SORT_BY_NAME,l)};this.setIgnoreNegative=function(F){n=F;a.fireChangedEvent(W.KEY_NEGATIVE,n)};this.isIgnoreNegative=
function(){return n};this.setRatioBy=function(F){f=F;a.fireChangedEvent(c.KEY_RATIOBY,f)};this.getRatioBy=function(){return f};this.setLadder=function(F){m=F;a.fireChangedEvent(c.KEY_LADDER,m)};this.getLadder=function(){return m};this.setRatioFormat=function(F){h=F;a.fireChangedEvent(c.KEY_RATIO_FORMAT,h)};this.getRatioFormat=function(){return h};this.setNameLabelPosition=function(F){r=F;a.fireChangedEvent(c.KEY_LABEL_NAME,r)};this.getNameLabelPosition=function(){return r};this.setValueLabelPosition=
function(F){k=F;a.fireChangedEvent(c.KEY_LABEL_VALUE,k)};this.getValueLabelPosition=function(){return k};this.setRatioLabelPosition=function(F){v=F;a.fireChangedEvent(c.KEY_LABEL_RATIO,v)};this.getRatioLabelPosition=function(){return v};this.isShowLabel=function(){return r!=c.LABEL_POSITION_HIDE||k!=c.LABEL_POSITION_HIDE||v!=c.LABEL_POSITION_HIDE};this.protectedMoveIn=function(F){var H=F.funnel;H&&(l=H[0],f=H[1],m=H[2],r=H[3],k=H[4],v=H[5],h=H[6]);F=F.ignoreNegative;!0!==F&&!1!==F||(n=F)};this.protectedMoveOut=
function(F){F.funnel=[l,f,m,r,k,v,h];F.ignoreNegative=n};this.protectedToRenderAttr=function(F){F.setLadderPerfect(m==c.LADDER_PERFECT);F.setPercentageFormat(h);f==c.RATIO_BY_STEP&&F.markRatioByStep();f==c.RATIO_BY_START&&F.markRatioByStart();f==c.RATIO_BY_TOTAL&&F.markRatioByTotal();F.setLabelNamePosition(y(r));F.setLabelValuePosition(y(k));F.setLabelPercentPosition(y(v))};var y=function(F){return F==c.LABEL_POSITION_LEFT?Cb.LABEL_LEFT:F==c.LABEL_POSITION_RIGHT?Cb.LABEL_RIGHT:F==c.LABEL_POSITION_CENTER?
Cb.LABEL_CENTER:Cb.LABEL_NONE};this.protectedGetTypeForJson=function(){return"Funnel"};this.protectedToJsonObject=function(F,H){l&&(F.sortByName=!0);n&&(F.hideNegative=!0);F.ratioBy=f==c.RATIO_BY_STEP?"STEP":f==c.RATIO_BY_START?"START":f==c.RATIO_BY_TOTAL?"TOTAL":null;F.ladder=m==c.LADDER_PERFECT?"PERFECT":m==c.LADDER_ACTUAL?"ACTUAL":null;F.nameLabel=L(r);F.valueLabel=L(k);F.ratioLabel=L(v);F.ratioFormat=h};var L=function(F){return F==c.LABEL_POSITION_LEFT?"LEFT":F==c.LABEL_POSITION_CENTER?"CENTER":
F==c.LABEL_POSITION_RIGHT?"RIGHT":null};this.protectedFromJsonObject=function(F,H){l=F.sortByName?!0:!1;n=F.hideNegative?!0:!1;H=F.ratioBy;f="START"==H?c.RATIO_BY_START:"TOTAL"==H?c.RATIO_BY_TOTAL:c.RATIO_BY_STEP;m="ACTUAL"==F.ladder?c.LADDER_ACTUAL:c.LADDER_PERFECT;r=B(F.nameLabel);k=B(F.valueLabel);v=B(F.ratioLabel);h=F.ratioFormat};var B=function(F){return"LEFT"==F?c.LABEL_POSITION_LEFT:"CENTER"==F?c.LABEL_POSITION_CENTER:"RIGHT"==F?c.LABEL_POSITION_RIGHT:c.LABEL_POSITION_HIDE}}function b(){W.call(this);
var a=this.protectedMethod,l="#,##0",n,f,m,h=W.RulerStart_Zero,r,k="#,##0",v,y,L,B=W.RulerStart_Zero,F;this.setXFormat=function(H){l=H;a.fireChangedEvent(b.KEY_X_FORMAT,l)};this.getXFormat=function(){return l};this.setXUnitText=function(H){n=H;a.fireChangedEvent(b.KEY_X_UNIT_TEXT,n)};this.getXUnitText=function(){return n};this.setXRulerScope=function(H){f=H[0];m=H[1];h=H[2];a.fireChangedEvent(b.KEY_X_RULER_START,h)};this.getXRulerScope=function(){return[f,m,h]};this.setXReflines=function(H){r=H;a.fireChangedEvent(b.KEY_X_REFLINES,
r)};this.getXReflines=function(){return r};this.setYFormat=function(H){k=H;a.fireChangedEvent(b.KEY_Y_FORMAT,k)};this.getYFormat=function(){return k};this.setYUnitText=function(H){v=H;a.fireChangedEvent(b.KEY_Y_UNIT_TEXT,v)};this.getYUnitText=function(){return v};this.setYRulerScope=function(H){y=H[0];L=H[1];B=H[2];a.fireChangedEvent(b.KEY_Y_RULER_START,B)};this.getYRulerScope=function(){return[y,L,B]};this.setYReflines=function(H){F=H;a.fireChangedEvent(b.KEY_Y_REFLINES,F)};this.getYReflines=function(){return F};
this.protectedMoveIn=function(H){var C=H.sAxisFormat;void 0!==C&&(l=C);(C=H.sAxisUnitText)&&(n=C);(C=H.sAxisRulerMin)&&(f=C);(C=H.sAxisRulerMax)&&(m=C);(C=H.sAxisRulerStart)&&(h=C);(C=H.sAxisReflines)&&(r=C);C=H.pAxisFormat;void 0!==C&&(k=C);(C=H.pAxisUnitText)&&(v=C);(C=H.pAxisRulerMin)&&(y=C);(C=H.pAxisRulerMax)&&(L=C);(C=H.pAxisRulerStart)&&(B=C);(H=H.pAxisReflines)&&(F=H)};this.protectedMoveOut=function(H){H.sAxisFormat=l;H.sAxisUnitText=n;H.sAxisRulerMin=f;H.sAxisRulerMax=m;H.sAxisRulerStart=
h;H.sAxisReflines=r;H.pAxisFormat=k;H.pAxisUnitText=v;H.pAxisRulerMin=y;H.pAxisRulerMax=L;H.pAxisRulerStart=B;H.pAxisReflines=F};this.protectedToRenderAttr=function(H){H.setXFormat(l);H.setXUnitText(n);H.setXRulerStart(a.toRenderAttrForRulerStart(h));H.setXRulerMin(f?parseFloat(f):null);H.setXRulerMax(m?parseFloat(m):null);H.setYFormat(k);H.setYUnitText(v);H.setYRulerStart(a.toRenderAttrForRulerStart(B));H.setYRulerMin(y?parseFloat(y):null);H.setYRulerMax(L?parseFloat(L):null)};this.protectedGetTypeForJson=
function(){return"Scatter"};this.protectedToJsonObject=function(H,C){l&&(H.xFormat=l);n&&(H.xUnitText=n);f&&(H.xRulerMin=f);m&&(H.xRulerMax=m);h&&(H.xRulerStart=h);if(r){C=[];for(var aa=0;aa<r.length;aa++){var Sa=r[aa];C.push(Sa.toJsonObject())}H.xReflines=C}k&&(H.yFormat=k);v&&(H.yUnitText=v);y&&(H.yRulerMin=y);L&&(H.yRulerMax=L);B&&(H.yRulerStart=B);if(F){C=[];for(aa=0;aa<F.length;aa++)Sa=F[aa],C.push(Sa.toJsonObject());H.yReflines=C}};this.protectedFromJsonObject=function(H,C){l=H.xFormat;n=H.xUnitText;
f=H.xRulerMin;m=H.xRulerMax;h=(h=H.xRulerStart)?h:W.RulerStart_Zero;if(C=H.xReflines){r=[];for(var aa=0;aa<C.length;aa++){var Sa=C[aa],Ta=new Xa;Ta.fromJsonObject(Sa);r.push(Ta)}}k=H.yFormat;v=H.yUnitText;y=H.yRulerMin;L=H.yRulerMax;B=(B=H.yRulerStart)?B:W.RulerStart_Zero;if(C=H.yReflines)for(F=[],aa=0;aa<C.length;aa++)Sa=C[aa],Ta=new Xa,Ta.fromJsonObject(Sa),F.push(Ta)}}function q(){W.call(this);fa.call(this);var a=this.protectedMethod,l=!1;this.setIgnoreNegative=function(n){l=n;a.fireChangedEvent(W.KEY_NEGATIVE,
l)};this.isIgnoreNegative=function(){return l};this.protectedMoveIn=function(n){var f=n.ignoreNegative;!0!==f&&!1!==f||(l=f);a.moveInWithMixColorMode(n)};this.protectedMoveOut=function(n){n.ignoreNegative=l;a.moveOutWithMixColorMode(n)};this.protectedToRenderAttr=function(n){n.setIgnoreNegative(l)};this.protectedGetTypeForJson=function(){return"RectTree"};this.protectedToJsonObject=function(n,f){l&&(n.hideNegative=!0);a.toJsonObjectWithMixColorMode(n,f)};this.protectedFromJsonObject=function(n,f){l=
n.hideNegative?!0:!1;a.fromJsonObjectWithMixColorMode(n,f)}}function t(){W.call(this);var a=this.protectedMethod,l=!1,n=Na.LegendOrderMode_AUTO;this.protectedCustomMovingKey=function(){return["sunburstShowLabel","sunburstShowLegend"]};this.setIgnoreNegative=function(f){l=f;a.fireChangedEvent(W.KEY_NEGATIVE,l)};this.isIgnoreNegative=function(){return l};this.setLegendOrderMode=function(f){n=f;a.fireChangedEvent(Na.KEY_LEGEND_ORDER_MODE,n)};this.getLegendOrderMode=function(){return n};this.protectedMoveIn=
function(f){var m=f.ignoreNegative;!0!==m&&!1!==m||(l=m);(f=f.legendOrderMode)&&(n=f)};this.protectedMoveOut=function(f){f.ignoreNegative=l;f.legendOrderMode=n};this.protectedToRenderAttr=function(f){f.setIgnoreNegative(l)};this.protectedGetTypeForJson=function(){return"Sunburst"};this.protectedToJsonObject=function(f,m){l&&(f.hideNegative=!0);f.legendOrderMode=n};this.protectedFromJsonObject=function(f,m){l=f.hideNegative?!0:!1;n=f.legendOrderMode}}function w(){var a=this,l,n,f,m,h,r={};this.getChartTypeName=
function(){throw Error("Override me.");};this.getRollSet=function(){f||(f=L(!0));return f};this.getRollInState=function(){m||(m=new Ja,m.updateItemCountLimited(a.getRollSet()),m.addStateChangedListener(y));return m};this.getBeRolledSet=function(){return null};this.isRollInSupported=function(){return a.getBeRolledSet()?!0:!1};this.isRollInFieldSupported=function(){return a.getBeRolledSet()?!0:!1};this.lookupRolledInField=function(H){if(0==H){H=a.getBeRolledSet();for(var C=0;C<H.getItemModelCount();C++){var aa=
H.getItemModel(C);if(!aa.getInvalidPrompt())return aa}}else{var Sa=H-1,Ta=0;H=a.getRollSet();for(C=0;C<H.getItemModelCount();C++)if(aa=H.getItemModel(C),!aa.getInvalidPrompt()){if(Ta==Sa)return aa;Ta++}}return null};this.isLinkageSupported=function(){return!1};this.getChartProperty=function(){h||(h=a.protectedCreateChartProperty(),h.addChangedListener(v));return h};this.protectedCreateChartProperty=function(){throw Error("Override me.");};this.getGarbageProperties=function(){a.getChartProperty().moveOut(r);
return r};this.setGarbageProperties=function(H){r=H;a.getChartProperty().moveIn(r)};this.getGarbageFields=function(){return n};this.setGarbageFields=function(H){n=H};this.setChangedListener=function(H){l=H};var k=function(H,C){l&&l(H,C)},v=function(H,C){l&&l(null,H)},y=function(){l&&l(null,Ja.KEY_STATE_CHANGED)},L=function(H,C){var aa=new zb;aa.setItemCountMin(C?1:0);aa.setItemCountMax(H?65535:1);aa.addChangedListener(k);return aa};this.awake=function(H){for(var C=B(),aa=0;aa<C.length;aa++){var Sa=
C[aa];Sa.traversalItems(function(Ta){Sa.awake(H,Ta)})}};this.isExecutableContentEmpty=function(){for(var H=B(),C=0;C<H.length;C++)if(0<H[C].getItemModelCount())return!1;return!0};this.getBriefOutputableDimensionsAndMeasures=function(){var H=[],C=[];a.lookupAllItemModelSet(function(aa){aa=aa.getSquareField();(aa.isDimension()?H:C).push(aa)},!0);return[H,C]};this.lookupAllItemModelSet=function(H,C){for(var aa=!1,Sa=a.protectedGetAllItemModelSet(),Ta=0;Ta<Sa.length&&!(aa=Sa[Ta].traversalItems(H));Ta++);
!aa&&!C&&f&&f.traversalItems(H)};var B=function(){var H=a.protectedGetAllItemModelSet();f&&H.push(f);return H};this.protectedGetAllItemModelSet=function(){throw Error("Override me.");};this.checkAllFieldsProblem=function(){a.protectedCheckAllFieldsProblemImpl();f&&F(f);for(var H=B(),C=0;C<H.length;C++)for(var aa=H[C],Sa=0;Sa<aa.getItemModelCount();Sa++){var Ta=aa.getItemModel(Sa),qb=Ta.getSquareField();Ta=Ta.getMetaField();if(!qb.getInvalidPrompt()||qb.getInvalidPrompt().getLevel()==pb.InvalidPrompt_LEVEL_BAD_USAGE)if(qb.isMeasure()&&
!Ta.isCanAsMeasure()||qb.isDimension()&&!Ta.isCanAsDimension())Ta=new Fa.InvalidPrompt,Ta.setLevel(pb.InvalidPrompt_LEVEL_BAD_USAGE,!0),Ta.setPromptText(kb.get("invalidRole","\u7ef4\u5ea6/\u5ea6\u91cf\u7528\u6cd5\u4e0d\u6b63\u786e")),qb.setInvalidPrompt(Ta)}H=B();for(C=0;C<H.length;C++)for(aa=H[C],Sa=1,qb=0;qb<aa.getItemModelCount();qb++)if(Ta=aa.getItemModel(qb).getSquareField(),!Ta.getInvalidPrompt()||Ta.getInvalidPrompt().getLevel()==pb.InvalidPrompt_LEVEL_TOO_MANY){var Ba=Sa>aa.getItemCountMax(),
V=new Fa.InvalidPrompt;V.setLevel(pb.InvalidPrompt_LEVEL_TOO_MANY,Ba);Ta.setInvalidPrompt(V);Sa++}};this.protectedCheckAllFieldsProblemImpl=function(){throw Error("Override me.");};var F=function(H){H.traversalItems(function(C){C=C.getSquareField();var aa=!1,Sa=null;C.isDimension()||(aa=!0,Sa=kb.get("onlyDimensionAllowed","\u6b64\u5904\u53ea\u80fd\u51fa\u73b0\u7ef4\u5ea6\u3002"));var Ta=new Fa.InvalidPrompt;Ta.setLevel(pb.InvalidPrompt_LEVEL_BAD_USAGE,aa);Ta.setPromptText(Sa);C.setInvalidPrompt(Ta)})};
this.toJsonObject=function(H){H={};a.protectedToJsonObject(H);if(f){var C=H,aa={};aa.fields=a.getRollSet().toJsonObject(!0);var Sa=a.getRollInState(),Ta=Sa.getItemCount();if(0<Ta){for(var qb=[],Ba=0;Ba<Ta;Ba++){var V=Sa.getItem(Ba);qb.push(V.toJsonObject())}aa.state=qb}C.roll=aa}H.chartProperty=a.getChartProperty().toJsonObject(a);return H};this.fromJsonObject=function(H,C){a.protectedFromJsonObject(H,C);var aa=H.roll;if(aa){var Sa=aa.fields;aa=aa.state;a.getRollSet().fromJsonObject(pb,Sa,C,!0);if(aa){C=
[];for(Sa=0;Sa<aa.length;Sa++){var Ta=aa[Sa],qb=new Ma;qb.fromJsonObject(Ta);C.push(qb)}a.getRollInState().updateItems(C)}}a.getChartProperty().fromJsonObject(H.chartProperty,a)};this.protectedToJsonObject=function(H){throw Error("Override me.");};this.protectedFromJsonObject=function(H,C){throw Error("Override me.");};this.protectedMethod={createItemModelSet:L,checkProblemWithOnlyDimensionAllowed:F,checkProblemWithOnlyMeasureAllowed:function(H){H.traversalItems(function(C){C=C.getSquareField();var aa=
!1,Sa=null;C.isMeasure()||(aa=!0,Sa=kb.get("onlyMeasureAllowed","\u6b64\u5904\u53ea\u80fd\u51fa\u73b0\u5ea6\u91cf\u3002"));var Ta=new Fa.InvalidPrompt;Ta.setLevel(pb.InvalidPrompt_LEVEL_BAD_USAGE,aa);Ta.setPromptText(Sa);C.setInvalidPrompt(Ta)})},checkProblemAboutMultiSeriesMeasureSet:function(H,C){H=0<H.getItemModelCount();for(var aa=!1,Sa=0;Sa<C.getItemModelCount();Sa++){var Ta=C.getItemModel(Sa).getSquareField(),qb=!1,Ba=null;Ta.isMeasure()?(H&&aa&&(qb=!0,Ba=kb.get("seriesConflictPrompt","\u5df2\u4f7f\u7528\u7ef4\u5ea6\u503c\u8868\u793a\u591a\u4e2a\u7cfb\u5217\uff0c\u4e0d\u80fd\u540c\u65f6\u51fa\u73b0\u591a\u4e2a\u5ea6\u91cf\u3002")),
aa=!0):(qb=!0,Ba=kb.get("onlyMeasureAllowed","\u6b64\u5904\u53ea\u80fd\u51fa\u73b0\u5ea6\u91cf\u3002"));var V=new Fa.InvalidPrompt;V.setLevel(pb.InvalidPrompt_LEVEL_BAD_USAGE,qb);V.setPromptText(Ba);Ta.setInvalidPrompt(V)}}}}function x(){this.isLinkageSupported=function(){return!0}}function A(){w.call(this);x.call(this);var a=this,l=this.protectedMethod,n,f;this.getChartTypeName=function(){return eb.ChartType_KPI};this.getPrimarySet=function(){n||(n=l.createItemModelSet());return n};this.getSecondarySet=
function(){f||(f=l.createItemModelSet());return f};this.protectedCreateChartProperty=function(){return new ib};this.protectedCheckAllFieldsProblemImpl=function(){l.checkProblemWithOnlyMeasureAllowed(a.getPrimarySet());l.checkProblemWithOnlyMeasureAllowed(a.getSecondarySet())};this.protectedGetAllItemModelSet=function(){return[a.getPrimarySet(),a.getSecondarySet()]};this.protectedToJsonObject=function(m){m.primary=a.getPrimarySet().toJsonObject();m.secondary=a.getSecondarySet().toJsonObject()};this.protectedFromJsonObject=
function(m,h){a.getPrimarySet().fromJsonObject(pb,m.primary,h);a.getSecondarySet().fromJsonObject(pb,m.secondary,h)}}function N(){w.call(this);x.call(this);var a=this,l=this.protectedMethod,n,f;this.getBeRolledSet=function(){return a.getColorSet()};this.getAngleSet=function(){n||(n=l.createItemModelSet(!1,!0));return n};this.getColorSet=function(){f||(f=l.createItemModelSet());return f};this.protectedCheckAllFieldsProblemImpl=function(){l.checkProblemWithOnlyDimensionAllowed(a.getColorSet());l.checkProblemWithOnlyMeasureAllowed(a.getAngleSet())};
this.protectedGetAllItemModelSet=function(){return[a.getAngleSet(),a.getColorSet()]};this.protectedToJsonObject=function(m){m.angle=a.getAngleSet().toJsonObject();m.color=a.getColorSet().toJsonObject()};this.protectedFromJsonObject=function(m,h){a.getAngleSet().fromJsonObject(pb,m.angle,h);a.getColorSet().fromJsonObject(pb,m.color,h)}}function ba(){N.call(this);this.getChartTypeName=function(){return eb.ChartType_Pie};this.protectedCreateChartProperty=function(){return new $a}}function ca(){N.call(this);
this.getChartTypeName=function(){return eb.ChartType_Ring};this.protectedCreateChartProperty=function(){return new La}}function M(){N.call(this);this.getChartTypeName=function(){return eb.ChartType_Rose};this.protectedCreateChartProperty=function(){return new ab}}function ia(){w.call(this);var a=this,l=this.protectedMethod,n,f,m;this.getBeRolledSet=function(){return a.getXAxis()};this.getXAxis=function(){n||(n=l.createItemModelSet());return n};this.getYAxis=function(){f||(f=l.createItemModelSet(!0,
!0));return f};this.getSeries=function(){m||(m=l.createItemModelSet());return m};this.protectedCreateChartProperty=function(){return new la};this.protectedCheckAllFieldsProblemImpl=function(){l.checkProblemWithOnlyDimensionAllowed(a.getXAxis());l.checkProblemWithOnlyDimensionAllowed(a.getSeries());l.checkProblemAboutMultiSeriesMeasureSet(a.getSeries(),a.getYAxis())};this.protectedGetAllItemModelSet=function(){return[a.getXAxis(),a.getYAxis(),a.getSeries()]};this.protectedToJsonObject=function(h){h.xAxis=
a.getXAxis().toJsonObject();h.yAxis=a.getYAxis().toJsonObject();h.series=a.getSeries().toJsonObject()};this.protectedFromJsonObject=function(h,r){a.getXAxis().fromJsonObject(pb,h.xAxis,r);a.getYAxis().fromJsonObject(pb,h.yAxis,r);a.getSeries().fromJsonObject(pb,h.series,r)}}function sa(){w.call(this);var a=this,l=this.protectedMethod,n,f,m;this.getBeRolledSet=function(){return a.getYAxis()};this.getXAxis=function(){n||(n=l.createItemModelSet(!0,!0));return n};this.getYAxis=function(){f||(f=l.createItemModelSet());
return f};this.getSeries=function(){m||(m=l.createItemModelSet());return m};this.protectedCreateChartProperty=function(){return new tb};this.protectedCheckAllFieldsProblemImpl=function(){l.checkProblemWithOnlyDimensionAllowed(a.getYAxis());l.checkProblemWithOnlyDimensionAllowed(a.getSeries());l.checkProblemAboutMultiSeriesMeasureSet(a.getSeries(),a.getXAxis())};this.protectedGetAllItemModelSet=function(){return[a.getXAxis(),a.getYAxis(),a.getSeries()]};this.protectedToJsonObject=function(h){h.xAxis=
a.getXAxis().toJsonObject();h.yAxis=a.getYAxis().toJsonObject();h.series=a.getSeries().toJsonObject()};this.protectedFromJsonObject=function(h,r){a.getXAxis().fromJsonObject(pb,h.xAxis,r);a.getYAxis().fromJsonObject(pb,h.yAxis,r);a.getSeries().fromJsonObject(pb,h.series,r)}}function mb(){sa.call(this);x.call(this);this.getChartTypeName=function(){return eb.ChartType_Bar}}function Wa(){sa.call(this);x.call(this);this.getChartTypeName=function(){return eb.ChartType_StackedBar}}function xb(){sa.call(this);
x.call(this);this.getChartTypeName=function(){return eb.ChartType_PercentStackedBar};this.protectedCreateChartProperty=function(){return new lb}}function gb(){ia.call(this);x.call(this);this.getChartTypeName=function(){return eb.ChartType_Column}}function fb(){ia.call(this);x.call(this);this.getChartTypeName=function(){return eb.ChartType_StackedColumn}}function Da(){ia.call(this);x.call(this);this.getChartTypeName=function(){return eb.ChartType_PercentStackedColumn};this.protectedCreateChartProperty=
function(){return new Jb}}function Y(){ia.call(this);x.call(this);this.getChartTypeName=function(){return eb.ChartType_Line};this.protectedCreateChartProperty=function(){return new Gb}}function z(){ia.call(this);x.call(this);this.getChartTypeName=function(){return eb.ChartType_Area};this.protectedCreateChartProperty=function(){var a=new la;a.setSortSupported(!1);return a}}function D(){ia.call(this);x.call(this);this.getChartTypeName=function(){return eb.ChartType_PercentArea};this.protectedCreateChartProperty=
function(){var a=new Jb;a.setSortSupported(!1);return a}}function I(){w.call(this);var a=this,l=this.protectedMethod,n,f,m;this.getChartTypeName=function(){return eb.ChartType_Map};this.getDimensionSet=function(){n||(n=l.createItemModelSet());return n};this.getMeasureSet=function(){f||(f=l.createItemModelSet());return f};this.getInfomationSet=function(){m||(m=l.createItemModelSet(!0),m.setItemCountMax(8));return m};this.getBriefOutputableDimensionsAndMeasures=function(){var h=[],r=[],k=function(v){v=
v.getSquareField();(v.isDimension()?h:r).push(v)};a.getDimensionSet().traversalItems(k);a.getMeasureSet().traversalItems(k);return[h,r]};this.protectedCreateChartProperty=function(){return new Ga};this.protectedCheckAllFieldsProblemImpl=function(){l.checkProblemWithOnlyDimensionAllowed(a.getDimensionSet());l.checkProblemWithOnlyMeasureAllowed(a.getMeasureSet())};this.protectedGetAllItemModelSet=function(){return[a.getDimensionSet(),a.getMeasureSet(),a.getInfomationSet()]};this.protectedToJsonObject=
function(h){h.dimension=a.getDimensionSet().toJsonObject();h.measure=a.getMeasureSet().toJsonObject();h.infomation=a.getInfomationSet().toJsonObject()};this.protectedFromJsonObject=function(h,r){a.getDimensionSet().fromJsonObject(pb,h.dimension,r);a.getMeasureSet().fromJsonObject(pb,h.measure,r);a.getInfomationSet().fromJsonObject(pb,h.infomation,r)}}function P(){w.call(this);var a=this,l=this.protectedMethod,n,f,m,h,r;this.getChartTypeName=function(){return eb.ChartType_GIS};this.getCoordinateSet=
function(){n||(n=l.createItemModelSet(),n.setItemCountMin(2),n.setItemCountMax(2));return n};this.getColorSet=function(){f||(f=l.createItemModelSet(!1,!1));return f};this.getSizeSet=function(){m||(m=l.createItemModelSet(!1,!1));return m};this.getCaptionSet=function(){h||(h=l.createItemModelSet(!1,!1));return h};this.getInfomationSet=function(){r||(r=l.createItemModelSet(!0),r.setItemCountMax(8));return r};this.getBriefOutputableDimensionsAndMeasures=function(){var k=[],v=[],y=function(L){L=L.getSquareField();
(L.isDimension()?k:v).push(L)};a.getCoordinateSet().traversalItems(y);a.getSizeSet().traversalItems(y);return[k,v]};this.protectedCreateChartProperty=function(){return new hb};this.protectedCheckAllFieldsProblemImpl=function(){l.checkProblemWithOnlyDimensionAllowed(a.getCoordinateSet());l.checkProblemWithOnlyDimensionAllowed(a.getColorSet());l.checkProblemWithOnlyDimensionAllowed(a.getCaptionSet());l.checkProblemWithOnlyMeasureAllowed(a.getSizeSet())};this.protectedGetAllItemModelSet=function(){return[a.getCoordinateSet(),
a.getColorSet(),a.getSizeSet(),a.getCaptionSet(),a.getInfomationSet()]};this.protectedToJsonObject=function(k){k.coordinate=a.getCoordinateSet().toJsonObject();k.color=a.getColorSet().toJsonObject();k.size=a.getSizeSet().toJsonObject();k.caption=a.getCaptionSet().toJsonObject();k.infomation=a.getInfomationSet().toJsonObject()};this.protectedFromJsonObject=function(k,v){a.getCoordinateSet().fromJsonObject(pb,k.coordinate,v);a.getColorSet().fromJsonObject(pb,k.color,v);a.getSizeSet().fromJsonObject(pb,
k.size,v);a.getCaptionSet().fromJsonObject(pb,k.caption,v);a.getInfomationSet().fromJsonObject(pb,k.infomation,v)}}function O(){w.call(this);var a=this,l=this.protectedMethod,n,f;this.getChartTypeName=function(){return eb.ChartType_Radar};this.protectedCreateChartProperty=function(){return new ma};this.getDimensionSet=function(){var m=a.getChartProperty().getOuterCircle()==ma.OUTER_CIRCLE_MEASURE;n||(n=l.createItemModelSet(!0,!0));n.setItemCountMin(m?0:1);return n};this.getMeasureSet=function(){f||
(f=l.createItemModelSet(!0,!0));return f};this.protectedCheckAllFieldsProblemImpl=function(){for(var m=a.getDimensionSet(),h=a.getMeasureSet(),r=a.getChartProperty().getOuterCircle()==ma.OUTER_CIRCLE_DIMENSION,k=1<m.getItemModelCount(),v=!1,y=0;y<h.getItemModelCount();y++){var L=h.getItemModel(y);L=L.getSquareField();var B=!1,F=null;L.isMeasure()?(r&&k&&v&&(B=!0,F=kb.get("seriesConflictPrompt","\u5df2\u4f7f\u7528\u7ef4\u5ea6\u503c\u8868\u793a\u591a\u4e2a\u7cfb\u5217\uff0c\u4e0d\u80fd\u540c\u65f6\u51fa\u73b0\u591a\u4e2a\u5ea6\u91cf\u3002")),
v=!0):(B=!0,F=kb.get("onlyMeasureAllowed","\u6b64\u5904\u53ea\u80fd\u51fa\u73b0\u5ea6\u91cf\u3002"));var H=new Fa.InvalidPrompt;H.setLevel(pb.InvalidPrompt_LEVEL_BAD_USAGE,B);H.setPromptText(F);L.setInvalidPrompt(H)}h=r?2:1;for(y=0;y<m.getItemModelCount();y++)L=m.getItemModel(y),L=L.getSquareField(),B=!1,F=null,L.isMeasure()?(B=!0,F=kb.get("onlyDimensionAllowed","\u6b64\u5904\u53ea\u80fd\u51fa\u73b0\u7ef4\u5ea6\u3002")):(0>=h&&(F=kb.get("exceedCountLimit","\u8d85\u51fa\u4e2a\u6570\u9650\u5236"),B=
!0),h--),H=new Fa.InvalidPrompt,H.setLevel(pb.InvalidPrompt_LEVEL_BAD_USAGE,B),H.setPromptText(F),L.setInvalidPrompt(H)};this.protectedGetAllItemModelSet=function(){return[a.getDimensionSet(),a.getMeasureSet()]};this.protectedToJsonObject=function(m){m.dimension=a.getDimensionSet().toJsonObject();m.measure=a.getMeasureSet().toJsonObject()};this.protectedFromJsonObject=function(m,h){a.getDimensionSet().fromJsonObject(pb,m.dimension,h);a.getMeasureSet().fromJsonObject(pb,m.measure,h)}}function R(){w.call(this);
var a=this.protectedMethod,l=this,n,f,m;this.getDimension=function(){m||(m=a.createItemModelSet(!1,!1));return m};this.getDesired=function(){n||(n=a.createItemModelSet(!1,!0));return n};this.getCompleted=function(){f||(f=a.createItemModelSet(!1,!0));return f};this.protectedCheckAllFieldsProblemImpl=function(){a.checkProblemWithOnlyMeasureAllowed(l.getDesired());a.checkProblemWithOnlyMeasureAllowed(l.getCompleted());a.checkProblemWithOnlyDimensionAllowed(l.getDimension())};this.protectedToJsonObject=
function(h){h.desired=l.getDesired().toJsonObject();h.completed=l.getCompleted().toJsonObject();h.dimension=l.getDimension().toJsonObject()};this.protectedFromJsonObject=function(h,r){l.getDimension().fromJsonObject(pb,h.dimension,r);l.getDesired().fromJsonObject(pb,h.desired,r);l.getCompleted().fromJsonObject(pb,h.completed,r)};this.protectedGetAllItemModelSet=function(){return[l.getDimension(),l.getDesired(),l.getCompleted()]}}function Z(){R.call(this);x.call(this);var a=this;this.getChartTypeName=
function(){return eb.ChartType_ProgressBar};this.protectedCreateChartProperty=function(){return new ta};this.getBeRolledSet=function(){return a.getDimension()};this.getXAxis=function(){var l=new zb,n=a.getCompleted().getItemModel(0),f=a.getDesired().getItemModel(0);f&&l.addItemModel(f);n&&l.addItemModel(n);return l}}function G(){R.call(this);x.call(this);var a=this;this.getChartTypeName=function(){return eb.ChartType_ProgressColumn};this.protectedCreateChartProperty=function(){return new ka};this.getBeRolledSet=
function(){return a.getDimension()};this.getYAxis=function(){var l=new zb,n=a.getCompleted().getItemModel(0),f=a.getDesired().getItemModel(0);f&&l.addItemModel(f);n&&l.addItemModel(n);return l}}function J(){R.call(this);x.call(this);this.getChartTypeName=function(){return eb.ChartType_ProgressCircle};this.protectedCreateChartProperty=function(){var a=new p;a.setShowLegend(W.ShowLegend_Bottom);return a}}function ja(){w.call(this);x.call(this);var a=this,l=this.protectedMethod,n;this.getChartTypeName=
function(){return eb.ChartType_Dial};this.protectedCreateChartProperty=function(){return new ra};this.getMeasureSet=function(){n||(n=l.createItemModelSet(!1,!0));return n};this.protectedCheckAllFieldsProblemImpl=function(){l.checkProblemWithOnlyMeasureAllowed(a.getMeasureSet())};this.protectedGetAllItemModelSet=function(){return[a.getMeasureSet()]};this.protectedToJsonObject=function(f){f.measure=a.getMeasureSet().toJsonObject()};this.protectedFromJsonObject=function(f,m){a.getMeasureSet().fromJsonObject(pb,
f.measure,m)}}function Q(){w.call(this);x.call(this);var a=this,l=this.protectedMethod,n,f,m,h,r;this.getChartTypeName=function(){return eb.ChartType_Composite};this.getBeRolledSet=function(){return a.getXAxis()};this.protectedCreateChartProperty=function(){return new ea};this.getXAxis=function(){n||(n=l.createItemModelSet(!1,!1));return n};this.getLeftYAxis=function(){f||(f=l.createItemModelSet(!0,!0));return f};this.getRightYAxis=function(){m||(m=l.createItemModelSet(!0,!0));return m};this.getLeftSeries=
function(){h||(h=l.createItemModelSet(!1,!1));return h};this.getRightSeries=function(){r||(r=l.createItemModelSet(!1,!1));return r};this.protectedGetAllItemModelSet=function(){return[a.getXAxis(),a.getLeftYAxis(),a.getRightYAxis(),a.getLeftSeries(),a.getRightSeries()]};this.protectedCheckAllFieldsProblemImpl=function(){l.checkProblemWithOnlyDimensionAllowed(a.getXAxis());l.checkProblemWithOnlyMeasureAllowed(a.getLeftYAxis());l.checkProblemWithOnlyMeasureAllowed(a.getRightYAxis());l.checkProblemWithOnlyDimensionAllowed(a.getLeftSeries());
l.checkProblemWithOnlyDimensionAllowed(a.getRightSeries());l.checkProblemAboutMultiSeriesMeasureSet(a.getLeftSeries(),a.getLeftYAxis());l.checkProblemAboutMultiSeriesMeasureSet(a.getRightSeries(),a.getRightYAxis())};this.protectedToJsonObject=function(k){k.xAxis=a.getXAxis().toJsonObject();k.leftYAxis=a.getLeftYAxis().toJsonObject();k.leftSeries=a.getLeftSeries().toJsonObject();k.rightYAxis=a.getRightYAxis().toJsonObject();k.rightSeries=a.getRightSeries().toJsonObject()};this.protectedFromJsonObject=
function(k,v){a.getXAxis().fromJsonObject(pb,k.xAxis,v);a.getLeftYAxis().fromJsonObject(pb,k.leftYAxis,v);a.getLeftSeries().fromJsonObject(pb,k.leftSeries,v);a.getRightYAxis().fromJsonObject(pb,k.rightYAxis,v);a.getRightSeries().fromJsonObject(pb,k.rightSeries,v)}}function T(){w.call(this);x.call(this);var a=this,l=this.protectedMethod,n;this.getChartTypeName=function(){return eb.ChartType_Grid};this.protectedCreateChartProperty=function(){return new U};this.getColumnSet=function(){n||(n=l.createItemModelSet(!0,
!0),n.setItemCountMax(20));return n};this.protectedGetAllItemModelSet=function(){return[a.getColumnSet()]};this.protectedCheckAllFieldsProblemImpl=function(){for(var f=a.getColumnSet(),m=0;m<f.getItemModelCount();m++){var h=new Fa.InvalidPrompt;h.setLevel(pb.InvalidPrompt_LEVEL_BAD_USAGE,!1);f.getItemModel(m).setInvalidPrompt(h)}};this.protectedToJsonObject=function(f){f.columnSet=a.getColumnSet().toJsonObject()};this.protectedFromJsonObject=function(f,m){a.getColumnSet().fromJsonObject(pb,f.columnSet,
m)}}function za(){w.call(this);x.call(this);var a=this,l=this.protectedMethod,n;this.getChartTypeName=function(){return eb.ChartType_CustomList};this.protectedCreateChartProperty=function(){var f=new E,m=f.getDesigningWidth(),h=4,r=4,k=m-8,v=new g;v.setRectangle(h,r,k,20);v.setFieldIndex(0);v.getCustomStyle().setFontSize(14);v.getCustomStyle().setBold(!0);r=r+20+0;var y=Math.round(.6*m);k=new g;k.setRectangle(h,r,y,20);k.setFieldIndex(1);k.getCustomStyle().setFontSize(12);h=h+y+4;y=m-4-h;m=new g;
m.setRectangle(h,r,y,20);m.setFieldIndex(2);m.getCustomStyle().setAlign("right");m.getCustomStyle().setFontSize(12);h=r+20+4;r=new u;r.setRowHeight(h);r.setContentAreas([v,k,m]);f.setCustomDesign(null,r,null);return f};this.getFieldSet=function(){n||(n=l.createItemModelSet(!0,!0),n.setItemCountMax(20));return n};this.protectedGetAllItemModelSet=function(){return[a.getFieldSet()]};this.protectedCheckAllFieldsProblemImpl=function(){for(var f=a.getFieldSet(),m=0;m<f.getItemModelCount();m++){var h=new Fa.InvalidPrompt;
h.setLevel(pb.InvalidPrompt_LEVEL_BAD_USAGE,!1);f.getItemModel(m).setInvalidPrompt(h)}};this.protectedToJsonObject=function(f){f.fieldSet=a.getFieldSet().toJsonObject()};this.protectedFromJsonObject=function(f,m){a.getFieldSet().fromJsonObject(pb,f.fieldSet,m)}}function da(){w.call(this);var a=this,l=this.protectedMethod,n,f,m;this.getChartTypeName=function(){return eb.ChartType_Waterfall};this.getStageSet=function(){n||(n=l.createItemModelSet(!1,!1));return n};this.getClauseSet=function(){f||(f=
l.createItemModelSet(!1,!0));return f};this.getMeasureSet=function(){m||(m=l.createItemModelSet(!1,!0));return m};this.protectedCreateChartProperty=function(){return new e};this.protectedCheckAllFieldsProblemImpl=function(){l.checkProblemWithOnlyDimensionAllowed(a.getStageSet());l.checkProblemWithOnlyDimensionAllowed(a.getClauseSet());l.checkProblemWithOnlyMeasureAllowed(a.getMeasureSet())};this.protectedGetAllItemModelSet=function(){return[a.getStageSet(),a.getClauseSet(),a.getMeasureSet()]};this.protectedToJsonObject=
function(h){h.stage=a.getStageSet().toJsonObject();h.clause=a.getClauseSet().toJsonObject();h.measure=a.getMeasureSet().toJsonObject()};this.protectedFromJsonObject=function(h,r){a.getStageSet().fromJsonObject(pb,h.stage,r);a.getClauseSet().fromJsonObject(pb,h.clause,r);a.getMeasureSet().fromJsonObject(pb,h.measure,r)}}function Aa(){w.call(this);x.call(this);var a=this,l=this.protectedMethod,n,f;this.getChartTypeName=function(){return eb.ChartType_Funnel};this.getDimensionSet=function(){n||(n=l.createItemModelSet(!1,
!1));return n};this.getMeasureSet=function(){f||(f=l.createItemModelSet(!0,!0),f.setItemCountMax(10));return f};this.protectedCreateChartProperty=function(){var m=new c;m.setShowLegend(W.ShowLegend_Non);return m};this.protectedCheckAllFieldsProblemImpl=function(){l.checkProblemWithOnlyDimensionAllowed(a.getDimensionSet());l.checkProblemWithOnlyMeasureAllowed(a.getMeasureSet());l.checkProblemAboutMultiSeriesMeasureSet(a.getDimensionSet(),a.getMeasureSet())};this.protectedGetAllItemModelSet=function(){return[a.getDimensionSet(),
a.getMeasureSet()]};this.protectedToJsonObject=function(m){m.dimension=a.getDimensionSet().toJsonObject();m.measure=a.getMeasureSet().toJsonObject()};this.protectedFromJsonObject=function(m,h){a.getDimensionSet().fromJsonObject(pb,m.dimension,h);a.getMeasureSet().fromJsonObject(pb,m.measure,h)}}function Za(){w.call(this);var a=this,l=this.protectedMethod,n,f,m,h,r;this.getChartTypeName=function(){return eb.ChartType_Scatter};this.getXAxisFieldSet=function(){!n&&(n=l.createItemModelSet(!1,!1));return n};
this.getYAxisFieldSet=function(){!f&&(f=l.createItemModelSet(!1,!1));return f};this.getZAxisFieldSet=function(){!m&&(m=l.createItemModelSet(!1,!1));return m};this.getCategoryFieldSet=function(){!h&&(h=l.createItemModelSet(!1,!1));return h};this.getSeriesFieldSet=function(){!r&&(r=l.createItemModelSet(!1,!1));return r};this.protectedCreateChartProperty=function(){return new b};this.protectedCheckAllFieldsProblemImpl=function(){l.checkProblemWithOnlyMeasureAllowed(a.getXAxisFieldSet());l.checkProblemWithOnlyMeasureAllowed(a.getYAxisFieldSet());
l.checkProblemWithOnlyMeasureAllowed(a.getZAxisFieldSet());l.checkProblemWithOnlyDimensionAllowed(a.getCategoryFieldSet());l.checkProblemWithOnlyDimensionAllowed(a.getSeriesFieldSet())};this.protectedGetAllItemModelSet=function(){return[a.getXAxisFieldSet(),a.getYAxisFieldSet(),a.getZAxisFieldSet(),a.getCategoryFieldSet(),a.getSeriesFieldSet()]};this.protectedToJsonObject=function(k){k.xAxis=a.getXAxisFieldSet().toJsonObject();k.yAxis=a.getYAxisFieldSet().toJsonObject();k.zAxis=a.getZAxisFieldSet().toJsonObject();
k.category=a.getCategoryFieldSet().toJsonObject();k.series=a.getSeriesFieldSet().toJsonObject()};this.protectedFromJsonObject=function(k,v){a.getXAxisFieldSet().fromJsonObject(pb,k.xAxis,v);a.getYAxisFieldSet().fromJsonObject(pb,k.yAxis,v);a.getZAxisFieldSet().fromJsonObject(pb,k.zAxis,v);a.getCategoryFieldSet().fromJsonObject(pb,k.category,v);a.getSeriesFieldSet().fromJsonObject(pb,k.series,v)}}function sb(){w.call(this);var a=this,l=this.protectedMethod,n,f,m;this.getChartTypeName=function(){return eb.ChartType_RectTree};
this.getSizeSet=function(){!n&&(n=l.createItemModelSet(!1,!0));return n};this.getDimensionSet=function(){f||(f=l.createItemModelSet(!0,!1),f.setItemCountMax(5));return f};this.getColorSet=function(){!m&&(m=l.createItemModelSet(!1,!1));return m};this.protectedCreateChartProperty=function(){return new q};this.protectedCheckAllFieldsProblemImpl=function(){l.checkProblemWithOnlyMeasureAllowed(a.getSizeSet());l.checkProblemWithOnlyDimensionAllowed(a.getDimensionSet())};this.protectedGetAllItemModelSet=
function(){return[a.getSizeSet(),a.getDimensionSet(),a.getColorSet()]};this.protectedToJsonObject=function(h){h.measure=a.getSizeSet().toJsonObject();h.dimension=a.getDimensionSet().toJsonObject();h.color=a.getColorSet().toJsonObject()};this.protectedFromJsonObject=function(h,r){a.getSizeSet().fromJsonObject(pb,h.measure,r);a.getDimensionSet().fromJsonObject(pb,h.dimension,r);a.getColorSet().fromJsonObject(pb,h.color,r)}}function Ab(){w.call(this);var a=this,l=this.protectedMethod,n,f;this.getChartTypeName=
function(){return eb.ChartType_Sunburst};this.getSizeSet=function(){!n&&(n=l.createItemModelSet(!1,!0));return n};this.getDimensionSet=function(){f||(f=l.createItemModelSet(!0,!0),f.setItemCountMin(2),f.setItemCountMax(5));return f};this.protectedCreateChartProperty=function(){var m=new t;m.setShowLegend(W.ShowLegend_Non);m.setShowLabel(!0);return m};this.protectedCheckAllFieldsProblemImpl=function(){l.checkProblemWithOnlyMeasureAllowed(a.getSizeSet());l.checkProblemWithOnlyDimensionAllowed(a.getDimensionSet())};
this.protectedGetAllItemModelSet=function(){return[a.getSizeSet(),a.getDimensionSet()]};this.protectedToJsonObject=function(m){m.measure=a.getSizeSet().toJsonObject();m.dimension=a.getDimensionSet().toJsonObject()};this.protectedFromJsonObject=function(m,h){a.getSizeSet().fromJsonObject(pb,m.measure,h);a.getDimensionSet().fromJsonObject(pb,m.dimension,h)}}"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.square&&(com.kingdee.bos.qing.square={});"undefined"==typeof com.kingdee.bos.qing.square.model&&(com.kingdee.bos.qing.square.model={});var xa=com.kingdee.bos.qing.square.model;xa.SquarePreferences=function(){var a=new ua,l=new Ra;this.getPreviewSetup=function(){return a};this.setPreviewSetup=function(f){a=f;n(a)};this.addPreviewSetupChangedListener=function(f){l.addListener(f)};this.removePreviewSetupChangedListener=
function(f){l.removeListener(f)};var n=function(f){l.fireEvent(function(m){m(f)})};this.toJsonObject=function(){var f={};f.previewSetup=a.toJsonObject();return f};this.fromJsonObject=function(f){(f=f.previewSetup)&&a.fromJsonObject(f)}};xa.PreviewSetupItem=function(a,l,n,f,m,h){var r=this,k;this.getDisplayText=function(){var v=a,y=r.getPreviewSetup();y.isFullArea()||(v=v+" ("+y.getWidth(),v=v+"*"+y.getHeight(),v+=")");return v};this.getPreviewSetup=function(){k||(k=new ua,k.fromJsonObject({width:l,
height:n,paddingLeft:h,paddingRight:h,paddingTop:f,paddingBottom:m}));return k}};xa.SquareModel=eb;xa.SquareField=pb;xa.FilterItemModel=S;xa.ItemModelSet=zb;xa.RollInStateItem=Ma;xa.AbstractChartProperty=W;xa.AbstractPieChartProperty=Na;xa.AbstractLineChartProperty=pa;xa.PieChartProperty=$a;xa.RingChartProperty=La;xa.RoseChartProperty=ab;xa.XSYNChartProperty=la;xa.YSXNChartProperty=tb;xa.LineChartProperty=Gb;xa.KPIChartProperty=ib;xa.MapChartProperty=Ga;xa.GISChartProperty=hb;xa.RadarChartProperty=
ma;xa.AbstractProgressChartProperty=ha;xa.ProgressBarChartProperty=ta;xa.ProgressColumnChartProperty=ka;xa.ProgressCircleChartProperty=p;xa.CompositeChartProperty=ea;xa.AbstractListChartProperty=Ca;xa.GridChartProperty=U;xa.CustomListChartProperty=E;xa.WaterfallChartProperty=e;xa.FunnelChartProperty=c;xa.ScatterChartProperty=b;xa.DialChartProperty=ra;xa.RectTreeChartProperty=q;xa.SunburstChartProperty=t;xa.SortAccording=wa;xa.KPICustomStyles=nb;xa.TooltipsAutoDisplay=Va;xa.ChartKPI=A;xa.ChartPie=
ba;xa.ChartRing=ca;xa.ChartRose=M;xa.ChartColumn=gb;xa.ChartStackColumn=fb;xa.ChartPercentStackColumn=Da;xa.ChartBar=mb;xa.ChartStackBar=Wa;xa.ChartPercentStackBar=xb;xa.ChartLine=Y;xa.ChartArea=z;xa.ChartPercentArea=D;xa.ChartMap=I;xa.ChartGIS=P;xa.ChartRadar=O;xa.ChartProgressBar=Z;xa.ChartProgressColumn=G;xa.ChartProgressCircle=J;xa.ChartComposite=Q;xa.ChartGrid=T;xa.ChartCustomList=za;xa.ChartWaterfall=da;xa.ChartFunnel=Aa;xa.ChartScatter=Za;xa.ChartDial=ja;xa.ChartRectTree=sb;xa.ChartSunburst=
Ab;var Ra,kb,Db,Ub,$b,Cb,Nb,ac,cc,na,Fa,Qa,Ua,Ka,Xa,db,ub,Ob,Zb,Fb,ob;(function(){var a=com.kingdee.bos.qing.common;Ra=a.EventListenerList;a=com.kingdee.bos.qing.framework.common;kb=a.MultilanguageManager.createPackageAccessor(xa);a=com.kingdee.bos.qing.chart.model;Db=a.AbstractAttr;Ub=a.PieAttr;$b=a.DialAttr;Cb=a.FunnelAttr;Nb=a.CustomListAttr;a=com.kingdee.bos.qing.core.model;ac=a.Meta;cc=a.MetaField;na=a.AbstractQingModel;Fa=a.AbstractAnalyticalField;Qa=a.DiscreteFilter;Ua=a.ContinuousFilter;Ka=
a.ContinuousDateFilter;Xa=a.Refline;db=a.Palette;ub=a.ContinuousColor;Ob=a.OutsideReference;Zb=a.BriefOutputableFields;Fb=a.LinkTargets;ob=a.CommonStyle})();eb.KEY_CHART_TYPE="chartModelInstance";eb.ChartType_KPI="KPI";eb.ChartType_Pie="Pie";eb.ChartType_Ring="Ring";eb.ChartType_Rose="Rose";eb.ChartType_Column="Column";eb.ChartType_StackedColumn="StackedColumn";eb.ChartType_PercentStackedColumn="PercentStackedColumn";eb.ChartType_Bar="Bar";eb.ChartType_StackedBar="StackedBar";eb.ChartType_PercentStackedBar=
"PercentStackedBar";eb.ChartType_Line="Line";eb.ChartType_Area="Area";eb.ChartType_PercentArea="PercentArea";eb.ChartType_Map="Map";eb.ChartType_GIS="GIS";eb.ChartType_Radar="Radar";eb.ChartType_ProgressBar="ProgressBar";eb.ChartType_ProgressColumn="ProgressColumn";eb.ChartType_ProgressCircle="ProgressCircle";eb.ChartType_Composite="Composite";eb.ChartType_Grid="Grid";eb.ChartType_CustomList="CustomList";eb.ChartType_Waterfall="Waterfall";eb.ChartType_Funnel="Funnel";eb.ChartType_Scatter="Scatter";
eb.ChartType_Dial="Dial";eb.ChartType_RectTree="RectTree";eb.ChartType_Sunburst="Sunburst";pb.InvalidPrompt_LEVEL_BAD_USAGE=100;pb.InvalidPrompt_LEVEL_TOO_MANY=101;zb.KEY_ADD="ItemModelSet.add";zb.KEY_REMOVE="ItemModelSet.remove";zb.KEY_MOVE="ItemModelSet.move";S.KEY_FILTER_VALUE="filterValue";Ja.KEY_STATE_CHANGED="rollInStateChanged";var qa={Prefix:"P_",NeedRepaint:"_REP",NeedExecute:"_EXE"};W.KEY_TITLE=qa.Prefix+"title";W.KEY_SHOW_LABEL=qa.Prefix+"showLabel"+qa.NeedRepaint;W.KEY_LABEL_OVERLAPPABLE=
qa.Prefix+"labelOverlappable"+qa.NeedRepaint;W.KEY_LABEL_FORMAT=qa.Prefix+"labelFormat"+qa.NeedRepaint;W.KEY_SHOW_LEGEND=qa.Prefix+"showLegend"+qa.NeedExecute;W.KEY_SHOW_DATA_EMPTY_TIPS=qa.Prefix+"showDataEmptyTips"+qa.NeedExecute;W.KEY_DESCRIPTION=qa.Prefix+"description";W.KEY_LINKAGE=qa.Prefix+"linkage";W.KEY_STYLE_SCRIPTS=qa.Prefix+"styleScripts"+qa.NeedExecute;W.KEY_PALETTE=qa.Prefix+"palette"+qa.NeedExecute;W.KEY_ANIMATION=qa.Prefix+"animation"+qa.NeedRepaint;W.KEY_TOOLTIPS_AUTO_DISPLAY=qa.Prefix+
"tooltipsAutoDisplay"+qa.NeedRepaint;W.KEY_NEGATIVE=qa.Prefix+"negative"+qa.NeedExecute;W.KEY_LEGEND_FORMAT=qa.Prefix+"legendFormat"+qa.NeedExecute;W.KEY_CONTINUOUS_COLOR=qa.Prefix+"continuousColor"+qa.NeedExecute;W.ShowLegend_Non="NON";W.ShowLegend_Right="RIGHT";W.ShowLegend_Bottom="BOTTOM";W.RulerScale_Auto="AUTO";W.RulerScale_Linear="LINEAR";W.RulerScale_Log="LOG";W.RulerStart_Zero="ZERO";W.RulerStart_Nonzero="NONZERO";W.ShowDataEmptyTips_Auto="AUTO";W.ShowDataEmptyTips_Yes="YES";W.ShowDataEmptyTips_No=
"NO";Ga.KEY_TEMPLATE_REF=qa.Prefix+"mapOutsideReference"+qa.NeedRepaint;Ga.KEY_REGION_MAPPING=qa.Prefix+"mapRegionMapping"+qa.NeedRepaint;hb.KEY_USAGE=qa.Prefix+"gisUsage"+qa.NeedExecute;hb.KEY_THIRD=qa.Prefix+"gisThird"+qa.NeedRepaint;hb.KEY_SCRIPT=qa.Prefix+"gisScript"+qa.NeedRepaint;hb.USAGE_MARKER="MARKER";hb.USAGE_BUBBLE="BUBBLE";ib.KEY_CAPTION=qa.Prefix+"caption"+qa.NeedExecute;ib.KEY_P_DISPLAY=qa.Prefix+"primaryString"+qa.NeedExecute;ib.KEY_S_DISPLAY=qa.Prefix+"secondaryString"+qa.NeedExecute;
ib.KEY_P_DATA_EMPTY_INSTEAD=qa.Prefix+"dataEmptyInstead"+qa.NeedExecute;ib.KEY_P_CUSTOM_STYLES=qa.Prefix+"customStyles"+qa.NeedExecute;la.KEY_X_UNIT_TEXT=qa.Prefix+"xUnitText"+qa.NeedRepaint;la.KEY_X_ASSISTANT_LINE=qa.Prefix+"xAssistantLine"+qa.NeedRepaint;la.KEY_Y_UNIT_TEXT=qa.Prefix+"yUnitText"+qa.NeedRepaint;la.KEY_Y_FORMAT=qa.Prefix+"yFormat"+qa.NeedRepaint;la.KEY_Y_RULER_SCALE=qa.Prefix+"yRulerScale"+qa.NeedRepaint;la.KEY_Y_RULER_START=qa.Prefix+"yRulerStart"+qa.NeedRepaint;la.KEY_REFLINES=qa.Prefix+
"reflines"+qa.NeedExecute;la.KEY_SORT=qa.Prefix+"sort"+qa.NeedExecute;pa.KEY_SMOOTH=qa.Prefix+"smooth"+qa.NeedRepaint;pa.KEY_PAINT_POINT=qa.Prefix+"paintPoint"+qa.NeedRepaint;pa.KEY_CONNECT_NULL_AS=qa.Prefix+"connectNullAs"+qa.NeedRepaint;pa.CONNECT_NULL_AS_DIRECTION=0;pa.CONNECT_NULL_AS_ZERO=1;Gb.KEY_TOOLTIPS_SORTED=qa.Prefix+"tooltipsSorted"+qa.NeedRepaint;tb.KEY_Y_UNIT_TEXT=qa.Prefix+"yUnitText"+qa.NeedRepaint;tb.KEY_X_UNIT_TEXT=qa.Prefix+"xUnitText"+qa.NeedRepaint;tb.KEY_X_FORMAT=qa.Prefix+"xFormat"+
qa.NeedRepaint;tb.KEY_X_RULER_SCALE=qa.Prefix+"xRulerScale"+qa.NeedRepaint;tb.KEY_X_RULER_START=qa.Prefix+"xRulerStart"+qa.NeedRepaint;tb.KEY_REFLINES=qa.Prefix+"reflines"+qa.NeedExecute;tb.KEY_SORT=qa.Prefix+"sort"+qa.NeedExecute;Na.KEY_TOPN=qa.Prefix+"topN"+qa.NeedExecute;Na.KEY_LABEL_TYPE=qa.Prefix+"labelType"+qa.NeedRepaint;Na.KEY_LEGEND_ORDER_MODE=qa.Prefix+"legendOrderMode"+qa.NeedExecute;Na.SHOW_LABEL_NAME=1;Na.SHOW_LABEL_NUMBER=2;Na.SHOW_LABEL_PERCENT=4;Na.LegendOrderMode_AUTO="AUTO";Na.LegendOrderMode_VALUE=
"VALUE";Na.LegendOrderMode_NAME="NAME";La.KEY_SHOW_TOTAL=qa.Prefix+"ringShowTotal"+qa.NeedRepaint;ab.KEY_AVERAGE_ANGLE=qa.Prefix+"roseAverageAngle"+qa.NeedRepaint;ma.KEY_RADAR_FORMAT=qa.Prefix+"radarAxisFormat"+qa.NeedExecute;ma.KEY_OUTER_CIRCLE=qa.Prefix+"radarOuterCircle"+qa.NeedExecute;ma.KEY_SHOW_RULER_MARK_LABEL=qa.Prefix+"radarShowRulerMarkLabel"+qa.NeedRepaint;ma.KEY_FILL_COLOR=qa.Prefix+"radarFillColor"+qa.NeedRepaint;ma.OUTER_CIRCLE_DIMENSION="dimension";ma.OUTER_CIRCLE_MEASURE="measure";
ha.multiExtends=function(a,l){a.call(l);ha.call(l)};ha.KEY_LABEL_TYPE=qa.Prefix+"labelType"+qa.NeedRepaint;ha.KEY_THICKNESS_PERCENT=qa.Prefix+"thicknessPercent"+qa.NeedRepaint;ha.SHOW_LABEL_NUMBER=1;ha.SHOW_LABEL_PERCENT=2;p.KEY_PERCENTAGE_DIGIT=qa.Prefix+"progressPercentageDigit"+qa.NeedRepaint;p.KEY_PERCENTAGE_CEILING=qa.Prefix+"progressPercentageCeiling"+qa.NeedRepaint;p.KEY_PERCENTAGE_INSTEAD=qa.Prefix+"progressPercentageInstead"+qa.NeedRepaint;p.KEY_LABEL_DESC=qa.Prefix+"progressLabel"+qa.NeedRepaint;
p.KEY_LEGEND_FORMAT=qa.Prefix+"progressLegendFormat"+qa.NeedExecute;ra.KEY_PAN_STYLE=qa.Prefix+"dialPanStyle"+qa.NeedRepaint;ra.KEY_ARC_DEGREE=qa.Prefix+"dialArcDegree"+qa.NeedRepaint;ra.KEY_ROTATE_DEGREE=qa.Prefix+"dialRotateDegree"+qa.NeedRepaint;ra.KEY_SHOW_RULER_MARK_LABEL=qa.Prefix+"dialShowRulerMarkLabel"+qa.NeedRepaint;ra.KEY_RULER_MARK_FORMAT=qa.Prefix+"dialRulerMarkFormat"+qa.NeedRepaint;ra.KEY_SHOW_POINTER_LABEL=qa.Prefix+"dialShowPointerLabel"+qa.NeedRepaint;ra.KEY_POINTER_NAME=qa.Prefix+
"dialPointerName"+qa.NeedRepaint;ra.KEY_POINTER_NUMBER_FORMAT=qa.Prefix+"dialPointerNumberFormat"+qa.NeedRepaint;ra.KEY_DATA_EMPTY_INSTEAD=qa.Prefix+"dialDataEmptyInstead"+qa.NeedExecute;ra.KEY_SECTIONS=qa.Prefix+"dialSections"+qa.NeedExecute;ra.PAN_STYLE_ONLY_MARK=1;ra.PAN_STYLE_WITH_TRACK=2;ea.KEY_LY_UNIT_TEXT=qa.Prefix+"leftYUnitText"+qa.NeedRepaint;ea.KEY_LY_FORMAT=qa.Prefix+"leftYFormat"+qa.NeedExecute;ea.KEY_LY_RULER_SCALE=qa.Prefix+"leftYRulerScale"+qa.NeedRepaint;ea.KEY_LY_RULER_START=qa.Prefix+
"leftYRulerStart"+qa.NeedRepaint;ea.KEY_LEFT_REFLINES=qa.Prefix+"leftReflines"+qa.NeedExecute;ea.KEY_RY_UNIT_TEXT=qa.Prefix+"rightYUnitText"+qa.NeedRepaint;ea.KEY_RY_FORMAT=qa.Prefix+"rightYFormat"+qa.NeedExecute;ea.KEY_RY_RULER_SCALE=qa.Prefix+"rightYRulerScale"+qa.NeedRepaint;ea.KEY_RY_RULER_START=qa.Prefix+"rightYRulerStart"+qa.NeedRepaint;ea.KEY_RIGHT_REFLINES=qa.Prefix+"rightReflines"+qa.NeedExecute;ea.KEY_SORT=qa.Prefix+"compositeSort"+qa.NeedExecute;Ca.KEY_TOP_N=qa.Prefix+"listTopN"+qa.NeedExecute;
Ca.KEY_SORT_FIELD=qa.Prefix+"listSortField"+qa.NeedExecute;Ca.KEY_SORTORD=qa.Prefix+"listSortord"+qa.NeedExecute;Ca.KEY_AUTO_SCROLL=qa.Prefix+"listAutoScroll"+qa.NeedRepaint;Ca.KEY_STICK_ROWS=qa.Prefix+"listStickRows"+qa.NeedRepaint;Ca.KEY_AFFECTIOM_SRC_FIELD=qa.Prefix+"listAffctionSrcField";Ca.ASCEND_SORT="ascend";Ca.DESCEND_SORT="descend";U.KEY_SHOW_HEADER=qa.Prefix+"gridShowHeader"+qa.NeedRepaint;U.KEY_SHOW_ROWNUM=qa.Prefix+"gridShowRowNum"+qa.NeedExecute;U.KEY_ROWNUM_TITLE=qa.Prefix+"gridIdxColTitle"+
qa.NeedExecute;E.KEY_CUSTOM_CONTENT=qa.Prefix+"customListContent"+qa.NeedExecute;E.KEY_SPLITLINE_COLOR=qa.Prefix+"customListSplitLineColor"+qa.NeedRepaint;E.KEY_BODY_V_ALIGN=qa.Prefix+"customListBodyVAlign"+qa.NeedRepaint;E.KEY_BODY_SHARE_TO_ROW=qa.Prefix+"customListBodyShareToRow"+qa.NeedRepaint;E.BODY_VALIGN_TOP="top";E.BODY_VALIGN_MIDDLE="middle";E.BODY_SHARE_TO_ROW_REDUCABLE="reducable";E.BODY_SHARE_TO_ROW_INCREASABLE="increasable";E.BODY_SHARE_TO_ROW_ADJUSTABLE="adjustable";E.createContentPanelModel=
function(a){var l=new u;a&&l.setRowHeight(a);return l};E.createContentAreaModel=function(){return new g};E.createColorBarModel=function(){return new d};d.from=function(a){var l=new d;l.fromJsonObject(a);return l};e.KEY_SORT_BY_NAME=qa.Prefix+"waterfallSortByName"+qa.NeedExecute;e.KEY_NEGATIVE_ASC=qa.Prefix+"waterfallNegativeAsc"+qa.NeedExecute;e.KEY_NEGATIVE_TOP_N=qa.Prefix+"waterfallNegativeTopN"+qa.NeedExecute;e.KEY_POSITIVE_TOP_N=qa.Prefix+"waterfallPositiveTopN"+qa.NeedExecute;e.KEY_START_FROM_STAGE=
qa.Prefix+"waterfallStartFromStage"+qa.NeedExecute;e.KEY_WITHOUT_TOTAL=qa.Prefix+"waterfallWithoutTotal"+qa.NeedExecute;e.KEY_Y_UNIT_TEXT=qa.Prefix+"yUnitText"+qa.NeedRepaint;e.KEY_Y_FORMAT=qa.Prefix+"yFormat"+qa.NeedRepaint;c.KEY_SORT_BY_NAME=qa.Prefix+"funnelSortByName"+qa.NeedExecute;c.KEY_RATIOBY=qa.Prefix+"funnelRatioBy"+qa.NeedRepaint;c.KEY_LADDER=qa.Prefix+"funnelLadder"+qa.NeedRepaint;c.KEY_LABEL_NAME=qa.Prefix+"labelNamePosition"+qa.NeedRepaint;c.KEY_LABEL_VALUE=qa.Prefix+"labelValuePosition"+
qa.NeedRepaint;c.KEY_LABEL_RATIO=qa.Prefix+"labelRatioPosition"+qa.NeedRepaint;c.KEY_RATIO_FORMAT=qa.Prefix+"ratioFormat"+qa.NeedRepaint;c.RATIO_BY_STEP=1;c.RATIO_BY_START=2;c.RATIO_BY_TOTAL=3;c.LADDER_PERFECT=1;c.LADDER_ACTUAL=2;c.LABEL_POSITION_HIDE=0;c.LABEL_POSITION_LEFT=1;c.LABEL_POSITION_CENTER=2;c.LABEL_POSITION_RIGHT=3;b.KEY_X_FORMAT=qa.Prefix+"xFormat"+qa.NeedRepaint;b.KEY_X_UNIT_TEXT=qa.Prefix+"xUnitText"+qa.NeedRepaint;b.KEY_X_RULER_START=qa.Prefix+"xRulerStart"+qa.NeedRepaint;b.KEY_X_REFLINES=
qa.Prefix+"xReflines"+qa.NeedExecute;b.KEY_Y_FORMAT=qa.Prefix+"yFormat"+qa.NeedRepaint;b.KEY_Y_UNIT_TEXT=qa.Prefix+"yUnitText"+qa.NeedRepaint;b.KEY_Y_RULER_START=qa.Prefix+"yRulerStart"+qa.NeedRepaint;b.KEY_Y_REFLINES=qa.Prefix+"yReflines"+qa.NeedExecute})();(function(){"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.square&&(com.kingdee.bos.qing.square={});"undefined"==typeof com.kingdee.bos.qing.square.controller&&(com.kingdee.bos.qing.square.controller={});var Ya=com.kingdee.bos.qing.square.controller;Ya.ActionAddItem=function(){wb.call(this);var S,
Ma,Ja,ua,W,fa,Ea,Va;this.getCaption=function(){return S};this.setValue=function(wa,Ga,Ia,hb,ib){Ma=wa;Ja=Ga;ua=Ia;W=Ma.getItemModelIndex(Ja);(fa=0<=W)?(S=Lb.get("moveItem","\u5728#1\u4e2d\u79fb\u52a8#2"),S=S.replace("#1",hb),S=S.replace("#2",Ja.getSquareField().getComplexText())):(S=Lb.get("appendItem","\u6dfb\u52a0#1\u5230#2"),S=S.replace("#1",Ja.getSquareField().getComplexText()),S=S.replace("#2",hb));Ea=ib};this.perform=function(){Ea&&(Va=Ea.updateItems([]));fa?Oa():Ma.insertItemModel(Ja,ua)};
this.unperform=function(){Ea&&Ea.updateItems(Va);fa?Oa():Ma.removeItemModel(Ja)};var Oa=function(){var wa=Ma.moveItemModel(W,ua);W=wa[0];ua=wa[1]}};Ya.ActionRemoveItem=function(){wb.call(this);var S,Ma,Ja,ua,W,fa;this.getCaption=function(){return S};this.setValue=function(Ea,Va,Oa,wa){Ma=Ea;Ja=Va;Oa&&(S=Lb.get("removeItem","\u4ece#1\u5220\u9664#2"),S=S.replace("#1",Oa),S=S.replace("#2",Ja.getSquareField().getComplexText()));W=wa};this.perform=function(){W&&(fa=W.updateItems([]));ua=Ma.getItemModelIndex(Ja);
Ma.removeItemModel(Ja)};this.unperform=function(){W&&W.updateItems(fa);Ma.insertItemModel(Ja,ua)}};Ya.ActionClearAll=function(){wb.call(this);var S=this,Ma,Ja,ua;this.getCaption=function(){return Ma};this.setValue=function(W,fa,Ea){Ma=Ea;Ja=W;Ea=new pb;W=fa(Ea.getChartTypeName());Ea=W.willTransform(Ea);W=Ja.getChart();W=fa(W.getChartTypeName());ua=W.transform(Ea)};this.perform=function(){var W=Ja.getChart();Ja.setChart(ua);ua=W};this.unperform=function(){S.perform()}};Ya.ActionRollIn=function(){wb.call(this);
var S,Ma,Ja,ua,W,fa;this.getCaption=function(){return S};this.setValue=function(Ea,Va,Oa,wa,Ga){S=Lb.get("rollInTo","\u4e0b\u94bb#1\u5230\uff1a#2");S=S.replace("#1",Ea?Ea.getComplexText():"");S=S.replace("#2",wa?wa:Lb.get("rollInToNext","\u4e0b\u4e00\u5c42"));Ma=Va;ua=Oa;W=wa;Ja=Ga};this.perform=function(){fa=Ma.backupItems();var Ea=0<Ma.getItemCount()?Ma.getItem(Ma.getItemCount()-1):null,Va=[];Ea&&Ea.isPcdNextLevel()||(Ea=new zb,Va=[Ea]);Ea.setPcdNextLevel(Ja);Ea.addOneLevel(ua,W);Ma.rollIn(Va)};
this.unperform=function(){Ma.restoreItems(fa);fa=null}};Ya.ActionRollOut=function(){wb.call(this);var S,Ma,Ja,ua,W;this.getCaption=function(){return S};this.setValue=function(fa,Ea,Va,Oa){S=Lb.get("rollOutTo","\u4e0a\u5377\u56de#1");S=S.replace("#1",fa?fa.getComplexText():0==Va?Lb.get("rollOutToTop","\u9876\u5c42"):"");Ma=Ea;Ja=Va;ua=Oa};this.perform=function(){W=Ma.backupItems();Ma.rollOut(Ja,ua)};this.unperform=function(){Ma.restoreItems(W);W=null}};Ya.ActionAppendAllNecessaryDimensions=function(){eb.call(this);
var S=this.protectedMethod,Ma,Ja;this.setValue=function(ua,W){Ma=W.getFilterSet();Ja=[];W=W.getUsingMetaFields(ua);S.visitMissingNecessaryDimensions(ua,W,function(fa){var Ea=new Yb,Va=new Mb;Va.setSquareField(Ea);Va.setFilter(fa);Ja.push(Va);return Ea})};this.perform=function(){Ma.appendItemModels(Ja)};this.unperform=function(){Ma.removeItemModels(Ja)}};var Lb,wb,eb,pb,zb,Yb,Mb;(function(){var S=com.kingdee.bos.qing.framework.common;Lb=S.MultilanguageManager.createPackageAccessor(Ya);S=com.kingdee.bos.qing.core.controller;
wb=S.AbstractAction;eb=S.AbstractActionAppendAllNecessaryDimensions;S=com.kingdee.bos.qing.square.model;pb=S.ChartColumn;zb=S.RollInStateItem;Yb=S.SquareField;Mb=S.FilterItemModel})()})();(function(){function Ya(){var a=this,l,n,f,m,h=[];this.setSquareModel=function(oa){l&&l.removeModelChangedListener(v);(l=oa)&&l.addModelChangedListener(v);n&&n.removeChangedListener(y);(n=oa?oa.getChart().getChartProperty():null)&&n.addChangedListener(y)};this.setGlobalDependence=function(oa){f=oa};var r=function(oa,Pa){return f.createFacade(oa,Pa)},k=function(){return f.getMeta()};this.getJqUi=function(){if(!m){m=$("<div>");m.addClass("square-property-pane");a.protectedInitUi(m);if(Y.isDesigntimeSupported()&&
l.getChart().isLinkageSupported()){var oa=L(p.get("linkage","\u8054\u67e5"),["linkTargets"]);m.append(oa.createJqUi())}oa=L(p.get("common","\u901a\u7528"),["showDataEmptyTips","description"]);m.append(oa.createJqUi())}return m};this.protectedInitUi=function(oa){throw Error("Override me");};var v=function(oa){for(var Pa=0;Pa<h.length;Pa++)h[Pa].careForSquareModelChanged(oa)},y=function(oa,Pa){for(var yb=0;yb<h.length;yb++){var Pb=h[yb];oa==Pb.getPropertyKey()&&Pb.updateEditor();Pb.careForPropertyChanged(oa,
Pa)}},L=function(oa,Pa){var yb=new Ja;yb.setTitle(oa);for(oa=0;oa<Pa.length;oa++){var Pb=Pa[oa];switch(Pb){case "showLabel":var Hb=n;Pb=p.get("dataLabel","\u6570\u636e\u6807\u7b7e");var Tb=F();aa(Tb,Pb,Ra.KEY_SHOW_LABEL,Hb.isShowLabel,Hb.setShowLabel);Hb=Tb;break;case "labelOverlappable":Hb=Ta(n);break;case "labelFormat":Hb=qb(n);break;case "showLegend":Hb=n;Pb=p.get("legendPosition","\u4f4d\u7f6e");Tb=H([Ra.ShowLegend_Non,Ra.ShowLegend_Right,Ra.ShowLegend_Bottom],X);aa(Tb,Pb,Ra.KEY_SHOW_LEGEND,Hb.getShowLegend,
Hb.setShowLegend);Hb=Tb;break;case "showDataEmptyTips":Hb=n;Pb=p.get("showDataEmptyTips","\u65e0\u6570\u636e\u65f6\u63d0\u793a");Tb=H([Ra.ShowDataEmptyTips_Auto,Ra.ShowDataEmptyTips_Yes,Ra.ShowDataEmptyTips_No],ya);aa(Tb,Pb,Ra.KEY_SHOW_DATA_EMPTY_TIPS,Hb.getShowDataEmptyTips,Hb.setShowDataEmptyTips);Hb=Tb;break;case "description":Hb=n;Pb=p.get("introduction","\u5361\u7247\u8bf4\u660e");Tb=B();aa(Tb,Pb,Ra.KEY_DESCRIPTION,Hb.getDescription,Hb.setDescription);Hb=Tb;break;case "linkTargets":Hb=Ba(n);
break;case "conditionStyle":Hb=n;Pb=p.get("conditionStyle","\u6761\u4ef6\u6837\u5f0f");Tb=new tb;aa(Tb,Pb,Ra.KEY_STYLE_SCRIPTS,Hb.getStyleScripts,Hb.setStyleScripts);Hb=Tb;break;case "palette":Hb=V(n);break;case "ignoreNegative":Hb=K(n);break;case "animation":Hb=n;Pb=p.get("animation","\u52a8\u753b");Tb=F();aa(Tb,Pb,Ra.KEY_ANIMATION,Hb.isAnimation,Hb.setAnimation);Hb=Tb;break;default:if(Hb=a.protectedCreateEditItem(Pb,n),!Hb)throw Error("Unknown key of EditItem: "+Pb);}Hb.setCommandManager(f.getCommandManager());
yb.addEditItem(Hb);h.push(Hb)}return yb},B=function(){var oa=new fa;oa.setMultiLine(!0);return oa},F=function(){return new Ea},H=function(oa,Pa,yb){var Pb=new Oa;Pb.setSelectable(oa,yb,Pa);return Pb},C=function(oa){var Pa=new hb;oa&&Pa.setDisplayForEmpty(oa);return Pa},aa=function(oa,Pa,yb,Pb,Hb){oa.setPropertyKey(yb);oa.setCaption(Pa);oa.setMethod(Pb,Hb)},Sa=function(oa,Pa){oa.setVisible(Pa)};this.protectedCreateEditItem=function(oa,Pa){return null};var Ta=function(oa){var Pa=p.get("dataLabelOverlappable",
"\u6807\u7b7e\u5141\u8bb8\u91cd\u53e0"),yb=F();aa(yb,Pa,Ra.KEY_LABEL_OVERLAPPABLE,oa.isDataLabelOverlappable,oa.setDataLabelOverlappable);yb.addCareForBrotherListener(function(Pb,Hb,Tb){Hb==Ra.KEY_SHOW_LABEL&&Pb.setVisible(Tb?!0:!1)});Sa(yb,oa.isShowLabel());return yb},qb=function(oa){var Pa=p.get("dataLabelFormat","\u6807\u7b7e\u6570\u503c\u683c\u5f0f"),yb=p.get("dataLabelFormatFollowAxis","\u8ddf\u968f\u6570\u8f74");yb=C(yb);aa(yb,Pa,Ra.KEY_LABEL_FORMAT,oa.getLabelFormat,oa.setLabelFormat);yb.addCareForBrotherListener(function(Pb,
Hb,Tb){Hb==Ra.KEY_SHOW_LABEL&&Pb.setVisible(Tb?!0:!1)});Sa(yb,oa.isShowLabel());return yb},Ba=function(oa){var Pa=p.get("linkageTarget","\u8054\u67e5\u76ee\u6807"),yb=new ib;aa(yb,Pa,Ra.KEY_LINKAGE,oa.getLinkTargets,oa.setLinkTargets);yb.setUsableChecker(function(){if(!k().isNormalSrcMode()){var Pb=A.createFeedbackDialog();Pb.setOptionType(A.OPTION_OK);Pb.setMsgImageType(A.MSG_WARNING);Pb.setMessage(p.get("linkageDisabledPrompt","\u5f53\u524d\u6570\u636e\u6e90\u7c7b\u578b\u4e0d\u652f\u6301\u5355\u636e\u8054\u67e5\u3002"));
Pb.showDialog();return!1}return!0});return yb},V=function(oa){var Pa=p.get("palette","\u8c03\u8272\u677f"),yb=new bb;aa(yb,Pa,Ra.KEY_PALETTE,function(){var Tb=null,hc=Hb();hc&&(hc=hc.getDiscreteColor())&&(Tb=hc.getPaletteMapping());return[oa.getPalette(),Tb]},function(Tb){var hc=Tb[0];Tb=Tb[1];var oc=Hb();if(oc){var Rb=null;Tb&&(Rb=new R,Rb.setPaletteMapping(Tb));oc.setDiscreteColor(Rb)}oa.setPalette(hc)});yb.setPresetPaletteGetter(function(Tb){switch(l.getChart().getChartTypeName()){case Aa.ChartType_Line:case Aa.ChartType_Radar:var hc=
"contrastingLine";break;case Aa.ChartType_GIS:case Aa.ChartType_Scatter:hc="contrastingArea";break;default:hc="base"}r(Tb).getPresetPalettes("chartPalette",hc)});var Pb=a.protectedGetColorFieldSetForPalette(),Hb=function(){var Tb=null;Pb.traversalItems(function(hc){var oc=!1;!hc.isInvalid()&&hc.isDimension()&&(Tb=hc,oc=!0);return oc});return Tb};yb.bindColorFieldAsker({isColorFieldExist:function(){return Hb()?!0:!1},getMemberTextGetter:function(){return function(Tb){var hc=Hb();r(function(oc){var Rb=
[];oc=G.create(oc).getItems();for(var vb=0;vb<oc.length;vb++){var Wb=oc[vb];Wb=Wb.isValueNull()||""==Wb.getValue()?"":Wb.getDisplayText();Rb.push(Wb)}Tb(Rb)}).getSquareFilterPreparedValue(k(),l,null,hc)}},getOtherFieldWithColor:function(){var Tb=Hb(),hc=null;l.getChart().lookupAllItemModelSet(function(oc){var Rb=!1;oc=oc.getSquareField();oc!=Tb&&oc.getDiscreteColor()&&(hc=oc,Rb=!0);return Rb});return hc}});return yb};this.protectedGetColorFieldSetForPalette=function(){throw Error("Implement");};var K=
function(oa){var Pa=p.get("negativeAs","\u8d1f\u6570"),yb=H([!1,!0],function(Pb,Hb,Tb){Pb=Tb?p.get("negativeAsNone","\u5ffd\u7565"):p.get("negativeAsAbs","\u6309\u7edd\u5bf9\u503c\u8ba1\u7b97");Hb.text(Pb)});aa(yb,Pa,Ra.KEY_NEGATIVE,oa.isIgnoreNegative,oa.setIgnoreNegative);return yb},X=function(oa,Pa,yb){switch(yb){case Ra.ShowLegend_Non:oa=p.get("legendHide","\u9690\u85cf");break;case Ra.ShowLegend_Right:oa=p.get("legendRight","\u53f3\u4fa7");break;case Ra.ShowLegend_Bottom:oa=p.get("legendBottom",
"\u5e95\u90e8");break;default:oa=yb}Pa.text(oa)},ya=function(oa,Pa,yb){switch(yb){case Ra.ShowDataEmptyTips_Auto:oa=p.get("showDataEmptyTipsAuto","\uff08\u6309\u56fe\u8868\uff09\u81ea\u52a8");break;case Ra.ShowDataEmptyTips_Yes:oa=p.get("showDataEmptyTipsYes","\u5f00");break;case Ra.ShowDataEmptyTips_No:oa=p.get("showDataEmptyTipsNo","\u5173");break;default:oa=yb}Pa.text(oa)};this.protectedMethod={appendCard:function(oa,Pa,yb){Pa=L(Pa,yb);oa.append(Pa.createJqUi())},createCard:L,initEditItem:aa,syncEditItemVisible:Sa,
createTextEditItem:function(){return new W},createPopupTextEditItem:function(){return new fa},createPopupTextAreaEditItem:B,createBooleanEditItem:F,createNumberEditItem:function(oa,Pa,yb){var Pb=new Va;Pb.setConstraint(oa,Pa,yb);return Pb},createFloatNumberEditItem:function(oa,Pa,yb){oa=void 0===oa?-999999999999999:oa;Pa=void 0===Pa?999999999999999:Pa;yb=void 0===yb?1:yb;var Pb=new Va;Pb.setConstraint(oa,Pa,yb);Pb.getCtrl().setAcceptEditingDecorator(function(Hb){return Hb});return Pb},createSelectableEditItem:H,
createNumberFormatEditItem:C,createItemPalette:V,createFacade:r,getMeta:k,getSquareModel:function(){return l},getGlobal:function(){return f}}}function Lb(){var a=this,l=this.protectedMethod;this.protectedInitLegendFormatEditItem=function(h,r){h.addCareForModelChangedListener(function(k,v){f(v,k,r)});m(a.protectedGetColorFieldSet(),h,r)};this.protectedInitContinuousColorEditItem=function(h,r){h.addCareForModelChangedListener(function(k,v){f(v,k,r)});m(a.protectedGetColorFieldSet(),h,r)};var n=function(h,
r){h.addCareForModelChangedListener(function(k,v){f(v,k,r)});m(a.protectedGetColorFieldSet(),h,r)},f=function(h,r,k){var v=a.protectedGetColorFieldSet();h.isContainItemModelSet(v)&&m(v,r,k)},m=function(h,r,k){var v=!1;h.traversalItems(function(y){var L=!1;y.isInvalid()||(v=y.isMeasure(),L=!0);return L});k(r,v)};this.protectedGetColorFieldSet=function(){throw Error("Implement");};this.protectedMethod.createEditItemWithMixColorMode=function(h,r){switch(h){case "legendFormat":h=p.get("numberFormat",
"\u6570\u5b57\u683c\u5f0f");var k=p.get("numberFormatFollowField","\u8ddf\u968f\u5ea6\u91cf\u5b57\u6bb5");k=l.createNumberFormatEditItem(k);l.initEditItem(k,h,Ra.KEY_LEGEND_FORMAT,r.getLegendFormat,r.setLegendFormat);a.protectedInitLegendFormatEditItem(k,function(v,y){v.setVisible(y)});break;case "continuousColor":h=p.get("palette","\u8c03\u8272\u677f");k=new $a;k.setFacadeCreator(l.createFacade);l.initEditItem(k,h,Ra.KEY_CONTINUOUS_COLOR,r.getContinuousColor,r.setContinuousColor);a.protectedInitContinuousColorEditItem(k,
function(v,y){v.setVisible(y)});break;case "discreteColor":k=l.createItemPalette(r),n(k,function(v,y){v.setVisible(!y)})}return k}}function wb(){function a(){ua.call(this);var f=this.protectedMethod,m,h;this.protectedCreateEditorJqUi=function(k){m=new Ca;m.setChecked(k?!0:!1);m.addCheckedListener(r);return m.getJqUi()};this.updateEditor=function(){if(!h){var k=f.getOriValue();m.setChecked(k?!0:!1)}};var r=function(k,v){v&&(h=!0,k=m.isChecked()?new sb:null,f.actionPerformed(k),h=!1)}}var l=this.protectedMethod,
n=function(f){var m=function(v,y){v.setVisible(y&&0<y.getDuration())},h=Ra.KEY_TOOLTIPS_AUTO_DISPLAY,r=p.get("tooltipsAutoDisplayDuration","\u6bcf\u9879\u65f6\u957f(\u79d2)"),k=l.createNumberEditItem(1,10,1);l.initEditItem(k,r,h,function(){var v=f.getTooltipsAutoDisplay();return v?v.getDuration():1},function(v){var y=new sb;y.setDuration(v);f.setTooltipsAutoDisplay(y)});k.addCareForBrotherListener(function(v,y,L){y==h&&m(v,L)});m(k,f.getTooltipsAutoDisplay());return k};this.protectedMethod.createEditItemWithTooltipsAutoDisplay=
function(f,m){var h=null;switch(f){case "tooltipsAutoDisplay":f=p.get("tooltipsAutoDisplayOn","\u81ea\u52a8\u5c55\u793a");h=new a;l.initEditItem(h,f,Ra.KEY_TOOLTIPS_AUTO_DISPLAY,m.getTooltipsAutoDisplay,m.setTooltipsAutoDisplay);break;case "tooltipsAutoDisplayDuration":h=n(m)}return h}}function eb(){var a=this.protectedMethod,l=function(f,m,h){switch(h){case Ra.RulerScale_Auto:f=p.get("rulerScaleAuto","\u81ea\u52a8\u8bc6\u522b");break;case Ra.RulerScale_Linear:f=p.get("rulerScaleLinear","\u7ebf\u6027");
break;case Ra.RulerScale_Log:f=p.get("rulerScaleLog","\u5bf9\u6570");break;default:f=h}m.text(f)},n=function(f,m,h){m.text(h?p.get("topnOthersAsAnItem","\u5408\u5e76\u6210\u4e00\u9879"):p.get("topnOthersNone","\u4e0d\u663e\u793a"))};a.createReflinesEditItem=function(){return new Na};a.createRulerScaleEditItem=function(){return a.createSelectableEditItem([Ra.RulerScale_Linear,Ra.RulerScale_Log,Ra.RulerScale_Auto],l)};a.createRulerScopeEditItem=function(){return new lb};a.createOrderEditItem=function(f,
m){var h=p.get("order","\u6392\u5e8f"),r=a.createSelectableEditItem(["null","true","false"],function(k,v,y){k="true"===y?p.get("orderAsc","\u5347\u5e8f"):"false"===y?p.get("orderDesc","\u964d\u5e8f"):p.get("orderNone","(\u65e0)");v.text(k)});a.initEditItem(r,h,m,function(){var k=f.getSort();return k.isOrderByMeasure()?k.isAsc()?"true":"false":"null"},function(k){var v="null"===k?!1:!0;k="true"===k?!0:!1;f.getSort().setOrder(v,k)});return r};a.createSortAccordingEditItem=function(f,m){f=f.getSort();
var h=p.get("sortAccording","\u6392\u5e8f\u4f9d\u636e"),r=new Ga;a.initEditItem(r,h,m,f.getSortAccording,f.setSortAccording);r.setModelContext(a.getMeta,a.getSquareModel().getChart());r.addCareForBrotherListener(function(k,v,y){v==m&&k.setVisible(y.isOrderByMeasure())});r.setVisible(f.isOrderByMeasure());return r};a.createTopnSwitchEditItem=function(f,m){f=f.getSort();var h=p.get("topN","\u524dN\u9879"),r=a.createBooleanEditItem();a.initEditItem(r,h,m,f.isTopnSwitch,f.setTopnSwitch);r.addCareForBrotherListener(function(k,
v,y){v==m&&k.setVisible(y.isOrderByMeasure())});r.setVisible(f.isOrderByMeasure());return r};a.createTopnItemsEditItem=function(f,m){var h=function(v,y){v.setVisible(y.isOrderByMeasure()&&y.isTopnSwitch())};f=f.getSort();var r=p.get("topnItems","\u6761\u76ee\u6570"),k=a.createNumberEditItem(1,100,1);a.initEditItem(k,r,m,f.getTopnItems,f.setTopnItems);k.addCareForBrotherListener(function(v,y,L){y==m&&h(v,L)});h(k,f);return k};a.createTopnOthersEditItem=function(f,m){var h=function(v,y){v.setVisible(y.isOrderByMeasure()&&
y.isTopnSwitch())};f=f.getSort();var r=p.get("topnOthers","\u5176\u5b83\u6761\u76ee"),k=a.createSelectableEditItem([!1,!0],n);a.initEditItem(k,r,m,f.isOthersAsAnItem,f.setOthersAsAnItem);k.addCareForBrotherListener(function(v,y,L){y==m&&h(v,L)});h(k,f);return k}}function pb(){eb.call(this);var a=this.protectedMethod;this.protectedGetColorFieldSetForPalette=function(){return a.getSquareModel().getChart().getSeries()};var l=this.protectedCreateEditItem;this.protectedCreateEditItem=function(f,m){switch(f){case "xUnitText":f=
p.get("axisUnit","\u6807\u9898/\u5355\u4f4d");var h=a.createTextEditItem();a.initEditItem(h,f,Cb.KEY_X_UNIT_TEXT,m.getXUnitText,m.setXUnitText);break;case "xAssistantLine":f=p.get("axisAssistantLine","\u7f51\u683c\u7ebf");h=a.createBooleanEditItem();a.initEditItem(h,f,Cb.KEY_X_ASSISTANT_LINE,m.isXShowAssistantLine,m.setXShowAssistantLine);break;case "yUnitText":f=p.get("axisUnit","\u6807\u9898/\u5355\u4f4d");h=a.createTextEditItem();a.initEditItem(h,f,Cb.KEY_Y_UNIT_TEXT,m.getYUnitText,m.setYUnitText);
break;case "yRulerScale":f=p.get("rulerScale","\u6807\u5c3a\u6bd4\u4f8b");h=a.createRulerScaleEditItem();a.initEditItem(h,f,Cb.KEY_Y_RULER_SCALE,m.getYRulerScale,m.setYRulerScale);break;case "yRulerStart":f=p.get("rulerScope","\u6570\u8f74\u8303\u56f4");h=a.createRulerScopeEditItem();a.initEditItem(h,f,Cb.KEY_Y_RULER_START,m.getYRulerScope,m.setYRulerScope);break;case "yFormat":f=p.get("numberFormat","\u6570\u5b57\u683c\u5f0f");h=p.get("numberFormatFollowField","\u8ddf\u968f\u5ea6\u91cf\u5b57\u6bb5");
h=a.createNumberFormatEditItem(h);a.initEditItem(h,f,Cb.KEY_Y_FORMAT,m.getYFormat,m.setYFormat);break;case "reflines":f=p.get("refline","\u53c2\u8003\u7ebf");h=a.createReflinesEditItem();a.initEditItem(h,f,Cb.KEY_REFLINES,m.getReflines,m.setReflines);h.setMeasureFieldsGetter(n);break;case "order":h=a.createOrderEditItem(m,Cb.KEY_SORT);break;case "sortAccording":h=a.createSortAccordingEditItem(m,Cb.KEY_SORT);break;case "topNSwitch":h=a.createTopnSwitchEditItem(m,Cb.KEY_SORT);break;case "topNItems":h=
a.createTopnItemsEditItem(m,Cb.KEY_SORT);break;case "topNOthers":h=a.createTopnOthersEditItem(m,Cb.KEY_SORT);break;default:h=l(f,m)}return h};var n=function(){for(var f=[],m=a.getSquareModel().getChart().getYAxis(),h=0,r=m.getItemModelCount();h<r;h++){var k=m.getItemModel(h);k.isMeasure()&&f.push(k)}return f}}function zb(){var a=this.protectedMethod;a.createSmoothEditItem=function(l){var n=p.get("lineSmooth","\u5e73\u6ed1\u66f2\u7ebf"),f=a.createBooleanEditItem();a.initEditItem(f,n,Db.KEY_SMOOTH,
l.isSmooth,l.setSmooth);return f};a.createPaintPointEditItem=function(l,n){var f=p.get("linePoint","\u6298\u7ebf\u6570\u636e\u70b9"),m=a.createBooleanEditItem();a.initEditItem(m,f,Db.KEY_PAINT_POINT,function(){return l.isPaintingPoint()||n(l)},l.setPaintingPoint);m.addCareForBrotherListener(function(h,r,k){r==Ra.KEY_SHOW_LABEL&&(n(l)?(m.getCtrl().setChecked(!0),m.getCtrl().setEnabled(!1)):(m.getCtrl().setChecked(l.isPaintingPoint()),m.getCtrl().setEnabled(!0)))});n(l)&&m.getCtrl().setEnabled(!1);
return m};a.createNullAsZeroEditItem=function(l){var n=p.get("lineNullAsZero","\u7a7a\u503c\u7ed8\u5236\u4e3a\u96f6"),f=a.createBooleanEditItem();a.initEditItem(f,n,Db.KEY_CONNECT_NULL_AS,l.isZeroInsteadNull,l.setZeroInsteadNull);return f}}function Yb(){eb.call(this);var a=this.protectedMethod;this.protectedGetColorFieldSetForPalette=function(){return a.getSquareModel().getChart().getSeries()};var l=this.protectedCreateEditItem;this.protectedCreateEditItem=function(f,m){switch(f){case "yUnitText":f=
p.get("axisUnit","\u6807\u9898/\u5355\u4f4d");var h=a.createTextEditItem();a.initEditItem(h,f,Nb.KEY_Y_UNIT_TEXT,m.getYUnitText,m.setYUnitText);break;case "xUnitText":f=p.get("axisUnit","\u6807\u9898/\u5355\u4f4d");h=a.createTextEditItem();a.initEditItem(h,f,Nb.KEY_X_UNIT_TEXT,m.getXUnitText,m.setXUnitText);break;case "xRulerScale":f=p.get("rulerScale","\u6807\u5c3a\u6bd4\u4f8b");h=a.createRulerScaleEditItem();a.initEditItem(h,f,Nb.KEY_X_RULER_SCALE,m.getXRulerScale,m.setXRulerScale);break;case "xRulerStart":f=
p.get("rulerScope","\u6570\u8f74\u8303\u56f4");h=a.createRulerScopeEditItem();a.initEditItem(h,f,Nb.KEY_X_RULER_START,m.getXRulerScope,m.setXRulerScope);break;case "xFormat":f=p.get("numberFormat","\u6570\u5b57\u683c\u5f0f");h=p.get("numberFormatFollowField","\u8ddf\u968f\u5ea6\u91cf\u5b57\u6bb5");h=a.createNumberFormatEditItem(h);a.initEditItem(h,f,Nb.KEY_X_FORMAT,m.getXFormat,m.setXFormat);break;case "reflines":f=p.get("refline","\u53c2\u8003\u7ebf");h=a.createReflinesEditItem();a.initEditItem(h,
f,Nb.KEY_REFLINES,m.getReflines,m.setReflines);h.setMeasureFieldsGetter(n);break;case "order":h=a.createOrderEditItem(m,Nb.KEY_SORT);break;case "sortAccording":h=a.createSortAccordingEditItem(m,Cb.KEY_SORT);break;case "topNSwitch":h=a.createTopnSwitchEditItem(m,Nb.KEY_SORT);break;case "topNItems":h=a.createTopnItemsEditItem(m,Nb.KEY_SORT);break;case "topNOthers":h=a.createTopnOthersEditItem(m,Nb.KEY_SORT);break;default:h=l(f,m)}return h};var n=function(){for(var f=[],m=a.getSquareModel().getChart().getXAxis(),
h=0,r=m.getItemModelCount();h<r;h++){var k=m.getItemModel(h);k.isMeasure()&&f.push(k)}return f}}function Mb(){var a=this.protectedMethod;this.protectedGetColorFieldSetForPalette=function(){return a.getSquareModel().getChart().getColorSet()};var l=this.protectedCreateEditItem;this.protectedCreateEditItem=function(r,k){switch(r){case "labelType":k=n(k);break;case "topN":r=p.get("topN","\u524dN\u9879");for(var v=[-1],y=1;20>=y;y++)v.push(y);v=a.createSelectableEditItem(v,m);a.initEditItem(v,r,kb.KEY_TOPN,
k.getTopN,k.setTopN);k=v;break;case "legendOrderMode":k=h(k);break;default:k=l(r,k)}return k};var n=function(r){var k=p.get("showDataLabelAs","\u6807\u7b7e\u663e\u793a"),v=a.createSelectableEditItem([kb.SHOW_LABEL_NAME,kb.SHOW_LABEL_NUMBER,kb.SHOW_LABEL_PERCENT,kb.SHOW_LABEL_NAME|kb.SHOW_LABEL_NUMBER,kb.SHOW_LABEL_NAME|kb.SHOW_LABEL_PERCENT,kb.SHOW_LABEL_NUMBER|kb.SHOW_LABEL_PERCENT,kb.SHOW_LABEL_NUMBER|kb.SHOW_LABEL_PERCENT|kb.SHOW_LABEL_NAME],f);a.initEditItem(v,k,kb.KEY_LABEL_TYPE,r.getLabelType,
r.setLabelType);v.addCareForBrotherListener(function(y,L,B){L==Ra.KEY_SHOW_LABEL&&a.syncEditItemVisible(y,B?!0:!1)});a.syncEditItemVisible(v,r.isShowLabel());return v},f=function(r,k,v){r="";(v&kb.SHOW_LABEL_NAME)==kb.SHOW_LABEL_NAME&&(r=p.get("showDataLabelAsName","\u540d\u79f0"));(v&kb.SHOW_LABEL_NUMBER)==kb.SHOW_LABEL_NUMBER&&(r.length&&(r+="+"),r+=p.get("showDataLabelAsNumber","\u6570\u503c"));(v&kb.SHOW_LABEL_PERCENT)==kb.SHOW_LABEL_PERCENT&&(r.length&&(r+="+"),r+=p.get("showDataLabelAsPercent",
"\u767e\u5206\u6bd4"));k.text(r)},m=function(r,k,v){r=0<v?p.get("topNItem","\u524d #1 \u9879\u53ca\u201c\u5176\u5b83\u201d").replace("#1",v):p.get("itemNone","(\u65e0)");k.text(r)},h=function(r){var k=p.get("legendOrderBy","\u6761\u76ee\u987a\u5e8f"),v=a.createSelectableEditItem([kb.LegendOrderMode_AUTO,kb.LegendOrderMode_VALUE,kb.LegendOrderMode_NAME],function(y,L,B){y="";switch(B){case kb.LegendOrderMode_AUTO:y=p.get("legendOrderByAuto","\u81ea\u52a8");break;case kb.LegendOrderMode_VALUE:y=p.get("legendOrderByValue",
"\u6309\u5927\u5c0f");break;case kb.LegendOrderMode_NAME:y=p.get("legendOrderByName","\u6309\u540d\u79f0")}L.text(y)});a.initEditItem(v,k,kb.KEY_LEGEND_ORDER_MODE,r.getLegendOrderMode,r.setLegendOrderMode);return v}}function S(){var a=this.protectedMethod,l=this.protectedCreateEditItem;this.protectedCreateEditItem=function(f,m){switch(f){case "progressLabelType":var h=p.get("showDataLabelAs","\u6807\u7b7e\u663e\u793a");f=a.createSelectableEditItem([Ua.SHOW_LABEL_NUMBER,Ua.SHOW_LABEL_PERCENT,Ua.SHOW_LABEL_NUMBER|
Ua.SHOW_LABEL_PERCENT],n);a.initEditItem(f,h,Ua.KEY_LABEL_TYPE,m.getLabelType,m.setLabelType);f.addCareForBrotherListener(function(r,k,v){k==Ra.KEY_SHOW_LABEL&&a.syncEditItemVisible(r,v?!0:!1)});a.syncEditItemVisible(f,m.isShowLabel());break;case "progressPalette":h=p.get("palette","\u8c03\u8272\u677f");f=new la;a.initEditItem(f,h,Ra.KEY_PALETTE,m.getPalette,m.setPalette);f.setPresetPaletteGetter(function(r){a.createFacade(r).getPresetPalettes("chartProgress",null)});break;case "progressThickness":h=
p.get("progressThickness","\u8fdb\u5ea6\u6761\u5185\u5f84");f=a.createNumberEditItem(40,100,10);f.getCtrl().setCustomPainter(function(r){return r+"%"});a.initEditItem(f,h,Ua.KEY_THICKNESS_PERCENT,m.getThicknessPercent,m.setThicknessPercent);break;default:f=l(f,m)}return f};var n=function(f,m,h){f="";(h&Ua.SHOW_LABEL_NUMBER)==Ua.SHOW_LABEL_NUMBER&&(f.length&&(f+="+"),f+=p.get("showDataLabelAsNumber","\u6570\u503c"));(h&Ua.SHOW_LABEL_PERCENT)==Ua.SHOW_LABEL_PERCENT&&(f.length&&(f+="+"),f+=p.get("showDataLabelAsPercent",
"\u767e\u5206\u6bd4"));m.text(f)}}function Ma(){Ya.call(this);var a=this.protectedMethod,l=function(v,y){if("listShowTopN"==v){v=p.get("gridShowTopN","\u663e\u793a\u524dN\u884c");var L=a.createBooleanEditItem();a.initEditItem(L,v,ub.KEY_TOP_N,y.isTopnSwitch,y.setTopnSwitch);return L}if("listShowTopRows"==v)return v=p.get("gridShowTopRows","\u884c\u6570"),L=a.createNumberEditItem(1,100,1),a.initEditItem(L,v,ub.KEY_TOP_N,y.getTopnItems,y.setTopnItems),L.addCareForBrotherListener(function(B,F,H){F==
ub.KEY_TOP_N&&a.syncEditItemVisible(B,y.isTopnSwitch())}),a.syncEditItemVisible(L,y.isTopnSwitch()),L},n=function(v,y){if("listAutoScroll"==v){v=p.get("gridAutoScroll","\u81ea\u52a8\u6eda\u52a8");var L=a.createBooleanEditItem();a.initEditItem(L,v,ub.KEY_AUTO_SCROLL,y.isAutoScroll,y.setAutoScroll);return L}if("listStickTopN"==v)return v=p.get("gridStickTopN","\u51bb\u7ed3\u524dN\u884c"),L=a.createBooleanEditItem(),a.initEditItem(L,v,ub.KEY_STICK_ROWS,y.isStickNRow,y.setStickNRow),L.addCareForBrotherListener(function(B,
F,H){F==ub.KEY_AUTO_SCROLL&&a.syncEditItemVisible(B,y.isAutoScroll())}),a.syncEditItemVisible(L,y.isAutoScroll()),L;if("listStickTopRows"==v)return v=p.get("gridStickTopRows","\u51bb\u7ed3\u884c\u6570"),L=a.createNumberEditItem(1,10,1),a.initEditItem(L,v,ub.KEY_STICK_ROWS,y.getStickRows,y.setStickRows),L.addCareForBrotherListener(function(B,F,H){F!=ub.KEY_AUTO_SCROLL&&F!=ub.KEY_STICK_ROWS||a.syncEditItemVisible(B,y.isAutoScroll()&&y.isStickNRow())}),a.syncEditItemVisible(L,y.isAutoScroll()&&y.isStickNRow()),
L},f=function(v,y,L){if("listSortField"==v){var B=p.get("gridSortField","\u6392\u5e8f\u5b57\u6bb5");v=new wa;v.setDisplayForNon(p.get("gridNoSortField","\u65e0\uff08\u6309\u7ef4\u5ea6\uff09"));a.initEditItem(v,B,ub.KEY_SORT_FIELD,y.getSortField,y.setSortField);v.addCareForModelChangedListener(function(H,C){if(C.isContainItemModelSet(L)){C=r(L);var aa=y.getSortField();!h(aa,C)&&(aa=null);H.updateCtrlState(C,aa)}});B=r(L);var F=y.getSortField();!h(F,B)&&(F=null);v.updateCtrlState(B,F);return v}if("listSortord"==
v)return B=p.get("gridSortord","\u6392\u5e8f\u65b9\u5f0f"),v=a.createSelectableEditItem([ub.ASCEND_SORT,ub.DESCEND_SORT],function(H,C,aa){H=aa==ub.ASCEND_SORT?p.get("orderAsc","\u5347\u5e8f"):aa==ub.DESCEND_SORT?p.get("orderDesc","\u964d\u5e8f"):"";C.text(H)}),a.initEditItem(v,B,ub.KEY_SORTORD,y.getSortord,y.setSortord),v.addCareForBrotherListener(function(H,C,aa){C==ub.KEY_SORT_FIELD&&a.syncEditItemVisible(H,aa?!0:!1)}),v.addCareForModelChangedListener(function(H,C){if(C.isContainItemModelSet(L)){C=
r(L);var aa=y.getSortField();C=h(aa,C);a.syncEditItemVisible(H,C)}}),a.syncEditItemVisible(v,y.getSortField()?!0:!1),v},m=function(v,y,L){var B=p.get("affectionSrcField","\u8054\u52a8\u6e90\u5b57\u6bb5");v=new wa;v.setDisplayForNon(p.get("itemEmpty","\u65e0"));a.initEditItem(v,B,ub.KEY_AFFECTIOM_SRC_FIELD,y.getAffectionSrcField,y.setAffectionSrcField);v.addCareForModelChangedListener(function(H,C){if(C.isContainItemModelSet(L)){C=k(L);var aa=y.getAffectionSrcField();!h(aa,C)&&(aa=null);H.updateCtrlState(C,
aa)}});B=k(L);var F=y.getAffectionSrcField();!h(F,B)&&(F=null);v.updateCtrlState(B,F);return v},h=function(v,y){for(var L=!1,B=0;B<y.length;B++)if(v==y[B]){L=!0;break}return L},r=function(v){for(var y=[],L=0;L<v.getItemModelCount();L++){var B=v.getItemModel(L);B.isMeasure()&&!B.isInvalid()&&y.push(B)}return y},k=function(v){for(var y=[],L=0;L<v.getItemModelCount();L++){var B=v.getItemModel(L);B.isDimension()&&!B.isInvalid()&&B.getMetaField().getDataType()==I.DT_STRING&&y.push(B)}return y};a.listCreateEditItem=
function(v,y,L){switch(v){case "listShowTopN":case "listShowTopRows":var B=l(v,y);break;case "listSortField":case "listSortord":B=f(v,y,L);break;case "listAutoScroll":case "listStickTopN":case "listStickTopRows":B=n(v,y);break;case "listAffectionSrcField":B=m(v,y,L)}return B}}function Ja(){var a=$("<div>"),l=$("<div>");this.setTitle=function(n){a.text(n)};this.addEditItem=function(n){l.append(n.createJqUi())};this.createJqUi=function(){var n=$("<div>");n.addClass("square-property-card");a.addClass("square-property-card-title");
a.appendTo(n);l.addClass("square-property-card-content");l.appendTo(n);return n}}function ua(){var a=this,l=$("<div>"),n,f,m,h,r,k,v;this.setCaption=function(y){n=y};this.setMethod=function(y,L){f=y;m=L};this.setPropertyKey=function(y){r=y};this.getPropertyKey=function(){return r};this.createJqUi=function(){var y=$("<div>");y.addClass("square-property-item-caption");y.text(n);var L=a.protectedCreateEditorJqUi(f());L.addClass("square-property-item-editor");l.addClass("square-property-item");l.append(y);
l.append(L);return l};this.updateEditor=function(){throw Error("Override me");};this.setVisible=function(y){l.css("display",y?"block":"none")};this.addCareForBrotherListener=function(y){k=y};this.careForPropertyChanged=function(y,L){k&&k(a,y,L)};this.addCareForModelChangedListener=function(y){v=y};this.careForSquareModelChanged=function(y){v&&v(a,y)};this.setCommandManager=function(y){h=y};this.protectedCreateEditorJqUi=function(y){throw Error("Override me");};this.protectedMethod={actionPerformed:function(y){var L=
new J;L.setCaption(p.get("changeProperty","\u4fee\u6539\u5c5e\u6027")+"-"+n);L.setMethod(f,m);L.setValue(y);h.perform(L)},getCommandManager:function(){return h},getOriValue:function(){return f()},getCaption:function(){return n}}}function W(){ua.call(this);var a=this.protectedMethod,l,n,f;this.protectedCreateEditorJqUi=function(r){l=new ea;l.setText(r?r:"");l.addEditedListener(m);return l.getJqUi()};this.updateEditor=function(){if(!f){var r=a.getOriValue();l.setText(r?r:"")}};var m=function(r){clearTimeout(n);
n=setTimeout(h,1E3)},h=function(){var r=l.getText();r!=a.getOriValue()&&(f=!0,a.actionPerformed(r),f=!1)}}function fa(){function a(){E.call(this);var y=this,L=this.protectedMethod,B=new b,F,H,C;this.setCaption=function(qb,Ba){L.setTitle(qb);B.setText(Ba)};this.setText=function(qb,Ba){aa().setText(qb);C=function(V){var K=V?$.trim(aa().getText()):null;Ba(V,K)};L.setClosingAction(C)};this.showDialogLeftAnchorTo=function(qb){if(qb){var Ba=y.protectedGetDialogSize(),V=Ba[0];Ba=Ba[1];y.setSize(V,Ba);qb=
ra.upwardCoordinate(qb[0],[0,0],document.body);y.setPosition(Math.max(0,qb[0]-V-10),Math.max(6,qb[1]-Ba+40))}aa().addEditedListener(Ta);L.setContentPaneCreator(Sa);L.setSelectable(!0);y.showDialog();aa().requestFocus()};this.protectedGetDialogSize=function(){return[360,200]};this.setClosingChecker=function(qb){qb&&(H=function(){var Ba=qb($.trim(aa().getText()));Ba&&L.getMessageCurtain().showPrompt(Ba);return Ba?!1:!0},L.setClosingChecker(H))};var aa=function(){F||(F=y.protectedCreateTextCtrl(function(){if(!H||
H())C(!0),L.destroy()}));return F};this.protectedCreateTextCtrl=function(qb){throw Error("Implement");};var Sa=function(){ra.layoutCtrlWithLRTB(B.getJqUi(),0,0,null,0,null,23);y.protectedLayoutTextCtrl(aa().getJqUi());var qb=$("<div>");qb.append(B.getJqUi());qb.append(aa().getJqUi());return qb};this.protectedLayoutTextCtrl=function(qb){ra.layoutCtrlWithLRTB(qb,0,0,null,30,null,23)};var Ta=function(qb){L.getMessageCurtain().hide()}}function l(){a.call(this);this.protectedCreateTextCtrl=function(y){var L=
new ea;L.addAcceptableListener(function(B,F){F&&y()});return L}}function n(){a.call(this);this.protectedCreateTextCtrl=function(y){return new q};this.protectedGetDialogSize=function(){return[640,480]};this.protectedLayoutTextCtrl=function(y){ra.layoutCtrlWithLRTB(y,0,0,null,30,0,null)}}ua.call(this);var f=this.protectedMethod,m,h=!1;this.setMultiLine=function(y){h=y};this.protectedCreateEditorJqUi=function(y){m=new u;m.addActionListener(k);m.addClearListener(v);m.setClearable(!0);r();return m.getJqUi()};
this.updateEditor=function(){r()};var r=function(){var y=f.getOriValue();m.setModel(y?y:"")},k=function(y){y=h?new n:new l;y.setCaption(f.getCaption(),f.getCaption());y.setText(f.getOriValue(),function(L,B){L&&f.actionPerformed(B)});y.showDialogLeftAnchorTo(m.getJqUi())},v=function(y){f.actionPerformed("")}}function Ea(){ua.call(this);var a=this.protectedMethod,l=new Ca,n;this.getCtrl=function(){return l};this.protectedCreateEditorJqUi=function(m){l.setChecked(m?!0:!1);l.addCheckedListener(f);return l.getJqUi()};
this.updateEditor=function(){if(!n){var m=a.getOriValue();l.setChecked(m?!0:!1)}};var f=function(m,h){h&&(n=!0,a.actionPerformed(l.isChecked()),n=!1)}}function Va(){ua.call(this);var a=this.protectedMethod,l=new c,n;this.getCtrl=function(){return l};this.setConstraint=function(m,h,r){l.setConstraint(m,h,r)};this.protectedCreateEditorJqUi=function(m){l.setValue(m);l.addValueChangedListener(f);return l.getJqUi()};this.updateEditor=function(){var m=a.getOriValue();l.setValue(m)};var f=function(m,h,r,
k){k==c.CHANGED_BY_MANUAL_ADJUST?(clearTimeout(n),n=setTimeout(function(){a.actionPerformed(l.getValue())},625)):k==c.CHANGED_BY_MANUAL_EDIT&&a.actionPerformed(l.getValue())}}function Oa(){ua.call(this);var a=this.protectedMethod,l=new U,n;this.setSelectable=function(m,h,r){l.setItemModels(m,h);l.setCustomPainter(r)};this.protectedCreateEditorJqUi=function(m){l.setSelected(m);l.addSelectedChangedListener(f);return l.getJqUi()};this.updateEditor=function(){if(!n){var m=a.getOriValue();l.setSelected(m)}};
var f=function(m,h,r){n=!0;a.actionPerformed(l.getSelected());n=!1}}function wa(){ua.call(this);var a=this.protectedMethod,l,n=new U,f;this.setDisplayForNon=function(r){l=r};this.updateCtrlState=function(r,k){r=["Non"].concat(r);n.setItemModels(r);r=k;n.setSelected(r?r:"Non")};this.protectedCreateEditorJqUi=function(r){n.setCustomPainter(h);n.addSelectedChangedListener(m);return n.getJqUi()};this.updateEditor=function(){if(!f){var r=a.getOriValue();n.setSelected(r?r:"Non")}};var m=function(r,k,v){f=
!0;r=a.actionPerformed;k=n.getSelected();r.call(a,"Non"==k?null:k);f=!1},h=function(r,k,v){v&&"Non"!=v?k.text(v.getText()):k.text(l)}}function Ga(){function a(){E.call(this);var y=this,L=this.protectedMethod,B,F,H,C,aa,Sa;this.edit=function(ya,oa,Pa,yb){var Pb=Ta(oa),Hb=oa.getChartTypeName()==Aa.ChartType_ProgressBar||oa.getChartTypeName()==Aa.ChartType_ProgressColumn;L.setTitle(p.get("sortAccording","\u6392\u5e8f\u4f9d\u636e"));y.setSize(600,400);L.setContentPaneCreator(function(){return qb(ya,Pb,
Pa,Hb)});L.setClosingAction(function(Tb){if(Tb){Tb=null;if(F.isChecked()){var hc=C.getSelected()[0];Tb=new Ab;Tb.setupMeasureIndexMode(hc)}else if(H.isChecked()){hc=aa.getEditingMetaFieldFullName();var oc=aa.getEditingAggregation();hc&&oc&&(Tb=new Ab,Tb.setupAnyFieldMode(hc,oc))}yb(Tb)}})};var Ta=function(ya){var oa=[],Pa=0;ya.lookupAllItemModelSet(function(yb){yb=yb.getSquareField();yb.isMeasure()&&!yb.isInvalid()&&oa.push([Pa++,yb])},!0);return oa},qb=function(ya,oa,Pa,yb){Sa=$("<div>");Sa.css({color:"#930"});
Pa=V(oa,Pa);Pa=K(ya,Pa);B=new t;B.setText(p.get("sortAccordingDefault","\u7cfb\u7edf\u9ed8\u8ba4")+(yb?p.get("orderByRatio","(\u6309\u5b8c\u6210\u7387)"):""));F=new t;F.setText(p.get("sortAccordingMeasure","\u6307\u5b9a\u5ea6\u91cf"));F.setEnabled(1<oa.length);H=new t;H.setText(p.get("sortAccordingCustom","\u81ea\u5b9a\u4e49"));ya=new w;ya.addElement(B);ya.addElement(F);ya.addElement(H);ya.addChangedListener(function(Pb,Hb){Hb&&Sa.text("");C.setEnabled(Pb==F);aa.setEnabled(Pb==H)});B.setChecked(!Pa);
F.setChecked(Pa&&Pa.isMeasureIndexMode());H.setChecked(Pa&&Pa.isAnyFieldMode());Pa=aa.getMetaFieldJqUi();ya=aa.getAggregationJqUi();oa=$("<div>");Ba(oa,B.getJqUi(),0,0,160,23);Ba(oa,F.getJqUi(),0,30,160,23);Ba(oa,C.getJqUi(),20,60,320,23);Ba(oa,H.getJqUi(),0,100,160,23);Ba(oa,Pa,20,130,320,23);Ba(oa,ya,360,130,100,23);Ba(oa,Sa,0,180,"100%",80);return oa},Ba=function(ya,oa,Pa,yb,Pb,Hb){ra.layoutCtrl(oa,Pa,yb,Pb,Hb);ya.append(oa)},V=function(ya,oa){C=new U;C.setCustomPainter(function(Pb,Hb,Tb){Pb="";
Tb instanceof Array&&(Pb=Tb[0]+1,Tb=Tb[1].getComplexText(),Pb=p.get("sortAccordingMeasureIndex","\u7b2c#1\u4e2a\u5ea6\u91cf").replace("#1",Pb),Pb+=Tb);Hb.text(Pb)});C.setItemModels(ya,function(Pb,Hb){return(Pb instanceof Array?Pb[0]:-1)===(Hb instanceof Array?Hb[0]:-1)});if(oa&&oa.isMeasureIndexMode())if(1>=ya.length){oa=null;var Pa=p.get("sortAccordingPrompt1","\u5f53\u524d\u7ed1\u5b9a\u7684\u5b57\u6bb5\u5c11\u4e8e2\u4e2a\u5ea6\u91cf\uff0c\u5df2\u81ea\u52a8\u5c06\u4e4b\u524d\u8bbe\u7f6e\u7684\u201c\u6307\u5b9a\u5ea6\u91cf\u201d\u4fee\u590d\u4e3a\u201c\u7cfb\u7edf\u9ed8\u8ba4\u201d\u3002");
X(Pa)}else{if(oa.getMeasureIndex()<ya.length)var yb=oa.getMeasureIndex();else yb=0,Pa=p.get("sortAccordingPrompt2","\u4e4b\u524d\u6307\u5b9a\u7684\u7b2c#1\u4e2a\u5ea6\u91cf\u4e0d\u5b58\u5728\uff0c\u5df2\u4fee\u590d\u4e3a\u7b2c1\u4e2a\u5ea6\u91cf\u3002"),Pa=Pa.replace("#1",oa.getMeasureIndex()+1),X(Pa);C.setSelected(ya[yb])}else 0<ya.length&&C.setSelected(ya[0]);return oa},K=function(ya,oa){aa=new Ia;aa.initCtrl(ya,function(Pa,yb){oa&&oa.isAnyFieldMode()&&yb(Pa,oa.getMetaFieldFullName(),oa.getAggregation(),
function(Pb){oa=null;var Hb=p.get("sortAccordingPrompt3","\u65e0\u6548\u7684\u8ba1\u7b97\u5b57\u6bb5#1\uff0c\u5df2\u81ea\u52a8\u5c06\u4e4b\u524d\u8bbe\u7f6e\u7684\u201c\u81ea\u5b9a\u4e49\u201d\u4fee\u590d\u4e3a\u201c\u7cfb\u7edf\u9ed8\u8ba4\u201d\u3002");Hb=Hb.replace("#1",Pb.getComplexText());X(Hb)},function(Pb,Hb){Pb=Pb?P.aggregationToString(Pb):"nul";Hb=Hb?P.aggregationToString(Hb):"nul";var Tb=p.get("sortAccordingPrompt4","\u7531\u4e8e\u5b57\u6bb5\u6570\u636e\u7c7b\u578b\u53d8\u5316\u3001\u8ba1\u7b97\u5b57\u6bb5\u5185\u5bb9\u53d8\u5316\u6216\u5176\u5b83\u76f8\u5173\u539f\u56e0\uff0c\u5df2\u81ea\u52a8\u5c06\u4e4b\u524d\u8bbe\u7f6e\u7684\u805a\u5408\u65b9\u5f0f\u201c#1\u201d\u4fee\u590d\u4e3a\u201c#2\u201d\u3002");
Tb=Tb.replace("#1",Pb);Tb=Tb.replace("#2",Hb);X(Tb)},function(Pb){oa=null;Pb=p.get("sortAccordingPrompt5","\u627e\u4e0d\u5230\u5b57\u6bb5\u201c#1\u201d\uff0c\u5df2\u81ea\u52a8\u5c06\u4e4b\u524d\u8bbe\u7f6e\u7684\u201c\u81ea\u5b9a\u4e49\u201d\u4fee\u590d\u4e3a\u201c\u7cfb\u7edf\u9ed8\u8ba4\u201d\u3002").replace("#1",Pb);X(Pb)})});return oa},X=function(ya){ya+=" "+p.get("sortAccordingPromptPostfix","\u6309\u201c\u786e\u5b9a\u201d\u6309\u94ae\u5b8c\u6210\u4fee\u6539\u3002");Sa.text(ya)}}ua.call(this);
var l=this,n=this.protectedMethod,f,m,h;this.setModelContext=function(y,L){m=y;h=L};this.protectedCreateEditorJqUi=function(y){f=new u;f.setCustomPainter(r);f.addActionListener(v);f.addClearListener(k);f.setClearable(!0);l.updateEditor();return f.getJqUi()};this.updateEditor=function(){var y=n.getOriValue();f.setModel(y)};var r=function(y){return y?y.isMeasureIndexMode()?p.get("sortAccordingMeasure","\u6307\u5b9a\u5ea6\u91cf"):y.isAnyFieldMode()?p.get("sortAccordingCustom","\u81ea\u5b9a\u4e49"):"Error":
p.get("sortAccordingDefault","\u7cfb\u7edf\u9ed8\u8ba4")},k=function(y){n.actionPerformed(null)},v=function(y){y=m();var L=new a;L.edit(y,h,n.getOriValue(),function(B){n.actionPerformed(B)});L.showDialog()}}function Ia(){var a=new Da,l=new U,n;this.getEditingMetaFieldFullName=function(){return a.getSelected()};this.getEditingAggregation=function(){return l.getSelected()};this.getMetaFieldJqUi=function(){return a.getJqUi()};this.getAggregationJqUi=function(){return l.getJqUi()};this.setEnabled=function(h){a.setEnabled(h);
l.setEnabled(h)};this.setSelectionListener=function(h){n=h};this.initCtrl=function(h,r){var k=new D;k.merge(h);a.setModel(k);a.setSelectedListener(function(v){v=k.searchMetaField(v);m(v);n&&n()});l.addSelectedChangedListener(function(v,y,L){n&&n()});l.setCustomPainter(function(v,y,L){y.text(L?P.aggregationToString(L):"")});r(k,f)};var f=function(h,r,k,v,y,L){(h=h.searchMetaField(r))?h.isInvalid()?(a.setSelected(r),v(h)):(a.setSelected(r),l.setSelected(k),m(h),r=l.getSelected(),r!=k&&y(k,r)&&l.setSelected(null)):
L(r)},m=function(h){if(h.isInvalid())l.setItemModels([]),l.setSelected(null);else{var r=[];h.isRelativeAggregation()?r.push(P.AGGREGATION_AGG):(h.getDataType()==I.DT_NUMBER&&(r.push(P.AGGREGATION_SUM),r.push(P.AGGREGATION_AVG),r.push(P.AGGREGATION_MAX),r.push(P.AGGREGATION_MIN)),r.push(P.AGGREGATION_COUNT),r.push(P.AGGREGATION_CNTD));l.setItemModels(r);h=l.getSelected();-1==r.indexOf(h)&&l.setSelected(r[0])}}}function hb(){function a(){E.call(this);var v=this,y=this.protectedMethod,L;this.edit=function(B,
F){y.setTitle(p.get("numberFormat","\u6570\u5b57\u683c\u5f0f"));L||(L=new ia,v.setSize(428,257),y.setContentPaneCreator(function(){return L.getJqUi()}),y.setClosingChecker(L.isValidToAccepted),y.setClosingAction(function(C){C&&(C=L.getModel().encode(),F(C))}));var H=new M;H.decode(B?B:"#,##0");L.setModel(H)}}ua.call(this);var l=this,n=this.protectedMethod,f,m=p.get("itemEmpty","\u672a\u8bbe\u7f6e");this.protectedCreateEditorJqUi=function(v){f=new u;f.setCustomPainter(k);f.addActionListener(h);f.addClearListener(r);
f.setClearable(!0);l.updateEditor();return f.getJqUi()};this.updateEditor=function(){var v=n.getOriValue();f.setModel(v)};this.setDisplayForEmpty=function(v){m=v};var h=function(v){v=new a;v.edit(n.getOriValue(),function(y){n.actionPerformed(y)});v.showDialog()},r=function(v){n.actionPerformed(null)},k=function(v){return v?(new sa).toSampleString(v):m}}function ib(){ua.call(this);var a=this,l=this.protectedMethod,n,f;this.setUsableChecker=function(k){f=k};this.protectedCreateEditorJqUi=function(k){n=
new u;n.setCustomPainter(m);n.addActionListener(h);n.addClearListener(r);n.setClearable(!0);a.updateEditor();return n.getJqUi()};this.updateEditor=function(){var k=l.getOriValue();k=k?k.getItemCount():0;n.setModel(k)};var m=function(k){return k?p.get("linkageInputterDisplay","\u5df2\u8bbe\u7f6e#1\u9879\u76ee\u6807").replace("#1",k):p.get("itemEmpty","\u672a\u8bbe\u7f6e")},h=function(k){f()&&(k=(k=l.getOriValue())?k.toArray():[],Y.setup(k,function(){return(new Z).addItem()},function(v){if(v)if(0==
v.length)l.actionPerformed(null);else{var y=new Z;y.fromArray(v);l.actionPerformed(y)}}))},r=function(k){l.actionPerformed(null)}}function nb(){function a(){E.call(this);var y=this.protectedMethod,L=!1,B;this.edit=function(Sa,Ta){L=Sa;y.setTitle(p.get("palette","\u8c03\u8272\u677f"));y.setContentPaneCreator(function(){var qb={isCustom:function(){return L},getDefaultPalette:function(){return r[nb.DEFAULT_WHITE]},getJqCustomRadioButton:function(){return B}};return n.protectedCreateDialogMainPane({createPaletteJqUi:function(){return F(Ta)},
getFirstTabChannel:function(){return qb}})});y.setClosingChecker(function(){return n.protectedDialogClosingAsker(L,y.getMessageCurtain())});y.setClosingAction(function(qb){qb&&n.protectedDialogConfirmed(L?n.protectedAcceptCustomEditing(Ta):null)})};var F=function(Sa){var Ta=new x;Ta.setText(p.get("paletteResetToPreset","\u91cd\u7f6e"));Ta.addActionListener(function(oa){H(oa.getJqUi(),Sa)});var qb=new x;qb.setText(p.get("paletteCopy","\u590d\u5236"));qb.addActionListener(function(oa){C(oa.getJqUi(),
Sa)});var Ba=new x;Ba.setText(p.get("palettePaste","\u7c98\u8d34"));Ba.addActionListener(function(oa){aa(oa.getJqUi(),Sa)});var V=n.protectedCreateSettingUi(Sa),K=$("<div>");K.css("border-top","1px solid #f0f0f0");var X=$("<div>");X.append(qb.getJqUi());X.append(Ba.getJqUi());X.append(Ta.getJqUi());X.append(K);X.append(V);ra.layoutCtrlWithLRTB(Ta.getJqUi(),null,0,60,0,null,23);ra.layoutCtrlWithLRTB(Ba.getJqUi(),null,60,60,0,null,23);ra.layoutCtrlWithLRTB(qb.getJqUi(),null,120,60,0,null,23);ra.layoutCtrlWithLRTB(K,
0,0,null,30,null,0);ra.layoutCtrlWithLRTB(V,20,0,null,40,0,null);Ta=new t;Ta.setText(p.get("paletteDefault","\u7cfb\u7edf\u9ed8\u8ba4")+" "+p.get("paletteDefaultPrompt","\uff08\u81ea\u52a8\u9002\u914d\u5916\u89c2\u98ce\u683c\uff09"));var ya=new t;ya.setText(p.get("paletteCustom","\u81ea\u5b9a\u4e49"));B=ya.getJqUi();qb=new w;qb.addElement(Ta);qb.addElement(ya);qb.addChangedListener(function(oa,Pa){L=oa==ya;X.css("visibility",L?"visible":"hidden")});Ta.setChecked(!L);ya.setChecked(L);qb=$("<div>");
qb.append(Ta.getJqUi());qb.append(ya.getJqUi());qb.append(X);ra.layoutCtrlWithLRTB(Ta.getJqUi(),0,null,320,0,null,23);ra.layoutCtrlWithLRTB(ya.getJqUi(),0,null,320,33,null,23);ra.layoutCtrlWithLRTB(X,0,0,null,35,0,null);return qb},H=function(Sa,Ta){var qb=new l;qb.setConfirmedListener(function(Ba){Ba&&(Ba=qb.getSelected(),(Ba=r[Ba])&&n.protectedResetDefault(Ba,Ta))});qb.show(Sa)},C=function(Sa,Ta){var qb=new g;qb.setText(p.get("paletteCopyAsk","\u662f\u5426\u5c06\u5f53\u524d\u81ea\u5b9a\u4e49\u8bbe\u7f6e\u590d\u5236\u5230\u526a\u8d34\u677f\uff1f"));
qb.setConfirmedListener(function(Ba){if(Ba)if(Ba=n.protectedGetClipboardKey(),Ta=n.protectedAcceptCustomEditing(Ta)){var V=JSON.stringify(Ta.toJsonObject());window.sessionStorage.setItem(Ba,V);y.getMessageCurtain().showSuccess(p.get("paletteCopySuccess","\u5df2\u590d\u5236\u5230\u526a\u8d34\u677f\u3002"))}else y.getMessageCurtain().showPrompt(p.get("paletteCopyInvalid","\u65e0\u6548\u7684\u81ea\u5b9a\u4e49\u8bbe\u7f6e\uff0c\u4e0d\u80fd\u590d\u5236\u3002"))});qb.show(Sa)},aa=function(Sa,Ta){var qb=
new g;qb.setText(p.get("palettePasteAsk","\u662f\u5426\u4ece\u526a\u8d34\u677f\u590d\u539f\u81ea\u5b9a\u4e49\u8bbe\u7f6e\uff1f"));qb.setConfirmedListener(function(Ba){Ba&&(Ba=n.protectedGetClipboardKey(),(Ba=window.sessionStorage.getItem(Ba))?(Ba=JSON.parse(Ba),n.protectedRestoreFromClipboard(Ba,Ta),y.getMessageCurtain().showSuccess(p.get("palettePasteSuccess","\u5df2\u4ece\u526a\u8d34\u677f\u590d\u539f\u3002"))):y.getMessageCurtain().showPrompt(p.get("palettePasteInvalid","\u526a\u8d34\u677f\u6ca1\u6709\u5185\u5bb9\u3002")))});
qb.show(Sa)}}function l(){g.call(this);var y;this.protectedDecorateContent=function(B){var F=new w;F.addChangedListener(function(Sa,Ta){y=Sa.getUserObject()});var H=L(B,F,"paletteResetToPresetWhite","\u9002\u914d\u6de1\u96c5\u767d",nb.DEFAULT_WHITE),C=L(B,F,"paletteResetToPresetDarkBlue","\u9002\u914d\u6df1\u9083\u84dd",nb.DEFAULT_DARK),aa=L(B,F,"paletteResetToPresetGold","\u9002\u914d\u571f\u8c6a\u91d1",nb.DEFAULT_GOLD);F=L(B,F,"paletteResetToPresetCyan","\u9002\u914d\u9759\u8c27\u9752",nb.DEFAULT_CYAN);
H.setChecked(!0);B.css("width",600);ra.layoutCtrl(H.getJqUi(),20,4,120,23);ra.layoutCtrl(C.getJqUi(),160,4,120,23);ra.layoutCtrl(aa.getJqUi(),300,4,120,23);ra.layoutCtrl(F.getJqUi(),440,4,120,23)};this.getSelected=function(){return y};var L=function(B,F,H,C,aa){var Sa=new t;Sa.setText(p.get(H,C));Sa.setUserObject(aa);Sa.setChecked(!1);F.addElement(Sa);B.append(Sa.getJqUi());return Sa}}ua.call(this);var n=this,f=this.protectedMethod,m,h,r;this.setPresetPaletteGetter=function(y){h=y};this.protectedCreateEditorJqUi=
function(y){m=new u;m.addActionListener(k);n.updateEditor();return m.getJqUi()};this.protectedGetPaletteModel=function(){return f.getOriValue()};this.updateEditor=function(){var y=n.protectedGetPaletteModel()?p.get("paletteCustom","\u81ea\u5b9a\u4e49"):p.get("paletteDefault","\u7cfb\u7edf\u9ed8\u8ba4");m.setModel(y)};var k=function(y){var L=(y=n.protectedGetPaletteModel())?!0:!1;y=n.protectedInitEditableModel(y);var B=new a;n.protectedInitDialog(B);B.edit(L,y);B.showDialog();v(y)},v=function(y){var L=
function(){n.protectedInitDisplay(y,r[nb.DEFAULT_WHITE])};r?setTimeout(L,0):(r={},h(function(B){for(var F=[],H=0;H<B.length;H++){var C=B[H],aa=new O;aa.fromJsonObject(C);F.push(aa)}for(H=0;H<F.length;H++)(B=F[H])?r[B.getPresetName()]=B:window.console&&window.console.warn("Load preset palette error.");L()}))};this.protectedInitDisplay=function(y,L){throw Error("Implement");};this.protectedInitEditableModel=function(y){throw Error("Implement");};this.protectedAcceptCustomEditing=function(y){return y};
this.protectedInitDialog=function(y){y.setSize(720,480)};this.protectedCreateSettingUi=function(y){throw Error("Implement");};this.protectedResetDefault=function(y,L){throw Error("Implement");};this.protectedGetClipboardKey=function(){throw Error("Implement");};this.protectedRestoreFromClipboard=function(y,L){throw Error("Implement");};this.protectedCreateDialogMainPane=function(y){return y.createPaletteJqUi()};this.protectedDialogClosingAsker=function(y,L){return!0};this.protectedDialogConfirmed=
function(y){f.actionPerformed(y)}}function bb(){function a(v){ca.AbstractTabPane.call(this);var y;this.getTabHeadText=function(){return p.get("paletteSettingTabColor","\u989c\u8272")};this.getJqUi=function(){if(!y){y=$("<div>");var L=v.createPaletteJqUi();L.appendTo(y);ra.layoutCtrlWithLRTB(L,20,20,null,10,10,null)}return y};this.promptEditingInvalid=function(L){var B=m.checkEditingInvalid();return B?(L.jumpToTab(0),L=new g,L.setText(B.getPrompt()),L.show(B.getJqAnchor(),!0),!0):!1}}function l(){ca.AbstractTabPane.call(this);
var v,y,L=new za,B,F;this.setEnabled=function(C){v=C};this.setMemberTextRequester=function(C){L.setMemberTextRequester(C)};this.setForwardTabChannel=function(C){y=C};this.setInitMappingModel=function(C){L.setInitMapping(C)};this.getEditedMappingModel=function(){return L.getEditedMapping()};this.announceClick=function(C){L.announceClick(C)};this.getTabHeadText=function(){return p.get("paletteSettingTabMapping","\u503c\u6620\u5c04")};this.getJqUi=function(){B||(B=$("<div>"),B.append(L.getJqUi()),ra.layoutCtrlWithLRTB(L.getJqUi(),
20,20,null,10,10,null),v||(F=$("<div>"),F.text(p.get("paletteMappingNoColorField","\u6ca1\u6709\u8868\u793a\u989c\u8272\u7684\u7ef4\u5ea6\u5b57\u6bb5\uff0c\u4e0d\u80fd\u505a\u503c\u6620\u5c04\u3002")),F.css({"line-height":"200px","text-align":"center",color:"#666","background-color":"rgba(248,248,248,0.8)"}),B.append(F),ra.layoutCtrlWithLRTB(F,0,0,null,0,0,null)));return B};this.into=function(){v&&H()};var H=function(C){if(y.isCustom()){var aa=new O;m.acceptEditing(aa);aa=aa.getColors()}else aa=y.getDefaultPalette().getColors();
L.updatePalette(aa,C)};this.promptEditingInvalid=function(C){if(v){L.announceClick(B);H(!0);var aa=L.checkEditingInvalid();if(aa){C.jumpToTab(1);C=aa.getJqAnchor();var Sa=aa.getPrompt();(aa=aa.isSolidInvalid())&&(Sa+=p.get("paletteMappingPrompt1","\u5982\u679c\u786e\u5b9e\u4e0d\u4f7f\u7528\u4e2d\u95f4\u7684\u989c\u8272\u2026\u2026"));var Ta=new g;Ta.setText(Sa);Ta.setConfirmedButtonText(p.get("paletteMappingToContinue","\u7ee7\u7eed"));aa&&Ta.setConfirmedListener(function(qb){qb=y.getJqCustomRadioButton().children().eq(0);
var Ba=p.get("paletteMappingPrompt2","\u2026\u2026\u5e94\u8be5\u5728\u989c\u8272\u201c\u81ea\u5b9a\u4e49\u201d\u4e2d\u5c06\u7528\u4e0d\u5230\u7684\u989c\u8272\u8c03\u6574\u5230\u540e\u9762\u6216\u8005\u5220\u9664\u6389\u3002");f.jumpToTab(0);var V=new g;V.setText(Ba);V.show(qb,!0)});Ta.show(C,!0);return!0}}return!1}}nb.call(this);var n=this.protectedMethod,f,m,h,r,k;this.bindColorFieldAsker=function(v){k=v};this.protectedCreateDialogMainPane=function(v){h=new a(v);r=new l;r.setEnabled(k.isColorFieldExist());
r.setMemberTextRequester(k.getMemberTextGetter());r.setForwardTabChannel(v.getFirstTabChannel());r.setInitMappingModel(n.getOriValue()[1]);f=new ca;f.setBorderVisible(!0);f.setTabPanes([h,r]);f.setTabHeadItemHeight(40);f.setTabHeadWidth(120);setTimeout(function(){f.refreshUi()},0);v=f.getJqUi();v.on("click",function(y){r.announceClick($(y.target))});return v};this.protectedDialogClosingAsker=function(v,y){y=!0;v&&h.promptEditingInvalid(f)?y=!1:r.promptEditingInvalid(f)&&(y=!1);return y};this.protectedDialogConfirmed=
function(v){var y=k.getOtherFieldWithColor();y&&n.getCommandManager().compositeStart(p.get("changeProperty","\u4fee\u6539\u5c5e\u6027")+"-"+n.getCaption());var L=r.getEditedMappingModel();n.actionPerformed([v,L]);y&&(v=new J,v.setMethod(y.getDiscreteColor,y.setDiscreteColor),v.setValue(null),n.getCommandManager().perform(v),n.getCommandManager().compositeEnd())};this.protectedGetPaletteModel=function(){return n.getOriValue()[0]};this.protectedInitEditableModel=function(v){var y=new O;v&&y.setColors(v.getColors().slice(0));
return y};this.protectedInitDisplay=function(v,y){0==v.getColors().length&&(y=y.getColors().slice(0),v.setColors(y));m.setPalette(v)};this.protectedAcceptCustomEditing=function(v){m.acceptEditing(v);return 0==v.getColors().length?null:v};this.protectedResetDefault=function(v,y){v=v.getColors().slice(0);y.setColors(v);m.setPalette(y)};this.protectedGetClipboardKey=function(){return"kd.qing.core.palette.share"};this.protectedRestoreFromClipboard=function(v,y){y.fromJsonObject(v);m.setPalette(y)};this.protectedCreateSettingUi=
function(v){m=new T;m.setPalette(v);v=m.createJqUi();var y=$("<div>");y.append(v);ra.layoutCtrlWithLRTB(v,0,0,null,16,0,null);return y}}function la(){nb.call(this);var a,l;this.protectedInitDialog=function(f){f.setSize(400,300)};this.protectedInitEditableModel=function(f){var m=new O;f&&m.setColors(f.getColors().slice(0));return m};this.protectedInitDisplay=function(f,m){0==f.getColors().length&&(m=m.getColors().slice(0),f.setColors(m));n(f)};this.protectedResetDefault=function(f,m){f=f.getColors().slice(0);
m.setColors(f);n(m)};this.protectedGetClipboardKey=function(){return"kd.qing.core.palette.progress"};this.protectedRestoreFromClipboard=function(f,m){m.fromJsonObject(f);n(m)};this.protectedCreateSettingUi=function(f){var m=new b(p.get("desiredProgress","\u76ee\u6807\u503c")),h=new b(p.get("completedProgress","\u5b9e\u9645\u503c"));a=new d;a.addSelectedListener(function(k){f.getColors()[0]=k.encodeToHexRgb()});l=new d;l.addSelectedListener(function(k){f.getColors()[1]=k.encodeToHexRgb()});n(f);var r=
$("<div>");r.append(m.getJqUi());r.append(h.getJqUi());r.append(a.getJqUi());r.append(l.getJqUi());ra.layoutCtrlWithLRTB(m.getJqUi(),0,null,120,10,null,23);ra.layoutCtrlWithLRTB(h.getJqUi(),180,null,120,10,null,23);ra.layoutCtrlWithLRTB(a.getJqUi(),0,null,120,33,null,23);ra.layoutCtrlWithLRTB(l.getJqUi(),180,null,120,33,null,23);return r};var n=function(f){a.getModel().decodeFrom(f.getColors()[0]);l.getModel().decodeFrom(f.getColors()[1])}}function Jb(){nb.call(this);var a,l,n;this.protectedInitDialog=
function(h){h.setSize(400,360)};this.protectedInitEditableModel=function(h){var r=new O;h&&r.setColors(h.getColors().slice(0));return r};this.protectedInitDisplay=function(h,r){0==h.getColors().length&&(r=r.getColors().slice(0),h.setColors(r));m(h)};this.protectedResetDefault=function(h,r){h=h.getColors().slice(0);r.setColors(h);m(r)};this.protectedGetClipboardKey=function(){return"kd.qing.core.palette.waterfall"};this.protectedRestoreFromClipboard=function(h,r){r.fromJsonObject(h);m(r)};this.protectedCreateSettingUi=
function(h){var r=$("<div>");a=f(h,0,r,0,10,100,p.get("waterfallPatettePositive","\u6761\u76ee\u6b63\u503c"));l=f(h,1,r,140,10,100,p.get("waterfallPatetteNegative","\u6761\u76ee\u8d1f\u503c"));n=f(h,2,r,0,70,240,p.get("waterfallStage","\u9636\u6bb5"));m(h);return r};var f=function(h,r,k,v,y,L,B){B=new b(B);var F=new d;F.addSelectedListener(function(H){h.getColors()[r]=H.encodeToHexRgb()});k.append(B.getJqUi());k.append(F.getJqUi());ra.layoutCtrlWithLRTB(B.getJqUi(),v,null,L,y,null,23);ra.layoutCtrlWithLRTB(F.getJqUi(),
v,null,L,y+23,null,23);return F},m=function(h){a.getModel().decodeFrom(h.getColors()[0]);l.getModel().decodeFrom(h.getColors()[1]);n.getModel().decodeFrom(h.getColors()[2])}}function pa(){nb.call(this);var a=["#bbbbbb #666666 #6c7fae #08C2B6 #ff9933 #ff3333".split(" "),"#d5d5d5 #808080 #7f93bd #09DCCE #ff9966 #ff6666".split(" "),"#f0f0f0 #999999 #90a1c6 #0AEBDC #ffcc66 #ff9999".split(" ")],l,n,f,m,h;this.protectedInitDialog=function(B){B.setSize(560,420)};this.protectedInitEditableModel=function(B){var F=
new xa;B&&F.mergeColorFrom(B);return F};this.protectedInitDisplay=function(B,F){B.isColorEmpty()&&L(B,F);r(B)};this.protectedResetDefault=function(B,F){L(F,B);r(F)};this.protectedGetClipboardKey=function(){return"kd.qing.core.palette.kpi"};this.protectedRestoreFromClipboard=function(B,F){var H=new xa;H.fromJsonObject(B);F.mergeColorFrom(H);r(F)};this.protectedCreateSettingUi=function(B){l=v(p.get("kpiStyleCaption","\u4e3b\u6307\u6807\u6458\u8981"),B.getCaptionStyleItem());n=v(p.get("kpiStylePrimaryValue",
"\u4e3b\u6307\u6807\u6570\u503c"),B.getPrimaryValueStyleItem());f=v(p.get("kpiStylePrimaryText","\u4e3b\u6307\u6807\u6587\u5b57"),B.getPrimaryTextStyleItem());m=v(p.get("kpiStyleSecondaryValue","\u526f\u6307\u6807\u6570\u503c"),B.getSecondaryValueStyleItem());h=v(p.get("kpiStyleSecondaryText","\u526f\u6307\u6807\u6587\u5b57"),B.getSecondaryTextStyleItem());r(B);B=$("<div>");y(B,l[0],0,null,160,0,null,60);y(B,n[0],0,null,160,60,null,60);y(B,f[0],280,null,160,60,null,60);y(B,m[0],0,null,160,120,null,
60);y(B,h[0],280,null,160,120,null,60);return B};var r=function(B){k(l,B.getCaptionStyleItem());k(n,B.getPrimaryValueStyleItem());k(f,B.getPrimaryTextStyleItem());k(m,B.getSecondaryValueStyleItem());k(h,B.getSecondaryTextStyleItem())},k=function(B,F){var H=(F=F.getColor())?!0:!1;!F&&(F="#808080");var C=B[2];B[1].setChecked(H);C.getModel().decodeFrom(F);C.getJqUi().css("display",H?"":"none")},v=function(B,F){var H=new Ca;H.setText(B);H.addCheckedListener(function(aa,Sa){Sa&&(aa=aa.isChecked(),C.getJqUi().css("display",
aa?"":"none"),F.setColor(aa?C.getModel().encodeToHexRgb():null))});var C=new d;C.setColorPool(a);C.addSelectedListener(function(aa){F.setColor(aa.encodeToHexRgb())});B=$("<div>");y(B,H.getJqUi(),0,0,null,0,null,23);y(B,C.getJqUi(),0,0,null,23,null,23);return[B,H,C]},y=function(B,F,H,C,aa,Sa,Ta,qb){B.append(F);ra.layoutCtrlWithLRTB(F,H,C,aa,Sa,Ta,qb)},L=function(B,F){F=F.getColors();B.getCaptionStyleItem().setColor(F[0]);B.getPrimaryValueStyleItem().setColor(F[1]);B.getPrimaryTextStyleItem().setColor(F[2]);
B.getSecondaryValueStyleItem().setColor(F[3]);B.getSecondaryTextStyleItem().setColor(F[4])}}function Gb(){function a(){E.call(this);var r=this.protectedMethod,k=!1;this.edit=function(B,F,H){k=B;r.setTitle(p.get("styleFontSize","\u5b57\u53f7"));r.setContentPaneCreator(function(){return v(F)});r.setClosingAction(function(C){C&&H(k?F:null)})};var v=function(B){var F=y(p.get("kpiStyleCaption","\u4e3b\u6307\u6807\u6458\u8981"),B.getCaptionStyleItem()),H=y(p.get("kpiStylePrimaryValue","\u4e3b\u6307\u6807\u6570\u503c"),
B.getPrimaryValueStyleItem()),C=y(p.get("kpiStylePrimaryText","\u4e3b\u6307\u6807\u6587\u5b57"),B.getPrimaryTextStyleItem()),aa=y(p.get("kpiStyleSecondaryValue","\u526f\u6307\u6807\u6570\u503c"),B.getSecondaryValueStyleItem());B=y(p.get("kpiStyleSecondaryText","\u526f\u6307\u6807\u6587\u5b57"),B.getSecondaryTextStyleItem());var Sa=$("<div>");L(Sa,F,0,null,160,0,null,60);L(Sa,H,0,null,160,60,null,60);L(Sa,C,280,null,160,60,null,60);L(Sa,aa,0,null,160,120,null,60);L(Sa,B,280,null,160,120,null,60);F=
new t;F.setText(p.get("paletteDefault","\u7cfb\u7edf\u9ed8\u8ba4"));var Ta=new t;Ta.setText(p.get("paletteCustom","\u81ea\u5b9a\u4e49"));H=new w;H.addElement(F);H.addElement(Ta);H.addChangedListener(function(qb,Ba){k=qb==Ta;Sa.css("visibility",k?"visible":"hidden")});F.setChecked(!k);Ta.setChecked(k);H=$("<div>");H.append(F.getJqUi());H.append(Ta.getJqUi());H.append(Sa);ra.layoutCtrlWithLRTB(F.getJqUi(),0,null,240,0,null,23);ra.layoutCtrlWithLRTB(Ta.getJqUi(),0,null,240,33,null,23);ra.layoutCtrlWithLRTB(Sa,
20,0,null,70,0,null);return H},y=function(B,F){B=new b(B);var H=F.getFontSize();!H&&(H=16);var C=new c;C.setConstraint(6,999,1);C.setValue(H);C.addValueChangedListener(function(aa,Sa,Ta,qb){F.setFontSize(Ta)},!0);H=$("<div>");L(H,B.getJqUi(),0,0,null,0,null,23);L(H,C.getJqUi(),0,0,null,23,null,23);return H},L=function(B,F,H,C,aa,Sa,Ta,qb){B.append(F);ra.layoutCtrlWithLRTB(F,H,C,aa,Sa,Ta,qb)}}ua.call(this);var l=this,n=this.protectedMethod,f;this.protectedCreateEditorJqUi=function(r){f=new u;f.addActionListener(m);
l.updateEditor();return f.getJqUi()};this.updateEditor=function(){var r=n.getOriValue()?p.get("paletteCustom","\u81ea\u5b9a\u4e49"):p.get("paletteDefault","\u7cfb\u7edf\u9ed8\u8ba4");f.setModel(r)};var m=function(r){var k=(r=n.getOriValue())?!0:!1;r=h(r);var v=new a;v.setSize(560,420);v.edit(k,r,function(y){n.actionPerformed(y)});v.showDialog()},h=function(r){var k=new xa;k.getCaptionStyleItem().setFontSize(16);k.getPrimaryValueStyleItem().setFontSize(32);k.getPrimaryTextStyleItem().setFontSize(16);
k.getSecondaryValueStyleItem().setFontSize(16);k.getSecondaryTextStyleItem().setFontSize(16);r&&k.mergeFontFrom(r);return k}}function Vb(){function a(){E.call(this);var r=this.protectedMethod,k=!1;this.edit=function(B,F,H){k=B;r.setTitle(p.get("styleAlign","\u5bf9\u9f50"));r.setContentPaneCreator(function(){return v(F)});r.setClosingAction(function(C){C&&H(k?F:null)})};var v=function(B){var F=y(p.get("kpiRowOfCaption","\u4e3b\u6307\u6807\u6458\u8981\u6240\u5728\u884c"),B.getCaptionStyleItem()),H=
y(p.get("kpiRowOfPrimary","\u4e3b\u6307\u6807\u6240\u5728\u884c"),B.getPrimaryValueStyleItem());B=y(p.get("kpiRowOfSecondary","\u526f\u6307\u6807\u6240\u5728\u884c"),B.getSecondaryValueStyleItem());var C=$("<div>");L(C,F,0,null,200,0,null,60);L(C,H,0,null,200,60,null,60);L(C,B,0,null,200,120,null,60);F=new t;F.setText(p.get("paletteDefault","\u7cfb\u7edf\u9ed8\u8ba4"));var aa=new t;aa.setText(p.get("paletteCustom","\u81ea\u5b9a\u4e49"));H=new w;H.addElement(F);H.addElement(aa);H.addChangedListener(function(Sa,
Ta){k=Sa==aa;C.css("visibility",k?"visible":"hidden")});F.setChecked(!k);aa.setChecked(k);H=$("<div>");H.append(F.getJqUi());H.append(aa.getJqUi());H.append(C);ra.layoutCtrlWithLRTB(F.getJqUi(),0,null,240,0,null,23);ra.layoutCtrlWithLRTB(aa.getJqUi(),0,null,240,33,null,23);ra.layoutCtrlWithLRTB(C,20,0,null,70,0,null);return H},y=function(B,F){B=new b(B);var H=F.getAlign();!H&&(H="center");var C=new U;C.setItemModels(["left","center","right"]);C.setSelected(H);C.addSelectedChangedListener(function(aa,
Sa,Ta){F.setAlign(Ta)});C.setCustomPainter(function(aa,Sa,Ta){aa="left"==Ta?p.get("styleAlignLeft","\u5de6\u5bf9\u9f50"):"center"==Ta?p.get("styleAlignCenter","\u5c45\u4e2d"):"right"==Ta?p.get("styleAlignRight","\u53f3\u5bf9\u9f50"):"";Sa.text(aa)});H=$("<div>");L(H,B.getJqUi(),0,0,null,0,null,23);L(H,C.getJqUi(),0,0,null,23,null,23);return H},L=function(B,F,H,C,aa,Sa,Ta,qb){B.append(F);ra.layoutCtrlWithLRTB(F,H,C,aa,Sa,Ta,qb)}}ua.call(this);var l=this,n=this.protectedMethod,f;this.protectedCreateEditorJqUi=
function(r){f=new u;f.addActionListener(m);l.updateEditor();return f.getJqUi()};this.updateEditor=function(){var r=n.getOriValue()?p.get("paletteCustom","\u81ea\u5b9a\u4e49"):p.get("paletteDefault","\u7cfb\u7edf\u9ed8\u8ba4");f.setModel(r)};var m=function(r){var k=(r=n.getOriValue())?!0:!1;r=h(r);var v=new a;v.setSize(560,420);v.edit(k,r,function(y){n.actionPerformed(y)});v.showDialog()},h=function(r){var k=new xa;k.getCaptionStyleItem().setAlign("center");k.getPrimaryValueStyleItem().setAlign("center");
k.getPrimaryTextStyleItem().setAlign(null);k.getSecondaryValueStyleItem().setAlign("center");k.getSecondaryTextStyleItem().setAlign(null);r&&k.mergeAlignFrom(r);return k}}function tb(){function a(){E.call(this);var v=this,y=this.protectedMethod,L;this.edit=function(F,H){y.setTitle(p.get("conditionStyle","\u6761\u4ef6\u6837\u5f0f"));L||(L=new l,v.setSize(640,400),y.setContentPaneCreator(B),y.setClosingAction(function(C){C&&H(L.getModel())}));L.setModel(F)};var B=function(){var F=$("<div>");F.css({"margin-top":"20px",
color:"#ccc"});F.text("\u6b64\u529f\u80fd\u5c1a\u5904\u4e8e\u5b9e\u9a8c\u5ba4\u5b75\u5316\u671f\uff0c\u4e0d\u6392\u9664\u672a\u6765\u53d1\u751f\u53d8\u5316\uff0c\u8bf7\u8c28\u614e\u4f7f\u7528\u3002");var H=L.getJqUi();H.append(F);return H}}function l(){function v(){Q.AbstractOneItemPanel.call(this);var F,H=new q;this.setModel=function(C){F=C;H.setText(C.script);C.focus&&setTimeout(H.requestFocus,0)};this.protectedGetHeight=function(){return 90};this.protectedInitJqUi=function(C){H.addEditedListener(function(aa){aa=
$.trim(aa.getText());F.script=aa});C.append(H.getJqUi());ra.layoutCtrlWithLRTB(H.getJqUi(),10,40,null,0,null,80)}}Q.call(this);var y=this.protectedMethod,L;this.getModel=function(){for(var F=null,H=0;H<L.length;H++){var C=L[H].script;C&&(!F&&(F=[]),F.push(C))}return F};this.setModel=function(F){L=[];if(F)for(var H=0;H<F.length;H++){var C=B(F[H]);L.push(C)}y.updateUi()};this.protectedGetAddButtonText=function(){return p.get("conditionStyleAppend","\u6dfb\u52a0\u4e00\u884c\u811a\u672c")};this.protectedUpdateUiImpl=
function(){y.clearAllItemUi();for(var F=0;F<L.length;F++)y.appendItemUi(L[F])};this.protectedCreateOneItemPanel=function(F){var H=new v;H.setModel(F);return H};this.protectedAddItemAction=function(){var F=B("");F.focus=!0;L.push(F);y.appendItemUi(F)};this.protectedDeleteItemModel=function(F){L.splice(F,1)};var B=function(F){var H={};H.script=F;return H}}ua.call(this);var n=this,f=this.protectedMethod,m;this.protectedCreateEditorJqUi=function(v){m=new u;m.setCustomPainter(h);m.addActionListener(r);
m.addClearListener(k);m.setClearable(!0);n.updateEditor();return m.getJqUi()};this.updateEditor=function(){var v=f.getOriValue();m.setModel(v?v.length:0)};var h=function(v){return v?p.get("conditionStyleInputterDisplay","\u5df2\u8bbe\u7f6e#1\u9879").replace("#1",v):p.get("itemEmpty","\u672a\u8bbe\u7f6e")},r=function(v){v=new a;v.edit(f.getOriValue(),function(y){f.actionPerformed(y)});v.showDialog()},k=function(v){f.actionPerformed(null)}}function lb(){function a(){E.call(this);var y=this,L=this.protectedMethod,
B,F,H,C;this.edit=function(Ta,qb){L.setTitle(p.get("rulerScope","\u6570\u8f74\u8303\u56f4"));y.setSize(480,360);L.setContentPaneCreator(function(){return aa(Ta)});L.setClosingAction(function(Ba){if(Ba){Ba=B.getValue();var V=F.getValue(),K=C.getSelected();if(Ba&&V){var X=parseFloat(Ba),ya=parseFloat(V);X>ya&&(X=Ba,Ba=V,V=X)}qb([Ba,V,K])}})};var aa=function(Ta){var qb=Ta[0],Ba=Ta[1];Ta=Ta[2];B=new l;B.setCaption(p.get("rulerScopeMin","\u6700\u5c0f\u503c"));B.setValue(qb);qb=B.createJqUi(Sa);F=new l;
F.setCaption(p.get("rulerScopeMax","\u6700\u5927\u503c"));F.setValue(Ba);Ba=F.createJqUi(Sa);H=new b;H.setText(p.get("rulerStart","\u96f6\u523b\u5ea6"));H.setEnabled(!1);C=new U;C.setItemModels([Ra.RulerStart_Zero,Ra.RulerStart_Nonzero]);C.setCustomPainter(function(V,K,X){K.text(r(X))});C.setSelected(Ta);Sa();Ta=$("<div>");Ta.append(qb);Ta.append(Ba);Ta.append(H.getJqUi());Ta.append(C.getJqUi());ra.layoutCtrl(qb,0,0,200,120);ra.layoutCtrl(Ba,240,0,200,120);ra.layoutCtrl(H.getJqUi(),0,160,200,23);
ra.layoutCtrl(C.getJqUi(),0,190,200,23);return Ta},Sa=function(){var Ta=!B.getValue()&&!F.getValue();H.setEnabled(Ta);C.setEnabled(Ta)}}function l(){var y=new b,L=new t,B=new t,F=new c;this.setCaption=function(H){y.setText(H)};this.setValue=function(H){var C=H?!0:!1;L.setChecked(!C);B.setChecked(C);F.setValue(H?parseFloat(H):0);F.setEnabled(B.isChecked())};this.getValue=function(){return B.isChecked()?F.getValue()+"":null};this.createJqUi=function(H){L.setText(p.get("rulerScopeAuto","\u81ea\u52a8"));
B.setText(p.get("rulerScopeFixed","\u56fa\u5b9a"));var C=new w;C.addElement(L);C.addElement(B);C.addChangedListener(function(aa,Sa){F.setEnabled(B.isChecked());H()});F.setConstraint(-999999999999999,999999999999999,1);F.supportDecimal(10);C=$("<div>");C.append(y.getJqUi());C.append(L.getJqUi());C.append(B.getJqUi());C.append(F.getJqUi());ra.layoutCtrlWithLRTB(y.getJqUi(),0,0,null,0,null,23);ra.layoutCtrlWithLRTB(L.getJqUi(),0,0,null,30,null,23);ra.layoutCtrlWithLRTB(B.getJqUi(),0,0,null,60,null,23);
ra.layoutCtrlWithLRTB(F.getJqUi(),20,0,null,90,null,23);return C}}ua.call(this);var n=this,f=this.protectedMethod,m;this.protectedCreateEditorJqUi=function(y){m=new u;m.setCustomPainter(h);m.addActionListener(k);m.addClearListener(v);m.setClearable(!0);n.updateEditor();return m.getJqUi()};this.updateEditor=function(){var y=f.getOriValue();if(y){var L=y[1],B=y[2];y[0]||L||B!=Ra.RulerStart_Zero||(y=null)}m.setModel(y)};var h=function(y){if(y){var L=y[0],B=y[1];y=y[2];return L||B?"#1 ~ #2".replace("#1",
L?L:"").replace("#2",B?B:""):r(y)}return r(Ra.RulerStart_Zero)},r=function(y){switch(y){case Ra.RulerStart_Zero:return p.get("rulerStartZero","\u5305\u542b\u96f6");case Ra.RulerStart_Nonzero:return p.get("rulerStartNonzero","\u5141\u8bb8\u4e0d\u5305\u542b\u96f6");default:return y}},k=function(y){y=new a;y.edit(f.getOriValue(),function(L){f.actionPerformed(L)});y.showDialog()},v=function(y){y=[null,null,Ra.RulerStart_Zero];m.setModel(null);f.actionPerformed(y)}}function Na(){function a(){E.call(this);
var v=this,y=this.protectedMethod,L;this.edit=function(B,F){y.setTitle(p.get("refline","\u53c2\u8003\u7ebf"));L||(L=new ja,L.setMeasureFields(f()),L.setPromptDisplayer(function(H){y.getMessageCurtain().showPrompt(H)}),v.setSize(400,380),y.setContentPaneCreator(function(){return L.getJqUi()}),y.setClosingChecker(L.isValidToAccepted),y.setClosingAction(function(H){H&&F(L.getModel())}));L.setModel(B)}}ua.call(this);var l=this,n=this.protectedMethod,f,m;this.setMeasureFieldsGetter=function(v){f=v};this.protectedCreateEditorJqUi=
function(v){m=new u;m.setCustomPainter(h);m.addActionListener(r);m.addClearListener(k);m.setClearable(!0);l.updateEditor();return m.getJqUi()};this.updateEditor=function(){var v=n.getOriValue();m.setModel(v?v.length:0)};var h=function(v){return v?p.get("reflineItem","\u5df2\u8bbe\u7f6e#1\u6761\u53c2\u8003\u7ebf").replace("#1",v):p.get("itemEmpty","\u672a\u8bbe\u7f6e")},r=function(v){v=new a;v.edit(n.getOriValue(),function(y){n.actionPerformed(y)});v.showDialog()},k=function(v){n.actionPerformed(null)}}
function $a(){ua.call(this);var a=this,l=this.protectedMethod,n,f;this.setFacadeCreator=function(r){n=r};this.protectedCreateEditorJqUi=function(r){f=new u;f.setCustomPainter(m);f.addActionListener(h);f.setClearable(!1);a.updateEditor();return f.getJqUi()};this.updateEditor=function(){var r=l.getOriValue();f.setModel(r)};var m=function(r){return r?p.get("paletteCustom","\u81ea\u5b9a\u4e49"):p.get("paletteDefault","\u7cfb\u7edf\u9ed8\u8ba4")},h=function(r){r=new da;r.setTitle(p.get("palette","\u8c03\u8272\u677f"));
r.setup(f.getModel(),n,function(k){l.actionPerformed(k)});r.showDialog()}}function La(){ua.call(this);var a=this,l=this.protectedMethod,n;this.protectedCreateEditorJqUi=function(h){n=new u;n.setCustomPainter(f);n.addActionListener(m);n.setClearable(!1);a.updateEditor();return n.getJqUi()};this.updateEditor=function(){var h=l.getOriValue();n.setModel(h)};var f=function(h){return h=(h=h?h.getRefName():p.get("itemEmpty","\u672a\u8bbe\u7f6e"))?h:p.get("mapTemplateNotFound","\u627e\u4e0d\u5230\u6a21\u677f")},
m=function(h){z.selectTemplate(l.getOriValue(),function(r){r&&l.actionPerformed(r)})}}function ab(){function a(){E.call(this);var L=this,B=this.protectedMethod,F,H=function(aa){F||(F=new l,L.setSize(640,480),B.setContentPaneCreator(function(){return F.getJqUi()}),B.setClosingAction(function(Sa){Sa&&aa(F.getEditedResult())}),B.setTitle(p.get("mapRegionMapping","\u5730\u57df\u6620\u5c04")))},C=this.showDialog;this.showDialog=function(aa,Sa){H(Sa);C();r(function(Ta,qb){Ta?F.prepareToStart(qb,Ta,aa):
B.getMessageCurtain().showPrompt(p.get("mapRegionNotFound","\u627e\u4e0d\u5230\u5730\u56fe\u4fe1\u606f\u3002"))})}}function l(){function L(C){KTDefaultCellRender.call(this,C);var aa=this,Sa=this.paintCellUI;this.paintCellUI=function(qb,Ba){aa.getCurrentRowIdx()>=mb.getHeadRowCount()&&1==aa.getCurrentColIdx()?(Ba=(Ba=aa.getCell())?Ba.getValue():null,Ta(qb,aa.getCellWidth(),aa.getCellHeight(),Ba,aa.getCurrentRow())):Sa(qb,Ba)};var Ta=function(qb,Ba,V,K,X){var ya=[null].concat(F.slice(0)),oa=mb.createCtrlInCell(qb,
Ba,V,U);oa.setSelected(K?K:null);oa.setItemModels(ya);oa.addSelectedChangedListener(function(Pa,yb,Pb){Pa=X.getCell(1);Pa.setValue(Pb);Pa.getUserObject()&&(Pa.setUserObject(!1),oa.setSelected(Pb))});oa.setCustomPainter(function(Pa,yb,Pb){yb.text(Pb?Pb:"");Pa&&((Pa=X.getCell(1))&&Pa.getUserObject()?(Pa=Wa.createWarning(),Pa.addClass("square-property-map-mapping-membernotexist"),Pa.appendTo($(yb).parent())):$(yb).parent().find(".square-property-map-mapping-membernotexist").remove())})}}var B,F;this.getJqUi=
function(){if(!B){B=mb.createTable();mb.bindTableListenerForCtrl(B);var C=new L(B);C.setOutsideVisible(!1);B.setCellRender(C);C=B.addColumn();C.setWidth(200);C=B.addColumn();C.setWidth(240);C=mb.createHeadRow(B);C.getCell(0).setValue(p.get("mapRegion","\u5730\u56fe\u4e0a\u7684\u533a\u57df"));C.getCell(1).setValue(p.get("mapDimensionMember","\u6570\u636e"))}return $(B.getUI())};this.prepareToStart=function(C,aa,Sa){F=C;if(Sa){C={};for(var Ta in Sa)for(var qb=Sa[Ta],Ba=0;Ba<qb.length;Ba++)C[qb[Ba]]=
Ta;Sa=C}else if(F){Sa=H();Ta={};for(C=0;C<aa.length;C++)Ba=aa[C],qb=Ba.name,Ba=Ba.display,Sa[Ba]&&(Ta[qb]=Ba);Sa=Ta}else Sa={};!F&&(F=[]);Ta=H();for(C=0;C<aa.length;C++){Ba=aa[C];qb=Ba.name;var V=Ba.display;Ba=mb.createRow(B);var K=Ba.getCell(0);K.setValue(V);K.setUserObject(qb);if(qb=Sa[qb])K=Ba.getCell(1),K.setValue(qb),Ta[qb]||K.setUserObject(!0)}mb.refresh(B)};this.getEditedResult=function(){for(var C=null,aa=mb.getHeadRowCount();aa<B.getRowsCount();aa++){var Sa=B.getRow(aa),Ta=Sa.getCell(1);
if(null!=Ta.getValue()){Ta=Ta.getValue();C||(C={});var qb=C[Ta];qb||(qb=[],C[Ta]=qb);Ta=Sa.getCell(0);Sa=Ta.getUserObject();qb.push(Sa)}}return C};var H=function(){for(var C={},aa=0;aa<F.length;aa++)C[F[aa]]=!0;return C}}ua.call(this);var n=this,f=this.protectedMethod,m,h,r;this.getJqCtrlUi=function(){return m.getJqUi()};this.setBeforePopupChecker=function(L){h=L};this.setRegionGetter=function(L){r=L};this.protectedCreateEditorJqUi=function(L){m=new u;m.setCustomPainter(k);m.addActionListener(v);
m.addClearListener(y);m.setClearable(!0);n.updateEditor();return m.getJqUi()};this.updateEditor=function(){var L=f.getOriValue();m.setModel(L)};var k=function(L){var B=0;if(L)for(var F in L)B++;return B?p.get("mapRegionItemText","\u5df2\u6620\u5c04#1\u9879").replace("#1",B):p.get("itemEmpty","\u672a\u8bbe\u7f6e")},v=function(L){if(h()){L=new a;var B=f.getOriValue();L.showDialog(B,function(F){f.actionPerformed(F)})}},y=function(L){f.actionPerformed(null)}}function ma(){function a(){E.call(this);var L=
this,B=this.protectedMethod,F=this.showDialog;this.showDialog=function(C,aa,Sa,Ta){var qb=0<C.length?C[0]:Sa();C=1<C.length?C.slice(1):[Sa()];var Ba=new f;Ba.setModel(qb);var V=Ba.createJqUi(Ta()),K=new l;K.setEditingSections(C,Sa,Ta);B.setTitle(p.get("dialSection","\u5206\u6bb5"));L.setSize(800,450);B.setContentPaneCreator(function(){var X=new b(p.get("dialSectionFrom","\u4ece"));ra.layoutCtrlWithLRTB(X.getJqUi(),8,null,32,0,null,23);ra.layoutCtrlWithLRTB(V,40,null,400,0,null,23);ra.layoutCtrlWithLRTB(K.getJqUi(),
0,0,null,40,0,null);var ya=$("<div>");ya.append(X.getJqUi());ya.append(V);ya.append(K.getJqUi());return ya});B.setClosingChecker(function(){return Ba.isBoundFieldUncompleted()?(H(V,p.get("dialSectionPromptA1","\u672a\u8bbe\u7f6e\u5b8c\u6574\u3002")),!1):K.checkingInput(Ba.getEditingNumber(),H)});B.setClosingAction(function(X){X&&(Ba.acceptEditing(),X=[qb].concat(K.getEditedResult()),aa(X))});F()};var H=function(C,aa){var Sa=new g;Sa.setText(aa);Sa.show(C,!0)}}function l(){Q.call(this);var L=this.protectedMethod,
B,F,H;this.setEditingSections=function(C,aa,Sa){B=C;F=aa;H=Sa};this.checkingInput=function(C,aa){var Sa=B.length,Ta=!0,qb=[C];L.visitAllItemPanel(function(Ba,V){var K=!1;Ba.checkingInput(qb,function(X,ya){L.scrollItemUiToVisible(V,function(){aa(X,ya)})},V,Sa)||(Ta=!1,K=!0);return K});return Ta};this.getEditedResult=function(){L.visitAllItemPanel(function(C,aa){C.acceptEditing()});return B};this.protectedGetAddButtonText=function(){return p.get("dialSectionAppend","\u6dfb\u52a0\u5206\u6bb5")};this.protectedUpdateUiImpl=
function(){L.clearAllItemUi();for(var C=0;C<B.length;C++)L.appendItemUi(B[C])};this.protectedCreateOneItemPanel=function(C){var aa=new n;aa.setMetaGetter(H);aa.setItemModel(C);return aa};this.protectedAddItemAction=function(){var C=F();B.push(C);L.appendItemUi(C)};this.protectedDeleteItemModel=function(C){B.splice(C,1)}}function n(){Q.AbstractOneItemPanel.call(this);var L,B,F,H,C,aa;this.setMetaGetter=function(Ta){L=Ta};this.setItemModel=function(Ta){B=Ta};this.checkingInput=function(Ta,qb,Ba,V){var K=
Ta[0],X=H.getEditingNumber();if(null!==X){if(null!==K&&X<=K)return qb(F,p.get("dialSectionPromptA2","\u5206\u6bb5\u6570\u503c\u5fc5\u987b\u9012\u589e\u3002")),!1;Ta[0]=X}return H.isBoundFieldUncompleted()?(qb(F,p.get("dialSectionPromptA1","\u672a\u8bbe\u7f6e\u5b8c\u6574\u3002")),!1):!C.getColor()&&(1<V||0<Ba)?(Ta=p.get("dialSectionPromptA3","\u5f53\u53ea\u6709\u4e00\u4e2a\u5206\u6bb5\u65f6\u624d\u53ef\u4ee5\u9009\u62e9\u989c\u8272\u4e3a\u201c#1\u201d\u3002"),Ta=Ta.replace("#1",p.get("dialSectionColorDefault",
"\u7f3a\u7701")),qb(C.getJqUi(),Ta),!1):!0};this.acceptEditing=function(){B.setColor(C.getColor());B.setLabel(aa.getText());H.acceptEditing()};this.protectedGetHeight=function(){return 50};this.protectedInitJqUi=function(Ta){var qb=L();H=new f;H.setModel(B);F=H.createJqUi(qb);C=new xb;C.setDisplayForNull(p.get("dialSectionColorDefault","\u7f3a\u7701"));C.setColorPool([["#40A9FF","#73D13D","#F8CC57","#F57582"],["#1890FF","#3FB27F","#F0B30A","#FF5A75"],["#6C7FAE","#08C2B6","#FF9933","#FF3333"]]);C.setColor(B.getColor());
aa=new ea;aa.setText(B.getLabel());qb=new b(p.get("dialSectionTo","\u5230"));var Ba=new b(p.get("dialSectionColor","\u989c\u8272")),V=new b(p.get("dialSectionLabel","\u6807\u7b7e"));Sa(Ta,qb.getJqUi(),8,32);Sa(Ta,F,40,400);Sa(Ta,Ba.getJqUi(),460,40);Sa(Ta,C.getJqUi(),500,60);Sa(Ta,V.getJqUi(),580,40);Sa(Ta,aa.getJqUi(),620,100)};var Sa=function(Ta,qb,Ba,V){qb.appendTo(Ta);ra.layoutCtrlWithLRTB(qb,Ba,null,V,10,null,23)}}function f(){var L=[1,2],B,F=new U,H=new c,C=new Ia,aa;this.setModel=function(V){B=
V};this.getEditingNumber=function(){return 1==F.getSelected()?H.getValue():null};this.isBoundFieldUncompleted=function(){return 2==F.getSelected()?C.getEditingMetaFieldFullName()&&C.getEditingAggregation()?!1:!0:!1};this.acceptEditing=function(){1==F.getSelected()?(B.setEndValue(H.getValue()),B.bindField(null,null)):2==F.getSelected()&&(B.setEndValue(null),B.bindField(C.getEditingMetaFieldFullName(),C.getEditingAggregation()))};this.createJqUi=function(V){var K=$("<div>");qb(V,K);Sa(K,F.getJqUi(),
0,null,64);Sa(K,H.getJqUi(),72,0,null);Sa(K,C.getMetaFieldJqUi(),72,84,null);Sa(K,C.getAggregationJqUi(),null,0,84);return K};var Sa=function(V,K,X,ya,oa){ra.layoutCtrlWithLRTB(K,X,ya,oa);ra.layoutCtrlMiddleAlign(K,23);V.append(K)},Ta=function(V){H.getJqUi().css("display",1==V?"":"none");C.getMetaFieldJqUi().css("display",2==V?"":"none");C.getAggregationJqUi().css("display",2==V?"":"none")},qb=function(V,K){F.setSelected(B.isBoundField()?2:1);F.setItemModels(L);F.setCustomPainter(function(ya,oa,Pa){ya=
2==Pa?p.get("dialSectionBoundaryBindField","\u7ed1\u5b57\u6bb5"):1==Pa?p.get("dialSectionBoundaryConstant","\u6570\u503c"):"";oa.text(ya)});F.addSelectedChangedListener(function(ya,oa,Pa){aa&&(aa.remove(),aa=null);Ta(Pa)});Ta(F.getSelected());var X=parseFloat(B.getEndValue());H.setValue(isNaN(X)?0:X);H.setConstraint(-999999999999999,999999999999999,1);H.supportDecimal(10);C.setSelectionListener(function(){aa&&(aa.remove(),aa=null)});C.initCtrl(V,function(ya,oa){B.isBoundField()&&oa(ya,B.getMetaFieldFullName(),
B.getAggregation(),function(Pa){var yb=p.get("dialSectionPromptB1","\u65e0\u6548\u7684\u8ba1\u7b97\u5b57\u6bb5#1\u3002");yb=yb.replace("#1",Pa.getComplexText());Ba(K,yb)},function(Pa,yb){Pa=Pa?P.aggregationToString(Pa):"nul";yb=yb?P.aggregationToString(yb):"nul";var Pb=p.get("dialSectionPromptB2","\u7531\u4e8e\u5b57\u6bb5\u6570\u636e\u7c7b\u578b\u53d8\u5316\u3001\u8ba1\u7b97\u5b57\u6bb5\u5185\u5bb9\u53d8\u5316\u6216\u5176\u5b83\u76f8\u5173\u539f\u56e0\uff0c\u4e4b\u524d\u8bbe\u7f6e\u7684\u805a\u5408\u65b9\u5f0f\u201c#1\u201d\u5df2\u4e0d\u9002\u7528\u3002");
Pb=Pb.replace("#1",Pa);Pb=Pb.replace("#2",yb);Ba(K,Pb);return!0},function(Pa){Pa=p.get("dialSectionPromptB3","\u627e\u4e0d\u5230\u5b57\u6bb5\u201c#1\u201d\u3002").replace("#1",Pa);Ba(K,Pa)})})},Ba=function(V,K){aa||(aa=Wa.createWarning(),aa.css("z-index",1),aa.appendTo(V),ra.layoutCtrl(aa,-10,0,null,null));aa.attr("title",K)}}ua.call(this);var m=this,h=this.protectedMethod,r,k,v;this.bindModelContext=function(L,B){k=L;v=B};this.protectedCreateEditorJqUi=function(L){r=new u;r.setCustomPainter(function(B){return B&&
1<B.length?p.get("dialSectionCount","#1\u4e2a\u5206\u6bb5").replace("#1",B.length-1):p.get("itemEmpty","\u672a\u8bbe\u7f6e")});r.addActionListener(function(B){(new a).showDialog(y(r.getModel()),function(F){h.actionPerformed(1<F.length?F:null)},function(){var F=v();F.setColor("#40A9FF");return F},k)});r.addClearListener(function(B){h.actionPerformed(null)});r.setClearable(!0);m.updateEditor();return r.getJqUi()};this.updateEditor=function(){r.setModel(h.getOriValue())};var y=function(L){var B=[];if(L)for(var F=
0;F<L.length;F++)B.push(L[F].copyToEdit());return B}}function ha(){function a(){E.call(this);var C=this,aa=this.protectedMethod;this.edit=function(Sa,Ta,qb,Ba){var V=new l;V.setSelectableFields(Ba);C.setSize(980,580);aa.getDialogCtrl().setFullScreenEnabled(ba.FULLSCREEN_ONLY_HEIGHT);aa.setTitle(p.get("chartCustomList","\u81ea\u5b9a\u4e49\u5217\u8868"));aa.setContentPaneCreator(V.createJqUi);aa.setClosingChecker2(function(X){V.toAccepted(X,aa.getMessageCurtain().showPrompt)},function(X){V.toCancel(X)},
!0);aa.setClosingAction(function(X){X&&(X=[V.getEditedHeadModel(),V.getEditedContentModel(),V.getEditedTailModel()],qb(X))});Ba=Ta[0];var K=Ta[1];Ta=Ta[2];Ba&&(Ba=Ba.copyToEdit());K&&(K=K.copyToEdit());Ta&&(Ta=Ta.copyToEdit());V.setEditingModel(Sa,Ba,K,Ta)}}function l(){var C=this,aa,Sa,Ta,qb,Ba,V,K,X,ya,oa,Pa,yb,Pb,Hb,Tb,hc;this.toAccepted=function(ec,lc){var va=!0;ic()&&(va=!1,lc(p.get("clistPromptWarning","\u5b58\u5728\u672a\u89e3\u51b3\u7684\u95ee\u9898\u3002")));ec(va)};this.toCancel=function(ec){if(aa){var lc=
A.createFeedbackDialog();lc.setOptionType(A.OPTION_YES_NO);lc.setMsgImageType(A.MSG_CONFIRM);lc.setMessage(p.get("clistAskAbort","\u662f\u5426\u653e\u5f03\u5f53\u524d\u7684\u4fee\u6539\uff1f"));lc.setClosingChecker(function(va){ec(va==A.RETURN_YES);return!0});lc.showDialog()}else ec(!0)};this.setSelectableFields=function(ec){Sa=ec};this.createJqUi=function(){var ec=new N;ec.setTitle(p.get("clistSettingGroupWhole","\u8868"));Pa=new N;Hb=new N;var lc=new N;lc.setTitle(p.get("clistSettingGroupPreview",
"\u9884\u89c8"));Rb(Pa.getJqContainer());vb(Hb.getJqContainer());Wb(lc.getJqContainer());oc(ec.getJqContainer());setTimeout(function(){bc();ic()},0);var va=$("<div>");va.append(ec.getJqUi());va.append(Pa.getJqUi());va.append(Hb.getJqUi());va.append(lc.getJqUi());ra.layoutCtrlWithLRTB(ec.getJqUi(),0,null,400,0,null,80);ra.layoutCtrlWithLRTB(Pa.getJqUi(),0,null,400,84,null,80);ra.layoutCtrlWithLRTB(lc.getJqUi(),0,null,400,168,0,null);ra.layoutCtrlWithLRTB(Hb.getJqUi(),404,0,null,0,0,null);return va};
this.setEditingModel=function(ec,lc,va,Ha){Ta=ec;qb=lc;Ba=va;V=Ha;K=va;aa=!1};this.getEditedHeadModel=function(){return X.isChecked()?qb:null};this.getEditedContentModel=function(){return Ba};this.getEditedTailModel=function(){return ya.isChecked()?V:null};var oc=function(ec){var lc=function(rb,Qb,Kb){Qb.setTabEnabled(Kb,rb.isChecked());rb.isChecked()?Qb.setCurrentId(Kb):jc(!1);ic();aa=!0},va=qb?!0:!1,Ha=V?!0:!1;X=new Ca;X.setText(p.get("clistHead","\u8868\u5934"));X.setChecked(va);X.addCheckedListener(function(rb,
Qb){Qb&&lc(rb,jb,"head")});ya=new Ca;ya.setText(p.get("clistTail","\u8868\u5c3e"));ya.setChecked(Ha);ya.addCheckedListener(function(rb,Qb){Qb&&lc(rb,jb,"tail")});oa=new b(p.get("clistBody","\u8868\u4f53"));oa.getJqUi().on("click",function(rb){jb.setCurrentId("body")});var jb=new r;jb.setTabs(["head","body","tail"]);jb.setTabEnabled("head",va);jb.setTabEnabled("tail",Ha);jb.setCurrentId("body");jb.setSelectionListener(function(rb){if("head"==rb){!qb&&(qb=Zb.createContentPanelModel(28));K=qb;var Qb=
p.get("clistHead","\u8868\u5934");dc(Qb,!1);hc.markCurrentAsHead()}"body"==rb&&bc();"tail"==rb&&(!V&&(V=Zb.createContentPanelModel(28)),K=V,rb=p.get("clistTail","\u8868\u5c3e"),dc(rb,!1),hc.markCurrentAsTail())});ec.append(X.getJqUi());ec.append(oa.getJqUi());ec.append(ya.getJqUi());ec.append(jb.getJqUi());ra.layoutCtrlWithLRTB(X.getJqUi(),20,null,100,0,null,22);ra.layoutCtrlWithLRTB(oa.getJqUi(),140,null,100,0,null,22);ra.layoutCtrlWithLRTB(ya.getJqUi(),260,null,100,0,null,22);ra.layoutCtrlWithLRTB(jb.getJqUi(),
10,null,360,22,null,22)},Rb=function(ec){var lc=new b(p.get("clistRowHeight","\u884c\u9ad8")),va=new b(p.get("styleBackgroundColor","\u80cc\u666f\u989c\u8272"));yb=new c;yb.setConstraint(1,200,1);yb.addValueChangedListener(function(Ha,jb,rb,Qb){K.setRowHeight(rb);jc(!0);Tb.updateInvalidPrompt();ic();aa=!0},!0);Pb=new gb;Pb.setColorPool(e.getColorPool7());Pb.setChangedListener(function(Ha){K.setBackgroundColor(Ha.getNullableColor());jc(!0);aa=!0});Pb.setUserObject(function(Ha){Ha?(va.getJqUi().show(),
Pb.getJqUi().show()):(va.getJqUi().hide(),Pb.getJqUi().hide())});ec.append(lc.getJqUi());ec.append(yb.getJqUi());ec.append(va.getJqUi());ec.append(Pb.getJqUi());ra.layoutCtrlWithLRTB(lc.getJqUi(),10,null,120,0,null,19);ra.layoutCtrlWithLRTB(yb.getJqUi(),10,null,120,19,null,23);ra.layoutCtrlWithLRTB(va.getJqUi(),230,null,140,0,null,19);ra.layoutCtrlWithLRTB(Pb.getJqUi(),230,null,140,19,null,23)},vb=function(ec){Tb=new n;Tb.setContext(Sa,Ta);Tb.setModifiedListener(function(lc){if(0<=lc){var va=K.getContentAreas()[lc];
hc.refreshArea(lc,va);hc.scrollCurrentVisible()}else jc(!0);ic();aa=!0});Tb.setItemHoverListener(function(lc,va){hc.markHoverArea(lc,va)});ec.append(Tb.getJqUi());ra.layoutCtrlWithLRTB(Tb.getJqUi(),0,0,null,0,0,null)},Wb=function(ec){hc=new h;hc.setAllFields(Sa);ec.append(hc.getJqUi())},bc=function(){var ec=p.get("clistBody","\u8868\u4f53");K=Ba;dc(ec,!0);hc.markCurrentAsBody()},dc=function(ec,lc){Pa.setTitle(p.get("clistSettingGroupAttr","#1\u5c5e\u6027").replace("#1",ec));Hb.setTitle(p.get("clistSettingGroupContent",
"#1\u5185\u5bb9").replace("#1",ec));yb.setValue(K.getRowHeight());Pb.setNullableColor(K.getBackgroundColor());Tb.setCurrentModel(K,lc);jc(!1);Pb.getUserObject()(!lc)},jc=function(ec){hc.refreshAll(Ta,C.getEditedHeadModel(),C.getEditedContentModel(),C.getEditedTailModel());ec&&hc.scrollCurrentVisible()},ic=function(){var ec=qc(X,!0,C.getEditedHeadModel()),lc=qc(oa,!1,C.getEditedContentModel()),va=qc(ya,!0,C.getEditedTailModel());return ec||lc||va},qc=function(ec,lc,va){var Ha=!1,jb=ec.getUserObject();
if(va)for(var rb=va.getContentAreas(),Qb=0;Qb<rb.length;Qb++)if(Tb.checkOneAreaInvalid(va,lc,rb[Qb])){Ha=!0;jb||(jb=l.createWarningIcon(-10,-16,140,p.get("clistPromptWarning","\u5b58\u5728\u672a\u89e3\u51b3\u7684\u95ee\u9898\u3002")),ec.setUserObject(jb));jb.appendTo(ec.getJqUi().parent());lc=ec.getJqUi().prop("offsetLeft")-10;ec=ec.getJqUi().prop("offsetTop")+ec.getJqUi().prop("offsetHeight")-8;ra.layoutCtrl(jb,lc,ec);break}!Ha&&jb&&jb.detach();return Ha}}function n(){Q.call(this);var C=this,aa=
this.protectedMethod,Sa,Ta,qb,Ba,V,K;this.setContext=function(ya,oa){Sa=ya;Ta=oa};this.setCurrentModel=function(ya,oa){qb=ya;Ba=oa;aa.updateUi()};this.setModifiedListener=function(ya){V=ya};this.setItemHoverListener=function(ya){K=ya};this.updateInvalidPrompt=function(){aa.visitAllItemPanel(function(ya,oa){ya.updateInvalidPrompt()})};this.protectedGetAddButtonText=function(){return p.get("clistAppendArea","\u6dfb\u52a0\u663e\u793a\u533a\u57df")};this.protectedUpdateUiImpl=function(){aa.clearAllItemUi();
if(qb)for(var ya=qb.getContentAreas(),oa=0;oa<ya.length;oa++)aa.appendItemUi(ya[oa])};this.protectedCreateOneItemPanel=function(ya){var oa=new f;oa.setModifiedListener(function(Pa){Pa=aa.searchItemPanelIndex(Pa);V(Pa)});oa.setHoverListener(function(Pa,yb){Pa=aa.searchItemPanelIndex(Pa);0<=Pa&&K(Pa,yb)});oa.setItemModel(ya,Sa,function(Pa){return C.checkOneAreaInvalid(qb,!Ba,Pa)},Ba);return oa};this.protectedAddItemAction=function(){var ya=Zb.createContentAreaModel();X(ya,88,20);Ba?ya.setFieldIndex(0):
ya.setCustomText("");qb.getContentAreas().push(ya);aa.appendItemUi(ya);V(-1)};this.protectedDeleteItemModel=function(ya){qb.getContentAreas().splice(ya,1);V(-1)};this.protectedMovable=function(){return!0};this.protectedMoveItemModel=function(ya,oa){var Pa=qb.getContentAreas();ya=Pa.splice(ya,1)[0];Pa.splice(oa,0,ya);V(-1)};this.checkOneAreaInvalid=function(ya,oa,Pa){var yb=[];(Pa.getX()>Ta||Pa.getX()+Pa.getWidth()>Ta)&&yb.push(p.get("clistPrompt1","\u663e\u793a\u533a\u57df\u8303\u56f4\u8d85\u51fa\u884c\u5bbd#1\u3002").replace("#1",
Ta));ya=ya.getRowHeight();(Pa.getY()>ya||Pa.getY()+Pa.getHeight()>ya)&&yb.push(p.get("clistPrompt2","\u663e\u793a\u533a\u57df\u8303\u56f4\u8d85\u51fa\u884c\u9ad8#1\u3002").replace("#1",ya));oa&&0<=Pa.getFieldIndex()&&(oa=Sa[Pa.getFieldIndex()])&&oa.isDimension()&&yb.push(p.get("clistPrompt3","\u5728\u8868\u5934\u3001\u8868\u5c3e\u7ed1\u5b9a\u7ef4\u5ea6\u5b57\u6bb5\u6ca1\u6709\u610f\u4e49\uff0c\u4f46\u53ef\u4ee5\u7ed1\u5b9a\u5ea6\u91cf\u5b57\u6bb5\u4f5c\u4e3a\u603b\u8ba1\u3002"));Pa.getColorBar()&&
((oa=0<=Pa.getFieldIndex()?Sa[Pa.getFieldIndex()]:null)&&oa.isMeasure()||yb.push(p.get("clistPrompt4","\u53ea\u6709\u5728\u7ed1\u5b9a\u5ea6\u91cf\u5b57\u6bb5\u65f6\u624d\u53ef\u4ee5\u7ed8\u5236\u6570\u636e\u6761\u3002")));return 0==yb.length?null:yb};var X=function(ya,oa,Pa){var yb=qb.getRowHeight(),Pb=Ta,Hb=function(oc){for(var Rb=oc+Pa,vb=Pb-oa,Wb=4;Wb<=vb;Wb++){a:{var bc=Wb;for(var dc=oc,jc=Wb+oa,ic=Rb,qc=qb.getContentAreas(),ec=0;ec<qc.length;ec++){var lc=qc[ec],va=lc.getX(),Ha=lc.getY(),jb=va+
lc.getWidth();lc=Ha+lc.getHeight();if(!(dc>=lc||ic<=Ha||bc>=jb||jc<=va)){bc=!0;break a}}bc=!1}if(!bc)return ya.setRectangle(Wb,oc,oa,Pa),!0}return!1},Tb=!1;if(yb<=Pa)Tb=Hb(0);else if(yb<=1.5*Pa)Tb=Hb(yb-Pa>>1);else{var hc=yb-Pa;for(yb=2;yb<=hc&&!(Tb=Hb(yb));yb++);}!Tb&&ya.setRectangle(0,0,oa,Pa)}}function f(){Q.AbstractOneItemPanel.call(this);var C=this,aa,Sa,Ta,qb,Ba,V,K;this.setItemModel=function(bc,dc,jc,ic){Ta=bc;aa=dc;Sa=jc;qb=ic};this.setModifiedListener=function(bc){Ba=bc};var X=function(){Ba(C);
ya()};this.setHoverListener=function(bc){V=bc};this.updateInvalidPrompt=function(){ya()};var ya=function(){var bc=Sa(Ta),dc=K.children(".q-sys-warning");dc.remove();bc&&(bc=bc.join("\r\n"),dc=l.createWarningIcon(16,0,400,bc),dc.addClass("q-sys-warning"),dc.appendTo(K),ra.layoutCtrl(dc,-8,2))};this.protectedGetHeight=function(){return 182};this.protectedInitJqUi=function(bc){K=$("<div>");K.on("mouseenter",function(jc){K.addClass("square-customlist-current");V(C,!0)});K.on("mouseleave",function(jc){K.removeClass("square-customlist-current");
V(C,!1)});var dc=oa(K,4);dc=Pa(K,dc+12);dc=Pb(K,dc+16);ra.layoutCtrlWithLRTB(K,8,32,null,0,null,dc+8);K.appendTo(bc);ya()};var oa=function(bc,dc){var jc=function(rb,Qb,Kb,Eb){Ta.setRectangle(ic.getValue(),qc.getValue(),ec.getValue(),lc.getValue());X()},ic=new c;ic.setConstraint(0,999,1);ic.setValue(Ta.getX());ic.addValueChangedListener(jc,!0);var qc=new c;qc.setConstraint(0,999,1);qc.setValue(Ta.getY());qc.addValueChangedListener(jc,!0);var ec=new c;ec.setConstraint(0,999,1);ec.setValue(Ta.getWidth());
ec.addValueChangedListener(jc,!0);var lc=new c;lc.setConstraint(0,999,1);lc.setValue(Ta.getHeight());lc.addValueChangedListener(jc,!0);jc=vb(new b(p.get("clistRectX","\u4f4d\u7f6e-\u5de6")),ic);var va=vb(new b(p.get("clistRectY","\u4f4d\u7f6e-\u4e0a")),qc),Ha=vb(new b(p.get("clistRectWidth","\u5bbd\u5ea6")),ec),jb=vb(new b(p.get("clistRectHeight","\u9ad8\u5ea6")),lc);Rb(bc,jc,10,dc,100,42);Rb(bc,va,130,dc,100,42);Rb(bc,Ha,250,dc,100,42);Rb(bc,jb,370,dc,100,42);return dc+42},Pa=function(bc,dc){var jc=
0<=Ta.getFieldIndex(),ic=new U;ic.setItemModels(hc());ic.setCustomPainter(oc);ic.setSelected(Ta.getFieldIndex());ic.addSelectedChangedListener(function(Ha,jb,rb){Ta.setFieldIndex(rb);X()});var qc=new ea;qc.setPlaceholder(p.get("clistCustomTextPlaceholder","\u5728\u6b64\u5904\u586b\u5199\u6587\u5b57"));qc.setText(jc||!Ta.getCustomText()?"":Ta.getCustomText());qc.addEditedListener(function(Ha){lc.isChecked()&&(Ta.setCustomText(Ha.getText()),X())});var ec=new t;ec.setText(p.get("clistBindField","\u7ed1\u5b9a\u5b57\u6bb5"));
var lc=new t;lc.setText(p.get("clistCustomText","\u586b\u5199\u6587\u5b57"));var va=new w;va.addElement(ec);va.addElement(lc);va.addChangedListener(function(Ha,jb){ic.getJqUi().css("display",ec.isChecked()?"":"none");qc.getJqUi().css("display",lc.isChecked()?"":"none");ec.isChecked()&&Ta.setFieldIndex(ic.getSelected());lc.isChecked()&&Ta.setCustomText(qc.getText());jb&&X()});ec.setChecked(jc);lc.setChecked(!jc);qb&&yb(bc,dc);Rb(bc,ec.getJqUi(),10,dc,100,23);Rb(bc,lc.getJqUi(),130,dc,100,23);dc+=24;
Rb(bc,ic.getJqUi(),10,dc,460,23);Rb(bc,qc.getJqUi(),10,dc,460,23);return dc+24},yb=function(bc,dc){var jc=new Ca;jc.addCheckedListener(function(ec,lc){Ta.setColorBar(ec.isChecked()?qc:null);ic.setEnabled(ec.isChecked());lc&&X()});var ic=new u;ic.setModel(p.get("clistColorBar","\u6570\u636e\u6761"));ic.addActionListener(function(ec){ec=new m;ec.edit(qc);ec.showDialog();X()});Rb(bc,ic.getJqUi(),384,dc+1,86,20);Rb(bc,jc.getJqUi(),370,dc+1,20,20);var qc=Ta.getColorBar();jc.setChecked(qc?!0:!1);ic.setEnabled(jc.isChecked());
!qc&&(qc=Zb.createColorBarModel())},Pb=function(bc,dc){var jc=Hb(p.get("styleAlign","\u5bf9\u9f50"),function(rb){Ta.getCustomStyle().setAlign(rb?ic.getSelected():null);X()}),ic=new U;ic.setItemModels(["left","center","right"]);ic.setCustomPainter(function(rb,Qb,Kb){rb="left"==Kb?p.get("styleAlignLeft","\u5de6\u5bf9\u9f50"):"center"==Kb?p.get("styleAlignCenter","\u5c45\u4e2d"):"right"==Kb?p.get("styleAlignRight","\u53f3\u5bf9\u9f50"):"";Qb.text(rb)});ic.setSelected(Tb(jc,ic,"isAlignUnsure","getAlign",
"left"));ic.addSelectedChangedListener(function(rb,Qb,Kb){Ta.getCustomStyle().setAlign(Kb);X()});var qc=Hb(p.get("styleColor","\u989c\u8272"),function(rb){Ta.getCustomStyle().setColor(rb?ec.getModel().encodeToHexRgb():null);X()}),ec=new d;ec.setColorPool(e.getColorPool7());ec.getModel().decodeFrom(Tb(qc,ec,"isColorUnsure","getColor","#808080"));ec.addSelectedListener(function(rb){Ta.getCustomStyle().setColor(rb.encodeToHexRgb());X()});var lc=Hb(p.get("styleFontSize","\u5b57\u53f7"),function(rb){Ta.getCustomStyle().setFontSize(rb?
va.getValue():null);X()}),va=new c;va.setConstraint(0,99,1);va.setValue(Tb(lc,va,"isFontSizeUnsure","getFontSize",14));va.addValueChangedListener(function(rb,Qb,Kb,Eb){Ta.getCustomStyle().setFontSize(Kb);X()},!0);var Ha=Hb(p.get("styleFontStyle","\u5b57\u5f62"),function(rb){Ta.getCustomStyle().setBold(rb?"bold"==jb.getSelected():null);X()}),jb=new U;jb.setItemModels(["normal","bold"]);jb.setCustomPainter(function(rb,Qb,Kb){rb="normal"==Kb?p.get("styleFontStyleNormal","\u5e38\u89c4"):"bold"==Kb?p.get("styleFontStyleBold",
"\u7c97\u4f53"):"";Qb.text(rb)});jb.setSelected(Tb(Ha,jb,"isBoldUnsure","isBold",!1)?"bold":"normal");jb.addSelectedChangedListener(function(rb,Qb,Kb){Ta.getCustomStyle().setBold("bold"==Kb);X()});jc=Wb(jc,ic);qc=Wb(qc,ec);lc=Wb(lc,va);Ha=Wb(Ha,jb);Rb(bc,jc,10,dc,100,42);Rb(bc,qc,130,dc,100,42);Rb(bc,lc,250,dc,100,42);Rb(bc,Ha,370,dc,100,42);return dc+42},Hb=function(bc,dc){var jc=new Ca;jc.setText(bc);jc.addCheckedListener(function(ic,qc){qc&&dc(ic.isChecked())});return jc},Tb=function(bc,dc,jc,
ic,qc){if(Ta.getCustomStyle()[jc]())return bc.setChecked(!1),dc.setEnabled(!1),qc;bc.setChecked(!0);return Ta.getCustomStyle()[ic]()},hc=function(){for(var bc=[],dc=0;dc<aa.length;dc++)bc.push(dc);return bc},oc=function(bc,dc,jc){bc="";0<=jc&&(jc<aa.length?(jc=aa[jc],bc+=jc.isDimension()?p.get("dimension","\u7ef4\u5ea6"):p.get("measure","\u5ea6\u91cf"),bc+=jc.getComplexText()):bc=p.get("clistBindFieldWhich","\u7b2c#1\u4e2a\u5b57\u6bb5").replace("#1",jc+1));dc.text(bc)},Rb=function(bc,dc,jc,ic,qc,
ec){ra.layoutCtrl(dc,jc,ic,qc,ec);bc.append(dc)},vb=function(bc,dc){ra.layoutCtrlWithLRTB(bc.getJqUi(),0,0,null,0,null,19);ra.layoutCtrlWithLRTB(dc.getJqUi(),0,0,null,19,null,23);var jc=$("<div>");jc.append(bc.getJqUi());jc.append(dc.getJqUi());return jc},Wb=function(bc,dc){var jc=vb(bc,dc);bc.addCheckedListener(function(ic,qc){dc.setEnabled(ic.isChecked())});return jc}}function m(){E.call(this);var C=this,aa=this.protectedMethod;this.edit=function(Ba){C.setSize(480,320);aa.setTitle(p.get("clistColorBar",
"\u6570\u636e\u6761"));aa.setContentPaneCreator(function(){return Sa(Ba)});aa.setFooterClosingOnly(!0);aa.setClosingAction(function(V){})};var Sa=function(Ba){var V=new b(p.get("clistColorBarScopeMin","\u6700\u5c0f\u503c")),K=new b(p.get("clistColorBarScopeMax","\u6700\u5927\u503c")),X=new b(p.get("clistColorBarPositive","\u6b63\u6570\u989c\u8272")),ya=new b(p.get("clistColorBarNegative","\u8d1f\u6570\u989c\u8272")),oa=new b(p.get("clistColorBarAxis","\u96f6\u523b\u5ea6\u8f74\u989c\u8272")),Pa=new U,
yb=new c;Ta(Pa,yb,Ba.getMin(),"0",function(vb){Ba.setMin(vb)});var Pb=new U,Hb=new c;Ta(Pb,Hb,Ba.getMax(),"1",function(vb){Ba.setMax(vb)});var Tb=new xb;Tb.setColorPool(e.getColorPool7());Tb.setColorSelectedListener(function(vb){Ba.setNormalColor(vb.getColor())});Tb.setColor(Ba.getNormalColor());var hc=new xb;hc.setDisplayForNull(p.get("clistColorBarNegativeDefault","\u4e0e\u6b63\u6570\u76f8\u540c"));hc.setColorPool(e.getColorPool7());hc.setColorSelectedListener(function(vb){Ba.setNegativeColor(vb.getColor())});
hc.setColor(Ba.getNegativeColor());var oc=new xb;oc.setDisplayForNull(p.get("clistColorBarAxisDefault","\u65e0"));oc.setColorPool(e.getColorPool7());oc.setColorSelectedListener(function(vb){Ba.setAxisColor(vb.getColor())});oc.setColor(Ba.getAxisColor());ra.layoutCtrl(V.getJqUi(),10,0,100,23);ra.layoutCtrl(Pa.getJqUi(),120,0,120,23);ra.layoutCtrl(yb.getJqUi(),250,0,160,23);ra.layoutCtrl(K.getJqUi(),10,30,100,23);ra.layoutCtrl(Pb.getJqUi(),120,30,120,23);ra.layoutCtrl(Hb.getJqUi(),250,30,160,23);ra.layoutCtrl(X.getJqUi(),
10,60,100,23);ra.layoutCtrl(Tb.getJqUi(),120,60,120,23);ra.layoutCtrl(ya.getJqUi(),10,90,100,23);ra.layoutCtrl(hc.getJqUi(),120,90,120,23);ra.layoutCtrl(oa.getJqUi(),10,120,100,23);ra.layoutCtrl(oc.getJqUi(),120,120,120,23);var Rb=$("<div>");Rb.append(V.getJqUi());Rb.append(Pa.getJqUi());Rb.append(yb.getJqUi());Rb.append(K.getJqUi());Rb.append(Pb.getJqUi());Rb.append(Hb.getJqUi());Rb.append(X.getJqUi());Rb.append(Tb.getJqUi());Rb.append(ya.getJqUi());Rb.append(hc.getJqUi());Rb.append(oa.getJqUi());
Rb.append(oc.getJqUi());return Rb},Ta=function(Ba,V,K,X,ya){Ba.setItemModels(["auto","number"]);Ba.setCustomPainter(function(oa,Pa,yb){Pa.text("number"==yb?p.get("clistColorBarScopeNumber","\u6570\u503c"):p.get("clistColorBarScopeAuto","\u81ea\u52a8"))});Ba.addSelectedChangedListener(function(oa,Pa,yb){oa=qb(Ba,V)?V.getValue()+"":null;ya(oa)});V.setConstraint(-999999999999999,999999999999999,1);V.supportDecimal(10);V.addValueChangedListener(function(oa,Pa,yb,Pb){oa=oa.getValue()+"";ya(oa)},!0);X=
parseFloat(K?K:X);isNaN(X)&&(X=0);Ba.setSelected(K?"number":"auto");V.setValue(X);qb(Ba,V)},qb=function(Ba,V){(Ba="number"==Ba.getSelected())?V.getJqUi().show():V.getJqUi().hide();return Ba}}function h(){var C,aa,Sa,Ta,qb,Ba,V=new fb,K;this.setAllFields=function(Rb){K=Rb};this.getJqUi=function(){C||(aa=oa(),Sa=oa(),Ba=oa(),Ta=Pa(!0),qb=Pa(!1),C=$("<div>"),C.append(aa),C.append(Sa),C.append(Ta),C.append(qb),C.append(Ba),ra.layoutCtrlWithLRTB(C,0,0,null,0,null,null));return C};this.scrollCurrentVisible=
function(){oc()};this.refreshAll=function(Rb,vb,Wb,bc){vb=yb(aa,vb,0,Rb);vb=yb(Sa,Wb,vb+10,Rb);vb=Tb(Ta,vb+6);Wb=!bc||vb+Wb.getRowHeight()+bc.getRowHeight()+18<C.parent().prop("clientHeight");hc(qb,Wb);Wb&&(vb=Tb(qb,vb+6));vb=yb(Ba,bc,vb+10,Rb);C.css("height",vb+2)};this.refreshArea=function(Rb,vb){var Wb=ya(),bc=Wb.prop("clientWidth"),dc=Wb.prop("clientHeight");Rb=Wb.children().eq(Rb);Pb(Rb,vb,bc,dc)};this.markCurrentAsHead=function(){V.setTimes(3);X(aa,!0);X(Sa,!1);X(Ba,!1);oc()};this.markCurrentAsBody=
function(){V.setTimes(3);X(aa,!1);X(Sa,!0);X(Ba,!1);oc()};this.markCurrentAsTail=function(){V.setTimes(3);X(aa,!1);X(Sa,!1);X(Ba,!0);oc()};var X=function(Rb,vb){Rb.css({"z-index":vb?3:2});vb?(Rb.addClass("square-customlist-current"),V.setAction(function(){Rb.removeClass("square-customlist-current")}),setTimeout(function(){V.blink(Rb)},0)):(Rb.data("display")&&Rb.show(),Rb.removeClass("square-customlist-current"))},ya=function(){return 3==aa.css("z-index")?aa:3==Ba.css("z-index")?Ba:Sa};this.markHoverArea=
function(Rb,vb){Rb=ya().children().eq(Rb);vb?(Rb.addClass("square-customlist-current"),Rb.css("z-index",3)):(Rb.removeClass("square-customlist-current"),Rb.css("z-index",2))};var oa=function(){var Rb=$("<div>");Rb.css({"z-index":2,"background-color":"#fff",border:"1px solid #ccc",overflow:"hidden"});return Rb},Pa=function(Rb){var vb=$("<div>");vb.css({"z-index":1,border:"1px dashed #e0e0e0"});if(Rb){Rb=$("<div>");var Wb=$("<div>"),bc=$("<div>");Wb.css({"margin-left":"-40px","border-right":"1px solid #f0f0f0",
"border-bottom":"1px solid #f0f0f0"});bc.css({"margin-left":"20px","border-left":"1px solid #f0f0f0","border-bottom":"1px solid #f0f0f0"});Rb.css({"margin-left":"-28px","border-left":"1px solid #f0f0f0","border-bottom":"1px solid #f0f0f0",transform:"rotate(-45deg)"});ra.layoutCtrlWithLRTB(Wb,"50%",null,20,4,null,16);ra.layoutCtrlWithLRTB(bc,"50%",null,20,4,null,16);ra.layoutCtrlWithLRTB(Rb,"50%",null,56,-8,null,56);vb.append(Wb);vb.append(bc);vb.append(Rb)}return vb},yb=function(Rb,vb,Wb,bc){Rb.empty();
if(!vb)return hc(Rb,!1),Wb;hc(Rb,!0);var dc=vb.getBackgroundColor();Rb.css("background-color",dc?dc:"");dc=vb.getRowHeight();ra.layoutCtrl(Rb,8,Wb,bc,dc);vb=vb.getContentAreas();for(var jc=0;jc<vb.length;jc++){var ic=vb[jc],qc=$("<div>");qc.css({"box-sizing":"border-box",border:"1px solid #f0f0f0"});ra.makeTextOmissible(qc);Pb(qc,ic,bc,dc);qc.appendTo(Rb)}return Wb+dc},Pb=function(Rb,vb,Wb,bc){Wb=Hb(vb.getX(),vb.getWidth(),Wb);var dc=Hb(vb.getY(),vb.getHeight(),bc),jc=Wb[1];bc=4>jc?0:2;ra.layoutCtrl(Rb,
Wb[0],dc[0],jc,dc[1]);Wb=vb.getFieldIndex();Wb=0<=Wb?Wb<K.length?K[Wb].getComplexText():p.get("clistBindFieldWhich","\u7b2c#1\u4e2a\u5b57\u6bb5").replace("#1",Wb+1):vb.getCustomText();Rb.text(Wb);Rb.attr("title",Wb);var ic=vb.getCustomStyle();Wb=ic.isAlignUnsure()?"left":ic.getAlign();dc=ic.isColorUnsure()?"#808080":ic.getColor();jc=(ic.isFontSizeUnsure()?14:ic.getFontSize())+"px";ic=ic.isBoldUnsure()||!ic.isBold()?"":"bold";Rb.css({"line-height":vb.getHeight()+"px","padding-left":bc+"px","padding-right":bc+
"px","text-align":Wb,color:dc,"font-size":jc,"font-weight":ic})},Hb=function(Rb,vb,Wb){0>Rb+vb?vb=Rb=0:Rb>Wb-2&&(Rb=Wb-2);return[Rb,vb]},Tb=function(Rb,vb){var Wb=Sa.prop("offsetLeft"),bc=Sa.prop("clientWidth"),dc=Sa.prop("clientHeight");ra.layoutCtrl(Rb,Wb,vb,bc,dc);return vb+dc},hc=function(Rb,vb){Rb.data("display",vb);Rb.css("display",vb?"":"none")},oc=function(){var Rb=C.parent(),vb=ya(),Wb=vb.prop("offsetTop");vb=vb.prop("offsetTop")+vb.prop("offsetHeight");var bc=-1;Rb.prop("scrollTop")>Wb?
bc=Wb:Rb.prop("scrollTop")+Rb.prop("clientHeight")<vb&&(bc=vb-Rb.prop("clientHeight"));0<=bc&&Rb.animate({scrollTop:bc},250)}}function r(){var C=this,aa,Sa,Ta,qb,Ba,V;this.setSelectionListener=function(Hb){V=Hb};this.setTabs=function(Hb){aa=Hb;Sa={};for(var Tb=0;Tb<Hb.length;Tb++)Sa[Hb[Tb]]=!0;Ta&&K()};this.setTabEnabled=function(Hb,Tb){Sa[Hb]=Tb;if(!Tb&&Ba==Hb)for(var hc=0;hc<aa.length;hc++)if(Hb=aa[hc],Tb=Sa[Hb]){Ba=Hb;V&&V(Ba);break}Ta&&K()};this.setCurrentId=function(Hb){Ba=Hb;Ta&&X(!0);V&&V(Ba)};
this.getCurrentId=function(){return Ba};this.getJqUi=function(){Ta||(Ta=$("<div>"),qb=$("<div>"),qb.css("border-radius","4px"),qb.css("pointer-events","none"),qb.addClass("square-customlist-similartab-slider"),setTimeout(K,0));return Ta};var K=function(){Ta.empty();for(var Hb=1/aa.length*100+"%",Tb=0;Tb<aa.length;Tb++){var hc=aa[Tb],oc=Sa[hc],Rb=Tb/aa.length*100+"%",vb=$("<div>");vb.attr("name",hc);vb.css({position:"absolute",left:Rb,width:Hb,top:0,bottom:0});vb.css("cursor",oc?"pointer":"default");
vb.appendTo(Ta);vb.on("click",Pa);vb.on("mouseenter",yb);vb.on("mouseleave",Pb);hc=$("<div>");hc.css("box-sizing","border-box");hc.addClass("square-customlist-similartab_"+(oc?"enabled":"disable"));hc.appendTo(vb);ra.layoutCtrlWithLRTB(hc,0,0,null);ra.layoutCtrlMiddleAlign(hc,12)}qb.appendTo(Ta);ra.layoutCtrlWithLRTB(qb,0,null,Hb);ra.layoutCtrlMiddleAlign(qb,6);X()},X=function(Hb){for(var Tb,hc=0;hc<aa.length;hc++)if(aa[hc]==Ba){Tb=Ta.children('[name="'+Ba+'"]').eq(0);break}Tb&&(Tb={left:Tb.prop("offsetLeft")},
Hb?qb.animate(Tb,125):qb.css(Tb))},ya=function(Hb,Tb){Hb&&(Hb=Hb.children(),Tb?Hb.addClass("square-customlist-similartab_hover"):Hb.removeClass("square-customlist-similartab_hover"))},oa=function(Hb){Hb=$(Hb.currentTarget);var Tb=Hb.attr("name");return Sa[Tb]?Hb:null},Pa=function(Hb){(Hb=oa(Hb))&&C.setCurrentId(Hb.attr("name"))},yb=function(Hb){Hb=oa(Hb);ya(Hb,!0)},Pb=function(Hb){Hb=oa(Hb);ya(Hb,!1)}}ua.call(this);var k=this,v=this.protectedMethod,y,L,B;this.setContextModel=function(C,aa){L=C;B=
aa};this.protectedCreateEditorJqUi=function(C){y=new u;y.setCustomPainter(function(aa){return p.get("clistContentDisplay","#1\u4e2a\u663e\u793a\u533a\u57df").replace("#1",aa)});y.addActionListener(F);k.updateEditor();return y.getJqUi()};this.updateEditor=function(){var C=0,aa=v.getOriValue();aa&&(C=aa[1].getContentAreas().length);y.setModel(C)};var F=function(C){C=new a;C.edit(L.getDesigningWidth(),v.getOriValue(),function(aa){v.actionPerformed(aa)},H());C.showDialog()},H=function(){for(var C=[],
aa=0,Sa=B.getItemModelCount();aa<Sa;aa++){var Ta=B.getItemModel(aa);C.push(Ta)}return C};l.createWarningIcon=function(C,aa,Sa,Ta){var qb=Wa.createWarning();qb.on("mouseenter",function(Ba){Ba=$("<div>");Ba.addClass("q-sys-warning-text");Ba.css({"text-align":"left","white-space":"pre","font-weight":"normal","line-height":"20px",background:"rgba(255,255,255,0.9)"});Ba.text(Ta);Ba.appendTo(qb);ra.layoutCtrl(Ba,C,aa,Sa,null)});qb.on("mouseleave",function(Ba){qb.children(".q-sys-warning-text").remove()});
return qb}}function ta(){ua.call(this);var a=this,l=this.protectedMethod,n;this.protectedCreateEditorJqUi=function(f){n=new gb;n.setColorPool(e.getColorPool7());n.setChangedListener(function(m){l.actionPerformed(m.getNullableColor())});a.updateEditor();return n.getJqUi()};this.updateEditor=function(){n.setNullableColor(l.getOriValue())}}"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.square&&(com.kingdee.bos.qing.square={});"undefined"==typeof com.kingdee.bos.qing.square.ui&&(com.kingdee.bos.qing.square.ui={});var ka=com.kingdee.bos.qing.square.ui;ka.XSYNPropertyPane=function(){Ya.call(this);pb.call(this);var a=this.protectedMethod;this.protectedInitUi=function(l){a.appendCard(l,p.get("plotArea","\u7ed8\u56fe\u533a"),["showLabel","labelOverlappable","labelFormat","palette","conditionStyle"]);a.appendCard(l,p.get("legend",
"\u56fe\u4f8b"),["showLegend"]);a.appendCard(l,p.get("yAxis","\u7eb5\u8f74"),["yUnitText","yFormat","yRulerScale","yRulerStart","reflines"]);a.appendCard(l,p.get("data","\u6570\u636e"),["order","sortAccording","topNSwitch","topNItems","topNOthers"])}};ka.YSXNPropertyPane=function(){Ya.call(this);Yb.call(this);var a=this.protectedMethod;this.protectedInitUi=function(l){var n=a.createCard(p.get("plotArea","\u7ed8\u56fe\u533a"),["showLabel","labelOverlappable","labelFormat","palette","conditionStyle"]),
f=a.createCard(p.get("legend","\u56fe\u4f8b"),["showLegend"]),m=a.createCard(p.get("xAxis","\u6a2a\u8f74"),["xUnitText","xFormat","xRulerScale","xRulerStart","reflines"]),h=a.createCard(p.get("data","\u6570\u636e"),["order","sortAccording","topNSwitch","topNItems","topNOthers"]);l.append(n.createJqUi());l.append(f.createJqUi());l.append(m.createJqUi());l.append(h.createJqUi())}};ka.XSYNPropertyPaneForStacked=function(){Ya.call(this);pb.call(this);var a=this.protectedMethod;this.protectedInitUi=function(l){a.appendCard(l,
p.get("plotArea","\u7ed8\u56fe\u533a"),["showLabel","labelOverlappable","labelFormat","palette","conditionStyle"]);a.appendCard(l,p.get("legend","\u56fe\u4f8b"),["showLegend"]);a.appendCard(l,p.get("yAxis","\u7eb5\u8f74"),["yUnitText","yFormat","reflines"]);a.appendCard(l,p.get("data","\u6570\u636e"),["order","sortAccording","topNSwitch","topNItems","topNOthers"])}};ka.XSYNPropertyPaneForPercentStacked=function(){Ya.call(this);pb.call(this);var a=this.protectedMethod;this.protectedInitUi=function(l){a.appendCard(l,
p.get("plotArea","\u7ed8\u56fe\u533a"),["showLabel","labelOverlappable","palette","conditionStyle"]);a.appendCard(l,p.get("legend","\u56fe\u4f8b"),["showLegend"]);a.appendCard(l,p.get("yAxis","\u7eb5\u8f74"),["yUnitText"])}};ka.YSXNPropertyPaneForStacked=function(){Ya.call(this);Yb.call(this);var a=this.protectedMethod;this.protectedInitUi=function(l){var n=a.createCard(p.get("plotArea","\u7ed8\u56fe\u533a"),["showLabel","labelOverlappable","labelFormat","palette","conditionStyle"]),f=a.createCard(p.get("legend",
"\u56fe\u4f8b"),["showLegend"]),m=a.createCard(p.get("xAxis","\u6a2a\u8f74"),["xUnitText","xFormat","reflines"]),h=a.createCard(p.get("data","\u6570\u636e"),["order","sortAccording","topNSwitch","topNItems","topNOthers"]);l.append(n.createJqUi());l.append(f.createJqUi());l.append(m.createJqUi());l.append(h.createJqUi())}};ka.YSXNPropertyPaneForPercentStacked=function(){Ya.call(this);Yb.call(this);var a=this.protectedMethod;this.protectedInitUi=function(l){var n=a.createCard(p.get("plotArea","\u7ed8\u56fe\u533a"),
["showLabel","labelOverlappable","palette","conditionStyle"]),f=a.createCard(p.get("legend","\u56fe\u4f8b"),["showLegend"]),m=a.createCard(p.get("xAxis","\u6a2a\u8f74"),["xUnitText"]);l.append(n.createJqUi());l.append(f.createJqUi());l.append(m.createJqUi())}};ka.LineChartPropertyPane=function(){Ya.call(this);pb.call(this);zb.call(this);var a=this.protectedMethod;this.protectedInitUi=function(n){a.appendCard(n,p.get("plotArea","\u7ed8\u56fe\u533a"),"nullAsZero smooth paintPoint showLabel labelOverlappable labelFormat palette conditionStyle".split(" "));
a.appendCard(n,p.get("legend","\u56fe\u4f8b"),["showLegend"]);a.appendCard(n,p.get("yAxis","\u7eb5\u8f74"),["yUnitText","yFormat","yRulerScale","yRulerStart","reflines"]);a.appendCard(n,p.get("xAxis","\u6a2a\u8f74"),["xAssistantLine"]);a.appendCard(n,p.get("tooltips","\u60ac\u505c\u4fe1\u606f"),["tooltipsSorted"])};var l=this.protectedCreateEditItem;this.protectedCreateEditItem=function(n,f){switch(n){case "smooth":n=a.createSmoothEditItem(f);break;case "paintPoint":n=a.createPaintPointEditItem(f,
function(h){return h.isShowLabel()});break;case "nullAsZero":n=a.createNullAsZeroEditItem(f);break;case "tooltipsSorted":var m=p.get("tooltipsSorted","\u591a\u6570\u503c\u6392\u5e8f");n=a.createBooleanEditItem();a.initEditItem(n,m,ac.KEY_TOOLTIPS_SORTED,f.isTooltipsSorted,f.setTooltipsSorted);break;default:n=l(n,f)}return n}};ka.AreaChartPropertyPane=function(){Ya.call(this);pb.call(this);var a=this.protectedMethod;this.protectedInitUi=function(l){a.appendCard(l,p.get("plotArea","\u7ed8\u56fe\u533a"),
["showLabel","labelOverlappable","labelFormat","palette","conditionStyle"]);a.appendCard(l,p.get("legend","\u56fe\u4f8b"),["showLegend"]);a.appendCard(l,p.get("yAxis","\u7eb5\u8f74"),["yUnitText","yFormat","reflines"]);a.appendCard(l,p.get("xAxis","\u6a2a\u8f74"),["xAssistantLine"])}};ka.PieChartPropertyPane=function(){Ya.call(this);Mb.call(this);var a=this.protectedMethod;this.protectedInitUi=function(l){var n=a.createCard(p.get("plotArea","\u7ed8\u56fe\u533a"),["showLabel","labelOverlappable","labelType",
"palette"]),f=a.createCard(p.get("legend","\u56fe\u4f8b"),["showLegend","legendOrderMode"]),m=a.createCard(p.get("data","\u6570\u636e"),["topN","ignoreNegative"]);l.append(n.createJqUi());l.append(f.createJqUi());l.append(m.createJqUi())}};ka.RingChartPropertyPane=function(){Ya.call(this);Mb.call(this);var a=this.protectedMethod;this.protectedInitUi=function(n){var f=a.createCard(p.get("plotArea","\u7ed8\u56fe\u533a"),["showLabel","labelOverlappable","labelType","showTotal","palette"]),m=a.createCard(p.get("legend",
"\u56fe\u4f8b"),["showLegend","legendOrderMode"]),h=a.createCard(p.get("data","\u6570\u636e"),["topN","ignoreNegative"]);n.append(f.createJqUi());n.append(m.createJqUi());n.append(h.createJqUi())};var l=this.protectedCreateEditItem;this.protectedCreateEditItem=function(n,f){switch(n){case "showTotal":var m=p.get("showTotal","\u663e\u793a\u603b\u8ba1");n=a.createBooleanEditItem();a.initEditItem(n,m,Ub.KEY_SHOW_TOTAL,f.isShowTotal,f.setShowTotal);break;default:n=l(n,f)}return n}};ka.RoseChartPropertyPane=
function(){Ya.call(this);Mb.call(this);var a=this.protectedMethod;this.protectedInitUi=function(n){var f=a.createCard(p.get("plotArea","\u7ed8\u56fe\u533a"),["showLabel","labelOverlappable","labelType","averageAngle","palette"]),m=a.createCard(p.get("legend","\u56fe\u4f8b"),["showLegend","legendOrderMode"]),h=a.createCard(p.get("data","\u6570\u636e"),["topN","ignoreNegative"]);n.append(f.createJqUi());n.append(m.createJqUi());n.append(h.createJqUi())};var l=this.protectedCreateEditItem;this.protectedCreateEditItem=
function(n,f){switch(n){case "averageAngle":var m=p.get("averageAngle","\u5e73\u5206\u89d2\u5ea6");n=a.createBooleanEditItem();a.initEditItem(n,m,$b.KEY_AVERAGE_ANGLE,f.isAverageAngle,f.setAverageAngle);break;default:n=l(n,f)}return n}};ka.KPIChartPropertyPane=function(){Ya.call(this);var a=this.protectedMethod;this.protectedInitUi=function(l){var n=a.createCard(p.get("primaryKpi","\u4e3b\u6307\u6807"),["caption","primayPostText","dataEmptyInstead"]),f=a.createCard(p.get("secondaryKpi","\u526f\u6307\u6807"),
["secondaryPreText","secondaryPostText"]),m=a.createCard(p.get("kpiStyleGroup","\u6837\u5f0f"),["kpiCustomColor","kpiCustomFont","kpiCustomAlign","conditionStyle"]),h=a.createCard(p.get("animation","\u52a8\u753b"),["animation"]);l.append(n.createJqUi());l.append(f.createJqUi());l.append(m.createJqUi());l.append(h.createJqUi())};this.protectedCreateEditItem=function(l,n){switch(l){case "caption":l=p.get("kpiCaptionLine","\u6458\u8981");var f=a.createPopupTextEditItem();a.initEditItem(f,l,cc.KEY_CAPTION,
n.getCaption,n.setCaption);break;case "primayPostText":l=p.get("kpiPostText","\u540e\u7f6e\u6587\u5b57");f=a.createPopupTextEditItem();a.initEditItem(f,l,cc.KEY_P_DISPLAY,n.getPrimaryPostfix,n.setPrimaryPostfix);break;case "secondaryPreText":l=p.get("kpiPreText","\u524d\u7f6e\u6587\u5b57");f=a.createPopupTextEditItem();a.initEditItem(f,l,cc.KEY_S_DISPLAY,n.getSecondaryPrefix,n.setSecondaryPrefix);break;case "secondaryPostText":l=p.get("kpiPostText","\u540e\u7f6e\u6587\u5b57");f=a.createPopupTextEditItem();
a.initEditItem(f,l,cc.KEY_S_DISPLAY,n.getSecondaryPostfix,n.setSecondaryPostfix);break;case "dataEmptyInstead":l=p.get("dataEmptyInstead","\u65e0\u6570\u636e\u65f6\u663e\u793a");f=a.createFloatNumberEditItem();a.initEditItem(f,l,cc.KEY_P_DATA_EMPTY_INSTEAD,n.getDataEmptyInstead,n.setDataEmptyInstead);break;case "kpiCustomColor":l=p.get("palette","\u8c03\u8272\u677f");f=new pa;a.initEditItem(f,l,cc.KEY_P_CUSTOM_STYLES,function(){var m=n.getCustomStyles();return m?m.separateColor():null},function(m){var h=
n.getCustomStyles();m?(h=h?h.copy():new xa,h.mergeColorFrom(m)):h&&h.mergeColorFrom(null);n.setCustomStyles(h)});f.setPresetPaletteGetter(function(m){a.createFacade(m).getPresetPalettes("chartKpi",null)});break;case "kpiCustomFont":l=p.get("styleFontSize","\u5b57\u53f7");f=new Gb;a.initEditItem(f,l,cc.KEY_P_CUSTOM_STYLES,function(){var m=n.getCustomStyles();return m?m.separateFont():null},function(m){var h=n.getCustomStyles();m?(h=h?h.copy():new xa,h.mergeFontFrom(m)):h&&h.mergeFontFrom(null);n.setCustomStyles(h)});
break;case "kpiCustomAlign":l=p.get("styleAlign","\u5bf9\u9f50"),f=new Vb,a.initEditItem(f,l,cc.KEY_P_CUSTOM_STYLES,function(){var m=n.getCustomStyles();return m?m.separateAlign():null},function(m){var h=n.getCustomStyles();m?(h=h?h.copy():new xa,h.mergeAlignFrom(m)):h&&h.mergeAlignFrom(null);n.setCustomStyles(h)})}return f}};ka.MapChartPropertyPane=function(){Ya.call(this);wb.call(this);Lb.call(this);var a=this,l=this.protectedMethod;this.protectedInitUi=function(f){var m=l.createCard(p.get("chartMap",
"\u5730\u56fe"),["mapTemplate","mapRegionMapping"]),h=l.createCard(p.get("plotArea","\u7ed8\u56fe\u533a"),["continuousColor"]),r=l.createCard(p.get("legend","\u56fe\u4f8b"),["showLegend","legendFormat"]),k=l.createCard(p.get("tooltips","\u60ac\u505c\u4fe1\u606f"),["tooltipsAutoDisplay","tooltipsAutoDisplayDuration"]);m=m.createJqUi();h=h.createJqUi();r=r.createJqUi();k=k.createJqUi();f.append(m);f.append(h);f.append(r);f.append(k)};this.protectedInitLegendFormatEditItem=function(f,m){};this.protectedInitContinuousColorEditItem=
function(f,m){};this.protectedCreateEditItem=function(f,m){switch(f){case "mapTemplate":var h=p.get("mapTemplate","\u5730\u56fe\u6a21\u677f");var r=new La;l.initEditItem(r,h,na.KEY_TEMPLATE_REF,m.getOutsideReference,m.setOutsideReference);break;case "mapRegionMapping":h=p.get("mapRegionMapping","\u5730\u57df\u6620\u5c04"),r=new ab,l.initEditItem(r,h,na.KEY_REGION_MAPPING,m.getDimensionToRegion,m.setDimensionToRegion),r.setBeforePopupChecker(function(){var k=r;var v=l.getSquareModel().getChart(),y=
v.getChartProperty().getOutsideReference();y&&y.getRefToId()?0==v.getDimensionSet().getItemModelCount()?(y=p.get("dimensionForMap","\u5730\u57df"),v="square-card-title",v=l.getGlobal().getTopJqUi().find("."+v+":contains('"+y+"')"),0==v.length&&(v=k.getJqCtrlUi()),k=new g,k.setText(p.get("mapNoDimensionPrompt","\u8bf7\u5148\u7ed1\u5b9a\u8868\u793a\u5730\u57df\u7684\u5b57\u6bb5\u3002")),k.show(v,!0),k=!1):k=!0:(y=p.get("mapTemplate","\u5730\u56fe\u6a21\u677f"),v="square-property-item-caption",v=a.getJqUi().find("."+
v+":contains('"+y+"')"),0==v.length&&(v=k.getJqCtrlUi()),k=new g,k.setText(p.get("mapNoTemplatePrompt","\u8bf7\u5148\u6307\u5b9a\u5730\u56fe\u6a21\u677f\u3002")),k.show(v,!0),k=!1);return k}),r.setRegionGetter(function(k){n(m.getOutsideReference(),k)})}!r&&(r=l.createEditItemWithTooltipsAutoDisplay(f,m));!r&&(r=l.createEditItemWithMixColorMode(f,m));return r};var n=function(f,m){var h=l.getMeta(),r=l.getSquareModel();l.createFacade(function(k){m(k.regions,k.data)}).loadMapRegions(f,h,r)}};ka.GISChartPropertyPane=
function(){Ya.call(this);var a=this.protectedMethod;this.protectedInitUi=function(f){var m=a.createCard(p.get("chartGis","GIS\u5730\u56fe"),["customInitScript"]),h=a.createCard(p.get("plotArea","\u7ed8\u56fe\u533a"),["usage","palette"]);m=m.createJqUi();h=h.createJqUi();f.append(m);f.append(h)};this.protectedGetColorFieldSetForPalette=function(){return a.getSquareModel().getChart().getColorSet()};this.protectedCreateEditItem=function(f,m){switch(f){case "third":f=p.get("gisThird","\u5730\u56fe\u7c7b\u578b");
var h=["baidu"];h=a.createSelectableEditItem(h,l);a.initEditItem(h,f,Fa.KEY_THIRD,m.getThird,m.setThird);break;case "usage":f=p.get("gisUsage","\u6807\u8bb0");h=[Fa.USAGE_MARKER,Fa.USAGE_BUBBLE];h=a.createSelectableEditItem(h,n);a.initEditItem(h,f,Fa.KEY_USAGE,m.getUsage,m.setUsage);break;case "customInitScript":f=p.get("gisCustomScript","\u81ea\u5b9a\u4e49\u811a\u672c"),h=a.createPopupTextAreaEditItem(),a.initEditItem(h,f,Fa.KEY_SCRIPT,m.getCustomScript,m.setCustomScript)}return h};var l=function(f,
m,h){switch(h){case "baidu":f=p.get("gisThirdBaidu","\u767e\u5ea6\u5730\u56fe");break;default:f=h}m.text(f)},n=function(f,m,h){switch(h){case Fa.USAGE_MARKER:f=p.get("gisUsageMarker","\u4f4d\u7f6e\u6807\u8bb0");break;case Fa.USAGE_BUBBLE:f=p.get("gisUsageBubble","\u6c14\u6ce1");break;default:f=h}m.text(f)}};ka.RadarChartPropertyPane=function(){Ya.call(this);var a=this.protectedMethod;this.protectedInitUi=function(n){var f=a.createCard(p.get("chartRadar","\u96f7\u8fbe\u56fe"),["outerCircleMode"]),
m=a.createCard(p.get("plotArea","\u7ed8\u56fe\u533a"),"fillRadarAreaColor showLabel labelOverlappable showRulerMarkLabel radarAxisFormat palette".split(" ")),h=a.createCard(p.get("legend","\u56fe\u4f8b"),["showLegend"]);n.append(f.createJqUi());n.append(m.createJqUi());n.append(h.createJqUi())};this.protectedGetColorFieldSetForPalette=function(){var n=a.getSquareModel().getChart();if(n.getChartProperty().getOuterCircle()==Qa.OUTER_CIRCLE_MEASURE)return n.getDimensionSet();var f=!1,m=null;n.getDimensionSet().traversalItems(function(h){var r=
!1;!h.isInvalid()&&h.isDimension()&&(f?(m=h,r=!0):f=!0);return r});n=new Za;m&&n.addItemModel(m);return n};this.protectedCreateEditItem=function(n,f){switch(n){case "radarAxisFormat":n=p.get("radarRulerMarkLabelFormat","\u523b\u5ea6\u503c\u683c\u5f0f");var m=a.createNumberFormatEditItem();a.initEditItem(m,n,Qa.KEY_RADAR_FORMAT,f.getRadarFormat,f.setRadarFormat);m.addCareForBrotherListener(function(h,r,k){r==Qa.KEY_SHOW_RULER_MARK_LABEL&&a.syncEditItemVisible(h,k?!0:!1)});a.syncEditItemVisible(m,f.isShowRulerMarkLabel());
break;case "outerCircleMode":n=p.get("radarOuterCircleMode","\u6a21\u5f0f");m=a.createSelectableEditItem([Qa.OUTER_CIRCLE_DIMENSION,Qa.OUTER_CIRCLE_MEASURE],l);a.initEditItem(m,n,Qa.KEY_OUTER_CIRCLE,f.getOuterCircle,f.setOuterCircle);break;case "showRulerMarkLabel":n=p.get("radarRulerMarkLabel","\u523b\u5ea6\u503c");m=new Ea;a.initEditItem(m,n,Qa.KEY_SHOW_RULER_MARK_LABEL,f.isShowRulerMarkLabel,f.setShowRulerMarkLabel);break;case "fillRadarAreaColor":n=p.get("radarAreaFillColor","\u586b\u5145\u989c\u8272"),
m=new Ea,a.initEditItem(m,n,Qa.KEY_FILL_COLOR,f.isFillColor,f.setFillColor)}return m};var l=function(n,f,m){switch(m){case Qa.OUTER_CIRCLE_DIMENSION:n=p.get("radarDimension","\u7ef4\u5ea6");break;case Qa.OUTER_CIRCLE_MEASURE:n=p.get("radarMeasure","\u5ea6\u91cf");break;default:n=m}n=p.get("radarAsOuterCircle","#1\u4f5c\u4e3a\u5916\u5708").replace("#1",n);f.text(n)}};ka.ProgressBarChartPropertyPane=function(){Ya.call(this);S.call(this);Yb.call(this);var a=this.protectedMethod;this.protectedInitUi=
function(l){var n=a.createCard(p.get("chartProgress","\u8fdb\u5ea6\u56fe"),["progressThickness"]),f=a.createCard(p.get("plotArea","\u7ed8\u56fe\u533a"),"showLabel labelOverlappable progressLabelType labelFormat progressPalette conditionStyle".split(" ")),m=a.createCard(p.get("legend","\u56fe\u4f8b"),["showLegend"]),h=a.createCard(p.get("xAxis","\u6a2a\u8f74"),["xUnitText","xFormat","reflines"]),r=a.createCard(p.get("data","\u6570\u636e"),["order","sortAccording","topNSwitch","topNItems","topNOthers"]);
l.append(n.createJqUi());l.append(f.createJqUi());l.append(m.createJqUi());l.append(h.createJqUi());l.append(r.createJqUi())}};ka.ProgressColumnChartPropertyPane=function(){Ya.call(this);S.call(this);pb.call(this);var a=this.protectedMethod;this.protectedInitUi=function(l){a.appendCard(l,p.get("chartProgress","\u8fdb\u5ea6\u56fe"),["progressThickness"]);a.appendCard(l,p.get("plotArea","\u7ed8\u56fe\u533a"),"showLabel labelOverlappable progressLabelType labelFormat progressPalette conditionStyle".split(" "));
a.appendCard(l,p.get("legend","\u56fe\u4f8b"),["showLegend"]);a.appendCard(l,p.get("yAxis","\u7eb5\u8f74"),["yUnitText","yFormat","reflines"]);a.appendCard(l,p.get("data","\u6570\u636e"),["order","sortAccording","topNSwitch","topNItems","topNOthers"])}};ka.ProgressCirclePropertyPane=function(){Ya.call(this);S.call(this);var a=this.protectedMethod;this.protectedInitUi=function(m){var h=a.createCard(p.get("chartProgress","\u8fdb\u5ea6\u56fe"),["progressThickness"]),r=a.createCard(p.get("progressCompletion",
"\u5b8c\u6210\u7387"),["progressDecimalDigit","progressPercentageCeiling","progressPercentageInstead","progressLabelDesc"]),k=a.createCard(p.get("plotArea","\u7ed8\u56fe\u533a"),["progressPalette"]),v=a.createCard(p.get("legend","\u56fe\u4f8b"),["showLegend","progressCircleLegendFormat"]),y=a.createCard(p.get("animation","\u52a8\u753b"),["animation"]);m.append(h.createJqUi());m.append(r.createJqUi());m.append(k.createJqUi());m.append(v.createJqUi());m.append(y.createJqUi())};var l=this.protectedCreateEditItem;
this.protectedCreateEditItem=function(m,h){switch(m){case "progressDecimalDigit":m=p.get("progressDecimalDigit","\u767e\u5206\u6bd4\u5c0f\u6570\u4f4d");var r=a.createNumberEditItem(0,4,1);a.initEditItem(r,m,Ka.KEY_PERCENTAGE_DIGIT,h.getPercentageDecimalDigit,h.setPercentageDecimalDigit);break;case "progressPercentageCeiling":m=p.get("progressPercentageCeiling","\u5c01\u9876");r=a.createSelectableEditItem([!1,!0],n);a.initEditItem(r,m,Ka.KEY_PERCENTAGE_CEILING,h.isPercentageCeiling,h.setPercentageCeiling);
break;case "progressPercentageInstead":m=p.get("dataEmptyInstead","\u65e0\u6570\u636e\u65f6\u663e\u793a");r=a.createSelectableEditItem([0,100],f);a.initEditItem(r,m,Ka.KEY_PERCENTAGE_INSTEAD,h.getDataEmptyPercentageInstead,h.setDataEmptyPercentageInstead);break;case "progressLabelDesc":m=p.get("progressLabelText","\u6807\u7b7e");r=a.createTextEditItem();a.initEditItem(r,m,Ka.KEY_LABEL_DESC,h.getLabelDesc,h.setLabelDesc);break;case "progressCircleLegendFormat":m=p.get("numberFormat","\u6570\u5b57\u683c\u5f0f");
r=p.get("numberFormatFollowField","\u8ddf\u968f\u5ea6\u91cf\u5b57\u6bb5");r=a.createNumberFormatEditItem(r);a.initEditItem(r,m,Ka.KEY_LEGEND_FORMAT,h.getLegendFormat,h.setLegendFormat);break;default:r=l(m,h)}return r};var n=function(m,h,r){m=r?p.get("progressPercentageCeilingY","\u6700\u5927100%"):p.get("progressPercentageCeilingN","\u5141\u8bb8\u8d85\u8fc7100%");h.text(m)},f=function(m,h,r){h.text(100==r?"100%":"0%")}};ka.CompositeChartPropertyPane=function(){Ya.call(this);eb.call(this);zb.call(this);
var a=this.protectedMethod;this.protectedInitUi=function(h){var r=a.createCard(p.get("plotArea","\u7ed8\u56fe\u533a"),"smooth paintPoint myShowLabel labelOverlappable labelFormat palette conditionStyle".split(" ")),k=a.createCard(p.get("legend","\u56fe\u4f8b"),["showLegend"]),v=a.createCard(p.get("leftYAxis","\u5de6\u8f74"),["leftYUnitText","leftYFormat","leftYRulerScale","leftYRulerStart","leftReflines"]),y=a.createCard(p.get("rightYAxis","\u53f3\u8f74"),["rightYUnitText","rightYFormat","rightYRulerScale",
"rightYRulerStart","rightReflines"]),L=a.createCard(p.get("data","\u6570\u636e"),["compositeOrder","sortAccording"]);h.append(r.createJqUi());h.append(k.createJqUi());h.append(v.createJqUi());h.append(y.createJqUi());h.append(L.createJqUi())};this.protectedGetColorFieldSetForPalette=function(){return a.getSquareModel().getChart().getLeftSeries()};var l=this.protectedCreateEditItem;this.protectedCreateEditItem=function(h,r){switch(h){case "smooth":var k=a.createSmoothEditItem(r);break;case "paintPoint":k=
a.createPaintPointEditItem(r,function(v){return 1==(v.getShowLabel()&1)});break;case "myShowLabel":k=n(r);break;case "leftYUnitText":h=p.get("axisUnit","\u6807\u9898/\u5355\u4f4d");k=a.createTextEditItem();a.initEditItem(k,h,db.KEY_LY_UNIT_TEXT,r.getLeftYUnitText,r.setLeftYUnitText);break;case "leftYRulerScale":h=p.get("rulerScale","\u6807\u5c3a\u6bd4\u4f8b");k=a.createRulerScaleEditItem();a.initEditItem(k,h,db.KEY_LY_RULER_SCALE,r.getLeftYRulerScale,r.setLeftYRulerScale);break;case "leftYRulerStart":h=
p.get("rulerScope","\u6570\u8f74\u8303\u56f4");k=a.createRulerScopeEditItem();a.initEditItem(k,h,db.KEY_LY_RULER_START,r.getLeftYRulerScope,r.setLeftYRulerScope);break;case "leftYFormat":h=p.get("numberFormat","\u6570\u5b57\u683c\u5f0f");k=p.get("numberFormatFollowField","\u8ddf\u968f\u5ea6\u91cf\u5b57\u6bb5");k=a.createNumberFormatEditItem(k);a.initEditItem(k,h,db.KEY_LY_FORMAT,r.getLeftYFormat,r.setLeftYFormat);break;case "leftReflines":h=p.get("refline","\u53c2\u8003\u7ebf");k=a.createReflinesEditItem();
a.initEditItem(k,h,db.KEY_LEFT_REFLINES,r.getLeftReflines,r.setLeftReflines);k.setMeasureFieldsGetter(f);break;case "rightYUnitText":h=p.get("axisUnit","\u6807\u9898/\u5355\u4f4d");k=a.createTextEditItem();a.initEditItem(k,h,db.KEY_RY_UNIT_TEXT,r.getRightYUnitText,r.setRightYUnitText);break;case "rightYRulerScale":h=p.get("rulerScale","\u6807\u5c3a\u6bd4\u4f8b");k=a.createRulerScaleEditItem();a.initEditItem(k,h,db.KEY_RY_RULER_SCALE,r.getRightYRulerScale,r.setRightYRulerScale);break;case "rightYRulerStart":h=
p.get("rulerScope","\u6570\u8f74\u8303\u56f4");k=a.createRulerScopeEditItem();a.initEditItem(k,h,db.KEY_RY_RULER_START,r.getRightYRulerScope,r.setRightYRulerScope);break;case "rightYFormat":h=p.get("numberFormat","\u6570\u5b57\u683c\u5f0f");k=p.get("numberFormatFollowField","\u8ddf\u968f\u5ea6\u91cf\u5b57\u6bb5");k=a.createNumberFormatEditItem(k);a.initEditItem(k,h,db.KEY_RY_FORMAT,r.getRightYFormat,r.setRightYFormat);break;case "rightReflines":h=p.get("refline","\u53c2\u8003\u7ebf");k=a.createReflinesEditItem();
a.initEditItem(k,h,db.KEY_RIGHT_REFLINES,r.getRightReflines,r.setRightReflines);k.setMeasureFieldsGetter(m);break;case "compositeOrder":k=a.createOrderEditItem(r,db.KEY_SORT);break;case "sortAccording":k=a.createSortAccordingEditItem(r,db.KEY_SORT);break;default:k=l(h,r)}return k};var n=function(h){var r=p.get("dataLabel","\u6570\u636e\u6807\u7b7e"),k=a.createSelectableEditItem([0,16,1,17],function(v,y,L){v=16==L?p.get("dataLabelForColumn","\u67f1\u5b50"):1==L?p.get("dataLabelForLine","\u6298\u7ebf"):
17==L?p.get("dataLabelForColumnLine","\u67f1\u5b50+\u6298\u7ebf"):p.get("dataLabelNone","\u65e0");y.text(v)});a.initEditItem(k,r,Ra.KEY_SHOW_LABEL,h.getShowLabel,h.setShowLabel);return k},f=function(){for(var h=[],r=a.getSquareModel().getChart().getLeftYAxis(),k=0,v=r.getItemModelCount();k<v;k++){var y=r.getItemModel(k);y.isMeasure()&&h.push(y)}return h},m=function(){for(var h=[],r=a.getSquareModel().getChart().getRightYAxis(),k=0,v=r.getItemModelCount();k<v;k++){var y=r.getItemModel(k);y.isMeasure()&&
h.push(y)}return h}};ka.GridChartPropertyPane=function(){Ma.call(this);var a=this.protectedMethod;this.protectedInitUi=function(n){var f=a.createCard(p.get("chartGrid","\u5217\u8868"),["gridShowHeader","gridShowRowNum","gridRowNumTitle","conditionStyle"]),m=a.createCard(p.get("gridAutoScroll","\u81ea\u52a8\u6eda\u52a8"),["listAutoScroll","listStickTopN","listStickTopRows"]),h=a.createCard(p.get("data","\u6570\u636e"),["listShowTopN","listShowTopRows","listSortField","listSortord"]),r=a.createCard(p.get("affection",
"\u8054\u52a8"),["listAffectionSrcField"]);n.append(f.createJqUi());n.append(m.createJqUi());n.append(h.createJqUi());n.append(r.createJqUi())};this.protectedCreateEditItem=function(n,f){switch(n){case "gridShowHeader":n=p.get("gridShowHeader","\u663e\u793a\u8868\u5934");var m=a.createBooleanEditItem();a.initEditItem(m,n,Ob.KEY_SHOW_HEADER,f.isShowHeader,f.setShowHeader);f=m;break;case "gridShowRowNum":case "gridRowNumTitle":f=l(n,f);break;default:m=a.getSquareModel().getChart().getColumnSet(),f=
a.listCreateEditItem(n,f,m)}return f};var l=function(n,f){if("gridShowRowNum"==n){n=p.get("gridShowRowNum","\u663e\u793a\u884c\u53f7");var m=a.createBooleanEditItem();a.initEditItem(m,n,Ob.KEY_SHOW_ROWNUM,f.isShowRowNum,f.setShowRowNum);return m}if("gridRowNumTitle"==n)return n=p.get("gridRowNumTitle","\u884c\u53f7\u6807\u9898"),m=a.createTextEditItem(),a.initEditItem(m,n,Ob.KEY_ROWNUM_TITLE,f.getTitleOfRowNum,f.setTitleOfRowNum),m.addCareForBrotherListener(function(h,r,k){r==Ob.KEY_SHOW_ROWNUM&&
a.syncEditItemVisible(h,k)}),a.syncEditItemVisible(m,f.isShowRowNum()),m}};ka.CustomListChartPropertyPane=function(){Ma.call(this);var a=this.protectedMethod;this.protectedInitUi=function(l){var n=a.createCard(p.get("chartCustomList","\u81ea\u5b9a\u4e49\u5217\u8868"),["customContent","splitLine","conditionStyle","bodyVAlign","bodyShareToRow"]),f=a.createCard(p.get("gridAutoScroll","\u81ea\u52a8\u6eda\u52a8"),["listAutoScroll","listStickTopN","listStickTopRows"]),m=a.createCard(p.get("data","\u6570\u636e"),
["listShowTopN","listShowTopRows","listSortField","listSortord"]),h=a.createCard(p.get("affection","\u8054\u52a8"),["listAffectionSrcField"]);l.append(n.createJqUi());l.append(f.createJqUi());l.append(m.createJqUi());l.append(h.createJqUi())};this.protectedCreateEditItem=function(l,n){var f=a.getSquareModel().getChart().getFieldSet();switch(l){case "customContent":var m=p.get("clistContent","\u5185\u5bb9");l=new ha;a.initEditItem(l,m,Zb.KEY_CUSTOM_CONTENT,function(){return[n.getCustomHead(),n.getCustomContent(),
n.getCustomTail()]},function(h){n.setCustomDesign(h[0],h[1],h[2])});l.setContextModel(n,f);break;case "splitLine":m=p.get("clistSplitlineColor","\u5206\u9694\u7ebf\u989c\u8272");l=new ta;a.initEditItem(l,m,Zb.KEY_SPLITLINE_COLOR,n.getSplitLineColor,n.setSplitLineColor);break;case "bodyVAlign":m=p.get("clistBodyVAlign","\u5782\u76f4\u65b9\u5411");l=a.createSelectableEditItem([null,Zb.BODY_VALIGN_MIDDLE],function(h,r,k){h=k==Zb.BODY_VALIGN_MIDDLE?p.get("clistBodyVAlignMiddle","\u7a7a\u95f4\u5145\u8db3\u65f6\u5c45\u4e2d"):
p.get("clistBodyVAlignTop","\u603b\u662f\u4ece\u9876\u90e8\u5f00\u59cb");r.text(h)});a.initEditItem(l,m,Zb.KEY_BODY_V_ALIGN,n.getBodyVerticalAlign,n.setBodyVerticalAlign);break;case "bodyShareToRow":m=p.get("clistBodyShareToRow","\u52a8\u6001\u884c\u9ad8");l=a.createSelectableEditItem([null,Zb.BODY_SHARE_TO_ROW_REDUCABLE,Zb.BODY_SHARE_TO_ROW_INCREASABLE,Zb.BODY_SHARE_TO_ROW_ADJUSTABLE],function(h,r,k){h=k==Zb.BODY_SHARE_TO_ROW_REDUCABLE?p.get("clistBodyShareToRowReducable","\u5f53\u51fa\u73b0\u6eda\u52a8\u65f6\u538b\u7f29"):
k==Zb.BODY_SHARE_TO_ROW_INCREASABLE?p.get("clistBodyShareToRowIncreasable","\u5f53\u7a7a\u95f4\u5145\u8db3\u65f6\u4f38\u5c55"):k==Zb.BODY_SHARE_TO_ROW_ADJUSTABLE?p.get("clistBodyShareToRowAdjustable","\u538b\u7f29\u6216\u4f38\u5c55"):p.get("clistBodyShareToRowNone","\u5173\u95ed");r.text(h)});a.initEditItem(l,m,Zb.KEY_BODY_SHARE_TO_ROW,n.getBodyShareToRow,n.setBodyShareToRow);break;default:l=a.listCreateEditItem(l,n,f)}return l}};ka.WaterfallChartPropertyPane=function(){Ya.call(this);pb.call(this);
var a=this.protectedMethod;this.protectedInitUi=function(L){a.appendCard(L,p.get("plotArea","\u7ed8\u56fe\u533a"),["showLabel","labelOverlappable","labelFormat","waterfallPalette"]);a.appendCard(L,p.get("yAxis","\u7eb5\u8f74"),["yUnitText","yFormat"]);a.appendCard(L,p.get("data","\u6570\u636e"),["waterfallSortByName","waterfallNegativeAsc","waterfallPositiveTopN","waterfallNegativeTopN"]);a.appendCard(L,p.get("waterfallSingleDim","\u5355\u7ef4\u5ea6\u6a21\u5f0f"),["waterfallTotal"]);a.appendCard(L,
p.get("waterfallDoubleDim","\u53cc\u7ef4\u5ea6\u6a21\u5f0f\uff08\u6709\u9636\u6bb5\uff09"),["waterfallStartFrom"])};var l=this.protectedCreateEditItem;this.protectedCreateEditItem=function(L,B){switch(L){case "waterfallTotal":L=n(B);break;case "waterfallStartFrom":L=f(B);break;case "waterfallSortByName":L=m(B);break;case "waterfallNegativeAsc":L=h(B);break;case "waterfallNegativeTopN":L=r(B);break;case "waterfallPositiveTopN":L=k(B);break;case "waterfallPalette":L=y(B);break;default:L=l(L,B)}return L};
var n=function(L){var B=p.get("showTotal","\u663e\u793a\u603b\u8ba1"),F=a.createBooleanEditItem();a.initEditItem(F,B,Ra.KEY_WITHOUT_TOTAL,function(){return!L.isWithoutTotal()},function(H){L.setWithoutTotal(!H)});return F},f=function(L){var B=p.get("waterfallStartFrom","\u8d77\u59cb\u4e8e"),F=a.createSelectableEditItem([!1,!0],function(H,C,aa){var Sa;!1===aa?Sa=p.get("waterfallStartFromClause","\u6761\u76ee"):!0===aa&&(Sa=p.get("waterfallStartFromStage","\u7b2c\u4e00\u9636\u6bb5\u6c47\u603b"));C.text(Sa)});
a.initEditItem(F,B,Fb.KEY_START_FROM_STAGE,L.isStartFromStage,L.setStartFromStage);return F},m=function(L){var B=p.get("waterfallSortBy","\u6761\u76ee\u987a\u5e8f"),F=a.createSelectableEditItem([!0,!1],function(H,C,aa){var Sa;!1===aa?Sa=p.get("waterfallSortByMeasure","\u6309\u5ea6\u91cf"):!0===aa&&(Sa=p.get("waterfallSortByName","\u6309\u540d\u79f0"));C.text(Sa)});a.initEditItem(F,B,Fb.KEY_SORT_BY_NAME,L.isSortByName,L.setSortByName);return F},h=function(L){var B=function(C,aa){C.setVisible(!aa)},
F=p.get("waterfallNegitiveOrder","\u8d1f\u503c"),H=a.createSelectableEditItem([!1,!0],function(C,aa,Sa){var Ta;!1===Sa?Ta=p.get("waterfallNegitiveOrderDesc","\u5c0f\u5757\u5728\u524d"):!0===Sa&&(Ta=p.get("waterfallNegitiveOrderAsc","\u5927\u5757\u5728\u524d"));aa.text(Ta)});a.initEditItem(H,F,Fb.KEY_NEGATIVE_ASC,L.isNegativeAsc,L.setNegativeAsc);H.addCareForBrotherListener(function(C,aa,Sa){aa==Fb.KEY_SORT_BY_NAME&&B(C,Sa)});B(H,L.isSortByName());return H},r=function(L){var B=function(C,aa){C.setVisible(!aa)},
F=p.get("waterfallNegativeTopN","\u8d1f\u503c\u524dN\u9879"),H=v();a.initEditItem(H,F,Fb.KEY_NEGATIVE_TOP_N,L.getNegativeTopN,L.setNegativeTopN);H.addCareForBrotherListener(function(C,aa,Sa){aa==Fb.KEY_SORT_BY_NAME&&B(C,Sa)});B(H,L.isSortByName());return H},k=function(L){var B=function(C,aa){C.setVisible(!aa)},F=p.get("waterfallPositiveTopN","\u6b63\u503c\u524dN\u9879"),H=v();a.initEditItem(H,F,Fb.KEY_POSITIVE_TOP_N,L.getPositiveTopN,L.setPositiveTopN);H.addCareForBrotherListener(function(C,aa,Sa){aa==
Fb.KEY_SORT_BY_NAME&&B(C,Sa)});B(H,L.isSortByName());return H},v=function(){for(var L=[-1],B=1;10>=B;B++)L.push(B);return a.createSelectableEditItem(L,function(F,H,C){F=0<C?p.get("topNItem","\u524d #1 \u9879\u53ca\u201c\u5176\u5b83\u201d").replace("#1",C):p.get("itemNone","(\u65e0)");H.text(F)})},y=function(L){var B=p.get("palette","\u8c03\u8272\u677f"),F=new Jb;a.initEditItem(F,B,Ra.KEY_PALETTE,L.getPalette,L.setPalette);F.setPresetPaletteGetter(function(H){a.createFacade(H).getPresetPalettes("chartWaterfall",
null)});return F}};ka.FunnelChartPropertyPane=function(){Ya.call(this);var a=this.protectedMethod;this.protectedInitUi=function(k){var v=a.createCard(p.get("plotArea","\u7ed8\u56fe\u533a"),"ladder nameLabelPosition valueLabelPosition ratioLabelPosition funnelLabelOverlappable palette".split(" ")),y=a.createCard(p.get("legend","\u56fe\u4f8b"),["showLegend"]),L=a.createCard(p.get("data","\u6570\u636e"),["funnelSortByName","ignoreNegative","ratioBy","ratioFormat"]);k.append(v.createJqUi());k.append(y.createJqUi());
k.append(L.createJqUi())};this.protectedGetColorFieldSetForPalette=function(){return a.getSquareModel().getChart().getDimensionSet()};this.protectedCreateEditItem=function(k,v){switch(k){case "ladder":var y=l(v);break;case "nameLabelPosition":k=p.get("funnelLabelName","\u540d\u79f0\u6807\u7b7e\u4f4d\u7f6e");y=n();a.initEditItem(y,k,ob.KEY_LABEL_NAME,v.getNameLabelPosition,v.setNameLabelPosition);break;case "valueLabelPosition":k=p.get("funnelLabelValue","\u6570\u503c\u6807\u7b7e\u4f4d\u7f6e");y=n();
a.initEditItem(y,k,ob.KEY_LABEL_VALUE,v.getValueLabelPosition,v.setValueLabelPosition);break;case "ratioLabelPosition":k=p.get("funnelLabelPercent","\u6bd4\u7387\u6807\u7b7e\u4f4d\u7f6e");y=n();a.initEditItem(y,k,ob.KEY_LABEL_RATIO,v.getRatioLabelPosition,v.setRatioLabelPosition);break;case "funnelLabelOverlappable":y=f(v);break;case "funnelSortByName":y=m(v);break;case "ratioBy":y=h(v);break;case "ratioFormat":y=r(v)}return y};var l=function(k){var v=p.get("funnelLadder","\u68af\u5f62\u5916\u89c2"),
y=a.createSelectableEditItem([ob.LADDER_PERFECT,ob.LADDER_ACTUAL],function(L,B,F){L="";switch(F){case ob.LADDER_PERFECT:L=p.get("funnelLadderPerfect","\u6574\u4f53\u68af\u5f62");break;case ob.LADDER_ACTUAL:L=p.get("funnelLadderActual","\u9010\u7ea7\u68af\u5f62")}B.text(L)});a.initEditItem(y,v,ob.KEY_LADDER,k.getLadder,k.setLadder);return y},n=function(){return a.createSelectableEditItem([ob.LABEL_POSITION_LEFT,ob.LABEL_POSITION_CENTER,ob.LABEL_POSITION_RIGHT,ob.LABEL_POSITION_HIDE],function(k,v,y){k=
y==ob.LABEL_POSITION_LEFT?p.get("funnelLabelPositionLeft","\u5de6"):y==ob.LABEL_POSITION_CENTER?p.get("funnelLabelPositionCenter","\u4e2d"):y==ob.LABEL_POSITION_RIGHT?p.get("funnelLabelPositionRight","\u53f3"):p.get("funnelLabelPositionHide","\u9690\u85cf");v.text(k)})},f=function(k){var v=p.get("dataLabelOverlappable","\u6807\u7b7e\u5141\u8bb8\u91cd\u53e0"),y=a.createBooleanEditItem();a.initEditItem(y,v,Ra.KEY_LABEL_OVERLAPPABLE,k.isDataLabelOverlappable,k.setDataLabelOverlappable);y.addCareForBrotherListener(function(L,
B,F){B!=ob.KEY_LABEL_NAME&&B!=ob.KEY_LABEL_VALUE&&B!=ob.KEY_LABEL_RATIO||a.syncEditItemVisible(L,k.isShowLabel())});a.syncEditItemVisible(y,k.isShowLabel());return y},m=function(k){var v=p.get("funnelSortBy","\u6392\u5e8f"),y=a.createSelectableEditItem([!0,!1],function(L,B,F){L=F?p.get("funnelSortByName","\u6309\u540d\u79f0"):p.get("funnelSortByMeasure","\u6309\u5ea6\u91cf\u4ece\u5927\u5230\u5c0f");B.text(L)});a.initEditItem(y,v,ob.KEY_SORT_BY_NAME,k.isSortByName,k.setSortByName);return y},h=function(k){var v=
p.get("funnelRatioBy","\u6bd4\u7387\u8ba1\u7b97\u65b9\u5f0f"),y=a.createSelectableEditItem([ob.RATIO_BY_STEP,ob.RATIO_BY_START,ob.RATIO_BY_TOTAL],function(L,B,F){L="";switch(F){case ob.RATIO_BY_STEP:L=p.get("funnelRatioByStep","\u9010\u7ea7\u5dee\u5f02");break;case ob.RATIO_BY_START:L=p.get("funnelRatioByStart","\u5360\u7b2c\u4e00\u5c42\u767e\u5206\u6bd4");break;case ob.RATIO_BY_TOTAL:L=p.get("funnelRatioByTotal","\u5360\u5408\u8ba1\u7684\u767e\u5206\u6bd4")}B.text(L)});a.initEditItem(y,v,ob.KEY_RATIOBY,
k.getRatioBy,k.setRatioBy);return y},r=function(k){var v=p.get("funnelRatioFormat","\u6bd4\u7387\u683c\u5f0f"),y=a.createNumberFormatEditItem();a.initEditItem(y,v,ob.KEY_RATIO_FORMAT,function(){var L=k.getRatioFormat();!L&&(L="{-2}#,##0.00%");return L},k.setRatioFormat);return y}};ka.ScatterChartPropertyPane=function(){Ya.call(this);eb.call(this);var a=this.protectedMethod;this.protectedInitUi=function(f){var m=a.createCard(p.get("plotArea","\u7ed8\u56fe\u533a"),["palette"]),h=a.createCard(p.get("legend",
"\u56fe\u4f8b"),["showLegend"]),r=a.createCard(p.get("xAxis","\u6a2a\u8f74"),["xUnitText","xFormat","xRulerStart","xReflines"]),k=a.createCard(p.get("yAxis","\u7eb5\u8f74"),["yUnitText","yFormat","yRulerStart","yReflines"]);f.append(m.createJqUi());f.append(h.createJqUi());f.append(r.createJqUi());f.append(k.createJqUi())};this.protectedGetColorFieldSetForPalette=function(){return a.getSquareModel().getChart().getSeriesFieldSet()};var l=this.protectedCreateEditItem;this.protectedCreateEditItem=function(f,
m){switch(f){case "xUnitText":f=p.get("axisUnit","\u6807\u9898/\u5355\u4f4d");var h=a.createTextEditItem();a.initEditItem(h,f,qa.KEY_X_UNIT_TEXT,m.getXUnitText,m.setXUnitText);break;case "xRulerStart":f=p.get("rulerScope","\u6570\u8f74\u8303\u56f4");h=a.createRulerScopeEditItem();a.initEditItem(h,f,qa.KEY_X_RULER_START,m.getXRulerScope,m.setXRulerScope);break;case "xFormat":f=p.get("numberFormat","\u6570\u5b57\u683c\u5f0f");h=p.get("numberFormatFollowField","\u8ddf\u968f\u5ea6\u91cf\u5b57\u6bb5");
h=a.createNumberFormatEditItem(h);a.initEditItem(h,f,qa.KEY_X_FORMAT,m.getXFormat,m.setXFormat);break;case "xReflines":f=p.get("refline","\u53c2\u8003\u7ebf");h=a.createReflinesEditItem();a.initEditItem(h,f,qa.KEY_X_REFLINES,m.getXReflines,m.setXReflines);h.setMeasureFieldsGetter(function(){return n(a.getSquareModel().getChart().getXAxisFieldSet())});break;case "yUnitText":f=p.get("axisUnit","\u6807\u9898/\u5355\u4f4d");h=a.createTextEditItem();a.initEditItem(h,f,qa.KEY_Y_UNIT_TEXT,m.getYUnitText,
m.setYUnitText);break;case "yRulerStart":f=p.get("rulerScope","\u6570\u8f74\u8303\u56f4");h=a.createRulerScopeEditItem();a.initEditItem(h,f,qa.KEY_Y_RULER_START,m.getYRulerScope,m.setYRulerScope);break;case "yFormat":f=p.get("numberFormat","\u6570\u5b57\u683c\u5f0f");h=p.get("numberFormatFollowField","\u8ddf\u968f\u5ea6\u91cf\u5b57\u6bb5");h=a.createNumberFormatEditItem(h);a.initEditItem(h,f,qa.KEY_Y_FORMAT,m.getYFormat,m.setYFormat);break;case "yReflines":f=p.get("refline","\u53c2\u8003\u7ebf");
h=a.createReflinesEditItem();a.initEditItem(h,f,qa.KEY_Y_REFLINES,m.getYReflines,m.setYReflines);h.setMeasureFieldsGetter(function(){return n(a.getSquareModel().getChart().getYAxisFieldSet())});break;default:h=l(f,m)}return h};var n=function(f){for(var m=[],h=0,r=f.getItemModelCount();h<r;h++){var k=f.getItemModel(h);if(k.isMeasure()){m.push(k);break}}return m}};ka.DialChartPropertyPane=function(){Ya.call(this);var a=this.protectedMethod;this.protectedInitUi=function(l){var n=a.createCard(p.get("dialPan",
"\u8868\u76d8"),"sections arcDegree arcDegreeCustom rotate panStyle showRulerMark rulerMarkFormat".split(" ")),f=a.createCard(p.get("dialPointer","\u6307\u9488"),["pointerLabel","pointerName","pointerNumberFormat","dataEmptyInstead"]),m=a.createCard(p.get("animation","\u52a8\u753b"),["animation"]);l.append(n.createJqUi());l.append(f.createJqUi());l.append(m.createJqUi())};this.protectedCreateEditItem=function(l,n){switch(l){case "sections":l=p.get("dialSection","\u5206\u6bb5");var f=new ma;f.bindModelContext(a.getMeta,
n.createSection);a.initEditItem(f,l,Xa.KEY_SECTIONS,n.getSections,n.setSections);break;case "arcDegree":l=p.get("dialArc","\u76d8\u9762\u5706\u5f27");f=[240,180];f=a.createSelectableEditItem(f,function(m,h,r){m=180==r?p.get("dialArcSemiCircle","\u534a\u5706"):240==r?p.get("dialArcQuasiCircle","\u51c6\u5706"):"";h.text(m)});a.initEditItem(f,l,Xa.KEY_ARC_DEGREE,n.getArcDegree,n.setArcDegree);break;case "arcDegreeCustom":l="\u81ea\u5b9a\u4e49\u5ea6\u6570";f=a.createNumberEditItem(0,360,10);a.initEditItem(f,
l,Xa.KEY_ARC_DEGREE,n.getArcDegree,n.setArcDegree);a.syncEditItemVisible(f,!1);break;case "rotate":l="\u65cb\u8f6c";f=a.createNumberEditItem(-180,180,10);a.initEditItem(f,l,Xa.KEY_ROTATE_DEGREE,n.getRotateDegree,n.setRotateDegree);a.syncEditItemVisible(f,!1);break;case "panStyle":l=p.get("dialPanStyle","\u76d8\u9762\u98ce\u683c");f=[Xa.PAN_STYLE_WITH_TRACK,Xa.PAN_STYLE_ONLY_MARK];f=a.createSelectableEditItem(f,function(m,h,r){m=r==Xa.PAN_STYLE_ONLY_MARK?p.get("dialPanStyleMark","\u523b\u5ea6\u578b"):
r==Xa.PAN_STYLE_WITH_TRACK?p.get("dialPanStyleTrack","\u8272\u5757\u578b"):"";h.text(m)});a.initEditItem(f,l,Xa.KEY_PAN_STYLE,n.getPanStyle,n.setPanStyle);break;case "showRulerMark":l=p.get("dialRulerMark","\u523b\u5ea6\u503c");f=a.createBooleanEditItem();a.initEditItem(f,l,Xa.KEY_SHOW_RULER_MARK_LABEL,n.isShowRulerMarkLabel,n.setShowRulerMarkLabel);break;case "rulerMarkFormat":l=p.get("dialRulerMarkFormat","\u523b\u5ea6\u503c\u683c\u5f0f");f=p.get("numberFormatFollowField","\u8ddf\u968f\u5ea6\u91cf\u5b57\u6bb5");
f=a.createNumberFormatEditItem(f);a.initEditItem(f,l,Xa.KEY_RULER_MARK_FORMAT,n.getRulerMarkLabelFormat,n.setRulerMarkLabelFormat);f.addCareForBrotherListener(function(m,h,r){h==Xa.KEY_SHOW_RULER_MARK_LABEL&&a.syncEditItemVisible(m,n.isShowRulerMarkLabel())});a.syncEditItemVisible(f,n.isShowRulerMarkLabel());break;case "pointerLabel":l=p.get("showDataLabelAs","\u6807\u7b7e\u663e\u793a");f=[[!0,!1,!1],[!1,!0,!1],[!1,!1,!0],[!1,!0,!0],[!0,!1,!0],[!0,!0,!1]];f=a.createSelectableEditItem(f,function(m,
h,r){m="";r&&(r[2]&&(m+=p.get("showDataLabelAsPercent","\u767e\u5206\u6bd4")),r[1]&&m.length&&(m+="+"),r[1]&&(m+=p.get("showDataLabelAsNumber","\u6570\u503c")),r[0]&&m.length&&(m+="+"),r[0]&&(m+=p.get("showDataLabelAsName","\u540d\u79f0")));h.text(m)},function(m,h){return m&&h&&m[0]==h[0]&&m[1]==h[1]&&m[2]==h[2]});a.initEditItem(f,l,Xa.KEY_SHOW_POINTER_LABEL,n.getShowPointerLabel,n.setShowPointerLabel);break;case "pointerName":l=p.get("dialPointerName","\u540d\u79f0");f=a.createTextEditItem();a.initEditItem(f,
l,Xa.KEY_POINTER_NAME,n.getPointerName,n.setPointerName);f.addCareForBrotherListener(function(m,h,r){h==Xa.KEY_SHOW_POINTER_LABEL&&a.syncEditItemVisible(m,n.isShowPointerName())});a.syncEditItemVisible(f,n.isShowPointerName());break;case "pointerNumberFormat":l=p.get("numberFormat","\u6570\u5b57\u683c\u5f0f");f=p.get("numberFormatFollowField","\u8ddf\u968f\u5ea6\u91cf\u5b57\u6bb5");f=a.createNumberFormatEditItem(f);a.initEditItem(f,l,Xa.KEY_POINTER_NUMBER_FORMAT,n.getPointerNumberFormat,n.setPointerNumberFormat);
f.addCareForBrotherListener(function(m,h,r){h==Xa.KEY_SHOW_POINTER_LABEL&&a.syncEditItemVisible(m,n.isShowPointerNumber())});a.syncEditItemVisible(f,n.isShowPointerNumber());break;case "dataEmptyInstead":l=p.get("dataEmptyInstead","\u65e0\u6570\u636e\u65f6\u663e\u793a"),f=a.createFloatNumberEditItem(),a.initEditItem(f,l,Xa.KEY_DATA_EMPTY_INSTEAD,n.getDataEmptyInstead,n.setDataEmptyInstead)}return f}};ka.RectTreeChartPropertyPane=function(){Ya.call(this);Lb.call(this);var a=this.protectedMethod;this.protectedInitUi=
function(l){var n=a.createCard(p.get("plotArea","\u7ed8\u56fe\u533a"),["showLabel","discreteColor","continuousColor"]),f=a.createCard(p.get("legend","\u56fe\u4f8b"),["showLegend","legendFormat"]),m=a.createCard(p.get("data","\u6570\u636e"),["ignoreNegative"]);l.append(n.createJqUi());l.append(f.createJqUi());l.append(m.createJqUi())};this.protectedCreateEditItem=function(l,n){return a.createEditItemWithMixColorMode(l,n)};this.protectedGetColorFieldSet=function(){return a.getSquareModel().getChart().getColorSet()};
this.protectedGetColorFieldSetForPalette=function(){return a.getSquareModel().getChart().getColorSet()}};ka.SunburstChartPropertyPane=function(){Ya.call(this);Mb.call(this);var a=this.protectedMethod;this.protectedInitUi=function(l){var n=a.createCard(p.get("plotArea","\u7ed8\u56fe\u533a"),["showLabel","palette"]),f=a.createCard(p.get("legend","\u56fe\u4f8b"),["showLegend","legendOrderMode"]),m=a.createCard(p.get("data","\u6570\u636e"),["ignoreNegative"]);l.append(n.createJqUi());l.append(f.createJqUi());
l.append(m.createJqUi())};this.protectedGetColorFieldSetForPalette=function(){return a.getSquareModel().getChart().getDimensionSet()}};var p,ra,ea,Ca,U,E,u,g,d,e,c,b,q,t,w,x,A,N,ba,ca,M,ia,sa,mb,Wa,xb,gb,fb,Da,Y,z,D,I,P,O,R,Z,G,J,ja,Q,T,za,da,Aa,Za,sb,Ab,xa,Ra,kb,Db,Ub,$b,Cb,Nb,ac,cc,na,Fa,Qa,Ua,Ka,Xa,db,ub,Ob,Zb,Fb,ob,qa;(function(){var a=com.kingdee.bos.qing.framework.common;p=a.MultilanguageManager.createPackageAccessor(ka);a=com.kingdee.bos.qing.common;ra=a.DomUtil;a=com.kingdee.bos.qing.ui.component;
ea=a.TextField;Ca=a.CheckBox;U=a.ComboBox;E=a.AbstractModalDialog;u=a.F7Selector;g=a.SimpleConfirmer;d=a.ComboColor;e=a.ColorChooser;c=a.Spinner;b=a.Label;q=a.TextArea;t=a.RadioButton;w=a.RadioButtonGroup;x=a.WorkButton;A=a.MessageDialog;N=a.TitleContainer;ba=a.Dialog;ca=a.LeftTabContainer;a=com.kingdee.bos.qing.common.ui;M=a.NumberFormatModel;ia=a.NumberFormatSettingPanel;sa=a.NumberFormatSample;mb=a.TableUtil;Wa=a.CommonIconUtil;xb=a.ColorSelector;gb=a.ColorWithOpacitySelector;fb=a.BlinkHelper;
a=com.kingdee.bos.qing.core.commonui;Da=a.MetaFieldSelector;a=com.kingdee.bos.qing.core;Y=a.LinkageRegister;z=a.MapLibraryRegister;a=com.kingdee.bos.qing.core.model;D=a.Meta;I=a.MetaField;P=a.AbstractAnalyticalField;O=a.Palette;R=a.DiscreteColor;Z=a.LinkTargets;G=a.AbstractFilterPreparedModel;a=com.kingdee.bos.qing.core.controller;J=a.ActionChangeProperty;a=com.kingdee.bos.qing.core.ui;ja=a.ReflinesPanel;Q=a.AbstractEditableItemsPanel;T=a.PaletteSettingPanel;za=a.PaletteMappingSettingPanel;da=a.ContinuousColorSettingDialog;
a=com.kingdee.bos.qing.square.model;Aa=a.SquareModel;Za=a.ItemModelSet;sb=a.TooltipsAutoDisplay;Ab=a.SortAccording;xa=a.KPICustomStyles;Ra=a.AbstractChartProperty;kb=a.AbstractPieChartProperty;Db=a.AbstractLineChartProperty;Ub=a.RingChartProperty;$b=a.RoseChartProperty;Cb=a.XSYNChartProperty;Nb=a.YSXNChartProperty;ac=a.LineChartProperty;cc=a.KPIChartProperty;na=a.MapChartProperty;Fa=a.GISChartProperty;Qa=a.RadarChartProperty;Ua=a.AbstractProgressChartProperty;Ka=a.ProgressCircleChartProperty;Xa=a.DialChartProperty;
db=a.CompositeChartProperty;ub=a.AbstractListChartProperty;Ob=a.GridChartProperty;Zb=a.CustomListChartProperty;Fb=a.WaterfallChartProperty;ob=a.FunnelChartProperty;qa=a.ScatterChartProperty})();nb.DEFAULT_WHITE="white";nb.DEFAULT_DARK="darkBlue";nb.DEFAULT_GOLD="gold";nb.DEFAULT_CYAN="cyan"})();(function(){function Ya(){var V=this,K,X,ya;this.isReleased=function(){return!0};this.getName=function(){return K};this.getText=function(){return X};this.getIconFileName=function(){return ya};this.createFieldCards=function(oa,Pa){throw Error("Override me.");};this.smartCreateSquareFieldFromMetaField=function(oa,Pa){return null};this.createPropertyPane=function(){throw Error("Override me.");};this.willTransform=function(oa){var Pa=new pb;V.protectedWillTransformImpl(oa,Pa);Pa.collectRoll(oa.getRollSet());
Pa.collectOthers(oa.getGarbageFields());return Pa};this.protectedWillTransformImpl=function(oa,Pa){throw Error("Override me.");};this.transform=function(oa){var Pa=[];oa.popRollField(Pa);var yb=V.protectedTransformImpl(oa);oa.setupItemModelSet(yb.getRollSet(),Pa);yb.setGarbageFields(oa.recycle());return yb};this.protectedTransformImpl=function(){throw Error("Override me.");};this.parseJsonChartModel=function(oa){oa=O.createFromJson(oa);var Pa=oa.getCategories();return Pa&&0!=Pa.length?oa:null};this.createChartCtrl=
function(oa,Pa){Pa=V.protectedCreateChartCtrlImpl(oa,Pa);Pa.setModel(oa);return Pa};this.protectedCreateChartCtrlImpl=function(oa,Pa){throw Error("Override me.");};this.transformToDrillTarget=function(oa,Pa){return 0<=oa?new function(yb){this.getValue=function(){return yb.getExecutableValue()};this.getText=function(){return yb.getLabel()};this.isAsParent=function(){return yb.isAsParent()}}(Pa.getModel().getCategories()[oa]):null};this.transformToJumpTarget=function(oa,Pa,yb){return 0<=oa?(oa=Pa.getModel().getCategories()[oa],
Pa=null,yb.isRollInSupported()&&(Pa=yb.lookupRolledInField(yb.getRollInState().getCurrentRollInFieldCount())),new function(Pb,Hb){this.getItemCount=function(){return Pb?1:0};this.getField=function(Tb){return Pb};this.getMember=function(Tb){return Hb}}(Pa,oa.getExecutableValue())):null};this.customLoading=function(oa,Pa,yb,Pb){Pb()};this.protectedMethod={setName:function(oa){K=oa},setText:function(oa){X=oa},setIconFileName:function(oa){ya=oa}}}function Lb(){this.select=function(V,K){0>V?K.getSelectionModel().deselectCategories():
(V=K.getModel().getCategories()[V],K.getSelectionModel().toggleSelectCategory(V))};this.isSelected=function(V,K){if(0>V)return!1;V=K.getModel().getCategories()[V];return K.getSelectionModel().isSelected(V,null)}}function wb(){this.select=function(V,K){"string"==typeof V?K.getSelectionModel().toggleSelect(V):K.getSelectionModel().deselect()};this.isSelected=function(V,K){return"string"==typeof V?K.getSelectionModel().isSelected(V):!1}}function eb(){this.select=function(V,K){0>V?K.getSelectionModel().deselect():
(V=K.getModel().getRow(V),K.getSelectionModel().toggleSelect(V))};this.isSelected=function(V,K){if(0>V)return!1;V=K.getModel().getRow(V);return K.getSelectionModel().isSelected(V)}}function pb(){var V=this,K=[],X=[],ya=[],oa=[],Pa=[],yb=[],Pb=[],Hb=[],Tb=[],hc=[],oc=function(vb,Wb){for(var bc=0,dc=vb.getItemModelCount();bc<dc;bc++)Wb.push(vb.goodbyeItemModel(bc))},Rb=function(vb,Wb,bc,dc){for(var jc=0;jc<vb.length&&!(dc&&bc.length>=dc);){var ic=vb[jc];Wb&&ic.isDimension()||!Wb&&ic.isMeasure()?(bc.push(ic),
vb.splice(jc,1)):jc++}};this.getRemainDimensionCount=function(){var vb=0,Wb=function(bc){for(var dc=0;dc<bc.length;dc++)bc[dc].isDimension()&&vb++};Wb(K);Wb(X);Wb(ya);Wb(oa);Wb(Pa);Wb(yb);Wb(Pb);Wb(Hb);Wb(Tb);Wb(hc);return vb};this.collectXAxis=function(vb){oc(vb,K)};this.popXAxisDimension=function(vb,Wb){Rb(K,!0,vb,Wb)};this.popXAxisMeasure=function(vb,Wb){Rb(K,!1,vb,Wb)};this.collectYAxis=function(vb){oc(vb,X)};this.popYAxisDimension=function(vb,Wb){Rb(X,!0,vb,Wb)};this.popYAxisMeasure=function(vb,
Wb){Rb(X,!1,vb,Wb)};this.collectSeries=function(vb){oc(vb,ya)};this.popSeriesDimension=function(vb,Wb){Rb(ya,!0,vb,Wb)};this.popSeriesMeasure=function(vb,Wb){Rb(ya,!1,vb,Wb)};this.collectColorField=function(vb){oc(vb,oa)};this.popDiscreteColorField=function(vb,Wb){Rb(oa,!0,vb,Wb);Rb(ya,!0,vb,Wb)};this.popGradualColorField=function(vb,Wb){Rb(oa,!1,vb,Wb)};this.collectSizeField=function(vb){oc(vb,Pa)};this.popSizeField=function(vb,Wb){Rb(Pa,!1,vb,Wb)};this.collectAngleField=function(vb){oc(vb,yb)};
this.popAngleField=function(vb,Wb){Rb(yb,!1,vb,Wb)};this.collectRoll=function(vb){oc(vb,Pb)};this.popRollField=function(vb){Rb(Pb,!0,vb)};this.collectInformationField=function(vb){oc(vb,Hb)};this.popInformationField=function(vb){Rb(Hb,!0,vb);Rb(Hb,!1,vb)};this.popAnyDimension=function(vb,Wb){Rb(K,!0,vb,Wb);Rb(X,!0,vb,Wb);Rb(ya,!0,vb,Wb);V.popDiscreteColorField(vb,Wb);Rb(Pb,!0,vb,Wb);Rb(Hb,!0,vb,Wb);Rb(Tb,!0,vb,Wb);Rb(hc,!0,vb,Wb)};this.popAnyMeasure=function(vb,Wb){Rb(K,!1,vb,Wb);Rb(X,!1,vb,Wb);Rb(ya,
!1,vb,Wb);V.popGradualColorField(vb,Wb);V.popSizeField(vb,Wb);V.popAngleField(vb,Wb);Rb(Pb,!1,vb,Wb);Rb(Hb,!1,vb,Wb);Rb(Tb,!1,vb,Wb);Rb(hc,!1,vb,Wb)};this.collectOthers=function(vb){vb&&0<vb.length&&(Tb=Tb.concat(vb))};this.collectNewSelecteds=function(vb){vb&&0<vb.length&&(hc=hc.concat(vb))};this.recycle=function(){var vb=[];vb=vb.concat(K);vb=vb.concat(X);vb=vb.concat(ya);vb=vb.concat(oa);vb=vb.concat(Pa);vb=vb.concat(yb);vb=vb.concat(Pb);vb=vb.concat(Hb);return vb=vb.concat(Tb)};this.setupItemModelSet=
function(vb,Wb){for(var bc=0;bc<Wb.length;bc++)vb.addItemModel(Wb[bc])}}function zb(){Ya.call(this);var V=this;this.createFieldCards=function(K,X){var ya=new K;ya.setTitle(p.get("xAxis","\u6a2a\u8f74"));ya.setItemModelSet(X.getXAxis());ya.setOperatingPrompt(p.get("dragTextFieldHere","\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));var oa=new K;oa.setTitle(p.get("yAxis","\u7eb5\u8f74"));oa.setItemModelSet(X.getYAxis());oa.setOperatingPrompt(p.get("dragNumberFieldHere","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));
var Pa=new K;Pa.setTitle(p.get("series","\u7cfb\u5217"));Pa.setItemModelSet(X.getSeries());Pa.setOperatingPrompt(p.get("tryDragTextFieldHere","\u5c1d\u8bd5\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));K=new K;K.setTitle(p.get("roll","\u94bb\u53d6\u5230"));K.setItemModelSet(X.getRollSet());K.setOperatingPrompt(p.get("tryDragTextFieldHere","\u5c1d\u8bd5\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));return[ya,oa,Pa,K]};this.protectedWillTransformImpl=function(K,X){X.collectXAxis(K.getXAxis());
X.collectYAxis(K.getYAxis());X.collectSeries(K.getSeries())};this.protectedTransformImpl=function(K){var X=[],ya=[],oa=[];K.popYAxisMeasure(ya);K.popXAxisDimension(X,1);K.popSeriesDimension(oa,1);K.popAnyMeasure(ya);1!=K.getRemainDimensionCount()&&1>oa.length&&K.popDiscreteColorField(oa,1);1>X.length&&K.popAnyDimension(X,1);1>oa.length&&K.popAnyDimension(oa,1);var Pa=V.protectedCreateChartModelImpl();K.setupItemModelSet(Pa.getXAxis(),X);K.setupItemModelSet(Pa.getYAxis(),ya);K.setupItemModelSet(Pa.getSeries(),
oa);return Pa};this.protectedCreateChartModelImpl=function(){throw Error("Override me");}}function Yb(){Ya.call(this);var V=this;this.createFieldCards=function(K,X){var ya=new K;ya.setTitle(p.get("xAxis","\u6a2a\u8f74"));ya.setItemModelSet(X.getXAxis());ya.setOperatingPrompt(p.get("dragNumberFieldHere","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));var oa=new K;oa.setTitle(p.get("yAxis","\u7eb5\u8f74"));oa.setItemModelSet(X.getYAxis());oa.setOperatingPrompt(p.get("dragTextFieldHere",
"\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));var Pa=new K;Pa.setTitle(p.get("series","\u7cfb\u5217"));Pa.setItemModelSet(X.getSeries());Pa.setOperatingPrompt(p.get("tryDragTextFieldHere","\u5c1d\u8bd5\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));K=new K;K.setTitle(p.get("roll","\u94bb\u53d6\u5230"));K.setItemModelSet(X.getRollSet());K.setOperatingPrompt(p.get("tryDragTextFieldHere","\u5c1d\u8bd5\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));return[ya,
oa,Pa,K]};this.protectedWillTransformImpl=function(K,X){X.collectXAxis(K.getXAxis());X.collectYAxis(K.getYAxis());X.collectSeries(K.getSeries())};this.protectedTransformImpl=function(K){var X=[],ya=[],oa=[];K.popXAxisMeasure(X);K.popYAxisDimension(ya,1);K.popSeriesDimension(oa,1);K.popAnyMeasure(X);1!=K.getRemainDimensionCount()&&1>oa.length&&K.popDiscreteColorField(oa,1);1>ya.length&&K.popAnyDimension(ya,1);1>oa.length&&K.popAnyDimension(oa,1);var Pa=V.protectedCreateChartModelImpl();K.setupItemModelSet(Pa.getXAxis(),
X);K.setupItemModelSet(Pa.getYAxis(),ya);K.setupItemModelSet(Pa.getSeries(),oa);return Pa};this.protectedCreateChartModelImpl=function(){throw Error("Override me");}}function Mb(){zb.call(this);Lb.call(this);var V=this.protectedMethod;V.setName(Ca.ChartType_Column);V.setIconFileName("chart_msbar");V.setText(p.get("chartColumn","\u591a\u7cfb\u5217\u67f1\u5f62\u56fe"));this.createPropertyPane=function(){return new db};this.protectedCreateChartModelImpl=function(){return new c};this.protectedCreateChartCtrlImpl=
function(K,X){return new ja}}function S(){zb.call(this);Lb.call(this);var V=this.protectedMethod;V.setName(Ca.ChartType_StackedColumn);V.setIconFileName("chart_stackbar");V.setText(p.get("chartStackColumn","\u5806\u79ef\u67f1\u5f62\u56fe"));var K=this.createFieldCards;this.createFieldCards=function(X,ya){X=K(X,ya);X[2].setTitle(p.get("stack","\u5806\u79ef"));return X};this.createPropertyPane=function(){return new Ob};this.protectedCreateChartModelImpl=function(){return new b};this.protectedCreateChartCtrlImpl=
function(X,ya){return new T}}function Ma(){zb.call(this);Lb.call(this);var V=this.protectedMethod;V.setName(Ca.ChartType_PercentStackedColumn);V.setIconFileName("chart_percentbar");V.setText(p.get("chartPercentStackColumn","\u767e\u5206\u6bd4\u5806\u79ef\u67f1\u5f62\u56fe"));var K=this.createFieldCards;this.createFieldCards=function(X,ya){X=K(X,ya);X[2].setTitle(p.get("stack","\u5806\u79ef"));return X};this.createPropertyPane=function(){return new Zb};this.protectedCreateChartModelImpl=function(){return new q};
this.protectedCreateChartCtrlImpl=function(X,ya){return new za}}function Ja(){Yb.call(this);Lb.call(this);var V=this.protectedMethod;V.setName(Ca.ChartType_Bar);V.setIconFileName("chart_horizontalmsbar");V.setText(p.get("chartBar","\u591a\u7cfb\u5217\u6761\u5f62\u56fe"));this.createPropertyPane=function(){return new ub};this.protectedCreateChartModelImpl=function(){return new t};this.protectedCreateChartCtrlImpl=function(K,X){return new Q}}function ua(){Yb.call(this);Lb.call(this);var V=this.protectedMethod;
V.setName(Ca.ChartType_StackedBar);V.setIconFileName("chart_horizontalstackbar");V.setText(p.get("chartStackBar","\u5806\u79ef\u6761\u5f62\u56fe"));var K=this.createFieldCards;this.createFieldCards=function(X,ya){X=K(X,ya);X[2].setTitle(p.get("stack","\u5806\u79ef"));return X};this.createPropertyPane=function(){return new Fb};this.protectedCreateChartModelImpl=function(){return new w};this.protectedCreateChartCtrlImpl=function(X,ya){return new da}}function W(){Yb.call(this);Lb.call(this);var V=this.protectedMethod;
V.setName(Ca.ChartType_PercentStackedBar);V.setIconFileName("chart_horizontalpercentbar");V.setText(p.get("chartPercentStackBar","\u767e\u5206\u6bd4\u5806\u79ef\u6761\u5f62\u56fe"));var K=this.createFieldCards;this.createFieldCards=function(X,ya){X=K(X,ya);X[2].setTitle(p.get("stack","\u5806\u79ef"));return X};this.createPropertyPane=function(){return new ob};this.protectedCreateChartModelImpl=function(){return new x};this.protectedCreateChartCtrlImpl=function(X,ya){return new Aa}}function fa(){zb.call(this);
var V=this.protectedMethod;V.setName(Ca.ChartType_Line);V.setIconFileName("chart_mline");V.setText(p.get("chartLine","\u6298\u7ebf\u56fe"));var K=this.createFieldCards;this.createFieldCards=function(X,ya){X=K(X,ya);X[0].setOperatingPrompt(p.get("dragDateFieldHere","\u5c06\u65e5\u671f\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));X[3].setOperatingPrompt(p.get("tryDragDateFieldHere","\u5c1d\u8bd5\u5c06\u65e5\u671f\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));return X};this.createPropertyPane=function(){return new qa};
this.protectedCreateChartModelImpl=function(){return new A};this.protectedCreateChartCtrlImpl=function(X,ya){return new Za}}function Ea(){zb.call(this);var V=this.protectedMethod;V.setName(Ca.ChartType_Area);V.setIconFileName("chart_area");V.setText(p.get("chartArea","\u9762\u79ef\u56fe"));var K=this.createFieldCards;this.createFieldCards=function(X,ya){X=K(X,ya);X[0].setOperatingPrompt(p.get("dragDateFieldHere","\u5c06\u65e5\u671f\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));X[3].setOperatingPrompt(p.get("tryDragDateFieldHere",
"\u5c1d\u8bd5\u5c06\u65e5\u671f\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));return X};this.createPropertyPane=function(){return new a};this.protectedCreateChartModelImpl=function(){return new N};this.protectedCreateChartCtrlImpl=function(X,ya){return new sb}}function Va(){Ea.call(this);var V=this.protectedMethod;V.setName(Ca.ChartType_PercentArea);V.setIconFileName("chart_percentarea");V.setText(p.get("chartPercentArea","\u767e\u5206\u6bd4\u9762\u79ef\u56fe"));this.createPropertyPane=function(){return new Zb};
this.protectedCreateChartModelImpl=function(){return new ba};this.protectedCreateChartCtrlImpl=function(K,X){return new Ab}}function Oa(){Ya.call(this);Lb.call(this);var V=this;this.createFieldCards=function(K,X){var ya=new K;ya.setItemModelSet(X.getAngleSet());ya.setOperatingPrompt(p.get("dragNumberFieldHere","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));var oa=new K;oa.setTitle(p.get("color","\u989c\u8272"));oa.setItemModelSet(X.getColorSet());oa.setOperatingPrompt(p.get("dragTextFieldHere",
"\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));K=new K;K.setTitle(p.get("roll","\u94bb\u53d6\u5230"));K.setItemModelSet(X.getRollSet());K.setOperatingPrompt(p.get("tryDragTextFieldHere","\u5c1d\u8bd5\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));V.protectedInitFieldCards(ya,oa,K);return[ya,oa,K]};this.protectedInitFieldCards=function(K,X,ya){K.setTitle(p.get("angle","\u89d2\u5ea6"))};this.protectedWillTransformImpl=function(K,X){X.collectAngleField(K.getAngleSet());
X.collectColorField(K.getColorSet())};this.protectedTransformImpl=function(K){var X=[],ya=[];K.popAngleField(X,1);K.popDiscreteColorField(ya,1);1>X.length&&K.popAnyMeasure(X,1);1>ya.length&&K.popAnyDimension(ya,1);var oa=V.protectedCreateModel();K.setupItemModelSet(oa.getAngleSet(),X);K.setupItemModelSet(oa.getColorSet(),ya);return oa};this.protectedCreateModel=function(){throw Error("Override");};this.protectedCreateChartCtrlImpl=function(K,X){return new J}}function wa(){Oa.call(this);var V=this.protectedMethod;
V.setName(Ca.ChartType_Pie);V.setIconFileName("chart_pie");V.setText(p.get("chartPie","\u997c\u56fe"));this.createPropertyPane=function(){return new l};this.protectedCreateModel=function(){return new g}}function Ga(){Oa.call(this);var V=this.protectedMethod;V.setName(Ca.ChartType_Ring);V.setIconFileName("chart_ring");V.setText(p.get("chartRing","\u73af\u5f62\u56fe"));this.createPropertyPane=function(){return new n};this.protectedCreateModel=function(){return new d}}function Ia(){Oa.call(this);var V=
this.protectedMethod;V.setName(Ca.ChartType_Rose);V.setIconFileName("chart_rose");V.setText(p.get("chartRose","\u73ab\u7470\u56fe"));this.protectedInitFieldCards=function(K,X,ya){K.setTitle(p.get("radius","\u534a\u5f84"))};this.createPropertyPane=function(){return new f};this.protectedCreateModel=function(){return new e}}function hb(){Ya.call(this);var V=this.protectedMethod;V.setName(Ca.ChartType_KPI);V.setIconFileName("chart_kpi");V.setText(p.get("chartKpi","\u4e1a\u52a1\u6307\u6807"));this.createFieldCards=
function(K,X){var ya=new K;ya.setTitle(p.get("primaryKpi","\u4e3b\u6307\u6807"));ya.setItemModelSet(X.getPrimarySet());ya.setOperatingPrompt(p.get("dragNumberFieldHere","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));K=new K;K.setTitle(p.get("secondaryKpi","\u526f\u6307\u6807"));K.setItemModelSet(X.getSecondarySet());K.setOperatingPrompt(p.get("dragNumberFieldHere","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));return[ya,K]};this.createPropertyPane=function(){return new m};
this.protectedWillTransformImpl=function(K,X){X.collectXAxis(K.getPrimarySet());X.collectXAxis(K.getSecondarySet())};this.protectedTransformImpl=function(K){var X=[],ya=[];K.popAnyMeasure(X,1);K.popAnyMeasure(ya);var oa=new u;K.setupItemModelSet(oa.getPrimarySet(),X);K.setupItemModelSet(oa.getSecondarySet(),ya);return oa};this.protectedCreateChartCtrlImpl=function(K,X){K=new G;K.setClickableChecker(function(){return X.getChartProperty().getLinkTargets()?!0:!1});return K}}function ib(){Ya.call(this);
wb.call(this);var V=this.protectedMethod;V.setName(Ca.ChartType_Map);V.setIconFileName("chart_map");V.setText(p.get("chartMap","\u5730\u56fe"));this.createFieldCards=function(X,ya){var oa=new X;oa.setTitle(p.get("dimensionForMap","\u5730\u57df"));oa.setItemModelSet(ya.getDimensionSet());oa.setOperatingPrompt(p.get("dragGeographicFieldHere","\u5c06\u8868\u793a\u5730\u57df\u7684\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));oa.setPerfectHeight(100);var Pa=new X;Pa.setTitle(p.get("measureForMap","\u6570\u503c\uff08\u989c\u8272\uff09"));
Pa.setItemModelSet(ya.getMeasureSet());Pa.setOperatingPrompt(p.get("dragNumberFieldHere","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));Pa.setPerfectHeight(100);X=new X;X.setTitle(p.get("infomation","\u8be6\u7ec6\u4fe1\u606f"));X.setItemModelSet(ya.getInfomationSet());X.setPerfectHeight(180);return[oa,Pa,X]};this.createPropertyPane=function(){return new h};this.protectedWillTransformImpl=function(X,ya){ya.collectXAxis(X.getDimensionSet());ya.collectColorField(X.getMeasureSet());
ya.collectInformationField(X.getInfomationSet())};this.protectedTransformImpl=function(X){var ya=[],oa=[];X.popAnyDimension(ya,1);X.popAnyMeasure(oa,1);var Pa=[];X.popAnyDimension(Pa);X.popAnyMeasure(Pa);var yb=new ca;X.setupItemModelSet(yb.getDimensionSet(),ya);X.setupItemModelSet(yb.getMeasureSet(),oa);X.setupItemModelSet(yb.getInfomationSet(),Pa);return yb};this.protectedCreateChartCtrlImpl=function(X,ya){return new xa};this.transformToDrillTarget=function(X,ya){return"string"==typeof X?new function(oa){this.getValue=
function(){return oa};this.getText=function(){return oa};this.isAsParent=function(){return!1}}(X):null};this.transformToJumpTarget=function(X,ya,oa){return null};this.customLoading=function(X,ya,oa,Pa){var yb=X.getChartProperty();X=function(Pb,Hb,Tb){return function(){Pb.rtTemplateToRenderAttr(Hb);Tb()}}(yb,oa.getAttr(),Pa);yb.askRtTemplateNeedReload(X)?(yb.rtTemplateLoaded(null),(Pa=yb.getOutsideReference())?(ya=ya(function(Pb){yb.rtTemplateLoaded(Pb)},function(Pb,Hb){var Tb={};Tb.content=K(Pb+" "+
Hb);yb.rtTemplateLoaded(Tb);return!0}),ya.setShowBlocking(!1),ya.loadMapTemplate(Pa)):(ya={},ya.content=K(p.get("chartmapTemplateNeeded","\u672a\u8bbe\u7f6e\u5730\u56fe\u6a21\u677f\u3002")),yb.rtTemplateLoaded(ya))):yb.askRtTemplateLoading(X)||Pa()};var K=function(X){var ya=$("<div>"),oa=$("<div>");oa.css("color","#ccc");oa.text(X);oa.appendTo(ya);return ya.html()}}function nb(){Ya.call(this);wb.call(this);var V=this.protectedMethod;V.setName(Ca.ChartType_GIS);V.setIconFileName("chart_gis");V.setText(p.get("chartGis",
"GIS\u5730\u56fe"));this.createFieldCards=function(X,ya){var oa=K(X,ya.getCoordinateSet(),p.get("longitudeLatitude","\u7ecf\u7eac\u5ea6"),p.get("dragLongitudeLatitudeFieldHere","\u5c06\u8868\u793a\u7ecf\u5ea6\u548c\u7eac\u5ea6\u7684\u4e24\u4e2a\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));oa.setPerfectHeight(100);var Pa=K(X,ya.getCaptionSet(),p.get("caption","\u540d\u79f0"),p.get("tryDragTextFieldHere","\u5c1d\u8bd5\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002")),yb=K(X,ya.getColorSet(),
p.get("color","\u989c\u8272"),p.get("tryDragTextFieldHere","\u5c1d\u8bd5\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002")),Pb=K(X,ya.getSizeSet(),p.get("size","\u5927\u5c0f"),p.get("tryDragNumberFieldHere","\u5c1d\u8bd5\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));X=K(X,ya.getInfomationSet(),p.get("infomation","\u8be6\u7ec6\u4fe1\u606f"),null);X.setPerfectHeight(180);return[oa,Pa,yb,Pb,X]};var K=function(X,ya,oa,Pa){X=new X;X.setTitle(oa);X.setItemModelSet(ya);X.setOperatingPrompt(Pa);
X.setPerfectHeight(72);return X};this.smartCreateSquareFieldFromMetaField=function(X,ya,oa){return oa==ya.getCoordinateSet()&&X.getDataType()==ra.DT_NUMBER?(ya=new U,ya.setMetaField(X),ya.setRole(ea.ROLE_DIMENSION),ya.setContinuous(!1),ya):null};this.createPropertyPane=function(){return new r};this.protectedWillTransformImpl=function(X,ya){if(1<X.getCoordinateSet().getItemModelCount()){var oa=new E;oa.addItemModel(X.getCoordinateSet().goodbyeItemModel(1));ya.collectYAxis(oa)}0<X.getCoordinateSet().getItemModelCount()&&
(oa=new E,oa.addItemModel(X.getCoordinateSet().goodbyeItemModel(0)),ya.collectXAxis(oa));ya.collectSizeField(X.getSizeSet());ya.collectColorField(X.getColorSet());ya.collectInformationField(X.getCaptionSet());ya.collectInformationField(X.getInfomationSet())};this.protectedTransformImpl=function(X){var ya=[];X.popXAxisDimension(ya,1);X.popYAxisDimension(ya,1);2>ya.length&&X.popAnyDimension(ya,2);var oa=[];X.popDiscreteColorField(oa);var Pa=[];X.popSizeField(Pa);var yb=[];X.popAnyDimension(yb,1);var Pb=
[];X.popAnyDimension(Pb);X.popAnyMeasure(Pb);var Hb=new M;X.setupItemModelSet(Hb.getCoordinateSet(),ya);X.setupItemModelSet(Hb.getColorSet(),oa);X.setupItemModelSet(Hb.getSizeSet(),Pa);X.setupItemModelSet(Hb.getCaptionSet(),yb);X.setupItemModelSet(Hb.getInfomationSet(),Pb);return Hb};this.protectedCreateChartCtrlImpl=function(X,ya){X=new Ra;X.setDesigntimeInitializationChangedListener(function(oa,Pa,yb){ya.getChartProperty().setInitialContext(oa,Pa,yb)});return X};this.customLoading=function(X,ya,
oa,Pa){Xa.isServerConfigLoaded()?Pa():(X=ya(function(yb){Xa.setServerConfig(yb.host,yb.path);Pa()}),X.setShowBlocking(!1),X.getGisServerConfig())}}function bb(){Ya.call(this);var V=this.protectedMethod;V.setName(Ca.ChartType_Radar);V.setIconFileName("chart_radar");V.setText(p.get("chartRadar","\u96f7\u8fbe\u56fe"));this.protectedCreateChartCtrlImpl=function(K,X){return new kb};this.protectedWillTransformImpl=function(K,X){X.collectYAxis(K.getMeasureSet());X.collectXAxis(K.getDimensionSet())};this.protectedTransformImpl=
function(K){var X=[],ya=[];K.popAnyMeasure(ya);K.popAnyDimension(X,1<ya.length?1:2);var oa=new ia;K.setupItemModelSet(oa.getDimensionSet(),X);K.setupItemModelSet(oa.getMeasureSet(),ya);return oa};this.createFieldCards=function(K,X){var ya=new K;ya.setTitle(p.get("dimensionForRadar","\u7ef4\u5ea6"));ya.setItemModelSet(X.getDimensionSet());ya.setOperatingPrompt(p.get("dragTextFieldHere","\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));K=new K;K.setTitle(p.get("measureForRadar","\u5ea6\u91cf"));
K.setItemModelSet(X.getMeasureSet());K.setOperatingPrompt(p.get("dragNumberFieldHere","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));return[ya,K]};this.createPropertyPane=function(){return new k}}function la(){Ya.call(this);this.protectedCreateProgressFieldCards=function(V,K,X){var ya=[],oa=new V;oa.setTitle(p.get("desiredProgress","\u76ee\u6807\u503c"));oa.setItemModelSet(K.getDesired());oa.setOperatingPrompt(p.get("dragNumberFieldHere","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));
ya.push(oa);oa=new V;oa.setTitle(p.get("completedProgress","\u5b9e\u9645\u503c"));oa.setItemModelSet(K.getCompleted());oa.setOperatingPrompt(p.get("dragNumberFieldHere","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));ya.push(oa);if(X!=la.CIRCLE){switch(X){case la.BAR:var Pa=p.get("yAxis","\u7eb5\u8f74");break;case la.COLUMN:Pa=p.get("xAxis","\u6a2a\u8f74")}X=new V;X.setTitle(Pa);X.setItemModelSet(K.getDimension());X.setOperatingPrompt(p.get("dragTextFieldHere","\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));
ya.unshift(X);V=new V;V.setTitle(p.get("roll","\u94bb\u53d6\u5230"));V.setItemModelSet(K.getRollSet());V.setOperatingPrompt(p.get("tryDragTextFieldHere","\u5c1d\u8bd5\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));ya.push(V)}return ya};this.protectedWillTransformImpl=function(V,K){V instanceof Wa||K.collectXAxis(V.getDimension());K.collectYAxis(V.getDesired());K.collectYAxis(V.getCompleted())};this.protectedProgressTransformImpl=function(V,K){var X=K instanceof Wa,ya=[],oa=[],Pa=[];
!X&&V.popAnyDimension(ya,1);V.popAnyMeasure(oa,1);V.popAnyMeasure(Pa,1);!X&&V.setupItemModelSet(K.getDimension(),ya);V.setupItemModelSet(K.getDesired(),oa);V.setupItemModelSet(K.getCompleted(),Pa);return K}}function Jb(){la.call(this);Lb.call(this);var V=this.protectedMethod,K=this;V.setName(Ca.ChartType_ProgressBar);V.setIconFileName("chart_progresshbar");V.setText(p.get("chartProgressBar","\u6761\u5f62\u8fdb\u5ea6\u56fe"));this.protectedCreateChartCtrlImpl=function(X,ya){return new Db};this.createFieldCards=
function(X,ya){return K.protectedCreateProgressFieldCards(X,ya,la.BAR)};this.createPropertyPane=function(){return new v};this.protectedTransformImpl=function(X){return K.protectedProgressTransformImpl(X,new sa)}}function pa(){la.call(this);Lb.call(this);var V=this.protectedMethod,K=this;V.setName(Ca.ChartType_ProgressColumn);V.setIconFileName("chart_progressvbar");V.setText(p.get("chartProgressColumn","\u67f1\u5f62\u8fdb\u5ea6\u56fe"));this.protectedCreateChartCtrlImpl=function(X,ya){return new Ub};
this.createFieldCards=function(X,ya){return K.protectedCreateProgressFieldCards(X,ya,la.COLUMN)};this.createPropertyPane=function(){return new y};this.protectedTransformImpl=function(X){return K.protectedProgressTransformImpl(X,new mb)}}function Gb(){la.call(this);var V=this.protectedMethod,K=this;V.setName(Ca.ChartType_ProgressCircle);V.setIconFileName("chart_progresscircle");V.setText(p.get("chartProgressCircle","\u73af\u5f62\u8fdb\u5ea6\u56fe"));this.protectedCreateChartCtrlImpl=function(X,ya){return new $b};
this.createFieldCards=function(X,ya){return K.protectedCreateProgressFieldCards(X,ya,la.CIRCLE)};this.createPropertyPane=function(){return new L};this.protectedTransformImpl=function(X){return K.protectedProgressTransformImpl(X,new Wa)}}function Vb(){Ya.call(this);var V=this.protectedMethod;V.setName(Ca.ChartType_Dial);V.setIconFileName("chart_dial");V.setText(p.get("chartDial","\u4eea\u8868\u56fe"));this.protectedCreateChartCtrlImpl=function(K,X){return new Qa};this.protectedWillTransformImpl=function(K,
X){X.collectYAxis(K.getMeasureSet())};this.protectedTransformImpl=function(K){var X=[];K.popAnyMeasure(X,1);var ya=new D;K.setupItemModelSet(ya.getMeasureSet(),X);return ya};this.createFieldCards=function(K,X){K=new K;K.setTitle(p.get("pointerValue","\u6307\u9488\u503c"));K.setItemModelSet(X.getMeasureSet());K.setOperatingPrompt(p.get("dragNumberFieldHere","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));return[K]};this.createPropertyPane=function(){return new Ta}}function tb(){Ya.call(this);
Lb.call(this);var V=this.protectedMethod;V.setName(Ca.ChartType_Composite);V.setIconFileName("chart_composite");V.setText(p.get("chartComposite","\u7ec4\u5408\u56fe"));this.protectedCreateChartCtrlImpl=function(K,X){return new Cb};this.protectedWillTransformImpl=function(K,X){X.collectXAxis(K.getXAxis());X.collectYAxis(K.getLeftYAxis());X.collectYAxis(K.getRightYAxis());X.collectSeries(K.getLeftSeries());X.collectSeries(K.getRightSeries())};this.protectedTransformImpl=function(K){var X=new xb,ya=
[],oa=[],Pa=[];K.popYAxisMeasure(oa);K.popXAxisDimension(ya,1);K.popSeriesDimension(Pa,1);K.popAnyMeasure(oa);1!=K.getRemainDimensionCount()&&1>Pa.length&&K.popDiscreteColorField(Pa,1);1>ya.length&&K.popAnyDimension(ya,1);1>Pa.length&&K.popAnyDimension(Pa,1);K.setupItemModelSet(X.getXAxis(),ya);1<oa.length&&(ya=oa.slice(1),oa=[oa[0]],K.setupItemModelSet(X.getRightYAxis(),ya));K.setupItemModelSet(X.getLeftYAxis(),oa);K.setupItemModelSet(X.getLeftSeries(),Pa);return X};this.createFieldCards=function(K,
X){var ya=new K;ya.setTitle(p.get("xAxis","\u6a2a\u8f74"));ya.setItemModelSet(X.getXAxis());ya.setOperatingPrompt(p.get("dragTextFieldHere","\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));var oa=new K;oa.setTitle(p.get("leftYAxis","\u5de6\u8f74"));oa.setItemModelSet(X.getLeftYAxis());oa.setOperatingPrompt(p.get("dragNumberFieldHere","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));var Pa=new K;Pa.setTitle(p.get("leftSeries","\u7cfb\u5217\uff08\u5de6\uff09"));Pa.setItemModelSet(X.getLeftSeries());
Pa.setOperatingPrompt(p.get("tryDragTextFieldHere","\u5c1d\u8bd5\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));var yb=new K;yb.setTitle(p.get("rightYAxis","\u53f3\u8f74"));yb.setItemModelSet(X.getRightYAxis());yb.setOperatingPrompt(p.get("dragNumberFieldHere","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));var Pb=new K;Pb.setTitle(p.get("rightSeries","\u7cfb\u5217\uff08\u53f3\uff09"));Pb.setItemModelSet(X.getRightSeries());Pb.setOperatingPrompt(p.get("tryDragTextFieldHere",
"\u5c1d\u8bd5\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));K=new K;K.setTitle(p.get("roll","\u94bb\u53d6\u5230"));K.setItemModelSet(X.getRollSet());K.setOperatingPrompt(p.get("tryDragTextFieldHere","\u5c1d\u8bd5\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));return[ya,oa,Pa,yb,K]};this.createPropertyPane=function(){return new B}}function lb(){Ya.call(this);eb.call(this);this.transformToDrillTarget=function(V,K){return null};this.transformToJumpTarget=function(V,K,
X){if(0<=V){V=K.getModel().getRow(V).getLinkageKeywordValues();var ya=[];X.lookupAllItemModelSet(function(oa){oa=oa.getSquareField();oa.isDimension()&&!oa.isInvalid()&&ya.push(oa)});return new function(oa,Pa){this.getItemCount=function(){return oa.length};this.getField=function(yb){return oa[yb]};this.getMember=function(yb){return Pa[yb]}}(ya,V)}return null}}function Na(){lb.call(this);var V=this.protectedMethod;V.setName(Ca.ChartType_Grid);V.setIconFileName("chart_grid");V.setText(p.get("chartGrid",
"\u5217\u8868"));this.protectedCreateChartCtrlImpl=function(K,X){return new Nb};this.createFieldCards=function(K,X){K=new K;K.setTitle(p.get("gridColumnSet","\u5217"));K.setItemModelSet(X.getColumnSet());K.setOperatingPrompt(p.get("dragAnyFieldHere","\u5c06\u4efb\u610f\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));K.setPerfectHeight(180);return[K]};this.createPropertyPane=function(){return new F};this.protectedWillTransformImpl=function(K,X){X.collectXAxis(K.getColumnSet())};this.protectedTransformImpl=
function(K){var X=[],ya=[];K.popAnyMeasure(X);K.popAnyDimension(ya);var oa=new gb;K.setupItemModelSet(oa.getColumnSet(),ya.concat(X));return oa};this.parseJsonChartModel=function(K){K=R.createFromJson(K);return 0==K.getColumnCount()?null:K}}function $a(){lb.call(this);var V=this.protectedMethod;V.setName(Ca.ChartType_CustomList);V.setIconFileName("chart_customlist");V.setText(p.get("chartCustomList","\u81ea\u5b9a\u4e49\u5217\u8868"));this.protectedCreateChartCtrlImpl=function(K,X){return new ac};
this.createFieldCards=function(K,X){K=new K;K.setTitle(p.get("customListFieldSet","\u5b57\u6bb5"));K.setItemModelSet(X.getFieldSet());K.setOperatingPrompt(p.get("dragAnyFieldHere","\u5c06\u4efb\u610f\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));K.setPerfectHeight(180);return[K]};this.createPropertyPane=function(){return new H};this.protectedWillTransformImpl=function(K,X){X.collectXAxis(K.getFieldSet())};this.protectedTransformImpl=function(K){var X=[],ya=[];K.popAnyMeasure(X);K.popAnyDimension(ya);
var oa=new fb;K.setupItemModelSet(oa.getFieldSet(),ya.concat(X));return oa};this.parseJsonChartModel=function(K){return R.createFromJson(K)}}function La(){Ya.call(this);var V=this.protectedMethod;V.setName(Ca.ChartType_Waterfall);V.setIconFileName("chart_waterfall");V.setText(p.get("chartWaterfall","\u7011\u5e03\u56fe"));this.protectedCreateChartCtrlImpl=function(K,X){return new cc};this.createFieldCards=function(K,X){var ya=new K;ya.setTitle(p.get("waterfallMeasure","\u5ea6\u91cf"));ya.setItemModelSet(X.getMeasureSet());
ya.setOperatingPrompt(p.get("dragNumberFieldHere","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));var oa=new K;oa.setTitle(p.get("waterfallClause","\u6761\u76ee"));oa.setItemModelSet(X.getClauseSet());oa.setOperatingPrompt(p.get("dragTextFieldHere","\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));K=new K;K.setTitle(p.get("waterfallStage","\u9636\u6bb5"));K.setItemModelSet(X.getStageSet());K.setOperatingPrompt(p.get("tryDragTextFieldHere","\u5c1d\u8bd5\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));
return[ya,oa,K]};this.createPropertyPane=function(){return new C};this.protectedWillTransformImpl=function(K,X){X.collectYAxis(K.getMeasureSet());X.collectXAxis(K.getClauseSet());X.collectSeries(K.getStageSet())};this.protectedTransformImpl=function(K){var X=[],ya=[],oa=[];K.popAnyMeasure(X,1);K.popAnyDimension(ya,1);K.popAnyDimension(oa,1);var Pa=new Da;K.setupItemModelSet(Pa.getMeasureSet(),X);K.setupItemModelSet(Pa.getClauseSet(),ya);K.setupItemModelSet(Pa.getStageSet(),oa);return Pa}}function ab(){Ya.call(this);
Lb.call(this);var V=this.protectedMethod;V.setName(Ca.ChartType_Funnel);V.setIconFileName("chart_funnel");V.setText(p.get("chartFunnel","\u6f0f\u6597\u56fe"));this.protectedCreateChartCtrlImpl=function(K,X){return new na};this.createFieldCards=function(K,X){var ya=new K;ya.setTitle(p.get("measure","\u5ea6\u91cf"));ya.setItemModelSet(X.getMeasureSet());ya.setOperatingPrompt(p.get("dragNumberFieldHere","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));K=new K;K.setTitle(p.get("dimension",
"\u7ef4\u5ea6"));K.setItemModelSet(X.getDimensionSet());K.setOperatingPrompt(p.get("dragTextFieldHere","\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));return[K,ya]};this.createPropertyPane=function(){return new aa};this.protectedWillTransformImpl=function(K,X){X.collectSizeField(K.getMeasureSet());X.collectColorField(K.getDimensionSet())};this.protectedTransformImpl=function(K){var X=[],ya=[];K.popSizeField(X);K.popAnyMeasure(X);K.popDiscreteColorField(ya,1);1>ya.length&&K.popAnyDimension(ya,
1);var oa=new Y;K.setupItemModelSet(oa.getMeasureSet(),X);K.setupItemModelSet(oa.getDimensionSet(),ya);return oa}}function ma(){Ya.call(this);var V=this.protectedMethod;V.setName(Ca.ChartType_Scatter);V.setIconFileName("chart_scatter");V.setText(p.get("chartScatter","\u6563\u70b9/\u6c14\u6ce1\u56fe"));this.protectedCreateChartCtrlImpl=function(K,X){return new Fa};this.createFieldCards=function(K,X){var ya=new K;ya.setTitle(p.get("xAxis","\u6a2a\u8f74"));ya.setItemModelSet(X.getXAxisFieldSet());ya.setOperatingPrompt(p.get("dragNumberFieldHere",
"\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));var oa=new K;oa.setTitle(p.get("yAxis","\u7eb5\u8f74"));oa.setItemModelSet(X.getYAxisFieldSet());oa.setOperatingPrompt(p.get("dragNumberFieldHere","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));var Pa=new K;Pa.setTitle(p.get("size","\u5927\u5c0f"));Pa.setItemModelSet(X.getZAxisFieldSet());Pa.setOperatingPrompt(p.get("tryDragNumberFieldHere","\u5c1d\u8bd5\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));
var yb=new K;yb.setTitle(p.get("detail","\u7ec6\u5206"));yb.setItemModelSet(X.getCategoryFieldSet());yb.setOperatingPrompt(p.get("dragTextFieldHere","\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));K=new K;K.setTitle(p.get("color","\u989c\u8272"));K.setItemModelSet(X.getSeriesFieldSet());K.setOperatingPrompt(p.get("tryDragTextFieldHere","\u5c1d\u8bd5\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));return[ya,oa,yb,K,Pa]};this.createPropertyPane=function(){return new Sa};
this.protectedWillTransformImpl=function(K,X){X.collectXAxis(K.getXAxisFieldSet());X.collectYAxis(K.getYAxisFieldSet());X.collectSizeField(K.getZAxisFieldSet());X.collectColorField(K.getSeriesFieldSet());X.collectXAxis(K.getCategoryFieldSet())};this.protectedTransformImpl=function(K){var X=[],ya=[],oa=[],Pa=[],yb=[];K.popSizeField(oa,1);K.popAnyMeasure(X,1);K.popAnyMeasure(ya,1);0==oa.length&&K.popAnyMeasure(oa,1);K.popDiscreteColorField(Pa,1);K.popAnyDimension(yb,1);0==Pa.length&&K.popAnyDimension(Pa,
1);var Pb=new z;K.setupItemModelSet(Pb.getXAxisFieldSet(),X);K.setupItemModelSet(Pb.getYAxisFieldSet(),ya);K.setupItemModelSet(Pb.getZAxisFieldSet(),oa);K.setupItemModelSet(Pb.getCategoryFieldSet(),yb);K.setupItemModelSet(Pb.getSeriesFieldSet(),Pa);return Pb}}function ha(){Ya.call(this);var V=this.protectedMethod;V.setName(Ca.ChartType_RectTree);V.setIconFileName("chart_treemap");V.setText(p.get("chartRectTree","\u6811\u56fe"));this.protectedCreateChartCtrlImpl=function(K,X){return new Ua};this.createFieldCards=
function(K,X){var ya=new K;ya.setTitle(p.get("size","\u5927\u5c0f"));ya.setItemModelSet(X.getSizeSet());ya.setOperatingPrompt(p.get("dragNumberFieldHere","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));ya.setPerfectHeight(88);var oa=new K;oa.setTitle(p.get("detail","\u7ec6\u5206"));oa.setItemModelSet(X.getDimensionSet());oa.setOperatingPrompt(p.get("dragTextFieldHere","\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));oa.setPerfectHeight(160);K=new K;K.setTitle(p.get("color",
"\u989c\u8272"));K.setItemModelSet(X.getColorSet());K.setPerfectHeight(88);return[ya,oa,K]};this.createPropertyPane=function(){return new qb};this.protectedWillTransformImpl=function(K,X){X.collectXAxis(K.getDimensionSet());X.collectSizeField(K.getSizeSet());X.collectColorField(K.getColorSet())};this.protectedTransformImpl=function(K){var X=[],ya=[],oa=[];K.popSizeField(X,1);0==X.length&&K.popAnyMeasure(X,1);K.popGradualColorField(ya,1);0==ya.length&&K.popDiscreteColorField(ya,1);K.popAnyDimension(oa);
var Pa=new I;K.setupItemModelSet(Pa.getDimensionSet(),oa);K.setupItemModelSet(Pa.getSizeSet(),X);K.setupItemModelSet(Pa.getColorSet(),ya);return Pa};this.parseJsonChartModel=function(K){return Z.createFromJson(K)};this.transformToDrillTarget=function(K,X){return null};this.transformToJumpTarget=function(K,X,ya){return null}}function ta(){Ya.call(this);var V=this.protectedMethod;V.setName(Ca.ChartType_Sunburst);V.setIconFileName("chart_sunburst");V.setText(p.get("chartSunburst","\u65ed\u65e5\u56fe"));
this.protectedCreateChartCtrlImpl=function(K,X){return new Ka};this.createFieldCards=function(K,X){var ya=new K;ya.setTitle(p.get("size","\u5927\u5c0f"));ya.setItemModelSet(X.getSizeSet());ya.setOperatingPrompt(p.get("dragNumberFieldHere","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));ya.setPerfectHeight(88);K=new K;K.setTitle(p.get("detail","\u7ec6\u5206"));K.setItemModelSet(X.getDimensionSet());K.setOperatingPrompt(p.get("dragTextFieldHere","\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));
K.setPerfectHeight(160);return[ya,K]};this.createPropertyPane=function(){return new Ba};this.protectedWillTransformImpl=function(K,X){for(var ya=new E,oa=new E,Pa=0;Pa<K.getDimensionSet().getItemModelCount();Pa++)(0==Pa?ya:oa).addItemModel(K.getDimensionSet().goodbyeItemModel(Pa));X.collectColorField(ya);X.collectXAxis(oa);X.collectSizeField(K.getSizeSet())};this.protectedTransformImpl=function(K){var X=[];K.popSizeField(X,1);0==X.length&&K.popAnyMeasure(X,1);var ya=[];K.popDiscreteColorField(ya,
1);K.popAnyDimension(ya);var oa=new P;K.setupItemModelSet(oa.getDimensionSet(),ya);K.setupItemModelSet(oa.getSizeSet(),X);return oa};this.parseJsonChartModel=function(K){return Z.createFromJson(K)};this.transformToDrillTarget=function(K,X){return null};this.transformToJumpTarget=function(K,X,ya){return 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.square&&(com.kingdee.bos.qing.square={});"undefined"==typeof com.kingdee.bos.qing.square.ui&&(com.kingdee.bos.qing.square.ui={});var ka=com.kingdee.bos.qing.square.ui,p,ra,ea,Ca,U,E,u,g,d,e,c,b,q,t,w,x,A,N,ba,ca,M,ia,sa,mb,Wa,xb,gb,fb,Da,Y,z,D,I,P,O,R,Z,G,J,ja,Q,T,za,da,Aa,Za,sb,Ab,xa,Ra,kb,Db,Ub,$b,Cb,Nb,ac,cc,na,Fa,Qa,Ua,Ka,Xa,db=ka.XSYNPropertyPane,ub=ka.YSXNPropertyPane,Ob=ka.XSYNPropertyPaneForStacked,Zb=ka.XSYNPropertyPaneForPercentStacked,Fb=ka.YSXNPropertyPaneForStacked,
ob=ka.YSXNPropertyPaneForPercentStacked,qa=ka.LineChartPropertyPane,a=ka.AreaChartPropertyPane,l=ka.PieChartPropertyPane,n=ka.RingChartPropertyPane,f=ka.RoseChartPropertyPane,m=ka.KPIChartPropertyPane,h=ka.MapChartPropertyPane,r=ka.GISChartPropertyPane,k=ka.RadarChartPropertyPane,v=ka.ProgressBarChartPropertyPane,y=ka.ProgressColumnChartPropertyPane,L=ka.ProgressCirclePropertyPane,B=ka.CompositeChartPropertyPane,F=ka.GridChartPropertyPane,H=ka.CustomListChartPropertyPane,C=ka.WaterfallChartPropertyPane,
aa=ka.FunnelChartPropertyPane,Sa=ka.ScatterChartPropertyPane,Ta=ka.DialChartPropertyPane,qb=ka.RectTreeChartPropertyPane,Ba=ka.SunburstChartPropertyPane;(function(){var V=com.kingdee.bos.qing.framework.common;p=V.MultilanguageManager.createPackageAccessor(ka);V=com.kingdee.bos.qing.core.model;ra=V.MetaField;ea=V.AbstractAnalyticalField;V=com.kingdee.bos.qing.square.model;Ca=V.SquareModel;U=V.SquareField;E=V.ItemModelSet;u=V.ChartKPI;g=V.ChartPie;d=V.ChartRing;e=V.ChartRose;c=V.ChartColumn;b=V.ChartStackColumn;
q=V.ChartPercentStackColumn;t=V.ChartBar;w=V.ChartStackBar;x=V.ChartPercentStackBar;A=V.ChartLine;N=V.ChartArea;ba=V.ChartPercentArea;ca=V.ChartMap;M=V.ChartGIS;ia=V.ChartRadar;sa=V.ChartProgressBar;mb=V.ChartProgressColumn;Wa=V.ChartProgressCircle;xb=V.ChartComposite;gb=V.ChartGrid;fb=V.ChartCustomList;Da=V.ChartWaterfall;Y=V.ChartFunnel;z=V.ChartScatter;D=V.ChartDial;I=V.ChartRectTree;P=V.ChartSunburst;V=com.kingdee.bos.qing.chart.model;O=V.NormalChartModel;R=V.GridChartModel;Z=V.TreeChartModel;
V=com.kingdee.bos.qing.chart.square;G=V.KPICardChart;J=V.PieChart;ja=V.ColumnChart;Q=V.BarChart;T=V.StackedColumnChart;za=V.PercentStackedColumnChart;da=V.StackedBarChart;Aa=V.PercentStackedBarChart;Za=V.LineChart;sb=V.AreaChart;Ab=V.PercentAreaChart;xa=V.MapChart;Ra=V.GISChart;kb=V.RadarChart;Db=V.ProgressBarChart;Ub=V.ProgressColumnChart;$b=V.ProgressCircleChart;Cb=V.CompositeChart;Nb=V.GridChart;ac=V.CustomListChart;cc=V.WaterfallChart;na=V.FunnelChart;Fa=V.ScatterChart;Qa=V.DialChart;Ua=V.RectTreeChart;
Ka=V.SunburstChart;V=com.kingdee.bos.qing.chart.gis;Xa=V.GISChartGlobal})();ka.ChartTypeFactory=new function(){var V,K={},X=function(){if(!V){var ya=[Na,$a,hb,Mb,S,Ma,Ja,ua,W,fa,Ea,Va,pa,Jb,Gb,tb,La,ab,wa,Ga,Ia,ta,ha,Vb,bb,ib,nb,ma];V=[];for(var oa=0;oa<ya.length;oa++){var Pa=new ya[oa];V[oa]=Pa;K[Pa.getName()]=Pa}}};this.getInstance=function(ya){X();ya=K[ya];if(!ya)throw Error("Unknown chart type.");return ya};this.getAllInstance=function(){X();return V.slice(0)}};la.BAR="bar";la.COLUMN="column";
la.CIRCLE="circle"})();(function(){function Ya(E,u){this.getChartTypeName=function(){return E};this.getLegendModel=function(){return u}}function Lb(){var E=this,u,g,d,e,c,b,q,t,w,x,A,N,ba,ca,M,ia,sa,mb,Wa;this.destroy=function(){E.setRollOutHandler(null);q=b=ca=N=A=null};this.setAppointedSize=function(xa,Ra){M=xa;ia=Ra};this.setTooltipsWidget=function(xa){w=xa};var xb=function(){w||(w=U);return w},gb=function(){x||(x=new Mb);return x};this.setPredrawListener=function(xa){A=xa};this.setSelectionListener=function(xa){N=xa};
var fb=function(xa,Ra,kb){N&&N(xa,Ra,kb)};this.setRollOutHandler=function(xa){var Ra={getRollInState:function(){return c}};Ra.lookupRolledInField=O;Ra.getCommandManager=E.getCommandManager;Ra.getOperatingMenu=G;Ra.decorateCrumb=D;ba&&ba.bindDependence(null);(ba=xa)&&ba.bindDependence(Ra)};var Da=function(){ba||E.setRollOutHandler(new Ma);return ba};this.setCosmeticHandler=function(xa){ca=xa};this.setCommandManager=function(xa){b=xa};this.getCommandManager=function(){null==b&&(b=new p);return b};this.setContextApi=
function(xa){q=xa};this.setModel=function(xa,Ra){e=Ra;c=e.getRollInState();Wa=d=g=null;if(xa){Ra=xa.chartType;var kb=xa.chart,Db=xa.legends,Ub=xa.dataEmpty?!0:!1,$b=xa.basicInsights;d=xa.warning;xa=null;if(Db){var Cb=Db.discreteColor;if(Cb){var Nb=Cb.colors,ac=Cb.texts,cc=Cb.captions;Cb=Cb.others;xa=new La;xa.prepare(Nb,ac,cc,Cb);xa.setAdditionalText(nb.get("itemsAndSoOn","\u5176\u5b83#1\u9879"))}(Db=Db.continuousColor)&&(xa=Vb.parseContontinuousColorLegendModel(Db))}Db=xa;u=Ca.getInstance(Ra);if(kb=
u.parseJsonChartModel(kb))g=u.createChartCtrl(kb,e),g.setLegendModel(Db),g.setTooltipsListener(I),Ub||(lb.isRuntimeSupported()&&Y(),g.setClickListener(Q),g.isSelectionSupported()&&g.setSelectionListener(fb)),g.getAttr().setDataEmpty(Ub);E.reset(e.getChartProperty());$b&&(Wa=new Va,Wa.basicFromJsonObject($b));return new Ya(Ra,Db)}return null};this.createChartInfoUi=function(xa,Ra,kb,Db,Ub){return{createJqUi:function(){var $b=new ua;$b.setTitle(nb.get("chartInfo","\u56fe\u8868\u4fe1\u606f"));$b.setClosingActor(Ra);
kb&&$b.setSizeSuggester(Db,Ub,kb);return $b.createJqUi(q.getSquareModel(),xa)}}};this.createInsightUi=function(xa,Ra,kb,Db){return{createJqUi:function(){var Ub=new W;Ub.setTitle(nb.get("insight","\u6d1e\u5bdf"));Ub.setClosingActor(xa);Ra&&Ub.setSizeSuggester(kb,Db,Ra);return Ub.createJqUi(E,Wa)}}};this.createInsightContentMaker=function(){return Wa?new Ea(E,Wa):null};this.reset=function(xa){g&&xa.toRenderAttr(g.getAttr());sa=ca?ca(g):null};this.drawChart=function(xa,Ra){if(q){xb().hide();for(var kb=
!1,Db=xa.children(),Ub=0;Ub<Db.length;Ub++){var $b=Db.eq(Ub);t&&t[0]==$b[0]?kb=!0:$b.remove()}kb||(t=$("<div>"),t.appendTo(xa),wa.layoutCtrlWithLRTB(t,0,0,null,0,0,null));g?(g.isErasingWhenRedraw()&&t.empty(),u.customLoading(e,q.createFacade,g,function(){A&&A(g);g.setMouseStateLocked(!1);g.getAttr().setReserveRollOutSpace(Da().isRollOutEnabled());var Cb=M?M:t.innerWidth(),Nb=ia?ia:t.innerHeight();g.draw(t[0],Cb,Nb)})):(t.empty(),kb=$("<div>"),kb.addClass("square-exhibition-nothing"),kb.text(Ra),kb.appendTo(xa));
d&&z(xa,d);Da().paint(xa);G().abandon();G().setJqParent(xa);G().setBeforeSlideListener(function(){g.setMouseStateLocked(!0);xb().hide()});G().setAfterSlideListener(function(){g.setMouseStateLocked(!1)})}};var Y=function(){var xa=e.getChartProperty().getLinkTargets();if(xa){var Ra=xa.getUsefulItems();if(0<Ra.length){xa=[];for(var kb=0;kb<Ra.length;kb++)xa.push(Ra[kb].getBizUiId());lb.lookupBizMeta(xa,function(Db){for(var Ub=0;Ub<Ra.length;Ub++){var $b=Ra[Ub],Cb=Db[Ub];Cb?($b.setRuntimeValid(!0),$b.setUsableDisplayName(Cb)):
$b.setRuntimeValid(!1)}})}}},z=function(xa,Ra){var kb=$("<div>");kb.text(Ra);kb.attr("title",Ra);kb.css("z-index","65535");kb.addClass("square-exhibition-nodata");D(kb,Lb.STYLE_PROMPTLABEL_COLOR,null,Lb.STYLE_PROMPTLABEL_FONTSIZE_ENHANCED);kb.appendTo(xa)},D=function(xa,Ra,kb,Db){Ra=sa?sa[Ra]:null;!Ra&&(Ra=kb);Ra&&xa.css("color",Ra);(kb=sa?sa[Db]:null)&&xa.css("fontSize",100+10*parseInt(kb)+"%")},I=function(xa,Ra,kb,Db){Db?kb?(kb=P(kb),gb().bindAssociatedChart(t,g),gb().setContent(kb),gb().show(xa,
Ra)):gb().hide():kb?(kb=P(kb),xb().bindAssociatedChart(t,g),xb().setContent(kb),xb().show(xa,Ra)):xb().hide()},P=function(xa){var Ra;if(c)for(var kb=c.getItemCount()-1;0<=kb;kb--){var Db=O(kb);if(Db){var Ub=c.getItem(kb);if(!Ub.isPcdNextLevel()){var $b={};$b.key=Db.getTextForExhibition();$b.value=Ub.getTextByIndex(Ub.getValueCount()-1);!Ra&&(Ra=xa.slice(0));Ra.splice(0,0,$b)}}}!Ra&&(Ra=xa);return Ra},O=function(xa){return e.lookupRolledInField(xa)},R=function(xa){return xa?(xa=O(c.getCurrentRollInFieldCount()))&&
xa.getMetaField().isParentChildDimension():!1},Z=function(xa){return(xa=e.getChartProperty().getLinkTargets())&&0<xa.getRunnableItems().length},G=function(){mb||(mb=new pb);return mb},J=function(xa,Ra,kb){G().slide(Ra,function(Db){switch(Db){case 1:xa.confirmDrilling();break;case 2:xa.confirmSelecting();G().abandon();break;case 3:xa.confirmJumping();break;default:return}kb()})},ja=function(){var xa=e.getChartProperty().getLinkTargets().getRunnableItems();return[Za(xa),3]},Q=function(xa,Ra,kb){var Db=
(xa=u.transformToDrillTarget(kb,g))?!0:!1;Ra=Db&&R(xa.isAsParent());var Ub=e.isRollInFieldSupported()&&c.isRollInNextFieldEnabled(),$b=u.transformToJumpTarget(kb,g,e)?!0:!1;Db=Db&&e.isRollInSupported()&&(Ub||Ra);$b=$b&&e.isLinkageSupported()&&lb.isRuntimeSupported()&&Z();var Cb=g.isSelectionSupported()&&g.isSelectable()&&!Ub,Nb=(Db?1:0)+($b?1:0)+(Cb?1:0),ac=new eb;1<Nb?(Nb=[],Db&&Nb.push([za(Ra,Ub,xa),1]),Cb&&Nb.push([u.isSelected(kb,g)?nb.get("affectionCancel","\u53d6\u6d88\u8054\u52a8"):nb.get("affectionConfirm",
"\u8054\u52a8"),2]),$b&&Nb.push(ja()),J(ac,Nb,function(){T(ac,kb)})):(Db&&ac.confirmDrilling(),Cb&&ac.confirmSelecting(),$b&&ac.confirmJumping(),T(ac,kb))},T=function(xa,Ra){if(xa.isDrillingConfirmed())xa=u.transformToDrillTarget(Ra,g),da(xa);else if(xa.isSelectingConfirmed())u.select(Ra,g),Na.occur(Na.SQUARE_AFFECTION,1);else if(xa.isJumpingConfirmed()){xa=new wb;Ra=u.transformToJumpTarget(Ra,g,e);for(var kb=Ra.getItemCount(),Db=0;Db<kb;Db++){var Ub=Ra.getField(Db),$b=Ra.getMember(Db);xa.addItem(Ub,
$b)}sb(xa)}},za=function(xa,Ra,kb){if(xa&&Ra)return nb.get("drillDown","\u5411\u4e0b\u94bb\u53d6")+"...";if(xa)return xa=O(c.getCurrentRollInFieldCount()),Ra=nb.get("drillDownPcd","\u94bb\u53d6\u5230#1\u201c#2\u201d\u7684\u4e0b\u4e00\u5c42\u7ea7"),Ra=Ra.replace("#1",xa.getComplexText()),Ra=Ra.replace("#2",kb.getText());if(Ra)return xa=O(c.getCurrentRollInFieldCount()+1),kb=nb.get("drillDownField","\u94bb\u53d6\u5230#1"),kb=kb.replace("#1",xa.getComplexText());throw Error("Impossible");},da=function(xa){var Ra=
xa.getValue(),kb=xa.getText(),Db=xa.isAsParent(),Ub=R(Db);Db=e.isRollInFieldSupported()&&c.isRollInNextFieldEnabled();var $b=O(c.getCurrentRollInFieldCount());Ub&&Db?(Ub=za(Ub,!1,xa),xa=za(!1,Db,xa),xa=[[Ub,1],[xa,2]],G().slide(xa,function(Cb){switch(Cb){case 1:Aa($b,Ra,kb,!0);break;case 2:Aa($b,Ra,kb,!1)}})):Aa($b,Ra,kb,Ub)},Aa=function(xa,Ra,kb,Db){var Ub=new ra;Ub.setValue(xa,c,Ra,kb,Db);E.getCommandManager().perform(Ub);Na.occur(Na.SQUARE_DRILLDOWN,1)},Za=function(xa,Ra){if(void 0===Ra){if(1<
xa.length)return nb.get("linkageJumper","\u8054\u67e5")+"...";Ra=0}return $a.makeItemDisplay(xa[Ra])},sb=function(xa){var Ra=e.getChartProperty().getLinkTargets().getRunnableItems();if(1<Ra.length){for(var kb=[],Db=0;Db<Ra.length;Db++){var Ub=Za(Ra,Db);kb.push([Ub,Db])}G().slide(kb,function($b){null!==$b&&Ab(Ra[$b],xa)})}else Ab(Ra[0],xa)},Ab=function(xa,Ra){G().sayGoodbye(nb.get("linkageJumper","\u8054\u67e5")+"...",6E4);var kb=q.getDependentMeta([xa.getForeignKey()]),Db=q.getSquareModel(),Ub=q.getJsonAdditionalFilters();
Ra=$a.makeJsonSquareClickedContext(Ra);$a.jumpToListUi(xa,Ra,q.createFacade,kb,Db,Ub,function($b,Cb){G().sayGoodbye($b,!1===Cb?8E3:5E3)},function($b,Cb){var Nb=new la;Nb.setText($b);Nb.setConfirmedListener(function(ac){Cb(!1)});Nb.setSecondRelatedYGetter(function(ac){return parseInt(.1*ac.outerHeight())});Nb.show(t,!0)});Na.occur(Na.SQUARE_NAVIGATETO,xa.getUsableDisplayName())};this.makeBasicInsight=function(xa){var Ra=q.getDependentMeta(),kb=q.getSquareModel(),Db=q.getJsonAdditionalFilters();q.createFacade(function(Ub){Wa.basicFromJsonObject(Ub);
xa()},function(Ub,$b,Cb){Wa.basicFromJsonObject({});xa(Ub,$b)}).makeBasicInsight(Ra,kb,null,Db)};this.makeAdvancedInsight=function(xa){var Ra=q.getDependentMeta(),kb=q.getSquareModel(),Db=q.getJsonAdditionalFilters();q.createFacade(function(Ub){Wa.advancedFromJsonObject(Ub);xa()},function(Ub,$b,Cb){Wa.advancedFromJsonObject({});xa(Ub,$b)}).makeAdvancedInsight(Ra,kb,null,Db)}}function wb(){function E(g,d){var e=g.getMetaField().getFullName(),c=g.getPartValue();this.toJsonObject=function(){var b={};
b.fieldName=e;b.partValue=c;b.value=d;return b}}var u=[];this.addItem=function(g,d){u.push(new E(g,d))};this.toJsonObject=function(){for(var g=[],d=0;d<u.length;d++)g.push(u[d].toJsonObject());d={};d.items=g;return d}}function eb(){var E=!1,u=!1,g=!1;this.confirmDrilling=function(){E=!0};this.isDrillingConfirmed=function(){return E};this.confirmSelecting=function(){u=!0};this.isSelectingConfirmed=function(){return u};this.confirmJumping=function(){g=!0};this.isJumpingConfirmed=function(){return g}}
function pb(){var E=this,u,g,d,e,c,b,q;this.setJqParent=function(N){u=N};this.setBeforeSlideListener=function(N){c=N};this.setAfterSlideListener=function(N){b=N};this.slide=function(N,ba){c&&c();d&&t(d);N=d=x(N,ba);ba=u.prop("clientWidth");var ca=u.prop("clientHeight"),M=Math.min(240,parseInt(.9*ba)),ia=parseInt(.9*ca);wa.layoutCtrl(N,0,0,M,0);N.appendTo(w());for(var sa=M=0,mb=e.children(),Wa=0;Wa<mb.length;Wa++){var xb=$(mb[Wa]),gb=xb.width();xb=xb.outerWidth(!0);M=Math.max(M,gb);sa=Math.max(sa,
xb)}N.css("width",sa);for(Wa=0;Wa<mb.length;Wa++){xb=$(mb[Wa]);xb.css("width",M);var fb=xb.prop("offsetTop")+xb.prop("offsetHeight")}fb=Math.min(ia,e.prop("offsetTop")+fb+8);ia=parseInt(.5*(ba-sa));ca=parseInt(.5*(ca-fb));wa.layoutCtrl(N,ba,ca,sa,fb);N.animate({left:ia},250)};this.abandon=function(){g&&g.remove();d=g=null};this.sayGoodbye=function(N,ba){d&&t(d);clearTimeout(q);var ca=u.find(".square-exhibition-menu-bye");if(0==ca.length){var M=u.prop("clientWidth");ca=$("<div>");ca.addClass("square-exhibition-menu-bye");
wa.layoutCtrl(ca,M,"40%","100%",20);ca.appendTo(w());ca.animate({left:0},500)}ca.text(N);q=setTimeout(E.abandon,ba?ba:5E3)};var t=function(N,ba){var ca=0-N.prop("offsetWidth");N.animate({left:ca},250,function(){N.remove();ba&&ba()})},w=function(){g||(g=$("<div>"),g.css("background-color","rgba(0,0,0,0.001)"),g.appendTo(u),wa.layoutCtrlWithLRTB(g,0,0,null,0,0,null));return g},x=function(N,ba){var ca=$("<div>");ca.css("z-index",8);ca.addClass("square-exhibition-menu");var M=$("<div>");M.text("\u00d7");
M.addClass("square-exhibition-menu-close");M.on("click",function(Wa){t(ca,E.abandon);A(null,ba,null)()});M.appendTo(ca);wa.layoutCtrlWithLRTB(M,null,0,20,0,null,20);e=$("<div>");e.css({"overflow-x":"hidden","overflow-y":"auto"});e.appendTo(ca);wa.layoutCtrlWithLRTB(e,0,0,null,16,8,null);for(M=0;M<N.length;M++){var ia=N[M][0],sa=N[M][1],mb=$("<div>");mb.css({position:"relative",display:"inline-block"});mb.addClass("square-exhibition-menu-item");mb.text(ia);mb.on("click",A(mb,ba,sa));mb.appendTo(e)}return ca},
A=function(N,ba,ca){return function(M){N&&N.addClass("square-exhibition-menu-item_selected");b&&b();ba(ca)}}}function zb(){this.bindAssociatedChart=function(E,u){};this.setContent=function(E){throw Error("Override");};this.show=function(E,u){throw Error("Override");};this.hide=function(){throw Error("Override");}}function Yb(){zb.call(this);var E=this,u,g=null,d=!1,e=function(){u||(u=$("<div>"),u.addClass("square-tooltips"),u.css("display","none"),E.protectedInitUi(u))};this.protectedInitUi=function(q){throw Error("Implement");
};this.protectedGetJqOwner=function(){throw Error("Implement");};this.protectedTransformXY=function(q,t){return[q,t]};this.show=function(q,t){e();var w=E.protectedTransformXY(q,t);q=w[0];t=w[1];w=E.protectedGetJqOwner();var x=w.prop("clientWidth"),A=w.prop("clientHeight");u.css("max-width",.8*x);u.css("max-height",.8*A);var N=u.outerWidth(),ba=u.outerHeight();w=q+15;var ca=t+10,M=-1,ia=-1,sa=-1,mb=-1;ca+ba>A&&(mb=ca+ba-A,ia=A-ba,t=t-10-ba,0>t?(t=-t,t<mb&&(mb=t,ia=0)):(mb=-1,ia=t));w+N>x&&(sa=w+N-
x,M=x-N,q=q-15-N,0>q?(q=-q,q<sa&&(sa=q,M=0)):(sa=-1,M=q));0<sa&&0<mb?.5*sa>mb?(w=M,ca=0==ia?-mb:ia+mb):(w=0==M?-sa:M+sa,ca=ia):(w=0>M?w:M,ca=0>ia?ca:ia);"block"==u.css("display")?(g=[w,ca],b()):(u.css("left",w),u.css("top",ca),u.css("display","block"))};this.hide=function(){g=null;u&&u.css("display","none")};this.setContent=function(q){e();u.empty();var t=$("<table>");t.css("margin",6);for(var w=0;w<q.length;w++){var x=q[w],A=x.key,N=x.value,ba=x.ratio,ca=x.color,M=x.lineIconStyle;x=$("<tr>");var ia=
$("<td>");ia.addClass("square-tooltips-title");if(ca){if(M){M=document.createElement("canvas");M.width=8;M.height=8;var sa=$(M);sa.addClass("square-tooltips-title-color");sa.appendTo(ia);M=M.getContext("2d");M.fillStyle=ca;M.strokeStyle=ca;M.lineWidth=2;M.beginPath();M.moveTo(0,4);M.lineTo(8,4);M.stroke();M.arc(4,4,2.2,0,2*Math.PI);M.fill()}else M=$("<span>"),M.addClass("square-tooltips-title-color"),M.css("background-color",ca),M.appendTo(ia);M=$("<span>");M.addClass("square-tooltips-title-text");
M.text(A);M.appendTo(ia)}else ia.text(A+(A?":":""));x.append(ia);A=$("<td>");A.addClass("square-tooltips-value");ca&&A.css("text-align","right");A.text(N);x.append(A);ba?(N=$("<td>"),N.addClass("square-tooltips-value"),N.css("padding-left","4px"),N.css("text-align","right"),N.text(ba),x.append(N)):A.attr("colspan",2);t.append(x)}t.appendTo(u)};var c=function(){var q=null;g&&(q=g,g=null);return q},b=function(){if(!d){var q=c();q&&(d=!0,u.stop(),u.animate({left:q[0],top:q[1]},150,function(){d=!1;b()}))}}}
function Mb(){Yb.call(this);var E,u;this.bindAssociatedChart=function(g,d){u=g;E&&!wa.isInDomTree(E[0])&&E.appendTo(u)};this.protectedInitUi=function(g){E=g;E.appendTo(u)};this.protectedGetJqOwner=function(){return u};this.protectedTransformXY=function(g,d){var e=wa.upwardCoordinate(u[0],[0,0],document.body);return[g-e[0],d-e[1]]}}function S(){var E;this.paint=function(d){};this.bindDependence=function(d){E=d};var u=function(){return E.getRollInState()},g=function(d){return E.lookupRolledInField(d)};
this.isRollOutEnabled=function(){var d=u();return d?d.isRollOutEnabled():!1};this.protectedMethod={performRollOutAction:function(d,e){var c=u();"undefined"==typeof d&&(d=c.getItemCount()-1);"undefined"==typeof e&&(e=c.getItem(c.getItemCount()-1).getValueCount()-1);var b=g(d),q=new ea;q.setValue(b,c,d,e);E.getCommandManager().perform(q)},getRollInState:u,lookupRolledInField:g,getOperatingMenu:function(){return E.getOperatingMenu()},decorateCrumb:function(d,e,c,b){E.decorateCrumb(d,e,c,b)}}}function Ma(){S.call(this);
var E=this,u=this.protectedMethod,g,d,e,c=!1,b,q;this.paint=function(ca){if(E.isRollOutEnabled()){var M=hb.createCanvas();g=hb.createContext2d(M,32,32);M=$(M);wa.layoutCtrl(M,0,0,32,32);M.appendTo(ca);d=$("<div>");d.css({"line-height":"18px",overflow:"hidden"});u.decorateCrumb(d,Lb.STYLE_CRUMB_COLOR,"#999",Lb.STYLE_CRUMB_FONTSIZE_ENHANCED);b=d.css("color");q=ib.isTheSame(b,"#999")?null:b;wa.layoutCtrlWithLRTB(d,28,0,null,0,null,18);d.appendTo(ca);e=[];ca="";for(var ia=u.getRollInState(),sa=0;sa<ia.getItemCount();sa++){0<
sa&&(ca+=" > ");for(var mb=ia.getItem(sa),Wa=0;Wa<mb.getValueCount();Wa++){0<Wa&&(ca+=" > ");var xb=mb.getTextByIndex(Wa);if(!xb){xb=(xb=u.lookupRolledInField(sa+1))?xb.getComplexText():"";var gb=0<Wa?mb.getTextByIndex(Wa-1):"";xb+=gb}ca+=xb;e.push([xb,sa,Wa])}}for(sa=e.length-1;0<=sa;sa--)ia=e[sa],mb=0==sa?nb.get("drillUpToTop","\u8fd4\u56de\u5230\u9876\u5c42"):e[sa-1][0],ia[0]=mb;sa=$("<span>");sa.text(ca);sa.css({"white-space":"nowrap"});sa.appendTo(d);ca=sa.parent().prop("clientWidth");xb=sa.prop("offsetWidth");
if(xb>ca){ia=sa.text();mb=ia.length;Wa=Math.ceil(ia.length*ca/xb);do Wa--,xb="..."+ia.substring(mb-Wa),sa.text(xb),xb=sa.prop("offsetWidth");while(xb>ca&&0<=Wa)}t(M);t(sa);N()}};var t=function(ca){ca.css({cursor:"pointer"});ca.attr("title",nb.get("drillUp","\u8fd4\u56de"));ca.on("click",w);ca.on("mouseenter",x);ca.on("mouseleave",A)},w=function(ca){ba(g,"rgba(120,180,240,0.5)","#f09040");d.css("color","#f09040");if(1==e.length)setTimeout(function(){u.performRollOutAction()},175);else{c=!0;setTimeout(function(){c=
!1;N()},225);ca=[];for(var M=0;M<e.length;M++)ca.push([e[M][0],M]);u.getOperatingMenu().slide(ca,function(ia){"number"==typeof ia&&(ia=e[ia],u.performRollOutAction(ia[1],ia[2]));u.getOperatingMenu().abandon()})}},x=function(ca){ba(g,"rgba(120,180,240,0.25)","#00a0d1");d.css("color","#00a0d1")},A=function(ca){!c&&N()},N=function(){ba(g,"rgba(120,180,240,0.15)",q||"rgba(64,128,240,0.6)");d.css("color",b)},ba=function(ca,M,ia){ca.clearRect(0,0,ca.canvas.width,ca.canvas.height);ca.fillStyle=M;ca.beginPath();
ca.moveTo(0,0);ca.arc(0,0,32,0,.5*Math.PI);ca.closePath();ca.fill();ca.fillStyle=ia;ca.beginPath();ca.moveTo(13,4);ca.lineTo(3,13);ca.lineTo(9,13);ca.lineTo(9,20);ca.lineTo(17,20);ca.lineTo(17,13);ca.lineTo(23,13);ca.closePath();ca.fill()}}function Ja(){var E,u,g,d;this.setTitle=function(c){E=c};this.setSizeSuggester=function(c,b,q){u=[c,b,q]};this.setClosingActor=function(c){g=c};var e=function(){var c=$("<div>");c.css({"border-left":"1px solid #808080","transform-origin":"left top",transform:"rotate(-45deg)"});
wa.layoutCtrlWithLRTB(c,0,null,"141%",0,null,"141%");var b=$("<div>");b.css({"border-right":"1px solid #808080","transform-origin":"right top",transform:"rotate(45deg)"});wa.layoutCtrlWithLRTB(b,null,0,"141%",0,null,"141%");var q=$("<div>");q.css({overflow:"hidden"});q.append(c);q.append(b);wa.layoutCtrlCenterAlign(q,12);wa.layoutCtrlMiddleAlign(q,12);c=$("<div>");c.css({cursor:"pointer"});c.append(q);return c};this.protectedMethod={createSimilarDialog:function(c){d=function(){c.appendTo(t);wa.layoutCtrlWithLRTB(c,
10,4,null,32,4,null);return[14,36]};var b=$("<div>");b.css({"font-size":"16px","font-weight":"bold","line-height":"24px"});b.text(E);var q=e();q.on("click",function(w){g()});var t=$("<div>");t.append(b);t.append(q);wa.layoutCtrlWithLRTB(b,10,10,null,4,null,28);wa.layoutCtrlWithLRTB(q,null,6,16,6,null,16);d();return t},appendAction:function(c,b,q,t){var w=6+30*(c.children(".q-sys-action").length+1),x=$("<div>");tb.background(x,b);wa.layoutCtrlCenterAlign(x,12);wa.layoutCtrlMiddleAlign(x,12);b=$("<div>");
b.addClass("q-sys-action");b.css({cursor:"pointer"});b.attr("title",q);b.on("click",function(A){t($(A.target))});wa.layoutCtrlWithLRTB(b,null,w,16,6,null,16);b.append(x);c.append(b)},resize:function(c){if(u){var b=u[0],q=u[1],t=u[2],w=c.prop("scrollTop");c.appendTo($(document.body));c.css({"max-width":b+"px","max-height":q+"px"});wa.layoutCtrlWithLRTB(c,-1E4,"","auto",-1E4,"","auto");b=c.prop("offsetWidth");q=c.prop("offsetHeight");var x=d();w&&c.prop("scrollTop",w);t(b+x[0],q+x[1])}},createTitle:function(c,
b,q){var t=$("<div>");t.text(b);t.css({position:"relative","margin-top":"4px","font-weight":"bold","line-height":"24px"});q&&t.css(q);c.append(t);return t},createLine:function(c,b){var q=$("<div>");q.css({position:"relative","margin-bottom":"4px","padding-left":"12px","line-height":"24px"});b&&q.css(b);c.append(q);return q},createListLine:function(c,b){var q=$("<li>");q.css({position:"relative","padding-left":"4px","line-height":"24px"});b&&q.css(b);c.append(q);return q},createSpan:function(c,b,q){var t=
$("<span>");t.text(b);q&&t.css(q);c.append(t);return t}}}function ua(){function E(){var b,q;this.setTitle=function(t){b=t};this.getTitle=function(){return b};this.setItemModelSet=function(t){q=t};this.getItemModelSet=function(){return q};this.setOperatingPrompt=function(){};this.setPerfectHeight=function(){}}Ja.call(this);var u=this.protectedMethod,g;this.createJqUi=function(b,q){var t=$("<div>");t.css({overflow:"auto",color:"#333","font-size":"14px"});for(var w=Ca.getInstance(b.getChartTypeName()).createFieldCards(E,
b.getChart()),x=0;x<w.length;x++){var A=w[x],N=A.getTitle();A=A.getItemModelSet();var ba=0==A.getItemModelCount();if(!ba||0!=A.getItemCountMin()){u.createTitle(t,N);var ca=u.createLine(t);ba?u.createSpan(ca,""):A.traversalItems(function(M){M=M.getSquareField();u.createSpan(ca,M.getTextTooltips(),{"margin-right":"8px"})})}}b=b.getFilterSet();0!=b.getItemModelCount()&&(u.createTitle(t,nb.get("filterCardTitle","\u7b5b\u9009\u5668")),b.traversalItems(function(M){var ia=M.getSquareField(),sa=M.getUsableFilter(),
mb=u.createLine(t);M.isOutsideAllowed()&&(M=u.createSpan(mb,""),wa.layoutCtrl(M,0,6,12,12),tb.background(M,"icon_extra_filter"));u.createSpan(mb,ia.getTextTooltips());u.createSpan(mb,d(sa,ia.getPartValue()),{"margin-left":"16px"})}));q&&(ca=u.createLine(t,{padding:"10px",cursor:"pointer",color:"#39f"}),ca.text(nb.get("chartInfoMoreFilters","\u66f4\u591a\u5916\u90e8\u7b5b\u9009\u5668")+"..."),ca.on("click",function(M){$(M.currentTarget).remove();M=$(document.createDocumentFragment());u.createTitle(M,
nb.get("chartInfoAffectionFilters","\u8054\u52a8\u7b5b\u9009\u5668"));for(var ia=0;ia<q.length;ia++){var sa=q[ia],mb=u.createLine(M),Wa=u,xb=Wa.createSpan,gb=mb,fb=sa.key;fb=sa.isMetaFieldBound?"["+fb+"]":nb.get("chartInfoAffectionParam","\u53c2\u6570")+'"'+fb+'"';xb.call(Wa,gb,fb);Wa=u;xb=Wa.createSpan;gb=sa.selectedValue;sa.valueDataType==ta.DT_DATE&&sa.isMetaFieldBound?(gb=JSON.parse(gb).dateRange,sa=gb.containNull,gb=c(gb.dateFrom,gb.dateTo),sa&&(gb=e(gb)),sa=gb):sa=gb;xb.call(Wa,mb,sa,{"margin-left":"16px"})}t.append(M);
u.resize(t)}));b=u.createSimilarDialog(t);u.resize(t);return b};var d=function(b,q){if(b.isFullValue())return nb.get("fullValue","\u5168\u90e8");if(b instanceof ab){var t=b.isExclude()?"("+nb.get("excludeValue","\u6392\u9664")+")":"";b=b.toJsonObject().selected;if(q==ka.PARTVALUE_DATE_MONTH||q==ka.PARTVALUE_DATE_YM||q==ka.PARTVALUE_DATE_YMD)for(var w=0;w<b.length;w++){var x=b[w];if(x){var A=parseInt(x);switch(q){case ka.PARTVALUE_DATE_MONTH:case ka.PARTVALUE_DATE_YM:x=A+1;break;case ka.PARTVALUE_DATE_YMD:x=
A+100}b[w]=x}}return t+=b.join(", ")}if(b instanceof ma){q=b.getFloor();w=b.getCeiling();if(t=b.getFormatString())w=new Ga,w.setFormatString(t),q=w.format(b.getFloor()),w=w.format(b.getCeiling());t=q+"~"+w;b.isContainNull()&&(t=e(t));return t}return b instanceof ha?(t=(q=b.getRelativePeriodModel())?Gb.modelToDisplayText(q,!0):c(b.getFromDateMs(),b.getToDateMs()),b.isContainNull()&&(t=e(t)),t):"???"},e=function(b){return b+" ("+nb.get("includeNull","\u5305\u542b\u7a7a\u503c")+")"},c=function(b,q){!g&&
(g=new Ia);g.setFormatString("yyyy-M-d HH:mm:ss");b=g.format(b);q=g.format(q);return b+" ~ "+q}}function W(){Ja.call(this);fa.call(this);var E=this.protectedMethod,u,g,d,e=!0;this.createJqUi=function(w,x){var A=$("<div>");A.css({overflow:"auto",color:"#333","font-size":"14px"});x&&(u=function(){w.makeAdvancedInsight(function(ba,ca){"number"==typeof ba?(ba=ba+"\n"+ca,A.empty(),ca=E.createLine(A),E.createSpan(ca,ba)):t(A,x)})},g=function(){w.makeBasicInsight(function(ba,ca){"number"==typeof ba?(ba=
ba+"\n"+ca,A.empty(),ca=E.createLine(A),E.createSpan(ca,ba)):(q(A,x),E.resize(A))})},q(A,x));var N=E.createSimilarDialog(A);E.resize(A);E.appendAction(N,"icon_extra_level",nb.get("insightLevel","\u7ea7\u522b"),function(ba){c(ba,N,A,x)});return N};var c=function(w,x,A,N){if(d&&d.isShowing())d.hide(),d=null;else{var ba=new Jb;ba.addItemModel(pa.createRadio(nb.get("insightLevelBasic","\u7b80\u8981"),"level",e,function(ca){e=!0;q(A,N);E.resize(A)}));ba.addItemModel(pa.createRadio(nb.get("insightLevelAdvanced",
"\u8be6\u7ec6"),"level",!e,function(ca){e=!1;N.getBasicState()||(N.isAdvancedLoaded()?t(A,N):u())}));d=new pa;d.setModel(ba);d.setHideListener(function(){d=null});ba=[0,18];ba=wa.upwardCoordinate(w[0],ba,x[0]);d.show(x,ba[0],ba[1],w,!0)}},b=function(w,x){w=E.createLine(w,{"margin-top":"10px"});E.createSpan(w,x)},q=function(w,x){var A=$(document.createDocumentFragment());x.getBasicState()==Va.STATE_DATA_EMPTY?b(A,nb.get("insightNoData","\u6ca1\u6709\u6570\u636e\u3002")):x.getBasicState()==Va.STATE_MISSING_MEASURE?
b(A,nb.get("insightNoMeasure","\u6ca1\u6709\u5ea6\u91cf\u5b57\u6bb5\u3002")):x.getBasicState()==Va.STATE_BLOATED_DIMENSION?(b(A,nb.get("waiting","\u8bf7\u7a0d\u5019")+"..."),g()):(x=x.getBasicGroups(),E.createInsightsUi(A,x));w.empty();w.append(A)},t=function(w,x){var A=$(document.createDocumentFragment());x=x.getUsableAdvancedGroups();E.createInsightsUi(A,x);w.empty();w.append(A);E.resize(w)};this.protectedCreateJqInsightSubtitle=function(w,x){return E.createTitle(w,x)};this.protectedCreateJqInsightLine=
function(w){return E.createListLine(w)}}function fa(){var E=this;this.protectedCreateJqInsightSubtitle=function(d,e){throw Error("Implement");};this.protectedCreateJqInsightLine=function(d){throw Error("Implement");};var u=function(d,e){var c=$("<span>");c.text(e);d.append(c);return c},g=function(d,e,c){if(0>c)return[d];for(var b=e.getVariate(c),q="${"+b.getName()+"}$",t=q.length,w=[],x=d;x;){var A=x.indexOf(q);0>A?(w.push(x),x=null):(d=x.substring(0,A),x=x.substring(A+t),w.push(d),w.push(b),x=0<
x.length?x:null)}b=[];for(q=0;q<w.length;q++)t=w[q],"string"==typeof t?0<t.length&&(t=g(t,e,c-1),b=b.concat(t)):b.push(t);return b};!this.protectedMethod&&(this.protectedMethod={});this.protectedMethod.createInsightsUi=function(d,e){for(var c=0;c<e.length;c++){var b=e[c];E.protectedCreateJqInsightSubtitle(d,b.getTitle());for(var q=0;q<b.getSentenceCount();q++){for(var t=E.protectedCreateJqInsightLine(d),w=b.getSentence(q),x=g(w.getText(),w,w.getVariateCount()-1),A=0;A<x.length;A++){var N=x[A];if("string"==
typeof N)u(t,N);else{var ba=N,ca=(N=ba.getTips())?!0:!1;ba=u(t,ba.getValue());ca&&ba.css("text-decoration","underline");ca&&ba.attr("title",N)}}w.setReadableText(t.text())}}}}function Ea(E,u){fa.call(this);var g=this,d=this.protectedMethod;this.hookJqInsightSubtitleCreator=function(b){g.protectedCreateJqInsightSubtitle=function(q,t){var w=b();w.text(t);q.append(w);return w}};this.hookJqInsightLineCreator=function(b){g.protectedCreateJqInsightLine=function(q){var t=b();q.append(t);return t}};this.requestJqContent=
function(b){var q=$("<div>");q.text("");e(q,u,function(t){q.append(t);b(q)})};var e=function(b,q,t){var w=$(document.createDocumentFragment());if(q.getBasicState()!=Va.STATE_DATA_EMPTY&&q.getBasicState()!=Va.STATE_MISSING_MEASURE){if(q.getBasicState()==Va.STATE_BLOATED_DIMENSION){E.makeBasicInsight(function(A,N){"number"==typeof A?(c(b,A+" "+N),t(w)):e(b,q,t)});return}if(q.getBasicState()==Va.STATE_NO_ADVANCED){var x=q.getBasicGroups();d.createInsightsUi(w,x)}else if(!q.getBasicState()){E.makeAdvancedInsight(function(A,
N){"number"==typeof A?c(b,A+" "+N):(A=q.getUsableAdvancedGroups(),d.createInsightsUi(w,A));t(w)});return}}t(w)},c=function(b,q){var t=$("<span>");t.text(q);b.append(t);return t}}function Va(){function E(){var w,x;this.fromJsonObject=function(A){x=[];w=A.title;if(A=A.sentences)for(var N=0;N<A.length;N++){var ba=A[N],ca=new u;ca.fromJsonObject(ba);x.push(ca)}};this.getTitle=function(){return w};this.getSentenceCount=function(){return x?x.length:0};this.getSentence=function(A){return x[A]};this.mergeFrom=
function(A){w=A.getTitle();!x&&(x=[]);for(var N=0;N<A.getSentenceCount();N++)x.push(A.getSentence(N))}}function u(){var w,x,A;this.fromJsonObject=function(N){w=N.text;x=[];if(N=N.variates)for(var ba=0;ba<N.length;ba++){var ca=N[ba],M=new g;M.fromJsonObject(ca);x.push(M)}};this.getText=function(){return w};this.getVariateCount=function(){return x.length};this.getVariate=function(N){return x[N]};this.setReadableText=function(N){A=N};this.getReadableText=function(){return A}}function g(){var w,x,A;this.fromJsonObject=
function(N){w=N.name;x=N.value;A=N.tips};this.getName=function(){return w};this.getValue=function(){return x};this.getTips=function(){return A}}var d=this,e,c,b,q;this.basicFromJsonObject=function(w){c=[];e=w.state;t(w,c)};this.advancedFromJsonObject=function(w){q=[];b=w.state;t(w,q)};this.getBasicState=function(){return e};this.getBasicGroups=function(){return c};this.getAdvancedState=function(){return b};this.isAdvancedLoaded=function(){return q?!0:!1};this.getUsableAdvancedGroups=function(){for(var w=
{},x=0;x<q.length;x++){var A=q[x];w[A.getTitle()]=A}var N=[];for(x=0;x<c.length;x++){A=c[x];var ba=new E;ba.mergeFrom(A);N.push(ba);(A=w[A.getTitle()])&&ba.mergeFrom(A)}return N};this.getReadableTextGroups=function(){for(var w=d.isAdvancedLoaded()?d.getUsableAdvancedGroups():c,x=[],A=0;A<w.length;A++){for(var N=[],ba=w[A],ca=0;ca<ba.getSentenceCount();ca++){var M=ba.getSentence(ca);N.push(M.getReadableText())}x.push(N)}return x};var t=function(w,x){if(w=w.groups)for(var A=0;A<w.length;A++){var N=
w[A],ba=new E;ba.fromJsonObject(N);x.push(ba)}}}"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.square&&(com.kingdee.bos.qing.square={});"undefined"==typeof com.kingdee.bos.qing.square.ui&&(com.kingdee.bos.qing.square.ui={});var Oa=com.kingdee.bos.qing.square.ui;Oa.Exhibition=function(){var E=new Lb,
u,g,d,e;var c=$("<div>");c.addClass("square-exhibition-card");var b=$("<div>");b.addClass("square-exhibition-card-titlebar");b.appendTo(c);var q=$("<div>");q.addClass("square-exhibition-card-titlebar-text");q.appendTo(b);var t=$("<div>");t.css("overflow","hidden");t.appendTo(c);this.destroy=function(){E.destroy()};this.setCommandManagerGetter=function(A){u=A};this.setContextApi=function(A){E.setContextApi(A)};this.getJqUi=function(){return c};this.resize=function(){g&&(g.isFullArea()||x(),clearTimeout(d),
d=setTimeout(w,250))};this.showSuspendedRunningMask=function(){if(0==c.find(".sa-exhibition-suspend-mask").length){var A=$("<div>");A.addClass("sa-exhibition-suspend-mask");A.appendTo(c)}};this.setPreviewSetup=function(A){g=A;var N=A.getPaddingLeft(),ba=A.getPaddingRight(),ca=A.getPaddingTop(),M=A.getPaddingBottom();wa.layoutCtrlWithLRTB(t,N,ba,null,ca,M,null);A.isFullArea()?(b.css("display","none"),c.addClass("square-exhibition-card_fullarea"),c.removeClass("square-exhibition-card_notfull")):(b.css("display",
"block"),c.addClass("square-exhibition-card_notfull"),c.removeClass("square-exhibition-card_fullarea"));x();w()};this.setTitle=function(A,N){q.text(A);b.find(".square-exhibition-card-titlebar-tips").remove();N&&(A=new bb,A.setIconType(bb.ICON_TYPE_QUESTION),A.setTipsText(N),A.setContainer(c),N=A.getJqUi(),N.addClass("square-exhibition-card-titlebar-tips"),N.appendTo(b))};this.setModel=function(A,N,ba){if(u){var ca=u();E.setCommandManager(ca)}e=ba;E.setModel(A,N);w()};this.repaint=function(A){A&&E.reset(A);
w()};var w=function(){E.drawChart(t,e)},x=function(){var A="",N="",ba="",ca="";g.isFullArea()||(A=c.parent().innerWidth(),N=c.parent().innerHeight(),ba=g.getWidth(),ca=g.getHeight(),A=(A>ba?A-ba>>1:0)+"px",N=(N>ca?N-ca>>1:0)+"px",ba+="px",ca+="px");c.css({left:A,top:N,width:ba,height:ca})}};Oa.ExhibitionContent=Lb;Oa.AbstractTooltipsWidget=zb;Oa.AbstractRollOutHandler=S;var wa,Ga,Ia,hb,ib,nb,bb,la,Jb,pa,Gb,Vb,tb,lb,Na,$a,La,ab,ma,ha,ta,ka,p,ra,ea,Ca=Oa.ChartTypeFactory;(function(){var E=com.kingdee.bos.qing.common;
wa=E.DomUtil;Ga=E.NumberFormater;Ia=E.DateFormater;hb=E.CanvasUtil;ib=E.ColorUtil;E=com.kingdee.bos.qing.framework.common;nb=E.MultilanguageManager.createPackageAccessor(Oa);E=com.kingdee.bos.qing.ui.component;bb=E.HelpIcon;la=E.SimpleConfirmer;Jb=E.MenuModel;pa=E.Menu;E=com.kingdee.bos.qing.common.ui;Gb=E.RelativePeriodPanel;E=com.kingdee.bos.qing.core;Vb=E.CommonJsonParser;tb=E.Icons;lb=E.LinkageRegister;Na=E.UserOperationReporter;E=com.kingdee.bos.qing.core.commonui;$a=E.LinkageHelper;E=com.kingdee.bos.qing.chart.model;
La=E.DiscreteColorLegendModel;E=com.kingdee.bos.qing.core.model;ab=E.DiscreteFilter;ma=E.ContinuousFilter;ha=E.ContinuousDateFilter;ta=E.MetaField;ka=E.AbstractAnalyticalField;E=com.kingdee.bos.qing.core.controller;p=E.CommandManager;E=com.kingdee.bos.qing.square.controller;ra=E.ActionRollIn;ea=E.ActionRollOut})();Lb.STYLE_PROMPTLABEL_COLOR="promptLabelColor";Lb.STYLE_PROMPTLABEL_FONTSIZE_ENHANCED="promptLabelFontSizeEnhanced";Lb.STYLE_CRUMB_COLOR="crumbColor";Lb.STYLE_CRUMB_FONTSIZE_ENHANCED="crumbFontSizeEnhanced";
var U=new function(){Yb.call(this);var E=this,u,g,d;this.bindAssociatedChart=function(q,t){g=q;d=t};this.protectedInitUi=function(q){q.on("mousemove",e);q.on("mouseleave",c);u=$(document.body);u.append(q)};this.protectedGetJqOwner=function(){return u};var e=function(q){(q=b(q))&&E.show(q[0],q[1])},c=function(q){b(q)},b=function(q){if(!g.is(":visible"))return null;var t=E.protectedGetJqOwner()[0],w=wa.getCurrentTargetPosition(q);var x=t.clientLeft;var A=t.clientTop;for(q=q.target;q!=t;){if(q==document.body)throw Error("Not immediate family.");
var N=q.parentNode;x+=N.clientLeft+q.offsetLeft;A+=N.clientTop+q.offsetTop;q=N;for(N=q.nodeName.toLowerCase();"td"==N||"tr"==N||"tbody"==N;)q=q.parentNode,N=q.nodeName.toLowerCase()}x=[x+w[0],A+w[1]];w=x[0];x=x[1];t=wa.upwardCoordinate(g[0],[0,0],t);A=x-t[1];return w-t[0]>g.prop("clientWidth")||A>g.prop("clientHeight")?(E.hide(),d.clearMouseState(),null):[w,x]}};Va.STATE_DATA_EMPTY=1;Va.STATE_MISSING_MEASURE=2;Va.STATE_BLOATED_DIMENSION=3;Va.STATE_NO_ADVANCED=4})();(function(){function Ya(){g.call(this);var M=this,ia=this.protectedMethod,sa,mb,Wa,xb,gb,fb,Da,Y,z,D,I,P,O,R,Z=!1,G,J,ja,Q=!1,T=!1,za=!1;this.setGlobalDependence=function(h){sa=h};this.metaChanged=function(h){Y&&h&&(Y.setMeta(h),h.addChangedListener(function(r){mb.isAnyCalculatedFieldUsed()&&mb.checkAllFields()}))};this.isAnyCalculatedFieldUsed=function(h){return mb.isAnyCalculatedFieldUsed(h)};this.isModelPageMatched=function(h){return h.getModel()instanceof $a};this.setModelPage=function(h){Ra();
if(h){var r=h.getPreferences();Wa&&Wa.removePreviewSetupChangedListener(Nb);Wa=r;Wa.addPreviewSetupChangedListener(Nb);Za(h.getModel())}else sb()};this.getModelPage=function(){var h=new la;h.setModel(mb);h.setPreferences(Wa);return h};this.getJqUi=function(){if(!xb){xa();var h=m();P=new wb;P.setDependence(h);P.setMetaPaneVisitor(qa());O=new e;I=$("<div>");I.addClass("square-designarea");I.append(P.getJqUi());I.append(O.getJqUi());W.layoutCtrlWithLRTB(I,0,0,null,Ma.DESK_PADDING_TOP,Ma.DESK_PADDING_BOTTOM);
D=new zb;D.setTitle(fa.get("filterCardTitle","\u7b5b\u9009\u5668"));D.setDependence(h);G=$("<div>");var r=D.getJqUi();W.layoutCtrlWithLRTB(r,0,0,null,0,0,null);h=$("<div>");h.addClass("square-filtercardwrap");h.append(r);W.layoutCtrlWithLRTB(h,Ma.DESK_PADDING_LEFT,0,null,0,Ma.DESK_PADDING_BOTTOM,null);r=$("<div>");r.addClass("square-exhibitionwrap");r.append(R.getJqUi());gb=new Ea;gb.setHorizontalSplit(!1);gb.setSplitLineWide(Ma.DESK_SPLIT_GAP_V);gb.setResizeMode(Ea.RESIZE_MODE_SECOND_FIXED);gb.setFirstSize(-1,
200,-1);gb.setSecondSize(160,60,400);gb.setSecondChild(Ea.createChildWrapper(h));Da=new Ea;Da.setHorizontalSplit(!0);Da.setSplitLineWide(Ma.DESK_SPLIT_GAP_H);Da.setResizeMode(Ea.RESIZE_MODE_SECOND_FIXED);Da.setFirstSize(-1,120,-1);Da.setSecondSize(234,20,600);Da.setFirstChild(Ea.createChildWrapper(r,R.resize));Da.setSecondChild(Ea.createChildWrapper(G));fb=new Ea;fb.setHorizontalSplit(!0);fb.setSplitLineWide(Ma.DESK_SPLIT_GAP_H);fb.setResizeMode(Ea.RESIZE_MODE_FIRST_FIXED);fb.setFirstSize(210,120,
400);fb.setSecondSize(-1,120,-1);fb.setFirstChild(Ea.createChildWrapper(I,Ub));fb.setSecondChild(Da);xb=new Ea;xb.setHorizontalSplit(!0);xb.setSplitLineWide(Ma.DESK_SPLIT_GAP_H);xb.setResizeMode(Ea.RESIZE_MODE_FIRST_FIXED);xb.setFirstSize(190,100,400);xb.setSecondSize(-1,600,-1);xb.setFirstChild(gb);xb.setSecondChild(fb);xb.getJqUi().addClass("sa-desk");W.makeSelectable(xb.getJqUi(),!1);Ab();z=new c;z.bindParentUi(sa.getTopJqUi());Db(Y,z);h=new c;h.bindParentUi(sa.getTopJqUi());Db(Y,h);D.setDragDropHandler(h);
sb()}return xb.getJqUi()};var da=this.born;this.born=function(){Ra();da()};this.protectedCreateToolbarIndividualPart=function(h){var r=$("<div>");h.addSeperatorForView(r);h.addButtonForView(r,Zb,"btn_clear",fa.get("clear","\u6e05\u9664"));var k=h.addButtonForView(r,Fb,null,"");h.addMenuButtonForView(r,Ob,"btn_preview",fa.get("previewSetup","\u9884\u89c8\u5c3a\u5bf8"),null);ob(k);return r};this.protectedResizeImpl=function(){xb.resize()};this.protectedShowExecutingAccident=function(h,r){$b();Ka(h,
r);T=!0};this.protectedAppendNecessaryDimensions=function(){var h=new u;h.setValue(sa.getMeta(),mb);sa.getCommandManager().perform(h)};this.suspend=function(){T=!0;Ka();Aa()};this.reExecute=function(){Fa()};this.destroy=function(){R.destroy()};var Aa=function(){ia.fireExhibitionContentChangedEvent(!Q&&Z)},Za=function(h){$b();sa.getCommandManager().reset();mb&&mb.removeModelChangedListener(ac);mb=h;mb.addModelChangedListener(ac);D.setItemModelSet(mb.getFilterSet());D.repaint();Cb();R.setPreviewSetup(Wa.getPreviewSetup());
kb();Fa()},sb=function(){var h=new Na,r;2<=ca.length?r=ca[1]:1==ca.length&&(r=ca[0]);r&&h.setPreviewSetup(r.getPreviewSetup());Wa&&Wa.removePreviewSetupChangedListener(Nb);Wa=h;Wa.addPreviewSetupChangedListener(Nb);Za(new $a)},Ab=function(){Y=new d;Y.setGlobalDependence(sa);M.metaChanged(sa.getMeta());var h=Y.getJqUi();W.layoutCtrlWithLRTB(h,Ma.DESK_PADDING_LEFT,0,null,Ma.DESK_PADDING_TOP,0,null);var r=$("<div>");r.append(h);gb.setFirstChild(Ea.createChildWrapper(r));Y.addClearSelectedAsker(function(k){W.isDescendent(k.getTarget(),
P.getJqUi()[0])&&k.retain()})},xa=function(){R=new ba;R.setCommandManagerGetter(sa.getCommandManager);R.setContextApi({createFacade:sa.createFacade,getDependentMeta:function(h){return mb.createDependentMeta(sa.getMeta(),h)},getSquareModel:function(){return mb},getJsonAdditionalFilters:function(){return null}});R.getJqUi().css("display","none")},Ra=function(){R.getJqUi().css("display","")},kb=function(){var h=mb.getChart().getChartProperty().getTitle();h=h?h:fa.get("defaultExhibitionTitle","\u5361\u7247\u9884\u89c8");
var r=mb.getChart().getChartProperty().getDescription();R.setTitle(h,r)},Db=function(h,r){r.bindDragUi(h.getJqUi(),function(k){k=h.getDraggingMetaField(k);if(!k)return null;h.lockScroll(!0);var v=new Mb;v.setMetaField(k);return v},function(k,v){k&&h.clearSelecteds();h.lockScroll(!1)},null,function(k){})},Ub=function(h){h=I.innerWidth();h=P.relayout(h);var r=P.getJqUi(),k=r.outerWidth()-r.innerWidth();W.layoutCtrlWithLRTB(r,0,0,null,0,null,h-k);h=h+Ma.CARD_GAP+1;W.layoutCtrlWithLRTB(O.getJqUi(),0,
0,null,h,0,null);O.relayout()},$b=function(){ja&&ja.isVisible()&&ja.hideDialog();$(document.body).find(".sa-ctrl-common-modallayer").remove()},Cb=function(){var h=mb.getChartTypeName();h=N.getInstance(h);P.updateDisplay(h);var r=h.createFieldCards(pb,mb.getChart()),k=m();O.clear();for(var v=0;v<r.length;v++){var y=r[v];O.addChild(y);y.setDependence(k);y.setDragDropHandler(z);y.setItemPressListener(n)}O.relayout();h=h.createPropertyPane();J&&(J.setSquareModel(null),J.setGlobalDependence(null));J=h;
J.setSquareModel(mb);J.setGlobalDependence(sa);h=J.getJqUi();G.empty();G.append(h);W.layoutCtrlWithLRTB(h,0,Ma.DESK_PADDING_RIGHT,null,Ma.DESK_PADDING_TOP,Ma.DESK_PADDING_BOTTOM)},Nb=function(h){R.setPreviewSetup(Wa.getPreviewSetup())},ac=function(h){if(!za){var r=mb.getChart().getRollSet();h.isContainItemModelSet(r)&&(h.isContainKey(ma.KEY_ADD)||h.isContainKey(ma.KEY_REMOVE)||h.isContainKey(ma.KEY_MOVE)||h.isContainKey(pa.KEY_ROLE))&&mb.getChart().getRollInState().updateItemCountLimited(r);if(h.isContainChartPropertyKey()&&
(h.isContainKeys([ta.KEY_TITLE,ta.KEY_DESCRIPTION])&&kb(),h.isRepaintNeeded()&&!T&&R.repaint(mb.getChart().getChartProperty()),!h.isExecuteNeeded()&&!T))return;h.isContainKey($a.KEY_CHART_TYPE)&&(Cb(),kb());h.isContainKeys([$a.KEY_CHART_TYPE,ma.KEY_REMOVE])&&$b();r=!1;var k=mb.getFilterSet();h.isContainItemModelSet(k)&&(h.isContainKey(ma.KEY_ADD)?(h=h.getTargetItemModels(k,ma.KEY_ADD),r=!na(h)):h.isContainKey(ma.KEY_REMOVE)?(h=h.getTargetItemModels(k,ma.KEY_REMOVE),r=!na(h)):h.isContainKey(ma.KEY_MOVE)&&
(r=!0));r||sa.getCommandManager().untilWakeup(Fa)}},cc=function(h){Fa()},na=function(h){for(;0<h.length;)return!0;return!1},Fa=function(){T=!0;if(Q)Ka(),Aa();else if(Aa(),T=!1,mb.isExecutableContentEmpty())ub(null,fa.get("prepareToStart","\u8bf7\u5f00\u59cb\u4f60\u7684\u8868\u6f14~~~"));else{var h="";for(var r=0,k=O.getChildCount();r<k;r++){var v=O.getChild(r);if(v instanceof pb){var y=v.getItemModelSet();y.getItemModelCount()<y.getItemCountMin()&&(h&&(h+="\n"),h+=v.getComplexTitle())}}h&&(h=fa.get("missingNecessaryField",
"\u4ee5\u4e0b\u4f4d\u7f6e\u7f3a\u5c11\u5b57\u6bb5")+"\n"+h);h?ub(null,h):Qa()}},Qa=function(){var h=mb.createDependentMeta(sa.getMeta()),r=sa.createFacade(function(v){ub(v.squareView)},function(v,y){return-1==v?(T=!0,db(),!0):ia.executingPerformanceErrorHandler(r,v,y)||ia.executingCommonErrorHandler(v,y)?!0:!1},function(){k.hideWaiting()});r.setCancelable(!0);r.setShowBlocking(!1);r.setProgressListener(function(v){k.hookProgressDisplayer(bb.makeUiCreator(v))});h=r.squareExecute(h,mb,null);var k=Ua(h)},
Ua=function(h){var r=new nb;r.hookOwner($(document.body),null);r.setIconVisible(!0);r.showWaiting(bb.getWaitingText(),h);return r},Ka=function(h,r){var k=R.getJqUi().parent(),v=k.find(".square-exhibition-shade");0==v.length&&(v=$("<div>"),v.addClass("square-exhibition-shade"),v.appendTo(k),W.layoutCtrlWithLRTB(v,0,0,null,0,0,null));v.empty();h&&(k=$("<div>"),k.css({position:"relative",padding:"20px"}),k.addClass("square-exhibition-shade-text"),k.text(h),k.appendTo(v));r&&r(v);return v},Xa=function(){R.getJqUi().parent().find(".square-exhibition-shade").remove()},
db=function(){var h=Ka(fa.get("executingCanceled","\u5f53\u524d\u6267\u884c\u5df2\u88ab\u53d6\u6d88\u3002")),r=new Ia;r.setText(fa.get("executingRetry","\u91cd\u65b0\u6267\u884c"));r.addActionListener(function(k){Xa();Fa()});r.getJqUi().css({position:"relative",width:"120px",height:"30px",margin:"20px"});r.getJqUi().appendTo(h)},ub=function(h,r){Xa();R.setModel(h,mb.getChart(),r);Z=h?!0:!1;Aa()},Ob=function(){for(var h=Wa.getPreviewSetup(),r=new Oa,k=0;k<ca.length;k++){var v=ca[k],y=v.getPreviewSetup(),
L=!1;y.getWidth()==h.getWidth()&&y.getHeight()==h.getHeight()&&(L=!0);var B=new ka;B.setCaption(fa.get("changePreviewSetup","\u5207\u6362\u9884\u89c8\u5c3a\u5bf8\u4e3a:#1").replace("#1",v.getDisplayText()));B.setMethod(Wa.getPreviewSetup,Wa.setPreviewSetup);B.setValue(y);v=b.createRadioMenuItem(v.getDisplayText(),"preview",L,B,sa.getCommandManager());r.addItemModel(v)}return r},Zb=function(){var h=new E;h.setValue(mb,N.getInstance,fa.get("clear","\u6e05\u9664"));sa.getCommandManager().perform(h)},
Fb=function(h){var r=!Q;Q!=r&&(Q=r,!Q&&T&&Fa());ob(h)},ob=function(h){Q?(h.setText(fa.get("exeImmediately","\u5373\u65f6\u6267\u884c")),h.setIconName("btn_resume"),h.setTooltips(fa.get("exeImmediatelyCurrent","\u5f53\u524d\u4e3a\u201c\u6682\u7f13\u6267\u884c\u201d\u6a21\u5f0f\uff0c\u70b9\u51fb\u5207\u6362\u4e3a\u201c\u5373\u65f6\u6267\u884c\u201d"))):(h.setText(fa.get("exeDelay","\u6682\u7f13\u6267\u884c")),h.setIconName("btn_suspend"),h.setTooltips(fa.get("exeDelayCurrent","\u5f53\u524d\u4e3a\u201c\u5373\u65f6\u6267\u884c\u201d\u6a21\u5f0f\uff0c\u70b9\u51fb\u5207\u6362\u4e3a\u201c\u6682\u7f13\u6267\u884c\u201d")))},
qa=function(){return{getSelecteds:function(){for(var h=Y.getSelecteds(),r=[],k=0;k<h.length;k++){var v=h[k];v.isInvalid()||r.push(v)}return r},clearAllSelecteds:function(){Y.clearSelecteds()}}},a=function(h){ja||(ja=new q(M.getJqUi()),ja.setCommandManager(sa.getCommandManager()));ja.showDialog();ja.setModel(h)},l=function(h){var r=new t;r.setCommandManager(sa.getCommandManager());r.showDialog(h)},n=function(h){ja&&ja.isVisible()&&h.isMeasure()&&h!=ja.getModel()&&(ja.acceptEditing(),ja.setModel(h))},
f=function(h){za=h},m=function(){return{getGlobal:function(){return sa},getSquareModel:function(){return mb},showNumberFormatSettingDialog:a,showDateFormatSettingDialog:l,setExecutingDumb:f,askToExecute:cc}}}function Lb(){var M=this,ia,sa,mb=$("<div>"),Wa=$("<div>"),xb=$("<div>");this.setDependence=function(Da){ia=Da};this.getJqUi=function(){sa||(sa=$("<div>"),sa.addClass("square-card"),mb.addClass("square-card-titlebar"),mb.css("position","absolute"),mb.css("left",0),mb.css("right",0),mb.css("top",
0),mb.css("height",Ma.CARD_TITLE_HEIGHT+"px"),mb.appendTo(sa),Wa.addClass("square-card-title"),Wa.appendTo(mb),xb.addClass("square-card-container"),xb.css("position","absolute"),xb.css("left",1),xb.css("right",1),xb.css("top",Ma.CARD_TITLE_HEIGHT+"px"),xb.css("bottom",0),xb.appendTo(sa),M.protectedInitCustomUi(xb));return sa};this.setTitle=function(Da){Wa.text(Da)};var gb=function(){return Wa.text()};this.getComplexTitle=function(){return" <"+gb()+"> "};this.protectedInitCustomUi=function(Da){};var fb=
function(){return ia.getSquareModel()};this.protectedMethod={getGlobal:function(){return ia.getGlobal()},getSquareModel:fb,getChartTypeInstance:function(){var Da=fb().getChartTypeName();return N.getInstance(Da)},getTitle:gb,getJqAll:function(){return sa},getJqContainer:function(){return xb},showNumberFormatSettingDialog:function(Da){ia.showNumberFormatSettingDialog(Da)},showDateFormatSettingDialog:function(Da){ia.showDateFormatSettingDialog(Da)},createSquareFieldFromMetaField:function(Da){var Y=new La;
Y.setMetaField(Da);Da.getDataType()==Jb.DT_NUMBER?(Da=Da.isRelativeAggregation()?pa.AGGREGATION_AGG:pa.AGGREGATION_SUM,Y.setRole(pa.ROLE_MEASURE,Da),Y.setContinuous(!0)):(Y.setRole(pa.ROLE_DIMENSION),Y.setContinuous(!1),Da.getHierachy()&&Y.setMetaField(Da.getHierachy()[0]));return Y},setExecutingDumb:function(Da){ia.setExecutingDumb(Da)},askToExecute:function(Da){ia.askToExecute(Da)}}}function wb(){Lb.call(this);var M=this,ia=this.protectedMethod,sa=0,mb=0,Wa,xb,gb=!1;this.setMetaPaneVisitor=function(z){xb=
z};this.protectedInitCustomUi=function(z){z.on("click",function(D){D=$(D.target);if(D.hasClass("sa-charttypecard-button")){D=D.data("model");var I=ia.getSquareModel(),P=I.getChartTypeName(),O=N.getInstance(P),R=I.getChart();P=P!=D.getName();var Z=R.getGarbageProperties();O=O.willTransform(R);R=O.collectNewSelecteds;for(var G=xb.getSelecteds(),J=[],ja=0;ja<G.length;ja++){var Q=G[ja],T=ia.createSquareFieldFromMetaField(Q);Q.getDataType()==Jb.DT_DATE&&T.getRole()==pa.ROLE_DIMENSION&&T.setPartValue(pa.PARTVALUE_DATE_YEAR);
J.push(T)}R.call(O,J);O=D.transform(O);O.setGarbageProperties(Z);Z=ia.getGlobal().getCommandManager();R=new ka;R.setCaption(fa.get("changeChartTypeTo","\u56fe\u8868\u7c7b\u578b\u5207\u6362\u4e3a: #1").replace("#1",D.getText()));R.setMethod(I.getChart,I.setChart);R.setValue(O);Z.perform(R);xb.clearAllSelecteds();P&&Wa&&Wa()}});z.on("mouseover",function(D){Y($(D.target))});z.on("mouseleave",function(D){Y(null)});z.on("dblclick",function(D){D.ctrlKey&&D.altKey&&(gb=!0)})};this.updateDisplay=function(z){fb(z);
Da()};this.relayout=function(z){if(sa!=z){sa=z;var D=ia.getJqContainer();z-=2;D.empty();var I=4,P=4;z=Math.max(36,z);for(var O=N.getAllInstance(),R=0;R<O.length;R++){I+28+4>z&&(I=4,P+=27);var Z=O[R];if(Z.isReleased()||gb){var G=$("<div>");G.data("model",Z);G.addClass("sa-charttypecard-button");G.css("left",I);G.css("top",P);G.css("width",28);G.css("height",21);Ja.background(G,Z.getIconFileName());G.appendTo(D);I+=34}}mb=Ma.CARD_TITLE_HEIGHT+(P+21+4)+2;ia.getSquareModel()&&Da()}return mb};this.setChangedCoworker=
function(z){Wa=z};var fb=function(z){M.setTitle(fa.get("chartTypeCardTitle","\u56fe\u8868\u7c7b\u578b")+": "+z.getText())},Da=function(){var z=ia.getChartTypeInstance(),D=ia.getJqContainer().find(".sa-charttypecard-button");D.removeClass("sa-charttypecard-button_selected");for(var I=0;I<D.length;I++){var P=$(D[I]);if(P.data("model").getName()==z.getName()){P.addClass("sa-charttypecard-button_selected");break}}},Y=function(z){z&&z.hasClass("sa-charttypecard-button")?(z=z.data("model"),fb(z)):fb(ia.getChartTypeInstance())}}
function eb(){e.Child.call(this);Lb.call(this);var M=this,ia=this.protectedMethod,sa,mb,Wa,xb=[],gb,fb,Da,Y=120;this.setItemModelSet=function(R){sa=R;sa.addChangedListener(z)};this.getItemModelSet=function(){return sa};this.destroy=function(){sa.removeChangedListener(z);Da.unbindDragUi(ia.getJqAll());Da.unbindDropUi(ia.getJqAll(),ia.getJqContainer());Da=null;D()};this.protectedInitCustomUi=function(R){sa&&I()};this.getMinHeight=function(){return 60};this.setPerfectHeight=function(R){Y=R};this.getPerfectHeight=
function(){return Y};this.setRequestRelayoutListener=function(R){};this.setItemPressListener=function(R){gb=R};this.setDragDropHandler=function(R){Da=R;var Z=ia.getGlobal().getCommandManager(),G=-1;R.bindDragUi(ia.getJqAll(),function(J){if(J.hasClass("sa-carditem-text")){a:{J=J.parent()[0];for(var ja=0;ja<xb.length;ja++)if(xb[ja].getJqUi()[0]==J){G=ja;break a}G=-1}J=xb[G];J.getJqUi().addClass("sa-carditem_draging");J=J.getItemModel();ja=new Mb;ja.setItemModel(J);return ja}return null},function(J,
ja){if(0<=G){var Q=xb[G];Q.getJqUi().removeClass("sa-carditem_draging");ja=ja?ja.dropOwner:null;if(J&&ja!==M){J=ia.getSquareModel().getChart().getRollInState();var T=fa.get("moveItemBetweenCards","\u79fb\u52a8#1\uff0c\u4ece#2\u5230#3");T=T.replace("#1",Q.getItemModel().getComplexText());T=T.replace("#2",M.getComplexTitle());T=T.replace("#3",ja.getComplexTitle());ja=new U;ja.setValue(sa,Q.getItemModel(),null,J);Z.compositeStart(T);Z.perform(ja)}}},function(){G=-1},function(J){var ja=null;sa!=ia.getSquareModel().getFilterSet()&&
(ja=ia.getSquareModel().getChart().getRollInState());J=J.getItemModel();var Q=new U;Q.setValue(sa,J,M.getComplexTitle(),ja);Z.perform(Q)});R.bindDropUi(ia.getJqAll(),ia.getJqContainer(),function(J,ja){O();J=xb.length;ja=(ja-.5*Ma.CARD_ITEM_V_SPACING)/(Ma.CARD_ITEM_HEIGHT+Ma.CARD_ITEM_V_SPACING)+.33;ja=parseInt(0>ja?0:ja);ja>=J&&(ja=J);J={action:"insert",index:ja,dropOwner:M};0<=G&&"insert"==J.action&&(J.index==G||J.index==G+1)&&(J.action="none",J.index=null);ja=J.index;"replace"==J.action?xb[ja].getJqUi().addClass("sa-carditem_replacable"):
"insert"==J.action&&(mb||(mb=$("<div>"),mb.addClass("sa-card-insertprompt-v"),mb.appendTo(ia.getJqContainer())),mb.css("top",ja*(Ma.CARD_ITEM_HEIGHT+Ma.CARD_ITEM_V_SPACING)));return J},function(){O()},function(J,ja){return"insert"==ja.action},function(J,ja){O();var Q=ja.index;"insert"==ja.action&&M.protectedDropHandlerDataPusher(Z,J,Q,0<=G)})};this.protectedDropHandlerDataPusher=function(R,Z,G,J){throw Error("Override me.");};var z=function(R,Z){Z!=ma.KEY_ADD&&Z!=ma.KEY_REMOVE&&Z!=ma.KEY_MOVE||I()};
this.setOperatingPrompt=function(R){R?(fb||(fb=$("<div>"),fb.addClass("sa-card-operating-prompt"),fb.appendTo(ia.getJqContainer())),fb.text(R)):(fb&&fb.remove(),fb=null)};var D=function(){for(var R=0;R<xb.length;R++){var Z=xb[R];Z.destroy();Z.getJqUi().remove()}xb=[]},I=function(){D();for(var R=ia.getJqContainer(),Z=0;Z<sa.getItemModelCount();Z++){var G=sa.getItemModel(Z);G=P(G);R.append(G.getJqUi());xb.push(G)}fb&&(xb.length?fb.hide():fb.show());Z=xb;G=1;for(var J=0;J<Z.length;J++){G+=Ma.CARD_ITEM_V_SPACING;
var ja=Z[J].getJqUi();W.layoutCtrlWithLRTB(ja,4,4,null,G,null,Ma.CARD_ITEM_HEIGHT-2);G+=Ma.CARD_ITEM_HEIGHT}Wa||(Wa=$("<div>"),Wa.appendTo(R));W.layoutCtrl(Wa,0,G,1,20);return xb},P=function(R){var Z=new Yb(R);Z.setActionListener(function(G,J){var ja=G.getJqUi(),Q=ja.data("menu");if(Q&&Q.isShowing())ja.data("menu",null),Q.hide();else{var T=Z.getJqUi(),za=T.outerWidth(),da=T.outerHeight(),Aa=Math.min(180,Math.max(za,140));Q=new Va;Q.setWidth(Aa);Q.setModel(M.protectedCreateMenuModel(ja,G,ia.getGlobal().getCommandManager()));
Q.setHideListener(function(){ja.data("menu",null)});ja.data("menu",Q);G=ia.getGlobal().getTopJqUi();za=[za-Aa-2,da+1];za=W.upwardCoordinate(T[0],za,G[0]);Q.show(G,za[0],za[1],J,!0,[0,-da-2])}});Z.setTextPressListener(function(G){gb&&gb(R)});return Z};this.protectedCreateMenuModel=function(R,Z,G){throw Error("Override me.");};var O=function(){mb&&mb.css("top","-65536px");for(var R=0;R<xb.length;R++)xb[R].getJqUi().removeClass("sa-carditem_replacable")};this.protectedMethod.updateUi=I}function pb(){eb.call(this);
var M=this,ia=this.protectedMethod;this.protectedDropHandlerDataPusher=function(Wa,xb,gb,fb){(fb=xb.getMetaField())?(xb=ia.getChartTypeInstance().smartCreateSquareFieldFromMetaField(fb,ia.getSquareModel().getChart(),M.getItemModelSet()),xb||(xb=ia.createSquareFieldFromMetaField(fb),(fb=M.getItemModelSet().getInitialDateHierachyForField(xb,gb))&&xb.setPartValue(fb))):xb=xb.getItemModel();fb=ia.getSquareModel().getChart().getRollInState();var Da=new Ca;Da.setValue(M.getItemModelSet(),xb,gb,M.getComplexTitle(),
fb);Wa.perform(Da);Wa.isCompositeStarted()&&Wa.compositeEnd()};this.protectedCreateMenuModel=function(Wa,xb,gb){var fb=xb.getItemModel(),Da=fb.getMetaField().getDataType()==Jb.DT_DATE&&fb.isDimension(),Y=fb.getMetaField().getDataType()==Jb.DT_DATE&&fb.isMeasure()&&fb.getAggregation()!=pa.AGGREGATION_COUNT&&fb.getAggregation()!=pa.AGGREGATION_CNTD;Wa=new Oa;if(Da||Y)Wa.addItemModel(Va.createActionMenuItem(fa.get("dataFormatForDate","\u6570\u5b57\u683c\u5f0f")+"...",function(z){ia.showDateFormatSettingDialog(fb)})),
Wa.addSeperator();fb.isMeasure()&&!Y&&(Wa.addItemModel(Va.createActionMenuItem(fa.get("dataFormatForNumber","\u6570\u5b57\u683c\u5f0f")+"...",function(z){ia.showNumberFormatSettingDialog(fb)})),Wa.addSeperator());fb.getMetaField().isCanAsDimension()&&fb.getMetaField().isCanAsMeasure()&&(sa(Wa,fb,gb),Wa.addSeperator());fb.isMeasure()&&ia.getGlobal().getMeta().isNormalSrcMode()&&(mb(Wa,fb,gb),Wa.addSeperator());fb.isInvalid()||(Da=Va.createActionMenuItem(fa.get("rename","\u91cd\u547d\u540d"),function(z){xb.modifyDisplayName(gb)}),
Wa.addItemModel(Da));Da=ia.getSquareModel().getChart().getRollInState();Y=new U;Y.setValue(M.getItemModelSet(),fb,M.getComplexTitle(),Da);Da=b.createActionMenuItem(fa.get("remove","\u79fb\u9664"),Y,gb);Wa.addItemModel(Da);return Wa};var sa=function(Wa,xb,gb){var fb=function(Z){for(var G=gb.createCompositeAction(),J=0;J<Z.length;J++){var ja=Z[J];G.appendUnitAction(ja);0==J&&G.setCaption(ja.getCaption())}return G},Da=function(Z){var G=new p(xb);G.setValue(Z);return G},Y=function(Z){var G=new ra(xb);
G.setValue(Z);return G},z=xb.getMetaField().getDataType()==Jb.DT_NUMBER,D=xb.getMetaField().getDataType()==Jb.DT_DATE;if(D){var I=Va.createSubMenu(fa.get("dimension","\u7ef4\u5ea6"),!0,"role");Wa.addItemModel(I);var P=function(Z){var G=Da(pa.ROLE_DIMENSION),J=Y(Z);G=fb([G,J]);J=pa.partValueToString(Z);Z=Z==xb.getPartValue();return b.createRadioMenuItem(J,"role",Z,G,gb)};I.addItemModel(P(pa.PARTVALUE_DATE_YEAR));I.addItemModel(P(pa.PARTVALUE_DATE_QUARTER));I.addItemModel(P(pa.PARTVALUE_DATE_MONTH));
I.addItemModel(P(pa.PARTVALUE_DATE_DAY));I.addItemModel(P(pa.PARTVALUE_DATE_YQ));I.addItemModel(P(pa.PARTVALUE_DATE_YM));I.addItemModel(P(pa.PARTVALUE_DATE_YMD))}else I=Da(pa.ROLE_DIMENSION),P=Y(null),I=fb([I,P]),P=xb.isDimension(),I=b.createRadioMenuItem(fa.get("dimension","\u7ef4\u5ea6"),"role",P,I,gb),Wa.addItemModel(I);var O=xb.isMeasure(),R=xb.getAggregation();I=Va.createSubMenu(fa.get("measure","\u5ea6\u91cf")+(O?"("+pa.aggregationToString(R)+")":""),!0,"role");Wa.addItemModel(I);Wa=function(Z){var G=
Da(Z);if(!D||!(R==pa.AGGREGATION_MAX&&Z==pa.AGGREGATION_MIN||R==pa.AGGREGATION_MIN&&Z==pa.AGGREGATION_MAX)){var J=Y(null);G=fb([G,J])}J=O&&R==Z;Z=pa.aggregationToString(Z);return b.createRadioMenuItem(Z,"role",J,G,gb)};z&&(I.addItemModel(Wa(pa.AGGREGATION_SUM)),I.addItemModel(Wa(pa.AGGREGATION_AVG)));if(z||D)I.addItemModel(Wa(pa.AGGREGATION_MAX)),I.addItemModel(Wa(pa.AGGREGATION_MIN));I.addItemModel(Wa(pa.AGGREGATION_COUNT));I.addItemModel(Wa(pa.AGGREGATION_CNTD))},mb=function(Wa,xb,gb){var fb=fa.get("quickSetup",
"\u6309\u65e5\u671f\u8ba1\u7b97"),Da=Va.createSubMenu(fb);Wa.addItemModel(Da);Wa=function(Y){var z=xb.getQuickSetup()==Y,D=pa.quickSetupToString(Y);return Va.createCheckbox(D,z,function(I){I=I.isChecked()?Y:null;var P=new ka;P.setCaption(fb+"-"+D);P.setMethod(xb.getQuickSetup,xb.setQuickSetup);P.setValue(I);gb.perform(P)})};Da.addItemModel(Wa(pa.QUICKSETUP_LASTPERIOD_VALUE));Da.addItemModel(Wa(pa.QUICKSETUP_LASTPERIOD_DIFF));Da.addItemModel(Wa(pa.QUICKSETUP_LASTPERIOD_RATIO));Da.addSeperator();Da.addItemModel(Wa(pa.QUICKSETUP_SAMEPERIODLASTYEAR_VALUE));
Da.addItemModel(Wa(pa.QUICKSETUP_SAMEPERIODLASTYEAR_DIFF));Da.addItemModel(Wa(pa.QUICKSETUP_SAMEPERIODLASTYEAR_RATIO))}}function zb(){function M(){wa.call(this);var P=this,O=this.protectedMethod,R=this.showDialog;this.showDialog=function(G,J,ja,Q,T){O.setTitle(fa.get("filterDialogTitle","#1\u6570\u636e\u7b5b\u9009").replace("#1",G.getComplexText()));var za=A.create(J);O.setContentPaneCreator(function(){return za.getJqUi()});O.setClosingAction(function(da){var Aa=!1;da&&(Aa=za.accepting(Q));!Aa&&T&&
T()});G=$(document.body);J=za.getSuggestDialogSize(G);Z(G,ja,J);R()};var Z=function(G,J,ja){var Q=ja[0],T=ja[1],za=ja[2],da=[J.outerWidth(),0];da=W.upwardCoordinate(J[0],da,G[0]);G=G.innerHeight()-10;da[1]+T>G&&(da[1]=G-T);P.setSize(Q,T);P.setPosition(da[0],da[1]);za&&(Q=ja[3],ja=ja[4],O.setMinSize(Q,ja),O.getDialogCtrl().setMinSize(Q,ja),O.getDialogCtrl().setResizeEnabled())}}eb.call(this);var ia=this,sa=this.protectedMethod,mb=this.setItemModelSet;this.setItemModelSet=function(P){mb(P);P.traversalItems(function(O){var R=
O.getFilter();O=O.getSquareField();R.checkState(O);R.isStateValid()||Wa(R,O)})};this.repaint=function(){sa.updateUi()};var Wa=function(P,O){var R=new pa.InvalidPrompt;R.setLevel(pa.InvalidPrompt.LEVEL_FILTER_UNMATCHED,!0);R.setPromptText(P.getStateDisplay());O.setInvalidPrompt(R)};this.protectedCreateMenuModel=function(P,O,R){var Z=O.getItemModel(),G=Z.getUsableFilter(),J=Z.getSquareField(),ja=new Oa;ja.addItemModel(Va.createActionMenuItem(fa.get("filterSelectData","\u6570\u636e\u7b5b\u9009")+"...",
function(Aa){Aa=sa.getSquareModel();var Za=Aa.createDependentMeta(sa.getGlobal().getMeta());z(Za,Aa,J,function(sb){sb=Gb.create(sb);G.setPreparedModel(sb);G.isStateValid()?I(P,Z,R):(Wa(G,J),sb=new hb,sb.setOptionType(hb.OPTION_OK),sb.setMessage(G.getStateDisplay()),sb.showDialog())})}));var Q=fa.get("outsideAllowed","\u5141\u8bb8\u9605\u8bfb\u8005\u81ea\u884c\u7b5b\u9009"),T=Z.isOutsideAllowed();ja.addItemModel(Va.createCheckbox(Q,T,function(Aa){Aa=new ka;Aa.setCaption(J.getComplexText()+" "+Q+" - "+
(T?fa.get("outsideAllowedFalse","\u5426"):fa.get("outsideAllowedTrue","\u662f")));Aa.setMethod(Z.isOutsideAllowed,Z.setOutsideAllowed);Aa.setValue(!T);R.perform(Aa)}));if(G instanceof tb){var za=function(Aa,Za){var sb=G.getCtrlType();!sb&&(sb=tb.CTRLTYPE_CHECKBOX_POPUP);sb=sb==Za;var Ab=new ea;Ab.setCaption(fa.get("filterChangeProperty","\u7b5b\u9009\u5668#1: #2").replace("#1",J.getComplexText()).replace("#2",Aa));Ab.setValue(G,Za);return b.createRadioMenuItem(Aa,"ctrlType",sb,Ab,R)},da=Va.createSubMenu(fa.get("mode",
"\u6a21\u5f0f"));da.addItemModel(za(fa.get("multiSelected","\u591a\u9009"),tb.CTRLTYPE_CHECKBOX_POPUP));da.addItemModel(za(fa.get("singleSelected","\u5355\u9009"),tb.CTRLTYPE_RADIOBUTTON_POPUP));ja.addItemModel(da);xb(ja,J,R)}ja.addSeperator();sa.getGlobal().getMeta().isNormalSrcMode()&&(da=za=null,G instanceof lb?(za=fa.get("rangeForAllValues","\u8303\u56f4\u5305\u62ec\u5168\u90e8\u503c"),da=fa.get("rangeForRelevantValues","\u8303\u56f4\u4ec5\u5305\u62ec\u76f8\u5173\u503c")):G instanceof tb&&(za=
fa.get("optionForAllValues","\u5907\u9009\u503c\u4e3a\u5168\u90e8\u503c"),da=fa.get("optionForRelevantValues","\u5907\u9009\u503c\u4ec5\u4e3a\u76f8\u5173\u503c")),null!=za&&null!=da&&(ja.addItemModel(gb(za,!1,G,J,R)),ja.addItemModel(gb(da,!0,G,J,R)),ja.addSeperator()));za=Va.createActionMenuItem(fa.get("rename","\u91cd\u547d\u540d"),function(Aa){O.modifyDisplayName(R)});ja.addItemModel(za);za=new U;za.setValue(ia.getItemModelSet(),Z,ia.getComplexTitle());za=b.createActionMenuItem(fa.get("remove",
"\u79fb\u9664"),za,R);ja.addItemModel(za);return ja};var xb=function(P,O,R){var Z=fa.get("sort","\u6392\u5e8f"),G=Va.createSubMenu(Z);P.addItemModel(G);P=function(J,ja){void 0===ja&&(ja=J);var Q=pa.sortToString(J);J=O.getSort()==J||O.getSort()==ja;var T=new ka;T.setCaption(Z+"-"+Q);T.setMethod(O.getSort,O.setSort);T.setValue(ja);return b.createRadioMenuItem(Q,"sort",J,T,R)};G.addItemModel(P(pa.SORT_ASC,null));G.addItemModel(P(pa.SORT_DESC))},gb=function(P,O,R,Z,G){var J=R.isJustShowAffected()==O,
ja=new ka;ja.setCaption(fa.get("filterChangeProperty","\u7b5b\u9009\u5668#1: #2").replace("#1",Z.getComplexText()).replace("#2",P));ja.setMethod(R.isJustShowAffected,R.setJustShowAffected);ja.setValue(O);return b.createRadioMenuItem(P,"affected",J,ja,G)};this.protectedDropHandlerDataPusher=function(P,O,R,Z){Z?(O=O.getItemModel(),D(P,O,R)):(O=O.getMetaField(),fb(P,O,R))};var fb=function(P,O,R){var Z=O.getDataType();if(Z==Jb.DT_NUMBER)if(O.isRelativeAggregation())Z=Da(O,pa.AGGREGATION_AGG,null,!0),
Y(P,Z,R);else{Z=" ["+O.getDisplayName()+"] ";var G=new w;G.showDialog(ia.getJqUi(),Z,function(J,ja){J&&(J=Da(O,ja,null,!0),Y(P,J,R))})}else Z==Jb.DT_DATE?(Z=" ["+O.getDisplayName()+"] ",G=new x,G.showDialog(ia.getJqUi(),Z,function(J,ja){J&&(J=Da(O,null,ja,ja==pa.PARTVALUE_DATE_EXACT?!0:!1),Y(P,J,R))})):(Z=Da(O,null,null,!1),Y(P,Z,R))},Da=function(P,O,R,Z){var G=new La;G.setMetaField(P);O?G.setRole(pa.ROLE_MEASURE,O):G.setRole(pa.ROLE_DIMENSION);G.setContinuous(Z);G.setPartValue(R);return G},Y=function(P,
O,R){var Z=sa.getSquareModel(),G=Z.createDependentMeta(sa.getGlobal().getMeta(),[O.getMetaField().getFullName()]);z(G,Z,O,function(J){J=Gb.create(J);J=Vb.create(J);var ja=new ab;ja.setSquareField(O);ja.setFilter(J);sa.setExecutingDumb(!0);D(P,ja,R);sa.setExecutingDumb(!1);I(ia.getJqUi(),ja,P,function(){sa.askToExecute(ja)})})},z=function(P,O,R,Z){sa.getGlobal().createFacade(Z,function(G,J,ja){var Q=ua.toDisplayText(G,J);Q||(Q=G+"\n"+J);G=new hb;G.setOptionType(hb.OPTION_OK);G.setMessage(Q);ja&&G.setDetail(ja);
G.showDialog();return!0}).getSquareFilterPreparedValue(P,O,null,R)},D=function(P,O,R){var Z=new Ca;Z.setValue(ia.getItemModelSet(),O,R,ia.getComplexTitle());P.perform(Z)},I=function(P,O,R,Z){var G=O.getUsableFilter();O=O.getSquareField();(new M).showDialog(O,G,P,R,Z)}}function Yb(M){var ia=this,sa,mb,Wa,xb;this.getItemModel=function(){return M};this.destroy=function(){M.getSquareField().removePropertyChangeListener(fb);M.getSquareField().setInvalidPromptListener(null)};this.getJqUi=function(){if(!sa){sa=
$("<div>");sa.addClass("sa-carditem");sa.mouseenter(D);sa.mouseleave(I);var P=$("<div>");P.addClass("sa-carditem-text");P.text(M.getSquareField().getText());P.appendTo(sa);P.on("mousedown",function(O){xb&&xb(ia)});gb();Da();M.getSquareField().addPropertyChangeListener(fb);M.getSquareField().setInvalidPromptListener(Da)}return sa};this.setActionListener=function(P){Wa=P};this.setTextPressListener=function(P){xb=P};this.modifyDisplayName=function(P){var O=M.getSquareField(),R=O.getDisplayName();R||
(R=O.getMetaField().getDisplayName());var Z=$("<div>");Z.css("background-color","#fff");Z.css("z-index","65535");Z.appendTo(sa);W.layoutCtrlWithLRTB(Z,-1,-1,null,-1,-1,null);var G=new Ga;G.setText(R);G.addAcceptableListener(function(da,Aa){Aa&&T(Q());za()});var J=G.getJqUi();W.layoutCtrlWithLRTB(J,0,20,null,0,0,null);J.appendTo(Z);G.requestFocus();J=$("<div>");J.attr("title",fa.get("reset","\u91cd\u7f6e"));J.on("click",function(da){T(null);za()});Ja.background(J,"icon_reset");W.layoutCtrlWithLRTB(J,
null,2,16,"50%",null,16);J.css("margin-top","-8px");J.css("cursor","pointer");J.appendTo(Z);var ja=function(da){W.isDescendent(da.target,sa[0])||(T(Q()),za())},Q=function(){var da=$.trim(G.getText());!da&&(da=null);return da},T=function(da){var Aa=new ka;Aa.setCaption(fa.get("raname","\u91cd\u547d\u540d")+" ["+R+"] ");Aa.setMethod(O.getDisplayName,O.setDisplayName);Aa.setValue(da);P.perform(Aa)},za=function(){document.body.removeEventListener("mousedown",ja);Z.remove()};document.body.addEventListener("mousedown",
ja)};var gb=function(){mb=$("<div>");mb.addClass("sa-carditem-menubtn");mb.appendTo(sa);mb.on("mousedown",function(O){O=$(O.target);Wa(ia,O)});var P=$("<div>");P.text("\u25b2");P.addClass("sa-carditem-menubtn-text");P.appendTo(mb);z(!1)},fb=function(P,O){if(O==pa.KEY_PARTVALUE||O==pa.KEY_ROLE||O==pa.KEY_FORMULA||O==pa.KEY_DISPLAYNAME||O==pa.KEY_QUICKSETUP)P=P.getField(),sa.find(".sa-carditem-text").text(P.getText()),Y(P.getTextTooltips())},Da=function(){var P=M.getSquareField().getInvalidPrompt();
if(P){P=P.getLevel()==pa.InvalidPrompt.LEVEL_META_LOST?fa.get("notExistField","\u4e0d\u5b58\u5728\u7684\u5b57\u6bb5"):P.getLevel()==pa.InvalidPrompt.LEVEL_META_INVALID?fa.get("invalidField","\u65e0\u6548\u7684\u5b57\u6bb5"):P.getLevel()==pa.InvalidPrompt.LEVEL_AGG?fa.get("invalidAggregation","\u805a\u5408\u65b9\u5f0f\u4e0d\u6b63\u786e"):P.getLevel()==La.InvalidPrompt_LEVEL_TOO_MANY?fa.get("exceedCountLimit","\u8d85\u51fa\u4e2a\u6570\u9650\u5236"):P.getPromptText();var O=ib.createWarning();O.appendTo(sa);
O.addClass("sa-carditem-erroricon");sa.addClass("sa-carditem_error");sa.attr("title",P);Y(null)}else sa.find(".sa-carditem-erroricon").remove(),sa.removeClass("sa-carditem_error"),sa.attr("title",null),Y(M.getSquareField().getTextTooltips())},Y=function(P){sa.find(".sa-carditem-text").attr("title",P)},z=function(P){mb.css("display",P?"block":"none")},D=function(P){z(!0)},I=function(P){z(!1)}}function Mb(){var M,ia;this.setMetaField=function(sa){M=sa};this.getMetaField=function(){return M};this.setItemModel=
function(sa){ia=sa};this.getItemModel=function(){return ia};this.getText=function(){return M?M.getDisplayName():ia.getSquareField().getText()}}"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.square&&(com.kingdee.bos.qing.square={});"undefined"==typeof com.kingdee.bos.qing.square.ui&&(com.kingdee.bos.qing.square.ui=
{});var S=com.kingdee.bos.qing.square.ui;S.SquareDesk=Ya;S.SquareDesk.setSkin=function(M){Ma=M};var Ma,Ja,ua,W,fa,Ea,Va,Oa,wa,Ga,Ia,hb,ib,nb,bb,la,Jb,pa,Gb,Vb,tb,lb,Na,$a,La,ab,ma,ha,ta,ka,p,ra,ea,Ca,U,E,u,g,d,e,c,b,q,t,w,x,A,N=S.ChartTypeFactory,ba=S.Exhibition;(function(){var M=com.kingdee.bos.qing.common;W=M.DomUtil;M=com.kingdee.bos.qing.framework.common;fa=M.MultilanguageManager.createPackageAccessor(S);M=com.kingdee.bos.qing.ui.component;Ea=M.SplitPane;Va=M.Menu;Oa=M.MenuModel;wa=M.AbstractModalDialog;
Ga=M.TextField;Ia=M.WorkButton;hb=M.MessageDialog;M=com.kingdee.bos.qing.common.ui;ib=M.CommonIconUtil;M=com.kingdee.bos.qing.core;Ja=M.Icons;ua=M.ErrorCodeParser;M=com.kingdee.bos.qing.core.commonui;nb=M.LongtimeWaitingMask;bb=M.ExecutingProgressParser;M=com.kingdee.bos.qing.core.model;la=M.ModelPage;Jb=M.MetaField;pa=M.AbstractAnalyticalField;Gb=M.AbstractFilterPreparedModel;Vb=M.AbstractFilter;tb=M.DiscreteFilter;lb=M.ContinuousFilter;M=com.kingdee.bos.qing.square.model;Na=M.SquarePreferences;
$a=M.SquareModel;La=M.SquareField;ab=M.FilterItemModel;ma=M.ItemModelSet;ha=M.PreviewSetupItem;ta=M.AbstractChartProperty;M=com.kingdee.bos.qing.core.controller;ka=M.ActionChangeProperty;p=M.ActionChangeRole;ra=M.ActionChangePartValue;ea=M.ActionChangeFilterCtrlType;M=com.kingdee.bos.qing.square.controller;Ca=M.ActionAddItem;U=M.ActionRemoveItem;E=M.ActionClearAll;u=M.ActionAppendAllNecessaryDimensions;M=com.kingdee.bos.qing.core.ui;g=M.AbstractDesignerView;d=M.MetaPane;e=M.AdjustableLane;c=M.DragDropHandler;
b=M.MenuUtil;q=M.NumberFormatSetting;t=M.DateFormatSetting;w=M.NumberFilterAggregationSelector;x=M.DateFilterPartValueSelector;A=M.AbstractPopupFilterPane})();var ca=[new ha("Full",-1,-1,20,20,20)];Ya.setPreviewSetupItems=function(M){ca=M}})();
//qingVersionTag: 20250415