using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WIDESEA_Common.LevelChange { public class CheckTaskChangeHelper { /// /// 维修任务转换轮新旧 /// /// 维修任务 /// 选配轮新旧(0-新 1-旧) 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; } } }