Warenorte-ReadOnly eingebaut
This commit is contained in:
@@ -1,12 +1,49 @@
|
||||
|
||||
Imports com
|
||||
Imports VERAG_PROG_ALLGEMEIN
|
||||
|
||||
Public Class frmWarenorte
|
||||
|
||||
Dim warenort As New cWarenorte
|
||||
Dim writepermission As Boolean
|
||||
|
||||
Sub New(writepermission As Boolean)
|
||||
InitializeComponent()
|
||||
Me.writepermission = writepermission
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub Warenorte_Load(sender As Object, e As EventArgs) Handles MyBase.Load
|
||||
|
||||
If Not writepermission Then
|
||||
btnSave.Enabled = False
|
||||
btnDelete.Enabled = False
|
||||
btnAdd.Enabled = False
|
||||
UsrcntlPDFScanList1.cntxt.Enabled = False
|
||||
UsrcntlPDFScanList1.picAdd.Enabled = False
|
||||
|
||||
For Each c As Control In mainPanel.Controls
|
||||
If TypeOf c Is MyTextBox Then
|
||||
Dim mytxtb As MyTextBox = c
|
||||
mytxtb.ReadOnly = True
|
||||
ElseIf TypeOf c Is TextBox Then
|
||||
Dim txtb As TextBox = c
|
||||
txtb.ReadOnly = True
|
||||
ElseIf TypeOf c Is CheckBox Then
|
||||
Dim cbx As CheckBox = c
|
||||
cbx.Enabled = False
|
||||
ElseIf TypeOf c Is MyComboBox Then
|
||||
Dim mycbx As MyComboBox = c
|
||||
mycbx.Enabled = False
|
||||
ElseIf TypeOf c Is GroupBox Then
|
||||
Dim gb As GroupBox = c
|
||||
gb.Enabled = False
|
||||
End If
|
||||
|
||||
Next
|
||||
End If
|
||||
|
||||
|
||||
|
||||
|
||||
initDGVWarenort()
|
||||
cbxGrenzstelle.fillWithSQL("SELECT [grz_Grenzstelle],[grz_BezeichnungCBO] FROM tblGrenzstelle where grz_Aktiv=1 order by grz_Reihenfolge, grz_Grenzstelle", False, "AVISO", True)
|
||||
cbxGrenzstelle.changeItem("")
|
||||
|
||||
Reference in New Issue
Block a user