Index: ssts-web/src/main/webapp/disinfectsystem/storageLocationManage/storageLocationManageView.js =================================================================== diff -u -r26725 -r26799 --- ssts-web/src/main/webapp/disinfectsystem/storageLocationManage/storageLocationManageView.js (.../storageLocationManageView.js) (revision 26725) +++ ssts-web/src/main/webapp/disinfectsystem/storageLocationManage/storageLocationManageView.js (.../storageLocationManageView.js) (revision 26799) @@ -133,16 +133,18 @@ } -function print_storageLocation(barcode,name,unitName,printType) { +function print_storageLocation(barcode,name,unitName,printType,storageLocationCode,simpleName) { var obj = { barcode:barcode, name:name, unitName:unitName, + storageLocationCode:storageLocationCode, + simpleName:simpleName, defaultPrintFun: function(){ if(printType == PRINT_TYPE_PREVIEW){ - preview(barcode,name,unitName); + storageLocationPreview(barcode,name,unitName,storageLocationCode,simpleName); }else{ - defaultPrint(barcode,name,unitName); + storageLocationDefaultPrint(barcode,name,unitName,storageLocationCode,simpleName); } }, dataSourceName: '库位', @@ -167,6 +169,10 @@ },{ name : 'parentId' },{ + name : 'simpleName' + },{ + name : 'storageLocationCode' + },{ name : 'name' },{ name : 'barcode' @@ -215,6 +221,9 @@ for(var i=0;i - + Index: ssts-web/src/main/webapp/disinfectsystem/storageLocationManage/storageLocationLookView.js =================================================================== diff -u -r26727 -r26799 --- ssts-web/src/main/webapp/disinfectsystem/storageLocationManage/storageLocationLookView.js (.../storageLocationLookView.js) (revision 26727) +++ ssts-web/src/main/webapp/disinfectsystem/storageLocationManage/storageLocationLookView.js (.../storageLocationLookView.js) (revision 26799) @@ -100,11 +100,11 @@ name : 'validUntil' },{ name : 'tousseBarcode' - }/* ,{ - name : 'barcode' - } */,{ + },{ name : 'storageLocationName' },{ + name : 'storageLocationCode' + },{ name : 'parentStorageLocationPath' },{ name : 'wareHouseName' @@ -116,9 +116,9 @@ header : "物品名称",width : 200,dataIndex : 'tousseName'}, {header : "灭菌日期",width :150,dataIndex : 'sterileEndTime' }, {header : "失效日期",width : 150,dataIndex : 'validUntil'}, - {header : "器械包条码",width : 120,dataIndex : 'tousseBarcode'}, - /* {header : "库位条码",width : 120,dataIndex : 'barcode'}, */ + {header : "器械包条码",width : 120,dataIndex : 'tousseBarcode'}, {header : "抽屉名称",width : 100,dataIndex : 'storageLocationName'}, + {header : "库位编码",width : 120,dataIndex : 'storageLocationCode'}, {header : "上级库位",width : 200,dataIndex : 'parentStorageLocationPath',menuDisabled : true}, {header : "仓库",width : 120,dataIndex : 'wareHouseName'}, {header : "所属科室",width : 120,dataIndex : 'orgUnitName',id:"orgUnitName"} @@ -129,9 +129,9 @@ {type : 'string', dataIndex : 'tousseName'}, {type : 'date', dataIndex : 'sterileEndTime'}, {type : 'date', dataIndex : 'validUntil'}, - {type : 'string', dataIndex : 'tousseBarcode'}, - /* {type : 'string', dataIndex : 'barcode'}, */ + {type : 'string', dataIndex : 'tousseBarcode'}, {type : 'string', dataIndex : 'storageLocationName'}, + {type : 'string', dataIndex : 'storageLocationCode'}, {type : 'string', dataIndex : 'parentStorageLocationPath'}, {type : 'string', dataIndex : 'wareHouseName'}, {type : 'string', dataIndex : 'orgUnitName'} @@ -221,6 +221,7 @@ specialkey : function(field, e) { var key = e.getKey(); if (key == Ext.EventObject.ENTER) { + queryStorageLocation(); Ext.getCmp('warseHouseName').focus(); } } Index: ssts-web/src/main/webapp/disinfectsystem/print/print.js =================================================================== diff -u -r26725 -r26799 --- ssts-web/src/main/webapp/disinfectsystem/print/print.js (.../print.js) (revision 26725) +++ ssts-web/src/main/webapp/disinfectsystem/print/print.js (.../print.js) (revision 26799) @@ -1182,6 +1182,57 @@ obj.defaultPrintFun(); } } +function CreateStorageLocation(barcode,name,unitName,storageLocationCode,simpleName) { + doGetLodop(); + var tableHtml =""; + tableHtml += ""; + tableHtml += ""; + tableHtml += ""; + + tableHtml += ""; + tableHtml += ""; + tableHtml += ""; + + tableHtml += ""; + tableHtml += ""; + tableHtml += ""; + + tableHtml += ""; + tableHtml += ""; + + tableHtml += "
"+unitName+"
"; + tableHtml += "
"+name+"
"+storageLocationCode+"
"; + tableHtml += ""; + tableHtml += "
"+barcode; + tableHtml += "
"; + LODOP.ADD_PRINT_HTM(0,0,"100%","100%",""+tableHtml+""); + LODOP.SET_PRINT_MODE("PRINT_PAGE_PERCENT","Full-Page"); + +}; + +function storageLocationDefaultPrint(barcode,name,unitName,storageLocationCode,simpleName) { + if (barcode != null && barcode != '') { + doGetLodop(); + LODOP.PRINT_INIT(""); + LODOP.SET_PRINTER_INDEX(-1);// TODO 可增加切换打印机的处理 + CreateStorageLocation(barcode,name,unitName,storageLocationCode,simpleName); + LODOP.PRINT(); + } else { + alert("打印内容为空"); + } +} +//库位打印预览 +function storageLocationPreview(barcode,name,unitName,storageLocationCode,simpleName) { + if (barcode != null && barcode != '') { + doGetLodop(); + LODOP.PRINT_INIT(""); + CreateStorageLocation(barcode,name,unitName,storageLocationCode,simpleName); + LODOP.SET_SHOW_MODE("HIDE_PAPER_BOARD",1); + LODOP.PREVIEW(); + } else { + alert("打印内容为空"); + } +}; //库位打印 function printObjStorageLocation(obj){ var t = getTemplateByDatasourceAndStyle(obj.dataSourceName, obj.styleName); Index: ssts-web/src/main/webapp/homepage/portalPage.js =================================================================== diff -u -r26725 -r26799 --- ssts-web/src/main/webapp/homepage/portalPage.js (.../portalPage.js) (revision 26725) +++ ssts-web/src/main/webapp/homepage/portalPage.js (.../portalPage.js) (revision 26799) @@ -841,7 +841,7 @@ } //如果没有开启库位管理功能,则桌面图标不显示 - if(!sstsConfig.enableWarehousePositionModule && itemId == 'storageLocationManager'){ + if(!sstsConfig.enableWarehousePositionModule && itemId == 'storageLocationManagerLook'){ return returnContent; } Index: ssts-web/src/main/webapp/disinfectsystem/storageLocationManage/storageLocationManageForm.js =================================================================== diff -u -r26725 -r26799 --- ssts-web/src/main/webapp/disinfectsystem/storageLocationManage/storageLocationManageForm.js (.../storageLocationManageForm.js) (revision 26725) +++ ssts-web/src/main/webapp/disinfectsystem/storageLocationManage/storageLocationManageForm.js (.../storageLocationManageForm.js) (revision 26799) @@ -245,6 +245,18 @@ anchor : '95%' }] },{ + columnWidth : .5, + layout : 'form', + labelAlign:"right", + height:30, + items:[{ + xtype : 'textfield', + name : 'storageLocationSimpleName', + id : 'storageLocationSimpleName', + fieldLabel : '库位简称', + anchor : '95%' + }] + },{ columnWidth : 0.85, layout : 'form', labelAlign:"right", @@ -366,6 +378,9 @@ top.Ext.getCmp('wareHouseBelong').setValue(data.wareHouseName); top.Ext.getCmp('putInGoods').setValue(data.tousseDefinitionNames); top.Ext.getCmp('putInGoodsCode').setValue(data.tousseDefinitionIds); + top.Ext.getCmp('wareHouseCode').setValue(data.storageLocationCode); + top.Ext.getCmp('storageLocationSimpleName').setValue(data.simpleName); + //top.Ext.getCmp('storageLocationSimpleName').setValue(data.storageLocationSimpleName); if (data.parentId == 0) { wareHouseId = data.wareHouseId; types = "storage"; Index: ssts-web/src/main/webapp/disinfectsystem/labelTemplateDesign/dataSource.js =================================================================== diff -u -r26725 -r26799 --- ssts-web/src/main/webapp/disinfectsystem/labelTemplateDesign/dataSource.js (.../dataSource.js) (revision 26725) +++ ssts-web/src/main/webapp/disinfectsystem/labelTemplateDesign/dataSource.js (.../dataSource.js) (revision 26799) @@ -699,12 +699,20 @@ textForPreview: '010000110' }),new ObjectDataSourceProperty({ propName: 'name', - displayName: '名字', + displayName: '库位名称', textForPreview: '抽屉01' }),new ObjectDataSourceProperty({ propName: 'unitName', displayName: '单位名称', textForPreview: '妇幼医院' + }),new ObjectDataSourceProperty({ + propName: 'storageLocationCode', + displayName: '库位编码', + textForPreview: '011' + }),new ObjectDataSourceProperty({ + propName: 'simpleName', + displayName: '库位简称', + textForPreview: '1号仓库' })] }); objectDataSourceManager.registerDataSource(storageLocationDataSource);