1 地震仪告警记录中故障次数隐藏;电力载波机和光电交换机的供电状态隐藏; 2 除漏水和保护板事件的数据按照浮点数解析,别的按照整数解析; 3 解决TCP Server和Client存在的问题,包括无法监测到客户端连接,无法监测到服务端断开等问题;
33 lines
889 B
C#
33 lines
889 B
C#
using MySql.Data.MySqlClient;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace JiangsuEarthquake.DataAccess
|
|
{
|
|
//封装事务中的每个操作类,包括命令名称,类型,参数
|
|
public class CmdInfo
|
|
{
|
|
public string CommandText;//sql或存储过程名称
|
|
public MySqlParameter[] Parameters;//参数列表
|
|
public int CmdType;//是存储过程还是T-SQL语句
|
|
public CmdInfo()
|
|
{ }
|
|
|
|
public CmdInfo(string comText, int cmdType)
|
|
{
|
|
this.CommandText = comText;
|
|
this.CmdType = cmdType;
|
|
}
|
|
|
|
public CmdInfo(string commandText, MySqlParameter[] parameters, int cmdType)
|
|
{
|
|
CommandText = commandText;
|
|
Parameters = parameters;
|
|
CmdType = cmdType;
|
|
}
|
|
}
|
|
}
|