| | |
| | | /// <summary> |
| | | /// 设置Object测点映射 |
| | | /// </summary> |
| | | public bool SetOfObject(long CorpID,string ObjectType,long ObjectID, List<Model.MonitorPointMapping> list) |
| | | public bool SetOfObject(long CorpID, string ObjectType, long ObjectID, List<Model.MonitorPointMapping> list) |
| | | { |
| | | if (list == null || list.Count() < 1) |
| | | return false; |
| | | /*if (list == null || list.Count() < 1) |
| | | return false;*/ |
| | | var dal = new DAL.MonitorPointMapping(); |
| | | var entity_list = Model2Entities(list.ToList()); |
| | | var bol = dal.SetOfObject(CorpID,ObjectType,ObjectID, entity_list); |
| | | var bol = dal.SetOfObject(CorpID, ObjectType, ObjectID, entity_list); |
| | | if (bol) |
| | | { |
| | | UpdateCorpCacheByObjectTypeAndObjectID(CorpID, ObjectType, ObjectID); |