¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.core.tms.model; |
| | | |
| | | import com.doumee.core.utils.Constants; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | |
| | | import java.util.List; |
| | | |
| | | public class TMSContants { |
| | | |
| | | public interface InterfacePath { |
| | | String[] getSevenArrivalStatus = new String[]{"/tms/zhyt/getSevenArrivalStatus", "ãTMSãè¿7æ¥å°è´§æ
åµ"};//TMSè¿7æ¥å°è´§æ
嵿¥å£å°å |
| | | String[] getCurrentTransportationTask = new String[]{ "ãTMSã/zhyt/getCurrentTransportationTask", "ãTMSãå½åè¿è¾ä»»å¡"};//TMSå½åè¿è¾ä»»å¡æ¥å£å°å |
| | | String[] getDistributionOfDeliveryLocations = new String[]{"/tms/zhyt/getDistributionOfDeliveryLocations", "ãTMSãå
¨å½å°è´§å°å叿¥è¯¢æ¥è¯¢"};//TMSå
¨å½å°è´§å°å叿¥è¯¢æ¥è¯¢æ¥å£å°å |
| | | String[] getRealTimeInventory = new String[]{"/tms/zhyt/getRealTimeInventory", "ãTMSã宿¶åºåæ¥è¯¢"};//TMS宿¶åºåæ¥è¯¢æ¥å£å°å |
| | | String[] getInboundOutbound = new String[]{"/tms/zhyt/getInboundOutbound", "ãTMSãåºå
¥åºè®°å½æ¥è¯¢"};//TMSåºå
¥åºè®°å½æ¥è¯¢æ¥å£å°å |
| | | String[] getIntransitDetails = new String[]{"/tms/zhyt/getIntransitDetails", "ãTMSãå¨éæç»å表"};//TMSå¨éæç»å表æ¥å£å°å |
| | | String[] getOrderList = new String[]{"/tms/zhyt/getIntransitDetails", "ãTMSãååå表æ¥è¯¢"};//TMSååå表æ¥è¯¢æ¥å£å°å |
| | | String[] getElecByContractNumberList = new String[]{"/tms/zhyt/getElecByContractNumberList", "ãTMSãååä¸éç¶æ"};//TMSååä¸éç¶ææ¥å£å°å |
| | | String[] getOrderDetailByContractNumber = new String[]{"/tms/zhyt/getOrderDetailByContractNumber", "ãTMSãåå详æ
"};//TMSåå详æ
æ¥å£å°å |
| | | String[] getGis = new String[]{"/tms/zhyt/getGis", "ãTMSãæ ¹æ®è¿è¾åå·æ¥è¯¢gis轨"};//TMSæ ¹æ®è¿è¾åå·æ¥è¯¢gis轨æ¥å£å°å |
| | | String[] getOrderStatusByContractNumber = new String[]{";//", "ãTMSãåçå½å¨æ"};//3.8订åçå½å¨æ |
| | | } |
| | | |
| | | public enum TopStatusLevel { |
| | | /** |
| | | * 订åçæ |
| | | * è¿åé
è½½ä¸ |
| | | * ä»åºåºåºä¸ |
| | | * 车è¾è¿è¾ä¸ |
| | | * å·²å°è´§ |
| | | * å·²å
¥åº |
| | | */ |
| | | ddsc(0,"订åçæ",new Integer[]{ChildStatusLevel.create.getKey()}), |
| | | ydpzz (1,"è¿åé
è½½ä¸",new Integer[]{ChildStatusLevel.ysdxc.getKey() |
| | | ,ChildStatusLevel.ysdcx.getKey() |
| | | ,ChildStatusLevel.shtg.getKey() |
| | | ,ChildStatusLevel.shwtg.getKey() |
| | | ,ChildStatusLevel.ysdcx.getKey()}), |
| | | ckckz (2,"ä»åºåºåºä¸",new Integer[]{ChildStatusLevel.ddzhddzs.getKey() |
| | | ,ChildStatusLevel.clqddzs.getKey()}), |
| | | clysz(3, "车è¾è¿è¾ä¸",new Integer[]{ChildStatusLevel.clqdapp.getKey()}), |
| | | ydh(4,"å·²å°è´§",new Integer[]{ChildStatusLevel.ddzhd.getKey()}), |
| | | yrk (5,"å·²å
¥åº",new Integer[]{ChildStatusLevel.ddxhd.getKey()}); |
| | | |
| | | // æååé |
| | | private int key; |
| | | private Integer[] chileIndexList ; |
| | | private String name; |
| | | |
| | | // æé æ¹æ³ |
| | | TopStatusLevel(int key, String name, Integer[] chileIndexList) { |
| | | this.key = key; |
| | | this.chileIndexList = chileIndexList; |
| | | this.name = name; |
| | | } |
| | | |
| | | public int getKey() { |
| | | return key; |
| | | } |
| | | |
| | | public void setKey(int key) { |
| | | this.key = key; |
| | | } |
| | | |
| | | public String getName() { |
| | | return name; |
| | | } |
| | | |
| | | public void setName(String name) { |
| | | this.name = name; |
| | | } |
| | | |
| | | public Integer[] getChileIndexList() { |
| | | return chileIndexList; |
| | | } |
| | | |
| | | public void setChileIndexList(Integer[] chileIndexList) { |
| | | this.chileIndexList = chileIndexList; |
| | | } |
| | | } |
| | | public enum ChildStatusLevel { |
| | | /** |
| | | 订åçæï¼åè´§ä»åºèç³»çµè¯ï¼0551-63451234ï¼ 0 订åçæï¼åè´§ä»åºèç³»çµè¯ï¼0551-63451234ï¼ |
| | | |
| | | è¿è¾åå½¢æ 1 è¿è¾åå½¢æ |
| | | è¿è¾åæ¤éï¼åå ï¼XXXï¼ -2 è¿è¾åæ¤éï¼åå ï¼XXXï¼ |
| | | è¿è¾åå®¡æ ¸æªéè¿ -1 è¿è¾åå®¡æ ¸æªéè¿ |
| | | è¿è¾åå®¡æ ¸éè¿ 2 è¿è¾åå®¡æ ¸éè¿ |
| | | è¿è¾å确认 è¿è¾å确认 |
| | | å°è¾¾è£
è´§å°-çµåéæ±½è¿ 3 车è¾å·²å°è¾¾è£
è´§å° |
| | | 车è¾å¯è¿-çµåéæ±½è¿ 4 车è¾è£
è´§å®æï¼çµåéå·²ä¸é |
| | | 车è¾å¯è¿-APP 4 车è¾è¿è¾ä¸ |
| | | å°è¾¾å¸è´§å°-APP 5 车è¾å·²å°è¾¾å¸è´§å° |
| | | å°è¾¾å¸è´§å°-çµåéæ±½è¿ 5 çµåé已解éï¼è¿è¾ä»»å¡å·²å®æ |
| | | */ |
| | | create(0,0, 0,"订åçæ",null), |
| | | ysdxc(1,1,1, "è¿è¾åå½¢æ",null), |
| | | ysdcx(2, -2,1,"è¿è¾åæ¤é",null ), |
| | | shtg(3,-1, 1,"è¿è¾åå®¡æ ¸æªéè¿",null ), |
| | | shwtg(4, 2,1,"è¿è¾åå®¡æ ¸éè¿",null), |
| | | ysdqr(5,6, 1,"è¿è¾å确认",null ), |
| | | ddzhddzs(6,3,2,"å°è¾¾è£
è´§å°-çµåéæ±½è¿","车è¾å·²å°è¾¾è£
è´§å°" ), |
| | | clqddzs(7, null,2,"车è¾å¯è¿-çµåéæ±½è¿","车è¾è£
è´§å®æï¼çµåéå·²ä¸é" ), |
| | | clqdapp(8, 4,3,"车è¾å¯è¿-APP","车è¾è¿è¾ä¸" ), |
| | | ddzhd(9, 5,4,"å°è¾¾å¸è´§å°-APP","车è¾å·²å°è¾¾å¸è´§å°" ), |
| | | ddxhd(10, 5,5,"å°è¾¾å¸è´§å°-çµåéæ±½è¿","çµåé已解éï¼è¿è¾ä»»å¡å·²å®æ" ), |
| | | ; |
| | | |
| | | // æååé |
| | | private Integer key; |
| | | private Integer orderStatus; |
| | | private Integer parentIndex; |
| | | private String name; |
| | | private String info; |
| | | |
| | | // æé æ¹æ³ |
| | | ChildStatusLevel(Integer key,Integer orderStatus,Integer parentIndex, String name,String info ) { |
| | | this.key = key; |
| | | this.info = info; |
| | | this.name = name; |
| | | this.orderStatus = orderStatus; |
| | | this.parentIndex = parentIndex; |
| | | } |
| | | public static Integer getParentIndexByStatus(int orderStatus) { |
| | | for (ChildStatusLevel c : ChildStatusLevel.values()) { |
| | | if (c.getOrderStatus() == orderStatus) { |
| | | return c.parentIndex; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | public static String getInfo(int key,String defualt) { |
| | | for (ChildStatusLevel c : ChildStatusLevel.values()) { |
| | | if (c.getKey() == key) { |
| | | return StringUtils.defaultString(c.getInfo(),StringUtils.defaultString(defualt,c.getName())); |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public int getKey() { |
| | | return key; |
| | | } |
| | | |
| | | public void setKey(int key) { |
| | | this.key = key; |
| | | } |
| | | |
| | | public String getName() { |
| | | return name; |
| | | } |
| | | |
| | | public void setName(String name) { |
| | | this.name = name; |
| | | } |
| | | |
| | | public String getInfo() { |
| | | return info; |
| | | } |
| | | |
| | | public void setInfo(String info) { |
| | | this.info = info; |
| | | } |
| | | |
| | | public int getOrderStatus() { |
| | | return orderStatus; |
| | | } |
| | | |
| | | public void setOrderStatus(int orderStatus) { |
| | | this.orderStatus = orderStatus; |
| | | } |
| | | |
| | | public int getParentIndex() { |
| | | return parentIndex; |
| | | } |
| | | |
| | | public void setParentIndex(int parentIndex) { |
| | | this.parentIndex = parentIndex; |
| | | } |
| | | } |
| | | } |