yun-zuoyi
刘敏 6 years ago
commit 9e3a454329

@ -399,4 +399,30 @@ public class AndonHqlPack {
return result;
}
/**
*
* @param andonAlarmType
* @return
*/
public static DdlPackBean packAndonAlarmType(AndonAlarmType andonAlarmType) {
DdlPackBean result = new DdlPackBean();
getStringBuilderPack(andonAlarmType, result);
return result;
}
/**
*
* @param andonStatus
* @return
*/
public static DdlPackBean packAndonStatus(AndonStatus andonStatus) {
DdlPackBean result = new DdlPackBean();
getStringBuilderPack(andonStatus, result);
return result;
}
}

@ -56,7 +56,7 @@ public class AndonEnumUtil {
SECOND_APPROVAL("20","二级审批"),
THIRD_APPROVAL("30","三级审批"),
FOUTH_APPROVAL("40","四级审批"),
FINISH("100","已审批");
FINISH("60","已审批");
private String value;
private String description;
@ -200,18 +200,18 @@ public class AndonEnumUtil {
/**
*
* 10 = 20 = 30 = 40 = 50 = ,60 = 70 =
* 10 = 20 = 30 = 40 = 50 = 60 = 70 =
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ANDON_ACTION_FLAG{
CALL_ACTION("10","呼叫动作"),
SIGN_ACTION("20","签到动作"),
CANCEL_ACTION("30", "撤销动作"),
RESOLVE_ACTION("40", "解决动作"),
SHIFG_CALL_ACTION("50", "转呼动作"),
COMMIT_ACTION("60","提交动作"),
PASS_ACTION("70","审批动作");
RESOLVE_ACTION("30", "解决动作"),
CANCEL_ACTION("40", "撤销动作"),
COMMIT_ACTION("50","提交动作"),
PASS_ACTION("60","审批动作"),
SHIFG_CALL_ACTION("70", "转呼动作");
private String value;
private String description;

@ -335,7 +335,7 @@ public class BlockFormEnumUtil {
}
}
/**
*
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ELEMENT_SHOW_STATUS {
@ -2036,4 +2036,85 @@ public class BlockFormEnumUtil {
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ELEMENT_TREE_DIRECTION {
horizontal(1, "horizontal", "横向"),
vertical(2, "vertical", "竖向");
private int value;
private String code;
private String description;
private ELEMENT_TREE_DIRECTION (int value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
}
public int getValue() {
return value;
}
public String getCode() {
return code;
}
public String getDescription() {
return description;
}
public static String valueOfCode(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].code;
}
}
return tmp;
}
public static int codeOfValue(String code) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {
if (values()[i].code.equals(code)) {
tmp = values()[i].value;
}
}
return tmp;
}
public static String valueOfDescription(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
public static ELEMENT_TREE_DIRECTION valueOf(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
return values()[i];
}
}
return null;
}
public static String codeOfDescription(String code) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].code.equals(code)) {
tmp = values()[i].description;
}
}
return tmp;
}
}
}

@ -113,6 +113,7 @@ public class CommonEnumUtil {
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum TRUE_OR_FALSE {
TRUE(1, "是"), FALSE(2, "否");

@ -45,11 +45,11 @@ public class BfElementPropertyVirtual extends BaseBean {
private Long dataObjectId;
@Column(name="PROPERTY_CODE")
@ApiParam(value ="属性代码")
@ApiParam(value ="虚拟属性代码")
private String propertyCode;
@Column(name="PROPERTY_NAME")
@ApiParam(value ="元素名称")
@ApiParam(value ="虚拟属性名称")
private String propertyName;
@Column(name="PROPERTY_TYPE")

Loading…
Cancel
Save