📄 reportcomments.java
字号:
package com.saas.biz.reportcommentsMgr;
import java.util.ArrayList;
import com.saas.biz.commen.commMethodMgr;
import com.saas.biz.dao.reportcommentsDAO.ReportcommentsDAO;
import com.saas.biz.dao.reportcommentsDAO.ReportcommentsExt;
import com.saas.sys.buffer.Buffers;
import com.saas.sys.dbm.Dbtable;
import com.saas.sys.exp.SaasApplicationException;
import com.saas.sys.log.Logger;
public class Reportcomments{
Logger log;
Buffers inBuffer;
Buffers outBuffer;
Dbtable tradeQuery;
commMethodMgr commen;
ArrayList queryResult = new ArrayList();
public Reportcomments() {
log = new Logger(this);
tradeQuery = new Dbtable();
commen = new commMethodMgr();
outBuffer = new Buffers();
}
public void setOutBuffer(Buffers outBuffer) {
this.outBuffer = outBuffer;
}
public Buffers getOutBuffer() {
return this.outBuffer;
}
public void setTradeQuery(Dbtable tradeQuery) {
this.tradeQuery = tradeQuery;
}
public Dbtable getTradeQuery() {
return this.tradeQuery;
}
public ArrayList getQueryResult() {
return this.queryResult;
}
public void setQueryResult(ArrayList queryResult) {
this.queryResult = queryResult;
}
// 文件上报审核
public void addReportComments(Buffers inbuffer) {
this.outBuffer = inbuffer;
this.inBuffer = inbuffer;
log.LOG_INFO("进入addReportComments方法...");
int iResult = -1;
ReportcommentsDAO reporDao = new ReportcommentsDAO();
String reportid = inbuffer.getString("REPORTID");
String comments = inbuffer.getString("CONTENT");
String user = inbuffer.getString("SESSION_USER_NAME");
String part = inbuffer.getString("PART");
reporDao.setComments(comments);
reporDao.setReportid(reportid);
reporDao.setUser(user);
reporDao.setPart(part);
iResult = addReportComments(reporDao);
if (iResult != 0) {
this.outBuffer.setInt("RESULT_CODE", -1);
this.outBuffer.setString("RESULT_INFO", "业务处理失败!");
}
else {
this.outBuffer.setInt("RESULT_CODE", 0);
this.outBuffer.setString("RESULT_INFO", "业务处理成功!");
}
log.LOG_INFO("退出addReportComments方法...");
}
public int addReportComments(ReportcommentsDAO reporDao) {
ReportcommentsExt repExt = new ReportcommentsExt();
repExt.setParam(":VREPORTID", reporDao.getReportid());
repExt.setParam(":VUSER", reporDao.getUser());
repExt.setParam(":VPART", reporDao.getPart());
repExt.setParam(":VCOMMENTS", reporDao.getComments());
tradeQuery.executeBy(repExt.insBy("INS_BY_ALL"));
return 0;
}
// 查询审批回复
public ArrayList getReportCommentByReportId(String reportId) throws SaasApplicationException {
ArrayList commList = new ArrayList();
ReportcommentsExt repExt = new ReportcommentsExt();
repExt.setParam(":VREPORTID", reportId);
commList=repExt.selByList("SEL_BY_REPORTID");
return commList;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -