Ver Mensaje Individual
  #6 (permalink)  
Antiguo 10/12/2012, 10:21
Avatar de Aquaventus
Aquaventus
 
Fecha de Ingreso: junio-2010
Ubicación: Lima-Peru , En el alba de la naturaleza
Mensajes: 2.105
Antigüedad: 13 años, 10 meses
Puntos: 267
Respuesta: aque se debe este tipo de error en convercion en las fechas Error de servi

Cada vez que coloques código usa las etiquetas Highlight para visualizarlo de una mejor manera y en forma ordenada :
Código vb:
Ver original
  1. Dim _DATAOPER As CasdixData.Data.iDataOper = InterfazRDN.CreaDataOper("", "", AppConst.ConexionSYS)
  2. Dim _auto As New ThorIntegSDK.Autos.Autos
  3. _auto.DataOper = _dataoper
  4. _auto.DataOperGPS = _DATAOPERGPS
  5. _auto.AU_ID_AUTO = ddl_Autos.SelectedValue
  6. _auto.Load_Autos()
  7.  
  8. ' Dim _DATAOPERGPS As CasdixData.Data.iDataOper = InterfazRDN.CreaDataOper("", "", AppConst.ConexionGPS)
  9.  
  10. Dim _eventcatch As New ThorIntegSDK.GPS.EventCatch
  11. _eventcatch.DataOper = _DATAOPERGPS
  12. _eventcatch.IMEI = _auto.DT_EQUIPOSGPS.Rows(0)(ThorIntegSDK.GPS.Equip osGPS.EquiposGPSCons.IMEI)
  13.  
  14.  
  15.  
  16. Dim _dt As Data.DataTable = _auto.List_Eventos_X_Fecha_X_IMEI(String.Format("{ 0} {1}", CDate(fc_Ini.Fecha).ToString("dd/MM/yyyy"), uc_horaini.HORAS), String.Format("{0} {1}", CDate(fc_Final.Fecha).ToString("dd/MM/yyyy"), uc_HORAFIN.HORAS), _auto.DT_EQUIPOSGPS.Rows(0)(ThorIntegSDK.GPS.Equip osGPS.EquiposGPSCons.IMEI))
  17. Dim _dt_eventos As DataTable = _auto.List_Eventos_X_Fecha_X_IMEI(String.Format("{ 0} {1}", CDate(fc_Ini.Fecha).ToString("dd/MM/yyyy"), uc_horaini.HORAS), String.Format("{0} {1}", CDate(fc_Final.Fecha).ToString("dd/MM/yyyy"), uc_HORAFIN.HORAS), _auto.DT_EQUIPOSGPS.Rows(0)(ThorIntegSDK.GPS.Equip osGPS.EquiposGPSCons.IMEI))
  18. Dim _dt_aux As DataTable = ConvierteCoord(_dt_eventos)
  19.  
  20. Dim _i As Integer = 0
  21. If _dt_aux.Rows.Count > 0 Then
  22. Dim _salto As Integer = _dt_aux.Rows.Count \ 9
  23. Origen = String.Format("{0}, {1}", _dt_aux.Rows(0)("latitud"), _dt_aux.Rows(0)("longitud"))
  24. If _dt_aux.Rows.Count >= 9 Then
  25. For _h As Integer = 8 To 1 Step -1
  26. WayPoints(_i) = "{" & String.Format(" location: ""{0},{1}"" ", _dt_aux.Rows(_h * _salto)("latitud"), _dt_aux.Rows(_h * _salto)("LONGITUD")) & "}"
  27. _i += 1
  28. Next
  29. Else
  30. For _h As Integer = 1 To _dt_aux.Rows.Count - 1
  31. WayPoints(_i) = "{" & String.Format(" location: ""{0},{1}"" ", _dt_aux.Rows(_h * _salto)("latitud"), _dt_aux.Rows(_h * _salto)("LONGITUD")) & "}"
  32. _i += 1
  33. Next
  34. End If
  35.  
  36. End If
  37.  
  38. Destino = String.Format("{0},{1}", _dt_aux.Rows(_dt_aux.Rows.Count - 1)("LATITUD"), _dt_aux.Rows(_dt_aux.Rows.Count - 1)("LONGITUD"))
  39.  
  40.  
  41. ReDim Preserve WayPoints(_i)
  42.  
  43.  
  44. WayPointsString = String.Join(",", WayPoints)
  45.  
  46. Dim _obj As New GoogleStructure
  47. _obj.Origen = Origen
  48. _obj.Destino = Destino
  49. _obj.Puntos = WayPointsString
  50. _obj.RutaSugGoogle = cb_Ruta_Sug.Checked
  51.  
  52. MisArgumentos.UserState = _obj
  53.  
  54.  
  55. Dim _j As Integer = 0
  56. ReDim Preserve PuntosAltArr(_dt_aux.Rows.Count - 1)
  57. ReDim Preserve PuntosLinea(_dt_aux.Rows.Count - 1)
  58. Dim _IMG As Integer = "0"
  59. For Each _dr As Data.DataRow In _dt_aux.Rows
  60. If _j = 1 Then
  61. _IMG = 1
  62. ElseIf _j = _dt_aux.Rows.Count - 1 Then
  63. _IMG = 2
  64. End If
  65. PuntosAltArr(_j) = "['<table ><tr><td>" & _dr("Fecha reporte GPS") & "</td></tr><tr><td>" & _dr("evento") & "</td></tr></table>'," & String.Format("{0},{1},{2}", _dr("latitud"), _dr("longitud"), _j + 1) & "," & _IMG & "]"
  66. PuntosLinea(_j) = String.Format("new google.maps.LatLng({0},{1})", _dr("latitud"), _dr("longitud"))
  67. _j += 1
  68. Next
  69. _obj.PuntosAlt = String.Join(",", PuntosAltArr)
  70. _obj.PuntosLinea = String.Join(",", PuntosLinea)
  71.  
  72. MisArgumentos.TablaHistorico = _dt_aux
  73. Return _dt_aux
  74.  
  75. ' Return (_dt_eventos)
__________________
Internet es tener todo el conocimiento global a tu disposición.
Desarrollo de Software - Ejemplos .Net