gps
This commit is contained in:
parent
bad72cf161
commit
b0223c5ce6
@ -13,13 +13,15 @@
|
||||
String sBizArg = CurPage.getParameter("BizArg");
|
||||
String [] bizArr = sBizArg.split(",");
|
||||
String ProjectNo="";
|
||||
String gpsVendor="";
|
||||
for(int i=0;i<bizArr.length;i++){
|
||||
if(bizArr[i].contains("ObjectNo=")){
|
||||
String [] biz2 = bizArr[i].split("=");
|
||||
ProjectNo = Sqlca.getString("SELECT lpi.PROJECT_NO FROM LB_CONTRACT_INFO_TEMP lcit LEFT JOIN LB_PROJECT_INFO lpi ON lcit.PROJECT_ID=lpi.ID WHERE lcit.FLOWUNID='"+biz2[1]+"'");
|
||||
gpsVendor = Sqlca.getString("SELECT gps_vendor FROM prd_specific_library WHERE productid = (SELECT productid FROM FLOW_BUSSINESS_OBJECT WHERE flow_unid='"+biz2[1]+"')");
|
||||
}
|
||||
}
|
||||
sBizArg +=sBizArg+",ProjectNo="+ProjectNo;
|
||||
sBizArg +=sBizArg+",ProjectNo="+ProjectNo+",gpsVendor="+gpsVendor;
|
||||
System.out.println(sBizArg);
|
||||
String sSubTypeNo = CurPage.getParameter("SubTypeNo");
|
||||
String autoCommit="false";
|
||||
|
||||
@ -40,6 +40,10 @@
|
||||
function showImage(){
|
||||
var applyNo = getItemValue(0,getRow(),"APPLY_NO");
|
||||
var Images =AsControl.RunJavaMethodTrans("com.tenwa.gps.GpsController","getImage","applyNo="+applyNo);
|
||||
if("null"==Images){
|
||||
alert("暂无图片信息");
|
||||
return
|
||||
}
|
||||
var ImageArr = Images.split(',');
|
||||
if(ImageArr.length>0){
|
||||
$("#dowebok").remove();
|
||||
|
||||
@ -71,9 +71,8 @@
|
||||
return ;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
var sParams = "ApplyType=<%=sApplyType%>,CurUserID=<%=CurUser.getUserID()%>";
|
||||
var gpsVendor = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.GpsVendorCheck","getGpsVendor","productId="+product_id);
|
||||
var sParams = "ApplyType=<%=sApplyType%>,CurUserID=<%=CurUser.getUserID()%>,gpsVendor="+gpsVendor;
|
||||
sParams =sParams+",signType="+signType+",sealType="+sealType+",isNetCar="+isNetCar+",carAttributes="+carAttributes+",leasform="+leasform+",ProductId="+product_id+",ProjectId="+id+",ProjectNo="+project_id+",customertype="+customertype+",ProjectName="+project_name+",ApplyType=<%=sApplyType%>";
|
||||
|
||||
if(flowno=="BContractApproveApply"){
|
||||
|
||||
@ -31,7 +31,8 @@
|
||||
var carAttributes = sReturn[8];
|
||||
var isNetCar = sReturn[9];
|
||||
var operationType = sReturn[10];
|
||||
var sParams = "ApplyType=<%=sApplyType%>,CurUserID=<%=CurUser.getUserID()%>";
|
||||
var gpsVendor = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.GpsVendorCheck","getGpsVendor","productId="+product_id);
|
||||
var sParams = "ApplyType=<%=sApplyType%>,CurUserID=<%=CurUser.getUserID()%>,gpsVendor="+gpsVendor;
|
||||
sParams =sParams+",operationType="+operationType+",isNetCar="+isNetCar+",carAttributes="+carAttributes+",leasform="+leasform+",customertype="+customertype+",ProjectId="+project_id+",FlowKey="+contract_number+",ProductId="+product_id+",ProjectNo="+project_no+",ContractId="+contract_id+",ProjectName="+project_name+",ApplyType=<%=sApplyType%>";
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.flow.action.comm.BaseFlowStartAction","initFLow",sParams);
|
||||
if(typeof(sReturnInfo)=="undefined" || sReturnInfo=="" || sReturnInfo=="_CANCEL_") return;
|
||||
|
||||
@ -30,8 +30,9 @@
|
||||
var proj_name = sReturn[4];
|
||||
var contract_no = sReturn[5];
|
||||
var customername = sReturn[6];
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.flow.action.comm.BaseFlowStartAction","initFLow",
|
||||
"ContractId="+contract_id+",FlowKey="+contract_no+",ProjectId="+proj_id+",ProductId="+productId+",contract_number="+contract_number+",ProjectName="+(contract_no+"-"+customername)+",applyType=<%=sApplyType%>,CurUserID=<%=CurUser.getUserID()%>");
|
||||
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 sReturnInfo = RunJavaMethodTrans("com.tenwa.flow.action.comm.BaseFlowStartAction","initFLow",sParams);
|
||||
var sReturnInfos=sReturnInfo.split("@");
|
||||
if(sReturnInfos[0]=="success")
|
||||
{
|
||||
|
||||
@ -85,6 +85,7 @@
|
||||
<attribute name="signType" label="客户签约方式" type="STRING" length="10"/>
|
||||
<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"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
|
||||
@ -2,4 +2,4 @@ TYuserAccount=tianyitest
|
||||
TYtoken=9999
|
||||
TYsign=3474A2D7CFEC5DECD54DE8A263F7A4A9
|
||||
TYUrl=http://121.43.178.183:9989/dispatch_intf/apiController/order
|
||||
TYQueryOrderToVin=http://api.tianyigps.cn/gps-intf/api2/getGpsInfosByCarVin
|
||||
TYQueryOrderToVin=http://121.43.178.183:80/gps-intf/api2/getGpsInfosByCarVin
|
||||
@ -323,6 +323,8 @@ public class GpsController {
|
||||
}
|
||||
}
|
||||
res.close();
|
||||
if(strb==null)
|
||||
return "null";
|
||||
return strb.toString();
|
||||
}
|
||||
}
|
||||
|
||||
@ -10,6 +10,7 @@ import org.apache.http.HttpResponse;
|
||||
import org.apache.http.NameValuePair;
|
||||
import org.apache.http.client.HttpClient;
|
||||
import org.apache.http.client.entity.UrlEncodedFormEntity;
|
||||
import org.apache.http.client.methods.HttpDelete;
|
||||
import org.apache.http.client.methods.HttpGet;
|
||||
import org.apache.http.client.methods.HttpPatch;
|
||||
import org.apache.http.client.methods.HttpPost;
|
||||
|
||||
@ -5,6 +5,7 @@ import java.util.Map;
|
||||
|
||||
import jbo.sys.LM_GPS_ORDER;
|
||||
import jbo.sys.LM_GPS_ORDER_TEMP;
|
||||
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
|
||||
import com.tenwa.flow.baseBussion.BaseBussiness;
|
||||
@ -19,12 +20,15 @@ public class GPSDetailsFormalToTemporary extends BaseBussiness{
|
||||
this.initBussinessParam(Sqlca);
|
||||
String projectId=this.getAttribute("ProjectId").toString();
|
||||
String flowUnid=this.getAttribute("FlowUnid").toString();
|
||||
Sqlca.executeSQL("delete from lm_gps_order_temp where PROJECT_ID='"+projectId+"'");
|
||||
Map<String,String> fromCondtion=new HashMap<String,String>();
|
||||
fromCondtion.put("PROJECT_ID", projectId);
|
||||
Map<String,String> otherProperty=new HashMap<String,String>();
|
||||
otherProperty.put("FLOWUNID", flowUnid);
|
||||
DataOperatorUtil.copyJBOSet(LM_GPS_ORDER.CLASS_NAME, fromCondtion, LM_GPS_ORDER_TEMP.CLASS_NAME,otherProperty, null, null, Sqlca);
|
||||
String gpsVendor=this.getAttribute("gpsVendor").toString();
|
||||
if(!"null".equals(gpsVendor)){
|
||||
Sqlca.executeSQL("delete from lm_gps_order_temp where PROJECT_ID='"+projectId+"'");
|
||||
Map<String,String> fromCondtion=new HashMap<String,String>();
|
||||
fromCondtion.put("PROJECT_ID", projectId);
|
||||
Map<String,String> otherProperty=new HashMap<String,String>();
|
||||
otherProperty.put("FLOWUNID", flowUnid);
|
||||
DataOperatorUtil.copyJBOSet(LM_GPS_ORDER.CLASS_NAME, fromCondtion, LM_GPS_ORDER_TEMP.CLASS_NAME,otherProperty, null, null, Sqlca);
|
||||
}
|
||||
return "true";
|
||||
}
|
||||
}
|
||||
|
||||
@ -17,11 +17,14 @@ public class GPSDetailsTemporaryToFormal extends BaseBussiness{
|
||||
public Object run(Transaction Sqlca) throws Exception {
|
||||
this.initBussinessParam(Sqlca);
|
||||
String projectId=this.getAttribute("ProjectId").toString();
|
||||
Map<String,String> fromCondtion=new HashMap<String,String>();
|
||||
fromCondtion.put("PROJECT_ID", projectId);
|
||||
Map<String,String> otherProperty=new HashMap<String,String>();
|
||||
otherProperty.put("PROJECT_ID", projectId);
|
||||
DataOperatorUtil.copyJBOSet(LM_GPS_ORDER_TEMP.CLASS_NAME, fromCondtion, LM_GPS_ORDER.CLASS_NAME,null, otherProperty, null, Sqlca);
|
||||
return "true";
|
||||
String gpsVendor=this.getAttribute("gpsVendor").toString();
|
||||
if(!"null".equals(gpsVendor)){
|
||||
Map<String,String> fromCondtion=new HashMap<String,String>();
|
||||
fromCondtion.put("PROJECT_ID", projectId);
|
||||
Map<String,String> otherProperty=new HashMap<String,String>();
|
||||
otherProperty.put("PROJECT_ID", projectId);
|
||||
DataOperatorUtil.copyJBOSet(LM_GPS_ORDER_TEMP.CLASS_NAME, fromCondtion, LM_GPS_ORDER.CLASS_NAME,otherProperty,null,null,Sqlca);
|
||||
}
|
||||
return "true";
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user