业务申请,法人页面已更换,解决法人页面保存值,修改发起脚本。

This commit is contained in:
user 2018-06-22 16:47:41 +08:00
parent b66ee17151
commit bb58dc7684
4 changed files with 19 additions and 42 deletions

View File

@ -1,30 +0,0 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
/*
Author: undefined 2018-06-15
Content: 示例详情页面
History Log:
*/
String sPrevUrl = CurPage.getParameter("PrevUrl");
if(sPrevUrl == null) sPrevUrl = "";
String sTempletNo = "LPApplicationInfoTemp";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
doTemp.setColTips("", "");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
//dwTemp.ReadOnly = "-2";//只读模式
dwTemp.genHTMLObjectWindow(CurPage.getParameter("FlowUnid"));
String sButtons[][] = {
{"true","All","Button","保存","保存所有修改","as_save(0)","","","",""},
{String.valueOf(!com.amarsoft.are.lang.StringX.isSpace(sPrevUrl)),"All","Button","返回","返回列表","returnList()","","","",""}
};
sButtonPosition = "south";
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
function returnList(){
AsControl.OpenView("<%=sPrevUrl%>", "","_self","");
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -37,7 +37,6 @@
<script type="text/javascript">
function checkCertId(){
debugger;
var certType = getItemValue(0,getRow(0),"CERTTYPE");
var certId = getItemValue(0,getRow(0),"CERTID");
if(certType==""){

View File

@ -36,7 +36,7 @@
String userll=null;
userll="/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp?CompClientID=";
if("01".equals(custype)){
userll="/Tenwa/Customer/Lessee/Person/LPApplicationInfoTemp.jsp?CompClientID=";
userll="/Tenwa/Customer/Lessee/Person/CustomerCompanyTempInfo.jsp?CompClientID=";
}
ASObjectWindowCalc dwTemp = new ASObjectWindowCalc(CurPage, doTemp,request);
@ -64,7 +64,14 @@
function save(){
var leasfrom = getItemValue(0,getRow(),"LEAS_FORM");
var projectSource = getItemValue(0,getRow(),"PROJECT_SOURCE");
frame_list.window.saveRecord(leasfrom,projectSource);
var customerType = "<%=custype%>";
if(customerType=="01"){
as_save("myiframe0","frame_list.window.as_save(0);");
//as_save(0);
}
if(customerType=="03"){
frame_list.window.saveRecord(leasfrom,projectSource);
}
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -1,6 +1,6 @@
package com.tenwa.lease.flow.project.commbusiness;
import jbo.app.lpapplication;
import jbo.app.tenwa.customer.CUSTOMER_COMPANY_TEMP;
import jbo.app.tenwa.customer.CUSTOMER_PERSON_TEMP;
import jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO_TEMP;
import jbo.com.tenwa.lease.comm.LB_EQUIPMENT_CAR_TEMP;
@ -28,7 +28,7 @@ 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 bmCCT = JBOFactory.getBizObjectManager(CUSTOMER_COMPANY_TEMP.CLASS_NAME,Sqlca);
BizObjectManager bmLECT = JBOFactory.getBizObjectManager(LB_EQUIPMENT_CAR_TEMP.CLASS_NAME,Sqlca);
BizObjectManager bmLCIT = JBOFactory.getBizObjectManager(LB_CONTRACT_INFO_TEMP.CLASS_NAME,Sqlca);
@ -38,7 +38,7 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness {
BizObject bo = bm.newObject();
BizObject boCRT = bmCPT.newObject();
BizObject boLULT = bmLULT.newObject();
BizObject bmLP = bmLPA.newObject();
BizObject bmCC = bmCCT.newObject();
BizObject bmLEC = bmLECT.newObject();
BizObject bmLCI = bmLCIT.newObject();
@ -75,11 +75,12 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness {
//根据客户类型设置参数
String certType = this.getAttribute("certtype").toString();
if(certType.equals("Ent02")){
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"));
bmCC.setAttributeValue("flowunid", this.getAttribute("FlowUnid"));
bmCC.setAttributeValue("customerid", customerId);
String custname = this.getAttribute("custname").toString();
String certid = this.getAttribute("certid").toString();
bmCC.setAttributeValue("enterprisename", this.getAttribute("custname"));
bmCC.setAttributeValue("certid", this.getAttribute("certid"));
}
bmLEC.setAttributeValue("FLOWUNID", this.getAttribute("FlowUnid"));
@ -123,7 +124,7 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness {
bm.saveObject(bo);
bmCPT.saveObject(boCRT);
bmLULT.saveObject(boLULT);
bmLPA.saveObject(bmLP);
bmCCT.saveObject(bmCC);
bmLECT.saveObject(bmLEC);
bmLCIT.saveObject(bmLCI);