Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titleSQL-Statements
CREATE TABLE "BPKProjektthemen"
(
    "Thema"				VARCHAR(20) NOT NULL,
    "Mandant"			SMALLINT NOT NULL DEFAULT 0,
    "Bezeichnung"		VARCHAR(50)  NOT NULL,
    "Gruppe"			SMALLINT NOT NULL DEFAULT 0,
    "IstExternesThema"	KHKBoolean NOT NULL DEFAULT -1,
    "Timestamp"			ROWVERSION,
    CONSTRAINT PK_BPKProjektthemen PRIMARY KEY CLUSTERED ("Thema", "Mandant")
)
GO
INSERT INTO USysCatalog ([Table], Revision) VALUES ('BPKProjektthemen', 1)
GO

INSERT INTO BPKProjektthemen (Mandant, Thema, Bezeichnung, Gruppe, IstExternesThema) VALUES (123,'PLAN','Projektplanung',1,0)
INSERT INTO BPKProjektthemen (Mandant, Thema, Bezeichnung, Gruppe, IstExternesThema) VALUES (123, 'PLANSCHUL','Planung Schulung',1,0)
INSERT INTO BPKProjektthemen (Mandant, Thema, Bezeichnung, Gruppe, IstExternesThema) VALUES (123,'DEMOERP','Demonstration ERP',0,-1)
INSERT INTO BPKProjektthemen (Mandant, Thema, Bezeichnung, Gruppe, IstExternesThema) VALUES (123,'EINF','Einführung',0,-1)
INSERT INTO BPKProjektthemen (Mandant, Thema, Bezeichnung, Gruppe, IstExternesThema) VALUES (123,'SCHUL','Schulung',0,-1)
INSERT INTO BPKProjektthemen (Mandant, Thema, Bezeichnung, Gruppe, IstExternesThema) VALUES (123,'BUDG','Budgetkontrolle',2,0)
INSERT INTO BPKProjektthemen (Mandant, Thema, Bezeichnung, Gruppe, IstExternesThema) VALUES (123,'NACH','Nachbesprechnung Einführung',0,-1)
INSERT INTO BPKProjektthemen (Mandant, Thema, Bezeichnung, Gruppe, IstExternesThema) VALUES (123, 'ABLAUF','Vorstellung Projektablauf',0,-1)
INSERT INTO BPKProjektthemen (Mandant, Thema, Bezeichnung, Gruppe, IstExternesThema) VALUES (123,'ENTSORGUNG','Abbau Altgeräte',0,-1)
INSERT INTO BPKProjektthemen (Mandant, Thema, Bezeichnung, Gruppe, IstExternesThema) VALUES (123,'AUFBAU','Aufbau Hardware',0,-1)
INSERT INTO BPKProjektthemen (Mandant, Thema, Bezeichnung, Gruppe, IstExternesThema) VALUES (123,'SCHULERP','Schulung ERP',0,-1)
INSERT INTO BPKProjektthemen (Mandant, Thema, Bezeichnung, Gruppe, IstExternesThema) VALUES (123,'FOLGE','Folgetermin',3,-1)
INSERT INTO BPKProjektthemen (Mandant, Thema, Bezeichnung, Gruppe, IstExternesThema) VALUES (123,'AUFTRAG','Auftragskontrolle',4,0)
INSERT INTO BPKProjektthemen (Mandant, Thema, Bezeichnung, Gruppe, IstExternesThema) VALUES (123,'LIEFERUNG','Lieferungskontrolle',5,0)

EXEC spCreateSecurityPermission 'Projektsteuerung', 'Projektsteuerung', 'Wawi.Projektverwaltung', 1
EXEC spCreateSecurityOption 'Projektsteuerung', 'Themengruppe', 'Änderung der Themengruppe', 4

...

Code Block
titleSQL-Statements
CREATE TABLE "BPKProjektsteuerung"
(
    "SteuerungId"	INTEGER NOT NULL DEFAULT 0,
    "Matchcode"		VARCHAR(50) NOT NULL,
    "Mandant"		SMALLINT NOT NULL DEFAULT 0,
    "Projekt"		VARCHAR(31)  NOT NULL,
    "Projektleiter"	VARCHAR(128) NOT NULL,
    "Status"		SMALLINT NOT NULL DEFAULT 0,
    "Projekttyp"	SMALLINT NOT NULL DEFAULT 0,
    "Kontakt"		VARCHAR(50) NOT NULL,
    "Position"		VARCHAR(64) NULL,
    "Abteilung"		VARCHAR(50) NULL,
    "Telefon"		VARCHAR(32) NULL,
    "Mobilfunk"		VARCHAR(32) NULL,
    "EMail"			VARCHAR(255) NULL,
    "Memo"			text NULL,
    "Aktiv"			KHKBoolean NOT NULL DEFAULT -1,
    "Timestamp"		ROWVERSION,
    CONSTRAINT PK_BPKProjektsteuerung PRIMARY KEY CLUSTERED ("SteuerungId", "Mandant")
)
GO

INSERT INTO USysCatalog ([Table], Revision) VALUES ('BPKProjektsteuerung', 1)

INSERT INTO BPKProjektsteuerung (SteuerungId,Matchcode,Mandant,Projekt,Projektleiter,Status,Projekttyp,Kontakt,Position,Abteilung,Telefon,Mobilfunk,EMail,Aktiv) VALUES (1,'Arber, Restrukturierung',123,'P10031','Sage',2,0,'Arber, Franz','Eigentümer','Geschäftsleitung','-100',NULL,'HerrArber@Arber-Sauerlach.de',-1)
INSERT INTO BPKProjektsteuerung (SteuerungId,Matchcode,Mandant,Projekt,Projektleiter,Status,Projekttyp,Kontakt,Position,Abteilung,Telefon,Mobilfunk,EMail,Aktiv) VALUES (2,'Einführung neues ERP',123,'P10032','Sage',2,2,'Lohmann-Labus, Ute',NULL,NULL,NULL,NULL,NULL,-1)

INSERT INTO KHKTan (Mandant,Tabelle,[Tan]) VALUES (123,'BPKProjektsteuerung',2)

...

Code Block
titleSQL-Statements
CREATE TABLE "BPKProjektsteuerungMitarbeiter"
(
    "SteuerungId"					INTEGER NOT NULL DEFAULT 0,
    "Mandant"						SMALLINT NOT NULL DEFAULT 0,
    "Mitarbeiter"					VARCHAR(20) NOT NULL,
    "Firmenwagen"					KHKBoolean NOT NULL DEFAULT 0,
    "Navigation"					KHKBoolean NOT NULL DEFAULT 0,
    "Mitnahme"						KHKBoolean NOT NULL DEFAULT 0,
    "Notebook"						KHKBoolean NOT NULL DEFAULT 0,
    "StellvertreterProjektleitung"	KHKBoolean NOT NULL DEFAULT 0,
    "ZugriffProjekt"				KHKBoolean NOT NULL DEFAULT 0,
    "Timestamp"	ROWVERSION,
    CONSTRAINT PK_BPKProjektsteuerungMitarbeiter PRIMARY KEY CLUSTERED ("SteuerungId", "Mandant", "Mitarbeiter")
)
GO

