Güteschutzbericht angefangen

This commit is contained in:
Husky
2020-06-02 18:38:55 +02:00
parent 3430be0245
commit 4d5d5082a7
22 changed files with 1092 additions and 5 deletions

View File

@@ -0,0 +1,40 @@
using KanSan.Base.Models;
using System;
using System.Collections.Generic;
using System.Text;
namespace KanSan.Base.Interfaces.UI
{
public interface IGüteschutzEditViewModel
{
string StrasseName { get; set; }
string OrtTeilName { get; set; }
string Haltungsnummer { get; set; }
string VonSchacht { get; set; }
string BisSchacht { get; set; }
int Durchmesser { get; set; }
string Fließrichtung { get; }
bool RohrleitungInBetrieb { get; set; }
bool HaltungGespült { get; set; }
bool WasserHaltungdurchgeführt { get; set; }
bool GenehmigungErforderlich { get; set; }
bool BaustellenabsicherungErforderlich { get; set; }
bool RissBruchScherbe { get; set; }
bool WurzelInkrustationAblagerungen { get; set; }
bool StutzenEinragend { get; set; }
bool Infiltration { get; set; }
bool VorbehandeltHD { get; set; }
bool VorbehandeltMechanisch { get; set; }
bool VorbehandeltFräser { get; set; }
bool SchadStelleIstFäkalienFrei { get; set; }
int AussenTemperatur { get; set; }
int KanalTemperatur { get; set; }
bool SichtKontrolleErforderlich { get; set; }
bool BerichtErforderlich { get; set; }
bool FilmErforderlich { get; set; }
bool VideoErforderlich { get; set; }
bool DichtheitErforderlich { get; set; }
GueteschutzProtokoll Sanierungsart { get; set; }
}
}

View File

@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace KanSan.Base.Interfaces.UI
{
public interface IHarzSanierungViewModel
{
string HarzMaterialHersteller { get; set; }
string HarzMaterialArt { get; set; }
string KompACharge { get; set; }
string KompBCharge { get; set; }
string TrägerHersteller { get; set; }
string TrägerCharge { get; set; }
bool Auffälligkeit { get; set; }
bool FixierungAufPacker { get; set; }
DateTime MischZeit { get; set; }
DateTime AnpressenPacker { get; set; }
DateTime EntlüftenPacker { get; set; }
}
}

View File

@@ -13,6 +13,7 @@ namespace KanSan.Base.Interfaces.UI
bool Erledigt { get; } bool Erledigt { get; }
decimal Anzahl { get; set; } decimal Anzahl { get; set; }
string Bemerkung { get; set; } string Bemerkung { get; set; }
bool HatGueteschutzProtokoll { get; }
LeistungsverzeichnisPosition Leistungsverzeichnis { get; set; } LeistungsverzeichnisPosition Leistungsverzeichnis { get; set; }
} }
} }

View File

