资方资料清单信息优化,当补传资料时,当前组全部改为待补传状态

This commit is contained in:
ap007 2021-07-09 16:38:56 +08:00
parent 39efcf106b
commit 2b13a3b4e6
4 changed files with 19 additions and 1 deletions

View File

@ -70,17 +70,28 @@
public void fileInfoSave(Map<String,String> params,Transaction Sqlca) throws JBOException {
if(params.size()>0){
BizObjectManager frfBom = JBOFactory.getBizObjectManager("jbo.oti.FC_REQUEST_FILE",Sqlca);
List<BizObject> frfBoList = frfBom.createQuery("DEL_FLAG='0' and FC_REQUEST_ID=:fcRequestId and FC_FLOW_TYPE=:fcFlowType and FC_FILE_CODE=:fcFileCode")
.setParameter("fcRequestId",params.get("fcRequestId")).setParameter("fcFlowType",params.get("fcFlowType")).setParameter("fcFileCode",params.get("fcFileCode")).getResultList(true);
String fcFlowTypeName = frfBoList.get(0).getAttribute("FC_FLOW_TYPE_NAME").toString();
String fcFileCodeName = frfBoList.get(0).getAttribute("FC_FILE_CODE_NAME").toString();
for(BizObject bo : frfBoList){
bo.setAttributeValue("FC_FILE_STS","2");
bo.setAttributeValue("FC_FILE_STS_DESC","用户添加待补传");
}
BizObject frfBo = frfBom.newObject();
frfBo.setAttributeValue("FC_REQUEST_ID",params.get("fcRequestId"));
frfBo.setAttributeValue("FC_FLOW_TYPE",params.get("fcFlowType"));
frfBo.setAttributeValue("FC_FLOW_TYPE_NAME",fcFlowTypeName);
frfBo.setAttributeValue("FC_FILE_CODE",params.get("fcFileCode"));
frfBo.setAttributeValue("FC_FILE_CODE_NAME",fcFileCodeName);
String fileType = params.get("type");
String fcFileType = fileType.substring(fileType.lastIndexOf("/")+1).toLowerCase();
frfBo.setAttributeValue("FC_FILE_TYPE",fcFileType);
frfBo.setAttributeValue("FILE_TYPE",fileType);
frfBo.setAttributeValue("FILE_NAME",params.get("name"));
frfBo.setAttributeValue("FILE_PATH",params.get("filePath"));
frfBo.setAttributeValue("FC_FILE_STS","0");
frfBo.setAttributeValue("FC_FILE_STS","2");
frfBo.setAttributeValue("FC_FILE_STS_DESC","用户添加待补传");
frfBo.setAttributeValue("CREATE_TIME",params.get("inputTime"));
frfBo.setAttributeValue("UPDATE_TIME",params.get("inputTime"));
frfBo.setAttributeValue("DEL_FLAG","0");

View File

@ -322,6 +322,7 @@
<attribute name="FC_REMARK" label="返回状态描述" type="STRING" length="32"/>
<attribute name="SUPPLEMENT_STS" label="是否需要补充资料清单" type="STRING" length="32"/>
<attribute name="SUPPLEMENT_DESC" label="通知需要补充资料清单描述" type="STRING" length="32"/>
<attribute name="SUPPLEMENT_TIME" label="资料补充时间" type="STRING" length="32"/>
<attribute name="CREATE_TIME" label="创建时间" type="STRING" length="32"/>
<attribute name="UPDATE_TIME" label="修改时间" type="STRING" length="32"/>
<attribute name="DEL_FLAG" label="有效标志" type="STRING" length="32"/>

View File

@ -12,6 +12,7 @@
String isReadOnly = CurPage.getParameter("isReadOnly");
String messageId = CurPage.getParameter("messageId");
String sPrevUrl = CurPage.getParameter("PrevUrl");
String pageSize = CurPage.getParameter("PageSize");
if(sPrevUrl == null) sPrevUrl = "/com/tenwa/apzl/CorpusSource/FcRequestLIst.jsp";
String sTempletNo=CurPage.getParameter("TempletNo");
if(sTempletNo==null){
@ -24,6 +25,7 @@
doTemp.setLockCount(0);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "1";//freeform
dwTemp.setPageSize(pageSize==null?5:Integer.parseInt(pageSize));
//dwTemp.ReadOnly = "-2";//Ö»¶Áģʽ
dwTemp.genHTMLObjectWindow(fcFlowType+","+fcRequestId);

View File

@ -85,6 +85,10 @@ public interface FC_REQUEST{
* 通知需要补充资料清单描述 STRING(32)<br>
*/
public static final String SUPPLEMENT_DESC = "SUPPLEMENT_DESC";
/**
* 资料补充时间 STRING(32)<br>
*/
public static final String SUPPLEMENT_TIME = "SUPPLEMENT_TIME";
/**
* 创建时间 STRING(32)<br>
*/