var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(g){var v=0;return function(){return v<g.length?{done:!1,value:g[v++]}:{done:!0}}};$jscomp.arrayIterator=function(g){return{next:$jscomp.arrayIteratorImpl(g)}};$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(g,v,p){if(g==Array.prototype||g==Object.prototype)return g;g[v]=p.value;return g};$jscomp.getGlobal=function(g){g=["object"==typeof globalThis&&globalThis,g,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var v=0;v<g.length;++v){var p=g[v];if(p&&p.Math==Math)return p}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(g,v){var p=$jscomp.propertyToPolyfillSymbol[v];if(null==p)return g[v];p=g[p];return void 0!==p?p:g[v]};
$jscomp.polyfill=function(g,v,p,t){v&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(g,v,p,t):$jscomp.polyfillUnisolated(g,v,p,t))};$jscomp.polyfillUnisolated=function(g,v,p,t){p=$jscomp.global;g=g.split(".");for(t=0;t<g.length-1;t++){var w=g[t];if(!(w in p))return;p=p[w]}g=g[g.length-1];t=p[g];v=v(t);v!=t&&null!=v&&$jscomp.defineProperty(p,g,{configurable:!0,writable:!0,value:v})};
$jscomp.polyfillIsolated=function(g,v,p,t){var w=g.split(".");g=1===w.length;t=w[0];t=!g&&t in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var f=0;f<w.length-1;f++){var x=w[f];if(!(x in t))return;t=t[x]}w=w[w.length-1];p=$jscomp.IS_SYMBOL_NATIVE&&"es6"===p?t[w]:null;v=v(p);null!=v&&(g?$jscomp.defineProperty($jscomp.polyfills,w,{configurable:!0,writable:!0,value:v}):v!==p&&(void 0===$jscomp.propertyToPolyfillSymbol[w]&&(p=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[w]=$jscomp.IS_SYMBOL_NATIVE?
$jscomp.global.Symbol(w):$jscomp.POLYFILL_PREFIX+p+"$"+w),$jscomp.defineProperty(t,$jscomp.propertyToPolyfillSymbol[w],{configurable:!0,writable:!0,value:v})))};$jscomp.initSymbol=function(){};
$jscomp.polyfill("Symbol",function(g){if(g)return g;var v=function(f,x){this.$jscomp$symbol$id_=f;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:x})};v.prototype.toString=function(){return this.$jscomp$symbol$id_};var p="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",t=0,w=function(f){if(this instanceof w)throw new TypeError("Symbol is not a constructor");return new v(p+(f||"")+"_"+t++,f)};return w},"es6","es3");
$jscomp.polyfill("Symbol.iterator",function(g){if(g)return g;g=Symbol("Symbol.iterator");for(var v="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),p=0;p<v.length;p++){var t=$jscomp.global[v[p]];"function"===typeof t&&"function"!=typeof t.prototype[g]&&$jscomp.defineProperty(t.prototype,g,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return g},"es6",
"es3");$jscomp.iteratorPrototype=function(g){g={next:g};g[Symbol.iterator]=function(){return this};return g};$jscomp.iteratorFromArray=function(g,v){g instanceof String&&(g+="");var p=0,t=!1,w={next:function(){if(!t&&p<g.length){var f=p++;return{value:v(f,g[f]),done:!1}}t=!0;return{done:!0,value:void 0}}};w[Symbol.iterator]=function(){return w};return w};$jscomp.polyfill("Array.prototype.keys",function(g){return g?g:function(){return $jscomp.iteratorFromArray(this,function(v){return v})}},"es6","es3");
$jscomp.findInternal=function(g,v,p){g instanceof String&&(g=String(g));for(var t=g.length,w=0;w<t;w++){var f=g[w];if(v.call(p,f,w,g))return{i:w,v:f}}return{i:-1,v:void 0}};$jscomp.polyfill("Array.prototype.find",function(g){return g?g:function(v,p){return $jscomp.findInternal(this,v,p).v}},"es6","es3");
(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.biz&&(com.kingdee.bos.qing.biz={});"undefined"==typeof com.kingdee.bos.qing.biz.common&&(com.kingdee.bos.qing.biz.common={});var g=com.kingdee.bos.qing.biz.common;var v=com.kingdee.bos.qing.framework.common.AbstractIcons;g.Icons=new function(){v.call(this);
var p=this.protectedMethod;this.protectedInit=function(w,f){w=com.kingdee.bos.qing.biz.common.ComboIcon;if(!w)throw Error("com.kingdee.bos.qing.biz.common.ComboIcon not found.");w.define(f,"pagination");f.setGap(1);f.setStartPosition(1,1);t(0,0,"btn_first_page");t(0,1,"btn_previous_page");t(0,2,"btn_next_page");t(0,3,"btn_end_page");p.registIcon(1,4,"btn_forbid");w.define(f,"icon_f7.svg");p.registIcon(0,0,"icon_f7");w.define(f,"tm-publish");f.setGap(3);f.setStartPosition(0,0);f.setIconSize(18,18);
p.registIcon(0,14,"btn_delete");w.define(f,"tm");f.setGap(1);f.setStartPosition(1,1);f.setIconSize(16,16);p.registIcon(2,0,"icon_sort-asc-esc");p.registIcon(2,1,"icon_sort-asc-desc");p.registIcon(2,2,"icon_sortable-v");w.define(f,"reject-tip-icon");f.setStartPosition(0,0);f.setIconSize(200,120);p.registIcon(0,0,"reject-tip-icon")};var t=function(w,f,x){p.registIcon(w,f,x+"_hover");p.registIcon(w+1,f,x);p.registIcon(w+2,f,x+"_disabled")}}})();(function(){function g(){var e=this,c,l,m,y,z,h,B,A,r,q,b,k,d,u,n=[5,10,20,50,100,500,1E3],C,G=0,F=1,D=1,N=n[2],L=0,S=!0,P=!0,Q=!0,V=!0,W=!0,T=!0,M=!0,ca=!0,la=!1,da,ea,X,fa;this.getPageSize=function(){return N};this.getTotalPage=function(){return F};this.getCurrentPage=function(){return D};this.getInputAllowed=function(){return S};this.setAutoHide=function(a){la=!!a};this.setInputAllowed=function(a){S=!0===a;c||Y();S?A.attr("disabled",!1):A.attr("disabled",!0)};this.setJumpToPageListener=function(a){da=
a};var I=function(a,E,H){da&&da(a,H?H:N,E)};this.setSelectedAllOrNotListener=function(a){ea=a};var ma=function(a,E){ea&&ea(a,E)};this.setComboBoxSelectedChangedListener=function(a){X=a};var ua=function(a,E,H){X&&X(E,H)};this.resetPaginationAndJumpToFirstPage=function(a){O(a);D=1;e.refreshPagination()};this.setComboBoxItemModelsAndSelectedItem=function(a,E){if(a&&a instanceof Array&&0<a.length){C=[];for(var H=0;H<a.length;H++){var K=parseInt(a[H]);isNaN(K)||C.push(K)}N=0<=E&&E<C.length?C[E]:C[0]}else C=
n,N=n[2]};this.getJqUi=function(){c||Y();return c};this.hide=function(){c&&c.hide()};this.show=function(){c&&c.show()};this.refreshSelectedRowTotal=function(a){if(P||Q)L=a>=G?G:0>=a?0:a,e.refreshPagination()};this.refreshTotalRow=function(a){O(a);e.refreshPagination()};this.refreshPagination=function(){c?(1<F?1>=D?(D=1,M&&(f.Icons.background(q,"btn_first_page_disabled"),q.css({cursor:"default"}),f.Icons.background(d,"btn_end_page"),d.css({cursor:"pointer"})),f.Icons.background(b,"btn_previous_page_disabled"),
b.css({cursor:"default"}),f.Icons.background(k,"btn_next_page"),k.css({cursor:"pointer"})):D>=F?(D=F,M&&(f.Icons.background(q,"btn_first_page"),q.css({cursor:"pointer"}),f.Icons.background(d,"btn_end_page_disabled"),d.css({cursor:"default"})),f.Icons.background(b,"btn_previous_page"),b.css({cursor:"pointer"}),f.Icons.background(k,"btn_next_page_disabled"),k.css({cursor:"default"})):(M&&(f.Icons.background(q,"btn_first_page"),q.css({cursor:"pointer"}),f.Icons.background(d,"btn_end_page"),d.css({cursor:"pointer"})),
f.Icons.background(b,"btn_previous_page"),b.css({cursor:"pointer"}),f.Icons.background(k,"btn_next_page"),k.css({cursor:"pointer"})):(D=1,M&&(f.Icons.background(q,"btn_first_page_disabled"),q.css({cursor:"default"}),f.Icons.background(d,"btn_end_page_disabled"),d.css({cursor:"default"})),f.Icons.background(b,"btn_previous_page_disabled"),b.css({cursor:"default"}),f.Icons.background(k,"btn_next_page_disabled"),k.css({cursor:"default"})),P&&Q?0===L?(l.hide(),z.text(x.get("selectAll","\u9009\u62e9\u5168\u90e8"))):
(l.show(),l.text(x.get("totalSelected","\u5df2\u9009#1\u6761\uff0c").replace("#1",L)),na()):Q?na():P&&(0===L?l.hide():(l.show(),l.text(x.get("totalSelected","\u5df2\u9009#1\u6761\uff0c").replace("#1",L)))),V&&y.text(x.get("totalRow","\u5171#1\u6761").replace("#1",G)),W&&h.text(x.get("totalPage","\u5171#1\u9875").replace("#1",F)),T&&A.val(D),T&&(S?A.attr("disabled",!1):A.attr("disabled",!0)),la&&(0===G?e.hide():e.show())):Y()};this.jumpToPage=function(a){isNaN(a)?e.refreshPagination():a>=F?I(F,ha):
1>=a?I(1,Z):ia(a)};var na=function(){L===G?z.text(x.get("cancelSelectAll","\u53d6\u6d88\u5168\u9009")):z.text(x.get("selectAll","\u9009\u62e9\u5168\u90e8"))},Y=function(){c=$("<div class='q-common-pagination'>");P&&(l=$("<span>"),l.addClass("q-common-pagination-total-selected"),l.text(x.get("totalSelected","\u5df2\u9009#1\u6761\uff0c").replace("#1",L)));V&&(m=$("<div>"),m.addClass("q-common-pagination-total-row"),y=$("<span>"),y.text(x.get("totalRow","\u5171#1\u6761").replace("#1",G)),y.appendTo(m));
Q&&(z=$("<span>"),z.on("click",va),z.addClass("q-common-pagination-select-all"),z.text(x.get("selectAll","\u9009\u62e9\u5168\u90e8")));if(W){h=$("<span>");h.addClass("q-common-pagination-operation-total-page2");var a=x.get("totalPage","\u5171#1\u9875").replace("#1",F);h.text(a)}T&&(B=$("<span>"),B.addClass("q-common-pagination-operation-current-page2"),a=$("<span>"),a.text(x.get("jumpTo","\u7b2c")),a.appendTo(B),A=$("<input type='text'>"),A.addClass("q-common-pagination-operation-current-page-input"),
A.addClass("q-common-pagination-operation-current-page-input_border"),wa(A),S||A.attr("disabled",!0),A.val(D),A.on("keypress",xa),A.on("blur",ya),A.appendTo(B),a=$("<span>"),a.text(x.get("paginationPage","\u9875")),a.appendTo(B));r=$("<div>");r.addClass("q-common-pagination-operation-switch-page");M&&za();Aa();M&&q.appendTo(r);b.appendTo(r);k.appendTo(r);M&&d.appendTo(r);ca&&Ba();fa?fa():(P&&l.appendTo(c),V&&m.appendTo(c),Q&&z.appendTo(c),ca&&u.appendTo(c),r.appendTo(c),T&&B.appendTo(c),W&&h.appendTo(c))},
va=function(){L===G?(ma(!1),e.refreshSelectedRowTotal(0)):ma(!0,function(a){e.refreshSelectedRowTotal(a)})},xa=function(a){13===a.keyCode&&(a=parseInt(A.val()),isNaN(a)?e.refreshPagination():a>=F?I(F,ha):1>=a?I(1,Z):ia(a))},ya=function(a){a=parseInt(A.val());isNaN(a)||a>F||1>a?A.val(D):ia(a)},ia=function(a){I(a,function(E){O(E);U(a)})},wa=function(a){a.on("mouseover",function(E){a.removeClass("q-common-pagination-operation-current-page-input_border");a.addClass("q-common-pagination-operation-current-page-input_border_hover")});
a.on("mouseout",function(E){A.is(":focus")||(a.removeClass("q-common-pagination-operation-current-page-input_border_hover"),a.addClass("q-common-pagination-operation-current-page-input_border"))});a.focus(function(E){a.removeClass("q-common-pagination-operation-current-page-input_border");a.addClass("q-common-pagination-operation-current-page-input_border_hover")});a.blur(function(E){a.removeClass("q-common-pagination-operation-current-page-input_border_hover");a.addClass("q-common-pagination-operation-current-page-input_border")})},
za=function(){q=$("<div>");q.addClass("q-common-pagination-operation-switch-page-button");q.css({cursor:"auto"});q.attr("title",x.get("tipsFirstPage","\u7b2c\u4e00\u9875"));f.Icons.background(q,"btn_first_page_disabled");q.on("mouseover mouseout",function(a){aa(a,1<D,"btn_first_page")});q.on("click",function(){1<D&&ba(0)});d=$("<div>");d.addClass("q-common-pagination-operation-switch-page-button");d.attr("title",x.get("tipsEndPage","\u6700\u540e\u4e00\u9875"));f.Icons.background(d,"btn_end_page");
d.on("mouseover mouseout",function(a){aa(a,D<F,"btn_end_page")});d.on("click",function(){D<F&&ba(3)})},Aa=function(){b=$("<div>");b.addClass("q-common-pagination-operation-switch-page-button");b.css({cursor:"default"});b.attr("title",x.get("tipsPreviousPage","\u4e0a\u4e00\u9875"));f.Icons.background(b,"btn_previous_page_disabled");b.on("mouseover mouseout",function(a){aa(a,1<D,"btn_previous_page")});b.on("click",function(){1<D&&ba(1)});k=$("<div>");k.addClass("q-common-pagination-operation-switch-page-button");
k.attr("title",x.get("tipsNextPage","\u4e0b\u4e00\u9875"));f.Icons.background(k,"btn_next_page");k.on("mouseover mouseout",function(a){aa(a,D<F,"btn_next_page")});k.on("click",function(){D<F&&ba(2)})},aa=function(a,E,H){E&&("mouseover"===a.type?f.Icons.background($(a.currentTarget),H+"_hover"):"mouseout"===a.type&&f.Icons.background($(a.currentTarget),H))},Ba=function(){var a=new oa;u=a.getJqUi();u.addClass("q-common-pagination-operation-combobox-page-size");C||e.setComboBoxItemModelsAndSelectedItem(n,
2);a.setItemModels(C);a.setSelected(N);a.setCustomPainter(function(E,H,K){E=K+x.get("rowsPerPage","\u6761/\u9875");K=$("<div>");K.text(E);K.appendTo(H)});a.addSelectedChangedListener(Ca);X&&a.addSelectedChangedListener(ua)},Ca=function(a,E,H){I(1,function(K){N=H;Z(K)},H)},O=function(a){0>=a?(G=0,F=1):(G=a,a=parseInt(Math.ceil(parseFloat(a)/parseFloat(N))),isNaN(a)?F=1:F=a)},U=function(a){a>F?D=F:D=a},ba=function(a){0===a?I(1,Z):1===a?I(D-1,function(E){O(E);U(D-1);e.refreshPagination()}):2===a?I(D+
1,function(E){O(E);U(D+1);e.refreshPagination()}):I(F,ha)},Z=function(a){O(a);U(1);e.refreshPagination()},ha=function(a){O(a);U(F);e.refreshPagination()};this.protectedMethod={setTotalSelectedRowAndSelectedAllVisual:function(a,E){P=a;Q=E},setTotalRowVisual:function(a){V=a},setTotalPageVisual:function(a){W=a},setCurrentPageVisual:function(a){T=a},setFirstBtnAndEndBtnVisual:function(a){M=a},setComboBoxPageSizeVisual:function(a){ca=a},setComboBoxWidth:function(a){u&&Y();u.css("width",a+"px")},setCustomLayout:function(a){fa=
a}}}function v(){var e=this,c,l;this.getJqUi=function(){if(!c){c=$("<div>");c.css("border-bottom","1px solid #ccc");c.addClass("sa-qing-publish-dialog-selector-input");l=$("<input readonly=readonly>");l.addClass("sa-qing-publish-ctrl-textfield-input");l.css("color","#666");l.css("text-overflow","ellipsis");l.on("click",e.protectedClickEvent);l.addClass("sa-qing-publish-card-fontfamily");var m=$("<span>");m.addClass("sa-qing-publish-dialog-selector-input-icon");f.Icons.background(m,"icon_f7");m.appendTo(c);
l.appendTo(c);e.updateUI();m.on("click",e.protectedClickEvent)}return c};this.setSelectedValue=function(){throw Error("override me");};this.getSelectedValue=function(){throw Error("override me");};this.getDisplayText=function(){throw Error("override me");};this.protectedClickEvent=function(){throw Error("override me");};this.updateUI=function(){l.val(e.getDisplayText());l.attr("title",e.getDisplayText())}}function p(){var e=this,c,l,m,y,z;this.getIsShow=function(){return z};this.setIsShow=function(h){z=
h};this.getValue=function(){return c};this.setValue=function(h){c=h};this.getText=function(){return l};this.setText=function(h){l=h};this.getUserObject=function(){return m};this.setUserObject=function(h){m=h};this.isPreset=function(){return y};this.setIsPreset=function(h){y=h};this.toJsonObject=function(){var h={};h.value=c;h.text=l;return h};this.fromJsonObject=function(h){h&&(h.value&&e.setValue(h.value),h.text&&e.setText(h.text),h.isPreset&&e.setIsPreset(h.isPreset))}}function t(){var e,c;this.getOrder=
function(){return e};this.setOrder=function(l){e=l};this.getField=function(){return c};this.setField=function(l){c=l}}function w(){var e,c;this.setMessage=function(m,y){e=m;c=y};var l=function(m,y){y=$("<div>");y.text(e);y.css({"font-size":"15px",position:"relative",top:"130px","text-align":"center"});var z=$("<div>");f.Icons.background(z,"reject-tip-icon");z.css({position:"absolute",width:"200px",height:"130px",left:"25%"});var h=$('<textarea readonly="true" ></textarea>');h.text(c);h.css({position:"absolute",
"font-size":"12px",color:"#666","line-height":"18px",resize:"none","white-space":"pre-wrap","border-width":"0","border-top":"1px solid #ccc",padding:"2px 0px","background-color":"#fff",outline:"none",width:"450px",height:"115px",top:"180px"});h.on("click",function(){h.select()});z.appendTo(m);y.appendTo(m);h.appendTo(m)};this.showDialog=function(){var m=new J;m.setTitle(x.get("operatingTips","\u64cd\u4f5c\u63d0\u793a"));m.setCustomPainter(l);m.setOptionType(J.OPTION_OK);m.setButtonText(J.OPTION_OK,
x.get("iSee","\u6211\u77e5\u9053\u4e86"));m.setMessage(e);m.showDialog(480,400)}}"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.biz&&(com.kingdee.bos.qing.biz={});"undefined"==typeof com.kingdee.bos.qing.biz.common&&(com.kingdee.bos.qing.biz.common={});var f=com.kingdee.bos.qing.biz.common;f.SimplePaginationBar=
function(){g.call(this);var e=this.protectedMethod;e.setTotalSelectedRowAndSelectedAllVisual(!1,!1);e.setTotalRowVisual(!0);e.setTotalPageVisual(!1);e.setCurrentPageVisual(!1);e.setFirstBtnAndEndBtnVisual(!1)};f.ComplexPaginationBar=function(){g.call(this)};f.AbstractDialogSelector=v;f.RoleDialogSelector=function(){v.call(this);var e=this,c=[],l=!1,m,y,z;this.setSelectedListener=function(q){z=q};var h=e.getJqUi;this.getJqUi=function(){m||(m=h(),B(),m.on("mouseover",function(){0<c.length&&y.show()}),
m.on("mouseleave",function(){y.hide()}));return m};this.protectedClickEvent=function(){l||A()};this.setSelectedValue=function(q){c=q;e.updateUI()};this.getSelectedValue=function(){return c};this.getDisplayText=function(){var q=c[0];if(0!=c.length&&q){q=q.getText();var b=x.get("selectMultiRole","\u5df2\u9009\u62e9#1\u7b49#2\u4e2a\u89d2\u8272").replace("#2",c.length);var k=x.get("selectSingleRole","\u5df2\u9009\u62e9\u89d2\u8272#1");b=1==c.length?k:b;b=b.replace("#1",q)}else b=x.get("selectNoRole",
"\u5c1a\u672a\u9009\u62e9\u89d2\u8272");return b};var B=function(){y=$("<div>");y.css({position:"absolute",height:"18px",width:"18px",right:"25px",bottom:"6px",cursor:"pointer",display:"none"});f.Icons.background(y,"btn_delete");y.on("click",function(){var q=new J.createFeedbackDialog;q.setMsgImageType(J.MSG_CONFIRM);q.setMessage(x.get("confirmClearAuthority","\u786e\u5b9a\u6e05\u7a7a\u6388\u6743\uff1f"));q.setClosingChecker(function(b){b==J.RETURN_OK&&(c=[],z&&z(c),e.updateUI());return!0});q.showDialog()});
y.appendTo(m)},A=function(){l=!0;var q=com.kingdee.bos.qing.integration.UserAndRoleForm;q.setCallBack(function(b){l=!1;if(b&&b.content){var k=b.content;b=k.selecteds;if("cancel"!=k.operation&&"undefined"!=b){k=Object.keys(b);c=[];for(var d=0;d<k.length;d++){var u=k[d],n=b[u],C=new p;C.setValue(u);C.setText(n);c.push(C)}e.updateUI();z&&z(c)}}});q.openRoleForm(r())},r=function(){for(var q=[],b=0;b<c.length;b++){var k=c[b].getValue();q.push(k)}return q}};f.UserDialogSelector=function(){v.call(this);
var e=this,c=[],l=!1,m=!0,y,z,h,B=!1,A=!1;this.setIsSingle=function(d){A=d};this.setShowDisabledFilter=function(d){B=d};this.setConfirmClear=function(d){m=d};this.setSelectedListener=function(d){h=d};var r=e.getJqUi;this.getJqUi=function(){y||(y=r(),q(),y.on("mouseover",function(){0<c.length&&z.show()}),y.on("mouseleave",function(){z.hide()}));return y};this.setSelectedValue=function(d){c=d;e.updateUI()};this.getSelectedValue=function(){return c};this.protectedClickEvent=function(){l||b()};this.getDisplayText=
function(){var d=c[0];if(0!=c.length&&d){d=d.getText();var u=x.get("selectMultiUser","\u5df2\u9009\u62e9#1\u7b49#2\u4e2a\u7528\u6237").replace("#2",c.length);var n=x.get("selectSingleUser","\u5df2\u9009\u62e9\u7528\u6237#1");u=1==c.length?n:u;u=u.replace("#1",d)}else u=x.get("selectNoUser","\u5c1a\u672a\u9009\u62e9\u7528\u6237");return u};var q=function(){z=$("<div>");z.css({position:"absolute",height:"18px",width:"18px",right:"25px",bottom:"6px",cursor:"pointer",display:"none"});f.Icons.background(z,
"btn_delete");z.on("click",function(){if(m){var d=J.createFeedbackDialog();d.setMsgImageType(J.MSG_CONFIRM);d.setMessage(x.get("confirmClearAuthority","\u786e\u5b9a\u6e05\u7a7a\u6388\u6743\uff1f"));d.setClosingChecker(function(u){u==J.RETURN_OK&&(c=[],h&&h(c),e.updateUI());return!0});d.showDialog()}else c=[],h&&h(c),e.updateUI(),z.hide()});z.appendTo(y)},b=function(){l=!0;var d=com.kingdee.bos.qing.integration.UserAndRoleForm;d.setCallBack(function(u){l=!1;if(u&&u.content){var n=u.content;u=n.selecteds;
if("cancel"!=n.operation&&"undefined"!=u){n=Object.keys(u);c=[];for(var C=0;C<n.length;C++){var G=n[C],F=u[G],D=new p;D.setValue(G);D.setText(F);c.push(D)}e.updateUI();h&&h(c)}}});d.openUserForm(k(),A,B)},k=function(){for(var d=[],u=0;u<c.length;u++){var n=c[u].getValue();d.push(n)}return d}};f.ValueTextPair=p;f.KeyBoardSearchBox=function(){pa.call(this);var e=this,c=[],l=[],m=0,y,z,h,B,A,r=new qa;r.setFontSize(12);this.addClearIconListener=function(n){0==c.length&&(h||u(),h.on("click",q));c.push(n)};
var q=function(){for(var n=0;n<c.length;n++){var C=c[n];C&&C(e)}};this.addEnterEventListener=function(n){if(0===l.length)d().on("keydown",function(C){13===C.keyCode&&b()});l.push(n)};var b=function(){clearTimeout(y);y=setTimeout(function(){for(var n=0;n<l.length;n++){var C=l[n];C&&C(e)}},m)},k=e.setSearchListenerDelay;this.setSearchListenerDelay=function(n){k(n);m=n};this.appendText=function(n){var C=d();n?(C.css("width",""),R.layoutCtrlWithLRTB(C,null,(r.measureWidth(n)>>1)+20),R.layoutCtrlWithLRTB(B,
null,(r.measureWidth(n)>>1)+30,10,null,null,27),B.css("line-height","27px"),B.text(n),B.show()):e.hideText()};this.hideText=function(){B.text("");R.layoutCtrlWithLRTB(d(),null,0);B.hide()};var d=function(){z||u();return z},u=function(){B=$("<div>");A=e.getJqUi();z=A.find("input");h=A.find(".sa-ctrl-searchbox-close");A.append(B)}};f.DateRangeSelector=function(){var e,c,l,m,y;this.getJqUi=function(){e=new ra;e.setCustomPainter(z);e.setDropdownCreator(h);var r=(new Date(A())).getTime();e.setSelectedModel([r,
r]);e.setIconName("calendar");r=e.getJqUi();r.addClass("q-common-singlelineborder");return r};this.getDateRange=function(){if(c&&"\u5f00\u59cb\u65f6\u95f4"==c.text()||l&&"\u7ed3\u675f\u65f6\u95f4"==l.text())return null;if(!m){var r=(new Date(A())).getTime(),q=(new Date(A())).getTime()+864E5-1;return[r,q]}return m.getDateRange()};this.setFunConfirmListener=function(r){y=r};var z=function(r,q){var b=$("<div>");c=$("<div>");c.addClass("q-common-fromDate-text");c.text("\u5f00\u59cb\u65f6\u95f4");var k=
$("<div>");k.addClass("q-common-date-Separator");k.text("~");l=$("<div>");l.addClass("q-common-toDate-text");l.text("\u7ed3\u675f\u65f6\u95f4");c.appendTo(b);k.appendTo(b);l.appendTo(b);if(r){k=new sa;k.setFormatString("yyyy-MM-dd");var d=k.format(r[0]);c.text(d);r=k.format(r[1]);l.text(r)}q.html(b)},h=function(r,q,b,k,d){var u=new ja;u.addActionListener(function(G){G=C();b(G);y&&y()});u.setText(x.get("dateRangeOk","\u786e\u5b9a"));u.getJqUi().addClass("q-common-dsb-widget-calendar-okcancel-"+(ka.isModern()?
"right":"left"));var n=new ja;n.addActionListener(function(G){k()});n.setText(x.get("dateRangeCancel","\u53d6\u6d88"));n.getJqUi().addClass("q-common-dsb-widget-calendar-okcancel-"+(ka.isModern()?"left":"right"));r.css("background-color","#fff");r.append(u.getJqUi());r.append(n.getJqUi());u=[];var C=B(q,r,u,d);return u},B=function(r,q,b,k){var d=$("<div>");d.css("display","none");d.addClass("sa-ctrl-date-mask");m=new ta;r?m.setDateRange(r[0],r[1]):(r=(new Date(A())).getTime(),m.setDateRange(r,r));
m.setMaskRequestListener(function(u,n){d.css("display",n?"":"none")});q.append(m.getJqUi());q.append(d);R.layoutCtrlWithLRTB(m.getJqUi(),20,20,null,8,32,null);R.layoutCtrlWithLRTB(d,0,0,null,null,0,32);b[0]=560;b[1]=320;return m.getDateRange},A=function(){var r=new Date,q=r.getFullYear(),b=r.getMonth()+1;r=r.getDate();return q+"/"+b+"/"+r}};f.SortingHelper=function(){var e,c,l,m,y,z=8,h=1;this.setShowSortingModel=function(b){m=b};this.getShowSortingModel=function(){return m};this.setFunSortChangeListener=
function(b){y=b};this.setDefaultField=function(b){e=b};this.setSortTipsRightMargin=function(b){z=b};this.setSortTipsBottomMargin=function(b){h=b};this.showSortingTips=function(b,k){var d=b.find(".q-common-sort-box");0==d.length&&(d=new t,d.setField(k),d.setOrder(null),d=q(b,d),b.append(d));d.addClass("q-common-sort-box_clickable");l=d};this.hideSortingTips=function(b){b=b.find(".q-common-sort-box");b.removeClass("q-common-sort-box_clickable");B(b)};this.hideLastShowSortTips=function(){l.removeClass("q-common-sort-box_clickable");
B(l)};this.addSortingTips=function(b,k){m&&null!=m.getOrder()&&m.getField()==k&&(k=q(b,m),b.append(k))};this.addDefaultSortingTips=function(b,k){var d=new t;d.setField(k);d.setOrder(t.ORDER_DESC);k=q(b,d);b.append(k);l=k};var B=function(b){var k=b.data("sortable-data");k&&null==k.getOrder()&&b.remove()},A=function(b,k){var d=$("<div>");f.Icons.background(d,"icon_sortable-v");d.attr("title",x.get("sort","\u6392\u5e8f"));d.addClass("q-common-sort-box");d.css("left",b);d.css("top",k);d.css("width",13);
d.css("height",13);return d},r=function(b){var k=b.data("sortable-data");k.getOrder()==t.ORDER_ASC?f.Icons.background(b,"icon_sort-asc-esc"):k.getOrder()==t.ORDER_DESC?f.Icons.background(b,"icon_sort-asc-desc"):k.getOrder()||f.Icons.background(b,"icon_sortable-v")},q=function(b,k){var d=b.width();b=b.height();d=A(d-15-z,b-15-h);d.data("sortable-data",k);r(d);d.on("click",function(u){u=$(u.currentTarget);var n=u.data("sortable-data");n.getField()==e?n.getOrder()==t.ORDER_ASC?n.setOrder(t.ORDER_DESC):
n.getOrder()==t.ORDER_DESC?n.setOrder(t.ORDER_ASC):n.getOrder()||n.setOrder(t.ORDER_ASC):n.getOrder()==t.ORDER_ASC?n.setOrder(t.ORDER_DESC):n.getOrder()==t.ORDER_DESC?n.setOrder(null):n.getOrder()||n.setOrder(t.ORDER_ASC);u.data("sortable-data",n);r(u);B(u);c&&c[0]!=u[0]&&c&&c.remove();c=u;m=n;y&&y(c?c.data("sortable-data"):null)});return d}};f.SortingModel=t;f.InvalidMessagePane=function(){var e,c,l,m,y;this.setMessage=function(h,B,A,r){l=h;c=B;m=A;y=r};this.getJqUi=function(){e||z();return e};var z=
function(){e=$("<div>");e.css("font-size","16px");var h=$("<span>");h.text(l);e.append(h);if(!y){h=$("<span>");var B=x.get("viewRejectInfo","\u70b9\u51fb\u6b64\u5904\u67e5\u770b\u88ab\u7981\u7528\u7684\u6570\u636e\u96c6\u3002");h.text(B);e.append($("<br>"));e.append(x.get("youCan","\u60a8\u53ef\u4ee5 "));e.append(h);h.css({color:"var(--color-main, #5591f6)",cursor:"pointer"});h.on("click",function(){var A=new w;A.setMessage(c,m);A.showDialog()})}}};f.InvalidDialog=w;var x,R,sa,ta,oa,pa,J,ra,ja,ka,
qa;(function(){var e=com.kingdee.bos.qing.framework.common;x=e.MultilanguageManager.createPackageAccessor(f);e=com.kingdee.bos.qing.common;R=e.DomUtil;sa=e.DateFormater;qa=e.TextMeasurer;e=com.kingdee.bos.qing.common.ui;ta=e.DateRangePanel;e=com.kingdee.bos.qing.ui.component;oa=e.ComboBox;J=e.MessageDialog;pa=e.SearchBox;ra=e.DropdownSelector;ja=e.WorkButton;ka=e.SkinUiContext})();t.ORDER_DESC="DESC";t.ORDER_ASC="ASC"})();
//qingVersionTag: 20250828