namespace WcsMain.ExtendMethod; /// /// 任务扩展方法 /// public static class TaskExtendMethod { /// /// 转换任务类型为文字 /// /// /// public static string ToTaskTypeStr(this int? task) { return task switch { 1 => "入库任务", 2 => "出库任务", 4 => "拣选任务", 9 => "移库任务", -1 => "输送任务", _ => "未知任务" }; } }