| | |
| | | } |
| | | |
| | | |
| | | public interface workOrderStatus{ |
| | | int waitConfirm = 0; |
| | | int waitAllocation = 1; |
| | | int waitDeal = 2; |
| | | int sheClose = 3; |
| | | int wtsClose = 4; |
| | | int close = 5; |
| | | public enum WorkOrderStatus{ |
| | | waitConfirm( 0, "待分配WTS","待分配WTS",""), |
| | | waitAllocation(1, "待分配任务","待分配任务",""), |
| | | waitDeal(2, "待处理","待处理",""), |
| | | sheClose(3, "已解决","SHE已关闭",""), |
| | | wtsClose(4, "已解决","WTS已关闭",""), |
| | | close(5, "已解决","已解决",""), |
| | | urge (6, "催促","","") |
| | | ; |
| | | |
| | | private int status; |
| | | private String statusInfo; |
| | | private String logTitle; |
| | | private String noticeContent; |
| | | |
| | | // 构造方法 |
| | | WorkOrderStatus(int status, String statusInfo,String logTitle,String noticeContent ) { |
| | | this.status = status; |
| | | this.statusInfo = statusInfo; |
| | | this.logTitle = logTitle; |
| | | this.noticeContent = noticeContent; |
| | | } |
| | | public static String getName(int index) { |
| | | for (WorkOrderStatus c : WorkOrderStatus.values()) { |
| | | if (c.getKey() == index) { |
| | | return c.statusInfo; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public int getKey() { |
| | | return status; |
| | | } |
| | | |
| | | public void setKey(int key) { |
| | | this.status = status; |
| | | } |
| | | |
| | | public String getStatusInfo() { |
| | | return statusInfo; |
| | | } |
| | | |
| | | public void setStatusInfo(String statusInfo) { |
| | | this.statusInfo = statusInfo; |
| | | } |
| | | |
| | | public String getLogTitle() { |
| | | return logTitle; |
| | | } |
| | | |
| | | public void setLogTitle(String logTitle) { |
| | | this.logTitle = logTitle; |
| | | } |
| | | |
| | | public String getNoticeContent() { |
| | | return noticeContent; |
| | | } |
| | | |
| | | public void setNoticeContent(String noticeContent) { |
| | | this.noticeContent = noticeContent; |
| | | } |
| | | } |
| | | |
| | | |
| | | } |