Auftraggeber wird in protokoll mit abgebildet
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using SanShared;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
@@ -9,7 +10,7 @@ namespace KlassenBIB
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class Auftraggeber
|
||||
public class Auftraggeber :IAuftraggeber
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
|
||||
@@ -56,9 +56,9 @@ namespace KlassenBIB
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="destinationPath"></param>
|
||||
/// <param name="projekt">Projekt</param>
|
||||
/// <returns></returns>
|
||||
|
||||
public Hashtable MakeProtokoll(string destinationPath)
|
||||
public Hashtable MakeProtokoll(string destinationPath, IProjekt projekt)
|
||||
{
|
||||
Hashtable grunddaten = new Hashtable()
|
||||
{
|
||||
@@ -101,14 +101,14 @@ namespace KlassenBIB
|
||||
};
|
||||
|
||||
double LaengeGesamt = this.Inspektionsobjekt.Haltungslaenge + this.Inspektionsobjekt.Schachtlaenge;
|
||||
|
||||
|
||||
grunddaten["AG_Vorname"] = "";
|
||||
|
||||
grunddaten["AG_Vorname"] = projekt.Auftraggeber.Name;
|
||||
grunddaten["KLP_Nummer"] = "";
|
||||
grunddaten["KLP_Datum"] = DateTime.Now.ToShortDateString();
|
||||
grunddaten["AG_Ort"] = "";
|
||||
grunddaten["AG_Strasse"] = "";
|
||||
grunddaten["AG_Ansprechpartner"] = "";
|
||||
grunddaten["AG_Ort"] = projekt.Auftraggeber.Ort;
|
||||
grunddaten["AG_Strasse"] = projekt.Auftraggeber.Strasse;
|
||||
grunddaten["AG_Ansprechpartner"] = projekt.Auftraggeber.Ansprechpartner;
|
||||
grunddaten["BM_Ort"] = Inspektionsobjekt.OrtName;
|
||||
grunddaten["BM_Strasse"] = Inspektionsobjekt.StrasseName;
|
||||
grunddaten["BM_Schacht_von"] = Inspektionsobjekt.VonPunkt;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using SanShared;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
@@ -12,7 +13,7 @@ namespace KlassenBIB
|
||||
///
|
||||
/// </summary>
|
||||
[ContentProperty("Objekte")]
|
||||
public class Projekt
|
||||
public class Projekt :IProjekt
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
@@ -25,7 +26,7 @@ namespace KlassenBIB
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public Auftraggeber Auftraggeber { get; set; }
|
||||
public IAuftraggeber Auftraggeber { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user