Schachtanbindung angestellt

This commit is contained in:
Husky
2018-07-01 14:57:21 +02:00
parent bf38d340fc
commit b832a0319f
8 changed files with 94 additions and 7 deletions

View File

@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
@@ -28,11 +29,22 @@ namespace KlassenBIB
{
return haltungslaenge * harzbedarf;
}
public override string CheckVerzeichnisse(string projektpfad)
{
string path = Path.Combine(projektpfad, PfadZurSan);
if (!Directory.Exists(path)) Directory.CreateDirectory(path);
string mypath = Path.Combine(path, Verzeichnispfad);
if (!Directory.Exists(mypath)) Directory.CreateDirectory(mypath);
return mypath;
}
public InlinerSanierung()
{
//datumKalibrierung = new DateTime();
Verzeichnispfad = "UVAnlage";
if (datumKalibrierung <= DateTime.MinValue || datumKalibrierung >= DateTime.MaxValue) datumKalibrierung = DateTime.Now;
}

View File

@@ -51,6 +51,7 @@
<Compile Include="Sanieren.cs" />
<Compile Include="Sanierung.cs" />
<Compile Include="SanierungCollection.cs" />
<Compile Include="SchachtAnbindung.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@@ -11,9 +11,11 @@ namespace KlassenBIB
Guid guid;
DateTime? datum;
bool fertig = false;
string verzeichnispfad;
public Guid Guid { get => guid; set => guid = value; }
public DateTime? Datum { get => datum; set => datum = value; }
public bool Fertig { get => fertig; set => fertig = value; }
public string Verzeichnispfad { get => verzeichnispfad; protected set => verzeichnispfad = value; }
}
}

View File

@@ -11,6 +11,8 @@ namespace KlassenBIB
//
// Zusammenfassung:
// Bietet die grundlegene Struktur für eine Sanierung
[EditorBrowsable(EditorBrowsableState.Never)]
[Browsable(false)]
public abstract class Sanierung : INotifyPropertyChanged
{
//Guid guid;
@@ -23,8 +25,19 @@ namespace KlassenBIB
bool hDReinigung;
DateTime hDReinigungDatum;
//DateTime sanierungsDatum;
Inspektionsobjekt inspektionsobjekt;
protected string pfadZurSan;
[Browsable(false)]
public Sanierung()
{
//if (inspektionsobjekt == null) return;
//pfadZurSan = string.Format();
}
public abstract string CheckVerzeichnisse(string projektpfad);
//public Guid Guid { get => guid; set => guid = value; }
public double TempAusen
{
@@ -46,8 +59,15 @@ namespace KlassenBIB
public bool STVOAbsicherung { get => sTVOAbsicherung; set => sTVOAbsicherung = value; }
public bool HDReinigung { get => hDReinigung; set => hDReinigung = value; }
public DateTime HDReinigungDatum { get => hDReinigungDatum; set => hDReinigungDatum = value; }
public Inspektionsobjekt Inspektionsobjekt { get => inspektionsobjekt; set => inspektionsobjekt = value; }
protected string PfadZurSan {
get
{
return string.Format("{0}-{1}", Inspektionsobjekt.VonPunkt, Inspektionsobjekt.BisPunkt);
}
}
//public DateTime SanierungsDatum { get => sanierungsDatum; set => sanierungsDatum = value; }
public event PropertyChangedEventHandler PropertyChanged;
private void NotifyPropertyChanged([CallerMemberName] string propertyName = null)
{

View File

@@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KlassenBIB
{
public class SchachtAnbindung : Sanieren
{
public SchachtAnbindung()
{
Verzeichnispfad = "Schachtanbindung";
}
public override string CheckVerzeichnisse(string projektpfad)
{
string path = Path.Combine(projektpfad, PfadZurSan);
if (!Directory.Exists(path)) Directory.CreateDirectory(path);
string mypath = Path.Combine(path, Verzeichnispfad);
if (!Directory.Exists(mypath)) Directory.CreateDirectory(mypath);
return mypath;
}
}
}