|
|
@ -19,7 +19,7 @@ public class FireControlMgr
|
|
|
|
public static FireControlClient? FireControlClient { get; set; }
|
|
|
|
public static FireControlClient? FireControlClient { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
#region MyRegion
|
|
|
|
#region MyRegion
|
|
|
|
|
|
|
|
|
|
|
|
public static void Init()
|
|
|
|
public static void Init()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (FireControlClient == null)
|
|
|
|
if (FireControlClient == null)
|
|
|
@ -35,7 +35,7 @@ public class FireControlMgr
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="no"></param>
|
|
|
|
/// <param name="no"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
public bool WriteExtinguisherOn(int no)
|
|
|
|
public static bool WriteExtinguisherOn(int no)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (FireControlClient != null)
|
|
|
|
if (FireControlClient != null)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -309,7 +309,7 @@ public class FireControlMgr
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="no"></param>
|
|
|
|
/// <param name="no"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
public bool WriteExtinguisherOff(int no)
|
|
|
|
public static bool WriteExtinguisherOff(int no)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (FireControlClient != null)
|
|
|
|
if (FireControlClient != null)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -583,7 +583,7 @@ public class FireControlMgr
|
|
|
|
/// 复位开
|
|
|
|
/// 复位开
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
public bool ResettingOn()
|
|
|
|
public static bool ResettingOn()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (FireControlClient != null)
|
|
|
|
if (FireControlClient != null)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -599,7 +599,7 @@ public class FireControlMgr
|
|
|
|
/// 复位关
|
|
|
|
/// 复位关
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
public bool ResettingOff()
|
|
|
|
public static bool ResettingOff()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (FireControlClient != null)
|
|
|
|
if (FireControlClient != null)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -615,7 +615,7 @@ public class FireControlMgr
|
|
|
|
/// 消报警音开
|
|
|
|
/// 消报警音开
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
public bool MuteAlarmToneOn()
|
|
|
|
public static bool MuteAlarmToneOn()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (FireControlClient != null)
|
|
|
|
if (FireControlClient != null)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -631,7 +631,7 @@ public class FireControlMgr
|
|
|
|
/// 消报警音关
|
|
|
|
/// 消报警音关
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
public bool MuteAlarmToneOff()
|
|
|
|
public static bool MuteAlarmToneOff()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (FireControlClient != null)
|
|
|
|
if (FireControlClient != null)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -647,7 +647,7 @@ public class FireControlMgr
|
|
|
|
/// 自检开
|
|
|
|
/// 自检开
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
public bool SelfInspectionOn()
|
|
|
|
public static bool SelfInspectionOn()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (FireControlClient != null)
|
|
|
|
if (FireControlClient != null)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -663,7 +663,7 @@ public class FireControlMgr
|
|
|
|
/// 自检关
|
|
|
|
/// 自检关
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
public bool SelfInspectionOff()
|
|
|
|
public static bool SelfInspectionOff()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (FireControlClient != null)
|
|
|
|
if (FireControlClient != null)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -679,7 +679,7 @@ public class FireControlMgr
|
|
|
|
/// 声光报警
|
|
|
|
/// 声光报警
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
public bool AudibleVisualAlarmOn()
|
|
|
|
public static bool AudibleVisualAlarmOn()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (FireControlClient != null)
|
|
|
|
if (FireControlClient != null)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -695,7 +695,7 @@ public class FireControlMgr
|
|
|
|
/// 声光报警
|
|
|
|
/// 声光报警
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
public bool AudibleVisualAlarmOff()
|
|
|
|
public static bool AudibleVisualAlarmOff()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (FireControlClient != null)
|
|
|
|
if (FireControlClient != null)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -711,7 +711,7 @@ public class FireControlMgr
|
|
|
|
/// 手动模式
|
|
|
|
/// 手动模式
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
public bool ManualModeOn()
|
|
|
|
public static bool ManualModeOn()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (FireControlClient != null)
|
|
|
|
if (FireControlClient != null)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -727,7 +727,7 @@ public class FireControlMgr
|
|
|
|
/// 手动模式
|
|
|
|
/// 手动模式
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
public bool ManualModeOff()
|
|
|
|
public static bool ManualModeOff()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (FireControlClient != null)
|
|
|
|
if (FireControlClient != null)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -743,7 +743,7 @@ public class FireControlMgr
|
|
|
|
/// 自动模式开
|
|
|
|
/// 自动模式开
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
public bool AutomaticModeOn()
|
|
|
|
public static bool AutomaticModeOn()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (FireControlClient != null)
|
|
|
|
if (FireControlClient != null)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -759,7 +759,7 @@ public class FireControlMgr
|
|
|
|
/// 自动模式关
|
|
|
|
/// 自动模式关
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
public bool AutomaticModeOff()
|
|
|
|
public static bool AutomaticModeOff()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (FireControlClient != null)
|
|
|
|
if (FireControlClient != null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|