Index: ssts-web/src/main/webapp/disinfectsystem/basedatamanager/operationRoom/operationRoomForm.js =================================================================== diff -u -r27230 -r34242 --- ssts-web/src/main/webapp/disinfectsystem/basedatamanager/operationRoom/operationRoomForm.js (.../operationRoomForm.js) (revision 27230) +++ ssts-web/src/main/webapp/disinfectsystem/basedatamanager/operationRoom/operationRoomForm.js (.../operationRoomForm.js) (revision 34242) @@ -137,6 +137,7 @@ id : 'parentOperationRoom', fieldLabel : '上级手术间', anchor : '95%', + height:22, value : parentOperationRoom, disabled : true, cls:'fieldReadOnlyNoRemove', @@ -199,12 +200,42 @@ } } }] + },{ + columnWidth : 1, + layout : 'form', + labelAlign:"right", + items:[{ + xtype : 'textfield', + name : 'barcode', + id : 'barcode', + fieldLabel : '条形码', + anchor : '95%', + height:22, + disabled : true, + cls:'fieldReadOnlyNoRemove', + allowBlank : true + }] }] }], buttons : [{ + text : '打印预览', + hidden:!id, + handler : function(){ + var barcode = top.Ext.getCmp('barcode').getValue(); + var name = top.Ext.getCmp('operationRoomName').getValue(); + print_operationRoom(barcode,name,'',PRINT_TYPE_PREVIEW); + } + }, { + text : '打印', + hidden:!id, + handler : function(){ + var barcode = top.Ext.getCmp('barcode').getValue(); + var name = top.Ext.getCmp('operationRoomName').getValue(); + print_operationRoom(barcode,name,''); + } + }, { text : '保存', id : 'saveBtn', -// hidden : id ? SSTS_IPAndOrgUnitMapping_Update : false, //如果没有修改的权限,隐藏此按钮,因为用户可能通过点击链接来修改 handler : save }, { text : '取消', @@ -235,6 +266,7 @@ success : function(form, action) { var data = action.result.data; top.Ext.getCmp('orgUnit').setValue(data.orgUnitName); + top.Ext.getCmp('barcode').setValue(data.barcodeDevice?data.barcodeDevice.barcode:''); }, failure : function(form, action) { } Index: ssts-web/src/main/webapp/disinfectsystem/basedatamanager/operationRoom/operationRoom.jsp =================================================================== diff -u -r29513 -r34242 --- ssts-web/src/main/webapp/disinfectsystem/basedatamanager/operationRoom/operationRoom.jsp (.../operationRoom.jsp) (revision 29513) +++ ssts-web/src/main/webapp/disinfectsystem/basedatamanager/operationRoom/operationRoom.jsp (.../operationRoom.jsp) (revision 34242) @@ -1,6 +1,8 @@ <%@ page contentType="text/html; charset=UTF-8"%> <%@ include file="/common/taglibs.jsp"%> <%@ include file="/common/includeExtJsAndCss.jsp"%> +<%@ include file="/common/include_Ext42_Js.jsp"%> +<%@ include file="/disinfectsystem/print/print.jsp"%>