diff --git a/WebContent/Tenwa/Comm/DocList/PayDocList.jsp b/WebContent/Tenwa/Comm/DocList/PayDocList.jsp index d03643405..e5e75d59f 100644 --- a/WebContent/Tenwa/Comm/DocList/PayDocList.jsp +++ b/WebContent/Tenwa/Comm/DocList/PayDocList.jsp @@ -10,6 +10,7 @@ */ String flowunid=CurPage.getParameter("FlowUnid"); + String CustomerType=CurPage.getParameter("CustomerType"); String carAttributes=CurPage.getParameter("carAttributes");//获取车类型 if(flowunid==""||flowunid==null){ flowunid="flowunid"; @@ -44,6 +45,7 @@ Map docParam=new HashMap(); Map other=new HashMap(); other.put("carAttributes", carAttributes); + other.put("CustomerType", CustomerType); docParam.put("ObjectType",sObjectType); docParam.put("proj_id", flow.getAttribute("proj_id").getString()); docParam.put("contract_id", flow.getAttribute("contract_id").getString()); diff --git a/src_core/com/tenwa/doc/action/DocListInitAction.java b/src_core/com/tenwa/doc/action/DocListInitAction.java index 1df6b6d08..3a2ca6fa7 100644 --- a/src_core/com/tenwa/doc/action/DocListInitAction.java +++ b/src_core/com/tenwa/doc/action/DocListInitAction.java @@ -36,9 +36,15 @@ public class DocListInitAction { */ @SuppressWarnings("unchecked") public static void initDocList(Map param,Map other,String docno,Configure curConfig) throws Exception{ + String CustomerType = other.get("CustomerType"); String[] itemnos=docno.split(","); String s=""; for(int i=0;i0){ @@ -48,9 +54,11 @@ public class DocListInitAction { BizObjectManager relaBm=JBOFactory.getBizObjectManager(LB_DOCRELATIVE.CLASS_NAME); BizObjectManager libBm=JBOFactory.getBizObjectManager(LB_DOCLIBRARY.CLASS_NAME); BizObjectManager configBm=JBOFactory.getBizObjectManager(LB_DOCCONFIG.CLASS_NAME); - + if("".equals(docno)){ + return; + } String sql=getDocSQL(param,docno); - BizObject rela=relaBm.createQuery(sql).getSingleResult(false); + BizObject rela=relaBm.createQuery(sql).getSingleResult(true); String relativeid=""; String libid=""; if(rela==null){