Leistungsverzeichnis hinzugefügt
This commit is contained in:
@@ -15,7 +15,7 @@ namespace KanSan.Base.Interfaces
|
||||
IRepository<Schaeden> SchaedenRepository { get; }
|
||||
IRepository<Sanierungskonzept> SanierungskonzeptRepository { get; }
|
||||
IRepository<Taetigkeiten> TaetigkeitenRepository { get; }
|
||||
IRepository<LeitungsverzeichnisPosition> LeistungsverzeichnisRepository { get; }
|
||||
IRepository<LeistungsverzeichnisPosition> LeistungsverzeichnisRepository { get; }
|
||||
IRepository<Fahrzeug> FahrzeugRepository { get; }
|
||||
void Commit();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
using KanSan.Base.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace KanSan.Base.Interfaces.UI
|
||||
{
|
||||
public interface ILeistungsverzeichnisBaustelleViewModel
|
||||
{
|
||||
public List<Baustelle> Baustellen { get; }
|
||||
public List<LeistungsverzeichnisPosition> LeistungsverzeichnisPositionen { get; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using KanSan.Base.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace KanSan.Base.Interfaces.UI
|
||||
{
|
||||
public interface ILeistungsverzeichnisPositionListViewModel
|
||||
{
|
||||
List<LeistungsverzeichnisPosition> LVPositionen { get; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace KanSan.Base.Interfaces.UI
|
||||
{
|
||||
public interface ILeistungsverzeichnisPositionViewModel
|
||||
{
|
||||
public string Positionsnummer { get; set; }
|
||||
public string Beschreibung { get; set; }
|
||||
public string Einheit { get; set; }
|
||||
public string Tag { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -13,6 +13,6 @@ namespace KanSan.Base.Interfaces.UI
|
||||
bool Erledigt { get; }
|
||||
decimal Anzahl { get; set; }
|
||||
string Bemerkung { get; set; }
|
||||
LeitungsverzeichnisPosition Leistungsverzeichnis { get; set; }
|
||||
LeistungsverzeichnisPosition Leistungsverzeichnis { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,8 @@ namespace KanSan.Base
|
||||
public DbSet<Schaeden> Schaeden { get; set; }
|
||||
public DbSet<Sanierungskonzept> Sanierungskonzept { get; set; }
|
||||
public DbSet<Taetigkeiten> Taetigkeiten { get; set; }
|
||||
public DbSet<LeitungsverzeichnisPosition> LeitungsverzeichnisPositionen { get; set; }
|
||||
public DbSet<LeistungsverzeichnisPosition> LeistungsverzeichnisPositionen { get; set; }
|
||||
public DbSet<BaustelleLeistungsverzeichnisReferenz> LeistungsverzeichnisBaustellen { get; set; }
|
||||
public DbSet<Fahrzeug> Fahrzeuge { get; set; }
|
||||
public DbSet<KurzlinerSan> KurzlinerSanierung { get; set; }
|
||||
public DbSet<HutprofilSan> HutprofilSanierung { get; set; }
|
||||
|
||||
598
KanSan.Base/Migrations/20200411095516_LeistungsverzeichnisUpdate.Designer.cs
generated
Normal file
598
KanSan.Base/Migrations/20200411095516_LeistungsverzeichnisUpdate.Designer.cs
generated
Normal file
@@ -0,0 +1,598 @@
|
||||
// <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("20200411095516_LeistungsverzeichnisUpdate")]
|
||||
partial class LeistungsverzeichnisUpdate
|
||||
{
|
||||
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.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<string>("Positionsnummer")
|
||||
.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?>("LeitungsverzeichnisPositionID")
|
||||
.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("LeitungsverzeichnisPositionID");
|
||||
|
||||
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.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", "LeitungsverzeichnisPosition")
|
||||
.WithMany()
|
||||
.HasForeignKey("LeitungsverzeichnisPositionID");
|
||||
|
||||
b.HasOne("KanSan.Base.Models.Sanierungskonzept", "Sanierungskonzept")
|
||||
.WithMany("Taetigkeiten")
|
||||
.HasForeignKey("SanierungskonzeptID");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
namespace KanSan.Base.Migrations
|
||||
{
|
||||
public partial class LeistungsverzeichnisUpdate : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_Taetigkeiten_LeitungsverzeichnisPositionen_Leitungsverzeich~",
|
||||
table: "Taetigkeiten");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "LeitungsverzeichnisPositionen");
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "LeistungsverzeichnisPositionen",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<int>(nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
GuidNr = table.Column<Guid>(nullable: false),
|
||||
Positionsnummer = table.Column<string>(nullable: true),
|
||||
Beschreibung = table.Column<string>(nullable: true),
|
||||
Einheit = table.Column<string>(nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_LeistungsverzeichnisPositionen", x => x.ID);
|
||||
});
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_Taetigkeiten_LeistungsverzeichnisPositionen_Leitungsverzeic~",
|
||||
table: "Taetigkeiten",
|
||||
column: "LeitungsverzeichnisPositionID",
|
||||
principalTable: "LeistungsverzeichnisPositionen",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_Taetigkeiten_LeistungsverzeichnisPositionen_Leitungsverzeic~",
|
||||
table: "Taetigkeiten");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "LeistungsverzeichnisPositionen");
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "LeitungsverzeichnisPositionen",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
Beschreibung = table.Column<string>(type: "text", nullable: true),
|
||||
Einheit = table.Column<string>(type: "text", nullable: true),
|
||||
GuidNr = table.Column<Guid>(type: "uuid", nullable: false),
|
||||
Positionsnummer = table.Column<string>(type: "text", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_LeitungsverzeichnisPositionen", x => x.ID);
|
||||
});
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_Taetigkeiten_LeitungsverzeichnisPositionen_Leitungsverzeich~",
|
||||
table: "Taetigkeiten",
|
||||
column: "LeitungsverzeichnisPositionID",
|
||||
principalTable: "LeitungsverzeichnisPositionen",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
}
|
||||
}
|
||||
}
|
||||
601
KanSan.Base/Migrations/20200411101149_LeistungsverzeichnisTag.Designer.cs
generated
Normal file
601
KanSan.Base/Migrations/20200411101149_LeistungsverzeichnisTag.Designer.cs
generated
Normal file
@@ -0,0 +1,601 @@
|
||||
// <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("20200411101149_LeistungsverzeichnisTag")]
|
||||
partial class LeistungsverzeichnisTag
|
||||
{
|
||||
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.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<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?>("LeitungsverzeichnisPositionID")
|
||||
.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("LeitungsverzeichnisPositionID");
|
||||
|
||||
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.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", "LeitungsverzeichnisPosition")
|
||||
.WithMany()
|
||||
.HasForeignKey("LeitungsverzeichnisPositionID");
|
||||
|
||||
b.HasOne("KanSan.Base.Models.Sanierungskonzept", "Sanierungskonzept")
|
||||
.WithMany("Taetigkeiten")
|
||||
.HasForeignKey("SanierungskonzeptID");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace KanSan.Base.Migrations
|
||||
{
|
||||
public partial class LeistungsverzeichnisTag : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "Tag",
|
||||
table: "LeistungsverzeichnisPositionen",
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Tag",
|
||||
table: "LeistungsverzeichnisPositionen");
|
||||
}
|
||||
}
|
||||
}
|
||||
637
KanSan.Base/Migrations/20200411101442_LeistungsverzeichnisReferenz.Designer.cs
generated
Normal file
637
KanSan.Base/Migrations/20200411101442_LeistungsverzeichnisReferenz.Designer.cs
generated
Normal file
@@ -0,0 +1,637 @@
|
||||
// <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("20200411101442_LeistungsverzeichnisReferenz")]
|
||||
partial class LeistungsverzeichnisReferenz
|
||||
{
|
||||
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<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?>("LeitungsverzeichnisPositionID")
|
||||
.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("LeitungsverzeichnisPositionID");
|
||||
|
||||
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", "LeitungsverzeichnisPosition")
|
||||
.WithMany()
|
||||
.HasForeignKey("LeitungsverzeichnisPositionID");
|
||||
|
||||
b.HasOne("KanSan.Base.Models.Sanierungskonzept", "Sanierungskonzept")
|
||||
.WithMany("Taetigkeiten")
|
||||
.HasForeignKey("SanierungskonzeptID");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
namespace KanSan.Base.Migrations
|
||||
{
|
||||
public partial class LeistungsverzeichnisReferenz : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "LeistungsverzeichnisBaustellen",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<int>(nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
GuidNr = table.Column<Guid>(nullable: false),
|
||||
BaustelleID = table.Column<int>(nullable: true),
|
||||
LVPositionID = table.Column<int>(nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_LeistungsverzeichnisBaustellen", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_LeistungsverzeichnisBaustellen_Baustelle_BaustelleID",
|
||||
column: x => x.BaustelleID,
|
||||
principalTable: "Baustelle",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_LeistungsverzeichnisBaustellen_LeistungsverzeichnisPosition~",
|
||||
column: x => x.LVPositionID,
|
||||
principalTable: "LeistungsverzeichnisPositionen",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_LeistungsverzeichnisBaustellen_BaustelleID",
|
||||
table: "LeistungsverzeichnisBaustellen",
|
||||
column: "BaustelleID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_LeistungsverzeichnisBaustellen_LVPositionID",
|
||||
table: "LeistungsverzeichnisBaustellen",
|
||||
column: "LVPositionID");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "LeistungsverzeichnisBaustellen");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -45,6 +45,31 @@ namespace KanSan.Base.Migrations
|
||||
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")
|
||||
@@ -143,7 +168,7 @@ namespace KanSan.Base.Migrations
|
||||
b.ToTable("Kunden");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("KanSan.Base.Models.LeitungsverzeichnisPosition", b =>
|
||||
modelBuilder.Entity("KanSan.Base.Models.LeistungsverzeichnisPosition", b =>
|
||||
{
|
||||
b.Property<int>("ID")
|
||||
.ValueGeneratedOnAdd()
|
||||
@@ -162,9 +187,12 @@ namespace KanSan.Base.Migrations
|
||||
b.Property<string>("Positionsnummer")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Tag")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.HasKey("ID");
|
||||
|
||||
b.ToTable("LeitungsverzeichnisPositionen");
|
||||
b.ToTable("LeistungsverzeichnisPositionen");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("KanSan.Base.Models.Projekt", b =>
|
||||
@@ -532,6 +560,17 @@ namespace KanSan.Base.Migrations
|
||||
.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")
|
||||
@@ -582,7 +621,7 @@ namespace KanSan.Base.Migrations
|
||||
.WithMany()
|
||||
.HasForeignKey("GueteschutzProtokolID");
|
||||
|
||||
b.HasOne("KanSan.Base.Models.LeitungsverzeichnisPosition", "LeitungsverzeichnisPosition")
|
||||
b.HasOne("KanSan.Base.Models.LeistungsverzeichnisPosition", "LeitungsverzeichnisPosition")
|
||||
.WithMany()
|
||||
.HasForeignKey("LeitungsverzeichnisPositionID");
|
||||
|
||||
|
||||
15
KanSan.Base/Models/BaustelleLeistungsverzeichnisReferenz.cs
Normal file
15
KanSan.Base/Models/BaustelleLeistungsverzeichnisReferenz.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using KanSan.Base.Interfaces;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace KanSan.Base.Models
|
||||
{
|
||||
public class BaustelleLeistungsverzeichnisReferenz : IDatabaseEntry
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public Guid GuidNr { get; set; }
|
||||
public Baustelle Baustelle { get; set; }
|
||||
public LeistungsverzeichnisPosition LVPosition { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -3,12 +3,13 @@ using System;
|
||||
|
||||
namespace KanSan.Base.Models
|
||||
{
|
||||
public class LeitungsverzeichnisPosition : IDatabaseEntry
|
||||
public class LeistungsverzeichnisPosition : IDatabaseEntry
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public Guid GuidNr { get; set; }
|
||||
public string Positionsnummer { get; set; }
|
||||
public string Beschreibung { get; set; }
|
||||
public string Einheit { get; set; }
|
||||
public string Tag { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -12,7 +12,7 @@ namespace KanSan.Base.Models
|
||||
public string Mitarbeiter { get; set; }
|
||||
public DateTime ZeitStempel { get; set; }
|
||||
//public decimal Position { get; set; }
|
||||
public LeitungsverzeichnisPosition LeitungsverzeichnisPosition { get; set; }
|
||||
public LeistungsverzeichnisPosition LeitungsverzeichnisPosition { get; set; }
|
||||
public decimal Anzahl { get; set; }
|
||||
public GueteschutzProtokoll GueteschutzProtokol { get; set; }
|
||||
public string Bemerkung { get; set; }
|
||||
|
||||
@@ -17,10 +17,11 @@ namespace KanSan.Base
|
||||
private BaseRepository<Schaeden> _schaeden;
|
||||
private BaseRepository<Sanierungskonzept> _sanierungskonzepte;
|
||||
private BaseRepository<Taetigkeiten> _taetigkeiten;
|
||||
private BaseRepository<LeitungsverzeichnisPosition> _leistungsverzeichnisPositionen;
|
||||
private BaseRepository<LeistungsverzeichnisPosition> _leistungsverzeichnisPositionen;
|
||||
private BaseRepository<Fahrzeug> _fahrzeuge;
|
||||
private BaseRepository<KurzlinerSan> _kurzliner;
|
||||
private BaseRepository<HutprofilSan> _hutprofil;
|
||||
private BaseRepository<BaustelleLeistungsverzeichnisReferenz> _leistungsverzeichnisRef;
|
||||
|
||||
public UnitOfWork(KanSanContext dbContext)
|
||||
{
|
||||
@@ -29,27 +30,18 @@ namespace KanSan.Base
|
||||
}
|
||||
|
||||
public IRepository<Projekt> ProjekteRepository => _projekte ?? (_projekte = new BaseRepository<Projekt>(_dbContext));
|
||||
|
||||
public IRepository<Kunde> KundenRepository => _kunden ?? (_kunden = new BaseRepository<Kunde>(_dbContext));
|
||||
|
||||
public IRepository<Baustelle> BaustelleRepository => _baustellen ?? (_baustellen = new BaseRepository<Baustelle>(_dbContext));
|
||||
|
||||
public IRepository<Sewer> KanaeleRepository => _kanaele ?? (_kanaele = new BaseRepository<Sewer>(_dbContext));
|
||||
|
||||
public IRepository<SewerPoint> ObjekteRepository => _objekte ?? (_objekte = new BaseRepository<SewerPoint>(_dbContext));
|
||||
|
||||
public IRepository<Schaeden> SchaedenRepository => _schaeden ?? (_schaeden = new BaseRepository<Schaeden>(_dbContext));
|
||||
|
||||
public IRepository<Sanierungskonzept> SanierungskonzeptRepository => _sanierungskonzepte ?? (_sanierungskonzepte = new BaseRepository<Sanierungskonzept>(_dbContext));
|
||||
|
||||
public IRepository<Taetigkeiten> TaetigkeitenRepository => _taetigkeiten ?? (_taetigkeiten = new BaseRepository<Taetigkeiten>(_dbContext));
|
||||
|
||||
public IRepository<LeitungsverzeichnisPosition> LeistungsverzeichnisRepository => _leistungsverzeichnisPositionen ?? (_leistungsverzeichnisPositionen = new BaseRepository<LeitungsverzeichnisPosition>(_dbContext));
|
||||
|
||||
public IRepository<LeistungsverzeichnisPosition> LeistungsverzeichnisRepository => _leistungsverzeichnisPositionen ?? (_leistungsverzeichnisPositionen = new BaseRepository<LeistungsverzeichnisPosition>(_dbContext));
|
||||
public IRepository<Fahrzeug> FahrzeugRepository => _fahrzeuge ?? (_fahrzeuge = new BaseRepository<Fahrzeug>(_dbContext));
|
||||
public IRepository<KurzlinerSan> KurzlinerRepository => _kurzliner ?? (_kurzliner = new BaseRepository<KurzlinerSan>(_dbContext));
|
||||
public IRepository<HutprofilSan> HutprofilRepository => _hutprofil ?? (_hutprofil = new BaseRepository<HutprofilSan>(_dbContext));
|
||||
|
||||
public IRepository<BaustelleLeistungsverzeichnisReferenz> LeistungsverzeichnisReferenz => _leistungsverzeichnisRef ?? (_leistungsverzeichnisRef = new BaseRepository<BaustelleLeistungsverzeichnisReferenz>(_dbContext));
|
||||
public void Commit()
|
||||
{
|
||||
_dbContext.SaveChanges();
|
||||
|
||||
@@ -16,6 +16,11 @@ namespace KanSan.ViewModel
|
||||
string ortTeil;
|
||||
string baustelleNummer;
|
||||
|
||||
public Baustelle Baustelle
|
||||
{
|
||||
get => baustelle;
|
||||
}
|
||||
|
||||
public string OrtTeil
|
||||
{
|
||||
get => ortTeil;
|
||||
|
||||
@@ -22,6 +22,10 @@
|
||||
<ProjectReference Include="..\KanSan.Base\KanSan.Base.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Leistungsverzeichnis\" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
|
||||
<Exec Command="git rev-parse HEAD >"$(ProjectDir)\version.txt" />
|
||||
</Target>
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
using KanSan.Base;
|
||||
using KanSan.Base.Interfaces;
|
||||
using KanSan.Base.Interfaces.UI;
|
||||
using KanSan.Base.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace KanSan.ViewModel
|
||||
{
|
||||
public class LeistungsverzeichnisPositionenListViewModel : ILeistungsverzeichnisPositionListViewModel
|
||||
{
|
||||
IUnitOfWork unitOfWork = new UnitOfWork(new KanSanContext());
|
||||
List<LeistungsverzeichnisPosition> lvPositionen;
|
||||
public List<LeistungsverzeichnisPosition> LVPositionen => lvPositionen;
|
||||
|
||||
public LeistungsverzeichnisPositionenListViewModel(string tag)
|
||||
{
|
||||
if(tag == string.Empty)
|
||||
{
|
||||
lvPositionen = unitOfWork.LeistungsverzeichnisRepository.Get().ToList();
|
||||
}
|
||||
else
|
||||
{
|
||||
lvPositionen = unitOfWork.LeistungsverzeichnisRepository.Get(x => x.Tag.Equals(tag)).ToList();
|
||||
if (lvPositionen == null) lvPositionen = new List<LeistungsverzeichnisPosition>();
|
||||
}
|
||||
}
|
||||
|
||||
public LeistungsverzeichnisPosition NeueLeistungsverzeichnisPosition()
|
||||
{
|
||||
Guid guid = Guid.NewGuid();
|
||||
LeistungsverzeichnisPosition leistungsverzeichnisPosition = new LeistungsverzeichnisPosition()
|
||||
{
|
||||
GuidNr = guid,
|
||||
};
|
||||
unitOfWork.LeistungsverzeichnisRepository.Insert(leistungsverzeichnisPosition);
|
||||
unitOfWork.Commit();
|
||||
return leistungsverzeichnisPosition;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ namespace KanSan.ViewModel
|
||||
decimal anzahl;
|
||||
string bemerkung;
|
||||
Taetigkeiten model;
|
||||
LeitungsverzeichnisPosition leistungsverzeichnis;
|
||||
LeistungsverzeichnisPosition leistungsverzeichnis;
|
||||
#region getsetters
|
||||
public Fahrzeug Fahrzeug
|
||||
{
|
||||
@@ -71,7 +71,7 @@ namespace KanSan.ViewModel
|
||||
OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
public LeitungsverzeichnisPosition Leistungsverzeichnis
|
||||
public LeistungsverzeichnisPosition Leistungsverzeichnis
|
||||
{
|
||||
get => leistungsverzeichnis;
|
||||
set
|
||||
|
||||
@@ -7,6 +7,9 @@
|
||||
</ApplicationDefinition>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Update="UI\UCLeistungsverzeichnisPositionenBaustelle.xaml.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Update="UI\Objekte\FrmNewObjekt.xaml.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
@@ -46,6 +49,12 @@
|
||||
<Compile Update="UI\SanMaßnahmen\UCSanMaßnahmenList.xaml.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Update="UI\Leistungsverzeichnis\UCLeistungsverzeichnisPosList.xaml.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Update="UI\UCLeistungsverzeichnisPosition.xaml.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Update="UI\UCSewerMainWindow.xaml.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
@@ -60,6 +69,9 @@
|
||||
<Page Update="my_controls.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Update="UI\UCLeistungsverzeichnisPositionenBaustelle.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Update="UI\Objekte\FrmNewObjekt.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
@@ -99,6 +111,12 @@
|
||||
<Page Update="UI\SanMaßnahmen\UCSanMaßnahmenList.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Update="UI\Leistungsverzeichnis\UCLeistungsverzeichnisPosList.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Update="UI\UCLeistungsverzeichnisPosition.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Update="UI\UCSewerMainWindow.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
|
||||
@@ -37,7 +37,10 @@ namespace KanSan
|
||||
{
|
||||
InitializeComponent();
|
||||
this.DataContext = new MainWindowViewModel();
|
||||
|
||||
#if DEBUG
|
||||
System.Diagnostics.PresentationTraceSources.DataBindingSource.Switch.Level = SourceLevels.Critical;
|
||||
#endif
|
||||
|
||||
UCKundeList = new UI.UCKundeList();
|
||||
UCKundeList.KundeAdded += UCKundeList_KundeAdded;
|
||||
UCKundeList.KundeSelect += UCKundeList_KundeSelect;
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
using KanSan.Base.Interfaces.UI;
|
||||
using KanSan.Base.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace KanSan.SampleData
|
||||
{
|
||||
class LeistungsverzeichnisBaustelleViewModelSampleData : ILeistungsverzeichnisBaustelleViewModel
|
||||
{
|
||||
List<Baustelle> baustellen = new List<Baustelle>();
|
||||
List<LeistungsverzeichnisPosition> leistungsverzeichnisPositionen = new List<LeistungsverzeichnisPosition>();
|
||||
|
||||
public List<Baustelle> Baustellen => baustellen;
|
||||
public List<LeistungsverzeichnisPosition> LeistungsverzeichnisPositionen => leistungsverzeichnisPositionen;
|
||||
|
||||
public LeistungsverzeichnisBaustelleViewModelSampleData()
|
||||
{
|
||||
baustellen.Add(new Baustelle()
|
||||
{
|
||||
BaustelleNummer = "0192",
|
||||
OrtTeil = "Oldenburg",
|
||||
});
|
||||
|
||||
for (int i = 0; i < 5; i++)
|
||||
{
|
||||
leistungsverzeichnisPositionen.Add(new LeistungsverzeichnisPosition()
|
||||
{
|
||||
Beschreibung = "TV x " + i,
|
||||
Einheit = "M",
|
||||
Positionsnummer = "1.0.3."+i
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
28
KanSan/SampleData/LeistungsverzeichnisListSampleData.cs
Normal file
28
KanSan/SampleData/LeistungsverzeichnisListSampleData.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using KanSan.Base.Interfaces.UI;
|
||||
using KanSan.Base.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace KanSan.SampleData
|
||||
{
|
||||
class LeistungsverzeichnisListSampleData : ILeistungsverzeichnisPositionListViewModel
|
||||
{
|
||||
List<LeistungsverzeichnisPosition> lvPositionen = new List<LeistungsverzeichnisPosition>();
|
||||
public List<LeistungsverzeichnisPosition> LVPositionen => lvPositionen;
|
||||
|
||||
public LeistungsverzeichnisListSampleData()
|
||||
{
|
||||
for (int i = 0; i < 5; i++)
|
||||
{
|
||||
lvPositionen.Add(new LeistungsverzeichnisPosition()
|
||||
{
|
||||
Positionsnummer = i.ToString(),
|
||||
Beschreibung = "Test " + i,
|
||||
Einheit = "Stk " + i,
|
||||
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
using KanSan.Base.Interfaces.UI;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace KanSan.SampleData
|
||||
{
|
||||
class LeistungsverzeichnisPositionViewModelSampleData : ILeistungsverzeichnisPositionViewModel
|
||||
{
|
||||
string positionnummer;
|
||||
string beschreibung;
|
||||
string einheit;
|
||||
string tag;
|
||||
public string Positionsnummer { get => positionnummer; set => throw new NotImplementedException(); }
|
||||
public string Beschreibung { get => beschreibung; set => throw new NotImplementedException(); }
|
||||
public string Einheit { get => einheit; set => throw new NotImplementedException(); }
|
||||
public string Tag { get => tag; set => throw new NotImplementedException(); }
|
||||
|
||||
public LeistungsverzeichnisPositionViewModelSampleData()
|
||||
{
|
||||
positionnummer = "1.2.4";
|
||||
beschreibung = "TV Inspektion DN200";
|
||||
einheit = "M";
|
||||
tag = "JMStandard";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -15,6 +15,7 @@
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition />
|
||||
@@ -25,7 +26,7 @@
|
||||
|
||||
<TextBox Grid.Row="0" Grid.Column="1" Text="{Binding OrtTeil}" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding BaustelleNummer}"/>
|
||||
|
||||
<Button Grid.ColumnSpan="2" Grid.Row="2" Content="Speichern" Name="Speichern" Click="Speichern_Click" />
|
||||
<Button Grid.ColumnSpan="2" Grid.Row="2" Content="Leistungsverzeichnis" Name="Leistungsverzeichnis" Click="Leistungsverzeichnis_Click" />
|
||||
<Button Grid.ColumnSpan="2" Grid.Row="3" Content="Speichern" Name="Speichern" Click="Speichern_Click" />
|
||||
</Grid>
|
||||
</UserControl>
|
||||
|
||||
@@ -21,6 +21,7 @@ namespace KanSan.UI
|
||||
public partial class UCBaustelleEdit : UserControl
|
||||
{
|
||||
public event EventHandler SpeichernClicked;
|
||||
public event EventHandler<SelectBaustelleEventArgs> LeistungsverzeichnisClicked;
|
||||
public UCBaustelleEdit(Baustelle baustelle)
|
||||
{
|
||||
InitializeComponent();
|
||||
@@ -32,11 +33,25 @@ namespace KanSan.UI
|
||||
if (handler != null)
|
||||
handler(this, e);
|
||||
}
|
||||
protected virtual void OnLeistungsverzeichnisClicked(SelectBaustelleEventArgs e)
|
||||
{
|
||||
EventHandler<SelectBaustelleEventArgs> handler = LeistungsverzeichnisClicked;
|
||||
if (handler != null)
|
||||
handler(this, e);
|
||||
}
|
||||
|
||||
private void Speichern_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
(DataContext as BaustelleEditViewModel).Speichern();
|
||||
OnSpeichernKlicked(EventArgs.Empty);
|
||||
}
|
||||
|
||||
private void Leistungsverzeichnis_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
OnLeistungsverzeichnisClicked(new SelectBaustelleEventArgs()
|
||||
{
|
||||
baustelle = (DataContext as BaustelleEditViewModel).Baustelle
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
<UserControl x:Class="KanSan.UI.UCLeistungsverzeichnisPosList"
|
||||
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"
|
||||
xmlns:sd="clr-namespace:KanSan.SampleData"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="300" d:DesignWidth="1024">
|
||||
<d:UserControl.DataContext>
|
||||
<sd:LeistungsverzeichnisListSampleData />
|
||||
</d:UserControl.DataContext>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="373*" />
|
||||
<RowDefinition Height="77*" />
|
||||
</Grid.RowDefinitions>
|
||||
<DataGrid ItemsSource="{Binding LVPositionen}" AutoGenerateColumns="False">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Header="Positionsnummer" Binding="{Binding Positionsnummer}" />
|
||||
<DataGridTextColumn Header="Beschreibung" Binding="{Binding Beschreibung}" />
|
||||
<DataGridTextColumn Header="Einheit" Binding="{Binding Einheit}" />
|
||||
<DataGridTextColumn Header="Tag" Binding="{Binding Tag}" />
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
<Button Grid.Row="1" Name="NewLVPosition" Content="Neue LeistungsverzeichnisPosition" />
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -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 UCLeistungsverzeichnisPosList.xaml
|
||||
/// </summary>
|
||||
public partial class UCLeistungsverzeichnisPosList : UserControl
|
||||
{
|
||||
public UCLeistungsverzeichnisPosList()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -60,8 +60,8 @@ namespace KanSan.UI
|
||||
if (treeView == null) return;
|
||||
if (!(treeView.SelectedItem is Taetigkeiten))
|
||||
{
|
||||
if (Debugger.IsAttached)
|
||||
Debugger.Break();
|
||||
//if (Debugger.IsAttached)
|
||||
// Debugger.Break();
|
||||
return;
|
||||
}
|
||||
Taetigkeiten taetigkeiten = (Taetigkeiten)treeView.SelectedItem;
|
||||
|
||||
@@ -49,9 +49,9 @@
|
||||
|
||||
<TextBox Grid.Row="0" Grid.Column="1" Text="{Binding Mitarbeiter}" />
|
||||
|
||||
<Calendar Style="{StaticResource DefaultCalendar}" Grid.Row="2" Grid.Column="1" SelectedDate="{Binding ZeitStempel}"/>
|
||||
<Calendar Style="{StaticResource DefaultCalendar}" Grid.Row="2" Grid.Column="1" Name="Calender" SelectedDate="{Binding ZeitStempel}"/>
|
||||
|
||||
<TextBox Grid.Row="4" Grid.Column="1" Text="{Binding Menge}" />
|
||||
<TextBox Grid.Row="4" Grid.Column="1" Text="{Binding Anzahl}" />
|
||||
<TextBox Grid.Row="5" Grid.Column="1" Text="{Binding Bemerkung}"/>
|
||||
<Button Grid.Row="6" Grid.ColumnSpan="2" Content="Speichern" Name="Speichern" Click="Speichern_Click" />
|
||||
|
||||
|
||||
@@ -47,14 +47,8 @@ namespace KanSan.UI
|
||||
|
||||
private void SelectTodayExecuted(object target, ExecutedRoutedEventArgs e)
|
||||
{
|
||||
var calendar = target as Calendar;
|
||||
if(calendar == null)
|
||||
{
|
||||
if (Debugger.IsAttached)
|
||||
Debugger.Break();
|
||||
return;
|
||||
}
|
||||
Debugger.Break();
|
||||
|
||||
Calender.SelectedDate = DateTime.Now;
|
||||
}
|
||||
|
||||
private void SelectTodayCanExecute(object target, CanExecuteRoutedEventArgs e)
|
||||
|
||||
38
KanSan/UI/UCLeistungsverzeichnisPosition.xaml
Normal file
38
KanSan/UI/UCLeistungsverzeichnisPosition.xaml
Normal file
@@ -0,0 +1,38 @@
|
||||
<UserControl x:Class="KanSan.UI.UCLeistungsverzeichnisPosition"
|
||||
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"
|
||||
xmlns:sd="clr-namespace:KanSan.SampleData"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
<d:UserControl.DataContext>
|
||||
<sd:LeistungsverzeichnisPositionViewModelSampleData />
|
||||
</d:UserControl.DataContext>
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
<Label Grid.Column="0" Grid.Row="0" Content="Positionsnummer" />
|
||||
<Label Grid.Column="0" Grid.Row="1" Content="Beschreibung" />
|
||||
<Label Grid.Column="0" Grid.Row="2" Content="Einheit" />
|
||||
<Label Grid.Column="0" Grid.Row="3" Content="Tag" />
|
||||
|
||||
<TextBox Grid.Column="1" Grid.Row="0" Text="{Binding Positionsnummer}" />
|
||||
<TextBox Grid.Column="1" Grid.Row="1" Text="{Binding Beschreibung}" />
|
||||
<TextBox Grid.Column="1" Grid.Row="2" Text="{Binding Einheit}" />
|
||||
<TextBox Grid.Column="1" Grid.Row="3" Text="{Binding Tag}" />
|
||||
|
||||
<Button Grid.Column="0" Grid.Row="4" Grid.ColumnSpan="2" Content="Speichern" Name="Save" />
|
||||
</Grid>
|
||||
</UserControl>
|
||||
26
KanSan/UI/UCLeistungsverzeichnisPosition.xaml.cs
Normal file
26
KanSan/UI/UCLeistungsverzeichnisPosition.xaml.cs
Normal 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 UCLeistungsverzeichnisPosition.xaml
|
||||
/// </summary>
|
||||
public partial class UCLeistungsverzeichnisPosition : UserControl
|
||||
{
|
||||
public UCLeistungsverzeichnisPosition()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
33
KanSan/UI/UCLeistungsverzeichnisPositionenBaustelle.xaml
Normal file
33
KanSan/UI/UCLeistungsverzeichnisPositionenBaustelle.xaml
Normal file
@@ -0,0 +1,33 @@
|
||||
<UserControl x:Class="KanSan.UI.LeistungsverzeichnisPositionenBaustelle"
|
||||
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"
|
||||
xmlns:sd="clr-namespace:KanSan.SampleData"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
<d:UserControl.DataContext>
|
||||
<sd:LeistungsverzeichnisBaustelleViewModelSampleData />
|
||||
</d:UserControl.DataContext>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="57*" />
|
||||
<RowDefinition Height="320*" />
|
||||
<RowDefinition Height="73*" />
|
||||
</Grid.RowDefinitions>
|
||||
<ComboBox ItemsSource="{Binding Baustellen}" />
|
||||
|
||||
<DataGrid Grid.Row="1" ItemsSource="{Binding LeistungsverzeichnisPositionen}" AutoGenerateColumns="False">
|
||||
<DataGrid.Columns>
|
||||
<DataGridCheckBoxColumn Header="Aktiviert" Binding="{Binding Activate}" />
|
||||
<DataGridTextColumn Header="Positionsnummer" Binding="{Binding Positionsnummer}" />
|
||||
<DataGridTextColumn Header="Beschreibung" Binding="{Binding Beschreibung}" />
|
||||
<DataGridTextColumn Header="Einheit" Binding="{Binding Einheit}" />
|
||||
<DataGridTextColumn Header="Tag" Binding="{Binding Tag}" />
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
<Button Grid.Row="2" Content="Speichern" />
|
||||
|
||||
</Grid>
|
||||
</UserControl>
|
||||
26
KanSan/UI/UCLeistungsverzeichnisPositionenBaustelle.xaml.cs
Normal file
26
KanSan/UI/UCLeistungsverzeichnisPositionenBaustelle.xaml.cs
Normal 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 LeistungsverzeichnisPositionenBaustelle.xaml
|
||||
/// </summary>
|
||||
public partial class LeistungsverzeichnisPositionenBaustelle : UserControl
|
||||
{
|
||||
public LeistungsverzeichnisPositionenBaustelle()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -59,20 +59,35 @@ namespace KanSan.UI
|
||||
|
||||
|
||||
}
|
||||
|
||||
Schaeden aktuellSchadenSelected = null;
|
||||
private void UCSchaedenList_SanierungsmaßnahmenSelected(object sender, SelectSchaedenEventArgs e)
|
||||
{
|
||||
aktuellSchadenSelected = e.schaeden;
|
||||
UI.UCSanMaßnahmenList uCSanMaßnahmenList = new UCSanMaßnahmenList(e.schaeden);
|
||||
uCSanMaßnahmenList.TaetigkeitenSelected += UCSanMaßnahmenList_TaetigkeitenSelected;
|
||||
rbSchaeden.IsChecked = false;
|
||||
ObjektContentcontroller.Content = uCSanMaßnahmenList;
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void UCSanMaßnahmenList_TaetigkeitenSelected(object sender, TaetigkeitenSelectEventArgs e)
|
||||
{
|
||||
UI.UCTaetigkeitEdit uCTaetigkeitEdit = new UCTaetigkeitEdit(e.Taetigkeit);
|
||||
uCTaetigkeitEdit.SpeichernClicked += UCTaetigkeitEdit_SpeichernClicked;
|
||||
ObjektContentcontroller.Content = uCTaetigkeitEdit;
|
||||
}
|
||||
|
||||
private void UCTaetigkeitEdit_SpeichernClicked(object sender, EventArgs e)
|
||||
{
|
||||
if (aktuellSchadenSelected == null) return;
|
||||
UI.UCSanMaßnahmenList uCSanMaßnahmenList = new UCSanMaßnahmenList(aktuellSchadenSelected);
|
||||
uCSanMaßnahmenList.TaetigkeitenSelected += UCSanMaßnahmenList_TaetigkeitenSelected;
|
||||
rbSchaeden.IsChecked = false;
|
||||
ObjektContentcontroller.Content = uCSanMaßnahmenList;
|
||||
|
||||
}
|
||||
|
||||
private void UCSchaedenList_SchaedenSelected(object sender, SelectSchaedenEventArgs e)
|
||||
{
|
||||
rbSchaeden.IsChecked = false;
|
||||
|
||||
Reference in New Issue
Block a user