1.产品规格增加字段

2.将保单放款配置改到产品中(从产品读取,存到合同表)
3.产品规格显示和必填的修改。
This commit is contained in:
zhangbb 2019-07-26 15:05:48 +08:00
parent e864ec2b90
commit edee7d9c55
4 changed files with 31 additions and 8 deletions

View File

@ -1,3 +1,4 @@
<%@page import="com.itextpdf.text.log.SysoCounter"%>
<%@page import="com.amarsoft.app.base.util.SystemHelper"%>
<%@page import="com.amarsoft.app.base.util.ObjectWindowHelper"%>
<%@page import="com.amarsoft.app.base.businessobject.*"%>
@ -13,19 +14,32 @@
if("business_product".equals(productType2)) {
dwTemp.getDataObject().setVisible("LeasForm", false);
dwTemp.getDataObject().setVisible("equip_type", false);
dwTemp.getDataObject().setVisible("IS_ALL_DEALER", false);
dwTemp.getDataObject().setVisible("IS_ALL_DEALER", false);
dwTemp.getDataObject().setVisible("IS_ALL_CAR", false);
dwTemp.getDataObject().setVisible("HaveCommission", false);
dwTemp.getDataObject().setVisible("payType", false);
dwTemp.getDataObject().setRequired("LeasForm", false);
dwTemp.getDataObject().setVisible("signType", false);
dwTemp.getDataObject().setVisible("sealType", false);
dwTemp.getDataObject().setVisible("EarlySettleBreachRatio", false);
dwTemp.getDataObject().setVisible("operationType", false);
/* dwTemp.getDataObject().setRequired("LeasForm", false);
dwTemp.getDataObject().setRequired("equip_type", false);
dwTemp.getDataObject().setRequired("IS_ALL_DEALER", false);
dwTemp.getDataObject().setRequired("IS_ALL_CAR", false);
dwTemp.getDataObject().setRequired("HaveCommission", false);
dwTemp.getDataObject().setRequired("payType", false);
dwTemp.getDataObject().setRequired("payType", false); */
String a = dwTemp.getDataObject().getColumnAttribute("payType", "COLREQUIRED");
System.out.println("================´«Í³"+a);
}else{
dwTemp.getDataObject().setRequired("LeasForm,equip_type,IS_ALL_DEALER,IS_ALL_CAR,HaveCommission,payType", true);
String a = dwTemp.getDataObject().getColumnAttribute("payType", "COLREQUIRED");
System.out.println("================Æû³µ"+a);
}
ASDataObject doTemp=dwTemp.getDataObject();
ASDataObject doTemp=dwTemp.getDataObject();
//将ParaID作为参数传给显示模板
dwTemp.genHTMLObjectWindow("");
@ -67,6 +81,7 @@ include file="/Frame/resources/include/ui/include_info.jspf"%>
// }
function openComponentDef(){
var serialNo = getItemValue(0,getRow(),"SerialNo");
var versionID = getItemValue(0,getRow(),"VERSIONID");
if(typeof(serialNo) != "undefined" && serialNo != "" && typeof(versionID) != "undefined" && versionID != "") {

View File

@ -45,13 +45,14 @@ $(function(){
if(relines<0){
$("#RELINES").css("color","red");
}
var phaseNo="<%=phaseNo%>";
//安鹏要求改到产品配置中
<%-- var phaseNo="<%=phaseNo%>";
if(phaseNo=='0010'){
setItemReadOnly(0, 0, "LENDING_TYPE", true);
}else{
setItemReadOnly(0, 0, "LENDING_TYPE", false);
}
lendingType();
lendingType(); --%>
});
function lendingType(){
var lendingType = getItemValue(0, 0, "LENDING_TYPE");

View File

@ -84,6 +84,7 @@
<attribute name="EarlySettleBreachRatio" label="提前结清违约金比例" type="STRING" length="32"/>
<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"/>
</attributes>
<manager>
<managerProperties>

View File

@ -5,6 +5,7 @@ import java.util.Map;
import jbo.app.tenwa.customer.DISTRIBUTOR_INFO;
import jbo.com.tenwa.lease.comm.LB_PROJECT_INFO;
import jbo.prd.PRD_SPECIFIC_LIBRARY;
import com.amarsoft.are.jbo.BizObject;
import com.amarsoft.are.jbo.BizObjectManager;
@ -38,8 +39,13 @@ public class LBProjectIntoTempToContractCarBusiness extends BaseBussiness {
String distributor_id=bo.getAttribute("distributor_id").getString();
String carType = bo.getAttribute("car_type").getString();
String LENDING_TYPE = "";
if("used_car".equals(carType)){LENDING_TYPE="AFTER";}
if("new_car".equals(carType)){LENDING_TYPE="FIRST";}
BizObjectManager bmp = JBOFactory.getFactory().getManager(PRD_SPECIFIC_LIBRARY.CLASS_NAME);
BizObject bop = bmp.createQuery("productid=:productid").setParameter(productid, productid).getSingleResult(false);
if(bop.getAttribute("LENDING_TYPE")!=null){
LENDING_TYPE = bop.getAttribute("LENDING_TYPE").getString();
};
// if("used_car".equals(carType)){LENDING_TYPE="AFTER";}
// if("new_car".equals(carType)){LENDING_TYPE="FIRST";}
//String area_code=bo.getAttribute("AREA_CODE").getString();
String dept="";
if(deptid.equals("8000900020001")){//cx