@@ -0,0 +1,640 @@
// <auto-generated />
using System;
using KanSan.Base;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
namespace KanSan.Base.Migrations
{
[DbContext(typeof(KanSanContext))]
[Migration("20200602162932_HatGüteschutzprotokoll")]
partial class HatGüteschutzprotokoll
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn)
.HasAnnotation("ProductVersion", "3.1.3")
.HasAnnotation("Relational:MaxIdentifierLength", 63);
modelBuilder.Entity("KanSan.Base.Models.Baustelle", b =>
{
b.Property<int>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
b.Property<string>("BaustelleNummer")
.HasColumnType("text");
b.Property<Guid>("GuidNr")
.HasColumnType("uuid");
b.Property<string>("OrtTeil")
.HasColumnType("text");
b.Property<int?>("ProjektID")
.HasColumnType("integer");
b.HasKey("ID");
b.HasIndex("ProjektID");
b.ToTable("Baustelle");
});
modelBuilder.Entity("KanSan.Base.Models.BaustelleLeistungsverzeichnisReferenz", b =>
{
b.Property<int>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
b.Property<int?>("BaustelleID")
.HasColumnType("integer");
b.Property<Guid>("GuidNr")
.HasColumnType("uuid");
b.Property<int?>("LVPositionID")
.HasColumnType("integer");
b.HasKey("ID");
b.HasIndex("BaustelleID");
b.HasIndex("LVPositionID");
b.ToTable("LeistungsverzeichnisBaustellen");
});
modelBuilder.Entity("KanSan.Base.Models.Fahrzeug", b =>
{
b.Property<int>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
b.Property<Guid>("GuidNr")
.HasColumnType("uuid");
b.Property<string>("Kennzeichen")
.HasColumnType("text");
b.HasKey("ID");
b.ToTable("Fahrzeuge");
});
modelBuilder.Entity("KanSan.Base.Models.GueteschutzProtokoll", b =>
{
b.Property<int>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
b.Property<int>("AussenTemp")
.HasColumnType("integer");
b.Property<bool>("Bericht")
.HasColumnType("boolean");
b.Property<bool>("Dichtheit")
.HasColumnType("boolean");
b.Property<string>("Discriminator")
.IsRequired()
.HasColumnType("text");
b.Property<bool>("Film")
.HasColumnType("boolean");
b.Property<Guid>("GuidNr")
.HasColumnType("uuid");
b.Property<int>("KanalTemp")
.HasColumnType("integer");
b.Property<int?>("SchadPositionID")
.HasColumnType("integer");
b.Property<bool>("Sichtkontrolle")
.HasColumnType("boolean");
b.Property<bool>("Video")
.HasColumnType("boolean");
b.Property<int>("Wetter")
.HasColumnType("integer");
b.HasKey("ID");
b.HasIndex("SchadPositionID");
b.ToTable("GueteschutzProtokoll");
b.HasDiscriminator<string>("Discriminator").HasValue("GueteschutzProtokoll");
});
modelBuilder.Entity("KanSan.Base.Models.Kunde", b =>
{
b.Property<int>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
b.Property<Guid>("GuidNr")
.HasColumnType("uuid");
b.Property<string>("Nachname")
.HasColumnType("text");
b.Property<string>("Ort")
.HasColumnType("text");
b.Property<string>("PLZ")
.HasColumnType("text");
b.Property<string>("Strasse")
.HasColumnType("text");
b.Property<string>("Vorname")
.HasColumnType("text");
b.HasKey("ID");
b.ToTable("Kunden");
});
modelBuilder.Entity("KanSan.Base.Models.LeistungsverzeichnisPosition", b =>
{
b.Property<int>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
b.Property<string>("Beschreibung")
.HasColumnType("text");
b.Property<string>("Einheit")
.HasColumnType("text");
b.Property<Guid>("GuidNr")
.HasColumnType("uuid");
b.Property<bool>("HatGueteschutzProtokol")
.HasColumnType("boolean");
b.Property<string>("Positionsnummer")
.HasColumnType("text");
b.Property<string>("Tag")
.HasColumnType("text");
b.HasKey("ID");
b.ToTable("LeistungsverzeichnisPositionen");
});
modelBuilder.Entity("KanSan.Base.Models.Projekt", b =>
{
b.Property<int>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
b.Property<Guid>("GuidNr")
.HasColumnType("uuid");
b.Property<int?>("KundeID")
.HasColumnType("integer");
b.Property<string>("Ort")
.HasColumnType("text");
b.Property<string>("Projektnummer")
.HasColumnType("text");
b.HasKey("ID");
b.HasIndex("KundeID");
b.ToTable("Projekte");
});
modelBuilder.Entity("KanSan.Base.Models.Sanierungskonzept", b =>
{
b.Property<int>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
b.Property<Guid>("GuidNr")
.HasColumnType("uuid");
b.Property<int>("SanierungsTyp")
.HasColumnType("integer");
b.HasKey("ID");
b.ToTable("Sanierungskonzept");
});
modelBuilder.Entity("KanSan.Base.Models.Schaeden", b =>
{
b.Property<int>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
b.Property<decimal>("Entfernung")
.HasColumnType("numeric");
b.Property<Guid>("GuidNr")
.HasColumnType("uuid");
b.Property<bool>("Infiltration")
.HasColumnType("boolean");
b.Property<bool>("RissBruchScherbe")
.HasColumnType("boolean");
b.Property<int>("SanierungsTyp")
.HasColumnType("integer");
b.Property<int?>("SanierungskonzeptID")
.HasColumnType("integer");
b.Property<bool>("SchadstelleFaekalienFrei")
.HasColumnType("boolean");
b.Property<int?>("SewerID")
.HasColumnType("integer");
b.Property<bool>("StutzenEinragend")
.HasColumnType("boolean");
b.Property<bool>("VorbehandeltFraeser")
.HasColumnType("boolean");
b.Property<bool>("VorbehandeltHD")
.HasColumnType("boolean");
b.Property<bool>("VorbehandeltMech")
.HasColumnType("boolean");
b.Property<bool>("WurzelInkrustationAblagerungen")
.HasColumnType("boolean");
b.HasKey("ID");
b.HasIndex("SanierungskonzeptID");
b.HasIndex("SewerID");
b.ToTable("Schaeden");
});
modelBuilder.Entity("KanSan.Base.Models.Sewer", b =>
{
b.Property<int>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
b.Property<int?>("BaustelleID")
.HasColumnType("integer");
b.Property<bool>("BaustellensicherungErforderlich")
.HasColumnType("boolean");
b.Property<int>("DN")
.HasColumnType("integer");
b.Property<bool>("GenehmigungErforderlich")
.HasColumnType("boolean");
b.Property<Guid>("GuidNr")
.HasColumnType("uuid");
b.Property<bool>("HaltungGespuelt")
.HasColumnType("boolean");
b.Property<decimal>("Haltungslaenge")
.HasColumnType("numeric");
b.Property<int>("Material")
.HasColumnType("integer");
b.Property<string>("ObjektNummer")
.HasColumnType("text");
b.Property<int?>("PunktObenID")
.HasColumnType("integer");
b.Property<int>("PunktTypeOben")
.HasColumnType("integer");
b.Property<int>("PunktTypeUnten")
.HasColumnType("integer");
b.Property<int?>("PunktUntenID")
.HasColumnType("integer");
b.Property<bool>("RohrleitungInBetrieb")
.HasColumnType("boolean");
b.Property<int>("SewerType")
.HasColumnType("integer");
b.Property<string>("StrasseName")
.HasColumnType("text");
b.Property<bool>("WasserHaltungDurchgefuehrt")
.HasColumnType("boolean");
b.HasKey("ID");
b.HasIndex("BaustelleID");
b.HasIndex("PunktObenID");
b.HasIndex("PunktUntenID");
b.ToTable("Kanaele");
});
modelBuilder.Entity("KanSan.Base.Models.SewerPoint", b =>
{
b.Property<int>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
b.Property<Guid>("GuidNr")
.HasColumnType("uuid");
b.Property<string>("Objektnummer")
.HasColumnType("text");
b.HasKey("ID");
b.ToTable("SewerPoints");
});
modelBuilder.Entity("KanSan.Base.Models.Taetigkeiten", b =>
{
b.Property<int>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
b.Property<decimal>("Anzahl")
.HasColumnType("numeric");
b.Property<string>("Bemerkung")
.HasColumnType("text");
b.Property<int?>("FahrzeugID")
.HasColumnType("integer");
b.Property<int?>("GueteschutzProtokolID")
.HasColumnType("integer");
b.Property<Guid>("GuidNr")
.HasColumnType("uuid");
b.Property<int?>("LeistungsverzeichnisPositionID")
.HasColumnType("integer");
b.Property<string>("Mitarbeiter")
.HasColumnType("text");
b.Property<int?>("SanierungskonzeptID")
.HasColumnType("integer");
b.Property<DateTime>("ZeitStempel")
.HasColumnType("timestamp without time zone");
b.HasKey("ID");
b.HasIndex("FahrzeugID");
b.HasIndex("GueteschutzProtokolID");
b.HasIndex("LeistungsverzeichnisPositionID");
b.HasIndex("SanierungskonzeptID");
b.ToTable("Taetigkeiten");
});
modelBuilder.Entity("KanSan.Base.Models.HutprofilSan", b =>
{
b.HasBaseType("KanSan.Base.Models.GueteschutzProtokoll");
b.Property<DateTime>("AnpressenPacker")
.HasColumnType("timestamp without time zone");
b.Property<bool>("Auffaelligkeit")
.HasColumnType("boolean");
b.Property<DateTime>("EntlueftenPacker")
.HasColumnType("timestamp without time zone");
b.Property<bool>("FixierungAufPacker")
.HasColumnType("boolean");
b.Property<int>("Flaechengewicht")
.HasColumnType("integer");
b.Property<string>("HarzMaterialArt")
.HasColumnType("text");
b.Property<string>("HarzmaterialHersteller")
.HasColumnType("text");
b.Property<bool>("InnenBeschichtung")
.HasColumnType("boolean");
b.Property<string>("KompACharge")
.HasColumnType("text");
b.Property<string>("KompBCharge")
.HasColumnType("text");
b.Property<DateTime>("MischZeit")
.HasColumnType("timestamp without time zone");
b.Property<double>("PackerDruckAnfang")
.HasColumnType("double precision");
b.Property<double>("PackerDruckEnde")
.HasColumnType("double precision");
b.Property<string>("RohrDN")
.HasColumnType("text");
b.Property<double>("SeitenKanalDruckAnfang")
.HasColumnType("double precision");
b.Property<double>("SeitenKanalDruckEnde")
.HasColumnType("double precision");
b.Property<string>("TraegerCharge")
.HasColumnType("text");
b.Property<string>("TraegerHersteller")
.HasColumnType("text");
b.Property<string>("TraegerKurzliner")
.HasColumnType("text");
b.Property<string>("Winkel")
.HasColumnType("text");
b.HasDiscriminator().HasValue("HutprofilSan");
});
modelBuilder.Entity("KanSan.Base.Models.KurzlinerSan", b =>
{
b.HasBaseType("KanSan.Base.Models.GueteschutzProtokoll");
b.Property<DateTime>("AnpressenPacker")
.HasColumnType("timestamp without time zone");
b.Property<bool>("Auffaelligkeit")
.HasColumnType("boolean");
b.Property<double>("Breit")
.HasColumnType("double precision");
b.Property<DateTime>("EntlueftenPacker")
.HasColumnType("timestamp without time zone");
b.Property<bool>("FixierungAufPacker")
.HasColumnType("boolean");
b.Property<int>("Flaechengewicht")
.HasColumnType("integer");
b.Property<string>("HarzMaterialArt")
.HasColumnType("text");
b.Property<string>("HarzmaterialHersteller")
.HasColumnType("text");
b.Property<string>("KompACharge")
.HasColumnType("text");
b.Property<string>("KompBCharge")
.HasColumnType("text");
b.Property<double>("Lang")
.HasColumnType("double precision");
b.Property<DateTime>("MischZeit")
.HasColumnType("timestamp without time zone");
b.Property<double>("PackerDruckAnfang")
.HasColumnType("double precision");
b.Property<double>("PackerDruckEnde")
.HasColumnType("double precision");
b.Property<string>("TraegerCharge")
.HasColumnType("text");
b.Property<string>("TraegerHersteller")
.HasColumnType("text");
b.Property<string>("TraegerKurzliner")
.HasColumnType("text");
b.HasDiscriminator().HasValue("KurzlinerSan");
});
modelBuilder.Entity("KanSan.Base.Models.Baustelle", b =>
{
b.HasOne("KanSan.Base.Models.Projekt", "Projekt")
.WithMany()
.HasForeignKey("ProjektID");
});
modelBuilder.Entity("KanSan.Base.Models.BaustelleLeistungsverzeichnisReferenz", b =>
{
b.HasOne("KanSan.Base.Models.Baustelle", "Baustelle")
.WithMany()
.HasForeignKey("BaustelleID");
b.HasOne("KanSan.Base.Models.LeistungsverzeichnisPosition", "LVPosition")
.WithMany()
.HasForeignKey("LVPositionID");
});
modelBuilder.Entity("KanSan.Base.Models.GueteschutzProtokoll", b =>
{
b.HasOne("KanSan.Base.Models.Schaeden", "SchadPosition")
.WithMany()
.HasForeignKey("SchadPositionID");
});
modelBuilder.Entity("KanSan.Base.Models.Projekt", b =>
{
b.HasOne("KanSan.Base.Models.Kunde", "Kunde")
.WithMany("Baustellen")
.HasForeignKey("KundeID");
});
modelBuilder.Entity("KanSan.Base.Models.Schaeden", b =>
{
b.HasOne("KanSan.Base.Models.Sanierungskonzept", "Sanierungskonzept")
.WithMany()
.HasForeignKey("SanierungskonzeptID");
b.HasOne("KanSan.Base.Models.Sewer", "Sewer")
.WithMany("Schaeden")
.HasForeignKey("SewerID");
});
modelBuilder.Entity("KanSan.Base.Models.Sewer", b =>
{
b.HasOne("KanSan.Base.Models.Baustelle", "Baustelle")
.WithMany("Kanaele")
.HasForeignKey("BaustelleID");
b.HasOne("KanSan.Base.Models.SewerPoint", "PunktOben")
.WithMany()
.HasForeignKey("PunktObenID");
b.HasOne("KanSan.Base.Models.SewerPoint", "PunktUnten")
.WithMany()
.HasForeignKey("PunktUntenID");
});
modelBuilder.Entity("KanSan.Base.Models.Taetigkeiten", b =>
{
b.HasOne("KanSan.Base.Models.Fahrzeug", "Fahrzeug")
.WithMany()
.HasForeignKey("FahrzeugID");
b.HasOne("KanSan.Base.Models.GueteschutzProtokoll", "GueteschutzProtokol")
.WithMany()
.HasForeignKey("GueteschutzProtokolID");
b.HasOne("KanSan.Base.Models.LeistungsverzeichnisPosition", "LeistungsverzeichnisPosition")
.WithMany()
.HasForeignKey("LeistungsverzeichnisPositionID");
b.HasOne("KanSan.Base.Models.Sanierungskonzept", "Sanierungskonzept")
.WithMany("Taetigkeiten")
.HasForeignKey("SanierungskonzeptID");
});
#pragma warning restore 612, 618
}
}
}

