Index: ssts-web/src/main/webapp/disinfectsystem/packing/packingView.js =================================================================== diff -u -r12511 -r12561 --- ssts-web/src/main/webapp/disinfectsystem/packing/packingView.js (.../packingView.js) (revision 12511) +++ ssts-web/src/main/webapp/disinfectsystem/packing/packingView.js (.../packingView.js) (revision 12561) @@ -811,7 +811,7 @@ var imagePanel = new Ext4.Panel({ id : 'imagePanel', - height:(sstsConfig.showInspectorField ? 230 : 297), + height:((sstsConfig.showInspectorField || sstsConfig.showWrapperField || sstsConfig.showSterilizer) ? 230 : 297), border : true, layout:'fit', items : [{ @@ -1001,333 +1001,309 @@ name : 'wrapperCode', value : wrapperCode },{ - xtype : 'hidden', - id : 'idCardBarcode', - name : 'idCardBarcode' - }, - { + xtype : 'hidden', + id : 'idCardBarcode', + name : 'idCardBarcode' + },{ columnWidth : .5, - layout : 'form', hidden : sstsConfig.disableIdCard, - items : [{ - xtype : 'textfield', - id : 'scanIdCardBarcode', - fieldLabel : "标识牌条码", - labelWidth:90, - anchor : '90%', - labelAlign:'right', - listeners : { - specialkey : function(thiz, e){ - if(e.getKey() == 13){ - loadIdCardByBarcode(thiz); - } + xtype : 'textfield', + id : 'scanIdCardBarcode', + fieldLabel : "标识牌条码", + componentCls:'formItemMgn', + labelWidth:90, + anchor : '90%', + labelAlign:'right', + listeners : { + specialkey : function(thiz, e){ + if(e.getKey() == 13){ + loadIdCardByBarcode(thiz); } } - }] + } },{ columnWidth : .47, - layout : 'form', hidden : sstsConfig.disableIdCard, - items : [{ - xtype : 'textfield', - fieldLabel : '标识牌', - maxLength : '50', - id : 'idCardName', - name : 'idCardName', - labelWidth:60, - anchor : '95%', - labelAlign:'right', - allowBlank : true, - readOnly : true - - }] - }, - {columnWidth :.5, - layout : 'form', - items : [{ - xtype : 'textfield', - fieldLabel : '检查人条码', - id : 'inspectorBarcode', - name : 'inspectorBarcode', - hidden : !sstsConfig.showInspectorField, - labelWidth:90, - anchor : '90%', - labelAlign:'right', - listeners : { - specialkey : function(thiz, e){ - if(e.getKey() == 13){ - loadUserByBarcode(thiz,'jobType_inspector'); - } + xtype : 'textfield', + fieldLabel : '标识牌', + componentCls:'formItemMgn', + maxLength : '50', + id : 'idCardName', + name : 'idCardName', + labelWidth:60, + anchor : '95%', + labelAlign:'right', + allowBlank : true, + readOnly : true + },{ + columnWidth :.5, + xtype : 'textfield', + fieldLabel : '检查人条码', + componentCls:'formItemMgn', + id : 'inspectorBarcode', + name : 'inspectorBarcode', + hidden : !sstsConfig.showInspectorField, + labelWidth:90, + anchor : '90%', + labelAlign:'right', + listeners : { + specialkey : function(thiz, e){ + if(e.getKey() == 13){ + loadUserByBarcode(thiz,'jobType_inspector'); } } - }] + } + },{ columnWidth :.47, - layout : 'form', - items : [{ - xtype : 'textfield', - fieldLabel : '检查人', - id : 'inspector', - name : 'inspector', - hidden : !sstsConfig.showInspectorField, - labelWidth:60, - anchor : '95%', - allowBlank : false, - readOnly : true, - labelAlign:'right', - value : jobType_inspector_name - }] - }, - {columnWidth :.5, - layout : 'form', - items : [{ - xtype : 'textfield', - fieldLabel : '配包人条码', - id : 'operatorBarcode', - name : 'operatorBarcode', - labelWidth:90, - anchor : '90%', - labelAlign:'right', - listeners : { - specialkey : function(thiz, e){ - if(e.getKey() == 13){ - loadUserByBarcode(thiz,'jobType_pack'); - } + xtype : 'textfield', + fieldLabel : '检查人', + componentCls:'formItemMgn', + id : 'inspector', + name : 'inspector', + hidden : !sstsConfig.showInspectorField, + labelWidth:60, + anchor : '95%', + allowBlank : false, + readOnly : true, + labelAlign:'right', + value : jobType_inspector_name + },{ + columnWidth :.5, + xtype : 'textfield', + fieldLabel : '配包人条码', + componentCls:'formItemMgn', + id : 'operatorBarcode', + name : 'operatorBarcode', + labelWidth:90, + anchor : '90%', + labelAlign:'right', + listeners : { + specialkey : function(thiz, e){ + if(e.getKey() == 13){ + loadUserByBarcode(thiz,'jobType_pack'); } } - }] + } + },{ columnWidth :.47, - layout : 'form', - items : [{ - xtype : 'textfield', - fieldLabel : '配包人', - id : 'operator', - name : 'operator', - labelWidth:60, - anchor : '95%', - allowBlank : false, - readOnly : true, - labelAlign:'right', - value : jobType_pack_name - }] + xtype : 'textfield', + fieldLabel : '配包人', + componentCls:'formItemMgn', + id : 'operator', + name : 'operator', + labelWidth:60, + anchor : '95%', + allowBlank : false, + readOnly : true, + labelAlign:'right', + value : jobType_pack_name + },{ columnWidth :.5, - layout : 'form', - items : [{ - xtype : 'textfield', - fieldLabel : '审核人条码', - id : 'reviewerBarcode', - name : 'reviewerBarcode', - hidden : sstsConfig.printLabelWhenReviewing, - labelWidth:90, - anchor : '90%', - labelAlign:'right', - listeners : { - specialkey : function(thiz, e){ - if(e.getKey() == 13){ - loadUserByBarcode(thiz,'jobType_review'); - } + xtype : 'textfield', + fieldLabel : '审核人条码', + componentCls:'formItemMgn', + id : 'reviewerBarcode', + name : 'reviewerBarcode', + hidden : sstsConfig.printLabelWhenReviewing, + labelWidth:90, + anchor : '90%', + labelAlign:'right', + listeners : { + specialkey : function(thiz, e){ + if(e.getKey() == 13){ + loadUserByBarcode(thiz,'jobType_review'); } } - }] + } + },{ columnWidth :.47, - layout : 'form', - items : [{ - xtype : 'textfield', - fieldLabel : '审核人', - id : 'reviewer', - name : 'reviewer', - hidden : sstsConfig.printLabelWhenReviewing, - labelAlign:'right', - labelWidth:60, - anchor : '95%', - allowBlank : false, - allowBlank : false, - readOnly : true, - value:jobType_review_name - }] + xtype : 'textfield', + fieldLabel : '审核人', + componentCls:'formItemMgn', + id : 'reviewer', + name : 'reviewer', + hidden : sstsConfig.printLabelWhenReviewing, + labelAlign:'right', + labelWidth:60, + anchor : '95%', + allowBlank : false, + allowBlank : false, + readOnly : true, + value:jobType_review_name + },{ columnWidth :.5, - layout : 'form', - items : [{ - xtype : 'textfield', - fieldLabel : '包装人条码', - id : 'wrapperBarcode', - name : 'wrapperBarcode', - hidden : !sstsConfig.showWrapperField, - labelWidth:90, - anchor : '90%', - labelAlign:'right', - listeners : { - specialkey : function(thiz, e){ - if(e.getKey() == 13){ - loadUserByBarcode(thiz,'jobType_wrapper'); - } + xtype : 'textfield', + fieldLabel : '包装人条码', + componentCls:'formItemMgn', + id : 'wrapperBarcode', + name : 'wrapperBarcode', + hidden : !sstsConfig.showWrapperField, + labelWidth:90, + anchor : '90%', + labelAlign:'right', + listeners : { + specialkey : function(thiz, e){ + if(e.getKey() == 13){ + loadUserByBarcode(thiz,'jobType_wrapper'); } } - }] + } + },{ columnWidth :.47, - layout : 'form', - items : [{ - xtype : 'textfield', - fieldLabel : '包装人', - id : 'wrapper', - name : 'wrapper', - hidden : !sstsConfig.showWrapperField, - labelAlign:'right', - labelWidth:60, - anchor : '95%', - allowBlank : false, - allowBlank : false, - readOnly : true, - value:jobType_wrapper_name - }] + xtype : 'textfield', + fieldLabel : '包装人', + componentCls:'formItemMgn', + id : 'wrapper', + name : 'wrapper', + hidden : !sstsConfig.showWrapperField, + labelAlign:'right', + labelWidth:60, + anchor : '95%', + allowBlank : false, + allowBlank : false, + readOnly : true, + value:jobType_wrapper_name + },{ columnWidth :.5, - layout : 'form', - items : [ - { xtype : 'combo', - fieldLabel : '灭菌程序', - id : 'sterilingType', - name : 'sterilingType', - minChars : 0, - labelWidth:90, - labelAlign:'right', - valueField : 'typeName', - displayField : 'typeName', - labelAlign:'right', - store : sterilizerTypeStore, - forceSelection : true, - lazyInit : true, - anchor : '90%', - editable:false, - triggerAction : 'all', - typeAhead : false, - allowBlank : false - } - ] + xtype : 'combo', + fieldLabel : '灭菌程序', + id : 'sterilingType', + name : 'sterilingType', + componentCls:'formItemMgn', + minChars : 0, + labelWidth:90, + labelAlign:'right', + valueField : 'typeName', + displayField : 'typeName', + labelAlign:'right', + store : sterilizerTypeStore, + forceSelection : true, + lazyInit : true, + anchor : '90%', + editable:false, + triggerAction : 'all', + typeAhead : false, + allowBlank : false },{ columnWidth :.47, - layout : 'form', - items : [ - {xtype : 'combo', - fieldLabel : '包装类型', - id : 'packageType', - name : 'packageType', - minChars : 0, - labelWidth:60, - labelAlign:'right', - valueField : 'typeName', - displayField : 'typeName', - labelAlign:'right', - store : packageTypeStore, - forceSelection : true, - lazyInit : true, - anchor : '95%', - editable:false, - triggerAction : 'all', - typeAhead : false, - allowBlank : false - }] + xtype : 'combo', + fieldLabel : '包装类型', + id : 'packageType', + name : 'packageType', + componentCls:'formItemMgn', + minChars : 0, + labelWidth:60, + labelAlign:'right', + valueField : 'typeName', + displayField : 'typeName', + labelAlign:'right', + store : packageTypeStore, + forceSelection : true, + lazyInit : true, + anchor : '95%', + editable:false, + triggerAction : 'all', + typeAhead : false, + allowBlank : false + },{ columnWidth :.5, - layout : 'form', - items : [ - { xtype : 'combo', - fieldLabel : '灭菌炉', - id : 'sterilizer', - name : 'sterilizer', - hidden : !sstsConfig.showSterilizer, - minChars : 0, - labelWidth:90, - labelAlign:'right', - valueField : 'sterilizerName', - displayField : 'sterilizerName', - labelAlign:'right', - store : sterilizerJsonStore, - forceSelection : true, - lazyInit : true, - anchor : '90%', - editable:false, - triggerAction : 'all', - typeAhead : false, - allowBlank : !sstsConfig.sterilizerNotAllowBlank, - listWidth:140, - listeners : { - select : function(combo, record, index) { - var sterilizerTypeObj = Ext4.getCmp("sterilingType").getValue(); - var reset = false; - SterilizationRecordTableManager.getSterilisationAndMaxFrequencyMap(combo.value,0,function(map){ - var sterilizerTypeData = new Array(); - sterilizerTypeData.push(new Array("0","无")); - var frequency = 1; - if(map){ - if(map.sterilisationList){ - reset = true; - for(var k=0,len=map.sterilisationList.length;k