Index: ssts-web/src/main/webapp/disinfectsystem/sterilizationmanager/sterilizationrecord/foreignProxyDisinfectionView.js =================================================================== diff -u -r29040 -r29176 --- ssts-web/src/main/webapp/disinfectsystem/sterilizationmanager/sterilizationrecord/foreignProxyDisinfectionView.js (.../foreignProxyDisinfectionView.js) (revision 29040) +++ ssts-web/src/main/webapp/disinfectsystem/sterilizationmanager/sterilizationrecord/foreignProxyDisinfectionView.js (.../foreignProxyDisinfectionView.js) (revision 29176) @@ -361,6 +361,7 @@ obj.sterilingType = record.get('sterilingType'); obj.basketName = record.get('basketName'); obj.basketBarcode = record.get('basketBarcode'); + obj.departCoding = record.get('departCoding'); var sterileStartDate = record.get('sterileStartDate'); if(typeof sterileStartDate == 'object'){ sterileStartDate = sterileStartDate.format('Y-m-d') @@ -379,6 +380,8 @@ var sterilingType = top.Ext.getCmp('sterilingType1').getValue(); var sterileStartDate = top.Ext.getCmp('sterileStartDate1').getValue(); var basketName = top.Ext.getCmp('basketName').getValue(); + var depart = top.Ext.getCmp('depart').getValue(); + var departCoding = top.Ext.getCmp('departCoding').getValue(); if(mustScanBasketForForeignProxy && basketName!=null && basketName.trim().length==0){ showResult("请先扫描灭菌筐!"); return; @@ -396,8 +399,11 @@ }else if(count == ""){ showResult("请输入数量,数量必须大于0!"); top.Ext.getCmp('count1').focus(); + }else if(depart == ""){ + showResult("请先填写申请科室!"); + top.Ext.getCmp('depart').focus(); }else{ - addItemToGrid(top.Ext.getCmp('package1').getRawValue(),count,packageType,sterilingType,sterileStartDate,top.Ext.getCmp('basketName').getValue(),top.Ext.getCmp('basketBarcode1').getValue(),top.Ext.getCmp('tousseType1').getValue()); + addItemToGrid(top.Ext.getCmp('package1').getRawValue(),count,packageType,sterilingType,sterileStartDate,top.Ext.getCmp('basketName').getValue(),top.Ext.getCmp('basketBarcode1').getValue(),top.Ext.getCmp('tousseType1').getValue(),depart,departCoding); //光标操作 top.Ext.getCmp('package1').setValue(""); top.Ext.getCmp('tousseType1').setValue(""); @@ -544,6 +550,48 @@ dataIndex : 'id', hidden : true },{ + id : 'itemDepartCoding', + dataIndex : 'itemDepartCoding', + hidden : true + },{ + id : 'departCodingName', + header : "申请科室", + dataIndex : 'departCodingName', + width : 200, + menuDisabled: true, + hidden:id, + editor : new top.Ext.form.ComboBox({ + xtype : 'combo', + fieldLabel : '申请科室', + id : 'departCodingBox', + name : 'departCodingBox', + queryParam : 'spell', + valueField : 'id', + displayField : 'name', + store : appDepartJsonStore, + forceSelection : true, + lazyInit : false, + triggerAction : 'all', + hideTrigger : false, + typeAhead : false, + allowBlank : false, + anchor : '97%', + listeners:{ + select:function(combo, record, index){ + combo.setValue(record.data.name); + setTimeout(function(){ + for(var i=0,len=foreignItemStore.getCount(); i