upstate.java~11~
来自「一个专门用来快速开发网站的框架」· JAVA~11~ 代码 · 共 67 行
JAVA~11~
67 行
package com.ksgl.system.hzxm;
import java.util.*;
import com.core.web.*;
import com.ksgl.map.*;
import com.opensymphony.xwork.ActionContext;
/**
* <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;
String result = "success";
T_sys_news objmap = new T_sys_news();
public String execute() throws Exception {
BO bo = new BO();
if (id != null)
{
System.out.println(this.getState()+" *////////////////////////////");
bo.update(objmap,this.getId(),this.getState());
list = bo.queryList(paging, condition);
}
return result;
}
public String getId() {
return id;
}
public String getState() {
return state;
}
public List getList() {
return list;
}
public void setId(String id) {
this.id = id;
}
public void setState(String state) {
this.state = state;
}
public void setList(List list) {
this.list = list;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?