📄 rwgljhlbmbean.java
字号:
package gov.gdlt.ssgly.taxweb.mbean.rwgl;
import java.util.*;
import gov.gdlt.ssgly.taxcore.comm.bizdelegate.*;
import gov.gdlt.ssgly.taxcore.comm.bizinterface.*;
import gov.gdlt.ssgly.taxcore.comm.log.*;
import gov.gdlt.ssgly.taxcore.taxevent.rwgl.*;
import gov.gdlt.ssgly.taxweb.tag.*;
import gov.gdlt.ssgly.taxweb.comm.util.WebUtil;
/**
* <p>Title: </p>
*
* <p>Description: 广东地税税收管理员工作平台</p>
*
* <p>Copyright: Copyright (c) 2005 广东省地方税务局,广州市地方税务局</p>
*
* <p>Company: 广州地税</p>
*
* @author 王隽
* @version 1.0
*/
public class RWGLjhlbMBean extends PagedBaseBean {
private ArrayList rwlbVO;
private String swry_dm;
private String gjz;
public RWGLjhlbMBean() {
swry_dm = (String) WebUtil.eval("#{user.userID}");
LogWritter.sysDebug("MBean for jhrwlb created! swry=" + swry_dm);
}
/**
* getTotalPage
* 获取全部数据的总行数
* @throws Exception
* @todo Implement this gov.gdlt.ssgly.taxweb.tag.PagedBaseBean method
*/
protected void getTotalPage() throws Exception {
//使用count时,执行MathTotalasCount,如果没有count,则使用MathTotal
LogWritter.sysDebug("------------getTotalPage-----------------");
String tempGJZ = WebUtil.getParameterFromContextMap("gjz");
if ("重要".equals(tempGJZ)) {
tempGJZ = "zhongyao";
} else if ("一般".equals(tempGJZ)) {
tempGJZ = "yiban";
}
if (totalPageCount == 0) {
if (tempGJZ == null || "".equals(tempGJZ)) {
this.totalPageCount = MathTotal("T_RWGL_JHAP.getJhapList",
swry_dm, 20);
} else {
HashMap ha = new HashMap();
ha.put("swry_dm", swry_dm);
ha.put("rwms", tempGJZ);
ha.put("yxj", tempGJZ.trim());
ha.put("rwlx", tempGJZ);
ha.put("jhxdry", tempGJZ);
ha.put("cbz", tempGJZ);
ha.put("ydqd", tempGJZ);
ha.put("cfzq", tempGJZ);
ha.put("nsrbm", tempGJZ);
this.totalPageCount = MathTotalAsCount(
"T_RWGL_JHAP.getJhapListByGJZAsCount", ha, 20);
}
}
}
/**
* refreshObjectList
* 获取某页数据
* @param currentPage int
* @throws Exception
* @todo Implement this gov.gdlt.ssgly.taxweb.tag.PagedBaseBean method
*/
protected void refreshObjectList(int currentPage) throws Exception {
LogWritter.sysDebug("------------refreshObjectList-----------------");
String tempGJZ = WebUtil.getParameterFromContextMap("gjz");
if ("重要".equals(tempGJZ)) {
tempGJZ = "zhongyao";
} else if ("一般".equals(tempGJZ)) {
tempGJZ = "yiban";
}
if (tempGJZ == null || "".equals(tempGJZ)) {
rwlbVO = (ArrayList) getSplitTable("T_RWGL_JHAP.getJhapList",
swry_dm,
20, currentPage);
} else {
HashMap ha = new HashMap();
ha.put("swry_dm", swry_dm);
ha.put("rwms", tempGJZ);
ha.put("yxj", tempGJZ.trim());
ha.put("rwlx", tempGJZ);
ha.put("jhxdry", tempGJZ);
ha.put("cbz", tempGJZ);
ha.put("ydqd", tempGJZ);
ha.put("cfzq", tempGJZ);
ha.put("nsrbm", tempGJZ);
rwlbVO = (ArrayList) getSplitTable("T_RWGL_JHAP.getJhapListByGJZ",
ha, 20, currentPage);
}
if ("zhongyao".equals(tempGJZ)) {
tempGJZ = "重要";
} else if ("yiban".equals(tempGJZ)) {
tempGJZ = "一般";
}
gjz = tempGJZ;
}
/**
* runExtraRoutine
*
* @todo Implement this gov.gdlt.ssgly.taxweb.tag.PagedBaseBean method
*/
protected void runExtraRoutine() {
}
/**
* sort
*
* @param column String
* @param ascending boolean
* @todo Implement this gov.gdlt.ssgly.taxweb.tag.PagedBaseBean method
*/
protected void sort(String column, boolean ascending) {
}
public ArrayList getRwlbVO() {
return rwlbVO;
}
public String getSwry_dm() {
return swry_dm;
}
public String getGjz() {
return gjz;
}
public void setSwry_dm(String swry_dm) {
this.swry_dm = swry_dm;
}
public void setRwlbVO(ArrayList rwlbVO) {
this.rwlbVO = rwlbVO;
}
public void setGjz(String gjz) {
this.gjz = gjz;
}
public String startJhap() {
LogWritter.sysDebug("starting workflow...");
//如果任务列表为空,则不做任何事情
if (rwlbVO != null) {
LogWritter.sysDebug("rwlbVO is not null");
int n = rwlbVO.size();
LogWritter.sysDebug("data has " + rwlbVO.size() + " rows");
RWGLjhrwVO cur_rwlb;
RWGLaprwjhReqEvent req = new RWGLaprwjhReqEvent();
ISsglyService service = new SsglyDelegate();
RWGLaprwjhResEvent ssglyRes;
req.setDealMethod("startJhap");
req.setSwry_dm(swry_dm);
//逐行数据检查
for (int i = 0; i < n; i++) {
cur_rwlb = (RWGLjhrwVO) rwlbVO.get(i);
//对于选择的行,进行签收
if (cur_rwlb.isChecked()) {
req.setJh_xh(cur_rwlb.getJh_xh());
LogWritter.sysDebug("starting " + cur_rwlb.getJh_xh() +
" by " + swry_dm);
try {
ssglyRes = (RWGLaprwjhResEvent) service.invokeTask(req);
} catch (Exception e) {
e.printStackTrace();
}
}
}
} else {
LogWritter.sysDebug("rwlbVO is null");
}
//清空分页列表的内容,以便重新获取
objectList = Collections.synchronizedList(new ArrayList());
//getContentList();
//this.getRwlb(lblx);
return "success";
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -