Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public void DeleteATETestInfo(ATETestInfo aTETestInfo)
 {
     this._helper.DeleteDomainObject(aTETestInfo);
 }
Esempio n. 3
0
 public void UpdateATETestInfo(ATETestInfo aTETestInfo)
 {
     this._helper.UpdateDomainObject(aTETestInfo);
 }
Esempio n. 4
0
 public void AddATETestInfo(ATETestInfo aTETestInfo)
 {
     this._helper.AddDomainObject(aTETestInfo);
 }