/// <summary> /// 根据对象类型编号获取Object ID /// </summary> /// <param name="typeId">对象类型编号</param> /// <param name="objectId">对象编号</param> /// <returns>对象Object ID</returns> public static string GetObjectOID(int typeId, int objectId) { List <ObjectTypeInfo> keyValues = GetObjectTypes(); ObjectTypeInfo info = (from ObjectTypeInfo temp in keyValues where temp.ID == typeId select temp).FirstOrDefault(); if (info == null) { return(""); } else { return(info.GenerateOID(objectId)); } }