Пример #1
0
        /// <summary>
        /// 合并其他状态数据
        /// </summary>
        /// <param name="xmlDBManager"></param>
        private void MergerElseStateSymbol(XmlDBManager xmlDBManager)
        {
            updateStateGEOMETRY = new Dictionary <ObjectId, ElectronSymbol>();
            notPointFidList     = new List <long>();
            pointFidList        = new List <long>();
            var tables = xmlDBManager.GetInerementTables();

            foreach (var table in tables)
            {
                //查询修改过的数据
                var entities = table.Entities.Where(o => o.EntityState != EntityState.Insert && o.EntityState != EntityState.None);
                foreach (var entity in entities)
                {
                    //过滤新增状态的连接关系(Add_Add_Add)
                    var entityState = entity.EntityState.ToString().Split('_');
                    if (entityState[0] == "Add")
                    {
                        continue;
                    }
                    //DBManager.Instance.Update(entity);
                    UpdateGraph(entity);
                }
            }
            //更新点设备图形
            UpdatePointGraph();
        }