ZooFlow: Remove modcurrent, move flowsearch, small changes
This commit is contained in:
parent
e8358e2921
commit
6fd11a09c7
@ -54,16 +54,17 @@ Namespace My
|
|||||||
|
|
||||||
If oConfigManager.Config.AppServerConfig <> String.Empty Then
|
If oConfigManager.Config.AppServerConfig <> String.Empty Then
|
||||||
Try
|
Try
|
||||||
Dim oSplit() As String = oConfigManager.Config.AppServerConfig.ToString.Split(":")
|
Dim oSplit() As String = oConfigManager.Config.AppServerConfig.ToString.Split(":"c)
|
||||||
Dim oAppServerAddress As String = oSplit(0)
|
Dim oAppServerAddress As String = oSplit(0)
|
||||||
Dim oAppServerPort As Integer = 9000
|
Dim oAppServerPort As Integer = 9000
|
||||||
If oSplit.Length = 2 Then
|
If oSplit.Length = 2 Then
|
||||||
oAppServerPort = oSplit(1)
|
oAppServerPort = oSplit(1)
|
||||||
End If
|
End If
|
||||||
_Client = New Client(LogConfig, oAppServerAddress, oAppServerPort)
|
|
||||||
If Not IsNothing(_Client) Then
|
My.Application.Service.Client = New Client(LogConfig, oAppServerAddress, oAppServerPort)
|
||||||
If _Client.Connect() Then
|
If Not IsNothing(My.Application.Service.Client) Then
|
||||||
APPSERVER_ACTIVE = True
|
If My.Application.Service.Client.Connect() Then
|
||||||
|
My.Application.Service.IsActive = True
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
|
|||||||
@ -281,22 +281,23 @@ Public Class ClassInit
|
|||||||
For Each oLine In oLines
|
For Each oLine In oLines
|
||||||
_Logger.Debug(oLine.Trim)
|
_Logger.Debug(oLine.Trim)
|
||||||
If oLine = "NO_BASICCONF" Then
|
If oLine = "NO_BASICCONF" Then
|
||||||
NOBASIC_CONF = True
|
My.Application.User.HideBasicConfig = True
|
||||||
|
|
||||||
ElseIf oLine.StartsWith("SEARCH_STRING_ATTRID") Then
|
ElseIf oLine.StartsWith("SEARCH_STRING_ATTRID") Then
|
||||||
Try
|
Try
|
||||||
Dim oResult = oLine.Replace("SEARCH_STRING_ATTRID=", "")
|
Dim oResult = oLine.Replace("SEARCH_STRING_ATTRID=", "")
|
||||||
SEARCH_STRING_ATTRID = oResult
|
My.Application.Search.StringAttributeId = Long.Parse(oResult)
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
SEARCH_STRING_ATTRID = ""
|
My.Application.Search.StringAttributeId = -1
|
||||||
End Try
|
End Try
|
||||||
ElseIf oLine.StartsWith("SEARCH_INT_ATTRID") Then
|
ElseIf oLine.StartsWith("SEARCH_INT_ATTRID") Then
|
||||||
Try
|
Try
|
||||||
Dim oResult = oLine.Replace("SEARCH_INT_ATTRID=", "")
|
Dim oResult = oLine.Replace("SEARCH_INT_ATTRID=", "")
|
||||||
SEARCH_INTEGER_ATTRID = oResult
|
|
||||||
Catch ex As Exception
|
|
||||||
SEARCH_INTEGER_ATTRID = ""
|
|
||||||
End Try
|
|
||||||
|
|
||||||
|
My.Application.Search.IntegerAttributeId = Long.Parse(oResult)
|
||||||
|
Catch ex As Exception
|
||||||
|
My.Application.Search.IntegerAttributeId = -1
|
||||||
|
End Try
|
||||||
Else
|
Else
|
||||||
_Logger.Info($"Wrong WorkingMode: {oLine}")
|
_Logger.Info($"Wrong WorkingMode: {oLine}")
|
||||||
End If
|
End If
|
||||||
|
|||||||
@ -33,9 +33,6 @@
|
|||||||
Public Property CURRENT_MESSAGEID As String
|
Public Property CURRENT_MESSAGEID As String
|
||||||
Public Property CURRENT_BusinessEntity As String
|
Public Property CURRENT_BusinessEntity As String
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Public Function FileExistsinDropTable(Filename As String) As Boolean
|
Public Function FileExistsinDropTable(Filename As String) As Boolean
|
||||||
Dim oSQL As String
|
Dim oSQL As String
|
||||||
Try
|
Try
|
||||||
|
|||||||
@ -49,6 +49,7 @@ Namespace My
|
|||||||
Public Property ClipboardWatcher As New ClipboardWatcher.State
|
Public Property ClipboardWatcher As New ClipboardWatcher.State
|
||||||
Public Property IDB_ConnectionString As String
|
Public Property IDB_ConnectionString As String
|
||||||
Public Property Globix As New Globix.State
|
Public Property Globix As New Globix.State
|
||||||
|
Public Property Search As New Search.State
|
||||||
|
|
||||||
Public Property GDPictureLicense As String
|
Public Property GDPictureLicense As String
|
||||||
|
|
||||||
|
|||||||
6
GUIs.ZooFlow/Search/State.vb
Normal file
6
GUIs.ZooFlow/Search/State.vb
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
Namespace Search
|
||||||
|
Public Class State
|
||||||
|
Public Property StringAttributeId As Long = -1
|
||||||
|
Public Property IntegerAttributeId As Long = -1
|
||||||
|
End Class
|
||||||
|
End Namespace
|
||||||
@ -97,10 +97,12 @@ Public Class frmFlowSearch
|
|||||||
Private Function StartSearch_Full(pSearchValue As String) As Boolean
|
Private Function StartSearch_Full(pSearchValue As String) As Boolean
|
||||||
Dim oHandle As IOverlaySplashScreenHandle = Nothing
|
Dim oHandle As IOverlaySplashScreenHandle = Nothing
|
||||||
Dim oItemsFound As Boolean = False
|
Dim oItemsFound As Boolean = False
|
||||||
|
Dim oState = My.Application.Search
|
||||||
|
|
||||||
Try
|
Try
|
||||||
oHandle = SplashScreenManager.ShowOverlayForm(Me)
|
oHandle = SplashScreenManager.ShowOverlayForm(Me)
|
||||||
|
|
||||||
Dim oEXECSQL = $"EXEC PRFLOW_SEARCH_GET_RESULT '{pSearchValue}',{My.Application.User.UserId},'{SEARCH_STRING_ATTRID}','{SEARCH_INTEGER_ATTRID}'"
|
Dim oEXECSQL = $"EXEC PRFLOW_SEARCH_GET_RESULT '{pSearchValue}',{My.Application.User.UserId},'{oState.StringAttributeId}','{oState.IntegerAttributeId}'"
|
||||||
Dim oDTOBJECT_RESULT As DataTable = My.DatabaseIDB.GetDatatable(oEXECSQL)
|
Dim oDTOBJECT_RESULT As DataTable = My.DatabaseIDB.GetDatatable(oEXECSQL)
|
||||||
If Not IsNothing(oDTOBJECT_RESULT) Then
|
If Not IsNothing(oDTOBJECT_RESULT) Then
|
||||||
Dim oEnvironment As New Modules.ZooFlow.Environment() With {
|
Dim oEnvironment As New Modules.ZooFlow.Environment() With {
|
||||||
@ -114,10 +114,10 @@
|
|||||||
<Compile Include="Base\BaseClass.vb" />
|
<Compile Include="Base\BaseClass.vb" />
|
||||||
<Compile Include="ClassClipboardWatcher.vb" />
|
<Compile Include="ClassClipboardWatcher.vb" />
|
||||||
<Compile Include="ClassCommandlineArgs.vb" />
|
<Compile Include="ClassCommandlineArgs.vb" />
|
||||||
<Compile Include="FlowSearch\frmFlowSearch.Designer.vb">
|
<Compile Include="Search\frmFlowSearch.Designer.vb">
|
||||||
<DependentUpon>frmFlowSearch.vb</DependentUpon>
|
<DependentUpon>frmFlowSearch.vb</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="FlowSearch\frmFlowSearch.vb">
|
<Compile Include="Search\frmFlowSearch.vb">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="modCurrent.vb" />
|
<Compile Include="modCurrent.vb" />
|
||||||
@ -215,7 +215,8 @@
|
|||||||
<Compile Include="MyApplication.vb" />
|
<Compile Include="MyApplication.vb" />
|
||||||
<Compile Include="Queries\ClassQueries.vb" />
|
<Compile Include="Queries\ClassQueries.vb" />
|
||||||
<Compile Include="Search\SearchFilter.vb" />
|
<Compile Include="Search\SearchFilter.vb" />
|
||||||
<EmbeddedResource Include="FlowSearch\frmFlowSearch.resx">
|
<Compile Include="Search\State.vb" />
|
||||||
|
<EmbeddedResource Include="Search\frmFlowSearch.resx">
|
||||||
<DependentUpon>frmFlowSearch.vb</DependentUpon>
|
<DependentUpon>frmFlowSearch.vb</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="frmAdministrationZooFlow.resx">
|
<EmbeddedResource Include="frmAdministrationZooFlow.resx">
|
||||||
|
|||||||
@ -1,9 +0,0 @@
|
|||||||
Imports DigitalData.Modules.EDMI.API
|
|
||||||
|
|
||||||
Module modCurrent
|
|
||||||
Public _Client As Client
|
|
||||||
Public APPSERVER_ACTIVE As Boolean = False
|
|
||||||
Public SEARCH_STRING_ATTRID As String
|
|
||||||
Public SEARCH_INTEGER_ATTRID As String
|
|
||||||
Public NOBASIC_CONF As Boolean = False
|
|
||||||
End Module
|
|
||||||
@ -1,8 +1,11 @@
|
|||||||
Namespace State
|
Imports DigitalData.Modules.EDMI.API
|
||||||
|
|
||||||
|
Namespace State
|
||||||
Public Class ServiceState
|
Public Class ServiceState
|
||||||
Public Property IsOnline As Boolean = False
|
Public Property IsOnline As Boolean = False
|
||||||
Public Property IsActive As Boolean = False
|
Public Property IsActive As Boolean = False
|
||||||
Public Property LastChecked As Date = Date.Now
|
Public Property LastChecked As Date = Date.Now
|
||||||
Public Property Address As String = String.Empty
|
Public Property Address As String = String.Empty
|
||||||
|
Public Property Client As Client = Nothing
|
||||||
End Class
|
End Class
|
||||||
End Namespace
|
End Namespace
|
||||||
@ -15,6 +15,8 @@ Namespace State
|
|||||||
Public Property DateFormat As String
|
Public Property DateFormat As String
|
||||||
Public Property Language As String
|
Public Property Language As String
|
||||||
|
|
||||||
|
Public Property HideBasicConfig As Boolean = False
|
||||||
|
|
||||||
''' <summary>
|
''' <summary>
|
||||||
''' Initialize user object with values that can be read from the environment
|
''' Initialize user object with values that can be read from the environment
|
||||||
''' </summary>
|
''' </summary>
|
||||||
|
|||||||
@ -123,6 +123,10 @@
|
|||||||
<Project>{EAF0EA75-5FA7-485D-89C7-B2D843B03A96}</Project>
|
<Project>{EAF0EA75-5FA7-485D-89C7-B2D843B03A96}</Project>
|
||||||
<Name>Database</Name>
|
<Name>Database</Name>
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
|
<ProjectReference Include="..\Modules.EDMIAPI\EDMI.API.vbproj">
|
||||||
|
<Project>{25017513-0D97-49D3-98D7-BA76D9B251B0}</Project>
|
||||||
|
<Name>EDMI.API</Name>
|
||||||
|
</ProjectReference>
|
||||||
<ProjectReference Include="..\Modules.Language\Language.vbproj">
|
<ProjectReference Include="..\Modules.Language\Language.vbproj">
|
||||||
<Project>{d3c8cfed-d6f6-43a8-9bdf-454145d0352f}</Project>
|
<Project>{d3c8cfed-d6f6-43a8-9bdf-454145d0352f}</Project>
|
||||||
<Name>Language</Name>
|
<Name>Language</Name>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user