Merge branch 'dev' of http://git.estsh.com/i3-IMPP/i3plus-pojo into dev
commit
78c8d3b689
@ -0,0 +1,19 @@
|
||||
package cn.estsh.i3plus.pojo.model.common;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : yunhao
|
||||
* @CreateDate : 2019-06-20 18:50
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
public class ExportDataModel {
|
||||
|
||||
private String className;
|
||||
|
||||
private String exportData;
|
||||
|
||||
}
|
@ -0,0 +1,79 @@
|
||||
package cn.estsh.i3plus.pojo.wms.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : amy
|
||||
* @CreateDate : 2019-06-21 13:13
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Api(value="库存转储",description = "库存转储")
|
||||
public class SapMovo extends SapBase{
|
||||
|
||||
@ApiParam(value = "编号",example = "1")
|
||||
@AnnoOutputColumn
|
||||
private String refid;
|
||||
|
||||
@ApiParam(value = "业务类型",example = "1")
|
||||
@AnnoOutputColumn
|
||||
private String action;
|
||||
|
||||
@ApiParam(value = "行号",example = "1")
|
||||
@AnnoOutputColumn
|
||||
private Integer zeile;
|
||||
|
||||
@ApiParam(value = "工厂",example = "1")
|
||||
@AnnoOutputColumn
|
||||
private String werks;
|
||||
|
||||
@ApiParam(value = "发出库存地点",example = "1")
|
||||
@AnnoOutputColumn
|
||||
private String lgort;
|
||||
|
||||
@ApiParam(value = "接收库存地点",example = "1")
|
||||
@AnnoOutputColumn
|
||||
private String umlgo;
|
||||
|
||||
@ApiParam(value = "物料编码",example = "1")
|
||||
@AnnoOutputColumn
|
||||
private String matnr;
|
||||
|
||||
@ApiParam(value = "旧物料编码(针对物料号切换)",example = "1")
|
||||
@AnnoOutputColumn
|
||||
private String ummat;
|
||||
|
||||
@ApiParam(value = "数量",example = "1")
|
||||
@AnnoOutputColumn
|
||||
private String erfmg;
|
||||
|
||||
@ApiParam(value = "计量单位",example = "1")
|
||||
@AnnoOutputColumn
|
||||
private String erfme;
|
||||
|
||||
@ApiParam(value = "库存状态",example = "1")
|
||||
@AnnoOutputColumn
|
||||
private String zstat;
|
||||
|
||||
@ApiParam(value = "特殊库存标识",example = "1")
|
||||
@AnnoOutputColumn
|
||||
private String sobkz;
|
||||
|
||||
@ApiParam(value = "特殊库存描述",example = "1")
|
||||
@AnnoOutputColumn
|
||||
private String htext;
|
||||
|
||||
@ApiParam(value = "状态",example = "1")
|
||||
@AnnoOutputColumn
|
||||
private String zzlzt;
|
||||
|
||||
@ApiParam(value = "不合格单据号",example = "1")
|
||||
@AnnoOutputColumn
|
||||
private String sgtxt;
|
||||
|
||||
}
|
@ -0,0 +1,74 @@
|
||||
package cn.estsh.i3plus.pojo.wms.dbinterface;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
public class WmsInterfaceEnumUtil {
|
||||
|
||||
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
||||
public enum DIRECTION_TYPE {
|
||||
SAP2WMS(10, "SAP2WMS", "SAP --> WMS"),
|
||||
WMS2SAP(20, "WMS2SAP", "WMS --> SAP"),
|
||||
MES2WMS(30, "MES2WMS", "MES --> WMS"),
|
||||
WMS2MES(40, "WMS2MES", "WMS --> MES");
|
||||
|
||||
private int value;
|
||||
private String name;
|
||||
private String description;
|
||||
|
||||
DIRECTION_TYPE() {
|
||||
}
|
||||
|
||||
DIRECTION_TYPE(int value, String name, String description) {
|
||||
this.value = value;
|
||||
this.name = name;
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public static String valueOf(int val) {
|
||||
String tmp = null;
|
||||
for (int i = 0; i < values().length; i++) {
|
||||
if (values()[i].value == val) {
|
||||
tmp = values()[i].getName();
|
||||
}
|
||||
}
|
||||
return tmp;
|
||||
}
|
||||
|
||||
public static int nameOf(String val) {
|
||||
int tmp = -1;
|
||||
for (int i = 0; i < values().length; i++) {
|
||||
if (values()[i].name.equals(val)) {
|
||||
tmp = values()[i].value;
|
||||
}
|
||||
}
|
||||
return tmp;
|
||||
}
|
||||
|
||||
/**
|
||||
* -1 不在范围内
|
||||
* @param desc
|
||||
* @return
|
||||
*/
|
||||
public static int descOf(String desc) {
|
||||
int tmp = -1;
|
||||
for (int i = 0; i < values().length; i++) {
|
||||
if (values()[i].description.equals(desc)) {
|
||||
tmp = values()[i].value;
|
||||
}
|
||||
}
|
||||
return tmp;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue