修改业务审批
资料清单加入对客户类型的判断,产品配置法人与自然的附件后。初始化附件时,判断当前客户类型如果是自然人则把006开头的附件类别排除,反之法人把003开头的排除。需要从前台传入CustomerType参数
This commit is contained in:
parent
eb4b59c20c
commit
5f634c2fa6
@ -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<String,String> docParam=new HashMap<String,String>();
|
||||
Map<String,String> other=new HashMap<String,String>();
|
||||
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());
|
||||
|
||||
@ -36,9 +36,15 @@ public class DocListInitAction {
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public static void initDocList(Map<String,String> param,Map<String,String> other,String docno,Configure curConfig) throws Exception{
|
||||
String CustomerType = other.get("CustomerType");
|
||||
String[] itemnos=docno.split(",");
|
||||
String s="";
|
||||
for(int i=0;i<itemnos.length;i++){
|
||||
if("03".equals(CustomerType)){
|
||||
if(itemnos[i].startsWith("006")){continue;}
|
||||
}else if("01".equals(CustomerType)){
|
||||
if(itemnos[i].startsWith("003")){continue;}
|
||||
}
|
||||
s+="'"+itemnos[i]+"',";
|
||||
}
|
||||
if(s.length()>0){
|
||||
@ -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){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user