View File

@@ -0,0 +1,23 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace KanSan.Base.Migrations
{
public partial class HatGüteschutzprotokoll : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "HatGueteschutzProtokol",
table: "LeistungsverzeichnisPositionen",
nullable: false,
defaultValue: false);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "HatGueteschutzProtokol",
table: "LeistungsverzeichnisPositionen");
}
}
}

View File

@@ -184,6 +184,9 @@ namespace KanSan.Base.Migrations
b.Property<Guid>("GuidNr") b.Property<Guid>("GuidNr")
.HasColumnType("uuid"); .HasColumnType("uuid");
b.Property<bool>("HatGueteschutzProtokol")
.HasColumnType("boolean");
b.Property<string>("Positionsnummer") b.Property<string>("Positionsnummer")
.HasColumnType("text"); .HasColumnType("text");

View File

@@ -11,5 +11,6 @@ namespace KanSan.Base.Models
public string Beschreibung { get; set; } public string Beschreibung { get; set; }
public string Einheit { get; set; } public string Einheit { get; set; }
public string Tag { get; set; } public string Tag { get; set; }
public bool HatGueteschutzProtokol { get; set; }
} }
} }

View File

@@ -0,0 +1,10 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace KanSan.ViewModel
{
class GüteschutzEditViewModel
{
}
}

