|
|
@@ -137,19 +137,19 @@ namespace BPASmartClient.DRCoffee |
|
|
|
/// <param name="package"></param> |
|
|
|
public void ProcessPackage(DrCoffeePackage package) |
|
|
|
{ |
|
|
|
if (((DrCoffeeStatus)status["CoffeeStatus"]) == DrCoffeeStatus.Running && package.Status != DrCoffeeStatus.Running) |
|
|
|
if (((DrCoffeeStatus)status["Status"]) == DrCoffeeStatus.Running && package.Status != DrCoffeeStatus.Running) |
|
|
|
{ |
|
|
|
status["CoffeeStatus"] = package.Status; |
|
|
|
status["Status"] = package.Status; |
|
|
|
lastRefreshTime = DateTime.Now; |
|
|
|
new DRCoffee_CoffeEndCookEvent() { Id = DeviceId }.Publish(); |
|
|
|
} |
|
|
|
else status["CoffeeStatus"] = package.Status; |
|
|
|
else status["Status"] = package.Status; |
|
|
|
status["AppStatus"] = package.ApplicationStatus; |
|
|
|
status["Warning"] = package.Warning; |
|
|
|
status["Fault"] = package.Fault; |
|
|
|
|
|
|
|
if ((DrCoffeeStatus)status["CoffeeStatus"] == DrCoffeeStatus.Warning |
|
|
|
|| (DrCoffeeStatus)status["CoffeeStatus"] == DrCoffeeStatus.Fault |
|
|
|
if ((DrCoffeeStatus)status["Status"] == DrCoffeeStatus.Warning |
|
|
|
|| (DrCoffeeStatus)status["Status"] == DrCoffeeStatus.Fault |
|
|
|
|| (DrCoffeeWarning)status["Warning"] != DrCoffeeWarning.无警告 |
|
|
|
|| (DrCoffeeFault)status["Fault"] != DrCoffeeFault.无故障 |
|
|
|
) |
|
|
@@ -162,7 +162,7 @@ namespace BPASmartClient.DRCoffee |
|
|
|
|
|
|
|
protected override void InitStatus() |
|
|
|
{ |
|
|
|
status["CoffeeStatus"] = DrCoffeeStatus.Wait; |
|
|
|
status["Status"] = DrCoffeeStatus.Wait; |
|
|
|
status["AppStatus"] = DrCoffeeAppStatus.应用无状态; |
|
|
|
status["Warning"] = DrCoffeeWarning.无警告; |
|
|
|
status["Fault"] = DrCoffeeFault.无故障; |
|
|
|