private void repositoryItemButtonEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            try
            {
                int     rowhandle = gridView1.FocusedRowHandle;
                DataRow dr        = gridView1.GetDataRow(rowhandle);
                PointDefineGetByPointRequest PointDefineRequest = new PointDefineGetByPointRequest();
                PointDefineRequest.Point = dr["Point"].ToString().Substring(0, 3) + "0000";
                Jc_DefInfo def = pointDefineService.GetPointDefineCacheByPoint(PointDefineRequest).Data;
                Dictionary <string, Dictionary <string, object> > PointItemsList = new Dictionary <string, Dictionary <string, object> >();
                Dictionary <string, object> PointItems = new Dictionary <string, object>();
                PointItems.Add("DefIsInit", true);
                PointItemsList.Add(def.PointID, PointItems);

                //调用服务端批量更新缓存业务来更新,修改为更新定义保存之后的是否发初始化标记,并保存巡检调用驱动预处理发初始化  20170720
                DefineCacheBatchUpdatePropertiesRequest PointDefineUpdateRequest = new DefineCacheBatchUpdatePropertiesRequest();
                PointDefineUpdateRequest.PointItems = PointItemsList;
                pointDefineService.BatchUpdatePointDefineInfo(PointDefineUpdateRequest);

                _ConfigService.SaveInspection();//保存巡检
            }
            catch (Exception ex)
            {
                Basic.Framework.Logging.LogHelper.Error(ex);
            }
        }
        public static void UpdateJC_defByProperties(Dictionary <string, Dictionary <string, object> > updateItems)
        {
            DefineCacheBatchUpdatePropertiesRequest request = new DefineCacheBatchUpdatePropertiesRequest();

            request.PointItems = updateItems;
            pointDefineService.BatchUpdatePointDefineInfo(request);
        }
 public BasicResponse BatchUpdatePointDefineInfo(DefineCacheBatchUpdatePropertiesRequest request)
 {
     return(_PointDefineService.BatchUpdatePointDefineInfo(request));
 }