|  |  |  | 
|---|
|  |  |  | ; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private String desc; | 
|---|
|  |  |  | CrnStatusType(String desc){ | 
|---|
|  |  |  |  | 
|---|
|  |  |  | CrnStatusType(String desc) { | 
|---|
|  |  |  | this.desc = desc; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public static CrnStatusType process(Integer ioType) { | 
|---|
|  |  |  | if (ioType == 2) { | 
|---|
|  |  |  | return MACHINE_PAKOUT; | 
|---|
|  |  |  | } else if (ioType < 100 && ioType != 3 && ioType != 6 && ioType != 11) { | 
|---|
|  |  |  | return MACHINE_PAKIN; | 
|---|
|  |  |  | } else if (ioType == 3) { | 
|---|
|  |  |  | return MACHINE_SITE_MOVE; | 
|---|
|  |  |  | } else if (ioType == 11) { | 
|---|
|  |  |  | return MACHINE_STOCK_MOVE; | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | return MACHINE_ERROR; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getDesc() { | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setDesc(String desc) { | 
|---|
|  |  |  | this.desc = desc; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public static CrnStatusType process(Integer ioType){ | 
|---|
|  |  |  | if (ioType>100) { | 
|---|
|  |  |  | return MACHINE_PAKIN; | 
|---|
|  |  |  | } else if (ioType < 100 && ioType!=3 && ioType!=6 && ioType!=11) { | 
|---|
|  |  |  | return MACHINE_PAKOUT; | 
|---|
|  |  |  | } else if (ioType == 3) { | 
|---|
|  |  |  | return MACHINE_SITE_MOVE; | 
|---|
|  |  |  | } else if (ioType == 11) { | 
|---|
|  |  |  | return MACHINE_STOCK_MOVE; | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | return MACHINE_ERROR; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|