Index: ssts-web/src/main/webapp/js/Ext2CompUtil.js
===================================================================
diff -u -r15833 -r16102
--- ssts-web/src/main/webapp/js/Ext2CompUtil.js (.../Ext2CompUtil.js) (revision 15833)
+++ ssts-web/src/main/webapp/js/Ext2CompUtil.js (.../Ext2CompUtil.js) (revision 16102)
@@ -10,6 +10,12 @@
this.getComboBuilder = function () {
return comboBuilder;
}
+ this.getTableBuilder = function () {
+ return tableBuilder;
+ }
+ this.getTableTips = function () {
+ return tableTips;
+ }
}
//region comboBuilder
@@ -95,6 +101,179 @@
//endregion
+ //region tableBuilder
+ //用于生成table的对象
+ var tableBuilder = {};
+
+ /**
+ * 根据头部的配置来设置table的头部内容
+ * @param tHeadConfig 头部配置(有每一列的宽和内容)
+ * @returns {string}
+ */
+ tableBuilder.setTHead = function (tHeadConfig) {
+ var tHead = "";
+ for (var prop in tHeadConfig) {
+ tHead += "
" + prop + " | ";
+ }
+ return tHead;
+ }
+
+
+ /**
+ * 创建table
+ * @param tHeadConfig table的头部配置
+ * @param tBodyContent table的正文内容
+ * @returns {string}
+ */
+ tableBuilder.createTable = function (tHeadConfig, tBodyContent) {
+ var me = this;
+ var tipTable =
+ "" +
+ "
" +
+ "" + me.setTHead(tHeadConfig) + "
" + tBodyContent +
+ "
" +
+ "
";
+ return tipTable;
+ }
+ //endregion
+
+
+ //region tableTips
+ //提示框对象
+ var tableTips = {};
+
+
+ /**
+ * 添加mouseover事件
+ * @param winConfig 弹窗提示框配置(里面有grid,url,title,tipManagerCache)
+ * @param fn 回调函数
+ */
+ tableTips.popTipWin = function (winConfig, fn) {
+ var this_ = this;
+ var grid = winConfig.grid;
+ var tipManagerCache = winConfig.tipManagerCache;
+ grid.on('mouseover', function (e, elHtml) {
+ var me = this;
+ var thisRow = grid.getView().findRowIndex(elHtml);
+ if (thisRow !== false) {
+ var record = me.getStore().getAt(thisRow);
+ var id = record.get('id');
+ //从缓存里找对应生成的html,如果存在,则不再请求服务器,直接从缓存读取并生成
+ var tipTable = tipManagerCache[id];
+ if (tipTable) {
+ this_.register({
+ text: tipTable,
+ target: elHtml,
+ title: winConfig.title
+ });
+ }
+ else {
+ //获得提示框的对象
+ var tableTips = ext2CompUtil.getTableTips();
+ //加载对应提示框需要的数据并且在页面显示
+ tableTips.loadGoodsTips(winConfig.url, id, elHtml, fn);
+ }
+ }
+ });
+ }
+ /**
+ * 加载提示信息
+ * @param url 请求的url
+ * @param id 该项对应的id
+ * @param fn 回调函数
+ * @param elHtml 渲染的地方
+ */
+ tableTips.loadGoodsTips = function (url, id, elHtml, fn) {
+ Ext.Ajax.request({
+ url: url,
+ params: {id: id},
+ timeout: 600000,
+ waitMsg: '正在加载数据,请稍候',
+ method: 'POST',
+ success: function (response, options) {
+ try {
+ var result = Ext.decode(response.responseText);
+ var items = result.data.items;
+ //传回给回调函数的参数
+ var callBackPara = {
+ items: items,
+ elHtml: elHtml,
+ id: id
+ }
+ fn(callBackPara);
+ }
+ catch (e) {
+ alert("Exception : " + e);
+ }
+ },
+ failure: function (response, options) {
+ showResult(response.responseText);
+ }
+ });
+ }
+
+ /**
+ * 生成弹窗小提示
+ * @param tipConfig 相关配置(必传text,target,title)
+ */
+ tableTips.register = function (tipConfig) {
+ new Ext.ToolTip({
+ html: tipConfig.text,
+ target: tipConfig.target,
+ // 最大宽度
+ maxWidth: tipConfig.maxWidth || 500,
+ // 最小宽度
+ minWidth: tipConfig.minWidth || 300,
+ //允许溢出
+ overflowY: 'scroll',
+ overflowX: 'scroll',
+ title: tipConfig.title,
+ trackMouse: true
+ });
+ /* Ext.QuickTips.register({
+ text: tipConfig.text,
+ target: tipConfig.target,
+ // 消失的时间
+ hideDelay: tipConfig.hideDelay || 5000,
+ // 最大宽度
+ maxWidth: tipConfig.maxWidth || 500,
+ width: tipConfig.width || 450,
+ // 最小宽度
+ minWidth: tipConfig.minWidth || 300,
+ // 显示时间
+ showDelay: tipConfig.showDelay || 2000,
+ // 提示框是否跟着鼠标一起走
+ trackMouse: tipConfig.showDelay || true,
+ title: tipConfig.title
+ });*/
+ }
+
+ /**
+ * 建立提示框
+ * @param tHeadConfig table的head设置
+ * @param tBodyContent table的正文内容
+ * @param target 要渲染到什么地方
+ * @param title 提示框的信息
+ */
+ tableTips.buildTaleTips = function (tHeadConfig, tBodyContent, target, title) {
+ var me = this;
+ var tableBuilder = ext2CompUtil.getTableBuilder();
+ //获得生成的table的html
+ var tipTable = tableBuilder.createTable(tHeadConfig, tBodyContent);
+ var tipContent = {
+ text: tipTable,
+ target: target,
+ title: title
+ };
+ me.register(tipContent);
+ //返回页面做缓存,不能用register和tipContent返回,tipContent会缓存target,所以鼠标指向的地方要和第一次生成的地方一致才能正常显示,而register会有部分生成不了
+ return tipTable;
+ }
+
+
+ //endregion
+
+
return new ExtCompUtilFactory();
})();
\ No newline at end of file
Index: ssts-web/src/main/webapp/disinfectsystem/config/gzspyqzyy/config.js
===================================================================
diff -u -r15565 -r16102
--- ssts-web/src/main/webapp/disinfectsystem/config/gzspyqzyy/config.js (.../config.js) (revision 15565)
+++ ssts-web/src/main/webapp/disinfectsystem/config/gzspyqzyy/config.js (.../config.js) (revision 16102)
@@ -1,72 +1,75 @@
var sstsConfig = {
- // 禁用批量装入虚拟篮筐功能(仅仅隐藏页面相关的元素、不做后台控制.未配此参数时则标识牌功能默认为禁用),只有值为false才启用,为其它任何值或未配置此属性均表示禁用
- disableLoadToVirtualBasket : false,
- // 禁用标识牌功能(仅仅隐藏页面相关的元素、不做后台控制.未配此参数时则标识牌功能默认为禁用),只有值为false才启用,为其它任何值或未配置此属性均表示禁用
- disableIdCard : false,
- // 回收时科室显示结算科室
- showSettleAccountsDepartInRecycling : false,
- // 审核器械包必须入篮筐(一级供应室)
- mustScanBasketForTousseReview : true,
- // 审核器械包必须入篮筐(二级供应室)
- mustScanBasketForTousseReviewOf2ndSupplyRoom : true,
- // 申请表单的类型:1 : 通用申请单(组合申请单),2:分开的申请单
- applicationFormType : 1,
- hidePackageSpec : true,
- // 申请界面是否显示器械包或消毒物品的的单位
- showTousseUnitColumn : true,
- // 申请界面是否隐藏器械包价格
- hideToussePriceColumn : false,
- // 申请界面是否隐藏一次性物品价格
- hideDisposablePriceColumn : false,
- // 条码类型:1:一维码, 2:二维码
- barcodeType : 1,
- // 申请器械包时是否自动归还待归还物品
- autoReturnTousse : true,
- // 是否隐藏进入审核列表按钮
- hideEnterReviewListButton : true,
- // 已发货但是未签收的物品是否允许登记使用记录
- notSignedItemsCanRegistUseRecord : true,
- // 是否自动补全用户名
- autoFillUserName:false,
- // 自动补全用户名的长度
- autoFillUserNameLength:6,
- // 打印回收清单区分部分的过滤是通过器械包定义的资产归属属性
- recyclingRecordListFilterByAssetBelong : false,
- // 打印回收清单的打印物品范围,'器械包'、'消毒物品'、'敷料包'、'全部'
- recyclingRecordListPrintTousseType : '全部',
- // 是否支持部分终止申请单中的物品
- enableTerminatePartOfApplication : true,
- //限制入库单填写的一次性物品为能申领的物品
- restrictGodownEntryDiposableGoods : false,
- //提交申请单前显示申请的物品清单
- showAppliedGoodsBeforeSubmit : true,
- printRecyclingConfigFormVersion: 2,// 打印发货计划设置页的版本,默认为1
- // 使用记录审核方式, 1: 审核和转换按钮分开; 2:审核和转换按钮合并为1个
- useRecordAuditMode : 1,
- //是否禁用科室同步
- hiddenOrgunitSyncButton : true,
- //是否禁用人员同步
- hiddenUserSyncButton : true,
- hideApplyDepartColumn : false, // 隐藏申请科室
- hideSettleDepartColumn : true, // 隐藏结算科室
- //审核页扫描模式(不配此参数的话默认都为single(单个扫描),也可配置成area(首尾条码),每个project根据需要可进行配置)
- reviewPageScanMode : 'single',
- //灭菌页扫描模式(不配此参数的话默认都为single(单个扫描),也可配置成area(首尾条码),每个project根据需要可进行配置)
- sterilePageScanMode : 'single',
- //发货页扫描模式(不配此参数的话默认都为single(单个扫描),也可配置成area(首尾条码),每个project根据需要可进行配置)
- invoicePageScanMode : 'single',
- //清洗界面添加清洗记录时扫描清洗篮筐条码是否收缩(未配置或配置值为false表示不收缩)
- enableCollapseWhenScanWashBasketBarcode : true,
- //使能设备接口
- disableDeviceInterface : false,
- //装配界面显示灭菌炉和炉次
- showSterilizer : true,
- //发货单是否合并打印,如果为true,则把一次性物品、消毒物品、器械包打印到一张单,false或者不配置,都是分三张单打印
- mergePrintInvoiceGoods:true,
- //登录完系统默认弹出切换科室选项的小窗口
- defaultShowOrgChange:true,
- //查询明细核算月报,核算月报,自定义器械包显示包数量
- isMonthReportShowCustonTousseAmount : true,
- //是否启用:IP对应的默认科室配置的菜单
- enableIPAndOrgUnitMapping : true
-}
\ No newline at end of file
+ // 禁用批量装入虚拟篮筐功能(仅仅隐藏页面相关的元素、不做后台控制.未配此参数时则标识牌功能默认为禁用),只有值为false才启用,为其它任何值或未配置此属性均表示禁用
+ disableLoadToVirtualBasket: false,
+ // 禁用标识牌功能(仅仅隐藏页面相关的元素、不做后台控制.未配此参数时则标识牌功能默认为禁用),只有值为false才启用,为其它任何值或未配置此属性均表示禁用
+ disableIdCard: false,
+ // 回收时科室显示结算科室
+ showSettleAccountsDepartInRecycling: false,
+ // 审核器械包必须入篮筐(一级供应室)
+ mustScanBasketForTousseReview: true,
+ // 审核器械包必须入篮筐(二级供应室)
+ mustScanBasketForTousseReviewOf2ndSupplyRoom: true,
+ // 申请表单的类型:1 : 通用申请单(组合申请单),2:分开的申请单
+ applicationFormType: 1,
+ hidePackageSpec: true,
+ // 申请界面是否显示器械包或消毒物品的的单位
+ showTousseUnitColumn: true,
+ // 申请界面是否隐藏器械包价格
+ hideToussePriceColumn: false,
+ // 申请界面是否隐藏一次性物品价格
+ hideDisposablePriceColumn: false,
+ // 条码类型:1:一维码, 2:二维码
+ barcodeType: 1,
+ // 申请器械包时是否自动归还待归还物品
+ autoReturnTousse: true,
+ // 是否隐藏进入审核列表按钮
+ hideEnterReviewListButton: true,
+ // 已发货但是未签收的物品是否允许登记使用记录
+ notSignedItemsCanRegistUseRecord: true,
+ // 是否自动补全用户名
+ autoFillUserName: false,
+ // 自动补全用户名的长度
+ autoFillUserNameLength: 6,
+ // 打印回收清单区分部分的过滤是通过器械包定义的资产归属属性
+ recyclingRecordListFilterByAssetBelong: false,
+ // 打印回收清单的打印物品范围,'器械包'、'消毒物品'、'敷料包'、'全部'
+ recyclingRecordListPrintTousseType: '全部',
+ // 是否支持部分终止申请单中的物品
+ enableTerminatePartOfApplication: true,
+ //限制入库单填写的一次性物品为能申领的物品
+ restrictGodownEntryDiposableGoods: false,
+ //提交申请单前显示申请的物品清单
+ showAppliedGoodsBeforeSubmit: true,
+ printRecyclingConfigFormVersion: 2,// 打印发货计划设置页的版本,默认为1
+ // 使用记录审核方式, 1: 审核和转换按钮分开; 2:审核和转换按钮合并为1个
+ useRecordAuditMode: 1,
+ //是否禁用科室同步
+ hiddenOrgunitSyncButton: true,
+ //是否禁用人员同步
+ hiddenUserSyncButton: true,
+ hideApplyDepartColumn: false, // 隐藏申请科室
+ hideSettleDepartColumn: true, // 隐藏结算科室
+ //审核页扫描模式(不配此参数的话默认都为single(单个扫描),也可配置成area(首尾条码),每个project根据需要可进行配置)
+ reviewPageScanMode: 'single',
+ //灭菌页扫描模式(不配此参数的话默认都为single(单个扫描),也可配置成area(首尾条码),每个project根据需要可进行配置)
+ sterilePageScanMode: 'single',
+ //发货页扫描模式(不配此参数的话默认都为single(单个扫描),也可配置成area(首尾条码),每个project根据需要可进行配置)
+ invoicePageScanMode: 'single',
+ //清洗界面添加清洗记录时扫描清洗篮筐条码是否收缩(未配置或配置值为false表示不收缩)
+ enableCollapseWhenScanWashBasketBarcode: true,
+ //使能设备接口
+ disableDeviceInterface: false,
+ //装配界面显示灭菌炉和炉次
+ showSterilizer: true,
+ //发货单是否合并打印,如果为true,则把一次性物品、消毒物品、器械包打印到一张单,false或者不配置,都是分三张单打印
+ mergePrintInvoiceGoods: true,
+ //登录完系统默认弹出切换科室选项的小窗口
+ defaultShowOrgChange: true,
+ //查询明细核算月报,核算月报,自定义器械包显示包数量
+ isMonthReportShowCustonTousseAmount: true,
+ //是否启用:IP对应的默认科室配置的菜单
+ enableIPAndOrgUnitMapping: true,
+ // 消毒供应中心物品领用显示物品明细
+ showGoodDetail: true
+
+};
\ No newline at end of file
Index: ssts-diposablegoods/src/main/java/com/forgon/disinfectsystem/diposablegoods/service/DiposableGoodsManager.java
===================================================================
diff -u -r15993 -r16102
--- ssts-diposablegoods/src/main/java/com/forgon/disinfectsystem/diposablegoods/service/DiposableGoodsManager.java (.../DiposableGoodsManager.java) (revision 15993)
+++ ssts-diposablegoods/src/main/java/com/forgon/disinfectsystem/diposablegoods/service/DiposableGoodsManager.java (.../DiposableGoodsManager.java) (revision 16102)
@@ -58,8 +58,19 @@
* @return
*/
public JSONObject searchDisposableGoodsList(String simpleSpell, String allItems,String handleDepartCode,boolean showExternalCodeOfDisposableGoods);
-
+
+
/**
+ * 获取一次性物品定义的列表(用List返回)
+ * @see DiposableGoodsManager#searchDisposableGoodsList
+ * @param simpleSpell
+ * @param allItems
+ * @param handleDepartCode
+ * @param showExternalCodeOfDisposableGoods
+ * @return
+ */
+ List