Exemple #1
0
        /// <summary>
        /// 维护信息更新
        /// </summary>
        public int UpdateMaintainInfo(WellCurrentStateInfo wellCurrentStateInfo)
        {
            DynamicParameters parm = new DynamicParameters();

            parm.Add("@Maintain_StartTime", wellCurrentStateInfo.Maintain_StartTime);
            parm.Add("@Maintain_EndTime", wellCurrentStateInfo.Maintain_EndTime);
            parm.Add("@Terminal_ID", wellCurrentStateInfo.Terminal_ID);

            using (Conn)
            {
                return(Conn.Execute(updade_Well_Maintain_Info, parm));
            }
        }
Exemple #2
0
        /// <summary>
        /// 更新当前人井状态信息
        /// </summary>
        public int UpdateWellCurrentStateInfo(WellCurrentStateInfo wellCurrentStateInfo)
        {
            DynamicParameters parm = new DynamicParameters();

            parm.Add("@Well_State_ID", wellCurrentStateInfo.Well_State_ID);
            parm.Add("@Electricity", wellCurrentStateInfo.Electricity);
            parm.Add("@Temperature", wellCurrentStateInfo.Temperature);
            parm.Add("@Humidity", wellCurrentStateInfo.Humidity);
            parm.Add("@Smoke_Detector", wellCurrentStateInfo.Smoke_Detector);
            parm.Add("@Smoke_Power", wellCurrentStateInfo.Smoke_Power);
            parm.Add("@Signal_Strength", wellCurrentStateInfo.Signal_Strength);
            parm.Add("@Report_Time", wellCurrentStateInfo.Report_Time);
            parm.Add("@Terminal_ID", wellCurrentStateInfo.Terminal_ID);

            using (Conn)
            {
                return(Conn.Execute(UPDATE_Well_Current_State, parm));
            }
        }
Exemple #3
0
 /// <summary>
 /// 维护信息更新
 /// </summary>
 public int UpdateMaintainInfo(WellCurrentStateInfo wellCurrentStateInfo)
 {
     return(wellcurrentdal.UpdateMaintainInfo(wellCurrentStateInfo));
 }