upstate.java~17~
来自「一个专门用来快速开发网站的框架」· JAVA~17~ 代码 · 共 78 行
JAVA~17~
78 行
package com.ksgl.system.hzxm;
import java.util.*;
import com.core.web.Action;
import com.ksgl.map.*;
import com.opensymphony.xwork.*;
/**
* <p>Title: literature item </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2007</p>
*
* <p>Company: </p>
*
* @author hj
* @version 1.0
*/
public class UpState extends Action
{
public UpState() {
}
private List list;
String id,state,lbbm;
String result = "success";
T_sys_news objmap = new T_sys_news();
public String execute() throws Exception {
BO bo = new BO();
if (id != null)
{
String st = this.getState();
System.out.println(st+" *////////////////////////////");
bo.update(objmap,this.getId(),this.getState());
this.setLbbm(((com.ksgl.map.T_sys_gly)ActionContext.getContext().getSession().get("user")).getLbbm());
list = bo.queryList(paging, condition);
this.setState("");
}
return result;
}
public String getId() {
return id;
}
public String getState() {
return state;
}
public List getList() {
return list;
}
public String getLbbm() {
return lbbm;
}
public void setId(String id) {
this.id = id;
}
public void setState(String state) {
this.state = state;
}
public void setList(List list) {
this.list = list;
}
public void setLbbm(String lbbm) {
this.lbbm = lbbm;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?