diff --git a/WebContent/Frame/page/jspf/ui/widget/tabstrip.jspf b/WebContent/Frame/page/jspf/ui/widget/tabstrip.jspf
index 3b7999cd6..801bee4e7 100644
--- a/WebContent/Frame/page/jspf/ui/widget/tabstrip.jspf
+++ b/WebContent/Frame/page/jspf/ui/widget/tabstrip.jspf
@@ -24,7 +24,7 @@ var tabCompent = new TabStrip("T01", "
if(datas[i][0] != "true") continue;
nums.push(i);
- tabCompent.addDataItem(self.name+i,'', datas[i][2], datas[i][3]=="false"?false:true, datas[i][4]=="true"?true:false, datas[i][5]);
+ tabCompent.addDataItem(self.name+i,datas[i][1], datas[i][2], datas[i][3]=="false"?false:true, datas[i][4]=="true"?true:false, datas[i][5]);
}
if(nums.indexOf(first) < 0) first = nums[0];
tabCompent.setSelectedItem(self.name+first);
@@ -35,7 +35,7 @@ var tabCompent = new TabStrip("T01", "
$(window).resize(function(){
if(bts) $("#window1").height($("body").height() - $(bts).height());
if(tabCompent._view=="tab") $(".tabs_content").height($("#window1").height()-$(".tabs_button").height()-7);
- $(".handle").hide();
+ //$(".handle").hide();
}).resize();
})(<%=CurPage.getAttribute("TabStrip")%>, <%=_first%>);
diff --git a/WebContent/Tenwa/Apzl/PortalToCarType/LmDistributorToproductList.jsp b/WebContent/Tenwa/Apzl/PortalToCarType/LmDistributorToproductList.jsp
new file mode 100644
index 000000000..98127eee0
--- /dev/null
+++ b/WebContent/Tenwa/Apzl/PortalToCarType/LmDistributorToproductList.jsp
@@ -0,0 +1,65 @@
+<%@ page contentType="text/html; charset=GBK"%>
+<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
+ /*
+ Author: undefined 2018-06-06
+ Content:
+ History Log:
+ */
+ ASObjectModel doTemp = new ASObjectModel("LM_DISTRIBUTOR_TO_PRODUCT");
+ ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
+ String typeno = CurPage.getParameter("TYPENO");
+ dwTemp.Style="1"; //--设置为Grid风格--
+ dwTemp.ReadOnly = "1"; //只读模式
+ dwTemp.setPageSize(10);
+ dwTemp.genHTMLObjectWindow(typeno);
+ //0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
+ String sButtons[][] = {
+ {"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
+ {"false","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""},
+ {"true","","Button","删除","删除","asDelete()","","","","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/Apzl/PortalToCarType/LmProductDistributorCar.jsp b/WebContent/Tenwa/Apzl/PortalToCarType/LmProductDistributorCar.jsp
new file mode 100644
index 000000000..fc6c3a1da
--- /dev/null
+++ b/WebContent/Tenwa/Apzl/PortalToCarType/LmProductDistributorCar.jsp
@@ -0,0 +1,20 @@
+<%@ 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
new file mode 100644
index 000000000..d156f3d2e
--- /dev/null
+++ b/WebContent/Tenwa/Apzl/PortalToCarType/LmProductDistributorList.jsp
@@ -0,0 +1,59 @@
+<%@ page contentType="text/html; charset=GBK"%>
+<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
+ /*
+ Author: undefined 2018-06-06
+ Content:
+ History Log:
+ */
+ 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(TYPENO);
+
+ //0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
+ String sButtons[][] = {
+ //{"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/Gps/GpsRegister/GpsRegisterList.jsp b/WebContent/Tenwa/Gps/GpsRegister/GpsRegisterList.jsp
index 222183e77..362812f13 100644
--- a/WebContent/Tenwa/Gps/GpsRegister/GpsRegisterList.jsp
+++ b/WebContent/Tenwa/Gps/GpsRegister/GpsRegisterList.jsp
@@ -40,7 +40,7 @@
function newRecord(){
var sUrl = "/Tenwa/Gps/GpsRegister/GpsRegister.jsp";
- AsDialog.PopView(sUrl,"","resizable=yes;dialogWidth=700px;dialogHeight=330px;center:yes;status:no;statusbar:no",function(){
+ AsDialog.PopView(sUrl,"","resizable=yes;dialogWidth=900px;dialogHeight=260px;center:yes;status:no;statusbar:no",function(){
reloadSelf();
},"新增GPS信息");
@@ -53,7 +53,7 @@
alert("请选择一条信息");
return;
}else{
- AsDialog.PopView(sUrl,"id="+id,"resizable=yes;dialogWidth=700px;dialogHeight=330px;center:yes;status:no;statusbar:no",function(){
+ AsDialog.PopView(sUrl,"id="+id,"resizable=yes;dialogWidth=900px;dialogHeight=260px;center:yes;status:no;statusbar:no",function(){
reloadSelf();
},"修改GPS信息");
}
@@ -110,6 +110,19 @@
if(!frames["downloadTemplate"]) $("").appendTo("body");
window.open(sWebRootPath+"/servlet/view/docDownloadServlet?CompClientID=<%=sCompClientID%>&sqlString=save@"+id, "downloadTemplate");
}
-
+
+
+ function afterSearch(){
+ for(var i=0;i'+gps+'';
+ }
+ };
+ }
+ /*       */
+
<%@ include file="/Frame/resources/include/include_end.jspf"%>
\ No newline at end of file
diff --git a/WebContent/Tenwa/Lease/Flow/CollectionAudit/LcCustomerBankVertifyList.jsp b/WebContent/Tenwa/Lease/Flow/CollectionAudit/LcCustomerBankVertifyList.jsp
index 82dbf9f46..879921862 100644
--- a/WebContent/Tenwa/Lease/Flow/CollectionAudit/LcCustomerBankVertifyList.jsp
+++ b/WebContent/Tenwa/Lease/Flow/CollectionAudit/LcCustomerBankVertifyList.jsp
@@ -17,8 +17,8 @@
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
String sButtons[][] = {
- {"true","All","Button","验证银行卡信息","验证银行卡信息","verifyBankInfo()","","","","btn_icon_add",""},
- {"true","All","Button","编辑","编辑","viewAndEdit()","","","","btn_icon_add",""},
+ {"true","All","Button","验证银行卡信息","验证银行卡信息","verifyBankInfo()","","","","btn_icon_add",""}
+ //{"true","All","Button","编辑","编辑","viewAndEdit()","","","","btn_icon_add",""},
};
%><%@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/Lease/Flow/Comm/LBContractPersonBaseInfo/LBContractPersonBaseInfo.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBContractPersonBaseInfo/LBContractPersonBaseInfo.jsp
index f036e4d6b..0876ca96b 100644
--- a/WebContent/Tenwa/Lease/Flow/Comm/LBContractPersonBaseInfo/LBContractPersonBaseInfo.jsp
+++ b/WebContent/Tenwa/Lease/Flow/Comm/LBContractPersonBaseInfo/LBContractPersonBaseInfo.jsp
@@ -57,8 +57,8 @@
$("#div_1390").find("[style='display:inline-block;width:6px;']").css("width","100");
/* 右侧 样式微调*/
$("#A_div_900").find("[style='display:inline-block;width:6px;']").css("width","86");
- $("#div_930").find("[style='display:inline-block;width:6px;']").css("width","62");
-
+ $("#div_930").find("[style='display:inline-block;width:6px;']").css("width","86");
+
function saveRend(){
//校验业务合同号唯一性
/* var sRetu = checkContractNumberOnly();
@@ -67,7 +67,8 @@
alert("业务合同号重复,请重新输入!");
return;
} */
- as_save(0);
+ frame_list.window.saveRecord("","");
+// as_save(0);
}
<%-- function checkContractNumberOnly(){
diff --git a/WebContent/Tenwa/Lease/Flow/Fund/ActualPayment/ActualPaymentTempListBySubtotal.jsp b/WebContent/Tenwa/Lease/Flow/Fund/ActualPayment/ActualPaymentTempListBySubtotal.jsp
new file mode 100644
index 000000000..12e2e24f4
--- /dev/null
+++ b/WebContent/Tenwa/Lease/Flow/Fund/ActualPayment/ActualPaymentTempListBySubtotal.jsp
@@ -0,0 +1,171 @@
+<%@ page contentType="text/html; charset=GBK"%>
+<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
+ /*
+ Author: undefined 2017-06-06
+ Content:
+ History Log:
+ */
+ String phaseNo = CurPage.getParameter("PhaseNo");
+ String rightType = CurComp.getParameter("RightType");
+ String flowunid = CurPage.getParameter("FlowUnid");
+ String ishistory = CurPage.getParameter("IsHistory");
+ ASObjectModel doTemp = new ASObjectModel("ActualPaymentTempListBySubtotal");
+ if(null!=ishistory&&ishistory.equals("true")){
+ doTemp.setDataQueryClass("com.tenwa.flow.flowHistory.FlowDataListHistory");
+ }
+ ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
+ dwTemp.Style="1"; //--设置为Grid风格--
+ dwTemp.MultiSelect = true;
+ dwTemp.ReadOnly = "0";
+ dwTemp.ShowSummary = "1";
+ if("0030".equals(phaseNo)){
+ rightType = "ReadOnly";
+ dwTemp.ReadOnly = "1";
+ }
+ if("ReadOnly".equals(rightType)){
+ dwTemp.MultiSelect = false;
+ }
+ dwTemp.setPageSize(10);
+ ASDataObject ado = dwTemp.getDataObject();
+ ado.setLockCount(4);
+ ado.setReadOnly("PAYMENT_NUMBER", true);
+ ado.setReadOnly("PROJECT_NAME", true);
+ ado.setReadOnly("PLAN_ID", true);
+ ado.setReadOnly("FEE_TYPE", true);
+ ado.setReadOnly("SETTLE_METHOD", true);
+ ado.setReadOnly("PLAN_DATE", true);
+ ado.setReadOnly("ACCOUNT", true);
+ ado.setReadOnly("ACC_NUMBER", true);
+ ado.setHtmlEvent("FACT_MONEY", "onchange", "checkEquipAmtMoney");
+ ado.setHtmlEvent("FEE_ADJUST", "onchange", "checkEquipAmtMoney");
+ ado.setHtmlEvent("MEMO", "onmouseover", "showMemo");
+ ado.setHtmlEvent("MEMO", "onmouseout", "hideMemo");
+ ado.setHtmlEvent("MEMO", "onkeyup", "synchMemo");
+ dwTemp.genHTMLObjectWindow(flowunid);
+
+ //0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
+ String[][] sButtons = null;
+ if("ReadOnly".equals(rightType)){
+ sButtons = new String[][]{
+ };
+ }else{
+ sButtons = new String[][]{
+ {"true","","Button","保存","保存","as_save(0,'setColRequired()')","","","","btn_icon_save",""},
+ // {"true","","Button","批量修改","批量修改","batchModify()","","","","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/Lease/Flow/Fund/FundPayment/VILCFundEquipAMTList.jsp b/WebContent/Tenwa/Lease/Flow/Fund/FundPayment/VILCFundEquipAMTList.jsp
index 86d8db8b6..d7bd64958 100644
--- a/WebContent/Tenwa/Lease/Flow/Fund/FundPayment/VILCFundEquipAMTList.jsp
+++ b/WebContent/Tenwa/Lease/Flow/Fund/FundPayment/VILCFundEquipAMTList.jsp
@@ -31,7 +31,7 @@
};
}else{
sButtons = new String[][]{
- {"true","","Button","生成本次付款","生成本次付款","openFundPlanList()","","","","btn_icon_add",""}
+ {"true","","Button","申请放款","申请放款","openFundPlanList()","","","","btn_icon_add",""}
};
}
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
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/app/component/component-config.xml b/WebContent/WEB-INF/etc/app/component/component-config.xml
index 84758aeb1..57277da66 100644
--- a/WebContent/WEB-INF/etc/app/component/component-config.xml
+++ b/WebContent/WEB-INF/etc/app/component/component-config.xml
@@ -5,7 +5,7 @@
-
+
@@ -1069,7 +1069,7 @@
-
+
@@ -1079,7 +1079,7 @@
-
+
@@ -1101,4 +1101,4 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/WebContent/WEB-INF/etc/app/component/component-parameter-config.xml b/WebContent/WEB-INF/etc/app/component/component-parameter-config.xml
index 68b86e474..8b5f8aecc 100644
--- a/WebContent/WEB-INF/etc/app/component/component-parameter-config.xml
+++ b/WebContent/WEB-INF/etc/app/component/component-parameter-config.xml
@@ -19,7 +19,7 @@
-
+
@@ -156,7 +156,7 @@
-
+
@@ -167,7 +167,7 @@
-
+
@@ -178,13 +178,13 @@
-
+
-
+
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/WebContent/WEB-INF/etc/app/component/componenttype-config.xml b/WebContent/WEB-INF/etc/app/component/componenttype-config.xml
index 1e1ebdc06..f26963aa5 100644
--- a/WebContent/WEB-INF/etc/app/component/componenttype-config.xml
+++ b/WebContent/WEB-INF/etc/app/component/componenttype-config.xml
@@ -1,62 +1,61 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/WebContent/WEB-INF/etc/cache.xml b/WebContent/WEB-INF/etc/cache.xml
index 9bf3177b2..10899c9d2 100644
--- a/WebContent/WEB-INF/etc/cache.xml
+++ b/WebContent/WEB-INF/etc/cache.xml
@@ -1,20 +1,5 @@
-
-
-
-
-
-
-
-
-
@@ -30,14 +15,36 @@
loadClass="com.amarsoft.dict.als.cache.loader.AWEDataWindowLoader"
size="50" expireTime="1200" />
-
+
+
+
+
+
-
+
+
+
+
+
+
\ No newline at end of file
diff --git a/WebContent/WEB-INF/etc/cache_app.xml b/WebContent/WEB-INF/etc/cache_app.xml
new file mode 100644
index 000000000..10899c9d2
--- /dev/null
+++ b/WebContent/WEB-INF/etc/cache_app.xml
@@ -0,0 +1,50 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/WebContent/WEB-INF/etc/cache_develop.xml b/WebContent/WEB-INF/etc/cache_develop.xml
new file mode 100644
index 000000000..10899c9d2
--- /dev/null
+++ b/WebContent/WEB-INF/etc/cache_develop.xml
@@ -0,0 +1,50 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/WebContent/WEB-INF/etc/cache_web.xml b/WebContent/WEB-INF/etc/cache_web.xml
new file mode 100644
index 000000000..215b63aa7
--- /dev/null
+++ b/WebContent/WEB-INF/etc/cache_web.xml
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/WebContent/WEB-INF/etc/jbo/jbo_customer.xml b/WebContent/WEB-INF/etc/jbo/jbo_customer.xml
index 6e3f3c9fd..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 @@
+
@@ -2324,5 +2326,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/WebContent/WEB-INF/etc/jbo/jbo_lease.xml b/WebContent/WEB-INF/etc/jbo/jbo_lease.xml
index 2c7182932..dec386ac3 100644
--- a/WebContent/WEB-INF/etc/jbo/jbo_lease.xml
+++ b/WebContent/WEB-INF/etc/jbo/jbo_lease.xml
@@ -1497,6 +1497,11 @@
+
+
+
+
+
@@ -3673,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/com/amarsoft/dict/als/manage/ColRelativeInfo.java b/src/com/amarsoft/dict/als/manage/ColRelativeInfo.java
index 04d32d8ed..98c64d195 100644
--- a/src/com/amarsoft/dict/als/manage/ColRelativeInfo.java
+++ b/src/com/amarsoft/dict/als/manage/ColRelativeInfo.java
@@ -8,11 +8,12 @@ import jbo.app.tenwa.calc.LC_EBANK;
import jbo.app.tenwa.calc.LC_FUND_INCOME;
import jbo.app.tenwa.calc.LC_FUND_INCOME_TEMP;
import jbo.app.tenwa.calc.LC_FUND_PLAN;
+import jbo.app.tenwa.calc.LC_RENT_INCOME;
import jbo.app.tenwa.calc.LC_RENT_INCOME_TEMP;
import jbo.app.tenwa.calc.LC_RENT_PLAN;
import jbo.app.tenwa.calc.VI_LC_FUND_PLAN;
import jbo.app.tenwa.calc.VI_LC_RENT_PLAN;
-import jbo.app.tenwa.customer.CUSTOMER_INFO;
+import jbo.app.tenwa.customer.DISTRIBUTOR_ACCOUNT;
import jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO;
import jbo.com.tenwa.lease.comm.LB_UNION_LESSEE;
@@ -22,6 +23,35 @@ import com.amarsoft.are.jbo.JBOFactory;
public class ColRelativeInfo {
+ //根据合同ID获取经销商账号
+ public static String getAccNumberByContractID(String contractID) throws JBOException{
+ BizObject bo = JBOFactory.createBizObjectQuery(LB_CONTRACT_INFO.CLASS_NAME,"id=:contractID")
+ .setParameter("contractID", contractID).getSingleResult(false);
+ String distributorID = bo.getAttribute("distributor_id").getString();
+ BizObject bo2 = JBOFactory.createBizObjectQuery(DISTRIBUTOR_ACCOUNT.CLASS_NAME,"distributor_id=:distributorID")
+ .setParameter("distributorID", distributorID).getSingleResult(false);
+ return bo2 != null?bo2.getAttribute("acc_number").getString():"";
+ }
+
+ //根据客户ID获取客户名称
+ public static String getCustNameByCUSTID(String custID) throws JBOException{
+ BizObject bo = JBOFactory.createBizObjectQuery(LB_UNION_LESSEE.CLASS_NAME,"CUSTOMER_ID=:CUST_ID")
+ .setParameter("CUST_ID", custID).getSingleResult(false);
+ return bo != null?bo.getAttribute("customer_name").getString():"";
+ }
+
+ //获取某个支付对象的合同数量
+ public static String getCountByFactObject(String factObject,String flowunid) throws Exception{
+ BizObject bo = JBOFactory.createBizObjectQuery(LC_FUND_INCOME_TEMP.CLASS_NAME, "select count(contract_id) as v.countMoney from O where fact_object=:fact_object and flowunid=:flowunid group by fact_object")
+ .setParameter("fact_object", factObject).setParameter("flowunid", flowunid).getSingleResult(false);
+ return bo != null?bo.getAttribute("countMoney").getString():"0";
+ }
+ //获得某个支付对象的付款总额
+ public static String getTotalMoneyByFactObject(String factObject,String flowunid) throws Exception{
+ BizObject bo = JBOFactory.createBizObjectQuery(LC_FUND_INCOME_TEMP.CLASS_NAME, "select sum(fact_money) as v.sumMoney from O where fact_object=:fact_object and flowunid=:flowunid group by fact_object")
+ .setParameter("fact_object", factObject).setParameter("flowunid", flowunid).getSingleResult(false);
+ return bo != null?bo.getAttribute("sumMoney").getString():"0.00";
+ }
public static String getFundPlanMoney(String planID) throws Exception{
BizObject bo = JBOFactory.createBizObjectQuery(LC_FUND_PLAN.CLASS_NAME, "ID=:PLANID")
.setParameter("PLANID", planID).getSingleResult(false);
@@ -207,19 +237,4 @@ public class ColRelativeInfo {
}
return money.setScale(2).toString();
}
-
- public static String getCustNameByCUSTID(String CUST_ID) throws Exception {
- String custname="";
- if(!"".equals(CUST_ID)&&CUST_ID!=null){
- BizObject bo = JBOFactory.getBizObjectManager(CUSTOMER_INFO.CLASS_NAME)
- .createQuery("customerid=:customerid").setParameter("customerid", CUST_ID).getSingleResult(false);
- custname=bo!=null?bo.getAttribute("customername").getString():"";
- }
- return custname;
- }
-
- public static String getAccNumberByContractID(String CONTRACT_ID)throws Exception {
- return "";
-
- }
}
diff --git a/src_app_fresh/apx/com/amarsoft/als/base/awe/util/AweDoCommUtil.java b/src_app_fresh/apx/com/amarsoft/als/base/awe/util/AweDoCommUtil.java
index 142b40136..78e5c57ab 100644
--- a/src_app_fresh/apx/com/amarsoft/als/base/awe/util/AweDoCommUtil.java
+++ b/src_app_fresh/apx/com/amarsoft/als/base/awe/util/AweDoCommUtil.java
@@ -4,15 +4,15 @@ import java.util.HashMap;
import java.util.Map;
public class AweDoCommUtil {
- public static void main(String[] args) throws Exception {
+public static void main(String[] args) throws Exception {
- String str = "id=:id1 and (ida>=:id2 or idb<=:id3) and idc >: id4 (idd <: id5 and ide <>:id6)";
+ String str = "flowunid=:id1 and (ida>=:id2 or idb<=:id3) and idc >: id4 (idd <: id5 and ide <>:id6)";
System.out.println(str);
Map map = new HashMap();
- map.put("id", "1");
+ map.put("flowunid", "1");
map.put("ida", "2");
map.put("idb", "3");
map.put("idc", "4");
@@ -109,23 +109,24 @@ public class AweDoCommUtil {
where = where.replace(" AND ", " and ");
where = where.replace(" OR ", " or ");
String[] array = where.split("and");
- String[] array1 = null;
- String sKey = "";
- String newStr = "";
for (String str : array) {
if (str.contains(":")) {
- array1 = str.split(":");
String[] orArray = str.split("or");
if (orArray.length >= 2) {
+ // [ (O.INPUTORGID=:inputOrgId , O.INPUTORGID like :inputOrgId1)]
for (String orStr : orArray) {
-// if (array1.length != 2)
-// continue;
+ // O.contract_id = :contract_id
+ String[] array1 = orStr.split(":");
+ // O.contract_id = > 0
+ // contract_id> 1
+ if (array1.length != 2)
+ continue;
if (!array1[0].contains(".")) {
- sKey = array1[0].toLowerCase();
+ String sKey = array1[0].toLowerCase();
sKey = sKey.trim();
sKey = sKey.substring(0, sKey.length() - 1);
sKey = sKey.trim();
- newStr = array1[0] + "'"
+ String newStr = array1[0] + "'"
+ paramMap.get(sKey) + "' ";
sJboWhere = sJboWhere.replace(orStr, newStr);
continue;
@@ -133,42 +134,47 @@ public class AweDoCommUtil {
String[] array2 = array1[0].split("\\.");
if (array2.length < 2)
continue;
- sKey = array2[array2.length - 1].toLowerCase().trim();
-
+ String sKey = array2[1].toLowerCase();
+ // inputorgid like
if (sKey.contains("like") || sKey.contains("LIKE")) {
- newStr = array1[0] + "'" + paramMap.get(sKey.trim().replaceAll("like", "").trim()) + "' ".trim();
- } else if (sKey.contains(" in ") || sKey.contains(" IN ")) {
- newStr = array1[0] + "'" + paramMap.get(sKey.trim().replaceAll(" in ", "").trim()) + "' ".trim();
+ String newStr = array1[0] + "'" + paramMap.get(sKey.trim().replaceAll("like", "").trim()) + "' ";
+ String sStr = array1[1];
+ while (sStr.endsWith(")")) {
+ newStr += ")";
+ sStr = sStr.substring(0, sStr.length() - 1);
+ }
+ sJboWhere = sJboWhere.replace(orStr, newStr);
} else {
- sKey = sKey.substring(0, sKey.length() - 1).trim();
- newStr = array1[0] + "'"
- + paramMap.get(sKey) + "' ".trim();
-
+ sKey = sKey.trim();
+ sKey = sKey.substring(0, sKey.length() - 1);
+ sKey = sKey.trim();
+ String newStr = array1[0] + "'"
+ + paramMap.get(sKey) + "' ";
+ String sStr = array1[1];
+ while (sStr.endsWith(")")) {
+ newStr += ")";
+ sStr = sStr.substring(0, sStr.length() - 1);
+ }
+ sJboWhere = sJboWhere.replace(orStr, newStr);
}
- String sStr = orStr.trim();
- while (sStr.endsWith(")")) {
-// newStr += ")";
- sStr = sStr.substring(0, sStr.length()-1);
- }
- sJboWhere = sJboWhere.replace(sStr, newStr);
sJboWhere += " ";
}
- } else { // 没有 or
+ sJboWhere = sJboWhere.substring(0, sJboWhere.length() - 1);
+ } else {
+ // O.contract_id = :contract_id
+ String[] array1 = str.split(":");
+ // O.contract_id = > 0
+ // contract_id> 1
if (array1.length != 2)
continue;
- if (!array1[0].contains(".")) { // 没有 O. xx.
- sKey = array1[0].toLowerCase().trim();
- newStr = "";
- if (sKey.contains(" like ") || sKey.contains(" LIKE ")) { // flowUnid like : flowUnid
- newStr = array1[0] + "'" + paramMap.get(sKey.replaceAll(" like ", "").trim()) + "'".trim();
- } else if (sKey.contains(" in ") || sKey.contains(" IN ")) { // flowUnid in : flowUnid
- newStr = array1[0] + "'" + paramMap.get(sKey.replaceAll(" in ", "").trim()) + "'".trim();
- } else { // flowUnid = || > || < : flowUnid
- sKey = sKey.substring(0, sKey.length() - 1).trim();
- newStr = array1[0] + "'" + paramMap.get(sKey) + "' ".trim();
- }
-
- String sStr = array1[1].trim();
+ if (!array1[0].contains(".")) {
+ String sKey = array1[0].toLowerCase();
+ sKey = sKey.trim();
+ sKey = sKey.substring(0, sKey.length() - 1);
+ sKey = sKey.trim();
+ String newStr = array1[0] + "'"
+ + paramMap.get(sKey) + "' ";
+ String sStr = array1[1];
while (sStr.endsWith(")")) {
newStr += ")";
sStr = sStr.substring(0, sStr.length() - 1);
@@ -179,25 +185,19 @@ public class AweDoCommUtil {
String[] array2 = array1[0].split("\\.");
if (array2.length < 2)
continue;
- sKey = array2[array2.length - 1].toLowerCase().trim();
- newStr = "";
- if (sKey.contains(" like ") || sKey.contains(" LIKE ")) { // flowUnid like : flowUnid
- newStr = array1[0] + "'" + paramMap.get(sKey.replaceAll(" like ", "").trim()) + "'".trim();
- } else if (sKey.contains(" in ") || sKey.contains(" IN ")) { // flowUnid in : flowUnid
- newStr = array1[0] + "'" + paramMap.get(sKey.replaceAll(" in ", "").trim()) + "'".trim();
- } else { // flowUnid = || > || < : flowUnid
- sKey = sKey.substring(0, sKey.length() - 1).trim();
- newStr = array1[0] + "'" + paramMap.get(sKey) + "' ".trim();
+ String sKey = array2[1].toLowerCase();
+ sKey = sKey.trim();
+ sKey = sKey.substring(0, sKey.length() - 1);
+ sKey = sKey.trim();
+ String newStr = array1[0] + "'"
+ + paramMap.get(sKey.toLowerCase()) + "' ";
+ String sStr = array1[1];
+ while (sStr.endsWith(")")) {
+ newStr += ")";
+ sStr = sStr.substring(0, sStr.length() - 1);
}
+ sJboWhere = sJboWhere.replace(str, newStr);
}
- newStr = newStr.trim();
- String sStr = array1[1].trim();
- while (sStr.endsWith(")")) {
- newStr += ")";
- sStr = sStr.substring(0, sStr.length() - 1);
- }
- newStr = " " + newStr + " ";
- sJboWhere = sJboWhere.replace(str, newStr);
}
}
return sJboWhere;
diff --git a/src_app_fresh/apx/com/amarsoft/als/base/cache/instance/AppPrdCataCache.java b/src_app_fresh/apx/com/amarsoft/als/base/cache/instance/AppPrdCataCache.java
new file mode 100644
index 000000000..0c7ad5d15
--- /dev/null
+++ b/src_app_fresh/apx/com/amarsoft/als/base/cache/instance/AppPrdCataCache.java
@@ -0,0 +1,96 @@
+package apx.com.amarsoft.als.base.cache.instance;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import jbo.app.PRD_NODEINFO_CATALOG_APP;
+
+import com.amarsoft.are.ARE;
+import com.amarsoft.are.jbo.BizObject;
+import com.amarsoft.are.jbo.BizObjectManager;
+import com.amarsoft.are.jbo.BizObjectQuery;
+import com.amarsoft.are.jbo.JBOException;
+import com.amarsoft.are.jbo.JBOFactory;
+import com.amarsoft.awe.util.Transaction;
+import com.amarsoft.dict.als.cache.AbstractCache;
+
+public class AppPrdCataCache extends AbstractCache {
+ private static Map appPrdCataPool = null;
+ private static AppPrdCataCache instance = null;
+
+ public static synchronized AppPrdCataCache getInstance() {
+ if (instance == null) {
+ instance = new AppPrdCataCache();
+ }
+ return instance;
+ }
+
+ public static Map getAppPrdCataPool() {
+ return appPrdCataPool;
+ }
+
+ public synchronized Map getCacheMapPool() {
+ if (appPrdCataPool == null)
+ appPrdCataPool = new HashMap();
+ return appPrdCataPool;
+ }
+
+ @Override
+ public synchronized void clear() throws Exception {
+ getCacheMapPool().clear();
+ appPrdCataPool = null;
+ }
+
+ @Override
+ public synchronized boolean load(Transaction arg0) throws Exception {
+ ARE.getLog().info(
+ "[CACHE] AppPrdCataCache bulid Begin .................");
+ initPrdCachePool();
+ ARE.getLog().info(
+ "[CACHE] AppPrdCataCache bulid End ...................");
+ return true;
+ }
+
+ @SuppressWarnings("unchecked")
+ private synchronized void initPrdCachePool() throws JBOException {
+ appPrdCataPool = new HashMap();
+
+ String sSql = "SELECT * FROM O ORDER BY FLOWNO, SORTNO ASC";
+ BizObjectManager bom = JBOFactory
+ .getBizObjectManager(PRD_NODEINFO_CATALOG_APP.CLASS_NAME);
+ BizObjectQuery boq = bom.createQuery(sSql);
+ List bos = boq.getResultList(false);
+ List