20240301_JSEQ_upperpc/JiangsuEarthquakeJM/JiangsuEarthquake/Models/StateFeedBackModel.cs
春风过客 d7f51483a7 新增功能:
1 将地震仪数据读取功能单独成一个页面;
2024-05-13 18:51:05 +08:00

131 lines
3.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JiangsuEarthquake.Models
{
public class StateFeedBackModel : ParameterModel
{
public object this[int index]
{
get { return null; }
set
{
bool Set_Value = Convert.ToBoolean(value);
switch (index)
{
case 25:
this.SEI_PowerMode = Set_Value;
break;
case 26:
this.SEI_PowerState = Set_Value;
break;
case 27:
this.JBH_ADCP_State = Set_Value;
break;
case 28:
this.SEI_State2 = Set_Value;
break;
case 29:
this.SEI_State1 = Set_Value;
break;
case 30:
this.JBH_Switch_State = Set_Value;
break;
case 31:
this.JBH_DSL_State = Set_Value;
break;
default:
break;
}
}
}
private bool sEI_PowerMode;
/// <summary>
/// 地震仪供电方式
/// </summary>
public bool SEI_PowerMode
{
get { return sEI_PowerMode; }
set { sEI_PowerMode = value; }
}
private bool sEI_PowerState;
/// <summary>
/// 当前是那台地震仪
/// </summary>
public bool SEI_PowerState
{
get { return sEI_PowerState; }
set { sEI_PowerState = value; }
}
private bool jBH_ADCP_State;
/// <summary>
/// 接驳盒海流计当前状态
/// </summary>
public bool JBH_ADCP_State
{
get { return jBH_ADCP_State; }
set { jBH_ADCP_State = value; }
}
private bool sEI_State1;
/// <summary>
/// 地震仪1状态
/// </summary>
public bool SEI_State1
{
get { return sEI_State1; }
set { sEI_State1 = value; }
}
private bool sEI_State2;
/// <summary>
/// 地震仪2状态
/// </summary>
public bool SEI_State2
{
get { return sEI_State2; }
set { sEI_State2 = value; }
}
private bool jBH_Switch;
/// <summary>
/// 接驳盒交换机状态
/// </summary>
public bool JBH_Switch_State
{
get { return jBH_Switch; }
set { jBH_Switch = value; }
}
private bool jBH_DSL_State;
/// <summary>
/// 接驳盒电力载波状态
/// </summary>
public bool JBH_DSL_State
{
get { return jBH_DSL_State; }
set { jBH_DSL_State = value; }
}
}
}