Index: ssts-web/src/main/webapp/disinfectsystem/basedatamanager/container/containerForm.js =================================================================== diff -u -r25052 -r25451 --- ssts-web/src/main/webapp/disinfectsystem/basedatamanager/container/containerForm.js (.../containerForm.js) (revision 25052) +++ ssts-web/src/main/webapp/disinfectsystem/basedatamanager/container/containerForm.js (.../containerForm.js) (revision 25451) @@ -22,7 +22,6 @@ fields : [ "orgUnitCoding", "orgUnitName"] }) }); - var washClassifyStore = new Ext.data.JsonStore({ url : WWWROOT + '/disinfectSystem/baseData/materialDefinitionAction!getHttpOptionResultSet.do', root: 'data', @@ -89,7 +88,14 @@ top.Ext.getCmp('departCode').setValue((record.data.orgUnitCoding)); } } - }] + },{ + xtype : 'textfield', + fieldLabel : "绑定科室编码", + allowBlank : true, + name : "bindDepartCodes", + id : "bindDepartCodes", + anchor : '95%' + }] }, { columnWidth : 0.5, layout : 'form', @@ -134,7 +140,7 @@ displayField : 'value', store : washClassifyStore, allowBlank: true, - editable:true, + editable:false, forceSelection : true, triggerAction : 'all', anchor : '95%' @@ -221,8 +227,20 @@ }); print_container(barcodeStr,name,unitName2,PRINT_TYPE_PRINT);//打印条码 } - function validateAndSubmit(print){ + /*Annie 判断使用空格,特殊符号*/ + var bindDepartCodes = top.Ext.getCmp('bindDepartCodes').getValue(); + if(bindDepartCodes != ''){ + var pattern = new RegExp("[`~!@#$^&*()=|{}':',\\[\\].<>/?~!@#¥\\\\……&*()——|{}【】‘;:”“'。,、?]"); + if(pattern.test(bindDepartCodes)){ + showResult('存在使用非法字符,如果有多个科室编码请使用分号;隔开'); + return false; + } + if(bindDepartCodes.indexOf(' ')!== -1 ){ + showResult('不能使用空格,如果有多个科室编码请使用分号;隔开'); + return false; + } + } Ext.Ajax.request({ url : WWWROOT + '/disinfectSystem/baseData/containerAction!validate.do', params : {validateId : top.Ext.getCmp('id').getValue(),valifateName:top.Ext.getCmp('containerName').getValue()}, @@ -253,6 +271,7 @@ showResult(result.message); top.Ext.getCmp('saveBtn').enable(); top.Ext.getCmp('saveAndPrint').enable(); + } }, failure : function(response, options) { Index: ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/recycleForTouchScreen.jsp =================================================================== diff -u -r25392 -r25451 --- ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/recycleForTouchScreen.jsp (.../recycleForTouchScreen.jsp) (revision 25392) +++ ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/recycleForTouchScreen.jsp (.../recycleForTouchScreen.jsp) (revision 25451) @@ -270,9 +270,9 @@