Auftraggeber wird in protokoll mit abgebildet

This commit is contained in:
Husky
2018-07-30 12:54:39 +02:00
parent f79d8985f0
commit 3b6b3a9080
11 changed files with 61 additions and 17 deletions

View File

@@ -1,4 +1,5 @@
using KlassenBIB;
using SanShared;
using System;
using System.Collections.Generic;
using System.ComponentModel;
@@ -19,7 +20,7 @@ namespace SanSystem
/// <summary>
///
/// </summary>
public FrmAuftraggeberEdit(Auftraggeber auftraggeber)
public FrmAuftraggeberEdit(IAuftraggeber auftraggeber)
{
InitializeComponent();
txt_name.DataBindings.Add("Text", auftraggeber, "Name");

View File

@@ -32,7 +32,7 @@ namespace SanSystem
void BuildBericht(List<Inspektionsobjekt> list)
{
Hashtable grundDaten = MakeProtokoll("");
Hashtable grundDaten = MakeProtokoll("",null);
DataTable inliner = getMassenTableInliner();
@@ -95,7 +95,7 @@ namespace SanSystem
frmOptions.ShowDialog();
}
public Hashtable MakeProtokoll(string destinationPath)
public Hashtable MakeProtokoll(string destinationPath, IProjekt projekt)
{
Hashtable grundDaten = new Hashtable()
{

View File

@@ -307,7 +307,7 @@ namespace SanSystem
{
MessageBox.Show("Warnung, es wurden keine Daten von der Anlage geladen, Grafik konnte nicht erstellt werden");
}
Hashtable hashtable = inliner.MakeProtokoll(destinationPath);
Hashtable hashtable = inliner.MakeProtokoll(destinationPath,Database.Datenbank.Instance.loadedProjekt);
DirectoryInfo directory = Directory.GetParent(destinationPath);
string speicherpfad = directory.FullName;
BerichtGen.FrmOptions options = new BerichtGen.FrmOptions("JUME", "liner_einbau.docx", speicherpfad,inliner.Inspektionsobjekt.Objektbezeichnung, hashtable, new List<BilderObject>());