📄 htdltjrwmbean.java
字号:
tempList = getDsrwResp.getYbsrwlbVOList();
} catch (Exception e) {
throw new Exception(e.toString());
}
return tempList;
}
public ArrayList getBlhList() {
return blhList;
}
public String getFz() {
return fz;
}
public String getRw_mc() {
return rw_mc;
}
public String getZl_lx() {
return zl_lx;
}
public int getZlsj() {
return zlsj;
}
public String getZxpl() {
return zxpl;
}
public int getZxyxj() {
return zxyxj;
}
public ArrayList getYbsrwVOList() throws Exception {
// if (ybsrwVOList == null) {
// ybsrwVOList = (ArrayList) getSplitData();
ybsrwVOList = (ArrayList)this.getContentList();
//}
return ybsrwVOList;
}
//覆盖父类的方法
public List getContentList() throws Exception {
/* jsf bug: 把pagedBean设为request scope时,
如果datatable引用的值为null, 则datatable中的CommandLink无法跳转到指定的页面,
所以要返回一个不为空的list。这是有两个form的情况,一个包含datatable,一个包含分页的
scroller控件。(在单一form的情况下,分页不能正常跳转)
但是,如果只有一个form时,例如form只包含分页控件,则不需要如下这段代码,否则出错。
因此,在这种情况下,为保证兼容性,要在datatable外包含多一个form,即使table中没有CommandLink。
*/
if (objectList==null) {
// need for restore view phase
String pgNo = WebUtil.getParameterFromContextMap("update:pageNo");
if (pgNo != null && pgNo.length() != 0) {
pageNo = Integer.parseInt(pgNo);
if (totalPageCount > 0) {
if (totalPageCount < pageNo) {
pageNo = totalPageCount;
}
}
this.refreshObjectList(pageNo);
} else {
this.refreshObjectList(1);
}
}
//排序方法
String coumn = WebUtil.getParameterFromContextMap("sortCoulmn");
if (coumn != null && !"".equals(coumn)) {
_sort = WebUtil.getParameterFromContextMap("sort");
_ascending = Boolean.valueOf(WebUtil.getParameterFromContextMap(
"ascending")).booleanValue();
SortColumns(coumn);
} else {
_sort = WebUtil.getParameterFromContextMap("update:sort");
_ascending = Boolean.valueOf(WebUtil.getParameterFromContextMap(
"update:ascending")).booleanValue();
sort(_sort, _ascending);
}
return objectList;
}
public String getBlh_mc() {
return blh_mc;
}
public int getFormatZlsj() {
if ((zxpl.equals("1")) || ("6".equals(zxpl))) {
formatZlsj = 0;
} else {
if (zl_lx.equals("0")) {
formatZlsj = ( -zlsj);
} else {
formatZlsj = zlsj;
}
}
return formatZlsj;
}
//执行优先级的可供选择项
public ArrayList getZxyxjList() {
ArrayList retList = new ArrayList();
retList.add(new SelectItem(new Integer(0), "-请选择-"));
retList.add(new SelectItem(new Integer(1), "1"));
retList.add(new SelectItem(new Integer(2), "2"));
retList.add(new SelectItem(new Integer(3), "3"));
retList.add(new SelectItem(new Integer(4), "4"));
retList.add(new SelectItem(new Integer(5), "5"));
return retList;
}
//增量类型的可供选择项
public ArrayList getZllxList() {
ArrayList retList = new ArrayList();
retList.add(new SelectItem(new String("0"), "前"));
retList.add(new SelectItem(new String("1"), "后"));
return retList;
}
//可供选择的增量时间
public ArrayList getZlsjList() {
ArrayList retList = new ArrayList();
retList.add(new SelectItem(new Integer(1), "1"));
retList.add(new SelectItem(new Integer(2), "2"));
retList.add(new SelectItem(new Integer(3), "3"));
retList.add(new SelectItem(new Integer(4), "4"));
retList.add(new SelectItem(new Integer(5), "5"));
retList.add(new SelectItem(new Integer(6), "6"));
retList.add(new SelectItem(new Integer(7), "7"));
retList.add(new SelectItem(new Integer(8), "8"));
retList.add(new SelectItem(new Integer(9), "9"));
retList.add(new SelectItem(new Integer(10), "10"));
retList.add(new SelectItem(new Integer(11), "11"));
retList.add(new SelectItem(new Integer(12), "12"));
retList.add(new SelectItem(new Integer(13), "13"));
retList.add(new SelectItem(new Integer(14), "14"));
retList.add(new SelectItem(new Integer(15), "15"));
return retList;
}
//可供选择的执行频率
public ArrayList getZxplList() {
ArrayList retList = new ArrayList();
retList.add(new SelectItem(new String(""), "-请选择-"));
retList.add(new SelectItem(new String("6"), "人工调度"));
retList.add(new SelectItem(new String("1"), "每天"));
retList.add(new SelectItem(new String("2"), "每月"));
retList.add(new SelectItem(new String("3"), "每季"));
retList.add(new SelectItem(new String("4"), "每半年"));
retList.add(new SelectItem(new String("5"), "每年"));
return retList;
}
//可供选择的分组列表
public ArrayList getFzList() {
ArrayList retList = new ArrayList();
retList.add(new SelectItem(new String(""), "-----请选择-----"));
retList.add(new SelectItem(new String("分组一"), "分组一"));
retList.add(new SelectItem(new String("分组二"), "分组二"));
retList.add(new SelectItem(new String("分组三"), "分组三"));
retList.add(new SelectItem(new String("分组四"), "分组四"));
retList.add(new SelectItem(new String("分组五"), "分组五"));
return retList;
}
public String getAddTips() {
return addTips;
}
public String getUpdateTips() {
return updateTips;
}
public String getDelTips() {
return delTips;
}
public String getSearchBLH() {
return searchBLH;
}
public ArrayList getSearchBLHList() {
return searchBLHList;
}
public String getCsl() {
return csl;
}
public String getKeyWords() {
return keyWords;
}
public String getSelectedRw() {
return selectedRw;
}
public void setFz(String fz) {
this.fz = fz;
}
public void setRw_mc(String rw_mc) {
this.rw_mc = rw_mc;
}
public void setZl_lx(String zl_lx) {
this.zl_lx = zl_lx;
}
public void setZlsj(int zlsj) {
this.zlsj = zlsj;
}
public void setZxpl(String zxpl) {
this.zxpl = zxpl;
}
public void setZxyxj(int zxyxj) {
this.zxyxj = zxyxj;
}
public void setBlhList(ArrayList blhList) {
this.blhList = blhList;
}
public void setYbsrwVOList(ArrayList ybsrwVOList) {
this.ybsrwVOList = ybsrwVOList;
}
public void setBlh_mc(String blh_mc) {
this.blh_mc = blh_mc;
}
public void setFormatZlsj(int formatZlsj) {
this.formatZlsj = formatZlsj;
}
public void setAddTips(String addTips) {
this.addTips = addTips;
}
public void setUpdateTips(String updateTips) {
this.updateTips = updateTips;
}
public void setDelTips(String delTips) {
this.delTips = delTips;
}
public void setSearchBLH(String searchBLH) {
this.searchBLH = searchBLH;
}
public void setSearchBLHList(ArrayList searchBLHList) {
this.searchBLHList = searchBLHList;
}
public void setCsl(String csl) {
this.csl = csl;
}
public void setKeyWords(String keyWords) {
this.keyWords = keyWords;
}
public void setSelectedRw(String selectedRw) {
this.selectedRw = selectedRw;
}
public void zxplChanged(ValueChangeEvent event) {
String tmp = (String) event.getNewValue();
if (tmp.equals("2") || tmp.equals("3") || tmp.equals("4") ||
tmp.equals("5")) {
} else {
}
}
//把用户输入的值插入数据库中
public String addYbsrw() throws Exception {
int flag = 0; //0表示检查成功
//在这里检查输入的合法性
//改在页面中验证
// if ((this.rw_mc == null) || (EMPTY_STRING.equals(rw_mc))) {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -