diff --git a/src_tenwa/com/tenwa/lease/flow/project/businessapply/CopyOfbusinessApplyForTwo.java b/src_tenwa/com/tenwa/lease/flow/project/businessapply/CopyOfbusinessApplyForTwo.java index a1c7d173e..cfde0e47f 100644 --- a/src_tenwa/com/tenwa/lease/flow/project/businessapply/CopyOfbusinessApplyForTwo.java +++ b/src_tenwa/com/tenwa/lease/flow/project/businessapply/CopyOfbusinessApplyForTwo.java @@ -8,6 +8,7 @@ import jbo.app.tenwa.calc.LC_CALC_CONDITION; import jbo.app.tenwa.calc.LC_CALC_CONDITION_TEMP; import jbo.com.tenwa.lease.comm.LB_EQUIPMENT_CAR; import jbo.com.tenwa.lease.comm.LB_PROJECT_INFO_TEMP; +import jbo.sys.ORG_INFO; import jbo.sys.USER_INFO; import com.amarsoft.app.lc.workflow.action.GetFlowAction; @@ -28,13 +29,16 @@ public class CopyOfbusinessApplyForTwo extends BaseBussiness { String userId = this.getAttribute("CurUserID").toString(); BizObjectManager userInfo = JBOFactory.getBizObjectManager(USER_INFO.CLASS_NAME, Sqlca); - BizObject condition = userInfo.createQuery("USERID=:userId").setParameter("userId",userId).getSingleResult(false); + BizObject user = userInfo.createQuery("USERID=:userId").setParameter("userId",userId).getSingleResult(false); + String orgid=user.getAttribute("BELONGORG").toString(); + BizObjectManager orgInfo = JBOFactory.getBizObjectManager(ORG_INFO.CLASS_NAME, Sqlca); + BizObject org = orgInfo.createQuery("ORGID=:ORGID").setParameter("ORGID",orgid).getSingleResult(false); String sMessage=""; String applytype = null; - if(null!=condition){ - applytype=condition.getAttribute("BELONGORG").toString(); + if(null!=org){ + applytype=org.getAttribute("RELATIVEORGID").toString(); } - if("8009011"==applytype||applytype.equals("8009010")){//转给业务二部 + if("8009011"==applytype||applytype.equals("8009011")){//转给业务二部 sMessage="true"; }else { sMessage="false";