Initial commit
This commit is contained in:
@@ -0,0 +1,234 @@
|
||||
CREATE TABLE Applikation (
|
||||
ApplikationID INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
PRIMARY KEY(ApplikationID)
|
||||
);
|
||||
|
||||
CREATE TABLE Auswertung (
|
||||
AuswertungID INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
PRIMARY KEY(AuswertungID)
|
||||
);
|
||||
|
||||
CREATE TABLE AuswertungParameter (
|
||||
AuswertungParameterID INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
PRIMARY KEY(AuswertungParameterID)
|
||||
);
|
||||
|
||||
CREATE TABLE AuswertunGruppe (
|
||||
AuswertungGruppeID INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
PRIMARY KEY(AuswertungGruppeID)
|
||||
);
|
||||
|
||||
CREATE TABLE Auswertung_has_AuswertungParameter (
|
||||
Auswertung_AuswertungID INTEGER UNSIGNED NOT NULL,
|
||||
AuswertungParameter_AuswertungParameterID INTEGER UNSIGNED NOT NULL,
|
||||
PRIMARY KEY(Auswertung_AuswertungID, AuswertungParameter_AuswertungParameterID),
|
||||
INDEX Auswertung_has_AuswertungParameter_FKIndex1(Auswertung_AuswertungID),
|
||||
INDEX Auswertung_has_AuswertungParameter_FKIndex2(AuswertungParameter_AuswertungParameterID)
|
||||
);
|
||||
|
||||
CREATE TABLE Auswertung_has_AuswertunGruppe (
|
||||
Auswertung_AuswertungID INTEGER UNSIGNED NOT NULL,
|
||||
AuswertunGruppe_AuswertungGruppeID INTEGER UNSIGNED NOT NULL,
|
||||
PRIMARY KEY(Auswertung_AuswertungID, AuswertunGruppe_AuswertungGruppeID),
|
||||
INDEX Auswertung_has_AuswertunGruppe_FKIndex1(Auswertung_AuswertungID),
|
||||
INDEX Auswertung_has_AuswertunGruppe_FKIndex2(AuswertunGruppe_AuswertungGruppeID)
|
||||
);
|
||||
|
||||
CREATE TABLE Definition (
|
||||
DefinitionID INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
Katalog_KatalogID INT NOT NULL,
|
||||
KatalogID INTEGER UNSIGNED NULL,
|
||||
Bezeichnung VARCHAR NULL,
|
||||
Kurzbeschreibung VARCHAR NULL,
|
||||
Beschreibung VARCHAR NULL,
|
||||
Definition VARCHAR NULL,
|
||||
Ergänzungen VARCHAR NULL,
|
||||
Gueltig_bis DATETIME NULL,
|
||||
Aktiv BIT NULL,
|
||||
PRIMARY KEY(DefinitionID),
|
||||
INDEX Definition_FKIndex1(Katalog_KatalogID)
|
||||
);
|
||||
|
||||
CREATE TABLE Definition_has_Prüfplan (
|
||||
Definition_DefinitionID INTEGER UNSIGNED NOT NULL,
|
||||
Prüfplan_PruefplanID INTEGER UNSIGNED NOT NULL,
|
||||
PRIMARY KEY(Definition_DefinitionID, Prüfplan_PruefplanID),
|
||||
INDEX Definition_has_Prüfplan_FKIndex1(Definition_DefinitionID),
|
||||
INDEX Definition_has_Prüfplan_FKIndex2(Prüfplan_PruefplanID)
|
||||
);
|
||||
|
||||
CREATE TABLE Dokument (
|
||||
DokumentID INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
Prüfplan_PruefplanID INTEGER UNSIGNED NOT NULL,
|
||||
Katalog_KatalogID INT NOT NULL,
|
||||
Definition_DefinitionID INTEGER UNSIGNED NOT NULL,
|
||||
PRIMARY KEY(DokumentID),
|
||||
INDEX Dokument_FKIndex1(Definition_DefinitionID),
|
||||
INDEX Dokument_FKIndex2(Katalog_KatalogID),
|
||||
INDEX Dokument_FKIndex3(Prüfplan_PruefplanID)
|
||||
);
|
||||
|
||||
CREATE TABLE Funktion (
|
||||
FunktionID INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
PRIMARY KEY(FunktionID)
|
||||
);
|
||||
|
||||
CREATE TABLE Funktion_has_AuswertunGruppe (
|
||||
Funktion_FunktionID INTEGER UNSIGNED NOT NULL,
|
||||
AuswertunGruppe_AuswertungGruppeID INTEGER UNSIGNED NOT NULL,
|
||||
PRIMARY KEY(Funktion_FunktionID, AuswertunGruppe_AuswertungGruppeID),
|
||||
INDEX Funktion_has_AuswertunGruppe_FKIndex1(Funktion_FunktionID),
|
||||
INDEX Funktion_has_AuswertunGruppe_FKIndex2(AuswertunGruppe_AuswertungGruppeID)
|
||||
);
|
||||
|
||||
CREATE TABLE Funktion_has_Rolle (
|
||||
Funktion_FunktionID INTEGER UNSIGNED NOT NULL,
|
||||
Rolle_RolleID INTEGER UNSIGNED NOT NULL,
|
||||
PRIMARY KEY(Funktion_FunktionID, Rolle_RolleID),
|
||||
INDEX Funktion_has_Rolle_FKIndex1(Funktion_FunktionID),
|
||||
INDEX Funktion_has_Rolle_FKIndex2(Rolle_RolleID)
|
||||
);
|
||||
|
||||
CREATE TABLE History (
|
||||
HistoryID INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
Prüfschritt_PruefschrittID INTEGER UNSIGNED NOT NULL,
|
||||
PRIMARY KEY(HistoryID),
|
||||
INDEX History_FKIndex1(Prüfschritt_PruefschrittID)
|
||||
);
|
||||
|
||||
CREATE TABLE Katalog (
|
||||
KatalogID INT NOT NULL AUTO_INCREMENT,
|
||||
Katalog_KatalogID INT NOT NULL,
|
||||
ParentID INTEGER UNSIGNED NULL,
|
||||
Bezeichnung VARCHAR NULL,
|
||||
Beschreibung VARCHAR NULL,
|
||||
Gueltig_Bis DATETIME NULL,
|
||||
Aktiv BIT NULL,
|
||||
PRIMARY KEY(KatalogID),
|
||||
INDEX Katalog_FKIndex1(Katalog_KatalogID)
|
||||
);
|
||||
|
||||
CREATE TABLE Key-Tabelle (
|
||||
EintragNr INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
PRIMARY KEY(EintragNr)
|
||||
);
|
||||
|
||||
CREATE TABLE Meldungstexte (
|
||||
MeldungtextID INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
PRIMARY KEY(MeldungtextID)
|
||||
);
|
||||
|
||||
CREATE TABLE Mitarbeiter (
|
||||
MitarbeiterID INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
PRIMARY KEY(MitarbeiterID)
|
||||
);
|
||||
|
||||
CREATE TABLE Mitarbeiter_Funktion (
|
||||
Funktion_FunktionID INTEGER UNSIGNED NOT NULL,
|
||||
Mitarbeiter_MitarbeiterID INTEGER UNSIGNED NOT NULL,
|
||||
PRIMARY KEY(Funktion_FunktionID, Mitarbeiter_MitarbeiterID),
|
||||
INDEX Funktion_has_Mitarbeiter_FKIndex1(Funktion_FunktionID),
|
||||
INDEX Funktion_has_Mitarbeiter_FKIndex2(Mitarbeiter_MitarbeiterID)
|
||||
);
|
||||
|
||||
CREATE TABLE Periodizitaet (
|
||||
PeriodizitaetID INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
PRIMARY KEY(PeriodizitaetID)
|
||||
);
|
||||
|
||||
CREATE TABLE Prioritaet (
|
||||
PrioritaetID INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
PRIMARY KEY(PrioritaetID)
|
||||
);
|
||||
|
||||
CREATE TABLE Pruefresultat (
|
||||
PruefresultatID INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
Dokument_DokumentID INTEGER UNSIGNED NOT NULL,
|
||||
Prüfschritt_PruefschrittID INTEGER UNSIGNED NOT NULL,
|
||||
PRIMARY KEY(PruefresultatID),
|
||||
INDEX Pruefresultat_FKIndex1(Prüfschritt_PruefschrittID),
|
||||
INDEX Pruefresultat_FKIndex2(Dokument_DokumentID)
|
||||
);
|
||||
|
||||
CREATE TABLE Pruefstatus (
|
||||
StatusID INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
PRIMARY KEY(StatusID)
|
||||
);
|
||||
|
||||
CREATE TABLE Prüfplan (
|
||||
PruefplanID INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
Mitarbeiter_MitarbeiterID INTEGER UNSIGNED NOT NULL,
|
||||
Zeitpunkt_ZeitpunktID INTEGER UNSIGNED NOT NULL,
|
||||
Periodizitaet_PeriodizitaetID INTEGER UNSIGNED NOT NULL,
|
||||
Prioritaet_PrioritaetID INTEGER UNSIGNED NOT NULL,
|
||||
erstmals_am DATETIME NULL,
|
||||
Beschreibung VARCHAR NULL,
|
||||
Pruefgegenstand VARCHAR NULL,
|
||||
Massnahmen VARCHAR NULL,
|
||||
Info VARCHAR NULL,
|
||||
Gueltig_bis DATETIME NULL,
|
||||
aktiv BIT NULL,
|
||||
PRIMARY KEY(PruefplanID),
|
||||
INDEX Prüfplan_FKIndex1(Prioritaet_PrioritaetID),
|
||||
INDEX Prüfplan_FKIndex2(Periodizitaet_PeriodizitaetID),
|
||||
INDEX Prüfplan_FKIndex3(Zeitpunkt_ZeitpunktID),
|
||||
INDEX Prüfplan_FKIndex4(Mitarbeiter_MitarbeiterID),
|
||||
INDEX Prüfplan_FKIndex5(Mitarbeiter_MitarbeiterID)
|
||||
);
|
||||
|
||||
CREATE TABLE Prüfschritt (
|
||||
PruefschrittID INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
Pruefstatus_StatusID INTEGER UNSIGNED NOT NULL,
|
||||
Prüfplan_PruefplanID INTEGER UNSIGNED NOT NULL,
|
||||
PRIMARY KEY(PruefschrittID),
|
||||
INDEX Prüfschritt_FKIndex1(Prüfplan_PruefplanID),
|
||||
INDEX Prüfschritt_FKIndex2(Pruefstatus_StatusID)
|
||||
);
|
||||
|
||||
CREATE TABLE Rolle (
|
||||
RolleID INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
PRIMARY KEY(RolleID)
|
||||
);
|
||||
|
||||
CREATE TABLE Rolle_has_SecurityObject (
|
||||
Rolle_RolleID INTEGER UNSIGNED NOT NULL,
|
||||
SecurityObject_SecuritiyObjectID INTEGER UNSIGNED NOT NULL,
|
||||
PRIMARY KEY(Rolle_RolleID, SecurityObject_SecuritiyObjectID),
|
||||
INDEX Rolle_has_SecurityObject_FKIndex1(Rolle_RolleID),
|
||||
INDEX Rolle_has_SecurityObject_FKIndex2(SecurityObject_SecuritiyObjectID)
|
||||
);
|
||||
|
||||
CREATE TABLE Rolle_has_Sysadminfunktion (
|
||||
Rolle_RolleID INTEGER UNSIGNED NOT NULL,
|
||||
Sysadminfunktion_Sysadminfunktion INTEGER UNSIGNED NOT NULL,
|
||||
PRIMARY KEY(Rolle_RolleID, Sysadminfunktion_Sysadminfunktion),
|
||||
INDEX Rolle_has_Sysadminfunktion_FKIndex1(Rolle_RolleID),
|
||||
INDEX Rolle_has_Sysadminfunktion_FKIndex2(Sysadminfunktion_Sysadminfunktion)
|
||||
);
|
||||
|
||||
CREATE TABLE SecurityObject (
|
||||
SecuritiyObjectID INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
PRIMARY KEY(SecuritiyObjectID)
|
||||
);
|
||||
|
||||
CREATE TABLE Spalten (
|
||||
Spalten INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
PRIMARY KEY(Spalten)
|
||||
);
|
||||
|
||||
CREATE TABLE Sysadminfunktion (
|
||||
Sysadminfunktion INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
PRIMARY KEY(Sysadminfunktion)
|
||||
);
|
||||
|
||||
CREATE TABLE ToolTip (
|
||||
ToolTipID INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
PRIMARY KEY(ToolTipID)
|
||||
);
|
||||
|
||||
CREATE TABLE Zeitpunkt (
|
||||
ZeitpunktID INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
PRIMARY KEY(ZeitpunktID)
|
||||
);
|
||||
|
||||
|
||||
@@ -0,0 +1,95 @@
|
||||
''' <summary>
|
||||
''' Form für die Datenbankauswahl
|
||||
''' </summary>
|
||||
''' <remarks></remarks>
|
||||
Public Class frmDatenbankauswahl
|
||||
Inherits System.Windows.Forms.Form
|
||||
|
||||
#Region " Vom Windows Form Designer generierter Code "
|
||||
|
||||
Public Sub New()
|
||||
MyBase.New()
|
||||
|
||||
' Dieser Aufruf ist für den Windows Form-Designer erforderlich.
|
||||
InitializeComponent()
|
||||
|
||||
' Initialisierungen nach dem Aufruf InitializeComponent() hinzufügen
|
||||
|
||||
End Sub
|
||||
|
||||
' Die Form überschreibt den Löschvorgang der Basisklasse, um Komponenten zu bereinigen.
|
||||
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
|
||||
If disposing Then
|
||||
If Not (components Is Nothing) Then
|
||||
components.Dispose()
|
||||
End If
|
||||
End If
|
||||
MyBase.Dispose(disposing)
|
||||
End Sub
|
||||
|
||||
' Für Windows Form-Designer erforderlich
|
||||
Private components As System.ComponentModel.IContainer
|
||||
|
||||
'HINWEIS: Die folgende Prozedur ist für den Windows Form-Designer erforderlich
|
||||
'Sie kann mit dem Windows Form-Designer modifiziert werden.
|
||||
'Verwenden Sie nicht den Code-Editor zur Bearbeitung.
|
||||
Friend WithEvents ListBox1 As System.Windows.Forms.ListBox
|
||||
Friend WithEvents Button1 As System.Windows.Forms.Button
|
||||
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
|
||||
Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(frmDatenbankauswahl))
|
||||
Me.ListBox1 = New System.Windows.Forms.ListBox
|
||||
Me.Button1 = New System.Windows.Forms.Button
|
||||
Me.SuspendLayout()
|
||||
'
|
||||
'ListBox1
|
||||
'
|
||||
Me.ListBox1.Location = New System.Drawing.Point(16, 16)
|
||||
Me.ListBox1.Name = "ListBox1"
|
||||
Me.ListBox1.Size = New System.Drawing.Size(232, 95)
|
||||
Me.ListBox1.TabIndex = 0
|
||||
'
|
||||
'Button1
|
||||
'
|
||||
Me.Button1.DialogResult = System.Windows.Forms.DialogResult.OK
|
||||
Me.Button1.Location = New System.Drawing.Point(88, 128)
|
||||
Me.Button1.Name = "Button1"
|
||||
Me.Button1.Size = New System.Drawing.Size(75, 23)
|
||||
Me.Button1.TabIndex = 1
|
||||
Me.Button1.Text = "&OK"
|
||||
'
|
||||
'frmDatenbankauswahl
|
||||
'
|
||||
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
|
||||
Me.ClientSize = New System.Drawing.Size(258, 165)
|
||||
Me.Controls.Add(Me.Button1)
|
||||
Me.Controls.Add(Me.ListBox1)
|
||||
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog
|
||||
Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon)
|
||||
Me.MaximizeBox = False
|
||||
Me.MinimizeBox = False
|
||||
Me.Name = "frmDatenbankauswahl"
|
||||
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
|
||||
Me.Text = "Vertragsverwaltung: Datebbankauswahl"
|
||||
Me.ResumeLayout(False)
|
||||
|
||||
End Sub
|
||||
|
||||
#End Region
|
||||
|
||||
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
|
||||
Me.Close()
|
||||
End Sub
|
||||
|
||||
Private Sub frmDatenbankauswahl_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
|
||||
|
||||
End Sub
|
||||
|
||||
|
||||
Private Sub ListBox1_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListBox1.DoubleClick
|
||||
Me.Close()
|
||||
End Sub
|
||||
|
||||
Private Sub ListBox1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles ListBox1.KeyDown
|
||||
If e.KeyCode = Keys.Enter Then Me.Close()
|
||||
End Sub
|
||||
End Class
|
||||
Binary file not shown.
Reference in New Issue
Block a user