示例#1
0
 @Override
 public void loadAmountComputeInfo(ProjInfo projInfo, Map<String, String> variablesMap)
     throws Exception {
   Map<String, String> queryMainObjectMap = new HashMap<String, String>();
   String cust_id = variablesMap.get("cust_id");
   String proj_id = "";
   if (projInfo != null) {
     cust_id = projInfo.getCustInfo() == null ? cust_id : projInfo.getCustInfo().getId();
     proj_id = projInfo.getId();
   }
   queryMainObjectMap.put("cust_id", cust_id);
   queryMainObjectMap.put("proj_id", proj_id);
   queryMainObjectMap.put("doc_id", variablesMap.get("docId"));
   // 加载授信状况
   JSONObject jsonObj =
       this.tableService
           .getJsonArrayData(
               "eleasing/workflow/limit_manager/proj_limit_compute_info.xml", queryMainObjectMap)
           .getJSONObject(0);
   Iterator<String> it = jsonObj.keys();
   String key = "";
   String value = "";
   while (it.hasNext()) {
     key = (String) it.next();
     value = jsonObj.getString(key);
     variablesMap.put(key, value);
   }
   // 加载本案使用额度
   JSONArray jsonArray =
       this.tableService.getJsonArrayData(
           "eleasing/workflow/limit_manager/proj_amount_info_init.xml", queryMainObjectMap);
   for (int i = 0; i < jsonArray.length(); i++) {
     jsonObj = jsonArray.getJSONObject(i);
     it = jsonObj.keys();
     while (it.hasNext()) {
       key = (String) it.next();
       value = jsonObj.getString(key);
       variablesMap.put(key, value);
     }
     if ("limit_type#LL".equals(variablesMap.get("amount_type"))) {
       break;
     }
   }
 }
示例#2
0
 @Override
 public void loadProjInvoice(ProjInfo projinfo, Map<String, String> variablesMap)
     throws Exception {
   ProjInvoiceType projInvoiceType = projinfo.getProjInvoiceType();
   if (null != projInvoiceType) {
     variablesMap.putAll(
         this.tableService.getEntityPropertiesToStringMap(
             projInvoiceType, null, "rent_invoice_type"));
   }
 }
示例#3
0
 @Override
 public void loadPorjCustInfo(ProjInfo pinfo, Map<String, String> variablesMap) throws Exception {
   CustInfo cinfo = pinfo.getCustInfo();
   if (cinfo != null) {
     variablesMap.put("proj_info.custname", cinfo.getCustName());
     variablesMap.put("proj_info.custid", cinfo.getId());
     variablesMap.put("proj_info.custInfo", cinfo.getId());
     variablesMap.put("proj_info.custnumber", cinfo.getCustNumber());
     variablesMap.put("proj_info.custclass", cinfo.getCustClass().getId());
   }
 }
示例#4
0
 @Override
 public void loadProjPdlgd(ProjInfo projinfo, Map<String, String> variablesMap) throws Exception {
   ProjPdlgd projPdlgd = projinfo.getProjPdlgd();
   if (null != projPdlgd) {
     variablesMap.putAll(
         this.tableService.getEntityPropertiesToStringMap(projPdlgd, null, "proj_pdlgd"));
     variablesMap.put("pdlgd.lgd", null == projPdlgd.getLgd() ? "" : projPdlgd.getLgd().getCode());
     variablesMap.put(
         "pdlgd.lgdrisk", null == projPdlgd.getLgdRisk() ? "" : projPdlgd.getLgdRisk().getCode());
   }
 }
示例#5
0
 @Override
 public void loadProjGuaranteeMethod(ProjInfo projinfo, Map<String, String> variablesMap)
     throws Exception {
   Map<String, String> queryMainObjectMap = new HashMap<String, String>();
   queryMainObjectMap.put("proj_id", projinfo.getId());
   variablesMap.put(
       "json_proj_guarantee_detail_str",
       this.tableService
           .getJsonArrayData(
               "eleasing/workflow/proj/proj_common/proj_guarantee_method.xml", queryMainObjectMap)
           .toString());
 }
示例#6
0
 @Override
 public void loadProjActualLessees(ProjInfo projinfo, Map<String, String> variablesMap)
     throws Exception {
   // 实际承租人
   Map<String, String> queryMainObjectMap = new HashMap<String, String>();
   queryMainObjectMap.put("proj_id", projinfo.getId());
   variablesMap.put(
       "json_proj_actual_lessee_str",
       this.tableService
           .getJsonArrayData(
               "eleasing/workflow/proj/proj_common/proj_actual_lessees.xml", queryMainObjectMap)
           .toString());
 }