📄 popedomcheck.java
字号:
package com.system.action;
import com.bean.DTO.UserinforDTO;
public class popedomCheck{
String url="";
int departmentID;
int jobID;
public popedomCheck(UserinforDTO udt) {
super();
if(udt==null){
udt=new UserinforDTO();
}
this.departmentID=udt.getDepartmentID();
this.jobID=udt.getJobID();
}
public boolean adminCheck(){
if(this.jobID==1)
return true;
else
return false;
}
public boolean storeCheck1(){
if(this.jobID==1){
return true;
}
else if(departmentID==2&&this.jobID==2)
return true;
else
return false;
}
public boolean storeCheck2(){
if(this.jobID==1){
return true;
}
else if(departmentID==2&&jobID==3)
return true;
else
return false;
}
public boolean produceCheck1(){
if(this.jobID==1){
return true;
}
else if(departmentID==1&&jobID==2)
return true;
else
return false;
}
public boolean produceCheck2(){
if(departmentID==1&&jobID==3)
return true;
else
return false;
}
public boolean fundCheck1(){
if(this.jobID==1){
return true;
}
else if(departmentID==3&&jobID==2)
return true;
else
return false;
}
public boolean fundCheck2(){
if(this.jobID==1){
return true;
}
else if(departmentID==3&&jobID==3)
return true;
else
return false;
}
public boolean buyCheck1(){
if(this.jobID==1){
return true;
}
else if(departmentID==4&&jobID==2)
return true;
else
return false;
}
public boolean buyCheck2(){
if(this.jobID==1){
return true;
}
else if(departmentID==4&&jobID==3)
return true;
else
return false;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -