@import cervis.CervisPerson
@import cervis.GiwiBestand
@import cervis.GiwiInventarisierung
@(person: CervisPerson, giwiBestands: List[GiwiBestand])
@row(title: String, values: Any*) = {
@if(title != null) {
|
@Html(title)
|
}
@for( value <- values) {
@if(value != null) {
@Html(value.toString)
} else {
@Html(" ")
}
|
}
}
@dateformat(date: Date) = @{
if(date != null) {
date.format("dd.MM.yyyy")
} else {
null;
}
}
@datetimeformat(date: Date) = @{
if(date != null) {
date.format("dd.MM.yyyy, hh:mm")
} else {
null;
}
}
@if(person == null && (giwiBestands == null || giwiBestands.isEmpty)) {
Keine Daten
}
@if(person != null) {
@for(doc <- person.getDocumentation) {
@if(person.getDocumentation != null) {
@row("Cervis-ID", person.getHhid_c)
@row("Eingangstag", doc.getEingangsTag)
@row("Terminzeit", doc.getTerminZeit)
@row("GIWI-ID", doc.getGiwiId)
@row("Internetanschluss", doc.getInternetanschluss)
@row("Router-ID", doc.getRouter)
@row("Auftrag", doc.getAuftrag)
@row("Status", doc.getStatus)
@row("Letzte Meldung", doc.getLetzteMeldung)
@row("Erledigt", doc.getErledigt)
@row("Storniert", doc.getStorniert)
@row("Notizen", doc.getNotizen)
@row("Techniker", doc.getTechniker)
@row("Rechnungsnummer", doc.getRechnungsnummer)
} else {
Keine Daten
}
}
@if(person.getSimBestands != null && !person.getSimBestands.isEmpty) {
@for(sim <- person.getSimBestands) {
@row("ID", sim.getSimId)
@row("Provider", sim.getProvider)
@row("Ehemalige Cervis-ID", sim.getFormerHhid_c)
@row("SIM-Kartennummer", sim.getSimNr)
@row("Telefonnummer", sim.getTelNr)
@row("Kostenstelle", sim.getKostenstelle)
@row("Aktiviert seit", sim.getAktiviert)
@row("Vertragsende", sim.getEndeVertrag)
@row("Bei Cervis?", sim.isBeiCervis)
@row("Aktiv?", sim.isAktiv)
@row("Kündigungsmail", sim.getTerminatedMail)
@row("Kündigungsbestätigung", sim.getTerminatedTo)
@row("Stornierte Kündigung", sim.getTerminationCanceled)
@row("Router-ID", sim.getRouterId)
@row("Kommentar", sim.getComment)
}
}
}
@if(giwiBestands != null && giwiBestands.size() > 0) {
@for(giwiBestand <- giwiBestands) {
@row("Inventarnr.", giwiBestand.getInventarNr)
@row("Serienummer", giwiBestand.getSerial)
@row("Gerätename", giwiBestand.getName)
@row("Bei Cervis?", giwiBestand.isBeiCervis)
@row("Telefonnummer", giwiBestand.getComment)
@row("Kostenstelle", giwiBestand.getBeiUni)
@row("Aktiviert seit", giwiBestand.getContract)
}
}