/// <summary> /// 历史结果记录是否符合要求 /// </summary> /// <param name="model">历史结果数据</param> /// <returns></returns> public bool IsMatchTheRequire(HParaModel model) { if (R_InjectionQuantity != null) { if (!R_InjectionQuantity.IsInRange(model.R_InjectionQuantity)) { return(false); } } if (R_Asymmetry > 0) { if (R_Asymmetry != model.R_Asymmetry) { return(false); } } if (R_RackTravel != null) { if (!R_RackTravel.IsInRange(model.R_RackTravel)) { return(false); } } return(true); }
private void AnalyseData(string data) { string[] message = data.Split(Connect); switch (message[0]) { case "ID": this.Id = int.Parse(message[1]); break; case "SW": this.StartWork = new HParaModel(message[1]); break; case "IW": this.IdlingWork = new HParaModel(message[1]); break; case "IB": this.IdlingBreak = new HParaModel(message[1]); break; case "RB": this.ReviseBegin = new HParaModel(message[1]); break; case "RW": this.ReviseWork = new HParaModel(message[1]); break; case "RE": this.ReviseEnd = new HParaModel(message[1]); break; case "DW": this.DemWork = new HParaModel(message[1]); break; case "AW": this.AdjWork = new HParaModel(message[1]); break; case "HB": this.HighBreak = new HParaModel(message[1]); break; case "T": this.Tem = new RangeValue(message[1]); break; case "EC": this.EquCode = message[1]; break; case "ET": this.EquType = message[1]; break; case "HD": this.HDate = message[1]; break; case "HT": this.HTime = message[1]; break; case "IP": this.IsPass = bool.Parse(message[1]); break; } }