|
|
@@ -144,4 +144,49 @@ public interface SwEnum { |
|
|
|
public static AbstractEnum.IntEnumBean TYPE_VIEW = instance.addEnum(4, "视图"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 数据集类型:::list-列表;form-表单;editList-编辑列表;tree;enum |
|
|
|
*/ |
|
|
|
class DatasetType extends StrEnum { |
|
|
|
public static DatasetType instance = new DatasetType(); |
|
|
|
|
|
|
|
public static StrEnumBean LISTR = instance.addEnum("listr", "查询列表"); |
|
|
|
public static StrEnumBean FORM = instance.addEnum("form", "表单"); |
|
|
|
public static StrEnumBean LISTW = instance.addEnum("listw", "编辑列表"); |
|
|
|
public static StrEnumBean TREE = instance.addEnum("tree", "树"); |
|
|
|
public static StrEnumBean ENUM = instance.addEnum("enum", "枚举"); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 过滤条件类型:::控件/参数/link/const |
|
|
|
*/ |
|
|
|
class FilterType extends StrEnum { |
|
|
|
public static FilterType instance = new FilterType(); |
|
|
|
|
|
|
|
public static StrEnumBean INPUT = instance.addEnum("input", "输入"); |
|
|
|
public static StrEnumBean PARAM = instance.addEnum("param", "参数"); |
|
|
|
public static StrEnumBean LINK = instance.addEnum("link", "关联"); |
|
|
|
public static StrEnumBean CONST = instance.addEnum("const", "常量"); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 操作符类型:::and/or/=/>=/<=/like/p |
|
|
|
*/ |
|
|
|
class OptType extends StrEnum { |
|
|
|
public static FilterType instance = new FilterType(); |
|
|
|
|
|
|
|
public static StrEnumBean AND = instance.addEnum("and", "且"); |
|
|
|
public static StrEnumBean OR = instance.addEnum("or", "或"); |
|
|
|
|
|
|
|
public static StrEnumBean EQ = instance.addEnum("=", "等于"); |
|
|
|
public static StrEnumBean NE = instance.addEnum("<>", "不等于"); |
|
|
|
public static StrEnumBean GT = instance.addEnum(">", "大于"); |
|
|
|
public static StrEnumBean GE = instance.addEnum(">=", "大于等于"); |
|
|
|
public static StrEnumBean LT = instance.addEnum("<", "小于"); |
|
|
|
public static StrEnumBean LE = instance.addEnum("<=", "小于等于"); |
|
|
|
public static StrEnumBean BT = instance.addEnum("bt", "介于"); |
|
|
|
public static StrEnumBean PLIKE = instance.addEnum("plike", "开始以"); |
|
|
|
public static StrEnumBean LIKE = instance.addEnum("like", "包含"); |
|
|
|
} |
|
|
|
} |