using Highway.Assemble.common;
using System.Collections.Generic;

namespace Highway.Assemble.Sql
{
    public interface ISql
    {  /// <summary>
       /// 获取汇集信息
       /// </summary>
       /// <param ID="huijiID"></param>
       /// <returns></returns>
        Collect GetCollectInfo(string collectid);
        /// <summary>
        /// 获取设备信息
        /// </summary>
        /// <param ID="huijiID"></param>
        /// <returns></returns>
        List<Equip> GetEquipList(string Id);

        /// <summary>
        /// 获取传感器信息
        /// </summary>
        /// <param name="adapterId"></param>
        /// <returns></returns>
        List<Sensor> GetSensorList(string deviceId);

        /// <summary>
        /// 获取MES设备信息
        /// </summary>
        /// <returns></returns>
        List<mesSoft> GetMesEquipList(string huijiID);


        /// <summary>
        /// 汇集软件状态
        /// </summary>
        /// <param name="ID">汇集编号</param>
        /// <param name="state">设备状态</param>
        bool InsertCollectState(string ID, int state);

    }
}
