📄 queryaction.java~9~
字号:
package com.ksgl.system.zjxx;import org.apache.commons.logging.*;import com.core.web.*;import com.ksgl.map.*;import java.util.List;import java.io.File;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2006</p> * <p>Company: </p> * @author hj * @version 1.0 */public class QueryAction extends Action{ private static Log log = LogFactory.getLog(QueryAction.class); T_sys_news objmap = new T_sys_news(); private List list, lblist; private String id; public String execute() throws Exception { BO bo = new BO(); if (id == null) { list = bo.queryList(paging, condition); } else {//ReName String updatetime = objmap.getUpdatetime(); updatetime = updatetime.replaceAll("-",""); updatetime = updatetime.replaceAll(":",""); updatetime = updatetime.replaceAll(" ",""); String sGeneFileName = updatetime+".htm";//filePath&imagePath File path = new File(System.getProperty("user.dir")); String filePath = path.getParent() + File.separator + "webapps" + File.separator+"ROOT"+ File.separator+"template"+File.separator;//DeleteHtml File html = new File(filePath+sGeneFileName); html.delete();//DeleteHtmlDone---------------------------------------------------- bo.delete(); list = bo.queryList(paging, condition); } return SUCCESS; } public List getList() { return list; } public T_sys_news getObjmap() { return objmap; } public String getId() { return id; } public List getLblist() { return lblist; } public void setList(List list) { this.list = list; } public void setObjmap(T_sys_news objmap) { this.objmap = objmap; } public void setId(String id) { this.id = id; } public void setLblist(List lblist) { this.lblist = lblist; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -