neu
This commit is contained in:
@@ -1804,18 +1804,28 @@ Public Class cRKSV_DE
|
||||
|
||||
End Function
|
||||
|
||||
Shared Function getRKSVLink(ByVal kasse As cRKSV_Kasse) As String
|
||||
Return kasse.rksv_ipAdresse
|
||||
'Return getRKSVLink(kasse.rksv_bez)
|
||||
End Function
|
||||
|
||||
Shared Function insertRKSV_DE(PERSONAL As cPersonal, BELEG As EABeleg, ByVal kasse As cRKSV_Kasse, ByVal RKSV_Beleg_Id As Integer, ByVal summeBRUTTO As Double, ByRef QR_CodeString As String, ByRef LastJWS As String, TEST As Boolean, ByRef answer As String, Optional storno As Integer = 0) As Boolean
|
||||
|
||||
Try
|
||||
|
||||
|
||||
Dim cashbox As String = kasse.rksv_KassaGuid '"VERAG_GMBH_KASSE_01" "KASSA 001"
|
||||
Dim m_com As VERAG_PROG_ALLGEMEIN.RKSV_DE.DSFinVKServerClient = New VERAG_PROG_ALLGEMEIN.RKSV_DE.DSFinVKServerClient
|
||||
'Dim endpoint = New System.ServiceModel.EndpointAddress(getRKSVLink(kasse))
|
||||
' Dim m_com As VERAG_PROG_ALLGEMEIN.DSFinVKService.DSFinVKServerClient = New VERAG_PROG_ALLGEMEIN.DSFinVKService.DSFinVKServerClient("DSFinVKService", endpoint) '"http://ymgk028055.verag.ost.dmn:8733/DSFinVKService")
|
||||
|
||||
Dim m_com As VERAG_PROG_ALLGEMEIN.DSFinVKService.DSFinVKServerClient = New VERAG_PROG_ALLGEMEIN.DSFinVKService.DSFinVKServerClient() 'PROBLEM??
|
||||
|
||||
|
||||
|
||||
' Dim [error] = "" 'm_com.InitializeLibrary(tbLicense.Text, "D:\Database\DSFinVK\dsfinvkdb.db3", "Administrator", "test", cashbox)
|
||||
Dim [error] = m_com.InitializeLibrary("SQLGUIDE01.verag.ost.dmn", "itg_RKSV_DE", "dsfinvk", "dsfinvk#1337", cashbox)
|
||||
|
||||
If [error] <> VERAG_PROG_ALLGEMEIN.RKSV_DE.ErrorCode.OK Then
|
||||
If [error] <> VERAG_PROG_ALLGEMEIN.DSFinVKService.ErrorCode.OK Then
|
||||
MessageBox.Show([error].ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.[Error])
|
||||
Return False
|
||||
End If
|
||||
@@ -1824,7 +1834,7 @@ Public Class cRKSV_DE
|
||||
Dim BON_ID As Integer = 0
|
||||
[error] = m_com.GetNextBON_ID(cashbox, BON_ID)
|
||||
|
||||
If [error] <> VERAG_PROG_ALLGEMEIN.RKSV_DE.ErrorCode.OK Then
|
||||
If [error] <> VERAG_PROG_ALLGEMEIN.DSFinVKService.ErrorCode.OK Then
|
||||
MessageBox.Show([error].ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.[Error])
|
||||
Return False
|
||||
End If
|
||||
@@ -1832,7 +1842,7 @@ Public Class cRKSV_DE
|
||||
Dim BON_NR As Integer = 0
|
||||
[error] = m_com.GetNextBON_ID(cashbox, BON_NR)
|
||||
|
||||
If [error] <> VERAG_PROG_ALLGEMEIN.RKSV_DE.ErrorCode.OK Then
|
||||
If [error] <> VERAG_PROG_ALLGEMEIN.DSFinVKService.ErrorCode.OK Then
|
||||
MessageBox.Show([error].ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.[Error])
|
||||
Return False
|
||||
End If
|
||||
@@ -1841,7 +1851,7 @@ Public Class cRKSV_DE
|
||||
|
||||
'Rechnung beginnen
|
||||
|
||||
Dim bonkopfBegin As VERAG_PROG_ALLGEMEIN.RKSV_DE.BonKopfBegin = New VERAG_PROG_ALLGEMEIN.RKSV_DE.BonKopfBegin()
|
||||
Dim bonkopfBegin As VERAG_PROG_ALLGEMEIN.DSFinVKService.BonKopfBegin = New VERAG_PROG_ALLGEMEIN.DSFinVKService.BonKopfBegin()
|
||||
|
||||
bonkopfBegin.Z_KASSE_ID = cashbox
|
||||
|
||||
@@ -1888,7 +1898,7 @@ Public Class cRKSV_DE
|
||||
For Each POS In BELEG.POS
|
||||
|
||||
'Bonposition hinzufügen
|
||||
Dim position As VERAG_PROG_ALLGEMEIN.RKSV_DE.BonPosition = New VERAG_PROG_ALLGEMEIN.RKSV_DE.BonPosition()
|
||||
Dim position As VERAG_PROG_ALLGEMEIN.DSFinVKService.BonPosition = New VERAG_PROG_ALLGEMEIN.DSFinVKService.BonPosition()
|
||||
|
||||
position.AGENTUR_ID = "" 'Convert.ToInt32(dgvBonPos.Rows[m_dgvCurrentRow].Cells["AGENTUR_ID"].Value)
|
||||
|
||||
@@ -1930,7 +1940,7 @@ Public Class cRKSV_DE
|
||||
|
||||
' Beträge der Position
|
||||
|
||||
Dim position_vat = New VERAG_PROG_ALLGEMEIN.RKSV_DE.BonPosition_Ust()
|
||||
Dim position_vat = New VERAG_PROG_ALLGEMEIN.DSFinVKService.BonPosition_Ust()
|
||||
|
||||
position_vat.BON_ID = position.BON_ID
|
||||
|
||||
@@ -1960,7 +1970,7 @@ Public Class cRKSV_DE
|
||||
|
||||
'Rechnung abschließen
|
||||
|
||||
Dim bonkopfFinish As VERAG_PROG_ALLGEMEIN.RKSV_DE.BonKopfFinish = New VERAG_PROG_ALLGEMEIN.RKSV_DE.BonKopfFinish()
|
||||
Dim bonkopfFinish As VERAG_PROG_ALLGEMEIN.DSFinVKService.BonKopfFinish = New VERAG_PROG_ALLGEMEIN.DSFinVKService.BonKopfFinish()
|
||||
|
||||
bonkopfFinish.Z_KASSE_ID = cashbox
|
||||
|
||||
@@ -2025,12 +2035,12 @@ Public Class cRKSV_DE
|
||||
Dim transactionStart As Date
|
||||
Dim transactionFinish As Date
|
||||
Dim sigCounter As String
|
||||
m_com.GetLastReceiptValues(transactionNumberRet, serialNumber, signature, transactionStart, transactionFinish, sigCounter)
|
||||
m_com.GetLastReceiptValues(cashbox, transactionNumberRet, serialNumber, signature, transactionStart, transactionFinish, sigCounter)
|
||||
|
||||
|
||||
Dim qrCode As String = String.Empty
|
||||
Dim mimeType As String = String.Empty
|
||||
m_com.GetLastReceiptQrCode(qrCode, mimeType)
|
||||
m_com.GetLastReceiptQrCode(cashbox, qrCode, mimeType)
|
||||
|
||||
|
||||
QR_CodeString = qrCode
|
||||
|
||||
Reference in New Issue
Block a user