Exemplo n.º 1
0
 public ClusteringException(
     FaultTypes faultType,
     string message,
     Exception innerException = null)
     : base(message, innerException)
 {
     this.FaultType = faultType;
 }
Exemplo n.º 2
0
        /// <summary>
        /// 根据请求类型及故障分类编号获取字段信息描述
        /// </summary>
        /// <param name="requestTypeID">请求类型</param>
        /// <param name="typeID">故障分类编号</param>
        /// <returns>字段信息描述</returns>
        public static string GetDescFaultType(int requestTypeID, int typeID)
        {
            switch (requestTypeID)
            {
            case RequestTypes.Repair:
                return(FaultTypes.GetFaultTypeDesc(typeID));

            case RequestTypes.Maintain:
                return(MaintainType.GetMaintainTypeDesc(typeID));

            case RequestTypes.Inspection:
                return(InspectionType.GetInspectionDesc(typeID));

            case RequestTypes.AdverseEvent:
                return(AdverseEventType.GetAdverseEventDesc(typeID));

            default:
                return("");
            }
        }
 private bool IsAQualityIssues(FaultTypes faultType)
 {
     return(faultType == FaultTypes.Quality || faultType == FaultTypes.TemperatureHigh || faultType == FaultTypes.TemperatureLow);
 }
 private bool IsAMatVarIssue(FaultTypes faultType)
 {
     return(faultType == FaultTypes.Underweigh || faultType == FaultTypes.Overweigh);
 }
 private bool IsATimeIssue(FaultTypes faultType)
 {
     return(faultType == FaultTypes.AcquireTime || faultType == FaultTypes.WaitTime || faultType == FaultTypes.WeighTime);
 }