View File

@@ -22,6 +22,10 @@
<ProjectReference Include="..\KanSan.Base\KanSan.Base.csproj" /> <ProjectReference Include="..\KanSan.Base\KanSan.Base.csproj" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<Folder Include="Güteschutz\" />
</ItemGroup>
<Target Name="PreBuild" BeforeTargets="PreBuildEvent"> <Target Name="PreBuild" BeforeTargets="PreBuildEvent">
<Exec Command="git rev-parse HEAD &gt;&quot;$(ProjectDir)\version.txt" /> <Exec Command="git rev-parse HEAD &gt;&quot;$(ProjectDir)\version.txt" />
</Target> </Target>

View File

@@ -19,9 +19,14 @@ namespace KanSan.ViewModel
decimal anzahl; decimal anzahl;
string bemerkung; string bemerkung;
Taetigkeiten model; Taetigkeiten model;
bool hatGueteschutzProtokoll = false;
LeistungsverzeichnisPosition leistungsverzeichnis; LeistungsverzeichnisPosition leistungsverzeichnis;
List<LeistungsverzeichnisPosition> lvPositionen; List<LeistungsverzeichnisPosition> lvPositionen;
#region getsetters #region getsetters
public bool HatGueteschutzProtokoll
{
get => hatGueteschutzProtokoll;
}
public Fahrzeug Fahrzeug public Fahrzeug Fahrzeug
{ {
get => fahrzeug; get => fahrzeug;

View File

@@ -55,6 +55,12 @@
<Compile Update="UI\Leistungsverzeichnis\UCLeistungsverzeichnisPosition.xaml.cs"> <Compile Update="UI\Leistungsverzeichnis\UCLeistungsverzeichnisPosition.xaml.cs">
<SubType>Code</SubType> <SubType>Code</SubType>
</Compile> </Compile>
<Compile Update="UI\Güteschutz\UCGüteschutzBerichtEdit.xaml.cs">
<SubType>Code</SubType>
</Compile>
<Compile Update="UI\UCHarzSanierung.xaml.cs">
<SubType>Code</SubType>
</Compile>
<Compile Update="UI\UCSewerMainWindow.xaml.cs"> <Compile Update="UI\UCSewerMainWindow.xaml.cs">
<SubType>Code</SubType> <SubType>Code</SubType>
</Compile> </Compile>
@@ -117,6 +123,12 @@
<Page Update="UI\Leistungsverzeichnis\UCLeistungsverzeichnisPosition.xaml"> <Page Update="UI\Leistungsverzeichnis\UCLeistungsverzeichnisPosition.xaml">
<SubType>Designer</SubType> <SubType>Designer</SubType>
</Page> </Page>
<Page Update="UI\Güteschutz\UCGüteschutzBerichtEdit.xaml">
<SubType>Designer</SubType>
</Page>
<Page Update="UI\UCHarzSanierung.xaml">
<SubType>Designer</SubType>
</Page>
<Page Update="UI\UCSewerMainWindow.xaml"> <Page Update="UI\UCSewerMainWindow.xaml">
<SubType>Designer</SubType> <SubType>Designer</SubType>
</Page> </Page>

View File

@@ -0,0 +1,59 @@
using KanSan.Base.Interfaces.UI;
using KanSan.Base.Models;
using System;
using System.Collections.Generic;
using System.Text;
namespace KanSan.SampleData
{
class GüteschutzEditViewModelSampleData : IGüteschutzEditViewModel
{
GueteschutzProtokoll sanierungsart;
public string StrasseName { get => "Nussbaumweg"; set => throw new NotImplementedException(); }
public string OrtTeilName { get => "Friesoythe"; set => throw new NotImplementedException(); }
public string Haltungsnummer { get => "SW01"; set => throw new NotImplementedException(); }
public string VonSchacht { get => "SW01"; set => throw new NotImplementedException(); }
public string Fließrichtung {
get
{
if (Haltungsnummer.Equals(VonSchacht)) return "IN";
if (Haltungsnummer.Equals(BisSchacht)) return "GEGEN";
return "Nicht Bekannt, eventuell Hochpunkt?";
}
}
public string BisSchacht { get => "SW02"; set => throw new NotImplementedException(); }
public int Durchmesser { get => 300; set => throw new NotImplementedException(); }
public bool RohrleitungInBetrieb { get => true; set => throw new NotImplementedException(); }
public bool HaltungGespült { get => true; set => throw new NotImplementedException(); }
public bool WasserHaltungdurchgeführt { get => false; set => throw new NotImplementedException(); }
public bool GenehmigungErforderlich { get => false; set => throw new NotImplementedException(); }
public bool BaustellenabsicherungErforderlich { get => true; set => throw new NotImplementedException(); }
public bool RissBruchScherbe { get => true; set => throw new NotImplementedException(); }
public bool WurzelInkrustationAblagerungen { get => false; set => throw new NotImplementedException(); }
public bool StutzenEinragend { get => false; set => throw new NotImplementedException(); }
public bool Infiltration { get => true; set => throw new NotImplementedException(); }
public bool VorbehandeltHD { get => true; set => throw new NotImplementedException(); }
public bool VorbehandeltMechanisch { get => false; set => throw new NotImplementedException(); }
public bool VorbehandeltFräser { get => true; set => throw new NotImplementedException(); }
public bool SchadStelleIstFäkalienFrei { get => true; set => throw new NotImplementedException(); }
public int AussenTemperatur { get => 11; set => throw new NotImplementedException(); }
public int KanalTemperatur { get => 12; set => throw new NotImplementedException(); }
public bool SichtKontrolleErforderlich { get => true; set => throw new NotImplementedException(); }
public bool BerichtErforderlich { get => true; set => throw new NotImplementedException(); }
public bool FilmErforderlich { get => false; set => throw new NotImplementedException(); }
public bool VideoErforderlich { get => false; set => throw new NotImplementedException(); }
public bool DichtheitErforderlich { get => false; set => throw new NotImplementedException(); }
public GueteschutzProtokoll Sanierungsart { get => sanierungsart; set => throw new NotImplementedException(); }
public IHarzSanierungViewModel HarzSanierung { get => harzSanierung; }
IHarzSanierungViewModel harzSanierung;
public GüteschutzEditViewModelSampleData()
{
HarzSanierungEditViewModelSampleData sample = new HarzSanierungEditViewModelSampleData();
harzSanierung = sample;
}
}
}

View File

@@ -0,0 +1,22 @@
using KanSan.Base.Interfaces.UI;
using System;
using System.Collections.Generic;
using System.Text;
namespace KanSan.SampleData
{
class HarzSanierungEditViewModelSampleData : IHarzSanierungViewModel
{
public string HarzMaterialHersteller { get => "Fluvius"; set => throw new NotImplementedException(); }
public string HarzMaterialArt { get => "02"; set => throw new NotImplementedException(); }
public string KompACharge { get => "2020202392"; set => throw new NotImplementedException(); }
public string KompBCharge { get => "29Z-3030"; set => throw new NotImplementedException(); }
public string TrägerHersteller { get => "Fluvius"; set => throw new NotImplementedException(); }
public string TrägerCharge { get => "3929292"; set => throw new NotImplementedException(); }
public bool Auffälligkeit { get => false; set => throw new NotImplementedException(); }
public bool FixierungAufPacker { get => true; set => throw new NotImplementedException(); }
public DateTime MischZeit { get => new DateTime(2020,05,09,15,09,00); set => throw new NotImplementedException(); }
public DateTime AnpressenPacker { get => new DateTime(2020,05,09,15,17,00); set => throw new NotImplementedException(); }
public DateTime EntlüftenPacker { get => new DateTime(2020,05,09,17,30,00); set => throw new NotImplementedException(); }
}
}

View File

@@ -0,0 +1,33 @@
using KanSan.Base.Enums;
using KanSan.Base.Interfaces.UI;
using KanSan.Base.Models;
using System;
using System.Collections.Generic;
using System.Text;
namespace KanSan.SampleData
{
class SanierungskonzeptListViewModelSampleData : ISanierungskonzeptListViewModel
{
List<Taetigkeiten> taetigkeiten = new List<Taetigkeiten>();
public ESanierung Sanierung => throw new NotImplementedException();
public List<Taetigkeiten> Taetigkeiten => taetigkeiten;
public bool CanAddNewSan => throw new NotImplementedException();
public SanierungskonzeptListViewModelSampleData()
{
for (int i = 0; i < 10; i++)
{
taetigkeiten.Add(new Base.Models.Taetigkeiten()
{
GuidNr = Guid.NewGuid(),
Anzahl = 2m,
Bemerkung = "Test"
}) ;
}
}
}
}

View File

@@ -0,0 +1,90 @@
<UserControl x:Class="KanSan.UI.UCGüteschutzBerichtEdit"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:self="clr-namespace:KanSan.ViewModel;assembly=KanSan.ViewModel"
xmlns:model="clr-namespace:KanSan.Base.Models;assembly=KanSan.Base"
xmlns:sd="clr-namespace:KanSan.SampleData"
xmlns:local="clr-namespace:KanSan.UI"
mc:Ignorable="d"
d:DesignHeight="700" d:DesignWidth="800">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="./../../my_controls.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<d:UserControl.DataContext>
<sd:GüteschutzEditViewModelSampleData />
</d:UserControl.DataContext>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
</Grid.RowDefinitions>
<Grid Grid.Row="0" Grid.Column="0">
<!-- Leitung Stammdaten-->
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<Label Content="Ort" />
<Label Grid.Row="1" Content="Strassename" />
<Label Grid.Row="2" Content="Haltungsnummer" />
<Label Grid.Row="3" Content="Von Schacht" />
<Label Grid.Row="4" Content="Nach Schacht" />
<Label Grid.Row="5" Content="Fließrichtung" />
<Label Grid.Row="6" Content="Durchmesser" />
<Label Grid.Row="7" Content="Material" />
<TextBox Grid.Row="0" Grid.Column="1" Text="{Binding OrtTeilName}"/>
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding StrasseName}" />
<TextBox Grid.Row="2" Grid.Column="1" Text="{Binding Haltungsnummer}" />
<TextBox Grid.Row="3" Grid.Column="1" Text="{Binding VonSchacht}" />
<TextBox Grid.Row="4" Grid.Column="1" Text="{Binding BisSchacht}" />
<Label Grid.Row="5" Grid.Column="1" Content="{Binding Fließrichtung}" />
<TextBox Grid.Row="6" Grid.Column="1" Text="{Binding Durchmesser}" />
<TextBox Grid.Row="7" Grid.Column="1" Text="{Binding Material}" />
</Grid>
<StackPanel Grid.Row="0" Grid.Column="1">
<CheckBox Style="{StaticResource checkBoxCircle}" IsChecked="{Binding HaltungGespült }" Grid.Row="0" Grid.Column="0" Content="Haltung Gespült"/>
<CheckBox Style="{StaticResource checkBoxCircle}" IsChecked="{Binding WasserHaltungdurchgeführt }" Grid.Row="1" Grid.Column="0" Content="Wasserhaltung Durchgeführt" />
<CheckBox Style="{StaticResource checkBoxCircle}" IsChecked="{Binding GenehmigungErforderlich }" Grid.Row="2" Grid.Column="0" Content="Baustellenabsicherung Erforderlich" />
<CheckBox Style="{StaticResource checkBoxCircle}" IsChecked="{Binding RohrleitungInBetrieb }" Grid.Row="3" Grid.Column="0" Content="Rohrleitung in Betrieb"/>
</StackPanel>
<StackPanel Grid.Row="1" Grid.Column="0">
<CheckBox IsChecked="{Binding RissBruchScherbe}" Style="{StaticResource checkBoxCircleSmall}" Content="RissBruchScherbe" />
<CheckBox IsChecked="{Binding WurzelInkrustationAblagerungen}" Style="{StaticResource checkBoxCircleSmall}" Content="WurzelInkrustationAblagerungen" />
<CheckBox IsChecked="{Binding StutzenEinragend }" Style="{StaticResource checkBoxCircleSmall}" Content="StutzenEinragend" />
<CheckBox IsChecked="{Binding Infiltration}" Style="{StaticResource checkBoxCircleSmall}" Content="Infiltration" />
<CheckBox IsChecked="{Binding VorbehandeltHD }" Style="{StaticResource checkBoxCircleSmall}" Content="VorbehandeltHD" />
<CheckBox IsChecked="{Binding VorbehandeltMechanisch }" Style="{StaticResource checkBoxCircleSmall}" Content="VorbehandeltMechanisch" />
<CheckBox IsChecked="{Binding VorbehandeltFräser }" Style="{StaticResource checkBoxCircleSmall}" Content="VorbehandeltFräser" />
<CheckBox IsChecked="{Binding SchadStelleIstFäkalienFrei }" Style="{StaticResource checkBoxCircleSmall}" Content="SchadStelleIstFäkalienFrei" />
<CheckBox IsChecked="{Binding SichtKontrolleErforderlich}" Style="{StaticResource checkBoxCircleSmall}" Content="SichtKontrolleErforderlich" />
<CheckBox IsChecked="{Binding BerichtErforderlich}" Style="{StaticResource checkBoxCircleSmall}" Content="BerichtErforderlich" />
<CheckBox IsChecked="{Binding FilmErforderlich }" Style="{StaticResource checkBoxCircleSmall}" Content="FilmErforderlich" />
<CheckBox IsChecked="{Binding VideoErforderlich}" Style="{StaticResource checkBoxCircleSmall}" Content="VideoErforderlich" />
<CheckBox IsChecked="{Binding DichtheitErforderlich }" Style="{StaticResource checkBoxCircleSmall}" Content="DichtheitErforderlich" />
</StackPanel>
<ContentControl Grid.Row="1" Content="{Binding Path=HarzSanierung}" ContentTemplate="{StaticResource SanierungViewModelDataTemplate}" Grid.ColumnSpan="2" Margin="365,0,0,0" />
</Grid>
</UserControl>

View File

@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace KanSan.UI
{
/// <summary>
/// Interaktionslogik für UCGüteschutzBerichtEdit.xaml
/// </summary>
public partial class UCGüteschutzBerichtEdit : UserControl
{
public UCGüteschutzBerichtEdit()
{
InitializeComponent();
}
}
}

View File

@@ -10,7 +10,7 @@
mc:Ignorable="d" mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800" Background="LightGray"> d:DesignHeight="450" d:DesignWidth="800" Background="LightGray">
<d:UserControl.DataContext> <d:UserControl.DataContext>
<sd:ObjekteEditViewModelSampleData GenehmigungErforderlich="True" /> <sd:ObjekteEditViewModelSampleData/>
</d:UserControl.DataContext> </d:UserControl.DataContext>
<UserControl.Resources> <UserControl.Resources>
<ResourceDictionary> <ResourceDictionary>

View File

@@ -6,8 +6,12 @@
xmlns:self="clr-namespace:KanSan.ViewModel;assembly=KanSan.ViewModel" xmlns:self="clr-namespace:KanSan.ViewModel;assembly=KanSan.ViewModel"
xmlns:model="clr-namespace:KanSan.Base.Models;assembly=KanSan.Base" xmlns:model="clr-namespace:KanSan.Base.Models;assembly=KanSan.Base"
xmlns:local="clr-namespace:KanSan.UI" xmlns:local="clr-namespace:KanSan.UI"
xmlns:sd="clr-namespace:KanSan.SampleData"
mc:Ignorable="d" mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800"> d:DesignHeight="450" d:DesignWidth="800">
<d:UserControl.DataContext>
<sd:SanierungskonzeptListViewModelSampleData />
</d:UserControl.DataContext>
<Grid> <Grid>
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition /> <RowDefinition />
@@ -18,7 +22,7 @@
<TreeView.Resources> <TreeView.Resources>
<DataTemplate DataType="{x:Type model:Taetigkeiten}"> <DataTemplate DataType="{x:Type model:Taetigkeiten}">
<StackPanel Orientation="Horizontal"> <StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding GuidNr}" /> <TextBlock Text="{Binding LeistungsverzeichnisPosition.Beschreibung}" />
</StackPanel> </StackPanel>
</DataTemplate> </DataTemplate>
</TreeView.Resources> </TreeView.Resources>

