Index: ssts-web/src/main/webapp/disinfectsystem/labelTemplateDesign/labelTemplateView.js =================================================================== diff -u -r15010 -r15022 --- ssts-web/src/main/webapp/disinfectsystem/labelTemplateDesign/labelTemplateView.js (.../labelTemplateView.js) (revision 15010) +++ ssts-web/src/main/webapp/disinfectsystem/labelTemplateDesign/labelTemplateView.js (.../labelTemplateView.js) (revision 15022) @@ -8,6 +8,11 @@ editConfig(data.id); } +// 打印设计 +function printCustomDesign(id){ + var href = WWWROOT+'/disinfectsystem/labelTemplateDesign/printCustomDesign.jsp?id='+id; + location.href = href; +} Ext.onReady(function() { Ext.QuickTips.init(); var columns = [ @@ -61,6 +66,22 @@ handler : function() { deleteConfig(grid); } + },'-',{ + text : '打印设计', + iconCls : 'btn_ext_application_edit', + handler : function() { + var records = grid.getSelectionModel().getSelections(); + if (records.length == 0) { + showResult("请选择要修改的数据!"); + return false; + } + if (records.length > 1) { + showResult("请选择要修改的数据!"); + return false; + } + id = records[0].data['id']; + printCustomDesign(id); + } }]; var dwrCallParams = null; Ext.ux.ForgonPageGrid.prototype.getGridParameterMap = function() {};