Exemple #1
0
 public QTimeinfo CheckExistDefectCodeList(string Line, string Station, string Family)
 {
     logger.Debug("(QTime)CheckExistDefectCodeList starts");
     try
     {
         string[] ObjKey = new string[3];
         ObjKey[0] = Line;
         ObjKey[1] = Station;
         ObjKey[2] = Family;
         IMES.FisObject.Common.QTime.QTime items = new IMES.FisObject.Common.QTime.QTime();
         items = iQTimeRepository.Find(ObjKey);
         return QTime_To_QTimeinfo(items);
     }
     catch (FisException e)
     {
         logger.Error(e.mErrmsg, e);
         throw new Exception(e.mErrmsg);
     }
     catch (Exception e)
     {
         logger.Error(e.Message, e);
         throw new SystemException(e.Message);
     }
     finally
     {
         logger.Debug("(QTime)CheckExistDefectCodeList end");
     }
 }
Exemple #2
0
 private IMES.FisObject.Common.QTime.QTime QTimeInfo_To_QTime(QTimeinfo list)
 {
     IMES.FisObject.Common.QTime.QTime e = new IMES.FisObject.Common.QTime.QTime();
     if (list != null)
     {
         QTimeStationStatusEnum enumPass_Fail = (QTimeStationStatusEnum)Enum.Parse(typeof(QTimeStationStatusEnum), list.HoldStatus, true);
         QTimeCategoryEnum enumMax_Min = (QTimeCategoryEnum)Enum.Parse(typeof(QTimeCategoryEnum), list.Catagory, true);
         e.Line = list.Line;
         e.Station = list.Station;
         e.Family = list.Family;
         e.Category = enumMax_Min;
         e.TimeOut = list.TimeOut;
         e.StopTime = list.StopTime;
         e.DefectCode = list.DefectCode;
         e.HoldStation = list.HoldStation;
         e.HoldStatus = enumPass_Fail;
         e.ExceptStation = list.ExceptStation;
         e.Editor = list.Editor;
         e.Cdt = list.Cdt;
         e.Udt = list.Udt;
     }
     return e;
 }