View File

@@ -25,7 +25,7 @@
</Setter> </Setter>
</Style> </Style>
</UserControl.Resources> </UserControl.Resources>
<Grid> <Grid Margin="0,0,0,-26">
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition /> <ColumnDefinition />
<ColumnDefinition /> <ColumnDefinition />
@@ -38,6 +38,7 @@
<RowDefinition Height="39" /> <RowDefinition Height="39" />
<RowDefinition Height="39" /> <RowDefinition Height="39" />
<RowDefinition Height="39" /> <RowDefinition Height="39" />
<RowDefinition Height="39" />
</Grid.RowDefinitions> </Grid.RowDefinitions>
<Label Grid.Row="0" Grid.Column="0" Content="Mitarbeiter" /> <Label Grid.Row="0" Grid.Column="0" Content="Mitarbeiter" />
@@ -61,6 +62,7 @@
<TextBox Grid.Row="4" Grid.Column="1" Text="{Binding Anzahl}" /> <TextBox Grid.Row="4" Grid.Column="1" Text="{Binding Anzahl}" />
<TextBox Grid.Row="5" Grid.Column="1" Text="{Binding Bemerkung}"/> <TextBox Grid.Row="5" Grid.Column="1" Text="{Binding Bemerkung}"/>
<Button Grid.Row="6" Grid.ColumnSpan="2" Content="Speichern" Name="Speichern" Click="Speichern_Click" /> <Button Grid.Row="6" Grid.ColumnSpan="2" Content="Speichern" Name="Speichern" Click="Speichern_Click" />
<Button Grid.Row="7" Grid.ColumnSpan="2" Content="Güteschutzprotokoll" IsEnabled="{Binding HatGueteschutzProtokoll}" />
</Grid> </Grid>
</UserControl> </UserControl>

