/// <summary> /// 加载集结点 /// </summary> /// <param name="map"></param> /// <param name="model"></param> public static void LoadGatherPoint(Core.Map.MapHelper map, Core.Model.DisaGatherPoint model) { ISymbol symbol = map.CreateSimpleSymbol(Color.Blue, 8, ESRI.ArcGIS.Display.esriSimpleMarkerStyle.esriSMSCircle); IPoint pPoint = new PointClass(); pPoint.PutCoords(model.LON, model.LAT); map.AddElement(pPoint, symbol, "GatherPoint|" + model.PID); }
/// <summary> /// 是否存在该记录 /// </summary> public bool Exists(Core.Model.DisaGatherPoint model) { StringBuilder strSql = new StringBuilder(); strSql.Append("SELECT COUNT(1) FROM DisaGatherPoint"); strSql.Append(" WHERE PName='" + model.PName + "' AND ID<>" + model.ID + " and PID=" + model.PID); return(DbHelperSQL.Exists(strSql.ToString())); }