根据产品配置资金渠道,自动选择并在页面展示
This commit is contained in:
parent
68eae1bf58
commit
f6e6fe997c
@ -13,7 +13,7 @@
|
||||
String compClientID = CurPage.getParameter("CompClientID");
|
||||
String phaseNo = CurPage.getParameter("PhaseNo");
|
||||
String ProductId = CurPage.getParameter("ProductId");
|
||||
String productid = Sqlca.getString("select PRODUCT_ID from LB_CONTRACT_INFO_TEMP where flowunid = '"+flowunid+"'");
|
||||
//String corpusSource = Sqlca.getString("select corpus_source from LB_CONTRACT_INFO_TEMP where flowunid = '"+flowunid+"'");
|
||||
String projectId = CurPage.getParameter("ProjectId");
|
||||
String gpsVendor = Sqlca.getString("select cl.itemname from lb_project_info lpi left join LM_GPS_ORDER lgr on lgr.apply_no=lpi.project_no left join code_library cl on cl.itemno=lgr.source and cl.codeno='gpsVendor' where lpi.id='"+projectId+"'");
|
||||
String userId = CurUser.getUserID();
|
||||
@ -36,6 +36,7 @@
|
||||
doTemp.setDataQueryClass("com.tenwa.flow.flowHistory.FlowDataInfoHistory");//如果是历史则新显示历史数据
|
||||
} */
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||||
|
||||
dwTemp.Style = "2";
|
||||
dwTemp.ReadOnly = "1";
|
||||
dwTemp.genHTMLObjectWindow(contractId);
|
||||
|
||||
@ -143,6 +143,7 @@
|
||||
<attribute name="CHANNEL" label="渠道" type="STRING" length="32"/>
|
||||
<attribute name="ZC_PROJECT_NUMBER" label="中车申请号" type="STRING" length="32"/>
|
||||
<attribute name="ZC_CONTRACT_NUMBER" label="中车合同号" type="STRING" length="32"/>
|
||||
<attribute name="CORPUS_SOURCE" label="资方名称" type="STRING" length="10"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
@ -292,6 +293,7 @@
|
||||
<attribute name="CHANNEL" label="渠道" type="STRING" length="32"/>
|
||||
<attribute name="ZC_PROJECT_NUMBER" label="中车申请号" type="STRING" length="32"/>
|
||||
<attribute name="ZC_CONTRACT_NUMBER" label="中车合同号" type="STRING" length="32"/>
|
||||
<attribute name="CORPUS_SOURCE" label="资方名称" type="STRING" length="10"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
@ -805,6 +807,7 @@
|
||||
<attribute name="CHANNEL" label="渠道" type="STRING" length="32"/>
|
||||
<attribute name="ZC_PROJECT_NUMBER" label="中车申请号" type="STRING" length="32"/>
|
||||
<attribute name="ZC_CONTRACT_NUMBER" label="中车合同号" type="STRING" length="32"/>
|
||||
<attribute name="CORPUS_SOURCE" label="资方名称" type="STRING" length="10"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
@ -1076,6 +1079,7 @@
|
||||
<attribute name="CHANNEL" label="渠道" type="STRING" length="32"/>
|
||||
<attribute name="ZC_PROJECT_NUMBER" label="中车申请号" type="STRING" length="32"/>
|
||||
<attribute name="ZC_CONTRACT_NUMBER" label="中车合同号" type="STRING" length="32"/>
|
||||
<attribute name="CORPUS_SOURCE" label="资方名称" type="STRING" length="10"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
@ -2812,6 +2816,7 @@
|
||||
<attribute name="CHANNEL" label="渠道" type="STRING" length="32"/>
|
||||
<attribute name="ZC_PROJECT_NUMBER" label="中车申请号" type="STRING" length="32"/>
|
||||
<attribute name="ZC_CONTRACT_NUMBER" label="中车合同号" type="STRING" length="32"/>
|
||||
<attribute name="CORPUS_SOURCE" label="资方名称" type="STRING" length="10"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
|
||||
@ -341,4 +341,8 @@ public interface LB_CONTRACT_INFO{
|
||||
* 中车合同号 STRING(32)<br>
|
||||
*/
|
||||
public static final String ZC_CONTRACT_NUMBER = "ZC_CONTRACT_NUMBER";
|
||||
/**
|
||||
* 资方名称 STRING(10)<br>
|
||||
*/
|
||||
public static final String CORPUS_SOURCE = "CORPUS_SOURCE";
|
||||
}
|
||||
@ -329,4 +329,8 @@ public interface LB_CONTRACT_INFO_HIS{
|
||||
* 中车合同号 STRING(32)<br>
|
||||
*/
|
||||
public static final String ZC_CONTRACT_NUMBER = "ZC_CONTRACT_NUMBER";
|
||||
/**
|
||||
* 资方名称 STRING(10)<br>
|
||||
*/
|
||||
public static final String CORPUS_SOURCE = "CORPUS_SOURCE";
|
||||
}
|
||||
@ -333,4 +333,8 @@ public interface LB_CONTRACT_INFO_TEMP{
|
||||
* 中车合同号 STRING(32)<br>
|
||||
*/
|
||||
public static final String ZC_CONTRACT_NUMBER = "ZC_CONTRACT_NUMBER";
|
||||
/**
|
||||
* 资方名称 STRING(10)<br>
|
||||
*/
|
||||
public static final String CORPUS_SOURCE = "CORPUS_SOURCE";
|
||||
}
|
||||
@ -265,4 +265,8 @@ public interface LB_PROJECT_INFO{
|
||||
* 中车合同号 STRING(32)<br>
|
||||
*/
|
||||
public static final String ZC_CONTRACT_NUMBER = "ZC_CONTRACT_NUMBER";
|
||||
/**
|
||||
* 资方名称 STRING(10)<br>
|
||||
*/
|
||||
public static final String CORPUS_SOURCE = "CORPUS_SOURCE";
|
||||
}
|
||||
@ -265,4 +265,8 @@ public interface LB_PROJECT_INFO_TEMP{
|
||||
* 中车合同号 STRING(32)<br>
|
||||
*/
|
||||
public static final String ZC_CONTRACT_NUMBER = "ZC_CONTRACT_NUMBER";
|
||||
/**
|
||||
* 资方名称 STRING(10)<br>
|
||||
*/
|
||||
public static final String CORPUS_SOURCE = "CORPUS_SOURCE";
|
||||
}
|
||||
@ -22,6 +22,7 @@ import jbo.com.tenwa.lease.comm.LB_PROJECT_INFO;
|
||||
import jbo.com.tenwa.lease.comm.LB_PROJECT_INFO_TEMP;
|
||||
import jbo.com.tenwa.lease.comm.LB_UNION_LESSEE;
|
||||
import jbo.com.tenwa.lease.comm.LB_UNION_LESSEE_TEMP;
|
||||
import jbo.prd.LB_PRODUCT_CORPUS_SOURCE;
|
||||
import jbo.prd.PRD_SPECIFIC_LIBRARY;
|
||||
|
||||
import java.util.*;
|
||||
@ -389,6 +390,19 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness {
|
||||
if("03".equals(this.getAttribute("CustomerType")) && "app".equals(sourcetype)){
|
||||
bo.setAttributeValue("is_netcar",this.getAttribute("isnetcar") );
|
||||
}
|
||||
|
||||
/*
|
||||
ÅÅÃû˳ÐòµÚn¸öµÄsql =
|
||||
select o.corpus_source from lb_product_corpus_source o where o.product_id='H01-C01-E-CXC1-DB-3'
|
||||
and order_list =(select ot.order_list from lb_product_corpus_source ot where ot.product_id='H01-C01-E-CXC1-DB-3' order by ot.order_list limit n-1,1);
|
||||
*/
|
||||
String sql = "select O.CORPUS_SOURCE from O where PRODUCT_ID=:PRODUCTID and O.ORDER_LIST = (select min(ot.order_list) from jbo.prd.LB_PRODUCT_CORPUS_SOURCE ot where ot.PRODUCT_ID=:PRODUCTID)";
|
||||
BizObject boLPCS = JBOFactory.createBizObjectQuery(LB_PRODUCT_CORPUS_SOURCE.CLASS_NAME,sql).setParameter("PRODUCTID",productId).getSingleResult(false);
|
||||
String corpusSource = "AP";
|
||||
if(boLPCS!=null&&boLPCS.getAttribute("CORPUS_SOURCE")!=null){
|
||||
corpusSource=boLPCS.getAttribute("CORPUS_SOURCE").toString();
|
||||
}
|
||||
bo.setAttributeValue("CORPUS_SOURCE",corpusSource);
|
||||
bomLPI.saveObject(bo);
|
||||
}catch (Exception e){
|
||||
tx.rollback();
|
||||
@ -409,4 +423,5 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user