修改app测试问题

This commit is contained in:
tangfutang 2020-07-12 17:53:24 +08:00
parent e54cdca1f9
commit 35ad3f5717
7 changed files with 33 additions and 8 deletions

View File

@ -106,6 +106,8 @@
doTemp.setReadOnly("FRAME_NUMBER2",false);
doTemp.setReadOnly("FRAME_NUMBER3",false);
doTemp.setReadOnly("FRAME_NUMBER4",false);
doTemp.setReadOnly("FRAME_BRAND",false);
doTemp.setReadOnly("FRAME_COLOR",false);
//第一车贷产品可以修改其他配置说明
if("DYCD".equals(operationType)){
doTemp.setReadOnly("MEMO",false);

View File

@ -90,6 +90,6 @@
getObj(0,i,"CUSTOMER_NAME").innerHTML='<a class="box" onclick="javascript:showRentCollection()" style={color:#000;text-decoration:underline;}><font color="blue">'+getObj(0,i,"CUSTOMER_NAME").innerHTML+'</font></a>';
}
}
afterSearch();
//afterSearch();
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -17,7 +17,7 @@
dwTemp.genHTMLObjectWindow(CurPage.getParameter("id"));
String sButtons[][] = {
{"true","All","Button","保存","保存所有修改","as_save(0,returnList())","","","",""},
{"true","All","Button","保存","保存所有修改","as_save(0)","","","",""},
{"true","All","Button","·µ»Ø","·µ»ØÁбí","returnList()","","","",""}
};
//sButtonPosition = "south";

View File

@ -1,5 +1,6 @@
package apx.com.amarsoft.als.apzl.apply.business.doc.upload.service.impl;
import java.awt.image.BufferedImage;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileOutputStream;
@ -8,6 +9,7 @@ import java.net.URLDecoder;
import java.util.List;
import java.util.Map;
import javax.imageio.ImageIO;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@ -36,6 +38,9 @@ public class LibraryDocUploadServiceImpl implements LibraryDocUploadService {
ReturnMapUtil ReturnMapUtil) throws Exception {
Map<String, Object> testMap = (Map<String, Object>) MultipartDataUtil
.readRequestParam(request, "UTF-8");
System.out.println("=============ÎļþÉÏ´«²ÎÊý================================");
System.out.println(testMap.toString());
System.out.println("=======================================");
fieldMap = (Map<String, Object>) testMap.get("fieldMap"); // ²ÎÊý
fileList = (List<Map<String, Object>>) testMap.get("fileList"); // ×ÊÁÏÁбí
String applyType = fieldMap.get("applytype") == null ? "" : fieldMap.get(
@ -69,7 +74,6 @@ public class LibraryDocUploadServiceImpl implements LibraryDocUploadService {
}
library.setAttributeValue("Remark", remark);
tx.join(libraryManage);
libraryManage.saveObject(library);
@SuppressWarnings("deprecation")
Configure CurConfig = Configure.getInstance();
BizObjectManager attrBm=JBOFactory.getBizObjectManager("jbo.app.tenwa.doc.LB_DOCATTRIBUTE",tx);
@ -106,13 +110,20 @@ public class LibraryDocUploadServiceImpl implements LibraryDocUploadService {
String sFilePath = sFullPath.replace(sFileSavePath, "");
attr.setAttributeValue("FilePath",sFilePath);
attr.setAttributeValue("FullPath",sFullPath);
attr.setAttributeValue("Content_Type", file.get("fileContentType"));
attr.setAttributeValue("Content_Type", isImage(f,file.get("fileContentType")));
attr.setAttributeValue("FileSize", file.get("fileSize"));
attrBm.saveObject(attr);
library.setAttributeValue("BUSINESS_CHECK", "DocCheck_0");
}
libraryManage.saveObject(library);
ReturnMapUtil.setReturnMap(null, RestfullConstant.baseProperty.get("success").toString(), "");
return ReturnMapUtil.getReturnMap();
}
public Object isImage(File file,Object object) throws Exception{
BufferedImage bi = ImageIO.read(file);
if(bi==null){
return object;
}
return "image/jpeg";
}
}

