public void AddTestRunChild(String name, DateTime starttime, DateTime endtime, String grade, String uom, Double measValue, Double lsl, Double usl) { _TestRunStep TRStepToAdd = new _TestRunStep(); TRStepToAdd.name = name; TRStepToAdd.starttime = starttime; TRStepToAdd.endtime = endtime; if (grade != "") { TRStepToAdd.grade = grade; } else { if ((lsl > measValue) || (usl < measValue)) { TRStepToAdd.grade = "FAIL"; } else { TRStepToAdd.grade = "PASS"; } } TRStepToAdd.Result.Property.ResultType = ResultType.ValueDouble; TRStepToAdd.Result.Property.name = name; TRStepToAdd.Result.Property.uom = uom; TRStepToAdd.Result.Property.measValue = measValue; TRStepToAdd.Result.Property.lsl = lsl; TRStepToAdd.Result.Property.d_usl = usl; this.AddTestRunChild(TRStepToAdd); }
public void AddTestRunChild(String name, DateTime starttime, DateTime endtime, String grade, String measString, String uom, String usl) { _TestRunStep TRStepToAdd = new _TestRunStep(); TRStepToAdd.name = name; TRStepToAdd.starttime = starttime; TRStepToAdd.endtime = endtime; TRStepToAdd.grade = grade; TRStepToAdd.Result.Property.ResultType = ResultType.ValueString; TRStepToAdd.Result.Property.name = name; TRStepToAdd.Result.Property.measString = measString; TRStepToAdd.Result.Property.uom = uom; TRStepToAdd.Result.Property.str_usl = usl; this.AddTestRunChild(TRStepToAdd); }
public void AddTestRunChild(String name, DateTime starttime, DateTime endtime, String grade, String uom, Double measValue, Double lsl) { _TestRunStep TRStepToAdd = new _TestRunStep(); TRStepToAdd.name = name; TRStepToAdd.starttime = starttime; TRStepToAdd.endtime = endtime; TRStepToAdd.grade = grade; TRStepToAdd.Result.Property.ResultType = ResultType.ValueDouble; TRStepToAdd.Result.Property.name = name; TRStepToAdd.Result.Property.uom = uom; TRStepToAdd.Result.Property.measValue = measValue; TRStepToAdd.Result.Property.lsl = lsl; TRStepToAdd.Result.Property.d_usl = -9999.9999; this.AddTestRunChild(TRStepToAdd); }
public void AddTestRunChild(_TestRunStep TestRunToAdd) { Array.Resize(ref this.Testruns, this.Testruns.Length + 1); this.Testruns.SetValue(TestRunToAdd, this.Testruns.Length - 1); }