📄 rwgljhmxmbean.java
字号:
package gov.gdlt.ssgly.taxweb.mbean.rwgl;
import java.math.*;
import java.sql.*;
import java.util.*;
import javax.faces.context.*;
import javax.faces.model.*;
import gov.gdlt.ssgly.taxcore.comm.bizdelegate.*;
import gov.gdlt.ssgly.taxcore.comm.bizinterface.*;
import gov.gdlt.ssgly.taxcore.comm.event.*;
import gov.gdlt.ssgly.taxcore.comm.exception.*;
import gov.gdlt.ssgly.taxcore.comm.log.*;
import gov.gdlt.ssgly.taxcore.taxevent.rwgl.*;
import gov.gdlt.ssgly.taxcore.taxevent.sjwh.*;
import gov.gdlt.ssgly.taxweb.comm.mbean.*;
import gov.gdlt.ssgly.taxweb.comm.util.*;
import org.apache.myfaces.custom.fileupload.*;
import java.io.*;
import gov.gdlt.ssgly.taxcore.comm.servicelocator.JDBCLocator;
/**
* <p>Title: </p>
*
* <p>Description: 广东地税税收管理员工作平台</p>
*
* <p>Copyright: Copyright (c) 2005 广东省地方税务局,广州市地方税务局</p>
*
* <p>Company: 广州地税</p>
*
* @author 王隽
* @version 1.0
*/
public class RWGLjhmxMBean extends BaseManagedBean {
private RWGLjhrwVO jhmxVO; //计划明细内容
private ArrayList rwlxList; //任务类型列表
private ArrayList rwxlList; //任务小类列表
private ArrayList rwlxDmb; //任务种类代码表
private HashMap dxlDzb; //任务大小类对照表
private String swry_dm; //当前操作人员
private RWGLrwmxVO rwmxVO; //任务明细信息解析器
private ArrayList swjgList;
private ArrayList swryList;
private ArrayList yxjbList;
private ArrayList cfzqList;
private BigDecimal jh_xh;
private boolean startNow;
private RWGLspecialDataVO specialData;
private UploadedFile myFile1; //上传附件
private UploadedFile myFile2; //上传附件
private UploadedFile myFile3; //上传附件
private UploadedFile myFile4; //上传附件
private UploadedFile myFile5; //上传附件
private UploadedFile myFile6;
private UploadedFile myFile7;
private UploadedFile myFile8;
private UploadedFile myFile9;
private UploadedFile myFile10;
public RWGLjhmxMBean() {
startNow=false;//默认是不立即启动计划
swry_dm = (String) WebUtil.eval("#{user.userID}");
String jhxhS = WebUtil.getParameterFromContextMap("jhxh"); //获取页面打开时传入的计划序号
//如果计划序号为空,表示新建任务,不获取数据,避免异常
if (jhxhS != null && !jhxhS.equals("")) {
try {jh_xh = new BigDecimal(jhxhS);}catch (NumberFormatException e){}
LogWritter.sysDebug("got jh_xh="+jh_xh);
}
//获取屏幕显示的所有数据
//this.getViewObjects();
}
public void setJhmxVO(RWGLjhrwVO jhmxVO) {
this.jhmxVO = jhmxVO;
}
public void setRwlxList(ArrayList rwlxList) {
this.rwlxList = rwlxList;
}
public void setRwxlList(ArrayList rwxlList) {
this.rwxlList = rwxlList;
}
public void setRwlxDmb(ArrayList rwlxDmb) {
this.rwlxDmb = rwlxDmb;
}
public void setSwjgList(ArrayList swjgList) {
this.swjgList = swjgList;
}
public void setSwryList(ArrayList swryList) {
this.swryList = swryList;
}
public void setYxjbList(ArrayList yxjbList) {
this.yxjbList = yxjbList;
}
public void setCfzqList(ArrayList cfzqList) {
this.cfzqList = cfzqList;
}
public void setRwmxVO(RWGLrwmxVO rwmxVO) {
this.rwmxVO = rwmxVO;
}
public void setJh_xh(BigDecimal jh_xh) {
this.jh_xh = jh_xh;
}
public void setSpecialData(RWGLspecialDataVO specialData) {
this.specialData = specialData;
}
public void setMyFile1(UploadedFile myFile1) {
this.myFile1 = myFile1;
}
public void setMyFile10(UploadedFile myFile10) {
this.myFile10 = myFile10;
}
public void setMyFile2(UploadedFile myFile2) {
this.myFile2 = myFile2;
}
public void setMyFile3(UploadedFile myFile3) {
this.myFile3 = myFile3;
}
public void setMyFile4(UploadedFile myFile4) {
this.myFile4 = myFile4;
}
public void setMyFile5(UploadedFile myFile5) {
this.myFile5 = myFile5;
}
public void setMyFile6(UploadedFile myFile6) {
this.myFile6 = myFile6;
}
public void setMyFile7(UploadedFile myFile7) {
this.myFile7 = myFile7;
}
public void setMyFile8(UploadedFile myFile8) {
this.myFile8 = myFile8;
}
public void setMyFile9(UploadedFile myFile9) {
this.myFile9 = myFile9;
}
public RWGLjhrwVO getJhmxVO() {
if (jhmxVO==null) {
LogWritter.sysDebug("get view objects before getting jhmxVO");
try {
this.getViewObjects();
} catch (Exception ex) {
ex.printStackTrace();
}
}
return jhmxVO;
}
public ArrayList getRwlxList() {
return rwlxList;
}
public ArrayList getRwxlList() {
if (rwxlList==null){
LogWritter.sysDebug("get view objects before getting rwxlList");
try {
this.getViewObjects();
} catch (Exception ex) {
ex.printStackTrace();
}
}
return rwxlList;
}
public ArrayList getRwlxDmb() {
return rwlxDmb;
}
public ArrayList getSwjgList() {
if (swjgList==null){
LogWritter.sysDebug("get view objects before getting swjgList");
try {
this.getViewObjects();
} catch (Exception ex) {
ex.printStackTrace();
}
}
return swjgList;
}
public ArrayList getSwryList() {
if (swryList==null) {
LogWritter.sysDebug("get view objects before getting swryList");
try {
this.getViewObjects();
} catch (Exception ex) {
ex.printStackTrace();
}
}
return swryList;
}
public ArrayList getYxjbList() {
if (yxjbList==null) {
LogWritter.sysDebug("get view objects before getting yxjbList");
try {
this.getViewObjects();
} catch (Exception ex) {
ex.printStackTrace();
}
}
return yxjbList;
}
public ArrayList getCfzqList() {
if (cfzqList==null) {
LogWritter.sysDebug("get view objects before getting cfzqList");
try {
this.getViewObjects();
} catch (Exception ex) {
ex.printStackTrace();
}
}
return cfzqList;
}
public RWGLrwmxVO getRwmxVO() {
if (rwmxVO==null) {
LogWritter.sysDebug("get view objects before getting rwmxVO");
try {
this.getViewObjects();
} catch (Exception ex) {
ex.printStackTrace();
}
}
return rwmxVO;
}
public BigDecimal getJh_xh() {
return jh_xh;
}
public RWGLspecialDataVO getSpecialData() {
return specialData;
}
public UploadedFile getMyFile1() {
return myFile1;
}
public UploadedFile getMyFile10() {
return myFile10;
}
public UploadedFile getMyFile2() {
return myFile2;
}
public UploadedFile getMyFile3() {
return myFile3;
}
public UploadedFile getMyFile4() {
return myFile4;
}
public UploadedFile getMyFile5() {
return myFile5;
}
public UploadedFile getMyFile6() {
return myFile6;
}
public UploadedFile getMyFile7() {
return myFile7;
}
public UploadedFile getMyFile8() {
return myFile8;
}
public UploadedFile getMyFile9() {
return myFile9;
}
private void getViewObjects() throws Exception{
RWGLaprwjhReqEvent reqmx = new RWGLaprwjhReqEvent();
reqmx.setDealMethod("getAllObjects");
reqmx.setSwry_dm(swry_dm);
//如果没有计划序号,尝试从页面上取得
if (jh_xh==null){
String jhxhS = WebUtil.getParameterFromContextMap(
"jhxh");
if (jhxhS != null && !jhxhS.equals("")) {
LogWritter.sysDebug("jhxhS='"+jhxhS+"'");
try {
jh_xh = new BigDecimal(jhxhS);
} catch (NumberFormatException ex) {}
}
LogWritter.sysDebug("got jhxh="+jh_xh+" from form");
}
//无法获取计划序号,则表明是新建任务
if (jh_xh != null) {
LogWritter.sysDebug("getting data by jhxh=" + jh_xh);
reqmx.setJh_xh(jh_xh);
} else {
LogWritter.sysDebug("getting view objects for new jh");
}
//调用代理方法
ISsglyService service = new SsglyDelegate();
ResponseEvent resp = null;
try {
resp = service.invokeTask(reqmx);
} catch (Exception e) {
e.printStackTrace();
}
//处理ResponseEvent
RWGLaprwjhResEvent ssglyRes = (RWGLaprwjhResEvent) resp;
//取出计划的数据
if (ssglyRes.getJhrwVO() != null) {
jhmxVO = ssglyRes.getJhrwVO();
rwmxVO = new RWGLrwmxVO();
rwmxVO.setRwmxxx(jhmxVO.getRwmxxx());
} else {
jhmxVO = new RWGLjhrwVO();
rwmxVO=new RWGLrwmxVO();
}
//获取界面上的任务类型和任务小类
//获取任务类型
if (jhmxVO.getRwlx_dm()==null || jhmxVO.getRwlx_dm().equals("")){
String rwlxS = WebUtil.getParameterFromContextMap(
"rwlx");
LogWritter.sysDebug("rwlxS='"+rwlxS+"'");
if (rwlxS != null && !rwlxS.equals("")) jhmxVO.setRwlx_dm(rwlxS);
else throw new TaxBaseBizException("YCRWGL10001");
}
//获取任务小类
if (jhmxVO.getRwxl_dm()==null || jhmxVO.getRwxl_dm().equals("")){
String rwxlS = WebUtil.getParameterFromContextMap(
"rwxl");
LogWritter.sysDebug("rwxlS='"+rwxlS+"'");
if (rwxlS != null && !rwxlS.equals("")) jhmxVO.setRwxl_dm(rwxlS);
else throw new TaxBaseBizException("YCRWGL10001");
}
if (rwmxVO.getRwmxxx()==null) rwmxVO.setRwmxxx("memo=;;");
//取出任务种类代码表的信息
//已废止
// rwlxDmb = ssglyRes.getRwlxDmb();
// rwxlList = new ArrayList();
// RWGLdmbDxlVO dxl;
// for (int i = 0; i < rwlxDmb.size(); i++) {
// dxl = (RWGLdmbDxlVO) rwlxDmb.get(i);
// rwxlList.add(new SelectItem(dxl.getXl_dm(),
// dxl.getDl_dm() + dxl.getDl_mc() + "||" +
// dxl.getXl_dm() + dxl.getXl_mc()));
// }
//获取可选机构列表
ArrayList tempList = ssglyRes.getSwjgList();
swjgList = new ArrayList();
swjgList.add(new SelectItem("0", "<自动>"));
SJWHzbzVO tempZb = null;
for (int i = 0; i < tempList.size(); i++) {
tempZb = (SJWHzbzVO) tempList.get(i);
swjgList.add(new SelectItem(tempZb.getDml_mc(), tempZb.getMc()));
}
//获取可选人员列表
tempList = ssglyRes.getSwryList();
swryList = new ArrayList();
swryList.add(new SelectItem("0", "<自动>"));
tempZb = null;
for (int i = 0; i < tempList.size(); i++) {
tempZb = (SJWHzbzVO) tempList.get(i);
swryList.add(new SelectItem(tempZb.getDml_mc(), tempZb.getMc()));
}
if (jhmxVO.getJh_xh() == null) {
jhmxVO.setCbry_dm("0");//设定默认承办人员
}
//填写优先级列表
yxjbList = new ArrayList();
yxjbList.add(new SelectItem("1", "重要"));
yxjbList.add(new SelectItem("2", "一般"));
if (jhmxVO.getJh_xh() == null) {
jhmxVO.setRwyxjb("2");
}
//填写重复周期列表
cfzqList = new ArrayList();
cfzqList.add(new SelectItem("0", "不重复"));
cfzqList.add(new SelectItem("01", "每日"));
cfzqList.add(new SelectItem("07", "每周"));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -