Index: ssts-web/src/main/webapp/debug/print/printDebug.js =================================================================== diff -u -r13068 -r14191 --- ssts-web/src/main/webapp/debug/print/printDebug.js (.../printDebug.js) (revision 13068) +++ ssts-web/src/main/webapp/debug/print/printDebug.js (.../printDebug.js) (revision 14191) @@ -36,6 +36,10 @@ // } return name; } +function buildTousseName(){ + var toussName = buildName('包', maxToussNameLength); + return toussName; +} // 构造器械包 function buildTousse() { @@ -278,7 +282,23 @@ } printIDCardInstance(idCardInstance); } - +// 打印外部代理灭菌 +function printForeignProxyDisinfection(pageType){ + var printBarcode = '010159687'; + var tousseName = buildTousseName(); + var applicant = '杨晓敏'; + var depart = '急诊科'; + var sterilizationDate = '2016-01-18'; + var validDate = '2016-01-18'; + var hospitalName = '广医二院'; + var material = []; + var maker = '杨晓敏'; + var assistant = ''; + var printSummaryObj = {tousseType:'外部代理灭菌','barcode':printBarcode, 'name':tousseName, 'applicant':applicant, 'depart': depart, 'sterilizationDate':sterilizationDate, 'validDate':validDate, + 'hospitalName':hospitalName, 'sterilizer':sterilizer, 'frequency':frequency, 'material':material, 'sterilingType':sterilingType, + 'maker':maker,'markTousse' : markTousse,'assistant':assistant,pageType:pageType}; + defaultForeignPrintPackage(printSummaryObj); +} Ext.onReady(function() { Ext.QuickTips.init(); Ext.apply(Ext.QuickTips.getQuickTip(), { @@ -319,162 +339,6 @@ height : rowHeight, layout : 'form', items : [ { - id : '器械包_小标签_10', - xtype : 'button', - text : '器械包_小标签_10', - cls : 'css_printBtns', - ctcls : 'ctcss_printBtns', - handler : function() { - printTousse('小标签', 10); - } - } ] - }, { - height : rowHeight, - layout : 'form', - items : [ { - id : '器械包_小标签_12', - xtype : 'button', - text : '器械包_小标签_12', - cls : 'css_printBtns', - ctcls : 'ctcss_printBtns', - handler : function() { - printTousse('小标签', 12); - } - } ] - }, { - height : rowHeight, - layout : 'form', - items : [ { - id : '器械包_小标签_14', - xtype : 'button', - text : '器械包_小标签_14', - cls : 'css_printBtns', - ctcls : 'ctcss_printBtns', - handler : function() { - printTousse('小标签', 14); - } - } ] - }, { - height : rowHeight, - layout : 'form', - items : [ { - id : '器械包_小标签_16', - xtype : 'button', - text : '器械包_小标签_16', - cls : 'css_printBtns', - ctcls : 'ctcss_printBtns', - handler : function() { - printTousse('小标签', 16); - } - } ] - }, { - height : rowHeight, - layout : 'form', - items : [ { - id : '器械包_小标签_18', - xtype : 'button', - text : '器械包_小标签_18', - cls : 'css_printBtns', - ctcls : 'ctcss_printBtns', - handler : function() { - printTousse('小标签', 18); - } - } ] - }, { - height : rowHeight, - layout : 'form', - items : [ { - id : '器械包_小标签_20', - xtype : 'button', - text : '器械包_小标签_20', - cls : 'css_printBtns', - ctcls : 'ctcss_printBtns', - handler : function() { - printTousse('小标签', 20); - } - } ] - }, { - height : rowHeight, - layout : 'form', - items : [ { - id : '器械包_小标签_22', - xtype : 'button', - text : '器械包_小标签_22', - cls : 'css_printBtns', - ctcls : 'ctcss_printBtns', - handler : function() { - printTousse('小标签', 22); - } - } ] - }, { - height : rowHeight, - layout : 'form', - items : [ { - id : '器械包_小标签_24', - xtype : 'button', - text : '器械包_小标签_24', - cls : 'css_printBtns', - ctcls : 'ctcss_printBtns', - handler : function() { - printTousse('小标签', 24); - } - } ] - }, { - height : rowHeight, - layout : 'form', - items : [ { - id : '器械包_小标签_26', - xtype : 'button', - text : '器械包_小标签_26', - cls : 'css_printBtns', - ctcls : 'ctcss_printBtns', - handler : function() { - printTousse('小标签', 26); - } - } ] - }, { - height : rowHeight, - layout : 'form', - items : [ { - id : '器械包_小标签_28', - xtype : 'button', - text : '器械包_小标签_28', - cls : 'css_printBtns', - ctcls : 'ctcss_printBtns', - handler : function() { - printTousse('小标签', 28); - } - } ] - }, { - height : rowHeight, - layout : 'form', - items : [ { - id : '器械包_小标签_30', - xtype : 'button', - text : '器械包_小标签_30', - cls : 'css_printBtns', - ctcls : 'ctcss_printBtns', - handler : function() { - printTousse('小标签', 30); - } - } ] - }, { - height : rowHeight, - layout : 'form', - items : [ { - id : '器械包_小标签2_6', - xtype : 'button', - text : '器械包_小标签2_6', - cls : 'css_printBtns', - ctcls : 'ctcss_printBtns', - handler : function() { - printTousse('小标签2', 6); - } - } ] - }, { - height : rowHeight, - layout : 'form', - items : [ { id : '器械包_中标签_8', xtype : 'button', text : '器械包_中标签_8', @@ -488,149 +352,6 @@ height : rowHeight, layout : 'form', items : [ { - id : '器械包_中标签_10', - xtype : 'button', - text : '器械包_中标签_10', - cls : 'css_printBtns', - ctcls : 'ctcss_printBtns', - handler : function() { - printTousse('中标签', 10); - } - } ] - }, { - height : rowHeight, - layout : 'form', - items : [ { - id : '器械包_中标签_12', - xtype : 'button', - text : '器械包_中标签_12', - cls : 'css_printBtns', - ctcls : 'ctcss_printBtns', - handler : function() { - printTousse('中标签', 12); - } - } ] - }, { - height : rowHeight, - layout : 'form', - items : [ { - id : '器械包_中标签_14', - xtype : 'button', - text : '器械包_中标签_14', - cls : 'css_printBtns', - ctcls : 'ctcss_printBtns', - handler : function() { - printTousse('中标签', 14); - } - } ] - }, { - height : rowHeight, - layout : 'form', - items : [ { - id : '器械包_中标签_16', - xtype : 'button', - text : '器械包_中标签_16', - cls : 'css_printBtns', - ctcls : 'ctcss_printBtns', - handler : function() { - printTousse('中标签', 16); - } - } ] - }, { - height : rowHeight, - layout : 'form', - items : [ { - id : '器械包_中标签_18', - xtype : 'button', - text : '器械包_中标签_18', - cls : 'css_printBtns', - ctcls : 'ctcss_printBtns', - handler : function() { - printTousse('中标签', 18); - } - } ] - }, { - height : rowHeight, - layout : 'form', - items : [ { - id : '器械包_中标签_20', - xtype : 'button', - text : '器械包_中标签_20', - cls : 'css_printBtns', - ctcls : 'ctcss_printBtns', - handler : function() { - printTousse('中标签', 20); - } - } ] - }, { - height : rowHeight, - layout : 'form', - items : [ { - id : '器械包_中标签_22', - xtype : 'button', - text : '器械包_中标签_22', - cls : 'css_printBtns', - ctcls : 'ctcss_printBtns', - handler : function() { - printTousse('中标签', 22); - } - } ] - }, { - height : rowHeight, - layout : 'form', - items : [ { - id : '器械包_中标签_24', - xtype : 'button', - text : '器械包_中标签_24', - cls : 'css_printBtns', - ctcls : 'ctcss_printBtns', - handler : function() { - printTousse('中标签', 24); - } - } ] - }, { - height : rowHeight, - layout : 'form', - items : [ { - id : '器械包_中标签_26', - xtype : 'button', - text : '器械包_中标签_26', - cls : 'css_printBtns', - ctcls : 'ctcss_printBtns', - handler : function() { - printTousse('中标签', 26); - } - } ] - }, { - height : rowHeight, - layout : 'form', - items : [ { - id : '器械包_中标签_28', - xtype : 'button', - text : '器械包_中标签_28', - cls : 'css_printBtns', - ctcls : 'ctcss_printBtns', - handler : function() { - printTousse('中标签', 28); - } - } ] - }, { - height : rowHeight, - layout : 'form', - items : [ { - id : '器械包_中标签_30', - xtype : 'button', - text : '器械包_中标签_30', - cls : 'css_printBtns', - ctcls : 'ctcss_printBtns', - handler : function() { - printTousse('中标签', 30); - } - } ] - }, { - height : rowHeight, - layout : 'form', - items : [ { id : '器械包_大标签_8', xtype : 'button', text : '器械包_大标签_8', @@ -644,201 +365,84 @@ height : rowHeight, layout : 'form', items : [ { - id : '器械包_大标签_10', + id : '器械包_加大标签', xtype : 'button', - text : '器械包_大标签_10', + text : '器械包_加大标签', cls : 'css_printBtns', ctcls : 'ctcss_printBtns', handler : function() { - printTousse('大标签', 10); + printTousse('加大标签', 30); } } ] }, { height : rowHeight, layout : 'form', items : [ { - id : '器械包_大标签_12', + id : '外来器械_中标签_8', xtype : 'button', - text : '器械包_大标签_12', + text : '外来器械_中标签_8', cls : 'css_printBtns', ctcls : 'ctcss_printBtns', handler : function() { - printTousse('大标签', 12); + printForeignTousse('中标签', 8); } } ] }, { height : rowHeight, layout : 'form', items : [ { - id : '器械包_大标签_14', + id : '外来器械_大标签', xtype : 'button', - text : '器械包_大标签_14', + text : '外来器械_大标签', cls : 'css_printBtns', ctcls : 'ctcss_printBtns', handler : function() { - printTousse('大标签', 14); + printForeignTousse('大标签', 8); } } ] - }, { + },{ height : rowHeight, layout : 'form', items : [ { - id : '器械包_大标签_16', + id : '外部代理灭菌_小标签', xtype : 'button', - text : '器械包_大标签_16', + text : '外部代理灭菌_小标签', cls : 'css_printBtns', ctcls : 'ctcss_printBtns', handler : function() { - printTousse('大标签', 16); + printForeignProxyDisinfection('小标签'); } } ] }, { height : rowHeight, layout : 'form', items : [ { - id : '器械包_大标签_18', + id : '标识牌_大标签', xtype : 'button', - text : '器械包_大标签_18', + text : '标识牌_大标签', cls : 'css_printBtns', ctcls : 'ctcss_printBtns', handler : function() { - printTousse('大标签', 18); + printIDCard('大标签'); } } ] }, { height : rowHeight, layout : 'form', items : [ { - id : '器械包_大标签_20', + id : '标识牌_中标签', xtype : 'button', - text : '器械包_大标签_20', + text : '标识牌_中标签', cls : 'css_printBtns', ctcls : 'ctcss_printBtns', handler : function() { - printTousse('大标签', 20); + printIDCard('中标签'); } } ] }, { height : rowHeight, layout : 'form', items : [ { - id : '器械包_大标签_22', - xtype : 'button', - text : '器械包_大标签_22', - cls : 'css_printBtns', - ctcls : 'ctcss_printBtns', - handler : function() { - printTousse('大标签', 22); - } - } ] - }, { - height : rowHeight, - layout : 'form', - items : [ { - id : '器械包_大标签_24', - xtype : 'button', - text : '器械包_大标签_24', - cls : 'css_printBtns', - ctcls : 'ctcss_printBtns', - handler : function() { - printTousse('大标签', 24); - } - } ] - }, { - height : rowHeight, - layout : 'form', - items : [ { - id : '器械包_大标签_26', - xtype : 'button', - text : '器械包_大标签_26', - cls : 'css_printBtns', - ctcls : 'ctcss_printBtns', - handler : function() { - printTousse('大标签', 26); - } - } ] - }, { - height : rowHeight, - layout : 'form', - items : [ { - id : '器械包_大标签_28', - xtype : 'button', - text : '器械包_大标签_28', - cls : 'css_printBtns', - ctcls : 'ctcss_printBtns', - handler : function() { - printTousse('大标签', 28); - } - } ] - }, { - height : rowHeight, - layout : 'form', - items : [ { - id : '器械包_大标签_30', - xtype : 'button', - text : '器械包_大标签_30', - cls : 'css_printBtns', - ctcls : 'ctcss_printBtns', - handler : function() { - printTousse('大标签', 30); - } - } ] - }, { - height : rowHeight, - layout : 'form', - items : [ { - id : '器械包_加大标签', - xtype : 'button', - text : '器械包_加大标签', - cls : 'css_printBtns', - ctcls : 'ctcss_printBtns', - handler : function() { - printTousse('加大标签', 30); - } - } ] - }, { - height : rowHeight, - layout : 'form', - items : [ { - id : '外来器械_中标签_8', - xtype : 'button', - text : '外来器械_中标签_8', - cls : 'css_printBtns', - ctcls : 'ctcss_printBtns', - handler : function() { - printForeignTousse('中标签', 8); - } - } ] - }, { - height : rowHeight, - layout : 'form', - items : [ { - id : '外来器械_大标签', - xtype : 'button', - text : '外来器械_大标签', - cls : 'css_printBtns', - ctcls : 'ctcss_printBtns', - handler : function() { - printForeignTousse('大标签', 8); - } - } ] - }, { - height : rowHeight, - layout : 'form', - items : [ { - id : '标识牌_大标签', - xtype : 'button', - text : '标识牌_大标签', - cls : 'css_printBtns', - ctcls : 'ctcss_printBtns', - handler : function() { - printIDCard('大标签'); - } - } ] - }, { - height : rowHeight, - layout : 'form', - items : [ { id : '标识牌_小标签', xtype : 'button', text : '标识牌_小标签',