汽车、传统、汽车类传统发起业务申请添加多主体维护

This commit is contained in:
tangfutang 2019-11-28 21:19:45 +08:00
parent 3dbd1c779e
commit c99e2f1936
8 changed files with 567 additions and 528 deletions

View File

@ -193,6 +193,20 @@ function init(){
init();
function selectManySubject(){
AsDialog.OpenSelector("selectManySubject","","dialogWidth=" + parseInt(window.screen.width * 0.8) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"||sReturn=="")
{
//alert(getHtmlMessage('1'));//请选择一条信息!
return;
}
sReturn = sReturn.split("@");
setItemValue(0,0,"subjectid",sReturn[0]);
setItemValue(0,0,"subjectname",sReturn[1]);
},"请选择客户",'');
}
</script>
<%/*~END~*/%>

View File

@ -78,7 +78,8 @@
$("#A_div_0150").attr("style","display:none;");
})
var operationType='';
function changeProductName(){//Çå¿Õ²úÆ·Ãû³Æ
var SubjectId='';
function changeProductName(){//Çå¿Õ²úÆ·Ãû³Æ
setItemValue(0,getRow(0),"productName","");
}
@ -156,16 +157,16 @@
alert("请输入证件号码");
return;
}
var messages = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","selectTitleName","");
var messages = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","selectTitleName","SubjectId="+SubjectId);
message = messages.split("@");
if("error"==message[0]){
alert(message[1]);
return;
}
var sParams = "ApplyType=<%=sApplyType%>,CurUserID=<%=CurUser.getUserID()%>";
sParams =sParams+",titleid="+message[0]+",titleName="+message[1]+",ProductId="+productId+",ProductName="+productname+",CustomerType="+customerType+",carAttributes="+carAttributes+",leasehold="+leasehold+",carSystem="+carSystem+",custname="+custname+",certtype="+certtype+",certid="+certid+",CustomerId="+CustomerId+",productModel="+productModel+",carSeries="+carSeries+",versionid="+versionid+",modelid="+modelid+",businessType="+businessType+",price="+price+",liter="+liter+",geartype="+geartype+",sourcetype=web,operationType="+operationType;
sParams =sParams+",SubjectId="+SubjectId+",SubjectName="+message[1]+",ProductId="+productId+",ProductName="+productname+",CustomerType="+customerType+",carAttributes="+carAttributes+",leasehold="+leasehold+",carSystem="+carSystem+",custname="+custname+",certtype="+certtype+",certid="+certid+",CustomerId="+CustomerId+",productModel="+productModel+",carSeries="+carSeries+",versionid="+versionid+",modelid="+modelid+",businessType="+businessType+",price="+price+",liter="+liter+",geartype="+geartype+",sourcetype=web,operationType="+operationType;
if("BAIC_MOTOR"==operationType){
sParams = sParams+",distributorNo="+getItemValue(0,getRow(),"distributorNo")+",distributorName="+getItemValue(0,getRow(),"distributorName");
}
@ -347,6 +348,7 @@
MyOjbect.modelid = sReturn[7];//车型ID
MyOjbect.modelname = sReturn[8];//车型名称
operationType = sReturn[11];
SubjectId = sReturn[12];
setItemValue(0,0,"productName",sReturn[2]);
setItemValue(0,0,"productId",sReturn[3]);

View File

@ -90,8 +90,16 @@
alert("该用户无权限发起申请!");
return;
}
var messages = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","selectTitleName","SubjectId="+SubjectId);
message = messages.split("@");
if("error"==message[0]){
alert(message[1]);
return;
}
var sParams = "ApplyType=<%=sApplyType%>,CurUserID=<%=CurUser.getUserID()%>";
sParams =sParams+",CustId="+custid+",CustName=" + custname+",ProductId="+productid+",ProductName="+productname+",businesstype="+businesstype;
sParams =sParams+",SubjectId="+SubjectId+",SubjectName="+message[1]+",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_" )
{
@ -127,6 +135,7 @@
<script type="text/javascript">
<%/*~[Describe=选择客户;]~*/%>
var SubjectId=''
function selectCustomerName()
{
var userid="<%=CurUser.getUserID()%>";
@ -167,6 +176,7 @@
sReturn = sReturn.split("@");
setItemValue(0,0,"productId",sReturn[0]);
setItemValue(0,0,"productName",sReturn[1]);
SubjectId = sReturn[2]
},"请选择业务品种",'');
}
</script>

View File

