MS V2.7 .Net Logger etc
This commit is contained in:
@@ -395,9 +395,9 @@ Public Class frmRecordView
|
||||
Dim State_DESC = ClassDatabase.Execute_Scalar(sql, True)
|
||||
Dim Comment
|
||||
If COMMENTTextBox.Text <> "" Then
|
||||
Comment = String.Format(COMMENTTextBox.Text & vbNewLine & ">> " & Now.ToString & ": User {0} changed the state to: {1}", Environment.UserName, State_DESC)
|
||||
Comment = String.Format(COMMENTTextBox.Text & vbNewLine & "" & Now.ToString & ": User {0} changed the state to: {1}", Environment.UserName, State_DESC)
|
||||
Else
|
||||
Comment = String.Format(">> " & Now.ToString & ": User {0} Changed the state to: {1}", Environment.UserName, State_DESC)
|
||||
Comment = String.Format("" & Now.ToString & ": User {0} Changed the state to: {1}", Environment.UserName, State_DESC)
|
||||
End If
|
||||
If STATE_id > 0 Then
|
||||
ins = String.Format("INSERT INTO TBPMO_WORKFLOW_TASK_HISTORY (WF_TASK_ID,STATE_ID,STATE_DESC,COMMENT,ADDED_WHO) VALUES" &
|
||||
@@ -587,7 +587,7 @@ Public Class frmRecordView
|
||||
If Not IsNothing(Str) Then
|
||||
Dim DropType = Str.Substring(0, Str.LastIndexOf("@") + 1)
|
||||
If DropType.ToString.Contains("SCAN") = False Then
|
||||
ClassLogger.Add(">> Check_Dropped_Files:" & Str.ToString, False)
|
||||
LOGGER.Info("Check_Dropped_Files:" & Str.ToString)
|
||||
Dim CURRENT_WORKFILE = Str.Substring(Str.LastIndexOf("@") + 1)
|
||||
Dim insert = String.Format("INSERT INTO TBPMO_FILES_USER(FILENAME2WORK, USER_WORK, HANDLE_TYPE) VALUES('{0}','{1}','{2}')", CURRENT_WORKFILE, USER_USERNAME, DropType)
|
||||
If ClassDatabase.Execute_non_Query(insert, True) = False Then
|
||||
@@ -613,7 +613,7 @@ Public Class frmRecordView
|
||||
If CURRENT_TBPMO_FILES_USER.Rows.Count = 1 Then
|
||||
frmWM_IndexFile.ShowDialog()
|
||||
Else
|
||||
If LogErrorsOnly = False Then ClassLogger.Add(" >> File was deleted or worked meanwhile!")
|
||||
LOGGER.Debug("File was deleted or worked meanwhile!")
|
||||
End If
|
||||
Next
|
||||
RUN_WDSEARCH_GRID()
|
||||
|
||||
Reference in New Issue
Block a user