Index: ssts-web/src/main/webapp/disinfectsystem/invoice/invoiceView.js =================================================================== diff -u -r18491 -r18588 --- ssts-web/src/main/webapp/disinfectsystem/invoice/invoiceView.js (.../invoiceView.js) (revision 18491) +++ ssts-web/src/main/webapp/disinfectsystem/invoice/invoiceView.js (.../invoiceView.js) (revision 18588) @@ -1948,6 +1948,57 @@ handler : function() { mergePrintInvoices(); } + },{ + text : '科室分组:' + },{ + xtype : 'combo', + id : 'invoiceDepartGroup', + name : 'invoiceDepartGroup', + valueField : 'departCode', + displayField : 'shift', + allowBlank : false, + editable : false, + emptyText:'请选择科室分组', + width : 120, + store : departGroupStore, + forceSelection : true, + triggerAction : 'all', + listeners : { + select : function(combo, record, index){ + refreshList(); + } + }, + anchor : '95%' + }, + { + text : '物品类型:' + },{ + xtype : 'multiSelect', + id : 'tousseType', + name : 'tousseType', + valueField : 'value', + displayField : 'key', + allowBlank : true, + editable : false, + fieldLabel:'类型', + width : 300, + emptyText:'请选择物品类型', + mode:'local', + store : new Ext.data.SimpleStore({ + data:tousseTypeDataArray, + fields:['key','value'] + }), +// forceSelection : true, + triggerAction : 'all', + listeners : { + select : function(combo, record, index){ + refreshList(); + }, + render : function() { + Ext.getCmp('tousseType').selectAll(); + } + }, + anchor : '95%' },{ type : 'button', text : '打印'+entityName, @@ -2142,68 +2193,8 @@ 'parm_s_selectedDepartCodes': [invoiceDepartGroups] }; return obj; - }, - listeners: { - render : function(grid) { - - var tbar2 = new Ext.Toolbar ({ - items : [{ - text : '科室分组:' - },{ - xtype : 'combo', - id : 'invoiceDepartGroup', - name : 'invoiceDepartGroup', - valueField : 'departCode', - displayField : 'shift', - allowBlank : false, - editable : false, - emptyText:'请选择科室分组', - width : 120, - store : departGroupStore, - forceSelection : true, - triggerAction : 'all', - listeners : { - select : function(combo, record, index){ - refreshList(); - } - }, - anchor : '95%' - }, - { - text : '物品类型:' - },{ - xtype : 'multiSelect', - id : 'tousseType', - name : 'tousseType', - valueField : 'value', - displayField : 'key', - allowBlank : true, - editable : false, - fieldLabel:'类型', - width : 300, - emptyText:'请选择物品类型', - mode:'local', - store : new Ext.data.SimpleStore({ - data:tousseTypeDataArray, - fields:['key','value'] - }), -// forceSelection : true, - triggerAction : 'all', - listeners : { - select : function(combo, record, index){ - refreshList(); - } - }, - anchor : '95%' - } - ] - }); - tbar2.render(grid.tbar); - // 自动加载列表 - Ext.getCmp('tousseType').selectAll(); -// refreshList(); - } - } + } + }, readerDetail, InvoiceTableManager.findInvoiceTableList, null