Index: ssts-web/src/main/webapp/disinfectsystem/basedatamanager/tousse/idCardForm.js =================================================================== diff -u -r21222 -r25752 --- ssts-web/src/main/webapp/disinfectsystem/basedatamanager/tousse/idCardForm.js (.../idCardForm.js) (revision 21222) +++ ssts-web/src/main/webapp/disinfectsystem/basedatamanager/tousse/idCardForm.js (.../idCardForm.js) (revision 25752) @@ -57,6 +57,7 @@ {name : 'barcode'}, {name : 'curIdCardInstanceBarcode'}, {name : 'idCardInstances'}, + {name : 'packageType'}, {name : 'useAmount'}, {name : 'traceableMaterials'}, {name : 'idCardInstancesLoad'}, @@ -93,15 +94,17 @@ loadIDCardDefinitions(); } + var signBoardCm = new top.Ext.grid.ColumnModel([ new top.Ext.grid.CheckboxSelectionModel ({singleSelect : true,hideable:false}),//checkbox 列 - {header : '序号',dataIndex : 'number',width : 50}, + {header : '序号',dataIndex : 'number',width : 30}, // {header : "当前条码",dataIndex : 'barcode',width : 70}, {header : "当前条码",dataIndex : 'curIdCardInstanceBarcode',width : 70}, - {header : "编号",dataIndex : 'idNumber',width : 70,editor : new top.Ext.form.TextField({ - })}, - {header : "使用次数",dataIndex : 'useAmount',width : 70}, - {header : "状态",dataIndex : 'status',width : 80}, + {header : "编号",dataIndex : 'idNumber',width : 30,editor : new top.Ext.form.TextField({ + })}, + {header : "使用次数",dataIndex : 'useAmount',width : 30}, + {header : "包装类型",dataIndex : 'packageType',width : 120,hidden:!sstsConfig.idCardAddPackageType}, + {header : "状态",dataIndex : 'status',width : 50}, {id:'description',header : "描述", dataIndex : 'description', width : 200, @@ -473,6 +476,14 @@ } },{ xtype:'button', + text:'修改包装类型', + hidden:!sstsConfig.idCardAddPackageType, + id : 'amendPackageType', + handler : function(){ + amendPackageType(); + } + },{ + xtype:'button', text:'补充并打印', hidden:!forSupplement, handler : function(){ @@ -1163,7 +1174,101 @@ } }); } + var packTypeStore = new Ext.data.SimpleStore({ + fields : [ 'typeName1' ], + url : WWWROOT + '/disinfectSystem/baseData/expirationDateInfoAction!getPackageType.do', + listeners:{ + load:function(store,records) { + if(records.length>0 && id==0) { + if (top.Ext.getCmp('packageType1') && top.Ext.getCmp('packageType1').getValue() == ''){ + top.Ext.getCmp('packageType1').setValue(records[0].data.typeName); + } + } + } + } + }); + //修改包装类型 + function amendPackageType(){ + // 获取选择的data + var idCardsRecords = getGridSelectionsRecords(gridPanel); + if(idCardsRecords.length == 0){ + showResult("请选择要修改的标识牌包装类型!"); + return; + } + for(var i=0;i