View File

@ -186,6 +186,9 @@ public class FlowDataServiceImpl implements FlowDataService{
throws Exception {
Map<String, Object> testMap = (Map<String, Object>) MultipartDataUtil
.readRequestParam(request, "UTF-8");
System.out.println("=======合同制作扣款卡保存参数========");
System.out.println(testMap);
System.out.println("====================");
fieldMap = (Map<String, Object>) testMap.get("fieldMap"); // ²ÎÊý
Map<String, Object> body = new HashMap<String, Object>();
String projectId = fieldMap.get("project_id") == null ? "" : fieldMap.get("project_id").toString();
@ -277,13 +280,14 @@ public class FlowDataServiceImpl implements FlowDataService{
String flowunid = fieldMap.get("flowunid") == null ? "" : fieldMap.get("flowunid").toString();
Map<String, String> flowParms = ContractMakeControllerUtil.getFlowParms(flowunid);
String projectId = flowParms.get("ProjectId");
String projectNo = flowParms.get("ProjectNo");
BizObjectManager lectManage = JBOFactory.getFactory().getManager(LB_EQUIPMENT_CAR_TEMP.CLASS_NAME);
BizObject lect = lectManage.createQuery(" FLOWUNID=:FlowUnid ").setParameter("FlowUnid", flowunid).getSingleResult(false);
String distributor_id = sqlca.getString("select distributor_id from lb_project_info where id='"+projectId+"'");//»ñÈ¡¾­ÏúÉÌID
BizObjectManager lgtManage = JBOFactory.getFactory().getManager(LM_GPS_ORDER_TEMP.CLASS_NAME);
BizObject lgt = lgtManage.createQuery(" flowunid=:flowunid ").setParameter("flowunid", flowunid).getSingleResult(false);
BizObject lgt = lgtManage.createQuery(" APPLY_NO=:APPLY_NO ").setParameter("APPLY_NO", projectNo).getSingleResult(false);
if(lgt == null){

View File

@ -72,6 +72,9 @@ public class FlowActionCommitServiceImpl implements FlowActionCommitService {
Map<String, Object> testMap = (Map<String, Object>) MultipartDataUtil
.readRequestParam(request, "UTF-8");
System.out.println("=======提交参数========");
System.out.println(testMap);
System.out.println("====================");
this.fieldMap = (Map<String, Object>) testMap.get("fieldMap");
String type = this.fieldMap.get("submittype") == null ? ""

View File

@ -380,7 +380,12 @@ Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualn
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BeforeApplicationConfigInfo','0130','0130','1','O','updateorgid','updateorgid','String','','µÇ¼Ç²¿ÃÅ','','1','Text','1','1','','','','100','0','0','0','1','0',0,'','','','SYS_Designer','2020/07/04 10:47:39','SYS_Designer','2020/07/04 11:14:25','','','1','','','','');
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BeforeApplicationConfigInfo','0140','0140','1','O','updatetime','updatetime','String','','µÇ¼Çʱ¼ä','','1','Text','1','1','','','','100','0','0','0','1','0',0,'','','','SYS_Designer','2020/07/04 10:47:39','SYS_Designer','2020/07/04 11:14:25','','','1','','','','');
-- app提交到经销复审添加风险预警校验
Insert Into SCENARIO_RELATIVE (scenarioid,groupid,modelid) Values ('业务申请流程','0020','0112');
Insert Into SCENARIO_RELATIVE (scenarioid,groupid,modelid) Values ('业务申请流程','0020','0122');
Insert Into SCENARIO_RELATIVE (scenarioid,groupid,modelid) Values ('业务申请流程','0020','0132');
Insert Into SCENARIO_RELATIVE (scenarioid,groupid,modelid) Values ('业务申请流程','0020','0142');
Insert Into SCENARIO_RELATIVE (scenarioid,groupid,modelid) Values ('业务申请流程','0020','0152');