View File

@@ -0,0 +1,60 @@
<UserControl x:Class="KanSan.UI.UCHarzSanierung"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:KanSan.UI"
mc:Ignorable="d"
xmlns:sd="clr-namespace:KanSan.SampleData"
d:DesignHeight="450" d:DesignWidth="800">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="./../my_controls.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<d:UserControl.DataContext>
<sd:HarzSanierungEditViewModelSampleData />
</d:UserControl.DataContext>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<Label Grid.Row="0" Grid.Column="0" Content="Harz Hersteller" />
<Label Grid.Row="1" Grid.Column="0" Content="Trägermaterial Hersteller" />
<Label Grid.Row="2" Grid.Column="0" Content="Komponente A Charge" />
<Label Grid.Row="3" Grid.Column="0" Content="Komponente B Charge" />
<Label Grid.Row="4" Grid.Column="0" Content="Trägermaterial Charge" />
<Label Grid.Row="5" Grid.Column="0" Content="Anfang Mischen" />
<Label Grid.Row="6" Grid.Column="0" Content="Anfang anpressen vom Packer" />
<Label Grid.Row="7" Grid.Column="0" Content="Entlüften vom Packer" />
<TextBox Grid.Row="0" Grid.Column="1" Text="{Binding HarzMaterialHersteller }" />
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding TrägerHersteller }" />
<TextBox Grid.Row="2" Grid.Column="1" Text="{Binding KompACharge }" />
<TextBox Grid.Row="3" Grid.Column="1" Text="{Binding KompBCharge }" />
<TextBox Grid.Row="4" Grid.Column="1" Text="{Binding TrägerCharge }" />
<TextBox Grid.Row="5" Grid.Column="1" Text="{Binding MischZeit }" />
<TextBox Grid.Row="6" Grid.Column="1" Text="{Binding AnpressenPacker }" />
<TextBox Grid.Row="7" Grid.Column="1" Text="{Binding EntlüftenPacker}" />
<StackPanel Grid.Row="8" Grid.ColumnSpan="2">
<CheckBox IsChecked="{Binding FixierungAufPacker}" Style="{StaticResource checkBoxCircleSmall}" Content="Fixierung auf Packer OK" />
<CheckBox IsChecked="{Binding Auffälligkeit}" Style="{StaticResource checkBoxCircleSmall}" Content="Auffälligkeiten bei der Verarbeitung" />
</StackPanel>
</Grid>
</UserControl>

