业务申请

This commit is contained in:
user 2018-06-14 11:55:33 +08:00
parent 182ee4e9d0
commit 676f66d5b0
7 changed files with 66 additions and 27 deletions

View File

@ -31,7 +31,7 @@
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List02;Describe=定义变量,获取参数;]~*/%>
<%
String sFlowUnid = CurPage.getParameter("FlowUnid");//流程编号
if(sFlowUnid == null)sFlowUnid = "";
if(sFlowUnid == null)sFlowUnid = "";
String certid = Sqlca.getString("select cpt.certid from lb_union_lessee_temp lul inner join CUSTOMER_PERSON_TEMP cpt on cpt.customerid = lul.customer_id where lul.flowunid = '"+sFlowUnid+"' group by cpt.certid");
String sTempletNo = CurPage.getParameter("TempletNo");//模板号
if(sTempletNo == null) sTempletNo = "LBEquipmentListTemp_Cars";
@ -46,7 +46,11 @@
String carAttributes=CurPage.getParameter("carAttributes");
String leasehold=CurPage.getParameter("leasehold");
String productModel=CurPage.getParameter("productModel");
String carSeries=CurPage.getParameter("carSeries");
String carSystem=CurPage.getParameter("carSystem");
System.out.print("+++++++++++++++++++++++++"+productModel+"------------------");
System.out.print("+++++++++++++++++++++++++"+carSeries+"------------------");
System.out.print("+++++++++++++++++++++++++"+carSystem+"------------------");
%>
@ -117,11 +121,14 @@ 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(){
<%-- var productModel="<%=productModel%>"; --%>
<%-- var carSeries="<%=carSeries%>"; --%>
<%-- var carSystem="<%=carSystem%>"; --%>
// var sParam = "productModel="+productModel+",carSeries="+carSeries+",carSystem="+carSystem;
// var result = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.LBEquipmentAction","saveCar",sParam);
// });
function inExcel(){
var importCondition = {};//导入配置
var sEquipType = "<%=sEquipType%>";//租赁物类型

View File

@ -16,7 +16,7 @@
String rightType = CurPage.getParameter("RightType");
String sTempletNo = "BusinessProjectTempInfo";//--Ä£°åºÅ--
//BizObject bo=JBOFactory.createBizObjectQuery("jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT", "flow_unid=:flowunid").setParameter("flowunid",sFlowUnid).getSingleResult(false);
BizObject bo=JBOFactory.createBizObjectQuery("jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT", "flow_unid=:flowunid").setParameter("flowunid",sFlowUnid).getSingleResult(false);
//String a=bo.getAttribute("CustomerType").toString();
String carSeries = CurPage.getParameter("carSeries");
String certtype = CurPage.getParameter("certtype");

View File

@ -1,3 +1,4 @@
<%@page import="com.sun.org.apache.xalan.internal.xsltc.compiler.sym"%>
<%@page import="jbo.app.tenwa.customer.CUSTOMER_TYPE"%>
<%@page import="jbo.app.tenwa.customer.CUSTOMER_INFO"%>
<%@page import="java.util.Date"%>
@ -13,7 +14,8 @@
String customerid = Sqlca.getString("select customer_id from lb_union_lessee_temp where flowunid='"+flowunid+"'");
String sTempletNo = "BusinessCustomerInfo";//--Ä£°åºÅ--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
String custname=CurPage.getParameter("custname");
System.out.print(custname+"=====================");
doTemp.setHtmlEvent("CERTID","onChange","changeCertid");
String rightType = CurPage.getParameter("RightType");//Ò³ÃæÖ»¶ÁÓë·ñ
if(rightType==null)rightType="";

View File

@ -87,9 +87,6 @@
var customerType = getItemValue(0,getRow(),"Customer_type");
var certtype =getItemValue(0,getRow(),"certtype");
var certid =getItemValue(0,getRow(),"certid");
var brandid = getItemValue(0,getRow(),"brandid");
var seriesid = getItemValue(0,getRow(),"seriesid");
var carSystem = getItemValue(0,getRow(),"carSystem");
if(certtype==""){
alert("ÇëÑ¡ÔñÖ¤¼þÀàÐÍ");
@ -127,7 +124,7 @@
}
var sParams = "ApplyType=<%=sApplyType%>,CurUserID=<%=CurUser.getUserID()%>";
sParams =sParams+",ProductId="+productid+",ProductName="+productname+",CustomerType="+customerType+",carAttributes="+carAttributes+",leasehold="+leasehold+",carSystem="+carSystem;
sParams =sParams+",ProductId="+productid+",ProductName="+productname+",CustomerType="+customerType+",carAttributes="+carAttributes+",leasehold="+leasehold+",carSystem="+carSystem+",custname="+custname+",certtype="+certtype;
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.projectapproval.BusinessApprovalStartAction","initFLow",sParams);
if(typeof(sReturnInfo)=="undefined" || sReturnInfo=="" || sReturnInfo=="_CANCEL_" )
{
@ -135,7 +132,7 @@
}
else
{
parent.AsDialog.ClosePage(sReturnInfo+"@"+customerType+"@"+carAttributes+"@"+leasehold+"@"+carSystem);
parent.AsDialog.ClosePage(sReturnInfo+"@"+customerType+"@"+carAttributes+"@"+leasehold+"@"+carSystem+"@"+custname+"@"+certtype);
}
}

View File

@ -36,6 +36,8 @@ public class FlowBussionAction extends CommonAction {
private String ProductId;
private String FixedFlowParam;
public String customertype;
public String custname;
public List<BizObject> FlowMutexConfig;
public Map<String, String> FlowParam = new HashMap<String, String>();
@ -99,6 +101,7 @@ public class FlowBussionAction extends CommonAction {
scriptMap.put("FlowNo", flowno);
scriptMap.put("FlowName", this.getFlowName());
scriptMap.put("FlowKey", this.getFlowKey());
scriptMap.put("custname",this.getCustname());
Transaction Sqlca = null;
BizObjectManager bm1 = null;
BizObjectQuery bq1 = null;
@ -220,5 +223,10 @@ public class FlowBussionAction extends CommonAction {
public void setCustomertype(String customertype) {
this.customertype = customertype;
}
public String getCustname() {
return custname;
}
public void setCustname(String custname) {
this.custname = custname;
}
}

View File

@ -36,6 +36,9 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness {
boCRT.setAttributeValue("InputOrgID", asUser.getOrgID());
boCRT.setAttributeValue("InputUserID", asUser.getUserID());
boCRT.setAttributeValue("InputTime", StringFunction.getToday());
boCRT.setAttributeValue("FULLNAME", this.getAttribute("custname"));
boCRT.setAttributeValue("CERTTYPE", this.getAttribute("certtype"));

View File

@ -36,8 +36,26 @@ public class BusinessApprovalStartAction extends BaseFlowStartAction{
private String carAttributes;
private String leasehold;
private String carSystem;
private String custname;
private String certtype;
public String getProductID() {
@Override
public void customOperation(JBOTransaction tx,BizObject flowBussiness) throws Exception {
this.FlowParam.put("ProjectId", UUID.randomUUID().toString().replaceAll("-", ""));
String projectNO=SerialNumberUtil.getProjectSerialNumber1(this.getAsUser().getOrgID(), tx);
//String projectName=projectNO+"_"+this.FlowParam.get("CustName")+this.FlowParam.get("ProductName")+"ÏîÄ¿";
this.FlowParam.put("ProjectNo", projectNO);
this.FlowParam.put("FlowKey", projectNO);
this.FlowParam.put("ProjectName", projectNO);
this.FlowParam.put("CustomerType", this.getCustomerType());
this.FlowParam.put("carAttributes", this.getCarAttributes());
this.FlowParam.put("leasehold", this.getLeasehold());
this.FlowParam.put("carSystem", this.getCarSystem());
this.FlowParam.put("custname", this.getCustname());
//this.FlowParam.put(certtype, this.getCerttype());
}
public String getProductID() {
return productID;
}
@ -83,17 +101,21 @@ public String getProductID() {
this.carSystem = carSystem;
}
@Override
public void customOperation(JBOTransaction tx,BizObject flowBussiness) throws Exception {
this.FlowParam.put("ProjectId", UUID.randomUUID().toString().replaceAll("-", ""));
String projectNO=SerialNumberUtil.getProjectSerialNumber1(this.getAsUser().getOrgID(), tx);
//String projectName=projectNO+"_"+this.FlowParam.get("CustName")+this.FlowParam.get("ProductName")+"ÏîÄ¿";
this.FlowParam.put("ProjectNo", projectNO);
this.FlowParam.put("FlowKey", projectNO);
this.FlowParam.put("ProjectName", projectNO);
this.FlowParam.put("CustomerType", this.getCustomerType());
this.FlowParam.put("carAttributes", this.getCarAttributes());
this.FlowParam.put("leasehold", this.getLeasehold());
this.FlowParam.put("carSystem", this.getCarSystem());
public String getCustname() {
return custname;
}
public void setCustname(String custname) {
this.custname = custname;
}
public String getCerttype() {
return certtype;
}
public void setCerttype(String certtype) {
this.certtype = certtype;
}
}