Index: ssts-web/src/main/webapp/ext/js/multiSelectCombo.js =================================================================== diff -u -r33823 -r33924 --- ssts-web/src/main/webapp/ext/js/multiSelectCombo.js (.../multiSelectCombo.js) (revision 33823) +++ ssts-web/src/main/webapp/ext/js/multiSelectCombo.js (.../multiSelectCombo.js) (revision 33924) @@ -18,6 +18,7 @@ multi: true, separator: ',', showRawValue:this.showRawValue ? this.showRawValue : true, + multiSelectIsClear:this.multiSelectIsClear ? this.multiSelectIsClear : true, initComponent: function () { if (!this.tpl) @@ -156,13 +157,13 @@ } }, this); - this.setValue(va.join(this.separator)); + this.setValue(va.join(this.separator),true); this.store.clearFilter(); }, onSelect: function (record, index) { if (this.fireEvent('beforeselect', this, record, index) !== false) - { + { record.set(this.checkField, !record.get(this.checkField)); var va = []; var snapshot = this.store.snapshot || this.store.data; @@ -201,7 +202,7 @@ this.fireEvent('select', this, record, index); } }, - setValue: function (v) + setValue: function (v,clear) { if (v) { @@ -239,7 +240,13 @@ } else { - this.clearValue(); + if(this.multiSelectIsClear){ + this.clearValue(); + }else { + if(clear){ + this.clearValue(); + } + } } }, select: function (v) Index: ssts-web/src/main/webapp/disinfectsystem/reportforms/departmentMonthlyDetailDSInvoiceItemView.js =================================================================== diff -u -r33746 -r33924 --- ssts-web/src/main/webapp/disinfectsystem/reportforms/departmentMonthlyDetailDSInvoiceItemView.js (.../departmentMonthlyDetailDSInvoiceItemView.js) (revision 33746) +++ ssts-web/src/main/webapp/disinfectsystem/reportforms/departmentMonthlyDetailDSInvoiceItemView.js (.../departmentMonthlyDetailDSInvoiceItemView.js) (revision 33924) @@ -625,6 +625,7 @@ allowBlank: true, store: invoicePlanDepartStore, mode: departMode, + multiSelectIsClear:false, triggerAction: 'all', anchor: '95%', listeners: { @@ -658,6 +659,7 @@ allowBlank: true, store: appDepartJsonStore, mode: departMode, + multiSelectIsClear:false, triggerAction: 'all', anchor: '95%', listeners: { @@ -690,6 +692,7 @@ queryParam: 'spell', allowBlank: true, store: departGroupStore, + multiSelectIsClear:false, mode: 'remote', triggerAction: 'all', anchor: '95%',