Index: forgon-tools/src/main/java/com/forgon/tools/util/ForgonMapUtils.java
===================================================================
diff -u
--- forgon-tools/src/main/java/com/forgon/tools/util/ForgonMapUtils.java (revision 0)
+++ forgon-tools/src/main/java/com/forgon/tools/util/ForgonMapUtils.java (revision 17950)
@@ -0,0 +1,34 @@
+package com.forgon.tools.util;
+
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * @author zhonghaowen
+ * @apiNote
+ * @since 2017-04-28
+ */
+public class ForgonMapUtils {
+
+ /**
+ * 给出要过滤的key属性,返回不存在该key的新map,例子如下:
+ *
原来的map = [id=1,name=abc,dept=ccc]
+ * getMapByFilterProperties(map,"id"),返回结果是[name=abc,dept=ccc]
+ *
+ * @param map 要过滤的map
+ * @param keys 要过滤的key
+ */
+
+ public static Map getMapByFilterProperties(Map map, Object... keys) {
+ Map newMap = new HashMap();
+ for (Object key : map.keySet()) {
+ for (Object property : keys) {
+ if (!key.equals(property)) {
+ newMap.put(key, map.get(key));
+ }
+ }
+ }
+ return newMap;
+ }
+
+}
Index: ssts-web/src/main/webapp/disinfectsystem/config/dgsdhyy/config.js
===================================================================
diff -u -r17502 -r17950
--- ssts-web/src/main/webapp/disinfectsystem/config/dgsdhyy/config.js (.../config.js) (revision 17502)
+++ ssts-web/src/main/webapp/disinfectsystem/config/dgsdhyy/config.js (.../config.js) (revision 17950)
@@ -73,5 +73,8 @@
//是否隐藏灭菌管理-外部代理灭菌里的制作人(只有为true时才隐藏,false或不配置都显示)
hideCssdForeignProxyDisinfectionMaker : true,
//科室申领是否启用黑白名单过滤物品(目前只支持器械包)
- appIsUseBwList : true
+ appIsUseBwList : true,
+ //主页是否弹出未归还告警
+ isShowUnReturnWarning : true
+
}
\ No newline at end of file
Index: ssts-recyclingapplication/src/main/java/com/forgon/disinfectsystem/recyclingapplication/service/InvoicePlanManagerImpl.java
===================================================================
diff -u -r17793 -r17950
--- ssts-recyclingapplication/src/main/java/com/forgon/disinfectsystem/recyclingapplication/service/InvoicePlanManagerImpl.java (.../InvoicePlanManagerImpl.java) (revision 17793)
+++ ssts-recyclingapplication/src/main/java/com/forgon/disinfectsystem/recyclingapplication/service/InvoicePlanManagerImpl.java (.../InvoicePlanManagerImpl.java) (revision 17950)
@@ -19,12 +19,14 @@
import com.forgon.exception.OperationException;
import com.forgon.strategyMode.DateStrategyContext;
import com.forgon.tools.StrutsParamUtils;
+import com.forgon.tools.util.ForgonMapUtils;
import com.forgon.tools.util.IntegerUtils;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import org.apache.commons.collections4.CollectionUtils;
+import org.apache.commons.collections4.MapUtils;
import org.apache.commons.collections4.Predicate;
import org.apache.commons.collections4.PredicateUtils;
import org.apache.commons.collections4.Transformer;
@@ -119,7 +121,9 @@
private HttpOptionManager httpOptionManager;
private OrgUnitManager orgUnitManager;
-
+
+ private RecyclingApplicationManager recyclingApplicationManagerTarget;
+
private static final String FOREIGNTOUSSE_APP_AWAITRECEIVE = "(待接收)外来器械包申请单";
private static final String FOREIGNTOUSSE_APP_AWAITRECYCLE = "(待回收)外来器械包申请单";
@@ -168,6 +172,10 @@
this.dateQueryAdapter = dateQueryAdapter;
}
+ public void setRecyclingApplicationManagerTarget(RecyclingApplicationManager recyclingApplicationManagerTarget) {
+ this.recyclingApplicationManagerTarget = recyclingApplicationManagerTarget;
+ }
+
@Override
public InvoicePlan getInvoicePlanById(String id) {
if(StringUtils.isNotBlank(id)){
@@ -2075,4 +2083,142 @@
String hql = "from TousseItem po where po.id in(:ids)";
return objectDao.getHibernateSession().createQuery(hql).setParameterList("ids", tousseItemIds).list();
}
+
+ @Override
+ public JSONObject getUnReturnTips(String departCode) {
+ try {
+ List