upstate.java~14~

来自「一个专门用来快速开发网站的框架」· JAVA~14~ 代码 · 共 69 行

JAVA~14~
69
字号
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)
      {
        String st = this.getState();
      System.out.println(st+"      *////////////////////////////");
       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="";
    this.state = state;
  }

  public void setList(List list) {
    this.list = list;
  }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?