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..673b40444
--- /dev/null
+++ b/WebContent/Tenwa/Apzl/PortalToCarType/LmDistributorToproductList.jsp
@@ -0,0 +1,67 @@
+<%@ 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 distributorId = CurPage.getParameter("DISTRIBUTOR_ID");
+ dwTemp.Style="1"; //--ÉèÖÃΪGrid·ç¸ñ--
+ dwTemp.ReadOnly = "1"; //Ö»¶Áģʽ
+ dwTemp.setPageSize(10);
+ dwTemp.genHTMLObjectWindow(distributorId);
+ //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..7c8c55f43
--- /dev/null
+++ b/WebContent/Tenwa/Apzl/PortalToCarType/LmProductDistributorCar.jsp
@@ -0,0 +1,20 @@
+<%@ page contentType="text/html; charset=GBK"%><%@
+ include file="/IncludeBegin.jsp"%><%
+/*
+ Ò³ÃæËµÃ÷: ʾÀýÉÏÏÂÁª¶¯¿ò¼ÜÒ³Ãæ
+ */
+ String distributorId = CurPage.getParameter("distributorId");
+%><%@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..30d045714
--- /dev/null
+++ b/WebContent/Tenwa/Apzl/PortalToCarType/LmProductDistributorList.jsp
@@ -0,0 +1,40 @@
+<%@ 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_LIST");
+ ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
+ dwTemp.Style="1"; //--ÉèÖÃΪGrid·ç¸ñ--
+ dwTemp.ReadOnly = "1"; //Ö»¶Áģʽ
+ dwTemp.setPageSize(10);
+ dwTemp.genHTMLObjectWindow("");
+
+ //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",""},
+ };
+%><%@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/LegalPersonApplicationInfo.jsp b/WebContent/Tenwa/Customer/Lessee/Person/LegalPersonApplicationInfo.jsp
index bdabd6ae9..5b3862c24 100644
--- a/WebContent/Tenwa/Customer/Lessee/Person/LegalPersonApplicationInfo.jsp
+++ b/WebContent/Tenwa/Customer/Lessee/Person/LegalPersonApplicationInfo.jsp
@@ -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)","","","",""},
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/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/Comm/LBEquipment_Car/LBEquipmentList.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBEquipment_Car/LBEquipmentList.jsp
index 2a04bd36d..81821753d 100644
--- a/WebContent/Tenwa/Lease/Flow/Comm/LBEquipment_Car/LBEquipmentList.jsp
+++ b/WebContent/Tenwa/Lease/Flow/Comm/LBEquipment_Car/LBEquipmentList.jsp
@@ -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()","","","","",""}
};
}
%>
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/Tenwa/Lease/Flow/Project/BusinessApplication/BusinessProjectTempInfo.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/BusinessProjectTempInfo.jsp
index 08ef08cad..2b3525e4b 100644
--- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/BusinessProjectTempInfo.jsp
+++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/BusinessProjectTempInfo.jsp
@@ -28,7 +28,7 @@
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
//×âÁÞÐÎʽsetÖ»¶Á
if((null!=sPhaseNo&&sPhaseNo.equals("0010")) && ("BusinessApplyFlow".equals(FlowNo) ||"BusinessChangeFlow".equals(FlowNo))){
- doTemp.setReadOnly("LEAS_FORM", false);
+ doTemp.setReadOnly("LEAS_FORM", true);
doTemp.setReadOnly("PROJECT_SOURCE", false);
}
diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp
index 9e6e7a499..74280d0f0 100644
--- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp
+++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp
@@ -88,6 +88,7 @@
var certtype =getItemValue(0,getRow(),"certtype");
var certid =getItemValue(0,getRow(),"certid");
+
if(certtype==""){
alert("ÇëÑ¡ÔñÖ¤¼þÀàÐÍ");
@@ -124,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;
+ 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_" )
{
@@ -132,7 +133,7 @@
}
else
{
- parent.AsDialog.ClosePage(sReturnInfo+"@"+customerType+"@"+carAttributes+"@"+leasehold+"@"+carSystem+"@"+custname+"@"+certtype);
+ parent.AsDialog.ClosePage(sReturnInfo+"@"+customerType+"@"+carAttributes+"@"+leasehold+"@"+carSystem+"@"+custname+"@"+certtype+"@"+certid+"@"+productModel+"@"+carSeries);
}
}
@@ -224,7 +225,7 @@
}
}
- <%/*~[Describe=Ñ¡Ôñ²úÆ·ÀàÐÍ;]~*/%>
+ <%/*~[Describe=Ñ¡Ôñ²úÆ·;]~*/%>
function selectBusinessType()
{
@@ -243,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){
@@ -256,7 +257,7 @@
// alert(sReturn);
setItemValue(0,0,"productId",sReturn[0]);
setItemValue(0,0,"productName",sReturn[1]);
- },"ÇëÑ¡Ôñ²úÆ·ÀàÐÍ",'');
+ },"ÇëÑ¡Ôñ²úÆ·",'');
}
}
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..e7522548b 100644
--- a/WebContent/WEB-INF/etc/jbo/jbo_customer.xml
+++ b/WebContent/WEB-INF/etc/jbo/jbo_customer.xml
@@ -2324,5 +2324,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/WebContent/WEB-INF/etc/jbo/jbo_lease.xml b/WebContent/WEB-INF/etc/jbo/jbo_lease.xml
index 2c7182932..7200b3005 100644
--- a/WebContent/WEB-INF/etc/jbo/jbo_lease.xml
+++ b/WebContent/WEB-INF/etc/jbo/jbo_lease.xml
@@ -1497,6 +1497,11 @@
+
+
+
+
+
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():"";
+ }
+
+ //»ñȡij¸öÖ§¸¶¶ÔÏóµÄºÏͬÊýÁ¿
+ 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";
+ }
+ //»ñµÃij¸öÖ§¸¶¶ÔÏóµÄ¸¶¿î×ܶî
+ 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