MS
This commit is contained in:
@@ -8,6 +8,7 @@ Public Class frmCheckRightsEntity
|
||||
Private WorkingFiles As Integer = 0
|
||||
Private CURR_DOCID As Integer
|
||||
Private ENTITY_ID As Integer
|
||||
Dim righterrors As Boolean = False
|
||||
Private Sub frmCheckRightsEntity_Load(sender As Object, e As EventArgs) Handles Me.Load
|
||||
Try
|
||||
Dim sql = String.Format("SELECT T.FORM_ID, [dbo].[FNPMO_GETOBJECTCAPTION]('{0}','FORMVIEW_TITLE' + CONVERT(VARCHAR(5), T.[FORM_VIEW_ID]), 1) AS FORM_TITLE FROM VWPMO_CONSTRUCTOR_FORMS T WHERE DOCUMENT_VIEW = 1", USER_LANGUAGE)
|
||||
@@ -24,6 +25,7 @@ Public Class frmCheckRightsEntity
|
||||
Private Sub btnCheckRights_Click(sender As Object, e As EventArgs) Handles btnCheckRights.Click
|
||||
If cmbentity.SelectedIndex <> -1 Then
|
||||
Try
|
||||
righterrors = False
|
||||
CURR_DOCID = 0
|
||||
ENTITY_ID = cmbentity.SelectedValue
|
||||
Me.ProgressBar1.Visible = True
|
||||
@@ -74,8 +76,7 @@ Public Class frmCheckRightsEntity
|
||||
CURR_DOCID = row.Item("DocID")
|
||||
If DD_Rights.ClassRights.File_DeleteAndSetRight(row.Item("DocID"), row.Item("FULL_FILENAME"), True) Then
|
||||
If DD_Rights.ClassRights.MSG_RESULT <> "" Then
|
||||
MsgBox("Unexpected Errors in setting rights: " & vbNewLine & DD_Rights.ClassRights.MSG_RESULT, MsgBoxStyle.Exclamation)
|
||||
_error = True
|
||||
righterrors = True
|
||||
End If
|
||||
Else
|
||||
_error = True
|
||||
@@ -113,7 +114,12 @@ Public Class frmCheckRightsEntity
|
||||
lblstate.Visible = False
|
||||
ProgressBar1.Visible = False
|
||||
If _error = False Then
|
||||
MsgBox("All rights of files belonging to entity were checked and refreshed successfully!", MsgBoxStyle.Information)
|
||||
|
||||
If righterrors = True Then
|
||||
MsgBox("All rights of files belonging to entity were checked and refreshed, " & vbNewLine & "BUT some Userrights could not be set. Check the logfile!", MsgBoxStyle.Exclamation, "Attention")
|
||||
Else
|
||||
MsgBox("All rights of files belonging to entity were checked and refreshed successfully!", MsgBoxStyle.Information)
|
||||
End If
|
||||
Else
|
||||
MsgBox("Some errors occured while checking and setting the rights...please check the log!" & vbNewLine & ">> " & ClassRights.COUNT_FILES.ToString & " files schould be worked." & _
|
||||
">> " & ClassRights.WORKED_FILES.ToString & " were worked successfully.", MsgBoxStyle.Exclamation)
|
||||
|
||||
Reference in New Issue
Block a user