邮寄资料归档等完善
This commit is contained in:
parent
bd2762000c
commit
4e49195312
81
WebContent/Tenwa/Apzl/FileUpload/LBMailArchivingList.jsp
Normal file
81
WebContent/Tenwa/Apzl/FileUpload/LBMailArchivingList.jsp
Normal file
@ -0,0 +1,81 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
||||
/*
|
||||
Author: undefined 2019-07-11
|
||||
Content:
|
||||
History Log:
|
||||
*/
|
||||
String flowunid = CurPage.getParameter("FlowUnid");
|
||||
String PhaseNo = CurPage.getParameter("PhaseNo");
|
||||
String projectNo = CurPage.getParameter("projectNo");
|
||||
String contractId = CurPage.getParameter("contract_id");
|
||||
String isHistory = CurPage.getParameter("IsHistory");
|
||||
String model = "LBMailArchivingListTemp";
|
||||
String params = flowunid+","+contractId;
|
||||
if("true".equals(isHistory)){
|
||||
model = "LBMailArchivingList";
|
||||
params = contractId;
|
||||
}
|
||||
ASObjectModel doTemp = new ASObjectModel(model);
|
||||
if("0010".equals(PhaseNo)){
|
||||
doTemp.setVisible("HANDOVER_STATUS", false);
|
||||
}
|
||||
if("0020".equals(PhaseNo)){
|
||||
doTemp.setReadOnly("MAIL_STATUS", true);
|
||||
}
|
||||
// doTemp.setLockCount(2);
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.Style="1";
|
||||
//--设置为Grid风格--
|
||||
dwTemp.ReadOnly = "0"; //只读模式
|
||||
dwTemp.setPageSize(10);
|
||||
dwTemp.genHTMLObjectWindow(params);
|
||||
|
||||
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
|
||||
String sButtons[][] = {
|
||||
{"0010".equals(CurPage.getParameter("PhaseNo"))&&!"true".equals(isHistory)?"true":"false","","Button","保存","保存邮寄状态","saveMailStatus()","","","",""},
|
||||
};
|
||||
%>
|
||||
<%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||
<script type="text/javascript">
|
||||
function saveMailStatus(){
|
||||
as_save(0);
|
||||
reloadSelf();
|
||||
alert("保存成功");
|
||||
updateMailStatus();
|
||||
}
|
||||
function saveAcrhivingStatus(){
|
||||
as_save(0);
|
||||
reloadSelf();
|
||||
alert("保存成功");
|
||||
updateAcrhivingStatus();
|
||||
}
|
||||
function doAcrhiving(){
|
||||
for(var i=0;i<getRowCount(0);i++){
|
||||
$("#INPUT_myiframe0_HANDOVER_STATUS_"+i+"_3").val('all');//设置value为xx的option选项为默认选中
|
||||
setItemValue(0,i,"HANDOVER_STATUS","all");
|
||||
}
|
||||
}
|
||||
function updateMailStatus(){
|
||||
var contractId = getItemValue(0,i,'CONTRACT_ID');
|
||||
var str=RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.DocMailAction","updateMailStatus","flowunid=<%=flowunid%>,contractid="+contractId);
|
||||
}
|
||||
function updateAcrhivingStatus(){
|
||||
var contractId = getItemValue(0,i,'CONTRACT_ID');
|
||||
var str=RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.DocMailAction","updateAcrhivingStatus","flowunid=<%=flowunid%>,contractid="+contractId);
|
||||
}
|
||||
function checkfile(){
|
||||
var fileName = "" ;
|
||||
for(var k=0;k<getRowCount(0);k++){
|
||||
var filelist = getItemValue(0,k,'HANDOVER_STATUS');
|
||||
if(filelist!='all'){
|
||||
fileName = fileName + getItemValue(0,k,'NEW_FILE_NAME')+";";
|
||||
}
|
||||
}
|
||||
if(fileName.length > 0){
|
||||
alert(fileName+"未归档,请检查!");
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -14,7 +14,7 @@
|
||||
String sFlowNo= CurPage.getParameter("FlowNo");
|
||||
String PhaseNo= CurPage.getParameter("PhaseNo");
|
||||
String userName = CurUser.getUserName();
|
||||
|
||||
String isHistory = CurPage.getParameter("IsHistory");
|
||||
sFlowNo = "MortgageFileMailFlow";
|
||||
BizObject flow=GetFlowAction.getFlowBussinessObject(sFlowunid);
|
||||
String product=CurPage.getParameter("productId");
|
||||
@ -49,13 +49,13 @@
|
||||
dwTemp.Style = "2";//freeform
|
||||
//dwTemp.ReadOnly = "-2";//只读模式
|
||||
dwTemp.genHTMLObjectWindow(CurPage.getParameter("id"));
|
||||
dwTemp.replaceColumn("placefile", "<iframe type='iframe' id='frame_list' name=\"frame_list\" width=\"100%\" height=\"300px\" frameborder=\"0\" src=\""+sWebRootPath+"/Tenwa/Apzl/FileUpload/PayDocMailList.jsp?CompClientID="+sCompClientID+"&docList="+docList+"\"></iframe>", CurPage.getObjectWindowOutput());
|
||||
dwTemp.replaceColumn("placefile", "<iframe type='iframe' id='frame_list' name=\"frame_list\" width=\"100%\" height=\"300px\" frameborder=\"0\" src=\""+sWebRootPath+"/Tenwa/Apzl/FileUpload/LBMailArchivingList.jsp?CompClientID="+sCompClientID+"&docList="+docList+"\"></iframe>", CurPage.getObjectWindowOutput());
|
||||
dwTemp.replaceColumn("opinion", "<iframe type='iframe' id='frame_list' name=\"frame_list\" width=\"100%\" height=\"300px\" frameborder=\"0\" src=\""+sWebRootPath+"/Tenwa/Apzl/FileUpload/LmApprovaloppinionDocTempList.jsp?CompClientID="+sCompClientID+"\"></iframe>", CurPage.getObjectWindowOutput());
|
||||
|
||||
String sButtons[][] = {
|
||||
{"true","All","Button","保存","保存所有修改","save()","","","",""},
|
||||
{"false","All","Button","返回","返回列表","returnList()","","","",""},
|
||||
{"0020".equals(CurPage.getParameter("PhaseNo"))&&!"his".equals(type)?"true":"false","","Button","Ò»¼ü¹éµµ","Ò»¼ü¹éµµ","guidang()","","","",""},
|
||||
{"0020".equals(CurPage.getParameter("PhaseNo"))&&!"true".equals(isHistory)?"true":"false","All","Button","Ò»¼ü¹éµµ","Ò»¼ü¹éµµ","guidang()","","","",""},
|
||||
|
||||
};
|
||||
// sButtonPosition = "south";
|
||||
@ -79,11 +79,11 @@
|
||||
|
||||
}
|
||||
//as_save(0,'frame_list.window.saveRecordForApprove()'); IE浏览器不起作用
|
||||
as_save(0,'$("#frame_list")[0].contentWindow.saveRecordForApprove();');
|
||||
as_save(0,'$("#frame_list")[0].contentWindow.saveAcrhivingStatus();');
|
||||
}
|
||||
|
||||
function guidang(){
|
||||
$("#frame_list")[0].contentWindow.guidang();
|
||||
$("#frame_list")[0].contentWindow.doAcrhiving();
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -124,7 +124,7 @@
|
||||
var contract_id=getItemValue(0, i, "contract_id");
|
||||
var ProductId=getItemValue(0, i, "PRODUCT_ID");
|
||||
var id=getItemValue(0, i, "id");
|
||||
var sUrl="/Tenwa/Apzl/FileUpload/DocMailListMain.jsp";
|
||||
var sUrl="/Tenwa/Apzl/FileUpload/LBMailArchivingList.jsp";
|
||||
if('0010'!='<%=PhaseNo%>'){
|
||||
sUrl="/Tenwa/Apzl/FileUpload/LBPlaceFileTempInfo.jsp";
|
||||
}
|
||||
@ -204,13 +204,17 @@
|
||||
function openFileList(projectId){
|
||||
let url = RunJavaMethod("com.ample.icms.query.ImageQuery","getRequestUrl","");
|
||||
let params = getRequestParam(projectId);
|
||||
if(params=='error'){
|
||||
alert('未找到对应的影像配置,请联系管理员');
|
||||
return;
|
||||
}
|
||||
if(params!=null){
|
||||
post(url,params);
|
||||
}
|
||||
}
|
||||
function getRequestParam(projectId){
|
||||
let code = 'ECM0002';
|
||||
let param = RunJavaMethod("com.ample.icms.query.ImageQuery","getRequestParamByProjectId","projectId="+projectId+",code="+code);
|
||||
let param = RunJavaMethodTrans("com.ample.icms.query.ImageQuery","getRequestParamByProjectIdJMT","projectId="+projectId+",code="+code);
|
||||
return param;
|
||||
}
|
||||
/**
|
||||
|
||||
@ -18,8 +18,8 @@
|
||||
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
|
||||
String sButtons[][] = {
|
||||
{"0010".equals(PhaseNo)?"false":"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
|
||||
{"true","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""},
|
||||
{"0010".equals(PhaseNo)?"false":"true","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0,'alert(getRowCount(0))')","","","","btn_icon_delete",""},
|
||||
{"true","All","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""},
|
||||
{"0010".equals(PhaseNo)?"false":"true","All","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0,'alert(getRowCount(0))')","","","","btn_icon_delete",""},
|
||||
};
|
||||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||
<script type="text/javascript">
|
||||
|
||||
@ -190,6 +190,10 @@
|
||||
}
|
||||
let appCode = appInfo.substr(0,index);
|
||||
let appName = appInfo.substr(index+1,appInfo.length);
|
||||
if(appCode=='0000'){
|
||||
alert(appName);
|
||||
return;
|
||||
}
|
||||
let code = 'ECM0002';
|
||||
if(("<%=sPhaseNo%>"=="0010")){
|
||||
code = 'ECM0001';
|
||||
|
||||
@ -344,7 +344,7 @@
|
||||
<attribute name="MAIL_STATUS" label="邮寄状态" type="STRING" length="32"/>
|
||||
<attribute name="HANDOVER_STATUS" label="接收状态" type="STRING" length="32"/>
|
||||
<attribute name="APP_CODE" label="影像编号" type="STRING" length="32"/>
|
||||
<attribute name="APP_NAME" label="影像名称" type="STRING" length="32"/>
|
||||
<attribute name="APP_NAME" label="影像名称" type="STRING" length="100"/>
|
||||
<attribute name="NEW_FILE_CODE" label="文件编号" type="STRING" length="32"/>
|
||||
<attribute name="NEW_FILE_NAME" label="文件名称" type="STRING" length="32"/>
|
||||
<attribute name="IS_MUST" label="是否必填" type="STRING" length="32"/>
|
||||
@ -367,7 +367,7 @@
|
||||
<attribute name="MAIL_STATUS" label="邮寄状态" type="STRING" length="32"/>
|
||||
<attribute name="HANDOVER_STATUS" label="接收状态" type="STRING" length="32"/>
|
||||
<attribute name="APP_CODE" label="影像编号" type="STRING" length="32"/>
|
||||
<attribute name="APP_NAME" label="影像名称" type="STRING" length="32"/>
|
||||
<attribute name="APP_NAME" label="影像名称" type="STRING" length="100"/>
|
||||
<attribute name="NEW_FILE_CODE" label="文件编号" type="STRING" length="32"/>
|
||||
<attribute name="NEW_FILE_NAME" label="文件名称" type="STRING" length="32"/>
|
||||
<attribute name="IS_MUST" label="是否必填" type="STRING" length="32"/>
|
||||
|
||||
@ -15,24 +15,36 @@ import java.util.List;
|
||||
public class ImageQuery extends ImageService {
|
||||
private String projectId;
|
||||
private JSONArray allAppInfoJson;
|
||||
|
||||
@Override
|
||||
public ImageRoot createData() throws Exception {
|
||||
addBaseData();
|
||||
List<ImageBatch> batchs = new ArrayList<>();
|
||||
for(int i=0;i<allAppInfoJson.size();i++){
|
||||
String appCode = allAppInfoJson.getJSONObject(i).get("app_code").toString();
|
||||
String appName = allAppInfoJson.getJSONObject(i).get("app_name").toString();
|
||||
String busiNo = allAppInfoJson.getJSONObject(i).get("project_no").toString();
|
||||
if(appCode==null){
|
||||
if(allAppInfoJson.size()==0){
|
||||
System.out.println("δÕÒµ½¶ÔÓ¦µÄappCodeÐÅÏ¢");
|
||||
return null;
|
||||
}
|
||||
for(int i=0;i<allAppInfoJson.size();i++){
|
||||
String appCode = allAppInfoJson.getJSONObject(i).get("app_code").toString();
|
||||
String appName = allAppInfoJson.getJSONObject(i).get("app_name").toString();
|
||||
batchs.add(addBatch(appCode,appName,busiNo,null));
|
||||
}
|
||||
}else {
|
||||
batchs.add(addBatch(appCode,appName,busiNo,null));
|
||||
}
|
||||
ImageMetaData metaData = addMetaData(batchs);
|
||||
ImageRoot root = new ImageRoot(base,metaData);
|
||||
return root;
|
||||
}
|
||||
public String getRequestParamByProjectId(JBOTransaction tx) throws Exception {
|
||||
public String getRequestParamByProjectIdJMT(JBOTransaction tx) throws Exception {
|
||||
Transaction Sqlca = Transaction.createTransaction(tx);
|
||||
GetInfoUtil gif = new GetInfoUtil();
|
||||
this.setAllAppInfoJson(gif.getAllAppInfoJsonByProjectId(projectId,Sqlca));
|
||||
this.setBusiNo(gif.getProjectNoByProjectId(projectId,Sqlca));
|
||||
JSONArray ja = gif.getAllAppInfoJsonByProjectId(projectId,Sqlca);
|
||||
if(ja==null){
|
||||
return "error";
|
||||
}
|
||||
this.setAllAppInfoJson(ja);
|
||||
return transformXMLtoParam(this.code,this.getRequestXML());
|
||||
}
|
||||
|
||||
|
||||
@ -40,7 +40,7 @@ public class GetInfoUtil {
|
||||
return "0000@未找到当前流程对应的流程编号";
|
||||
}
|
||||
String appInfo = getAppInfoByProjectNo(projectNo, flowNo, Sqlca);
|
||||
if(appInfo==null){
|
||||
if(appInfo==null||appInfo.contains("0000@")){
|
||||
String productId = getProductIdByFlowUnid(flowUnid, Sqlca);
|
||||
appInfo = this.getAppInfoByProductId(productId, flowNo, Sqlca);
|
||||
}
|
||||
@ -129,7 +129,30 @@ public class GetInfoUtil {
|
||||
return getAllAppInfoJsonByProjectNo(projectNo,Sqlca).toJSONString();
|
||||
}
|
||||
public JSONArray getAllAppInfoJsonByProjectNo(String projectNo, Transaction Sqlca) throws SQLException {
|
||||
String sql = "select app_code,app_name from icms_rela where project_no='" + projectNo + "'";
|
||||
String sql = "select app_code,app_name from icms_rela where project_no='" + projectNo + "' and flow_no<>'MortgageFileMailFlow' group by app_code";
|
||||
SqlObject sql_icms = new SqlObject(sql);
|
||||
ASResultSet rs = Sqlca.getASResultSet(sql_icms);
|
||||
if(!rs.next()){
|
||||
String productId = getProductIdByProjectNo(projectNo,Sqlca);
|
||||
JSONArray ja = getAllAppInfoJsonByProductId(productId,Sqlca);
|
||||
return ja;
|
||||
}
|
||||
String appCode = null;
|
||||
String appName = null;
|
||||
JSONArray ja = new JSONArray();
|
||||
while (rs.next()) {
|
||||
appCode = rs.getString("app_code");
|
||||
appName = rs.getString("app_name");
|
||||
JSONObject appInfo = new JSONObject();
|
||||
appInfo.put("app_code",appCode);
|
||||
appInfo.put("app_name",appName);
|
||||
appInfo.put("project_no",projectNo);
|
||||
ja.add(appInfo);
|
||||
}
|
||||
return ja;
|
||||
}
|
||||
public JSONArray getAllAppInfoJsonByProductId(String productId, Transaction Sqlca) throws SQLException {
|
||||
String sql = "select app_code,app_name from icms_prd_rela where productid='" + productId + "' and flowno<>'MortgageFileMailFlow' group by app_code";
|
||||
SqlObject sql_icms = new SqlObject(sql);
|
||||
ASResultSet rs = Sqlca.getASResultSet(sql_icms);
|
||||
String appCode = null;
|
||||
@ -141,11 +164,10 @@ public class GetInfoUtil {
|
||||
JSONObject appInfo = new JSONObject();
|
||||
appInfo.put("app_code",appCode);
|
||||
appInfo.put("app_name",appName);
|
||||
appInfo.put("project_no",appName);
|
||||
ja.add(appInfo);
|
||||
}
|
||||
if (appCode == null) {
|
||||
return null;
|
||||
return null;
|
||||
}
|
||||
return ja;
|
||||
}
|
||||
@ -166,7 +188,7 @@ public class GetInfoUtil {
|
||||
return appInfo;
|
||||
}
|
||||
|
||||
public String getAppInfoByProductId(String productId, String flowNo, Transaction Sqlca) throws SQLException, JBOException {
|
||||
public String getAppInfoByProductId(String productId, String flowNo, Transaction Sqlca) throws SQLException {
|
||||
String sql = "select app_code,app_name from icms_prd_rela where flowno='" + flowNo + "' and productid='" + productId + "'";
|
||||
SqlObject sql_icms = new SqlObject(sql);
|
||||
ASResultSet rs = Sqlca.getASResultSet(sql_icms);
|
||||
@ -247,7 +269,7 @@ public class GetInfoUtil {
|
||||
return projectNo;
|
||||
}
|
||||
public String getProjectNoByContractId(String contractId,Transaction Sqlca) throws SQLException {
|
||||
String sql = "select project_no from lb_project_info where id=(select project_id from lb_contract_info where id=')"+contractId+"'";
|
||||
String sql = "select project_no from lb_project_info where id=(select project_id from lb_contract_info where id='"+contractId+"')";
|
||||
String projectNo = Sqlca.getString(new SqlObject(sql));
|
||||
return projectNo;
|
||||
}
|
||||
@ -284,7 +306,7 @@ public class GetInfoUtil {
|
||||
return productId;
|
||||
}
|
||||
public String getProductIdByProjectNo(String projectNo, Transaction Sqlca) throws SQLException {
|
||||
String sql = "select product_id from lb_project_info where project_no=')"+projectNo+"'";
|
||||
String sql = "select product_id from lb_project_info where project_no='"+projectNo+"'";
|
||||
String productId = Sqlca.getString(new SqlObject(sql));
|
||||
return productId;
|
||||
}
|
||||
|
||||
@ -1,39 +1,64 @@
|
||||
package jbo.app.tenwa.doc;
|
||||
|
||||
import java.lang.String;
|
||||
|
||||
/**
|
||||
* - JBO命名常量类<br><br>
|
||||
* Note: This file is generated by ADE tools, <em>dont</em> modify it.<br>
|
||||
|
||||
*/
|
||||
public interface LB_MAILARCHIVING_INFO {
|
||||
public interface LB_MAILARCHIVING_INFO{
|
||||
/**
|
||||
* <br><br>
|
||||
* 代表本类映射的BizObjectClass
|
||||
*/
|
||||
public static final String CLASS_NAME = "jbo.app.tenwa.doc.LB_MAILARCHIVING_INFO";
|
||||
|
||||
/**
|
||||
* 主键 STRING(32)<br>
|
||||
*/
|
||||
public static final String ID = "ID";
|
||||
|
||||
/**
|
||||
* 产品ID STRING(32)<br>
|
||||
*/
|
||||
public static final String PRODUCT_ID = "PRODUCT_ID";
|
||||
|
||||
/**
|
||||
* 项目编号 STRING(32)<br>
|
||||
*/
|
||||
public static final String PROJECT_NO = "PROJECT_NO";
|
||||
|
||||
/**
|
||||
* 项目ID STRING(32)<br>
|
||||
*/
|
||||
public static final String PROJECT_ID = "PROJECT_ID";
|
||||
|
||||
/**
|
||||
* 合同ID STRING(32)<br>
|
||||
*/
|
||||
public static final String CONTRACT_ID = "CONTRACT_ID";
|
||||
|
||||
public static final String MAILS_TATUS = "MAIL_STATUS";
|
||||
|
||||
/**
|
||||
* 邮寄状态 STRING(32)<br>
|
||||
*/
|
||||
public static final String MAIL_STATUS = "MAIL_STATUS";
|
||||
/**
|
||||
* 接收状态 STRING(32)<br>
|
||||
*/
|
||||
public static final String HANDOVER_STATUS = "HANDOVER_STATUS";
|
||||
|
||||
/**
|
||||
* 影像编号 STRING(32)<br>
|
||||
*/
|
||||
public static final String APP_CODE = "APP_CODE";
|
||||
|
||||
/**
|
||||
* 影像名称 STRING(32)<br>
|
||||
*/
|
||||
public static final String APP_NAME = "APP_NAME";
|
||||
|
||||
/**
|
||||
* 文件编号 STRING(32)<br>
|
||||
*/
|
||||
public static final String NEW_FILE_CODE = "NEW_FILE_CODE";
|
||||
|
||||
/**
|
||||
* 文件名称 STRING(32)<br>
|
||||
*/
|
||||
public static final String NEW_FILE_NAME = "NEW_FILE_NAME";
|
||||
|
||||
/**
|
||||
* 是否必填 STRING(32)<br>
|
||||
*/
|
||||
public static final String IS_MUST = "IS_MUST";
|
||||
|
||||
}
|
||||
@ -1,41 +1,68 @@
|
||||
package jbo.app.tenwa.doc;
|
||||
|
||||
import java.lang.String;
|
||||
|
||||
/**
|
||||
* - JBO命名常量类<br><br>
|
||||
* Note: This file is generated by ADE tools, <em>dont</em> modify it.<br>
|
||||
|
||||
*/
|
||||
public interface LB_MAILARCHIVING_INFO_TEMP {
|
||||
public interface LB_MAILARCHIVING_INFO_TEMP{
|
||||
/**
|
||||
* <br><br>
|
||||
* 代表本类映射的BizObjectClass
|
||||
*/
|
||||
public static final String CLASS_NAME = "jbo.app.tenwa.doc.LB_MAILARCHIVING_INFO_TEMP";
|
||||
|
||||
/**
|
||||
* 主键 STRING(32)<br>
|
||||
*/
|
||||
public static final String ID = "ID";
|
||||
|
||||
/**
|
||||
* 产品ID STRING(32)<br>
|
||||
*/
|
||||
public static final String PRODUCT_ID = "PRODUCT_ID";
|
||||
|
||||
/**
|
||||
* 项目编号 STRING(32)<br>
|
||||
*/
|
||||
public static final String PROJECT_NO = "PROJECT_NO";
|
||||
|
||||
/**
|
||||
* 项目ID STRING(32)<br>
|
||||
*/
|
||||
public static final String PROJECT_ID = "PROJECT_ID";
|
||||
|
||||
/**
|
||||
* 合同ID STRING(32)<br>
|
||||
*/
|
||||
public static final String CONTRACT_ID = "CONTRACT_ID";
|
||||
|
||||
public static final String MAILS_TATUS = "MAIL_STATUS";
|
||||
|
||||
/**
|
||||
* 邮寄状态 STRING(32)<br>
|
||||
*/
|
||||
public static final String MAIL_STATUS = "MAIL_STATUS";
|
||||
/**
|
||||
* 接收状态 STRING(32)<br>
|
||||
*/
|
||||
public static final String HANDOVER_STATUS = "HANDOVER_STATUS";
|
||||
|
||||
/**
|
||||
* 影像编号 STRING(32)<br>
|
||||
*/
|
||||
public static final String APP_CODE = "APP_CODE";
|
||||
|
||||
/**
|
||||
* 影像名称 STRING(32)<br>
|
||||
*/
|
||||
public static final String APP_NAME = "APP_NAME";
|
||||
|
||||
/**
|
||||
* 文件编号 STRING(32)<br>
|
||||
*/
|
||||
public static final String NEW_FILE_CODE = "NEW_FILE_CODE";
|
||||
|
||||
/**
|
||||
* 文件名称 STRING(32)<br>
|
||||
*/
|
||||
public static final String NEW_FILE_NAME = "NEW_FILE_NAME";
|
||||
|
||||
/**
|
||||
* 是否必填 STRING(32)<br>
|
||||
*/
|
||||
public static final String IS_MUST = "IS_MUST";
|
||||
|
||||
/**
|
||||
* 流程编号 STRING(32)<br>
|
||||
*/
|
||||
public static final String FLOWUNID = "FLOWUNID";
|
||||
|
||||
}
|
||||
@ -128,6 +128,38 @@ public class DocMailAction {
|
||||
lfmiBom.createQuery(sql+"' where flowunid='"+flowunid+"' and contract_id='"+contractid+"'").executeUpdate();
|
||||
return "success";
|
||||
}
|
||||
public String updateMailStatus(JBOTransaction tx) throws JBOException{
|
||||
BizObjectManager lmaitBom = JBOFactory.getBizObjectManager(LB_MAILARCHIVING_INFO_TEMP.CLASS_NAME);
|
||||
BizObjectManager lfmitBom = JBOFactory.getBizObjectManager(LB_FILE_MAILARCHIVING_INFO_TEMP.CLASS_NAME);
|
||||
int allCount = lmaitBom.createQuery(" flowunid=:flowunid and contract_id=:contractId and MAIL_STATUS='all'").setParameter("flowunid", flowunid).setParameter("contractId", contractid).getTotalCount();
|
||||
int totalCount = lmaitBom.createQuery(" flowunid=:flowunid and contract_id=:contractId ").setParameter("flowunid", flowunid).setParameter("contractId", contractid).getTotalCount();
|
||||
//跟上面方法不一样是为了考虑状态为null的情况
|
||||
String allStatus = "none";
|
||||
if(allCount>0&&allCount==totalCount){
|
||||
allStatus = "all";
|
||||
}else if(allCount>0&&totalCount>allCount){
|
||||
allStatus = "part";
|
||||
}
|
||||
lfmitBom.createQuery("update O set allstatus=:allStatus where flowunid=:flowUnid and contract_id=:contractId")
|
||||
.setParameter("allStatus",allStatus).setParameter("flowUnid",flowunid).setParameter("contractId",contractid).executeUpdate();
|
||||
return "success";
|
||||
}
|
||||
public String updateAcrhivingStatus(JBOTransaction tx) throws JBOException{
|
||||
BizObjectManager lmaitBom = JBOFactory.getBizObjectManager(LB_MAILARCHIVING_INFO_TEMP.CLASS_NAME, tx);
|
||||
BizObjectManager lfmitBom = JBOFactory.getBizObjectManager(LB_FILE_MAILARCHIVING_INFO_TEMP.CLASS_NAME, tx);
|
||||
int allCount = lmaitBom.createQuery(" flowunid=:flowunid and contract_id=:contractId and HANDOVER_STATUS='all'").setParameter("flowunid", flowunid).setParameter("contractId", contractid).getTotalCount();
|
||||
int totalCount = lmaitBom.createQuery(" flowunid=:flowunid and contract_id=:contractId ").setParameter("flowunid", flowunid).setParameter("contractId", contractid).getTotalCount();
|
||||
//跟上面方法不一样是为了考虑状态为null的情况
|
||||
String allStatus = "none";
|
||||
if(allCount>0&&allCount==totalCount){
|
||||
allStatus = "all";
|
||||
}else if(allCount>0&&totalCount>allCount){
|
||||
allStatus = "part";
|
||||
}
|
||||
lfmitBom.createQuery("update O set ALLHANDOVERSTATUS=:allStatus where flowunid=:flowUnid and contract_id=:contractId")
|
||||
.setParameter("allStatus",allStatus).setParameter("flowUnid",flowunid).setParameter("contractId",contractid).executeUpdate();
|
||||
return "success";
|
||||
}
|
||||
public String asSaveHandOverStatus(JBOTransaction tx) throws JBOException{
|
||||
BizObjectManager lfmitBom = JBOFactory.getBizObjectManager(LM_MAILONLINE_DOC_TEMP.CLASS_NAME, tx);
|
||||
//BizObjectManager lfmiBom = JBOFactory.getBizObjectManager(LB_FILE_MAILARCHIVING_INFO_TEMP.CLASS_NAME, tx);
|
||||
@ -232,7 +264,7 @@ public class DocMailAction {
|
||||
bo.setAttributeValue("NEW_FILE_CODE",newFileCode);
|
||||
bo.setAttributeValue("NEW_FILE_NAME",newFileName);
|
||||
bo.setAttributeValue("IS_MUST",isMust);
|
||||
bo.setAttributeValue("FLOW_UNID",flowunid);
|
||||
bo.setAttributeValue("FLOWUNID",flowunid);
|
||||
lfmitBom.saveObject(bo);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user