DAtabase integriert
This commit is contained in:
@@ -151,7 +151,7 @@ Public Class frmGeodataNavigation
|
||||
Private Sub LoadData()
|
||||
Dim rowhandle As Integer = grvwMain.FocusedRowHandle
|
||||
|
||||
EntityDataTable = ClassDatabase.Return_Datatable(EntitySql)
|
||||
EntityDataTable = MYDB_ECM.GetDatatable(EntitySql)
|
||||
LoadItemList()
|
||||
LoadGridData()
|
||||
|
||||
@@ -339,7 +339,7 @@ Public Class frmGeodataNavigation
|
||||
Dim currentRow As DataRowView = grvwMain.GetFocusedRow()
|
||||
Dim RecordId As Integer = currentRow.Item("Record-ID")
|
||||
|
||||
Dim geoDataExists As Boolean = ClassDatabase.Execute_Scalar("SELECT RECORD_ID FROM TBPMO_RECORD_GEODATA WHERE RECORD_ID = " & RecordId)
|
||||
Dim geoDataExists As Boolean = MYDB_ECM.GetScalarValue("SELECT RECORD_ID FROM TBPMO_RECORD_GEODATA WHERE RECORD_ID = " & RecordId)
|
||||
|
||||
If geoDataExists Then
|
||||
Dim SQL As String = "UPDATE TBPMO_RECORD_GEODATA SET LATITUDE = @lat, LONGITUDE = @lon, CHANGED_WHO = @who WHERE RECORD_ID = @recordid"
|
||||
@@ -402,7 +402,7 @@ Public Class frmGeodataNavigation
|
||||
Dim RecordId As Integer = currentRow.Item("Record-ID")
|
||||
Dim sql = "DELETE FROM TBPMO_RECORD_GEODATA WHERE RECORD_ID = " & RecordId
|
||||
|
||||
ClassDatabase.Execute_Scalar(sql)
|
||||
MYDB_ECM.GetScalarValue(SQL)
|
||||
|
||||
LoadData()
|
||||
End If
|
||||
|
||||
Reference in New Issue
Block a user