Index: ssts-web/src/main/webapp/disinfectsystem/assestManagement/godownEntry/godownEntryView.js =================================================================== diff -u -r12952 -r12959 --- ssts-web/src/main/webapp/disinfectsystem/assestManagement/godownEntry/godownEntryView.js (.../godownEntryView.js) (revision 12952) +++ ssts-web/src/main/webapp/disinfectsystem/assestManagement/godownEntry/godownEntryView.js (.../godownEntryView.js) (revision 12959) @@ -1,4 +1,4 @@ -var entityName = "入库单管理"; +var entityName = "入库单"; var grid; var batchNumStore; var g_localID = 1;// 为了区分每一个item,增加的ID。 @@ -1257,67 +1257,67 @@ }); } // 打印,目前只支持单个打印 -function batchPrintGodownEntrys(ids, printType){ - if(ids == null) - return; - top.Ext.MessageBox.show({ - title:'请等待', - msg:'打印中……', - width:350, - progress:true, - closable:false - }); - Ext.Ajax.timeout=300*000; - Ext.Ajax.request({ - timeout: 300*000, - url : WWWROOT + '/disinfectSystem/godownEntryAction!mergeLoadToussePrintData.do', - params : {ids : ids}, - success : function(response){ - var result = Ext.decode(response.responseText); -// result.depart = depart; -// result.departBarcode = departBarcode; - result.printUser = curUserName; - result.printTime = Ext.util.Format.date(new Date(), 'Y-m-d H:i'); - // 发料人默认改为当前用户 - if (isUndefinedOrNullOrEmpty(result.sender)) { - result.sender = curUserName; - } - printGodownEntrys(result, printType); - - if (printType == 0){ -// updatePrintStatus(ids); - } - - hideMessageBox(true); - }, - failure: function(response){ - showResult("打印失败!"); - hideMessageBox(true); - } - }); -} +//function batchPrintGodownEntrys(ids, printType){ +// if(ids == null) +// return; +// top.Ext.MessageBox.show({ +// title:'请等待', +// msg:'打印中……', +// width:350, +// progress:true, +// closable:false +// }); +// Ext.Ajax.timeout=300*000; +// Ext.Ajax.request({ +// timeout: 300*000, +// url : WWWROOT + '/disinfectSystem/godownEntryAction!mergeLoadToussePrintData.do', +// params : {ids : ids}, +// success : function(response){ +// var result = Ext.decode(response.responseText); +//// result.depart = depart; +//// result.departBarcode = departBarcode; +// result.printUser = curUserName; +// result.printTime = Ext.util.Format.date(new Date(), 'Y-m-d H:i'); +// // 发料人默认改为当前用户 +// if (isUndefinedOrNullOrEmpty(result.sender)) { +// result.sender = curUserName; +// } +// printGodownEntrys(result, printType); +// +// if (printType == 0){ +//// updatePrintStatus(ids); +// } +// +// hideMessageBox(true); +// }, +// failure: function(response){ +// showResult("打印失败!"); +// hideMessageBox(true); +// } +// }); +//} -function printGodownEntrys(godownEntrysInfo, printType) { - godownEntrysInfo.applicationType = "一次性物品入库单"; -// godownEntrysInfo.barcode = godownEntrysInfo.departBarcode; - godownEntrysInfo.formTypeOfPrinted = 'godownEntry'; - var unitName = ""; -// DWREngine.setAsync(false); -// SupplyRoomConfigTableManager.getStartTimeObject(function(config){ -// if(config != null){ -// unitName = config.unitName; -// } -// }); -// DWREngine.setAsync(true); - godownEntrysInfo.unitName = unitName; -// godownEntrysInfo.printConfigObj_default = batchPrintGodownEntrysConfig_default; - printGodownEntryInfo_local(godownEntrysInfo, printType); -} -function printGodownEntryInfo_local(godownEntrysInfo, type){ - setGoodsInfos(godownEntrysInfo); - godownEntrysInfo.category = '共'+godownEntrysInfo.totalRows+'种'; - printGodownEntryInfo(godownEntrysInfo, type); -} +//function printGodownEntrys(godownEntrysInfo, printType) { +// godownEntrysInfo.applicationType = "一次性物品入库单"; +//// godownEntrysInfo.barcode = godownEntrysInfo.departBarcode; +// godownEntrysInfo.formTypeOfPrinted = 'godownEntry'; +// var unitName = ""; +//// DWREngine.setAsync(false); +//// SupplyRoomConfigTableManager.getStartTimeObject(function(config){ +//// if(config != null){ +//// unitName = config.unitName; +//// } +//// }); +//// DWREngine.setAsync(true); +// godownEntrysInfo.unitName = unitName; +//// godownEntrysInfo.printConfigObj_default = batchPrintGodownEntrysConfig_default; +// printGodownEntryInfo_local(godownEntrysInfo, printType); +//} +//function printGodownEntryInfo_local(godownEntrysInfo, type){ +// setGoodsInfos(godownEntrysInfo); +// godownEntrysInfo.category = '共'+godownEntrysInfo.totalRows+'种'; +// printGodownEntryInfo(godownEntrysInfo, type); +//} // 删除 function deleteGodownEntry(grid) { @@ -1443,6 +1443,7 @@ Ext.onReady(function() { Ext.QuickTips.init(); + commonEntry.setCurrentUserName(curUserName); var columns = [ {header : "单号",width : 200,dataIndex : 'serialNumber', renderer : modifyRecord}, {header : "操作员",width : 200,dataIndex : 'operator'}, @@ -1502,29 +1503,30 @@ // hidden : SSTS_WarehouseEntry_Delete, iconCls : 'icon_print', handler : function() { - var records = grid.getSelectionModel().getSelections(); - if (records.length == 0) { - showResult("请选择要打印的入库单!"); - return; - } - if (records.length != 1) { - showResult("一次只能打印1个入库单!"); - return; - } - var ids = null; - for ( var i = 0, len = records.length; i < len; i++) { - if (ids == null) { - ids = records[i].data['id']; - } else { - ids = ids + ',' + records[i].data['id']; - } - } - top.Ext.MessageBox.confirm("请确认", "要打印本申请单吗?", - function(btn) { - if (btn == 'yes') { - batchPrintGodownEntrys(ids,0); - } - }); + commonEntry.onPrintEntryDetail(grid,entityName); +// var records = grid.getSelectionModel().getSelections(); +// if (records.length == 0) { +// showResult("请选择要打印的入库单!"); +// return; +// } +// if (records.length != 1) { +// showResult("一次只能打印1个入库单!"); +// return; +// } +// var ids = null; +// for ( var i = 0, len = records.length; i < len; i++) { +// if (ids == null) { +// ids = records[i].data['id']; +// } else { +// ids = ids + ',' + records[i].data['id']; +// } +// } +// top.Ext.MessageBox.confirm("请确认", "要打印本申请单吗?", +// function(btn) { +// if (btn == 'yes') { +// batchPrintGodownEntrys(ids,0); +// } +// }); } },'-',{ Index: ssts-web/src/main/webapp/disinfectsystem/assestManagement/godownEntry/godownOutView.jsp =================================================================== diff -u -r12797 -r12959 --- ssts-web/src/main/webapp/disinfectsystem/assestManagement/godownEntry/godownOutView.jsp (.../godownOutView.jsp) (revision 12797) +++ ssts-web/src/main/webapp/disinfectsystem/assestManagement/godownEntry/godownOutView.jsp (.../godownOutView.jsp) (revision 12959) @@ -11,6 +11,7 @@