diff --git a/WebContent/Tenwa/Apzl/PortalToCarType/LmDistributorToproductList.jsp b/WebContent/Tenwa/Apzl/PortalToCarType/LmDistributorToproductList.jsp
index 673b40444..98127eee0 100644
--- a/WebContent/Tenwa/Apzl/PortalToCarType/LmDistributorToproductList.jsp
+++ b/WebContent/Tenwa/Apzl/PortalToCarType/LmDistributorToproductList.jsp
@@ -7,11 +7,11 @@
*/
ASObjectModel doTemp = new ASObjectModel("LM_DISTRIBUTOR_TO_PRODUCT");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
- String distributorId = CurPage.getParameter("DISTRIBUTOR_ID");
+ String typeno = CurPage.getParameter("TYPENO");
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(10);
- dwTemp.genHTMLObjectWindow(distributorId);
+ dwTemp.genHTMLObjectWindow(typeno);
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
String sButtons[][] = {
{"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
@@ -20,17 +20,15 @@
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
+<%@ page contentType="text/html; charset=GBK"%><%@
+ include file="/IncludeBegin.jsp"%><%
+/*
+ 页面说明: 示例上下联动框架页面
+ */
+ String TYPENO = CurPage.getParameter("TYPENO");
+%><%@include file="/Resources/CodeParts/Frame02.jsp"%>
+
<%@ include file="/IncludeEnd.jsp"%>
\ No newline at end of file
diff --git a/WebContent/Tenwa/Apzl/PortalToCarType/LmProductDistributorList.jsp b/WebContent/Tenwa/Apzl/PortalToCarType/LmProductDistributorList.jsp
index 30d045714..d156f3d2e 100644
--- a/WebContent/Tenwa/Apzl/PortalToCarType/LmProductDistributorList.jsp
+++ b/WebContent/Tenwa/Apzl/PortalToCarType/LmProductDistributorList.jsp
@@ -5,36 +5,55 @@
Content:
History Log:
*/
- ASObjectModel doTemp = new ASObjectModel("LM_DISTRIBUTOR_LIST");
- ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
+ String PG_TITLE ="汽车产品列表";
+ String TYPENO= CurPage.getParameter("TYPENO");
+ ASObjectModel doTemp = new ASObjectModel("LmProductCarList");
+ ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(10);
- dwTemp.genHTMLObjectWindow("");
+ dwTemp.genHTMLObjectWindow(TYPENO);
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
String sButtons[][] = {
- {"false","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
- {"false","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""},
- {"false","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0,'alert(getRowCount(0))')","","","","btn_icon_delete",""},
+ //{"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
+ //{"true","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""},
+ //{"true","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0,'alert(getRowCount(0))')","","","","btn_icon_delete",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<%@ include file="/Frame/resources/include/include_end.jspf"%>
\ No newline at end of file
diff --git a/WebContent/Tenwa/Customer/Lessee/Person/LPApplicationInfoTemp.jsp b/WebContent/Tenwa/Customer/Lessee/Person/LPApplicationInfoTemp.jsp
new file mode 100644
index 000000000..c199f59f2
--- /dev/null
+++ b/WebContent/Tenwa/Customer/Lessee/Person/LPApplicationInfoTemp.jsp
@@ -0,0 +1,30 @@
+<%@ 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"%>
+
+<%@ include file="/Frame/resources/include/include_end.jspf"%>
\ No newline at end of file
diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/BusinessProjectTempInfo.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/BusinessProjectTempInfo.jsp
index 2b3525e4b..bafa919d6 100644
--- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/BusinessProjectTempInfo.jsp
+++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/BusinessProjectTempInfo.jsp
@@ -32,13 +32,13 @@
doTemp.setReadOnly("PROJECT_SOURCE", false);
}
+
String userll=null;
userll="/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp?CompClientID=";
if("01".equals(custype)){
- userll="/Tenwa/Customer/Lessee/Person/LegalPersonApplicationInfo.jsp?CompClientID=";
+ userll="/Tenwa/Customer/Lessee/Person/LPApplicationInfoTemp.jsp?CompClientID=";
}
-
ASObjectWindowCalc dwTemp = new ASObjectWindowCalc(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
dwTemp.setGroupHidden("0020");
diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp
index 74280d0f0..6de107e15 100644
--- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp
+++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp
@@ -39,6 +39,7 @@
<%
String sTempletNo = "BusnessApprovalApplyCreationInfo";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
+ doTemp.setHtmlEvent("Customer_type", "onchange", "setCertType");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
dwTemp.genHTMLObjectWindow("");
@@ -137,7 +138,6 @@
}
}
-
/*~[Describe=确认新增申请;InputParam=无;OutPutParam=无;]~*/
function doCreation()
{
@@ -228,7 +228,6 @@
<%/*~[Describe=选择产品;]~*/%>
function selectBusinessType()
{
-
var carAttributes = getItemValue(0,getRow(),"carAttributes");
var leasehold = getItemValue(0,getRow(),"leasehold");
@@ -241,7 +240,7 @@
return;
}
sReturn = sReturn.split("@");
-// alert(sReturn);
+// alert(sReturn);
setItemValue(0,0,"productId",sReturn[0]);
setItemValue(0,0,"productName",sReturn[1]);
},"请选择产品",'');
@@ -254,12 +253,12 @@
return;
}
sReturn = sReturn.split("@");
-// alert(sReturn);
+// alert(sReturn);
setItemValue(0,0,"productId",sReturn[0]);
setItemValue(0,0,"productName",sReturn[1]);
},"请选择产品",'');
}
-
+
}
<%/*~[Describe=选择客户;]~*/%>
@@ -276,9 +275,25 @@
// alert(sReturn[1]);
setItemValue(0,0,"CUSTOMERID",sReturn[0]);
setItemValue(0,0,"customername",sReturn[1]);
+ setCertType();
},"请选择客户",'');
}
-
+
+ function setCertType(){
+ debugger;
+ var customerType = getItemValue(0,0,"Customer_type");
+ if("01" == customerType){
+// if(carType == "stock_car"){
+// AsDebug.showMessage("提示","法人不允许做存量车业务","","",true);
+// setItemValue(0,0,"CUSTOMERTYPE","");
+// setItemValue(0,0,"CERTTYPE","");
+// return;
+// }
+ setItemValue(0,0,"certtype","Ent01");
+ }else if("03" == customerType){
+ setItemValue(0,0,"certtype","Ind01");
+ }
+ }
<%/*~END~*/%>
diff --git a/WebContent/WEB-INF/etc/a3web.xml b/WebContent/WEB-INF/etc/a3web.xml
index c44c01b79..9313faece 100644
--- a/WebContent/WEB-INF/etc/a3web.xml
+++ b/WebContent/WEB-INF/etc/a3web.xml
@@ -29,6 +29,8 @@
d:/tmp/als/Upload
+
+ d:/tmp/InterFace
fileTemplate
@@ -89,7 +91,7 @@
- ee450692cbd24e8bacb27b6f46b4d752
+ a6b83424b55410c36415178002f8415e
http://api.che300.com/service/getCarBrandList
http://api.che300.com/service/getCarSeriesList
diff --git a/WebContent/WEB-INF/etc/jbo/jbo_customer.xml b/WebContent/WEB-INF/etc/jbo/jbo_customer.xml
index e7522548b..4208e37b2 100644
--- a/WebContent/WEB-INF/etc/jbo/jbo_customer.xml
+++ b/WebContent/WEB-INF/etc/jbo/jbo_customer.xml
@@ -1286,6 +1286,7 @@
+
@@ -1535,6 +1536,7 @@
+
diff --git a/WebContent/WEB-INF/etc/jbo/jbo_lease.xml b/WebContent/WEB-INF/etc/jbo/jbo_lease.xml
index 7200b3005..dec386ac3 100644
--- a/WebContent/WEB-INF/etc/jbo/jbo_lease.xml
+++ b/WebContent/WEB-INF/etc/jbo/jbo_lease.xml
@@ -3678,5 +3678,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/config/applicationContext.xml b/config/applicationContext.xml
index 9d294a4f4..4ba1f992f 100644
--- a/config/applicationContext.xml
+++ b/config/applicationContext.xml
@@ -65,6 +65,19 @@ xmlns:p="http://www.springframework.org/schema/p"
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/config/second_handCar.properties b/config/second_handCar.properties
new file mode 100644
index 000000000..cdd337910
--- /dev/null
+++ b/config/second_handCar.properties
@@ -0,0 +1,14 @@
+#che300 prefix
+com.tenwa.zhanglei.prefix=testapi
+
+#che300 token
+#test environment
+com.tenwa.zhanglei.token=a6b83424b55410c36415178002f8415e
+#formal environment
+#com.tenwa.zhanglei.token=0685c8275534d8d391cdaa5a5cf48c73
+
+#che300 operationType
+com.tenwa.zhanglei.oper=exportModel
+
+#che300 initiallversion
+com.tenwa.zhanglei.version=3.4.548
\ No newline at end of file
diff --git a/src/com/amarsoft/app/awe/config/InitSecondHandCarConfig.java b/src/com/amarsoft/app/awe/config/InitSecondHandCarConfig.java
new file mode 100644
index 000000000..6950e4d3d
--- /dev/null
+++ b/src/com/amarsoft/app/awe/config/InitSecondHandCarConfig.java
@@ -0,0 +1,31 @@
+package com.amarsoft.app.awe.config;
+
+import javax.servlet.http.HttpServlet;
+import org.springframework.web.context.ContextLoader;
+import org.springframework.web.context.WebApplicationContext;
+
+/**
+ * @author 张磊
+ * @date 2018年6月14日
+ */
+public class InitSecondHandCarConfig extends HttpServlet {
+
+ private static final long serialVersionUID = 1L;
+
+ public static final String PREFIX;
+
+ public static final String TOKEN;
+
+ public static final String OPER;
+
+ public static final String VERSION;
+
+ static {
+ WebApplicationContext wac = ContextLoader.getCurrentWebApplicationContext();
+ SecondHandCarProperties secondHandCarProperties = wac.getBean("secondHandCarConfig",SecondHandCarProperties.class);
+ TOKEN = secondHandCarProperties.getToken();
+ OPER = secondHandCarProperties.getOper();
+ PREFIX = secondHandCarProperties.getPrefix();
+ VERSION = secondHandCarProperties.getVersion();
+ }
+}
diff --git a/src/com/amarsoft/app/awe/config/SecondHandCarProperties.java b/src/com/amarsoft/app/awe/config/SecondHandCarProperties.java
new file mode 100644
index 000000000..3b42300a6
--- /dev/null
+++ b/src/com/amarsoft/app/awe/config/SecondHandCarProperties.java
@@ -0,0 +1,42 @@
+package com.amarsoft.app.awe.config;
+/**
+ * 二手车配置文件类
+ * @author 张磊
+ * @date 2018年6月14日
+ */
+public class SecondHandCarProperties {
+
+ private String prefix;
+
+ private String token;
+
+ private String oper;
+
+ private String version;
+
+ public String getPrefix() {
+ return prefix;
+ }
+ public void setPrefix(String prefix) {
+ this.prefix = prefix;
+ }
+ public String getToken() {
+ return token;
+ }
+ public void setToken(String token) {
+ this.token = token;
+ }
+ public String getOper() {
+ return oper;
+ }
+ public void setOper(String oper) {
+ this.oper = oper;
+ }
+ public String getVersion() {
+ return version;
+ }
+ public void setVersion(String version) {
+ this.version = version;
+ }
+
+}
diff --git a/src_tenwa/com/tenwa/apzl/saveunioncar/saveUnionCarUtil.java b/src_tenwa/com/tenwa/apzl/saveunioncar/saveUnionCarUtil.java
index 1fe991c84..f1f0bc286 100644
--- a/src_tenwa/com/tenwa/apzl/saveunioncar/saveUnionCarUtil.java
+++ b/src_tenwa/com/tenwa/apzl/saveunioncar/saveUnionCarUtil.java
@@ -132,25 +132,25 @@ public String getCarBrandId() {
String updateUserID = params[0];
String updateOrgId = params[1];
String updateTime = params[2];
- String distributorId = params[3];
- String productid=params[4];
+ String typeno = params[3];
+ //String productid=params[4];
int lle=0;
- BizObjectManager Lmcheck = JBOFactory.getBizObjectManager(LM_DISTRIBUTOR_TO_PRODUCT.CLASS_NAME,tx);
- BizObject obcheck=Lmcheck.createQuery("DISTRIBUTOR_ID=:DISTRIBUTOR_ID and PRODUCT_ID=:PRODUCT_ID")
- .setParameter("DISTRIBUTOR_ID", distributorId).setParameter("PRODUCT_ID",productid).getSingleResult(false);
- if(obcheck!=null){
- return "error";
- }
int i;
try{
- for(i=4;i brandList = JSON.parseArray(JSON.toJSONString(dataObject.get("brand")), HashMap.class);
@@ -47,146 +66,146 @@ public class QueryVehicleModeListAction implements Job{
List versionList = JSON.parseArray(JSON.toJSONString(dataObject.get("version")), HashMap.class);
@SuppressWarnings("unchecked")
Map map = versionList.get(0);
- for(int i=0;i