放款通知书

This commit is contained in:
G 2018-12-13 10:22:29 +08:00
parent a8e212d92e
commit 5573064efa

View File

@ -118,6 +118,8 @@ public class FindNotifyAction {
}
return attributeid;
}
//·Å¿î֪ͨÊé
public static String findFileNameLoan(String projectId) throws JBOException{
BizObjectManager bom=JBOFactory.getBizObjectManager(jbo.app.tenwa.doc.LB_DOCRELATIVE.CLASS_NAME);
BizObject DOCRELATIVE=bom.createQuery("PROJ_ID=:porjectId and OBJECTTYPE='LoanNotice'").setParameter("porjectId",projectId).getSingleResult(false);
@ -146,4 +148,19 @@ public class FindNotifyAction {
}
return creatime;
}
public static String findAttributeidLoan(String projectId) throws JBOException{
String attributeid="";
BizObjectManager bom=JBOFactory.getBizObjectManager(jbo.app.tenwa.doc.LB_DOCRELATIVE.CLASS_NAME);
BizObject DOCRELATIVE=bom.createQuery("PROJ_ID=:porjectId and OBJECTTYPE='LoanNotice'").setParameter("porjectId",projectId).getSingleResult(false);
if(DOCRELATIVE!=null){
String DOCRELATIVEid=DOCRELATIVE.getAttribute("id").toString();
BizObjectManager bom1=JBOFactory.getBizObjectManager(jbo.app.tenwa.doc.LB_DOCLIBRARY.CLASS_NAME);
String DOCLIBRARYid=bom1.createQuery("relative_id=:relative_id").setParameter("relative_id", DOCRELATIVEid).getSingleResult(false).getAttribute("id").toString();
BizObjectManager bom2=JBOFactory.getBizObjectManager(jbo.app.tenwa.doc.LB_DOCATTRIBUTE.CLASS_NAME);
attributeid=bom2.createQuery("library_id=:library_id").setParameter("library_id", DOCLIBRARYid).getSingleResult(false).getAttribute("id").toString();
}
return attributeid;
}
}