View File

@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace KanSan.UI
{
/// <summary>
/// Interaktionslogik für UCHarzSanierung.xaml
/// </summary>
public partial class UCHarzSanierung : UserControl
{
public UCHarzSanierung()
{
InitializeComponent();
}
}
}

View File

@@ -1,6 +1,11 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:KanSan"> xmlns:local="clr-namespace:KanSan"
xmlns:l="clr-namespace:KanSan.UI">
<DataTemplate x:Key="SanierungViewModelDataTemplate" DataType="{x:Type l:UCHarzSanierung }">
<l:UCHarzSanierung />
</DataTemplate>
<Style x:Key="ToggelButtonList" TargetType="{x:Type ToggleButton}"> <Style x:Key="ToggelButtonList" TargetType="{x:Type ToggleButton}">
<Setter Property="FrameworkElement.OverridesDefaultStyle" Value="True"/> <Setter Property="FrameworkElement.OverridesDefaultStyle" Value="True"/>
<Setter Property="FrameworkElement.FocusVisualStyle" Value="{x:Null}"/> <Setter Property="FrameworkElement.FocusVisualStyle" Value="{x:Null}"/>
@@ -68,7 +73,7 @@
<Setter Property="Content" Value="" /> <Setter Property="Content" Value="" />
<Setter Property="IsEnabled" Value="{Binding Change}" /> <Setter Property="IsEnabled" Value="{Binding Change}" />
<Setter Property="FrameworkElement.FocusVisualStyle" Value="{x:Null}" /> <Setter Property="FrameworkElement.FocusVisualStyle" Value="{x:Null}" />
<Setter Property="Foreground" Value="#FFFFFFFF" /> <Setter Property="Foreground" Value="Black" />
<Setter Property="Template"> <Setter Property="Template">
<Setter.Value> <Setter.Value>
<ControlTemplate TargetType="{x:Type CheckBox}"> <ControlTemplate TargetType="{x:Type CheckBox}">