@ -135,6 +135,7 @@
<attribute name="NETCERTID" label="证照号码" TYPE="STRING" LENGTH="32"/>
<attribute name="LEGALPERSONID" label="法定代表人/经营者身份证号" TYPE="STRING" LENGTH="32"/>
<attribute name="subjectid" label="主体id" type="STRING" length="32"/>
<attribute name="SUBJECTNAME" label="主体名称" type="STRING" length="100"/>
</attributes>
<manager>
<managerProperties>
@ -280,6 +281,8 @@
<attribute name="LEGALPERSONID" label="法定代表人/经营者身份证号" TYPE="STRING" LENGTH="32"/>
<attribute name="source_type" label="申请类型" type="STRING" length="32"/>
<attribute name="subjectid" label="主体id" type="STRING" length="32"/>
<attribute name="SUBJECTNAME" label="主体名称" type="STRING" length="100"/>
</attributes>
<manager>
<managerProperties>
@ -789,6 +792,7 @@
<attribute name="NETCERTID" label="证照号码" TYPE="STRING" LENGTH="32"/>
<attribute name="LEGALPERSONID" label="法定代表人/经营者身份证号" TYPE="STRING" LENGTH="32"/>
<attribute name="SUBJECTID" label="主体id" TYPE="STRING" LENGTH="32"/>
<attribute name="SUBJECTNAME" label="主体名称" type="STRING" length="100"/>
</attributes>
<manager>
<managerProperties>
@ -1056,7 +1060,7 @@
<attribute name="LEGALPERSONID" label="法定代表人/经营者身份证号" TYPE="STRING" LENGTH="32"/>
<attribute name="has_gps" label="是否已安装GPS" TYPE="STRING" LENGTH="2"/>
<attribute name="SUBJECTID" label="主体id" TYPE="STRING" LENGTH="32"/>
<attribute name="SUBJECTNAME" label="主体名称" type="STRING" length="100"/>
</attributes>
<manager>
<managerProperties>
@ -2739,6 +2743,7 @@
<attribute name="NETCERTID" label="证照号码" TYPE="STRING" LENGTH="32"/>
<attribute name="LEGALPERSONID" label="法定代表人/经营者身份证号" TYPE="STRING" LENGTH="32"/>
<attribute name="SUBJECTID" label="主体id" TYPE="STRING" LENGTH="32"/>
<attribute name="SUBJECTNAME" label="主体名称" type="STRING" length="100"/>
</attributes>
<manager>
<managerProperties>

View File

@ -86,6 +86,7 @@
<attribute name="sealType" label="公司盖章方式" type="STRING" length="10"/>
<attribute name="LENDING_TYPE" label="保单放款方式" type="STRING" length="10"/>
<attribute name="GPS_VENDOR" label="GPS供应商" type="STRING" length="32"/>
<attribute name="ManySubject" label="Ö÷Ìå" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
@ -163,22 +164,22 @@
</manager>
</class>
<class name="LB_SPLITTING_RATIO" label="" keyAttributes="ID">
<attributes>
<attribute name="ID" label="ID" type="STRING" length="32"/>
<attribute name="distributor_id" label=­ÏúÉÌID" type="STRING" length="32"/>
<attribute name="product_id" label="²úÆ·ID" type="STRING" length="32"/>
<class name="LB_SPLITTING_RATIO" label="" keyAttributes="ID">
<attributes>
<attribute name="ID" label="ID" type="STRING" length="32"/>
<attribute name="distributor_id" label=­ÏúÉÌID" type="STRING" length="32"/>
<attribute name="product_id" label="²úÆ·ID" type="STRING" length="32"/>
<attribute name="splitting_ratio" label="分润利率" type="STRING" length="10"/>
<attribute name="distributor_name" label="经销商名称" type="STRING" length="50"/>
<attribute name="product_name" label="²úÆ·Ãû³Æ" type="STRING" length="50"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="lb_splitting_ratio" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
<attribute name="product_name" label="²úÆ·Ãû³Æ" type="STRING" length="50"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="lb_splitting_ratio" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
</package>
</jbo>

View File

@ -62,6 +62,8 @@ public class LBProjectIntoTempInitBusiness extends BaseBussiness {
bo.setAttributeValue("PROJECT_INDUSTRY", PROJECT_INDUSTRY);
bo.setAttributeValue("InputUserID", asUser.getUserID());
bo.setAttributeValue("InputTime", StringFunction.getToday());
bo.setAttributeValue("subjectid",this.getAttribute("SubjectId"));
bo.setAttributeValue("subjectname",this.getAttribute("SubjectName"));
bm.saveObject(bo);
String sMessage="true";
return sMessage;

View File

@ -325,7 +325,8 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness {
bo.setAttributeValue("source_type",this.getAttribute("sourcetype"));//ÉêÇëÀàÐÍ
bo.setAttributeValue("HaveCommission",haveCommission);
bo.setAttributeValue("is_netcar",isNetCar == null ? "" : isNetCar);
bo.setAttributeValue("subjectid",this.getAttribute("titleid"));
bo.setAttributeValue("subjectid",this.getAttribute("SubjectId"));
bo.setAttributeValue("subjectname",this.getAttribute("SubjectName"));
bomLPI.saveObject(bo);
}catch (Exception e){
tx.rollback();