INSERT INTO USysCatalog ([Table], RevisionBPKProjektsteuerungMitarbeiter (SteuerungId,Mandant,Mitarbeiter,Firmenwagen,Navigation,Mitnahme,Notebook,StellvertreterProjektleitung,ZugriffProjekt) VALUES ('BPKProjektsteuerungMitarbeiter', 1)

INSERT INTO BPKProjektsteuerungMitarbeiter (SteuerungId,Mandant,Mitarbeiter,Firmenwagen,Navigation,Mitnahme,Notebook,StellvertreterProjektleitung,ZugriffProjekt) VALUES (1,1,123,'M00001',-1,-1,-1,0,0,0)
INSERT INTO BPKProjektsteuerungMitarbeiter (SteuerungId,Mandant,Mitarbeiter,Firmenwagen,Navigation,Mitnahme,Notebook,StellvertreterProjektleitung,ZugriffProjekt) VALUES (1,123,'M00007',-1,-1,-1,-1,-1,-1)
INSERT INTO BPKProjektsteuerungMitarbeiter (SteuerungId,Mandant,Mitarbeiter,Firmenwagen,Navigation,Mitnahme,Notebook,StellvertreterProjektleitung,ZugriffProjekt) VALUES (1,123,'M00016',0,0,0,0,0,0)
INSERT INTO BPKProjektsteuerungMitarbeiter (SteuerungId,Mandant,Mitarbeiter,Firmenwagen,Navigation,Mitnahme,Notebook,StellvertreterProjektleitung,ZugriffProjekt) VALUES (2,123,'M00001',-1,-1,-1,0,0,0)
INSERT INTO BPKProjektsteuerungMitarbeiter (SteuerungId,Mandant,Mitarbeiter,Firmenwagen,Navigation,Mitnahme,Notebook,StellvertreterProjektleitung,ZugriffProjekt) VALUES (2,123,'M00007',-1,-1,-1,-1,-1,-1)
INSERT INTO BPKProjektsteuerungMitarbeiter (SteuerungId,Mandant,Mitarbeiter,Firmenwagen,Navigation,Mitnahme,Notebook,StellvertreterProjektleitung,ZugriffProjekt) VALUES (2,123,'M00016',0,0,0,0,0,0)
INSERT INTO BPKProjektsteuerungMitarbeiter (SteuerungId,Mandant,Mitarbeiter,Firmenwagen,Navigation,Mitnahme,Notebook,StellvertreterProjektleitung,ZugriffProjekt) VALUES (2,123,'M00014',-1,-1,0,-1,0,0)

...

Code Block
titleSQL-Statements
CREATE TABLE "BPKProjektsteuerungMitarbeiterPlanung"
(
    "PlanungId"		INTEGER NOT NULL DEFAULT 0,
    "Mandant"		SMALLINT NOT NULL DEFAULT 0,
    "SteuerungId"	INTEGER NOT NULL DEFAULT 0,
    "Mitarbeiter"	VARCHAR(20) NOT NULL,
    "DatumVon"		DATETIME NOT NULL,
    "DatumBis"		DATETIME NOT NULL,
    "Planung"		SMALLINT NOT NULL DEFAULT 0,
    "Timestamp"		ROWVERSION,
    CONSTRAINT PK_BPKProjektsteuerungMitarbeiterPlanung PRIMARY KEY CLUSTERED ("PlanungId", "Mandant")
)
GO

INSERT INTO USysCatalog ([Table], Revision) VALUES ('BPKProjektsteuerungMitarbeiterPlanung', 1)
BPKProjektsteuerungVorgang

...

Code Block
titleSQL-Statements
CREATE TABLE "BPKProjektsteuerungVorgang"
(
    "SteuerungId"	INTEGER NOT NULL DEFAULT 0,
    "Mandant"		SMALLINT NOT NULL DEFAULT 0,
    "VorId"			INTEGER NOT NULL DEFAULT 0,
    "Timestamp"		ROWVERSION,
    CONSTRAINT PK_BPKProjektsteuerungVorgang PRIMARY KEY CLUSTERED ("SteuerungId", "Mandant", "VorId")
)
GO

INSERT INTO USysCatalog ([Table], Revision) VALUES ('BPKProjektsteuerungVorgang', 1)
BPKMitarbeiterFehlzeiten
FelderTypNullDefaultBemerkung
FehlzeitIdintNein0Tan

Mandant

smallint

Nein

0MandantId
Mitarbeitervarchar(20)Nein
Nummer aus KHKMitarbeiter
DatumVonDatetimeNein
Von
DatumBisDatetimeNein
Bis
FehlzeitsmallintNein0

0 = verfügbar

1 = Urlaub bezahlt

2 = Sonderurlaub

3 = Krankmeldung

Vertretervarchar(20)Ja
Nummer aus KHKMitarbeiter

...

Code Block
titleSQL-Statements
CREATE TABLE "BPKMitarbeiterFehlzeiten"
(
    "FehlzeitId"	INTEGER NOT NULL DEFAULT 0,
    "Mandant"		SMALLINT NOT NULL DEFAULT 0,
    "Mitarbeiter"	VARCHAR(20) NOT NULL,
    "DatumVon"		DATETIME NOT NULL,
    "DatumBis"		DATETIME NOT NULL,
    "Fehlzeit"		SMALLINT NOT NULL DEFAULT 0,
    "Vertreter"		VARCHAR(20) NULL,
    "Timestamp"		ROWVERSION,
    CONSTRAINT PK_BPKMitarbeiterFehlzeiten PRIMARY KEY CLUSTERED ("FehlzeitId", "Mandant")
)
GO

INSERT INTO USysCatalog ([Table], Revision) VALUES ('BPKMitarbeiterFehlzeiten', 1)
BPKProjektsteuerungErfassung

...

Code Block
titleSQL-Statements
CREATE TABLE "BPKProjektsteuerungErfassung"
(
    "ErfassungId"		INTEGER NOT NULL DEFAULT 0,
    "Mandant"			SMALLINT NOT NULL DEFAULT 0,
    "SteuerungId"		INTEGER NOT NULL DEFAULT 0,
    "Projekt"			VARCHAR(31) NOT NULL,
    "Projektleiter"		VARCHAR(128) NOT NULL,
    "Matchcode"			VARCHAR(50) NOT NULL,
    "Bearbeiter"		VARCHAR(128) NOT NULL,
    "TermineGeprueft"	KHKBoolean NOT NULL DEFAULT 0,
    "TermineGesamt"		SMALLINT NULL DEFAULT 0,
    "TermineIntern"		SMALLINT NULL DEFAULT 0,
    "TermineExtern"		SMALLINT NULL DEFAULT 0,
    "Timestamp"			ROWVERSION,
    CONSTRAINT PK_BPKProjektsteuerungErfassung PRIMARY KEY CLUSTERED ("ErfassungId", "Mandant")
)
GO

INSERT INTO USysCatalog ([Table], Revision) VALUES ('BPKProjektsteuerungErfassung', 1 KEY CLUSTERED ("ErfassungId", "Mandant")
)
GO

INSERT INTO BPKProjektsteuerungErfassung (ErfassungId,Mandant,SteuerungId,Projekt,Projektleiter,Matchcode,Bearbeiter,TermineGeprueft,TermineGesamt,TermineIntern,TermineExtern) VALUES (1,123,1,'P10031','Sage','Arber, Restrukturierung','Sage',-1,2,1,1)
INSERT INTO BPKProjektsteuerungErfassung (ErfassungId,Mandant,SteuerungId,Projekt,Projektleiter,Matchcode,Bearbeiter,TermineGeprueft,TermineGesamt,TermineIntern,TermineExtern) VALUES (2,123,2,'P10032','Sage','Einführung neues ERP','Sage',-1,6,2,4)
GO

INSERT INTO KHKTan (Mandant,Tabelle,[Tan]) VALUES (123,'BPKProjektsteuerungErfassung',2)
GO

...

Code Block
titleSQL-Statements
CREATE TABLE "BPKProjektsteuerungTermine"
(
    "TerminId"			INTEGER NOT NULL DEFAULT 0,
    "Mandant"			SMALLINT NOT NULL DEFAULT 0,
    "ErfassungId"		INTEGER NOT NULL DEFAULT 0,
    "SteuerungId"		INTEGER NOT NULL DEFAULT 0,
    "Thema"				VARCHAR(10) NOT NULL,
    "Termin"			DATETIME NOT NULL,
    "Mitarbeiter"		VARCHAR(20) NOT NULL,
    "Kontakt"			VARCHAR(50) NULL,
    "Status"			SMALLINT NOT NULL DEFAULT 0,
    "TerminNeu"			DATETIME NULL,
    "BudgetOk"			KHKBoolean NOT NULL DEFAULT -1,
    "Memo"				text NULL,
    "IstUebernommen"	KHKBoolean NOT NULL DEFAULT 0,
    "Artikelnummer"		VARCHAR(31) NULL,
	"AuspraegungId"		INTEGER NOT NULL DEFAULT 0, 
    "Timestamp"			ROWVERSION,
    CONSTRAINT PK_BPKProjektsteuerungTermine PRIMARY KEY CLUSTERED ("TerminId", "Mandant")
)
GO

INSERT INTO USysCatalog ([Table], Revision) VALUES ('BPKProjektsteuerungTermine', 1)
GO

INSERT INTO BPKProjektsteuerungTermine (TerminId,ErfassungId,SteuerungId,Mandant,Thema,Termin,Mitarbeiter,Kontakt,[Status],TerminNeu,BudgetOk,Memo,IstUebernommen) VALUES (1,1,1,123,'PLAN', CONVERT(Datetime,'15-03-18 00:00:00 AM',4),'M00001',NULL,0,NULL,-1,NULL,0)
INSERT INTO BPKProjektsteuerungTermine (TerminId,ErfassungId,SteuerungId,Mandant,Thema,Termin,Mitarbeiter,Kontakt,[Status],TerminNeu,BudgetOk,Memo,IstUebernommen) VALUES (2,1,1,123,'ABLAUF', CONVERT(Datetime,'22-03-18 00:00:00 AM',4),'M00016','Arber, Franz',0,NULL,-1,NULL,0)
INSERT INTO BPKProjektsteuerungTermine (TerminId,ErfassungId,SteuerungId,Mandant,Thema,Termin,Mitarbeiter,Kontakt,[Status],TerminNeu,BudgetOk,Memo,IstUebernommen) VALUES (3,2,2,123,'PLAN', CONVERT(Datetime,'16-03-18 00:00:00 AM',4),'M00001',NULL,0,NULL,-1,NULL,0)
INSERT INTO BPKProjektsteuerungTermine (TerminId,ErfassungId,SteuerungId,Mandant,Thema,Termin,Mitarbeiter,Kontakt,[Status],TerminNeu,BudgetOk,Memo,IstUebernommen) VALUES (4,2,2,123,'ABLAUF', CONVERT(Datetime,'20-03-18 00:00:00 AM',4),'M00016','Lohmann-Labus, Ute',0,NULL,-1,NULL,0)
INSERT INTO BPKProjektsteuerungTermine (TerminId,ErfassungId,SteuerungId,Mandant,Thema,Termin,Mitarbeiter,Kontakt,[Status],TerminNeu,BudgetOk,Memo,IstUebernommen) VALUES (5,2,2,123,'DEMOERP', CONVERT(Datetime,'21-03-18 00:00:00 AM',4),'M00016','Lohmann-Labus, Ute',0,NULL,-1,NULL,0)
INSERT INTO BPKProjektsteuerungTermine (TerminId,ErfassungId,SteuerungId,Mandant,Thema,Termin,Mitarbeiter,Kontakt,[Status],TerminNeu,BudgetOk,Memo,IstUebernommen) VALUES (6,2,2,123,'PLANSCHUL', CONVERT(Datetime,'25-03-18 00:00:00 AM',4),'M00014',NULL,0,NULL,-1,NULL,0)
INSERT INTO BPKProjektsteuerungTermine (TerminId,ErfassungId,SteuerungId,Mandant,Thema,Termin,Mitarbeiter,Kontakt,[Status],TerminNeu,BudgetOk,Memo,IstUebernommen) VALUES (7,2,2,123,'SCHULERP', CONVERT(Datetime,'27-03-18 00:00:00 AM',4),'M00007','Lohmann-Labus, Ute',0,NULL,-1,NULL,0)
INSERT INTO BPKProjektsteuerungTermine (TerminId,ErfassungId,SteuerungId,Mandant,Thema,Termin,Mitarbeiter,Kontakt,[Status],TerminNeu,BudgetOk,Memo,IstUebernommen) VALUES (8,2,2,123,'SCHULERP', CONVERT(Datetime,'28-03-18 00:00:00 AM',4),'M00007','Lohmann-Labus, Ute',0,NULL,-1,NULL,0)
GO
UPDATE BPKProjektsteuerungTermine SET Memo = 'Projektablauf wurde generell abgenommen.' + nchar(13) + nchar(10) + 'Termine für Abbau müssen noch geklärt werden.' WHERE SteuerungId = 1 and Thema = 'ABLAUF'
GO

INSERT INTO KHKTan (Mandant,Tabelle,[Tan]) VALUES (123,'BPKProjektsteuerungTermine',8)
GO

...

Code Block
titleSQL-Statements
CREATE TABLE "BPKVKBelegePositionenMitarbeiter"
(
    "BelPosID"		INTEGER NOT NULL DEFAULT 0,
    "MitarbeiterId"	INTEGER NOT NULL DEFAULT 0,
    "Mandant"		SMALLINT NOT NULL DEFAULT 0,
    "BelID"			INTEGER NOT NULL DEFAULT 0,
    "Mitarbeiter"	VARCHAR(20) NOT NULL,
    "DatumVon"		DATETIME NOT NULL,
    "DatumBis"		DATETIME NOT NULL,
    "Timestamp"		ROWVERSION,
    CONSTRAINT PK_BPKVKBelegePositionenMitarbeiter PRIMARY KEY CLUSTERED ("BelPosID", "MitarbeiterId", "Mandant")
)
GO

INSERT INTO USysCatalog ([Table], Revision) VALUES ('BPKVKBelegePositionenMitarbeiter', 1)
Bewegungsdaten

Legen Sie folgendes Angebot an:

...