/// <summary> /// 根据请求类型、故障分类编号获取故障分类字段描述 /// </summary> /// <param name="requestType">请求类型</param> /// <param name="faultType">故障分类编号</param> /// <returns>故障分类字段描述</returns> public static string GetFaultTypeDesc(int requestType, int faultType) { switch (requestType) { case Repair: return(MachineStatuses.GetMachineStatusesDesc(faultType)); case Maintain: return(MaintainType.GetMaintainTypeDesc(faultType)); case Inspection: return(InspectionType.GetInspectionDesc(faultType)); case AdverseEvent: return(AdverseEventType.GetAdverseEventDesc(faultType)); default: return(""); } }
/// <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(""); } }