Merge branch 'master' of http://dd-vmp07-com04:3000/AppStd/Monorepo
This commit is contained in:
commit
84cf9b84cc
@ -81,4 +81,17 @@ Public Class frmtest
|
|||||||
oForm.BringToFront()
|
oForm.BringToFront()
|
||||||
oForm.Focus()
|
oForm.Focus()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Private Sub Button2_Click(sender As Object, e As EventArgs)
|
||||||
|
Dim oSQL = $"Declare @LAST_SN_ID BIGINT
|
||||||
|
EXEC PRIDB_NEW_DYNAMIC_FOLDER '{TextBox2.Text}','{My.Application.User.UserName}',1,@LAST_SN_ID OUTPUT
|
||||||
|
SELECt @LAST_SN_ID"
|
||||||
|
|
||||||
|
Dim oNodeID As Integer
|
||||||
|
oNodeID = My.DatabaseIDB.GetScalarValue(oSQL)
|
||||||
|
|
||||||
|
If IsNothing(oNodeID) = False Then
|
||||||
|
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
End Class
|
End Class
|
||||||
@ -189,17 +189,22 @@ Namespace IDB
|
|||||||
Next
|
Next
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public Function NewDynamicFolderForObject(pObjectId As Long, pFolder As String, pWho As String, pLangCode As String) As Boolean
|
Public Function NewDynamicFolderForObject(pObjectId As Long, pFolder As String, pWho As String, pLangID As Integer) As Boolean
|
||||||
Logger.Info("Setting Dynamic Folder [{0}]", pFolder)
|
Logger.Info("Setting Dynamic Folder [{0}]", pFolder)
|
||||||
Dim oSql = $"
|
Dim oSql = $"
|
||||||
DECLARE @NEW_OBJ_MD_ID BIGINT
|
DECLARE @LAST_SN_ID BIGINT
|
||||||
EXEC PRIDB_NEW_DYNAMIC_FOLDER_FOR_OBJECT {pObjectId}, '{pFolder}', '{pWho}', '{pLangCode}'"
|
EXEC PRIDB_NEW_DYNAMIC_FOLDER '{pFolder}','{pWho}',1,@LAST_SN_ID OUTPUT
|
||||||
|
SELECT @LAST_SN_ID"
|
||||||
If Database.ExecuteNonQuery(oSql) = False Then
|
Dim oNodeID As Integer
|
||||||
Logger.Warn("Error while setting Dynamic Folder.")
|
oNodeID = Database.GetScalarValue(oSql)
|
||||||
Return False
|
If IsNothing(oNodeID) = False Then
|
||||||
|
oSql = $"DECLARE @LAST_SN_ID BIGINT
|
||||||
|
PRIDB_NEW_STUCTURE_NODE_FOR_OBJECT {pObjectId}',{oNodeID},'{pWho}',{pLangID}, @LAST_SN_ID OUTPUT"
|
||||||
|
If Database.ExecuteNonQuery(oSql) = False Then
|
||||||
|
Logger.Warn("Error while setting Dynamic Folder.")
|
||||||
|
Return False
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Return True
|
Return True
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
|||||||
@ -110,7 +110,7 @@ Namespace Methods.GlobalIndexer.ImportFile
|
|||||||
Dim oDynamicFilePath = GetVirtualPath(
|
Dim oDynamicFilePath = GetVirtualPath(
|
||||||
pData.File.FileInfoRaw, oProfile.DynamicPath, User, oUserAttributes, oAutoAttributes)
|
pData.File.FileInfoRaw, oProfile.DynamicPath, User, oUserAttributes, oAutoAttributes)
|
||||||
|
|
||||||
Helpers.NewDynamicFolderForObject(oResponse.ObjectId, oProfile.DynamicPath, User.UserName, User.Language)
|
Helpers.NewDynamicFolderForObject(oResponse.ObjectId, oProfile.DynamicPath, User.UserName, User.LanguageId)
|
||||||
|
|
||||||
Logger.Info("Collecting Attributes for ObjectId [{0}]", oResponse.ObjectId)
|
Logger.Info("Collecting Attributes for ObjectId [{0}]", oResponse.ObjectId)
|
||||||
|
|
||||||
|
|||||||
@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
|
|||||||
' übernehmen, indem Sie "*" eingeben:
|
' übernehmen, indem Sie "*" eingeben:
|
||||||
' <Assembly: AssemblyVersion("1.0.*")>
|
' <Assembly: AssemblyVersion("1.0.*")>
|
||||||
|
|
||||||
<Assembly: AssemblyVersion("2.4.3.0")>
|
<Assembly: AssemblyVersion("2.4.4.0")>
|
||||||
<Assembly: AssemblyFileVersion("2.4.3.0")>
|
<Assembly: AssemblyFileVersion("2.4.4.0")>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user