业务申请

This commit is contained in:
user 2018-06-11 21:20:38 +08:00
parent 2cd51d416a
commit b5de1b8719
4 changed files with 38 additions and 19 deletions

View File

@ -142,8 +142,9 @@ $(function(){
paramJson["CustomerNature"]="<%=startMap.get("CustomerNature")%>";
paramJson["CUSTOMERID"]="<%=startMap.get("CUSTOMERID")%>";
paramJson["ContractId"]="<%=startMap.get("ContractId")%>";
paramJson["CarAttributes"]="<%=startMap.get("CarAttributes")%>";
paramJson["Leasehold"]="<%=startMap.get("Leasehold")%>";
paramJson["carAttributes"]="<%=startMap.get("carAttributes")%>";
paramJson["leasehold"]="<%=startMap.get("leasehold")%>";
paramJson["modelid"]="<%=startMap.get("modelid")%>";
//paramJson["CurFlowUser"]="<%=FlowFixedParam.get("CurFlowUser")%>";
//paramJson["AgentFlowUser"]="<%=FlowFixedParam.get("AgentFlowUser")%>";

View File

@ -43,7 +43,12 @@
String taskno=CurPage.getParameter("TaskNo");
String ishistory=CurPage.getParameter("IsHistory");
String nodeNo=CurPage.getParameter("NodeNo");
// alert(CarAttributes,Leasehold);
String carAttributes=CurPage.getParameter("carAttributes");
String leasehold=CurPage.getParameter("leasehold");
String carSystem=CurPage.getParameter("carSystem");
System.out.print("+++++++++++++++++++++++++"+carSystem+"------------------");
%>
<%/*~END~*/%>
@ -112,6 +117,11 @@ if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.
<script type="text/javascript">
/*~[Describe=µ¼Èë×âÁÞÎïexcel;InputParam=ÎÞ;OutPutParam=ÎÞ;]~*/
$(function(){
var carSystem="<%=carSystem%>";
setItemValue(0,0,"MODEL",carSystem);
});
function inExcel(){
var importCondition = {};//µ¼ÈëÅäÖÃ
var sEquipType = "<%=sEquipType%>";//×âÁÞÎïÀàÐÍ

View File

@ -75,8 +75,8 @@
function saveRecord()
{
//从页面上获取客户编号,产品编号
var carAttributes = getItemValue(0,0,"carAttributes");
var leasehold = getItemValue(0,0,"leasehold");
var carAttributes = getItemValue(0,getRow(),"carAttributes");
var leasehold = getItemValue(0,getRow(),"leasehold");
var productModel =getItemValue(0,getRow(),"productModel");
var carSeries = getItemValue(0,getRow(),"carSeries");
var carSystem = getItemValue(0,getRow(),"carSystem");
@ -89,7 +89,7 @@
var certid =getItemValue(0,getRow(),"certid");
var brandid = getItemValue(0,getRow(),"brandid");
var seriesid = getItemValue(0,getRow(),"seriesid");
var modelid = getItemValue(0,getRow(),"modelid");
var carSystem = getItemValue(0,getRow(),"carSystem");
if(certtype==""){
alert("请选择证件类型");
@ -127,16 +127,15 @@
}
var sParams = "ApplyType=<%=sApplyType%>,CurUserID=<%=CurUser.getUserID()%>";
sParams =sParams+",ProductId="+productid+",ProductName="+productname+",Customer_type="+customerType+",CustomerType="+customerType+",CarAttributes="+carAttributes+",Leasehold="+leasehold;
sParams =sParams+",ProductId="+productid+",ProductName="+productname+",CustomerType="+customerType+",carAttributes="+carAttributes+",leasehold="+leasehold+",carSystem="+carSystem;
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.projectapproval.BusinessApprovalStartAction","initFLow",sParams);
if(typeof(sReturnInfo)=="undefined" || sReturnInfo=="" || sReturnInfo=="_CANCEL_" )
{
doCancel();
}
else
{
parent.AsDialog.ClosePage(sReturnInfo+"@"+customerType);
parent.AsDialog.ClosePage(sReturnInfo+"@"+customerType+"@"+carAttributes+"@"+leasehold+"@"+carSystem);
}
}
@ -304,7 +303,7 @@
showItem(0,"product_id");//字段显示
}
}
initRow();
//initRow();
</script>
<%/*~END~*/%>

View File

@ -33,8 +33,9 @@ public class BusinessApprovalStartAction extends BaseFlowStartAction{
private String productID;
private String CustomerType;
private String CarAttributes;
private String Leasehold;
private String carAttributes;
private String leasehold;
private String carSystem;
public String getProductID() {
return productID;
@ -54,26 +55,33 @@ public String getProductID() {
CustomerType = customerType;
}
public String getCarAttributes() {
return CarAttributes;
return carAttributes;
}
public void setCarAttributes(String carAttributes) {
CarAttributes = carAttributes;
this.carAttributes = carAttributes;
}
public String getLeasehold() {
return Leasehold;
return leasehold;
}
public void setLeasehold(String leasehold) {
Leasehold = leasehold;
this.leasehold = leasehold;
}
public String getCarSystem() {
return carSystem;
}
public void setCarSystem(String carSystem) {
this.carSystem = carSystem;
}
@Override
public void customOperation(JBOTransaction tx,BizObject flowBussiness) throws Exception {
@ -84,7 +92,8 @@ 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());
this.FlowParam.put("carAttributes", this.getCarAttributes());
this.FlowParam.put("leasehold", this.getLeasehold());
this.FlowParam.put("carSystem", this.getCarSystem());
}
}