/// <summary> /// 保存用户标记点 /// </summary> /// <returns></returns> public bool Save() { try { if (_markedPoints != null && _markedPoints.Count > 0) { foreach (var item in _markedPoints) { string getIDStr = "select max(id)+1 from IndexOri"; object obj = _indexOperator.ExecuteScalar(getIDStr); string ID = string.Empty; if (obj != null && !string.IsNullOrEmpty(obj.ToString())) { ID = obj.ToString(); } else { ID = "1"; } string sqlInsert = "insert into IndexOri values(" + ID + ",0,'" + item.FilePointer + "','" + item.UserSetMileage + "')"; _indexOperator.ExcuteSql(sqlInsert); } return(true); } return(false); } catch (Exception ex) { throw ex; } }