Commit 23b9799d authored by zhoumaotao's avatar zhoumaotao

delete掉

parent 3c4619a0
package com.gavel.kwell.utils;
import com.gavel.common.annotation.GavelParams;
import com.gavel.common.module.ModuleParams;
import java.util.ArrayList;
import java.util.List;
@GavelParams("901000000")
public enum KwellParamEnum {
HZGD_BM("KWELLU001", "用户可操作的检验部门", "U", "用户可操作的检验部门", "E", "select BM_ID as ID, BM_CODE as CODE, BM_NAME as NAME from BM where isnull(BM_TYBZ,'N')='N' order by BM_CODE", "", ""),
HZGD_GX("KWELLB001", "设置可操作标准工序", "B", "设置可操作标准工序", "E", "select BZGX_ID as ID, BZGX_CODE as CODE, BZGX_NAME || '--' || GZZX_NAME as NAME from BZGX left join GZZX on GZZX_ID = BZGX_GZZXID where isnull(BZGX_TYBZ,'N')='N' order by BZGX_CODE", "", "");
private String id; // 参数ID
private String name; //参数名称
private String zjid; // 组件ID
private String type; // 参数类型
private String desc; // 参数描述
private String zlx; // 值类型
private String zy; // 值域
private String qsz; // 缺省值
private String qszsm; //缺省值说明
KwellParamEnum(String id, String name, String type, String desc) {
this.id = id;
this.name = name;
this.type = type;
this.desc = desc;
}
KwellParamEnum(String id, String name, String type, String desc, String zlx) {
this.id = id;
this.name = name;
this.type = type;
this.desc = desc;
this.zlx = zlx;
}
KwellParamEnum(String id, String name, String type, String desc, String zlx, String qsz) {
this.id = id;
this.name = name;
this.type = type;
this.desc = desc;
this.zlx = zlx;
this.qsz = qsz;
this.qszsm = qsz;
}
KwellParamEnum(String id, String name, String type, String desc, String zlx, String qsz, String qszsm) {
this.id = id;
this.name = name;
this.type = type;
this.desc = desc;
this.zlx = zlx;
this.qsz = qsz;
this.qszsm = qszsm;
}
KwellParamEnum(String id, String name, String type, String desc, String zlx, String zy, String qsz, String qszsm) {
this.id = id;
this.name = name;
this.type = type;
this.desc = desc;
this.zlx = zlx;
this.zy = zy;
this.qsz = qsz;
this.qszsm = qszsm;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getZjid() {
return zjid;
}
public void setZjid(String zjid) {
this.zjid = zjid;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getDesc() {
return desc;
}
public void setDesc(String desc) {
this.desc = desc;
}
public String getZlx() {
return zlx;
}
public void setZlx(String zlx) {
this.zlx = zlx;
}
public String getZy() {
return zy;
}
public void setZy(String zy) {
this.zy = zy;
}
public String getQsz() {
return qsz;
}
public void setQsz(String qsz) {
this.qsz = qsz;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getQszsm() {
return qszsm;
}
public void setQszsm(String qszsm) {
this.qszsm = qszsm;
}
public static List<ModuleParams> toList(){
List<ModuleParams> list = new ArrayList<>();
for (KwellParamEnum e : values()) {
ModuleParams moduleParams = new ModuleParams();
moduleParams.setCsid(e.getId());
moduleParams.setCsmc(e.getName());
moduleParams.setCssm(e.getDesc());
moduleParams.setCslx(e.getType());
moduleParams.setZlx(e.getZlx());
moduleParams.setZy(e.getZy());
moduleParams.setQsz(e.getQsz());
moduleParams.setQszsm(e.getQszsm());
list.add(moduleParams);
}
return list;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment