public object[] GetErrorInfo(ATETestInfo ateTestInfo, string modelcode) { /* Fail Code,to be confirmed, * 格式为FailCode和KeyName之间的分隔符是^;KeyName之间的分隔符是#;每组FailCode之间的分隔符是*; * 例如:FailCode^KeyName#KeyName*FailCode^KeyName#KeyName */ if (ateTestInfo.FailCode == null || ateTestInfo.FailCode.Trim().Length == 0) { return(null); } string[] failGroup = ateTestInfo.FailCode.Split('*'); int count = 0; for (int i = 0; i < failGroup.Length; i++) { count += failGroup[i].Split('^')[1].Split('#').Length; } object[] objs = new object[count]; int k = 0; for (int i = 0; i < failGroup.Length; i++) { string errorCode = failGroup[i].Split('^')[0]; string[] errorLoc = failGroup[i].Split('^')[1].Split('#'); for (int j = 0; j < errorLoc.Length; j++) { TSErrorCode2Location tsinfo = new TSErrorCode2Location(); tsinfo.ErrorCode = errorCode; TSModelFacade tsmodelFacade = new TSModelFacade(this.DataProvider); object[] objecgs = tsmodelFacade.QueryECG2ECByECAndModelCode(new string[] { errorCode }, modelcode); tsinfo.ErrorCodeGroup = (objecgs[0] as ErrorCodeGroup2ErrorCode).ErrorCodeGroup; tsinfo.ErrorLocation = errorLoc[j]; tsinfo.AB = ItemLocationSide.ItemLocationSide_AB; objs[k] = tsinfo; k++; } } return(objs); }
public void DeleteATETestInfo(ATETestInfo aTETestInfo) { this._helper.DeleteDomainObject(aTETestInfo); }
public void UpdateATETestInfo(ATETestInfo aTETestInfo) { this._helper.UpdateDomainObject(aTETestInfo); }
public void AddATETestInfo(ATETestInfo aTETestInfo) { this._helper.AddDomainObject(aTETestInfo); }