业务申请

This commit is contained in:
user 2018-06-10 18:13:26 +08:00
parent 69c434a2fd
commit 985e5e7335
5 changed files with 35 additions and 13 deletions

View File

@ -34,6 +34,7 @@
</style>
<script>
var ProvinceCity=function(){
debugger;
this.proviceCity={};//省份城市
this.brandServicePath="com.tenwa.lease.app.carbrand.CarBrandService";
this.loadProvoiceCity();

View File

@ -11,6 +11,7 @@
"dialogWidth=500px;dialogHeight=300px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(sReturnInfo){
if(typeof(sReturnInfo)=="undefined" || sReturnInfo=="" || sReturnInfo=="_CANCEL_") return;
var sReturnInfos=sReturnInfo.split("@");
alert(sReturnInfos);
if(sReturnInfos[0]=="success")
{
var objectNo=sReturnInfos[1];

View File

@ -88,6 +88,9 @@
var brandid = getItemValue(0,getRow(),"brandid");
var seriesid = getItemValue(0,getRow(),"seriesid");
var modelid = getItemValue(0,getRow(),"modelid");
var carAttributes = getItemValue(0,0,"carAttributes");
var leasehold = getItemValue(0,0,"leasehold");
if(certtype==""){
alert("请选择证件类型");
@ -124,7 +127,7 @@
}
var sParams = "ApplyType=<%=sApplyType%>,CurUserID=<%=CurUser.getUserID()%>";
sParams =sParams+",ProductId="+productid+",ProductName="+productname+",Customer_type="+customerType+",CustomerType="+customerType;
sParams =sParams+",ProductId="+productid+",ProductName="+productname+",Customer_type="+customerType+",CustomerType="+customerType+",CarAttributes="+carAttributes+",Leasehold="+leasehold;
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.projectapproval.BusinessApprovalStartAction","initFLow",sParams);
if(typeof(sReturnInfo)=="undefined" || sReturnInfo=="" || sReturnInfo=="_CANCEL_" )
{
@ -227,10 +230,10 @@
<%/*~[Describe=选择产品类型;]~*/%>
function selectBusinessType()
{
{
var carAttributes = getItemValue(0,0,"carAttributes");
var leasehold = getItemValue(0,0,"leasehold");
var carAttributes = getItemValue(0,getRow(),"carAttributes");
var leasehold = getItemValue(0,getRow(),"leasehold");
if(carAttributes=='1'){
AsDialog.OpenSelector("SelectBusinessType","ProductType,1,TypeNo,0005","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",

View File

@ -1,15 +1,9 @@
package com.tenwa.lease.app.carbrand;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.security.MessageDigest;
import java.util.List;
import org.apache.log4j.Logger;
import jbo.com.tenwa.lease.carbrand.LB_CAR_BRAND;
import jbo.com.tenwa.lease.carbrand.LB_CAR_BRANDSERIES;
import jbo.app.LB_CAR_BRAND;
import jbo.app.LB_CAR_BRANDSE;
import com.amarsoft.are.jbo.BizObject;
import com.amarsoft.are.jbo.JBOFactory;

View File

@ -33,7 +33,8 @@ public class BusinessApprovalStartAction extends BaseFlowStartAction{
private String productID;
private String CustomerType;
private String CarAttributes;
private String Leasehold;
public String getProductID() {
return productID;
@ -54,6 +55,26 @@ public String getProductID() {
}
public String getCarAttributes() {
return CarAttributes;
}
public void setCarAttributes(String carAttributes) {
CarAttributes = carAttributes;
}
public String getLeasehold() {
return Leasehold;
}
public void setLeasehold(String leasehold) {
Leasehold = leasehold;
}
@Override
public void customOperation(JBOTransaction tx,BizObject flowBussiness) throws Exception {
this.FlowParam.put("ProjectId", UUID.randomUUID().toString().replaceAll("-", ""));
@ -63,5 +84,7 @@ public String getProductID() {
this.FlowParam.put("FlowKey", projectNO);
this.FlowParam.put("ProjectName", projectNO);
this.FlowParam.put("CustomerType", this.getCustomerType());
this.FlowParam.put("CarAttributes", getCarAttributes());
this.FlowParam.put("Leasehold", this.getLeasehold());
}
}