Esempio n. 1
0
        public static String GetStateName(DeliverNoticeState state)
        {
            string name = string.Empty;

            switch (state)
            {
                case DeliverNoticeState.NotVerified:
                    name = "待审核";
                    break;
                case DeliverNoticeState.Verified:
                    name = "审核通过";
                    break;
                case DeliverNoticeState.Abandoned:
                    name = "审核未通过";
                    break;
                case DeliverNoticeState.Done:
                    name = "已提检";
                    break;
            }

            return name;
        }
Esempio n. 2
0
        public static String GetStateColor(DeliverNoticeState state)
        {
            string color = string.Empty;

            switch (state)
            {
                case DeliverNoticeState.NotVerified:
                    color = "blue";
                    break;
                case DeliverNoticeState.Verified:
                    color = "green";
                    break;
                case DeliverNoticeState.Abandoned:
                    color = "red";
                    break;
                case DeliverNoticeState.Done:
                    color = "black";
                    break;
            }

            return color;
        }