namespace Khd.Core.Domain.Dto.TaskType
{
    /// <summary>
    /// 任务类型
    /// </summary>
    public static class StaticTaskType
    {
        /// <summary>
        /// 五楼辅料配送到工位
        /// </summary>
        public const int FiveBearAgv = 32;
        /// <summary>
        /// 五楼辅料退库
        /// </summary>
        public const int FiveAccessoryReturn = 48;
        /// <summary>
        /// 二楼输送线到小包入口
        /// </summary>
        public const int SecondLineToSmallPackage = 51;
        /// <summary>
        /// 二楼废料工位到周转位
        /// </summary>
        public const int SecondWasteToTransit = 56;
        /// <summary>
        /// 二楼小包出口到库位
        /// </summary>
        public const int SecondSmallPackageToStorage = 49;
        /// <summary>
        /// 二楼周转位到提升机
        /// </summary>
        public const int SecondTransitToLift = 57;
        /// <summary>
        /// 二楼库位到提升机
        /// </summary>
        public const int SecondStorageToLift = 50;
        /// <summary>
        /// 二楼移库
        /// </summary>
        public const int SecondRemove = 55;
        /// <summary>
        /// 二楼提升机到废料工位
        /// </summary>
        public const int SecondLiftToWaste = 53;
        /// <summary>
        /// 二楼周转位到废料工位
        /// </summary>
        public const int SecondTransitToWaste = 54;
        /// <summary>
        /// 二楼提升机到周转位
        /// </summary>
        public const int SecondLiftToTransit = 58;
        /// <summary>
        /// 二楼周转位到小包入口
        /// </summary>
        public const int SecondTransitToSmallPackage = 59;
        /// <summary>
        /// 三楼移库
        /// </summary>
        public const int ThirdRemove = 67;
        /// <summary>
        /// 三楼原材料入库
        /// </summary>
        public const int ThirdRawIn = 39;
        /// <summary>
        /// 三楼原材料到翻转机
        /// </summary>
        public const int ThirdRawToFlip = 41;
        /// <summary>
        /// 三楼周转区到托盘收集架
        /// </summary>
        public const int ThirdTransitToBin = 40;
        /// <summary>
        /// 三楼翻转机到托盘收集架
        /// </summary>
        public const int ThirdFlipToBin = 42;
        /// <summary>
        /// 三楼托盘收集架到周转区
        /// </summary>
        public const int ThirdBinToTransit = 43;
        /// <summary>
        /// 三楼周转区到提升机
        /// </summary>
        public const int ThirdTransitToLift = 44;
        /// <summary>
        /// 五楼原材料入库
        /// </summary>
        public const int FiveRawIn = 47;
        /// <summary>
        /// 五楼原材料到拆分
        /// </summary>
        public const int FiveRawToSplit = 46;
        /// <summary>
        /// 五楼原材料拆分返库
        /// </summary>
        public const int FiveRawSplitReturn = 28;
        /// <summary>
        /// 五楼移库
        /// </summary>
        public const int FiveRemove = 66;
        /// <summary>
        /// 五楼原材料到背板安装
        /// </summary>
        public const int FiveRawToBack = 33;
        /// <summary>
        /// 五楼半成品入库
        /// </summary>
        public const int FiveHalfIn = 34;
        /// <summary>
        /// 五楼成品出库库
        /// </summary>
        public const int FiveProductOut = 38;
        /// <summary>
        /// 五楼辅料入库
        /// </summary>
        public const int FiveAccessoryIn = 29;
        /// <summary>
        /// 五楼辅料出库
        /// </summary>
        public const int FiveAccessoryOut = 30;
        /// <summary>
        /// 五楼辅料盘库
        /// </summary>
        public const int FiveAccessoryStorage = 100;
        /// <summary>
        /// 三楼接驳位转运空托盘到二楼
        /// </summary>
        public const int ThirdTransitToSecond = 101;
        /// <summary>
        /// 五楼辅料移库
        /// </summary>
        public const int FiveAccessoryRemove = 102;

        /// <summary>
        /// 获取任务名称
        /// </summary>
        public static string GetTaskName(int taskType)
        {
            return taskType switch
            {
                FiveBearAgv => "五楼辅料配送到工位",
                FiveAccessoryReturn => "五楼辅料退库",
                SecondLineToSmallPackage => "二楼输送线到小包入口",
                SecondWasteToTransit => "二楼废料工位到周转位",
                SecondSmallPackageToStorage => "二楼小包出口到库位",
                SecondTransitToLift => "二楼周转位到提升机",
                SecondStorageToLift => "二楼库位到提升机",
                SecondRemove => "二楼移库",
                SecondLiftToWaste => "二楼提升机到废料工位",
                SecondTransitToWaste => "二楼周转位到废料工位",
                SecondLiftToTransit => "二楼提升机到周转位",
                SecondTransitToSmallPackage => "二楼周转位到小包入口",
                ThirdRemove => "三楼移库",
                ThirdRawIn => "三楼原材料入库",
                ThirdRawToFlip => "三楼原材料到翻转机",
                ThirdTransitToBin => "三楼周转区到托盘收集架",
                ThirdFlipToBin => "三楼翻转机到托盘收集架",
                ThirdBinToTransit => "三楼托盘收集架到周转区",
                ThirdTransitToLift => "三楼周转区到提升机",
                FiveRawIn => "五楼原材料入库",
                FiveRawToSplit => "五楼原材料到拆分",
                FiveRawSplitReturn => "五楼原材料拆分返库",
                FiveRemove => "五楼移库",
                FiveRawToBack => "五楼原材料到背板安装",
                FiveHalfIn => "五楼半成品入库",
                FiveProductOut => "五楼成品出库库",
                FiveAccessoryIn => "五楼辅料入库",
                FiveAccessoryOut => "五楼辅料出库",
                FiveAccessoryStorage => "五楼辅料盘库",
                ThirdTransitToSecond => "三楼接驳位转运空托盘到二楼",
                FiveAccessoryRemove => "五楼辅料移库",
                _ => "未知任务类型",
            };
        }
    }
}
