Feature Complete

This commit is contained in:
darthsandmann
2016-12-14 22:32:35 +01:00
parent 08eb4edae5
commit aa300044f6
18 changed files with 559 additions and 468 deletions

View File

@ -59,6 +59,11 @@ class PPM
this.LoadContent('/category/?cat=Firmen&view=List', 'list.tpl');
break
case 'categoryAngebote':
this.LoadContent('/category/?cat=Angebote&view=List', 'list.tpl');
break
case 'choice':
@ -80,60 +85,84 @@ class PPM
this.LoadContent('/eval/?cat=Firmen', 'listEval.tpl');
break
case 'NewStudenten':
case 'newStudenten':
console.log("NewStudenten");
this.LoadContent('/category/?cat=Studenten&view=Detail', 'detail.tpl');
break
case 'NewLehrender':
case 'newLehrender':
console.log("NewLehrender");
this.LoadContent('/category/?cat=Lehrenden&view=Detail', 'detail.tpl');
this.LoadContent('/category/?cat=Lehrender&view=Detail', 'detail.tpl');
break
case 'NewFirmen':
case 'newFirmen':
console.log("NewFirmen");
this.LoadContent('/category/?cat=Firmen&view=Detail', 'detail.tpl');
break
case 'ModifyStudenten':
console.log("ModifyStudenten: ", selectedId);
case 'newAngebote':
console.log("NewAngebote");
this.LoadContent('/category/?cat=Angebote&view=Detail', 'detail.tpl');
break
case 'modifyStudenten':
console.log("modifyStudenten: ", selectedId);
this.LoadContent('/category/?cat=Studenten&view=Detail&id='+ selectedId, 'detail.tpl');
break
case 'ModifyLehrender':
case 'modifyLehrender':
console.log("ModifyLehrender", selectedId);
console.log("modifyLehrender", selectedId);
this.LoadContent('/category/?cat=Lehrender&view=Detail&id='+ selectedId, 'detail.tpl');
break
case 'ModifyFirmen':
case 'modifyFirmen':
console.log("ModifyFirmen", selectedId);
console.log("modifyFirmen", selectedId);
this.LoadContent('/category/?cat=Firmen&view=Detail&id='+ selectedId, 'detail.tpl');
break
case 'DeleteStudenten':
case 'modifyAngebote':
console.log("DeleteStudenten", selectedId);
console.log("modifyAngebote", selectedId);
this.LoadContent('/category/?cat=Angebote&view=Detail&id='+ selectedId, 'detail.tpl');
break
case 'choiceAnnehmen':
console.log("choiceAnnehmen", selectedId);
this.LoadContent('/choice/?view=Detail&id='+ selectedId, 'detailChoice.tpl');
break
case 'choiceNeu':
console.log("choiceNeu");
this.LoadContent('/choice/?view=Detail', 'detailChoice.tpl');
break
case 'deleteStudenten':
console.log("deleteStudenten", selectedId);
if (confirm("Soll der Eintrag wirklich geloescht werden?")) {
console.log("DELETE");
this.DeleteContent('/category/?cat=Studenten&id='+selectedId, 'categoryStudenten');
}
break
case 'DeleteLehrender':
case 'deleteLehrender':
console.log("DeleteLehrender", selectedId);
console.log("deleteLehrender", selectedId);
if (confirm("Soll der Eintrag wirklich geloescht werden?")) {
console.log("DELETE");
this.DeleteContent('/category/?cat=Lehrender&id='+selectedId, 'categoryLehrender');
}
break
case 'DeleteFirmen':
case 'deleteFirmen':
console.log("DeleteFirmen", selectedId);
if (confirm("Soll der Eintrag wirklich geloescht werden?")) {
@ -142,24 +171,36 @@ class PPM
}
break
case 'SaveCategoryStudenten':
case 'saveCategoryStudenten':
var data = $("#idForm").serialize();
this.SaveContent('/category/?cat=Studenten&'+data, 'categoryStudenten');
break
case 'SaveCategoryLehrende':
case 'saveCategoryLehrende':
var data = $("#idForm").serialize();
this.SaveContent('/category/?cat=Lehrender&'+data, 'categoryLehrender');
break
case 'SaveCategoryFirmen':
case 'saveCategoryFirmen':
var data = $("#idForm").serialize();
this.SaveContent('/category/?cat=Firmen&'+data, 'categoryFirmen');
break
case 'saveCategoryAngebote':
var data = $("#idForm").serialize();
this.SaveContent('/category/?cat=Angebote&'+data, 'categoryAngebote');
break
case 'saveChoice':
var data = $("#idForm").serialize();
this.SaveContent('/choice/?'+data, 'choice');
break
default:
alert ('[PPM] Unbekannte Anfrage: ' + message);