| | |
| | | } |
| | | |
| | | |
| | | public enum workOrderStatus{ |
| | | public enum WorkOrderStatus{ |
| | | waitConfirm( 0, "待分配WTS","待分配WTS",""), |
| | | waitAllocation(1, "待分配任务","待分配任务",""), |
| | | waitDeal(2, "待处理","待处理",""), |
| | |
| | | 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; |
| | | } |
| | | } |
| | | } |