/// <summary>
        /// 修改充电桩报警数据
        /// </summary>
        public bool EditAMCIMPolice(AM_CIMPolice mod, AM_CIMPolice mod2)
        {
            bool b = false;

            OpSql.Open();
            try
            {
                b = OpSql.Update(new object[] { mod }, new object[] { mod2 });
            }
            catch { }
            finally { OpSql.Close(); }
            return(b);
        }
        /// <summary>
        /// 修改充电站
        /// </summary>
        /// <param name="mod">旧G_ChargeStation实体</param>
        /// <param name="mod2">新G_ChargeStation实体</param>
        public bool EditChargeStation(G_ChargeStation mod, G_ChargeStation mod2)
        {
            bool b = false;

            OpSql.Open();
            try
            {
                b = OpSql.Update(new object[] { mod }, new object[] { mod2 });
            }
            catch { }
            finally { OpSql.Close(); }
            return(b);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 修改留言
        /// </summary>
        /// <returns></returns>
        public bool EditMessage(g_message mod, g_message mod2)
        {
            bool b = false;

            OpSql.Open();
            try
            {
                b = OpSql.Update(new object[] { mod }, new object[] { mod2 });
            }
            catch { }
            finally { OpSql.Close(); }
            return(b);
        }