Index: ssts-web/src/main/webapp/disinfectsystem/basedatamanager/sterilizer/sterilizerForm.js =================================================================== diff -u -r13436 -r13750 --- ssts-web/src/main/webapp/disinfectsystem/basedatamanager/sterilizer/sterilizerForm.js (.../sterilizerForm.js) (revision 13436) +++ ssts-web/src/main/webapp/disinfectsystem/basedatamanager/sterilizer/sterilizerForm.js (.../sterilizerForm.js) (revision 13750) @@ -298,45 +298,63 @@ },{ layout : 'column', items : [{ - columnWidth : 0.5, - layout : 'form', - labelWidth : 80, + columnWidth : 0.6, + layout : 'column', items : [{ - xtype : 'textfield', - fieldLabel : "条码", - allowBlank : true, - name : "barcode", - id : "barcode", - readOnly:true, - cls : 'fieldReadOnlyNoRemove', - anchor : '95%' + columnWidth : 0.5, + layout : 'form', + labelWidth : 80, + items : [{ + xtype : 'textfield', + fieldLabel : "条码", + allowBlank : true, + name : "barcode", + id : "barcode", + readOnly:true, + cls : 'fieldReadOnlyNoRemove', + anchor : '95%' + }] },{ - xtype : 'textfield', - fieldLabel : "名称", - allowBlank : false, - blankText : '请输入名称!', - name : "name", - id : "name", - anchor : '95%' - },{ - xtype : 'combo', - fieldLabel : "所属科室", - valueField : 'orgUnitCoding', - displayField : 'orgUnitName', - store : departmentJsonStore, - forceSelection : true, - allowBlank : false, - triggerAction : 'all', - name : "department", - id : "department", - anchor : '95%', - listeners : { - select : function(combo, record, index) { - top.Ext.getCmp('orgUnitCoding').setValue((record.data.orgUnitCoding)); - } + columnWidth : 0.5, + layout : 'form', + labelWidth : 80, + items : [{ + xtype : 'textfield', + fieldLabel : "名称", + allowBlank : false, + blankText : '请输入名称!', + name : "name", + id : "name", + anchor : '95%' + }] + },{ + columnWidth : 0.5, + layout : 'form', + labelWidth : 80, + items : [{ + xtype : 'combo', + fieldLabel : "所属科室", + valueField : 'orgUnitCoding', + displayField : 'orgUnitName', + store : departmentJsonStore, + forceSelection : true, + allowBlank : false, + triggerAction : 'all', + name : "department", + id : "department", + anchor : '95%', + listeners : { + select : function(combo, record, index) { + top.Ext.getCmp('orgUnitCoding').setValue((record.data.orgUnitCoding)); } - },{ - xtype : 'combo', + } + }] + },{ + columnWidth : 0.5, + layout : 'form', + labelWidth : 80, + items:[{ + xtype : 'combo', fieldLabel : '隔天重置炉次', allowBlank : false, name : 'isEveryDayReset', @@ -348,144 +366,198 @@ mode : 'local', triggerAction : 'all', anchor : '95%' - },{ - xtype : 'combo', - fieldLabel : '校验灭菌时间', - allowBlank : false, - name : 'isCheckSterilizationTime', - id : 'isCheckSterilizationTime', - valueField : 'value', - displayField : 'value', - forceSelection : true, - store : isResetStore, - mode : 'local', - triggerAction : 'all', - anchor : '95%' - }, - { - xtype : 'dateextensiablefield', - width : 150, - fieldLabel : '购买日期', - id : 'purchaseDateStr', - name : 'purchaseDateStr', - format : 'Y-m-d', - readOnly : true, - minWidth : 177, - anchor : '95%' - }, { - xtype : 'numberfield', - fieldLabel : "价格", - allowBlank : true, - allowNegative : false, - name : 'price', - id : 'price', - anchor : '95%' - },{ - xtype : 'numberfield', - fieldLabel : "灭菌成本", - allowBlank : true, - allowNegative : false, - name : "cost", - id : "cost", - anchor : '95%' - },{ - xtype : 'combo', - fieldLabel : '所属分组', - valueField : 'ownGroup', - displayField : 'ownGroup', - id : 'ownGroup', - name : 'ownGroup', - mode : 'local', - triggerAction : 'all', - forceSelection : true, - editable : true, - anchor : '95%', - store : new Ext.data.SimpleStore({ - fields : [ 'ownGroup' ], - autoLoad : false, - data :sterilerGroupList - }) - },{ - xtype : 'combo', - fieldLabel : '设备接口', - valueField : 'id', - displayField : 'name', - submitValue : false, - id : 'deviceInterfaceName', - name : 'deviceInterfaceName', - queryMode: 'remote', - triggerAction : 'all', - forceSelection : true, - editable : true, - anchor : '95%', - store : deviceInterfaceJsonStore, - listeners : { - select : function(combo, - record, index) { - top.Ext.getCmp('deviceInterfaceId') - .setValue(record.data.id); - } + }] + },{ + columnWidth : 0.5, + layout : 'form', + labelWidth : 80, + items:[{ + xtype : 'combo', + fieldLabel : '校验灭菌时间', + allowBlank : false, + name : 'isCheckSterilizationTime', + id : 'isCheckSterilizationTime', + valueField : 'value', + displayField : 'value', + forceSelection : true, + store : isResetStore, + mode : 'local', + triggerAction : 'all', + anchor : '95%' + }] + },{ + columnWidth : 0.5, + layout : 'form', + labelWidth : 80, + items:[{ + xtype : 'dateextensiablefield', + width : 150, + fieldLabel : '购买日期', + id : 'purchaseDateStr', + name : 'purchaseDateStr', + format : 'Y-m-d', + readOnly : true, + minWidth : 177, + anchor : '95%' + }] + },{ + columnWidth : 0.5, + layout : 'form', + labelWidth : 80, + items:[{ + xtype : 'numberfield', + fieldLabel : "价格", + allowBlank : true, + allowNegative : false, + name : 'price', + id : 'price', + anchor : '95%' + }] + },{ + columnWidth : 0.5, + layout : 'form', + labelWidth : 80, + items:[{ + xtype : 'numberfield', + fieldLabel : "灭菌成本", + allowBlank : true, + allowNegative : false, + name : "cost", + id : "cost", + anchor : '95%' + }] + },{ + columnWidth : 0.5, + layout : 'form', + labelWidth : 80, + items:[{ + xtype : 'combo', + fieldLabel : '所属分组', + valueField : 'ownGroup', + displayField : 'ownGroup', + id : 'ownGroup', + name : 'ownGroup', + mode : 'local', + triggerAction : 'all', + forceSelection : true, + editable : true, + anchor : '95%', + store : new Ext.data.SimpleStore({ + fields : [ 'ownGroup' ], + autoLoad : false, + data :sterilerGroupList + }) + }] + },{ + columnWidth : 0.5, + layout : 'form', + labelWidth : 80, + items:[{ + columnWidth : 0.5, + xtype : 'combo', + fieldLabel : '设备接口', + valueField : 'id', + displayField : 'name', + submitValue : false, + id : 'deviceInterfaceName', + name : 'deviceInterfaceName', + queryMode: 'remote', + triggerAction : 'all', + forceSelection : true, + editable : true, + anchor : '95%', + store : deviceInterfaceJsonStore, + listeners : { + select : function(combo, + record, index) { + top.Ext.getCmp('deviceInterfaceId') + .setValue(record.data.id); } - },{ - xtype : 'textfield', - fieldLabel : "机器号", - allowBlank : true, - name : 'machineNumber', - id : 'machineNumber', - anchor : '95%' - }, - { - xtype : 'combo', - fieldLabel : "供应商", - valueField : 'companyID', - displayField : 'companyName', - store : foldersCompanyJsonStore, - forceSelection : true, - triggerAction : 'all', - name : "supplierName", - id : "supplierName", - anchor : '95%', - listeners : { - select : function(combo, - record, index) { - top.Ext.getCmp('supplierID') - .setValue(record.data.companyID); - } + } + }] + },{ + columnWidth : 0.5, + layout : 'form', + labelWidth : 80, + items:[{ + xtype : 'textfield', + fieldLabel : "机器号", + allowBlank : true, + name : 'machineNumber', + id : 'machineNumber', + anchor : '95%' + }] + },{ + columnWidth : 0.5, + layout : 'form', + labelWidth : 80, + items:[{ + xtype : 'combo', + fieldLabel : "供应商", + valueField : 'companyID', + displayField : 'companyName', + store : foldersCompanyJsonStore, + forceSelection : true, + triggerAction : 'all', + name : "supplierName", + id : "supplierName", + anchor : '95%', + listeners : { + select : function(combo, + record, index) { + top.Ext.getCmp('supplierID') + .setValue(record.data.companyID); } - },{ - xtype : 'textfield', - fieldLabel : "联系人", - allowBlank : true, - name : 'contact', - id : 'contact', - anchor : '95%' - },{ - xtype : 'textfield', - fieldLabel : "联系电话", - allowBlank : true, - regex: /^[0-9]{1}([0-9]|[-]){1,19}$/, - name : "phone", - id : "phone", - anchor : '95%' - },{ - xtype : 'textfield', - fieldLabel : "电子邮件", - allowBlank : true, - name : "email", - id : "email", - anchor : '95%' } - ] + }] + },{ + columnWidth : 0.5, + layout : 'form', + labelWidth : 80, + items:[{ + xtype : 'textfield', + fieldLabel : "联系人", + allowBlank : true, + name : 'contact', + id : 'contact', + anchor : '95%' + }] + },{ + columnWidth : 0.5, + layout : 'form', + labelWidth : 80, + items:[{ + xtype : 'textfield', + fieldLabel : "联系电话", + allowBlank : true, + regex: /^[0-9]{1}([0-9]|[-]){1,19}$/, + name : "phone", + id : "phone", + anchor : '95%' + }] + },{ + columnWidth : 0.5, + layout : 'form', + labelWidth : 80, + items:[{ + xtype : 'textfield', + fieldLabel : "电子邮件", + allowBlank : true, + name : "email", + id : "email", + anchor : '95%' + }] + }] }, { - columnWidth : 0.5, + columnWidth : 0.4, layout : 'form', labelWidth : 70, items : [new top.Ext.grid.EditorGridPanel({ id : 'configGrid', store : configStore, cm : cm, - width : 240, - height: 290, + width : 350, + height: 215, frame : false, viewConfig: { forceFit:true @@ -513,7 +585,7 @@ }] })] }, { - columnWidth : 0.5, + columnWidth : 0.6, layout : 'form', labelWidth : 70, items : [new top.Ext.grid.EditorGridPanel({ @@ -549,7 +621,7 @@ }] })] }, { - columnWidth : 0.5, + columnWidth : 0.4, layout : 'form', labelWidth : 70, items : [new top.Ext.grid.EditorGridPanel({ @@ -611,7 +683,7 @@ id : 'sterilizerWin', layout : 'fit', title : '灭菌炉信息', - width : 700, + width : 900, border : false, modal : true, autoHeight : true,