Fix changes
This commit is contained in:
@@ -15,7 +15,6 @@ namespace Thermo.Active.Database.Controllers
|
||||
private const string redisAlmIt = "AdpConf:Plc:Condition:It";
|
||||
private const string redisAlmEn = "AdpConf:Plc:Condition:En";
|
||||
private const string currentUserPath = "Machine:Hmi:User";
|
||||
private const string machineMessagePath = "Machine:Messages";
|
||||
private const string machineStatusPath = "Machine:Status";
|
||||
private const string machinePowerPath = "Machine:Power";
|
||||
private const string machineAlarmPath = "Machine:Alarm";
|
||||
@@ -34,6 +33,7 @@ namespace Thermo.Active.Database.Controllers
|
||||
private const string machineAxisLoad = "Machine:Axes:%NN%:Load";
|
||||
private const string machineAxisName = "Machine:Axes:%NN%:Name";
|
||||
private const string machineEventKpis = "Events:Kpis";
|
||||
private const string machineMessagePath = "Events:Messages";
|
||||
|
||||
public static void WriteProductionNotification(uint ProductionProcess, string Notification)
|
||||
{
|
||||
@@ -103,11 +103,6 @@ namespace Thermo.Active.Database.Controllers
|
||||
string redisHash = redUtil.man.redHash(currentActiveVersionPath);
|
||||
return redUtil.man.setRSV(redisHash, version.ToString());
|
||||
}
|
||||
public static bool SendMessage(DTOMessageModel message)
|
||||
{
|
||||
string redisHash = redUtil.man.redHash(machineMessagePath);
|
||||
return redUtil.man.setJson(redisHash, message);
|
||||
}
|
||||
|
||||
public static bool WriteCurrentMachineStatus(string status)
|
||||
{
|
||||
@@ -181,7 +176,13 @@ namespace Thermo.Active.Database.Controllers
|
||||
redUtil.man.ListPush(redisHash, alarms);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
public static bool SendMessage(string msg)
|
||||
{
|
||||
string redisHash = redUtil.man.redHash(machineMessagePath);
|
||||
redUtil.man.ListPush(redisHash, msg);
|
||||
return true;
|
||||
}
|
||||
|
||||
public static bool WriteCurrentAxisStatus(Dictionary<int, DTOAxisInfoModel> axis)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user