Exemplo n.º 1
0
        /// <summary>
        /// 子作业类型解析
        /// </summary>
        /// <param name="type"></param>
        /// <returns></returns>
        public static string CtaskTypeFormat(EnmTaskType type)
        {
            string s = "";

            switch (type)
            {
            case EnmTaskType.HallCarEntrance:
                s = "进车";
                break;

            case EnmTaskType.HallCarExit:
                s = "出车";
                break;

            case EnmTaskType.TVGetCar:
                s = "存车";
                break;

            case EnmTaskType.TVSaveCar:
                s = "取车";
                break;

            case EnmTaskType.TVTranspose:
                s = "搬移";
                break;

            case EnmTaskType.TVLoad:
                s = "装载";
                break;

            case EnmTaskType.TVUnload:
                s = "卸载";
                break;

            case EnmTaskType.TVMove:
                s = "移动";
                break;

            case EnmTaskType.TVAvoid:
                s = "避让";
                break;

            default:
                s = type.ToString();
                break;
            }
            return(s);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 将作业类型转化为中文表示方式
        /// </summary>
        /// <param name="ttype"></param>
        /// <returns></returns>
        public static string ConvertTaskType(EnmTaskType ttype)
        {
            string msg = "";

            switch (ttype)
            {
            case EnmTaskType.SaveCar:
                msg = "存车";
                break;

            case EnmTaskType.GetCar:
                msg = "取车";
                break;

            case EnmTaskType.Move:
                msg = "移动";
                break;

            case EnmTaskType.Avoid:
                msg = "避让";
                break;

            case EnmTaskType.TempGet:
                msg = "取物";
                break;

            case EnmTaskType.Transpose:
                msg = "挪移";
                break;

            default:
                msg = ttype.ToString();
                break;
            }
            return(msg);
        }