刘磊
2025-05-29 a00fcf19e692c458283015c201a0e743dd3d5ec6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace WIDESEA_Common.LevelChange
{
    public class CheckTaskChangeHelper
    {
        /// <summary>
        /// 维修任务转换轮新旧
        /// </summary>
        /// <param name="wxrw">维修任务</param>
        /// <returns>选配轮新旧(0-新 1-旧)</returns>
        public static string CheckTaskChange(string wxrw)
        {
            string wheelsNewOld = string.Empty;
            if (wxrw.Contains("四级修") || wxrw.Contains("五级修"))
            {
                wheelsNewOld = "1";
            }
            if ((wxrw.Contains("四级修") || wxrw.Contains("五级修")) && wxrw.Contains("换轮(新)"))
            {
                wheelsNewOld = "0";
            }
            if (wxrw.Contains("三级修") && (wxrw.Contains("换轮(新)") || wxrw.Contains("换轮组成(新)")))
                wheelsNewOld = "0";
            if (wxrw.Contains("三级修") && (wxrw.Contains("换轮(旧)") || wxrw.Contains("换轮组成(旧)")))
                wheelsNewOld = "1";
            return wheelsNewOld;
        }
    }
}