客户(张磊)在付款申请添加经销商担保类型
This commit is contained in:
parent
a901f563c5
commit
5984a6ff8d
@ -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")
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user