📄 restypedeleteaction.java
字号:
package com.comingnet.action;
import com.comingnet.bean.ResourceTypeDAO;
import com.comingnet.bean.UserInfor;
import com.comingnet.intercepter.UserSessionAware;
import com.opensymphony.xwork2.ActionSupport;
public class ResTypeDeleteAction extends ActionSupport implements UserSessionAware {
private int lbid ;
private int xxbh ;
private UserInfor userSession=null;
private String auid_test="10";
public int getLbid() {
return lbid;
}
public void setLbid(int lbid) {
this.lbid = lbid;
}
public int getXxbh() {
return xxbh;
}
public void setXxbh(int xxbh) {
this.xxbh = xxbh;
}
public String getAuid_test() {
return auid_test;
}
public void setAuid_test(String auid_test) {
this.auid_test = auid_test;
}
public UserInfor getUserSession() {
return userSession;
}
public void setUserSession(UserInfor userSession) {
this.userSession = userSession;
}
public String execute(){
boolean flag ;
ResourceTypeDAO dao = new ResourceTypeDAO() ;
setXxbh(userSession.getUserxxbh()) ;
flag = dao.deleteResType(this.getLbid(),this.getXxbh()) ;
if(flag){
return SUCCESS ;
}else{
return ERROR ;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -