diff --git a/WebContent/Tenwa/Lease/Flow/Fund/FundPayment/FundPaymentApplyList.jsp b/WebContent/Tenwa/Lease/Flow/Fund/FundPayment/FundPaymentApplyList.jsp index ecbf0cac8..3aeec583e 100644 --- a/WebContent/Tenwa/Lease/Flow/Fund/FundPayment/FundPaymentApplyList.jsp +++ b/WebContent/Tenwa/Lease/Flow/Fund/FundPayment/FundPaymentApplyList.jsp @@ -36,9 +36,10 @@ alert(checkTotal); return ; } + var disChannelType = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.DisChannelTypeCheck","getDisChannelType","contractId="+contract_id); var gpsVendor = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.GpsVendorCheck","getGpsVendor","productId="+productId); - var sParams = "ContractId="+contract_id+",FlowKey="+contract_no+",ProjectId="+proj_id+",ProductId="+productId+",contract_number="+contract_number+",ProjectName="+(contract_no+"-"+customername)+",applyType=<%=sApplyType%>,CurUserID=<%=CurUser.getUserID()%>,gpsVendor="+gpsVendor; + var sParams = "ContractId="+contract_id+",FlowKey="+contract_no+",ProjectId="+proj_id+",ProductId="+productId+",contract_number="+contract_number+",ProjectName="+(contract_no+"-"+customername)+",applyType=<%=sApplyType%>,CurUserID=<%=CurUser.getUserID()%>,gpsVendor="+gpsVendor+",disChannelType="+disChannelType; var sReturnInfo = RunJavaMethodTrans("com.tenwa.flow.action.comm.BaseFlowStartAction","initFLow",sParams); var sReturnInfos=sReturnInfo.split("@"); if(sReturnInfos[0]=="success") diff --git a/src_tenwa/com/tenwa/lease/flow/project/businessapply/DisChannelTypeCheck.java b/src_tenwa/com/tenwa/lease/flow/project/businessapply/DisChannelTypeCheck.java new file mode 100644 index 000000000..a68fbf835 --- /dev/null +++ b/src_tenwa/com/tenwa/lease/flow/project/businessapply/DisChannelTypeCheck.java @@ -0,0 +1,31 @@ +package com.tenwa.lease.flow.project.businessapply; + +import com.amarsoft.are.jbo.JBOTransaction; +import com.amarsoft.awe.util.Transaction; +import org.apache.commons.lang3.StringUtils; + +/** + * 对应的经销商类型是否为非担保性 + * @author Administrator + * + */ +public class DisChannelTypeCheck { + + private String contractId; + + public String getContractId() { + return contractId; + } + + public void setContractId(String contractId) { + this.contractId = contractId; + } + + public String getDisChannelType(JBOTransaction tx) throws Exception{ + Transaction Sqlca = Transaction.createTransaction(tx); + String dischanneltype = Sqlca.getString("select channeltype from DISTRIBUTOR_INFO where DISTRIBUTOR_NO = (select distributor_id from lb_contract_info where ID='"+contractId+"')"); + if(StringUtils.isEmpty(dischanneltype) || !"02".equals(dischanneltype)) + dischanneltype="null"; + return dischanneltype; + } +}