You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-08-10 22:41:43 +02:00
Main build (Jenkins)
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -57,7 +57,7 @@ Function CreateConnection(Val Address) Export
|
|||||||
|
|
||||||
OPI_TypeConversion.GetLine(Address);
|
OPI_TypeConversion.GetLine(Address);
|
||||||
|
|
||||||
TCPClient = AttachAddInOnServer("OPI_TCPClient");
|
TCPClient = OPI_Tools.GetAddInObject("OPI_TCPClient");
|
||||||
|
|
||||||
TCPClient.Address = Address;
|
TCPClient.Address = Address;
|
||||||
|
|
||||||
@@ -206,6 +206,11 @@ Function ProcessRequest(Val Address, Val Data = "", Val ResponseString = True) E
|
|||||||
OPI_TypeConversion.GetBoolean(ResponseString);
|
OPI_TypeConversion.GetBoolean(ResponseString);
|
||||||
|
|
||||||
Connection = CreateConnection(Address);
|
Connection = CreateConnection(Address);
|
||||||
|
|
||||||
|
If Connection = Undefined Then
|
||||||
|
Return "OPI: Unable to establish a connection";
|
||||||
|
EndIf;
|
||||||
|
|
||||||
Result = SendBinaryData(Connection, Data);
|
Result = SendBinaryData(Connection, Data);
|
||||||
|
|
||||||
If Result Then
|
If Result Then
|
||||||
@@ -230,21 +235,3 @@ EndFunction
|
|||||||
|
|
||||||
#EndRegion
|
#EndRegion
|
||||||
|
|
||||||
#Region Private
|
|
||||||
|
|
||||||
Function AttachAddInOnServer(Val AddInName, Val Class = "Main")
|
|
||||||
|
|
||||||
If OPI_Tools.IsOneScript() Then
|
|
||||||
TemplateName = OPI_Tools.AddInsFolderOS() + AddInName + ".zip";
|
|
||||||
Else
|
|
||||||
TemplateName = "CommonTemplate." + AddInName;
|
|
||||||
EndIf;
|
|
||||||
|
|
||||||
AttachAddIn(TemplateName, AddInName, AddInType.Native);
|
|
||||||
|
|
||||||
AddIn = New("AddIn." + AddInName + "." + Class);
|
|
||||||
Return AddIn;
|
|
||||||
|
|
||||||
EndFunction
|
|
||||||
|
|
||||||
#EndRegion
|
|
||||||
|
@@ -1146,6 +1146,21 @@ Function MergeData(Val Data, Val Addition) Export
|
|||||||
|
|
||||||
EndFunction
|
EndFunction
|
||||||
|
|
||||||
|
Function GetAddInObject(Val AddInName, Val Class = "Main") Export
|
||||||
|
|
||||||
|
If OPI_Tools.IsOneScript() Then
|
||||||
|
TemplateName = OPI_Tools.AddInsFolderOS() + AddInName + ".zip";
|
||||||
|
Else
|
||||||
|
TemplateName = "CommonTemplate." + AddInName;
|
||||||
|
EndIf;
|
||||||
|
|
||||||
|
AttachAddIn(TemplateName, AddInName, AddInType.Native);
|
||||||
|
|
||||||
|
AddIn = New("AddIn." + AddInName + "." + Class);
|
||||||
|
Return AddIn;
|
||||||
|
|
||||||
|
EndFunction
|
||||||
|
|
||||||
#EndRegion
|
#EndRegion
|
||||||
|
|
||||||
#EndRegion
|
#EndRegion
|
||||||
|
@@ -57,7 +57,7 @@ Function CreateConnection(Val Address) Export
|
|||||||
|
|
||||||
OPI_TypeConversion.GetLine(Address);
|
OPI_TypeConversion.GetLine(Address);
|
||||||
|
|
||||||
TCPClient = AttachAddInOnServer("OPI_TCPClient");
|
TCPClient = OPI_Tools.GetAddInObject("OPI_TCPClient");
|
||||||
|
|
||||||
TCPClient.Address = Address;
|
TCPClient.Address = Address;
|
||||||
|
|
||||||
@@ -206,6 +206,11 @@ Function ProcessRequest(Val Address, Val Data = "", Val ResponseString = True) E
|
|||||||
OPI_TypeConversion.GetBoolean(ResponseString);
|
OPI_TypeConversion.GetBoolean(ResponseString);
|
||||||
|
|
||||||
Connection = CreateConnection(Address);
|
Connection = CreateConnection(Address);
|
||||||
|
|
||||||
|
If Connection = Undefined Then
|
||||||
|
Return "OPI: Unable to establish a connection";
|
||||||
|
EndIf;
|
||||||
|
|
||||||
Result = SendBinaryData(Connection, Data);
|
Result = SendBinaryData(Connection, Data);
|
||||||
|
|
||||||
If Result Then
|
If Result Then
|
||||||
@@ -230,21 +235,3 @@ EndFunction
|
|||||||
|
|
||||||
#EndRegion
|
#EndRegion
|
||||||
|
|
||||||
#Region Private
|
|
||||||
|
|
||||||
Function AttachAddInOnServer(Val AddInName, Val Class = "Main")
|
|
||||||
|
|
||||||
If OPI_Tools.IsOneScript() Then
|
|
||||||
TemplateName = OPI_Tools.AddInsFolderOS() + AddInName + ".zip";
|
|
||||||
Else
|
|
||||||
TemplateName = "CommonTemplate." + AddInName;
|
|
||||||
EndIf;
|
|
||||||
|
|
||||||
AttachAddIn(TemplateName, AddInName, AddInType.Native);
|
|
||||||
|
|
||||||
AddIn = New("AddIn." + AddInName + "." + Class);
|
|
||||||
Return AddIn;
|
|
||||||
|
|
||||||
EndFunction
|
|
||||||
|
|
||||||
#EndRegion
|
|
||||||
|
@@ -1146,6 +1146,21 @@ Function MergeData(Val Data, Val Addition) Export
|
|||||||
|
|
||||||
EndFunction
|
EndFunction
|
||||||
|
|
||||||
|
Function GetAddInObject(Val AddInName, Val Class = "Main") Export
|
||||||
|
|
||||||
|
If OPI_Tools.IsOneScript() Then
|
||||||
|
TemplateName = OPI_Tools.AddInsFolderOS() + AddInName + ".zip";
|
||||||
|
Else
|
||||||
|
TemplateName = "CommonTemplate." + AddInName;
|
||||||
|
EndIf;
|
||||||
|
|
||||||
|
AttachAddIn(TemplateName, AddInName, AddInType.Native);
|
||||||
|
|
||||||
|
AddIn = New("AddIn." + AddInName + "." + Class);
|
||||||
|
Return AddIn;
|
||||||
|
|
||||||
|
EndFunction
|
||||||
|
|
||||||
#EndRegion
|
#EndRegion
|
||||||
|
|
||||||
#EndRegion
|
#EndRegion
|
||||||
|
Reference in New Issue
Block a user