//package com.base.helper; // //import jbo.com.tenwa.lease.comm.LB_PROJECT_INFO; //import jbo.com.tenwa.lease.comm.LB_UNION_LESSEE; // //import com.amarsoft.are.jbo.BizObject; //import com.amarsoft.are.jbo.BizObjectManager; //import com.amarsoft.are.jbo.BizObjectQuery; //import com.amarsoft.are.jbo.JBOFactory; // //public class ProjHelpler { // public static BizObject queryProjectInfoByContractNuber(String sContractNumber) // throws Exception { // BizObjectManager boManage = JBOFactory // .getBizObjectManager(LB_PROJECT_INFO.CLASS_NAME); // BizObjectQuery boQuery = boManage.createQuery( // "O.CONTRACT_NUMBER=:CONTRACT_NUMBER").setParameter( // "CONTRACT_NUMBER", sContractNumber); // return boQuery.getSingleResult(false); // } // // public static BizObject queryProjectInfoById(String sId) throws Exception { // BizObjectManager boManage = JBOFactory // .getBizObjectManager(LB_PROJECT_INFO.CLASS_NAME); // BizObjectQuery boQuery = boManage.createQuery( // "O.id=:id").setParameter( // "id", sId); // return boQuery.getSingleResult(false); // } // // public static BizObject queryProjectInfoByContractId(String sContractId) throws Exception { // String sSql = "SELECT O.* FROM O," + LB_UNION_LESSEE.CLASS_NAME + " LB_UNION_LESSEE"; // sSql += " WHERE LB_UNION_LESSEE.CONTRACT_ID=:CONTRACT_ID"; // BizObjectManager boManage = JBOFactory // .getBizObjectManager(LB_PROJECT_INFO.CLASS_NAME); // BizObjectQuery boQuery = boManage.createQuery( // sSql).setParameter( // "CONTRACT_ID", sContractId); // return boQuery.getSingleResult(false); // } // // public static BizObject queryProjectInfoByCustomerId(String sCustomerId) throws Exception { // String sSql = "SELECT O.* FROM O," + LB_UNION_LESSEE.CLASS_NAME + " LB_UNION_LESSEE"; // sSql += " WHERE LB_UNION_LESSEE.CUSTOMER_ID=:CUSTOMER_ID"; // BizObjectManager boManage = JBOFactory // .getBizObjectManager(LB_PROJECT_INFO.CLASS_NAME); // BizObjectQuery boQuery = boManage.createQuery( // sSql).setParameter( // "CUSTOMER_ID", sCustomerId); // return boQuery.getSingleResult(false); // } //}