diff --git a/WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp b/WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp
index 63b3587e0..5b53386b1 100644
--- a/WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp
+++ b/WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp
@@ -134,19 +134,16 @@
v.add(p);
/*ÉèÖÃÒ³ÃæÊôÐÔ*/
if(CurUser.hasRole("401")){
- doTemp.setVisible("RENT_RATIO",false);
doTemp.setVisible("CAUTION_MONEY_METHOD",false);
- }else{
- doTemp.setVisible("RENT_RATIO",false);
}
-
if(CurUser.hasRole("401")){
doTemp.setVisible("DISCOUNT", false);
// doTemp.setColumnAttribute("DISCOUNT","colvisible","0");
}
if(CurUser.hasRole("800R00000013")||CurUser.hasRole("800R00000014")||CurUser.hasRole("800R00000015")){
doTemp.setVisible("YEAR_RATE", true);
+ doTemp.setVisible("RENT_RATIO",true);
}
ASObjectWindowCalc dwTemp = new ASObjectWindowCalc(CurPage, doTemp,request);
@@ -154,7 +151,7 @@
dwTemp.Style = "2";//freeform
if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.equals("true"))){
- dwTemp.ReadOnly = "-2";//Ö»¶Áģʽ
+ dwTemp.ReadOnly = "1";//Ö»¶Áģʽ
isShowButton=false;
}else{
isShowButton=true;
diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBContractEnd/LBContractDevolutionInfo.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBContractEnd/LBContractDevolutionInfo.jsp
index 0479bd7e2..53e1541d7 100644
--- a/WebContent/Tenwa/Lease/Flow/Comm/LBContractEnd/LBContractDevolutionInfo.jsp
+++ b/WebContent/Tenwa/Lease/Flow/Comm/LBContractEnd/LBContractDevolutionInfo.jsp
@@ -109,7 +109,6 @@
/*~[Describe=±£´æ;InputParam=ÎÞ;OutPutParam=ÎÞ;]~*/
function saveRecord()
{
- debugger;
var param={};
var tempParam={};
var sparam="";
diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LCContractTerminate/LBContractTerminateInfo.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LCContractTerminate/LBContractTerminateInfo.jsp
index 7a6ebe7d7..b60dd8b63 100644
--- a/WebContent/Tenwa/Lease/Flow/Comm/LCContractTerminate/LBContractTerminateInfo.jsp
+++ b/WebContent/Tenwa/Lease/Flow/Comm/LCContractTerminate/LBContractTerminateInfo.jsp
@@ -110,7 +110,6 @@
/*~[Describe=±£´æ;InputParam=ÎÞ;OutPutParam=ÎÞ;]~*/
function saveRecord()
{
- debugger;
var param={};
var tempParam={};
var sparam="";
diff --git a/WebContent/Tenwa/Lease/Flow/RentNotify/RentNotifyList.jsp b/WebContent/Tenwa/Lease/Flow/RentNotify/RentNotifyList.jsp
index e7835ca2a..694af494e 100644
--- a/WebContent/Tenwa/Lease/Flow/RentNotify/RentNotifyList.jsp
+++ b/WebContent/Tenwa/Lease/Flow/RentNotify/RentNotifyList.jsp
@@ -13,12 +13,17 @@
*/
String userId = CurUser.getUserID();
+ String orgId =CurUser.getOrgID();
+ System.out.print(orgId);
String falg = "true";
if(userId.indexOf("8006")>-1){
falg = "false";
}
String compClientID = request.getParameter("CompClientID");
ASObjectModel doTemp = new ASObjectModel("RentNotify");
+ if(userId.indexOf("8006")>-1){
+ doTemp.appendJboWhere(" O.orgid="+CurUser.getOrgID()+"");
+ }
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--ÉèÖÃΪGrid·ç¸ñ--
dwTemp.ReadOnly = "1";
diff --git a/WebContent/WEB-INF/etc/app/component/component-config.xml b/WebContent/WEB-INF/etc/app/component/component-config.xml
index c8e360f21..fb13942f2 100644
--- a/WebContent/WEB-INF/etc/app/component/component-config.xml
+++ b/WebContent/WEB-INF/etc/app/component/component-config.xml
@@ -1079,7 +1079,7 @@
-
+
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 14701ab64..5589ae27a 100644
--- a/WebContent/WEB-INF/etc/app/component/component-parameter-config.xml
+++ b/WebContent/WEB-INF/etc/app/component/component-parameter-config.xml
@@ -196,4 +196,4 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/WebContent/WEB-INF/etc/jbo/jbo_calc.xml b/WebContent/WEB-INF/etc/jbo/jbo_calc.xml
index 20b4c9aab..0fe035083 100644
--- a/WebContent/WEB-INF/etc/jbo/jbo_calc.xml
+++ b/WebContent/WEB-INF/etc/jbo/jbo_calc.xml
@@ -3102,34 +3102,34 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/calc/com/tenwa/reckon/product/ProductCondition.java b/calc/com/tenwa/reckon/product/ProductCondition.java
index 6e83baa2d..ed4e35086 100644
--- a/calc/com/tenwa/reckon/product/ProductCondition.java
+++ b/calc/com/tenwa/reckon/product/ProductCondition.java
@@ -776,7 +776,7 @@ public class ProductCondition {
}
ProductBaseLoanTools.addAppList(appList, "SETTLE_METHOD", "colreadonly", "1");
ProductBaseLoanTools.addAppList(appList, "SETTLE_METHOD", "coleditsource", "jbo.sys.CODE_LIBRARY,itemno,itemname,codeno='settle_method' and itemno in ("+s+") order by sortno");
- ProductBaseLoanTools.addAppList(appList, "coldefaultvalue", "colreadonly", s.replaceAll("'", ""));
+ ProductBaseLoanTools.addAppList(appList, "SETTLE_METHOD", "coldefaultvalue", s.replaceAll("'", ""));
return "{"+sJson+"}";
}
diff --git a/src/com/tenwa/channelportal/action/ContractSignAction.java b/src/com/tenwa/channelportal/action/ContractSignAction.java
index 69cc2a0ce..5d9cdd23f 100644
--- a/src/com/tenwa/channelportal/action/ContractSignAction.java
+++ b/src/com/tenwa/channelportal/action/ContractSignAction.java
@@ -1384,9 +1384,15 @@ public void wordToPdfJar(JBOTransaction tx){
BizObjectManager customer = JBOFactory.getBizObjectManager(CUSTOMER_PERSON_TEMP.CLASS_NAME);
BizObject lults = lult.createQuery("flowunid=:flowUnid").setParameter("flowUnid", FlowUnid).getSingleResult(false);
BizObject cust = customer.createQuery("flowunid=:flowUnid and customerid=:customerid").setParameter("flowUnid", FlowUnid).setParameter("customerid", lults.getAttribute("customer_id").toString()).getSingleResult(false);
- String customername = cust.getAttribute("FULLNAME").toString();
- String telephone = cust.getAttribute("mobile").toString();
- String ids = cust.getAttribute("CUSTOMERID").toString();
+ String customername = null;
+ String telephone = null;
+ String ids =null;
+
+ if(cust!=null){
+ customername = cust.getAttribute("FULLNAME").toString();
+ telephone = cust.getAttribute("mobile").toString();
+ ids = cust.getAttribute("CUSTOMERID").toString();
+ }
BizObjectManager contBom = JBOFactory.getBizObjectManager(LB_DOC_CONTRACT_LIST.CLASS_NAME, tx);
BizObjectManager attrBom = JBOFactory.getBizObjectManager(LB_DOCATTRIBUTE.CLASS_NAME, tx);
diff --git a/src_app_fresh/apx/com/amarsoft/als/apzl/apply/business/doc/detail/service/impl/BusinessDocDetailServiceImpl.java b/src_app_fresh/apx/com/amarsoft/als/apzl/apply/business/doc/detail/service/impl/BusinessDocDetailServiceImpl.java
index fce58c1f9..7b5611b0b 100644
--- a/src_app_fresh/apx/com/amarsoft/als/apzl/apply/business/doc/detail/service/impl/BusinessDocDetailServiceImpl.java
+++ b/src_app_fresh/apx/com/amarsoft/als/apzl/apply/business/doc/detail/service/impl/BusinessDocDetailServiceImpl.java
@@ -14,6 +14,7 @@ import jbo.app.tenwa.doc.LB_DOCRELATIVE;
import jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT;
import net.sf.json.JSONObject;
import apx.com.amarsoft.als.apzl.apply.business.doc.detail.service.BusinessDocDetailService;
+import apx.com.amarsoft.als.apzl.apply.business.start.init.InitDocListTools;
import com.amarsoft.are.ARE;
import com.amarsoft.are.jbo.BizObject;
@@ -85,7 +86,31 @@ public class BusinessDocDetailServiceImpl implements BusinessDocDetailService {
if (StringX.isSpace(flowUnid)) { // »ñÈ¡ËùÓÐÅäÖÃdocName
return docDetail(ReturnMapUtil);
}
-
+ BizObjectManager fboM = JBOFactory
+ .getBizObjectManager(FLOW_BUSSINESS_OBJECT.CLASS_NAME);
+ BizObject fbo = fboM.createQuery("flow_unid=:flow_unid")
+ .setParameter("flow_unid", flowUnid).getSingleResult(false);
+ if (null == fbo) {
+ ReturnMapUtil.setReturnMap(null, RestfullConstant.baseProperty.get("fail").toString(), "δÕÒµ½Á÷³ÌʵÀý!");
+ return ReturnMapUtil.getReturnMap();
+ }
+ String carAttributes = "";
+ try {
+ String flowPara = fbo.getAttribute("FixedFlowParam") == null ? ""
+ : fbo.getAttribute("FixedFlowParam").toString();
+ JSONObject jo = JsonUtil.str2JSONObject(flowPara.trim());
+ carAttributes = jo.get("carAttributes") == null ? "" : jo
+ .getString("carAttributes");
+ } catch (Exception e) {
+ ARE.getLog().error(e);
+ ReturnMapUtil.setReturnMap(null, RestfullConstant.baseProperty.get("fail").toString(), "»ñÈ¡³µÁ¾ÊôÐÔÐÅϢʧ°Ü!");
+ return ReturnMapUtil.getReturnMap();
+ }
+ // ¼ÓÔØ¸½¼þ
+
+ // carAttributes
+ boolean flag = InitDocListTools.initDocList(flowUnid, fieldMap.get("userid").toString(), carAttributes);
+
BizObjectManager businessManage = JBOFactory
.getBizObjectManager(FLOW_BUSSINESS_OBJECT.CLASS_NAME);
BizObject business = businessManage.createQuery("flow_unid=:flow_unid")
diff --git a/src_app_fresh/apx/com/amarsoft/als/apzl/apply/business/loan/controller/LoanSimulationBasicInfoController.java b/src_app_fresh/apx/com/amarsoft/als/apzl/apply/business/loan/controller/LoanSimulationBasicInfoController.java
index 1bd1d5b23..81f21902b 100644
--- a/src_app_fresh/apx/com/amarsoft/als/apzl/apply/business/loan/controller/LoanSimulationBasicInfoController.java
+++ b/src_app_fresh/apx/com/amarsoft/als/apzl/apply/business/loan/controller/LoanSimulationBasicInfoController.java
@@ -53,6 +53,23 @@ public class LoanSimulationBasicInfoController {
}
}
+ @Path("/rent")
+ @POST
+ public Map rent(@Context HttpServletRequest request, @Context HttpServletResponse response,
+ @Context JBOTransaction tx, @Context Transaction sqlca) throws Exception {
+ ReturnMapUtil ReturnMapUtil = new ReturnMapUtil(tx, sqlca);
+ ARE.getLog().info(
+ "[CONTROLLER] LoanSimulationBasicInfo run .................");
+ ARE.getLog().info("[Path] /loan/simulation/basic/rent" + " run .................");
+
+ LoanSimulationBasicService service = new LoanSimulationBasicServiceImpl();
+ try {
+ return service.rent(request, response, tx, sqlca, ReturnMapUtil);
+ } catch (Exception e) {
+ return ReturnMapUtil.rollback(e);
+ }
+ }
+
@Path("/save")
@POST
public Map saveInfo(@Context HttpServletRequest request, @Context HttpServletResponse response,
diff --git a/src_app_fresh/apx/com/amarsoft/als/apzl/apply/business/loan/manage/LCRentPlanTempDoQueryManage.java b/src_app_fresh/apx/com/amarsoft/als/apzl/apply/business/loan/manage/LCRentPlanTempDoQueryManage.java
new file mode 100644
index 000000000..8235460f3
--- /dev/null
+++ b/src_app_fresh/apx/com/amarsoft/als/apzl/apply/business/loan/manage/LCRentPlanTempDoQueryManage.java
@@ -0,0 +1,46 @@
+package apx.com.amarsoft.als.apzl.apply.business.loan.manage;
+
+import java.util.Map;
+
+import javax.servlet.http.HttpServletRequest;
+
+import apx.com.amarsoft.als.base.awe.AbstractAweDoQueryManage;
+
+import com.amarsoft.are.jbo.JBOTransaction;
+import com.amarsoft.are.lang.StringX;
+import com.amarsoft.awe.util.Transaction;
+import com.base.util.ReturnMapUtil;
+
+public class LCRentPlanTempDoQueryManage extends AbstractAweDoQueryManage {
+ private String sAddWhere;
+ private String dono;
+ private Map fieldMap;
+
+ public void setFieldMap(Map fieldMap) {
+ this.fieldMap = fieldMap;
+ }
+
+ public void setDono(String dono) {
+ this.dono = dono;
+ }
+
+ public void getGroupId() {
+ sGroupId = this.dono;
+ }
+
+ public void getOtherWhere() {
+ super.sOtherWhere = StringX.isSpace(sAddWhere) ? ""
+ : this.sAddWhere;
+ }
+
+ public void setsAddWhere(String sAddWhere) {
+ this.sAddWhere = sAddWhere;
+ }
+
+ public Map queryDefaultDo(HttpServletRequest request,
+ Transaction sqlca, JBOTransaction tx, ReturnMapUtil ReturnMapUtil)
+ throws Exception {
+ setParamMap(fieldMap);
+ return getData(request, sqlca, tx, ReturnMapUtil);
+ }
+}
\ No newline at end of file
diff --git a/src_app_fresh/apx/com/amarsoft/als/apzl/apply/business/loan/product/ProductBaseLoanTools.java b/src_app_fresh/apx/com/amarsoft/als/apzl/apply/business/loan/product/ProductBaseLoanTools.java
index 1054fe517..cc9791940 100644
--- a/src_app_fresh/apx/com/amarsoft/als/apzl/apply/business/loan/product/ProductBaseLoanTools.java
+++ b/src_app_fresh/apx/com/amarsoft/als/apzl/apply/business/loan/product/ProductBaseLoanTools.java
@@ -6,6 +6,7 @@ import java.util.List;
import java.util.Map;
import java.util.Vector;
+import jbo.prd.BUSINESS_TYPE;
import jbo.sys.CODE_LIBRARY;
import apx.com.amarsoft.als.base.cache.instance.AppAweDoCache;
@@ -28,11 +29,6 @@ public class ProductBaseLoanTools {
@SuppressWarnings("unchecked")
public static Map checkSource(Map app,
String colName, String operation, Object value) {
-
- if ("finatype01".equals(value)) {
- ARE.getLog().info("finatype01");
- }
-
if (operation.contains("defaultValue")) {
app.put("coldefaultvalue", value);
} else {
@@ -45,7 +41,7 @@ public class ProductBaseLoanTools {
List