Änderungen Implementierung Fehlernummern-System in jeder Seite
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
If Not Me.Page.User.Identity.IsAuthenticated Then
|
||||
FormsAuthentication.RedirectToLoginPage()
|
||||
End If
|
||||
|
||||
VERAG_VARIABLES.initerrorcount()
|
||||
' MsgBox ("test")
|
||||
'Dim con As New MySqlConnection
|
||||
'Dim cmd As New MySqlCommand
|
||||
|
||||
@@ -17,6 +17,7 @@ Partial Class CustomsAviso
|
||||
Dim wasmobile As Boolean = True
|
||||
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
|
||||
Page.UnobtrusiveValidationMode = UnobtrusiveValidationMode.WebForms
|
||||
VERAG_VARIABLES.initerrorcount()
|
||||
|
||||
If Me.Page.User.Identity.IsAuthenticated Then
|
||||
If Me.Page.User.Identity.Name = "userwithlongername" Or Me.Page.User.Identity.Name = "test" Then
|
||||
|
||||
@@ -3,6 +3,7 @@ Partial Class Customers_Default
|
||||
Inherits System.Web.UI.Page
|
||||
Dim Kdnrtext As String = String.Empty
|
||||
Protected Sub Page_Load(sender As Object, e As EventArgs)
|
||||
|
||||
If Me.Page.User.Identity.IsAuthenticated And String.Equals(Me.Page.User.Identity.Name, "Admin") = True Then
|
||||
Try
|
||||
Kdnrtext = Session.Item("CustomerID")
|
||||
@@ -14,8 +15,10 @@ Partial Class Customers_Default
|
||||
End If
|
||||
If Page.IsPostBack = True Then
|
||||
Page.MaintainScrollPositionOnPostBack = True
|
||||
VERAG_VARIABLES.initerrorcount()
|
||||
Else
|
||||
Page.MaintainScrollPositionOnPostBack = False
|
||||
VERAG_VARIABLES.initerrorcount()
|
||||
End If
|
||||
End Sub
|
||||
|
||||
|
||||
@@ -3,8 +3,10 @@ Partial Class Customers_Default2
|
||||
Inherits System.Web.UI.Page
|
||||
Protected Sub Page_Load(ByVal sender As Object, e As EventArgs)
|
||||
If Page.IsPostBack Then
|
||||
Page.MaintainScrollPositionOnPostBack = True
|
||||
VERAG_VARIABLES.initerrorcount()
|
||||
Else
|
||||
Page.MaintainScrollPositionOnPostBack = False
|
||||
VERAG_VARIABLES.initerrorcount()
|
||||
End If
|
||||
End Sub
|
||||
|
||||
@@ -21,6 +21,8 @@ Partial Class Customers_Default3
|
||||
Dim provider As CultureInfo = CultureInfo.InvariantCulture
|
||||
|
||||
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
|
||||
VERAG_VARIABLES.initerrorcount()
|
||||
|
||||
If Not Me.Page.User.Identity.IsAuthenticated Then
|
||||
FormsAuthentication.RedirectToLoginPage()
|
||||
Else
|
||||
|
||||
@@ -3,6 +3,7 @@ Partial Class LKWS
|
||||
Inherits System.Web.UI.Page
|
||||
Dim Kdnrtext As String = String.Empty
|
||||
Protected Sub Page_Load(sender As Object, ByVal e As System.EventArgs) Handles Me.Load
|
||||
VERAG_VARIABLES.initerrorcount()
|
||||
If Me.Page.User.Identity.IsAuthenticated Then
|
||||
Try
|
||||
Kdnrtext = Session.Item("CustomerID")
|
||||
|
||||
@@ -3,9 +3,15 @@ Partial Class Welcome
|
||||
Inherits System.Web.UI.Page
|
||||
Dim Kdnrtext As String = String.Empty
|
||||
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
|
||||
VERAG_VARIABLES.initerrorcount()
|
||||
If Me.Page.User.Identity.IsAuthenticated Then
|
||||
Try
|
||||
Kdnrtext = Session.Item("CustomerID")
|
||||
If Page.IsPostBack Then
|
||||
Page.MaintainScrollPositionOnPostBack = True
|
||||
Else
|
||||
Page.MaintainScrollPositionOnPostBack = False
|
||||
End If
|
||||
Catch A As UnauthorizedAccessException When String.IsNullOrEmpty(Kdnrtext)
|
||||
MsgBox("Dieser Bereich ist nicht gestattet! Ein Fehler ist bei der Validierung der ID aufgetreten! Bitte erneut versuchen!", MsgBoxStyle.Information, "Error in User Area!")
|
||||
End Try
|
||||
|
||||
@@ -6,6 +6,7 @@ Partial Class Customers_Default3
|
||||
Dim Abfertigungsnummer As String = String.Empty
|
||||
Dim RK_ID As String = String.Empty
|
||||
Protected Sub Page_Load(sender As Object, ByVal e As System.EventArgs) Handles Me.Load
|
||||
VERAG_VARIABLES.initerrorcount()
|
||||
If Me.Page.User.Identity.IsAuthenticated Then
|
||||
Try
|
||||
Kdnrtext = Session.Item("CustomerID")
|
||||
|
||||
Reference in New Issue
Block a user