添加业务申请类型
This commit is contained in:
parent
aa42984185
commit
df8cf5ddb1
@ -90,6 +90,7 @@ WHERE (
|
||||
OR lci.contract_status = '25'
|
||||
OR lci.contract_status = '26'
|
||||
)
|
||||
AND lci.BUSINESSTYPE='1'
|
||||
AND lci.PROJECT_MANAGE='#userid'
|
||||
AND IFNULL(lfi.allfact_money, 0) < vlfp.plan_money
|
||||
AND lci.ID NOT IN
|
||||
|
||||
@ -0,0 +1,39 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Tenwa/Core/FlowManager/BaseFlowList/BaseFlowApplyListStart.jspf"%>
|
||||
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List06;Describe=自定义函数;]~*/%>
|
||||
<script type="text/javascript">
|
||||
/*~[Describe=新增记录;InputParam=无;OutPutParam=无;]~*/
|
||||
function newApply()
|
||||
{
|
||||
AsDialog.OpenSelector("selectTraditionContractPaymentPlanTerminate","","dialogWidth=" + parseInt(window.screen.width * 0.8) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
|
||||
if(!sReturn||sReturn=="_CANCEL_"||sReturn=="_NONE_"){
|
||||
//alert(getHtmlMessage('1'));//请选择一条信息!
|
||||
return;
|
||||
}
|
||||
sReturn = sReturn.split("@");
|
||||
var contract_id=sReturn[0];
|
||||
var project_id=sReturn[1];
|
||||
var product_id=sReturn[2];
|
||||
var contract_number = sReturn[3];
|
||||
var project_name = sReturn[4];
|
||||
var payment_number = sReturn[5];
|
||||
var sParams = "applyType=<%=sApplyType%>,CurUserID=<%=CurUser.getUserID()%>";
|
||||
sParams =sParams+",payment_number="+payment_number+",ProjectId="+project_id+",FlowKey="+payment_number+",ProductId="+product_id+",ContractId="+contract_id+",ProjectName="+project_name;
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.contract.terminate.TerminateFlowStartAction","initFLow",sParams);
|
||||
if(typeof(sReturnInfo)=="undefined" || sReturnInfo=="" || sReturnInfo=="_CANCEL_") return;
|
||||
var sReturnInfos=sReturnInfo.split("@");
|
||||
if(sReturnInfos[0]=="success")
|
||||
{
|
||||
var objectNo=sReturnInfos[1];
|
||||
FlowFunction.openStartFlowPage(objectNo);
|
||||
}
|
||||
else
|
||||
{
|
||||
var mes=sReturnInfos[1];
|
||||
alert(mes);
|
||||
}
|
||||
reloadSelf();
|
||||
},"请选择投放方案");
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Tenwa/Core/FlowManager/BaseFlowList/BaseFlowApplyListEnd.jspf"%>
|
||||
@ -80,9 +80,16 @@
|
||||
alert("请选择业务品种和客户");
|
||||
return;
|
||||
}
|
||||
var businesstype = "";//业务类型,1是汽车业务,2是传统业务,3是汽车传统业务
|
||||
var orgid = "<%=CurUser.getOrgID()%>".substring(0,7);
|
||||
if(orgid=="8009011"){
|
||||
businesstype="3";
|
||||
}else if(orgid=="8009010"){
|
||||
businesstype="2";
|
||||
}
|
||||
var sParams = "ApplyType=<%=sApplyType%>,CurUserID=<%=CurUser.getUserID()%>";
|
||||
sParams =sParams+",CustId="+custid+",CustName=" + custname+",ProductId="+productid+",ProductName="+productname;
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.projectapproval.ProjectApprovalStartAction","initFLow",sParams);
|
||||
sParams =sParams+",CustId="+custid+",CustName=" + custname+",ProductId="+productid+",ProductName="+productname+",businesstype="+businesstype;
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.projectapproval.ProjectApprovalStartAction","initFLow",sParams);
|
||||
if(typeof(sReturnInfo)=="undefined" || sReturnInfo=="" || sReturnInfo=="_CANCEL_" )
|
||||
{
|
||||
doCancel();
|
||||
|
||||
@ -54,6 +54,7 @@ public class LBProjectIntoTempInitBusiness extends BaseBussiness {
|
||||
bo.setAttributeValue("project_name",this.getAttribute("ProjectName"));
|
||||
bo.setAttributeValue("PRODUCT_ID",this.getAttribute("ProductId"));//业务品种编号
|
||||
bo.setAttributeValue("PRODUCT_NAME",this.getAttribute("ProductName"));//业务品种名称
|
||||
bo.setAttributeValue("BUSINESSTYPE",this.getAttribute("businesstype"));//业务类型
|
||||
bo.setAttributeValue("PROJECT_STATUS","2");
|
||||
bo.setAttributeValue("Is_Flow","inFlow");//在流程中-inFlow,流程结束-outFlow
|
||||
bo.setAttributeValue("InputOrgID", asUser.getOrgID());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user