Пример #1
0
        public static ProtocolDef GetProtocolId(ref PathAndType item, DataModelType identifier)
        {
            var dataPointItem = DataPointsBase.Instance(identifier).GetItem(item.Path);

            if (dataPointItem == null)
            {
                return(0);
            }
            if (item.Type == "")
            {
                item.Type = dataPointItem.DataType;
            }
            return(dataPointItem.ProtocolId);
        }
Пример #2
0
 public static ProtocolDef GetProtocolId(PathAndType item)
 {
     return(GetProtocolId(ref item, DataModelType.EltekData));
 }