Index: ssts-web/src/main/webapp/disinfectsystem/packing/packingView.js =================================================================== diff -u -r16251 -r16276 --- ssts-web/src/main/webapp/disinfectsystem/packing/packingView.js (.../packingView.js) (revision 16251) +++ ssts-web/src/main/webapp/disinfectsystem/packing/packingView.js (.../packingView.js) (revision 16276) @@ -552,6 +552,8 @@ var imagePanel = new Ext4.Panel({ id : 'imagePanel', + colspan: 2, + columnWidth : 1, height:((sstsConfig.showInspectorField || sstsConfig.showWrapperField || sstsConfig.showSterilizer) ? 230 : 297), border : true, layout:'fit', @@ -786,13 +788,12 @@ formPanel = new Ext4.Panel({ id : 'formPanel', minHeight: 110, - border : false, - defaults:{ - border:0 - }, + region: 'center', + margin: '0 0 ' + (document.body.clientHeight-((sstsConfig.showInspectorField || sstsConfig.showWrapperField || sstsConfig.showSterilizer) ? 470 : 440)) + ' 0', + border: true, buttonAlign : 'center', - layout : 'column', - items:[{ + layout: "column", + items:[imagePanel,{ xtype : 'hidden', id : 'taskGroup', name : 'taskGroup' @@ -1443,7 +1444,7 @@ Ext4.getCmp('reviewer').setValue(''); } } - } + } ] }); @@ -1585,6 +1586,9 @@ id :'materialGrid', store: materialStore, height : document.body.clientHeight-20, + region: 'east', + margin: '0 0 0 0', + width : '22%', tbar:[{ xtype:'button', id:"materialAmount" @@ -2546,144 +2550,134 @@ items: [{ region: 'west', - margins: '0 0 0 0', + margin: '0 0 0 0', width : '42%', items: [basketColumnTreeGrid,waitPackColumnTreeGrid] - },{ - region: 'center', - margins: '0 0 0 0', - width : '36%', - items : [imagePanel,formPanel] - },{ - region: 'east', - margins: '0 0 0 0', - width : '22%', - items:materialGrid - } + },formPanel + ,materialGrid ] },{ title: '今天本组装配记录', layout : 'border', height : document.body.clientHeight-25, items : [{ - layout : 'form', - region : 'north', - items :[{ - layout : 'column', - height : 30, - labelWidth : 70, - items : [{ - width : 470, - layout : 'form', - labelWidth : 80, - items : [{ - xtype : 'combo', - id : 'tousseName', - name : 'tousseName', - fieldLabel : '器械包名称', - queryParam : 'spell', - minChars : 0, - valueField : 'name', - displayField : 'displayName', - store : new Ext4.data.Store({ -// //limit参数,每页显示条数,默认为25 -// pageSize: isIE6OrIE7 ? 15 : 50, - proxy : { - type : 'ajax', - url : WWWROOT + '/disinfectSystem/baseData/tousseDefinitionAction!getAllTousseDefinitionData.do', - reader : { - type : 'json', - totalProperty : 'totalCount', - root : 'data' - } - }, - fields : [ - {name : 'id',mapping : 'id'}, - {name : 'spelling',mapping : 'spelling'}, - {name : 'name',mapping : 'name'}, - {name : 'displayName',mapping : 'displayName'}, - {name : 'amount',mapping : 'amount'} - ] - }), - forceSelection : false, - lazyInit : true, - triggerAction : 'all', - hideTrigger : true, - typeAhead : false, - anchor : '95%', - listeners : { - select : function(combo, record, index) { - combo.setValue(record[0].data.name); - } - } - }] - }, { - width : 80, - layout : 'form', - items : [{ - xtype : 'button', - text : '查询', - minWidth : 70, - iconCls : 'icon_search', - handler : function() { - initQueryValueAndReload(); - } - }] - }, { - width : 80, - layout : 'form', - items : [{ - xtype : 'button', - text : '重置', - minWidth : 70, - iconCls : 'icon_set', - handler : function() { - Ext4.getCmp('tousseName').setValue(""); -// $Id('tousseName').value = ""; - } - }] - }] - }] + + layout : 'column', + region : 'north', + height : 30, + labelWidth : 70, + items : [{ + width : 470, + layout : 'form', + labelWidth : 80, + items : [{ + xtype : 'combo', + id : 'tousseName', + name : 'tousseName', + fieldLabel : '器械包名称', + queryParam : 'spell', + minChars : 0, + valueField : 'name', + displayField : 'displayName', + store : new Ext4.data.Store({ +// //limit参数,每页显示条数,默认为25 +// pageSize: isIE6OrIE7 ? 15 : 50, + proxy : { + type : 'ajax', + url : WWWROOT + '/disinfectSystem/baseData/tousseDefinitionAction!getAllTousseDefinitionData.do', + reader : { + type : 'json', + totalProperty : 'totalCount', + root : 'data' + } + }, + fields : [ + {name : 'id',mapping : 'id'}, + {name : 'spelling',mapping : 'spelling'}, + {name : 'name',mapping : 'name'}, + {name : 'displayName',mapping : 'displayName'}, + {name : 'amount',mapping : 'amount'} + ] + }), + forceSelection : false, + lazyInit : true, + triggerAction : 'all', + hideTrigger : true, + typeAhead : false, + anchor : '95%', + listeners : { + select : function(combo, record, index) { + combo.setValue(record[0].data.name); + } + } + }] + }, { + width : 80, + layout : 'form', + items : [{ + xtype : 'button', + text : '查询', + minWidth : 70, + iconCls : 'icon_search', + handler : function() { + initQueryValueAndReload(); + } + }] + }, { + width : 80, + layout : 'form', + items : [{ + xtype : 'button', + text : '重置', + minWidth : 70, + iconCls : 'icon_set', + handler : function() { + Ext4.getCmp('tousseName').setValue(""); +// $Id('tousseName').value = ""; + } + }] + }] + },{ + + region : 'center', - margins : '0 0 0 0', - layout : 'fit', - items : [{ - layout:'fit', - items: [ - Ext4.create('Ext4.grid.Panel', { - store : packingRecordStore, - columnLines: true, -// height: document.body.clientHeight-25, - viewConfig : {loadMask : {msg : '正在加载,请稍候...'}}, - columns: [ - {header: '科室', dataIndex: 'depart',width: 200}, - {header: '装配时间', dataIndex: 'packTimeStr',width: 150}, - {header: '器械包', dataIndex: 'tousseName', width: 200,renderer:filterUnderScoreName}, - {header: '数量', dataIndex: 'amount'}, - {header: '配包人',flex: 1, dataIndex: 'packer'} - ], - autoExpandColumn : 'packer', - dockedItems: [ - { - xtype: 'pagingtoolbar', - store: packingRecordStore, - dock: 'bottom', //分页 位置 - emptyMsg: '没有数据', - displayInfo: true, - displayMsg: '当前显示{0}-{1}条记录 / 共{2}条记录 ', - beforePageText: '第', - afterPageText: '页/共{0}页' - }], - listeners: { - itemclick: function (dv, record, item, index, e) { - var packingRecordId = record.get('id'); - rePrintBarcodeWinForPacking(packingRecordId,SSTS_HistoryPacking_Update,SSTS_HistoryPacking_Change_Patient); - } - } - }) - ] - }] + margin : '0 0 0 0', + layout:'fit', + items: [ + Ext4.create('Ext4.grid.Panel', { + store : packingRecordStore, + columnLines: true, +// height: document.body.clientHeight-25, + viewConfig : {loadMask : {msg : '正在加载,请稍候...'}}, + columns: [ + {header: '科室', dataIndex: 'depart',width: 200}, + {header: '装配时间', dataIndex: 'packTimeStr',width: 150}, + {header: '器械包', dataIndex: 'tousseName', width: 200,renderer:filterUnderScoreName}, + {header: '数量', dataIndex: 'amount'}, + {header: '配包人',flex: 1, dataIndex: 'packer'} + ], + autoExpandColumn : 'packer', + dockedItems: [ + { + xtype: 'pagingtoolbar', + store: packingRecordStore, + dock: 'bottom', //分页 位置 + emptyMsg: '没有数据', + displayInfo: true, + displayMsg: '当前显示{0}-{1}条记录 / 共{2}条记录 ', + beforePageText: '第', + afterPageText: '页/共{0}页' + }], + listeners: { + itemclick: function (dv, record, item, index, e) { + var packingRecordId = record.get('id'); + rePrintBarcodeWinForPacking(packingRecordId,SSTS_HistoryPacking_Update,SSTS_HistoryPacking_Change_Patient); + } + } + }) + ] + }] } ]