Ejemplo n.º 1
0
        /// <summary>
        /// 添加固态数据
        /// </summary>
        /// <param name="STCD">站号</param>
        /// <param name="ItemID">监测项号</param>
        /// <param name="TM">监测时间</param>
        /// <param name="RTM">接收时间</param>
        /// <param name="NFOINDEX">信道类型</param>
        /// <param name="Value">数据值</param>
        /// <returns></returns>
        public bool AddRemData(string STCD, string ItemID, DateTime TM, DateTime RTM, int NFOINDEX, decimal?Value)
        {
            YY_DATA_REM model = new YY_DATA_REM();

            model.STCD      = STCD;
            model.ItemID    = ItemID;
            model.TM        = TM;
            model.DOWNDATE  = RTM;
            model.NFOINDEX  = NFOINDEX;
            model.DATAVALUE = Value;
            return(dt.Insert <YY_DATA_REM>("YY_DATA_REM", model));
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 更新固态数据
 /// </summary>
 /// <param name="model">实体</param>
 /// <param name="Where">条件</param>
 /// <returns></returns>
 public bool UdpRemData(YY_DATA_REM model, string Where)
 {
     return(dt.Update <YY_DATA_REM>("YY_DATA_REM", model, Where));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 添加固态数据
 /// </summary>
 /// <param name="model">实体</param>
 /// <returns></returns>
 public bool AddRemData(YY_DATA_REM model)
 {
     return(dt.Insert <YY_DATA_REM>("YY_DATA_REM", model));
 }