业务申请

This commit is contained in:
user 2018-06-14 17:16:21 +08:00
parent e50b70c532
commit fdfce7be5b
5 changed files with 57 additions and 14 deletions

View File

@ -10,11 +10,11 @@
String sTempletNo = "LegalPersonApplicationInfo";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
doTemp.setColTips("", "²âÊÔ");
doTemp.setColTips("", "");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
//dwTemp.ReadOnly = "-2";//只读模式
dwTemp.genHTMLObjectWindow(CurPage.getParameter("SerialNo"));
dwTemp.genHTMLObjectWindow(CurPage.getParameter("FlowUnid"));
String sButtons[][] = {
{"true","All","Button","保存","保存所有修改","as_save(0)","","","",""},

View File

@ -92,12 +92,12 @@ if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.
}else{
sButtons=new String[][]{
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
{"true","","Button","新增","新增租赁物信息","newRecord()","","","","btn_icon_add",""},
//{"true","","Button","新增","新增租赁物信息","newRecord()","","","","btn_icon_add",""},
{"true","","Button","修改","修改租赁物信息","viewAndEdit()","","","","btn_icon_edit"},
{"true","","Button","删除","删除租赁物信息","deleteRecord()","","","","btn_icon_delete",""},
{"true","","Button","导入Excel","导入租赁物信息Excel","inExcel()","","","","",""},
{"true","","Button","导出Excel","导出租赁物信息Excel","exportPage('"+sWebRootPath+"',0,'excel','"+dwTemp.getArgsValue()+"')","","","","",""},
{"true","","Button","下载模板","下载租赁物信息模板","downLoad()","","","","",""}
//{"true","","Button","删除","删除租赁物信息","deleteRecord()","","","","btn_icon_delete",""},
//{"true","","Button","导入Excel","导入租赁物信息Excel","inExcel()","","","","",""},
//{"true","","Button","导出Excel","导出租赁物信息Excel","exportPage('"+sWebRootPath+"',0,'excel','"+dwTemp.getArgsValue()+"')","","","","",""},
//{"true","","Button","下载模板","下载租赁物信息模板","downLoad()","","","","",""}
};
}
%>

View File

@ -125,7 +125,7 @@
}
var sParams = "ApplyType=<%=sApplyType%>,CurUserID=<%=CurUser.getUserID()%>";
sParams =sParams+",ProductId="+productid+",ProductName="+productname+",CustomerType="+customerType+",carAttributes="+carAttributes+",leasehold="+leasehold+",carSystem="+carSystem+",custname="+custname+",certtype="+certtype+",certid="+certid;
sParams =sParams+",ProductId="+productid+",ProductName="+productname+",CustomerType="+customerType+",carAttributes="+carAttributes+",leasehold="+leasehold+",carSystem="+carSystem+",custname="+custname+",certtype="+certtype+",certid="+certid+",productModel="+productModel+",carSeries="+carSeries;
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.projectapproval.BusinessApprovalStartAction","initFLow",sParams);
if(typeof(sReturnInfo)=="undefined" || sReturnInfo=="" || sReturnInfo=="_CANCEL_" )
{
@ -133,7 +133,7 @@
}
else
{
parent.AsDialog.ClosePage(sReturnInfo+"@"+customerType+"@"+carAttributes+"@"+leasehold+"@"+carSystem+"@"+custname+"@"+certtype+"@"+certid);
parent.AsDialog.ClosePage(sReturnInfo+"@"+customerType+"@"+carAttributes+"@"+leasehold+"@"+carSystem+"@"+custname+"@"+certtype+"@"+certid+"@"+productModel+"@"+carSeries);
}
}
@ -225,7 +225,7 @@
}
}
<%/*~[Describe=ŃĄÔń˛úơŔŕĐÍ;]~*/%>
<%/*~[Describe=ŃĄÔń˛úơ;]~*/%>
function selectBusinessType()
{
@ -244,7 +244,7 @@
// alert(sReturn);
setItemValue(0,0,"productId",sReturn[0]);
setItemValue(0,0,"productName",sReturn[1]);
},"ÇëŃĄÔń˛úơŔŕĐÍ",'');
},"ÇëŃĄÔń˛úơ",'');
}else if(carAttributes=='2'){
AsDialog.OpenSelector("SelectBusinessType","ProductType,1,TypeNo,0005","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
function(sReturn){
@ -257,7 +257,7 @@
// alert(sReturn);
setItemValue(0,0,"productId",sReturn[0]);
setItemValue(0,0,"productName",sReturn[1]);
},"ÇëŃĄÔń˛úơŔŕĐÍ",'');
},"ÇëŃĄÔń˛úơ",'');
}
}

View File

