generated from wenjy/Sln.Iot
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.1 KiB
C#
47 lines
1.1 KiB
C#
using CFX.Structures;
|
|
using Sln.Iot.CFX.CFXConnect;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Sln.Iot.CFX.CFXBusiness
|
|
{
|
|
/// <summary>
|
|
/// CFX事件工具类
|
|
/// </summary>
|
|
public class CFXEventTools
|
|
{
|
|
private static readonly Lazy<CFXEventTools> lazy = new Lazy<CFXEventTools>(() => new CFXEventTools());
|
|
|
|
public static CFXEventTools Instance
|
|
{
|
|
get
|
|
{
|
|
return lazy.Value;
|
|
}
|
|
}
|
|
|
|
public List<UnitPosition> UnitPositionTrans(string[] unitIdentifier)
|
|
{
|
|
var units = new List<UnitPosition>();
|
|
for (int i = 0; i < unitIdentifier.Length; i++)
|
|
{
|
|
units.Add(new UnitPosition()
|
|
{
|
|
UnitIdentifier = unitIdentifier[i],
|
|
PositionNumber = i,
|
|
PositionName = $"Position{i}"
|
|
});
|
|
}
|
|
return units;
|
|
}
|
|
|
|
public List<Fault> FaultsTrans()
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|