Example #1
0
        /// <summary>
        /// 更新JC_DEF的部分属性
        /// </summary>
        /// <param name="point">分站测点号</param>
        /// <param name="paramater">key = 属性名称(区分大小写),value = 值</param>
        public static void UpdatePointDefineInfoByProperties(string pointID, Dictionary <string, object> paramater)
        {
            DefineCacheUpdatePropertiesRequest defineCacheUpdatePropertiesRequest = new DefineCacheUpdatePropertiesRequest();

            defineCacheUpdatePropertiesRequest.PointID     = pointID;
            defineCacheUpdatePropertiesRequest.UpdateItems = paramater;
            pointDefineCacheService.UpdatePointDefineInfo(defineCacheUpdatePropertiesRequest);
        }
Example #2
0
 public static void UpdatePointDefineInfoByProperties(string pointID, Dictionary <string, object> paramater)
 {
     try
     {
         DefineCacheUpdatePropertiesRequest defineCacheUpdatePropertiesRequest = new DefineCacheUpdatePropertiesRequest();
         defineCacheUpdatePropertiesRequest.PointID     = pointID;
         defineCacheUpdatePropertiesRequest.UpdateItems = paramater;
         PointDefineCacheService.UpdatePointDefineInfo(defineCacheUpdatePropertiesRequest);
     }
     catch (Exception ex)
     {
         LogHelper.Error("ElectricityStatistics-UpdatePointDefineInfoByProperties Error【pointID = " + pointID + "】" + ex.Message);
     }
 }
 public BasicResponse UpdatePointDefineInfo(DefineCacheUpdatePropertiesRequest pointDefineCacheRequest)
 {
     PointWriteCache.GetInstance.UpdatePointInfo(pointDefineCacheRequest.PointID, pointDefineCacheRequest.UpdateItems);
     return(new BasicResponse());
 }