@ -1,6 +1,8 @@
package com.tenwa.lease.flow.project.commbusiness;
import jbo.app.lpapplication;
import jbo.app.tenwa.customer.CUSTOMER_PERSON_TEMP;
import jbo.com.tenwa.lease.comm.LB_EQUIPMENT_CAR_TEMP;
import jbo.com.tenwa.lease.comm.LB_PROJECT_INFO_TEMP;
import jbo.com.tenwa.lease.comm.LB_UNION_LESSEE_TEMP;
@ -25,12 +27,20 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness {
BizObjectManager bm = JBOFactory.getBizObjectManager(LB_PROJECT_INFO_TEMP.CLASS_NAME);
BizObjectManager bmCPT = JBOFactory.getBizObjectManager(CUSTOMER_PERSON_TEMP.CLASS_NAME,Sqlca); //˳±ã³õʼ»¯¿Í»§ÐÅÏ¢
BizObjectManager bmLULT = JBOFactory.getBizObjectManager(LB_UNION_LESSEE_TEMP.CLASS_NAME,Sqlca);
BizObjectManager bmLPA = JBOFactory.getBizObjectManager(lpapplication.CLASS_NAME,Sqlca);
BizObjectManager bmLECT = JBOFactory.getBizObjectManager(LB_EQUIPMENT_CAR_TEMP.CLASS_NAME,Sqlca);
Sqlca.join(bm);
String customerid = UUIDUtil.getUUID();
BizObject bo = bm.newObject();
BizObject boCRT = bmCPT.newObject();
BizObject boLULT = bmLULT.newObject();
BizObject bmLP = bmLPA.newObject();
BizObject bmLEC = bmLECT.newObject();
ASUser asUser=new ASUser(this.getAttribute("CurUserID").toString());
boCRT.setAttributeValue("flowunid", this.getAttribute("FlowUnid"));
boCRT.setAttributeValue("customerid", customerid);
boCRT.setAttributeValue("InputOrgID", asUser.getOrgID());
@ -40,7 +50,16 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness {
boCRT.setAttributeValue("CERTTYPE", this.getAttribute("certtype"));
boCRT.setAttributeValue("CERTID", this.getAttribute("certid"));
bmLP.setAttributeValue("flowunid", this.getAttribute("FlowUnid"));
bmLP.setAttributeValue("customerid", customerid);
bmLP.setAttributeValue("enterprisename", this.getAttribute("custname"));
bmLP.setAttributeValue("certtype", this.getAttribute("certtype"));
bmLP.setAttributeValue("certid", this.getAttribute("certid"));
bmLEC.setAttributeValue("FLOWUNID", this.getAttribute("FlowUnid"));
bmLEC.setAttributeValue("MODEL", this.getAttribute("carSystem"));
bmLEC.setAttributeValue("BRAND", this.getAttribute("productModel"));
bmLEC.setAttributeValue("car_series", this.getAttribute("carSeries"));
boLULT.setAttributeValue("project_id", this.getAttribute("ProjectId"));
@ -67,9 +86,13 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness {
bo.setAttributeValue("InputOrgID", asUser.getOrgID());
bo.setAttributeValue("InputUserID", asUser.getUserID());
bo.setAttributeValue("InputTime", StringFunction.getToday());
bm.saveObject(bo);
bmCPT.saveObject(boCRT);
bmLULT.saveObject(boLULT);
bmLPA.saveObject(bmLP);
bmLECT.saveObject(bmLEC);
String sMessage="true";
return sMessage;
}

View File

@ -39,6 +39,8 @@ public class BusinessApprovalStartAction extends BaseFlowStartAction{
private String custname;
private String certtype;
private String certid;
private String productModel;
private String carSeries;
@Override
public void customOperation(JBOTransaction tx,BizObject flowBussiness) throws Exception {
@ -53,10 +55,28 @@ public class BusinessApprovalStartAction extends BaseFlowStartAction{
this.FlowParam.put("leasehold", this.getLeasehold());
this.FlowParam.put("carSystem", this.getCarSystem());
this.FlowParam.put("custname", this.getCustname());
this.FlowParam.put(certtype, this.getCerttype());
this.FlowParam.put(certid, this.getCertid());
this.FlowParam.put("certtype", this.getCerttype());
this.FlowParam.put("certid", this.getCertid());
this.FlowParam.put("productModel", getProductModel());
this.FlowParam.put("carSeries", getCarSeries());
}
public String getProductModel() {
return productModel;
}
public void setProductModel(String productModel) {
this.productModel = productModel;
}
public String getCarSeries() {
return carSeries;
}
public void setCarSeries(String carSeries) {
this.carSeries = carSeries;
}
public String getCertid() {
return certid;
}