weaver-hrm-salary/src/com/engine/salary/transmethod/TaxRateTransMethod.java

46 lines
1.1 KiB
Java
Raw Normal View History

2022-03-02 11:12:22 +08:00
package com.engine.salary.transmethod;
2022-03-28 10:49:23 +08:00
import org.apache.commons.lang.StringUtils;
import java.util.ArrayList;
2022-03-02 11:12:22 +08:00
public class TaxRateTransMethod {
public static String getSystemTypeName(String type) {
switch (type) {
case "1":
return "系统表单";
case "0":
return "自定义表单";
default:
return "自定义表单";
}
}
public static String getCheckBoxPopedom(String type) {
if ("1".equals(type))
return "false";
else
return "true";
}
2022-03-28 10:49:23 +08:00
/**
* @description 操作的显示隐藏
*/
public static ArrayList getOpratePopedomWithType(String type) throws Exception {
ArrayList returnList = new ArrayList();
String edit = "true";
String delete = "true";
String log = "true";
if(StringUtils.equals(type, "1")){
edit = "false";//启用状态显示禁用
delete = "false";
}
returnList.add(edit);
returnList.add(delete);
returnList.add(log);
return returnList;
}
2022-03-02 11:12:22 +08:00
}