Example #1
0
 /// <summary>
 /// 更新站别信息
 /// </summary>
 /// <param name="obj"></param>
 /// <returns></returns>
 public int Update(station_info obj)
 {
     try
     {
         int count = PostgreHelper.UpdateSingleEntity <station_info>(obj);
         return(count);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 /// <summary>
 /// 更新人员信息
 /// </summary>
 /// <param user_name="obj"></param>
 /// <returns></returns>
 public int Update(person obj)
 {
     try
     {
         int count = 0;
         count = PostgreHelper.UpdateSingleEntity <person>(obj);
         return(count);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #3
0
        public int Update(error_quality_log obj)
        {
            int count = 0;

            try
            {
                count = PostgreHelper.UpdateSingleEntity <error_quality_log>(obj);
                return(count);
            }
            catch (Exception ex)
            {
                return(count);
            }
        }
Example #4
0
        /// <summary>
        /// 更新
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public int Update(CtAveraged obj, Dictionary <string, object> Dic = null)
        {
            try
            {
                int count = 0;
                if (Dic == null)
                {
                    count = PostgreHelper.UpdateSingleEntity <CtAveraged>(obj);
                }
                else
                {
                    count = PostgreHelper.UpdateSingleEntity <CtAveraged>(CtAveraged.TableName, obj.id, Dic);
                }

                return(count);
            }
            catch (Exception ex)
            {
            }
            return(-1);
        }
Example #5
0
        public int Update(srp_inner_log Obj)
        {
            int count = PostgreHelper.UpdateSingleEntity <srp_inner_log>(Obj);

            return(count);
        }
Example #6
0
        public int Update(error_log_person Obj)
        {
            int count = PostgreHelper.UpdateSingleEntity <error_log_person>(Obj);

            return(count);
        }
Example #7
0
        /// <summary>
        /// 更新error_log对象
        /// </summary>
        /// <param name="Obj"></param>
        /// <returns></returns>
        public int Update(error_log Obj, Dictionary <string, object> UpdateDic)
        {
            int id = PostgreHelper.UpdateSingleEntity <error_log>("andon.error_log", Obj.id, UpdateDic);

            return(id);
        }
Example #8
0
        /// <summary>
        /// 更新error_log对象
        /// </summary>
        /// <param name="Obj"></param>
        /// <returns></returns>
        public int Update(error_log Obj)
        {
            int id = PostgreHelper.UpdateSingleEntity <error_log>(Obj);

            return(id);
        }
        public int Update(error_config Obj)
        {
            int count = PostgreHelper.UpdateSingleEntity <error_config>(Obj);

            return(count);
        }