Massenstatistik wird erstellt

This commit is contained in:
Husky
2018-07-14 22:50:32 +02:00
parent 2be7e9857b
commit 9ee15d86cb
12 changed files with 479 additions and 23 deletions

View File

@@ -118,7 +118,7 @@ namespace KlassenBIB
grunddaten["KL_HD_true"] = ""; grunddaten["KL_HD_true"] = "";
grunddaten["KL_mech_true"] = ""; grunddaten["KL_mech_true"] = "";
grunddaten["KL_rob_true"] = ""; grunddaten["KL_rob_true"] = "";
grunddaten["KL_HD_date"] = this.Datum.HasValue ? this.Datum.Value.ToShortDateString() : ""; grunddaten["KL_HD_date"] = this.Datum.ToShortDateString();
grunddaten["KL_Besatzung"] = ""; grunddaten["KL_Besatzung"] = "";
grunddaten["liner_laenge"] = LaengeGesamt; grunddaten["liner_laenge"] = LaengeGesamt;
grunddaten["Charge_Liner"] = this.LinerChargenummer; grunddaten["Charge_Liner"] = this.LinerChargenummer;

View File

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

View File

@@ -0,0 +1,85 @@
namespace SanSystem
{
partial class FrmSelectMassenDate
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.dt_targetDatum = new System.Windows.Forms.DateTimePicker();
this.btn_gen = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Location = new System.Drawing.Point(12, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(57, 20);
this.label1.TabIndex = 0;
this.label1.Text = "Datum";
//
// dt_targetDatum
//
this.dt_targetDatum.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.dt_targetDatum.Location = new System.Drawing.Point(75, 4);
this.dt_targetDatum.Name = "dt_targetDatum";
this.dt_targetDatum.Size = new System.Drawing.Size(341, 26);
this.dt_targetDatum.TabIndex = 1;
//
// btn_gen
//
this.btn_gen.Location = new System.Drawing.Point(16, 36);
this.btn_gen.Name = "btn_gen";
this.btn_gen.Size = new System.Drawing.Size(400, 66);
this.btn_gen.TabIndex = 2;
this.btn_gen.Text = "Erzeugen";
this.btn_gen.UseVisualStyleBackColor = true;
this.btn_gen.Click += new System.EventHandler(this.btn_gen_Click);
//
// FrmSelectMassenDate
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(429, 114);
this.Controls.Add(this.btn_gen);
this.Controls.Add(this.dt_targetDatum);
this.Controls.Add(this.label1);
this.Name = "FrmSelectMassenDate";
this.Text = "FrmSelectMassenDate";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.DateTimePicker dt_targetDatum;
private System.Windows.Forms.Button btn_gen;
}
}

View File

@@ -0,0 +1,27 @@
using Database;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace SanSystem
{
public partial class FrmSelectMassenDate : Form
{
public FrmSelectMassenDate()
{
InitializeComponent();
}
private void btn_gen_Click(object sender, EventArgs e)
{
MassenStatistik massenStatistik = new MassenStatistik(Datenbank.Instance.loadedProjekt.Objekte, dt_targetDatum.Value);
}
}
}

View File

@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@@ -0,0 +1,196 @@
using Database;
using KlassenBIB;
using SanShared;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SanSystem
{
class MassenStatistik : IMakeProtokol
{
List<Inspektionsobjekt> inspektionsobjekts = null;
DateTime targetDatum;
public MassenStatistik(List<Inspektionsobjekt> inspektionsobjekts, DateTime datum)
{
this.inspektionsobjekts = inspektionsobjekts;
targetDatum = datum;
BuildBericht(SearchForWaranties());
}
void BuildBericht(List<Inspektionsobjekt> list)
{
Hashtable grundDaten = MakeProtokoll("");
DataTable inliner = getMassenTableInliner();
double gesamtLiner = 0;
double gesamtHarz = 0;
foreach (Inspektionsobjekt objekt in list)
{
DataRow dr = inliner.NewRow();
dr["hausnummer"] = objekt.Hausnummer;
Trace.WriteLine(objekt.Hausnummer);
if (objekt.Hausnummer.Equals("17a"))
Debugger.Break();
if(objekt.HaltungGemessen.Day == targetDatum.Day &&
objekt.HaltungGemessen.Month == targetDatum.Month &&
objekt.HaltungGemessen.Year == targetDatum.Year)
{
dr["vorbereitet"] = "ja";
}
else
{
dr["vorbereitet"] = "nein wurde am " + objekt.HaltungGemessen.ToShortDateString();
}
int schachtanbindungen = 0;
foreach (Sanieren mainsan in objekt.Sanierung)
{
if (
mainsan.Datum.Day == targetDatum.Day &&
mainsan.Datum.Month == targetDatum.Month &&
mainsan.Datum.Year == targetDatum.Year)
{
if (mainsan is InlinerSanierung)
{
double linerLang = objekt.Haltungslaenge + objekt.Schachtlaenge + 0.5;
gesamtLiner += linerLang;
dr["liner_laenge"] = linerLang;
dr["kalibrierschlauch"] = objekt.Haltungslaenge + (objekt.Schachtlaenge * 2) + 0.3;
dr["preliner"] = linerLang - 0.5;
dr["harzmenge"] = linerLang * (mainsan as InlinerSanierung).HarzBedarf;
gesamtHarz += linerLang * (mainsan as InlinerSanierung).Harzbedarf;
}
if (mainsan is SchachtAnbindung)
{
schachtanbindungen++;
}
dr["schachtanbindung"] = schachtanbindungen;
}
}
inliner.Rows.Add(dr);
}
grundDaten["gesamtHarz"] = gesamtHarz;
grundDaten["gesamtliner"] = gesamtLiner;
grundDaten["Ausdruck_datum"] = targetDatum.ToLongDateString();
grundDaten["Ort"] = inspektionsobjekts.Last().OrtName;
grundDaten["Strasse"] = inspektionsobjekts.Last().StrasseName;
grundDaten["Projektnummer"] = Datenbank.Instance.loadedProjekt.Nummer;
BerichtGen.FrmOptions frmOptions = new BerichtGen.FrmOptions("JUME", "Massenstatistik.docx", ".", "Massenstatistik", grundDaten, null, inliner);
frmOptions.ShowDialog();
}
public Hashtable MakeProtokoll(string destinationPath)
{
Hashtable grundDaten = new Hashtable()
{
{"Ausdruck_datum","" },
{"Strasse","" },
{"Ort","" },
{"Projektnummer","" },
{"gesamtliner","" },
{"gesamtHarz","" }
};
return grundDaten;
}
DataTable getMassenTableInliner()
{
DataTable dt = new DataTable("Liner");
DataColumn column = new DataColumn("hausnummer")
{
MaxLength = 50
};
dt.Columns.Add(column);
column = new DataColumn("liner_laenge")
{
MaxLength = 50
};
dt.Columns.Add(column);
column = new DataColumn("kalibrierschlauch")
{
MaxLength = 50
};
dt.Columns.Add(column);
column = new DataColumn("preliner")
{
MaxLength = 50
};
dt.Columns.Add(column);
column = new DataColumn("harzmenge")
{
MaxLength = 50
};
dt.Columns.Add(column);
column = new DataColumn("vorbereitet")
{
MaxLength = 50
};
dt.Columns.Add(column);
column = new DataColumn("schachtanbindung")
{
MaxLength = 50
};
dt.Columns.Add(column);
return dt;
}
List<Inspektionsobjekt> SearchForWaranties()
{
if (inspektionsobjekts == null) return null ;
List<Inspektionsobjekt> result = new List<Inspektionsobjekt>();
foreach(Inspektionsobjekt objekt in inspektionsobjekts)
{
bool add = false;
if (
objekt.HaltungGemessen.Year == targetDatum.Year &&
objekt.HaltungGemessen.Month == targetDatum.Month &&
objekt.HaltungGemessen.Day == targetDatum.Day
)
{
add = true;
}
foreach(Sanieren san in objekt.Sanierung)
{
if (san.Fertig &&
san.Datum.Day == targetDatum.Day &&
san.Datum.Month == targetDatum.Month &&
san.Datum.Year == targetDatum.Year
)
add = true;
}
if (add)
result.Add(objekt);
}
return result;
}
}
}

View File

@@ -100,6 +100,12 @@
<Compile Include="frmProjektList.Designer.cs"> <Compile Include="frmProjektList.Designer.cs">
<DependentUpon>frmProjektList.cs</DependentUpon> <DependentUpon>frmProjektList.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="FrmSelectMassenDate.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmSelectMassenDate.Designer.cs">
<DependentUpon>FrmSelectMassenDate.cs</DependentUpon>
</Compile>
<Compile Include="FrmSelectNewSan.cs"> <Compile Include="FrmSelectNewSan.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
@@ -120,6 +126,7 @@
</Compile> </Compile>
<Compile Include="Global.cs" /> <Compile Include="Global.cs" />
<Compile Include="HelpFunktion.cs" /> <Compile Include="HelpFunktion.cs" />
<Compile Include="MassenStatistik.cs" />
<Compile Include="Program.cs" /> <Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="UCInliner.cs"> <Compile Include="UCInliner.cs">
@@ -155,6 +162,9 @@
<EmbeddedResource Include="frmProjektList.resx"> <EmbeddedResource Include="frmProjektList.resx">
<DependentUpon>frmProjektList.cs</DependentUpon> <DependentUpon>frmProjektList.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="FrmSelectMassenDate.resx">
<DependentUpon>FrmSelectMassenDate.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmSelectNewSan.resx"> <EmbeddedResource Include="FrmSelectNewSan.resx">
<DependentUpon>FrmSelectNewSan.cs</DependentUpon> <DependentUpon>FrmSelectNewSan.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
@@ -188,6 +198,9 @@
<None Include="documents\JUME\liner_einbau.docx"> <None Include="documents\JUME\liner_einbau.docx">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None> </None>
<None Include="documents\JUME\Massenstatistik.docx">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="packages.config" /> <None Include="packages.config" />
<None Include="Properties\DataSources\KlassenBIB.Strasse.datasource" /> <None Include="Properties\DataSources\KlassenBIB.Strasse.datasource" />
<None Include="Properties\Settings.settings"> <None Include="Properties\Settings.settings">

View File

@@ -86,7 +86,7 @@ namespace SanSystem
{ {
if(inliner.Datum == null) if(inliner.Datum == null)
{ {
inliner.Datum = DateTime.Now; //inliner.Datum = DateTime.Now;
dt_eingebaut.DataBindings.Clear(); dt_eingebaut.DataBindings.Clear();
dt_eingebaut.DataBindings.Add(new Binding("Value", inliner, "Datum")); dt_eingebaut.DataBindings.Add(new Binding("Value", inliner, "Datum"));
dt_eingebaut.Enabled = true; dt_eingebaut.Enabled = true;

Binary file not shown.

View File

@@ -32,9 +32,10 @@
this.projektToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.projektToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.neuToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.neuToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.öffnenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.öffnenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.speichernToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.statusStrip1 = new System.Windows.Forms.StatusStrip(); this.statusStrip1 = new System.Windows.Forms.StatusStrip();
this.toolStripStatus_projekt_Label = new System.Windows.Forms.ToolStripStatusLabel(); this.toolStripStatus_projekt_Label = new System.Windows.Forms.ToolStripStatusLabel();
this.speichernToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.massenstatistikToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.mainmenu.SuspendLayout(); this.mainmenu.SuspendLayout();
this.statusStrip1.SuspendLayout(); this.statusStrip1.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
@@ -44,11 +45,11 @@
this.mainmenu.ImageScalingSize = new System.Drawing.Size(20, 20); this.mainmenu.ImageScalingSize = new System.Drawing.Size(20, 20);
this.mainmenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.mainmenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.projektToolStripMenuItem, this.projektToolStripMenuItem,
this.speichernToolStripMenuItem}); this.speichernToolStripMenuItem,
this.massenstatistikToolStripMenuItem});
this.mainmenu.Location = new System.Drawing.Point(0, 0); this.mainmenu.Location = new System.Drawing.Point(0, 0);
this.mainmenu.Name = "mainmenu"; this.mainmenu.Name = "mainmenu";
this.mainmenu.Padding = new System.Windows.Forms.Padding(8, 2, 0, 2); this.mainmenu.Size = new System.Drawing.Size(596, 24);
this.mainmenu.Size = new System.Drawing.Size(795, 28);
this.mainmenu.TabIndex = 1; this.mainmenu.TabIndex = 1;
this.mainmenu.Text = "menuStrip1"; this.mainmenu.Text = "menuStrip1";
// //
@@ -58,58 +59,64 @@
this.neuToolStripMenuItem, this.neuToolStripMenuItem,
this.öffnenToolStripMenuItem}); this.öffnenToolStripMenuItem});
this.projektToolStripMenuItem.Name = "projektToolStripMenuItem"; this.projektToolStripMenuItem.Name = "projektToolStripMenuItem";
this.projektToolStripMenuItem.Size = new System.Drawing.Size(67, 24); this.projektToolStripMenuItem.Size = new System.Drawing.Size(56, 20);
this.projektToolStripMenuItem.Text = "Projekt"; this.projektToolStripMenuItem.Text = "Projekt";
// //
// neuToolStripMenuItem // neuToolStripMenuItem
// //
this.neuToolStripMenuItem.Name = "neuToolStripMenuItem"; this.neuToolStripMenuItem.Name = "neuToolStripMenuItem";
this.neuToolStripMenuItem.Size = new System.Drawing.Size(181, 26); this.neuToolStripMenuItem.Size = new System.Drawing.Size(111, 22);
this.neuToolStripMenuItem.Text = "Neu"; this.neuToolStripMenuItem.Text = "Neu";
this.neuToolStripMenuItem.Click += new System.EventHandler(this.neuToolStripMenuItem_Click); this.neuToolStripMenuItem.Click += new System.EventHandler(this.neuToolStripMenuItem_Click);
// //
// öffnenToolStripMenuItem // öffnenToolStripMenuItem
// //
this.öffnenToolStripMenuItem.Name = "öffnenToolStripMenuItem"; this.öffnenToolStripMenuItem.Name = "öffnenToolStripMenuItem";
this.öffnenToolStripMenuItem.Size = new System.Drawing.Size(181, 26); this.öffnenToolStripMenuItem.Size = new System.Drawing.Size(111, 22);
this.öffnenToolStripMenuItem.Text = "Öffnen"; this.öffnenToolStripMenuItem.Text = "Öffnen";
this.öffnenToolStripMenuItem.Click += new System.EventHandler(this.öffnenToolStripMenuItem_Click); this.öffnenToolStripMenuItem.Click += new System.EventHandler(this.öffnenToolStripMenuItem_Click);
// //
// speichernToolStripMenuItem
//
this.speichernToolStripMenuItem.Name = "speichernToolStripMenuItem";
this.speichernToolStripMenuItem.Size = new System.Drawing.Size(71, 20);
this.speichernToolStripMenuItem.Text = "Speichern";
this.speichernToolStripMenuItem.Click += new System.EventHandler(this.speichernToolStripMenuItem_Click);
//
// statusStrip1 // statusStrip1
// //
this.statusStrip1.ImageScalingSize = new System.Drawing.Size(20, 20); this.statusStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripStatus_projekt_Label}); this.toolStripStatus_projekt_Label});
this.statusStrip1.Location = new System.Drawing.Point(0, 434); this.statusStrip1.Location = new System.Drawing.Point(0, 351);
this.statusStrip1.Name = "statusStrip1"; this.statusStrip1.Name = "statusStrip1";
this.statusStrip1.Padding = new System.Windows.Forms.Padding(1, 0, 19, 0); this.statusStrip1.Size = new System.Drawing.Size(596, 22);
this.statusStrip1.Size = new System.Drawing.Size(795, 25);
this.statusStrip1.TabIndex = 3; this.statusStrip1.TabIndex = 3;
this.statusStrip1.Text = "statusStrip1"; this.statusStrip1.Text = "statusStrip1";
// //
// toolStripStatus_projekt_Label // toolStripStatus_projekt_Label
// //
this.toolStripStatus_projekt_Label.Name = "toolStripStatus_projekt_Label"; this.toolStripStatus_projekt_Label.Name = "toolStripStatus_projekt_Label";
this.toolStripStatus_projekt_Label.Size = new System.Drawing.Size(55, 20); this.toolStripStatus_projekt_Label.Size = new System.Drawing.Size(44, 17);
this.toolStripStatus_projekt_Label.Text = "Projekt"; this.toolStripStatus_projekt_Label.Text = "Projekt";
// //
// speichernToolStripMenuItem // massenstatistikToolStripMenuItem
// //
this.speichernToolStripMenuItem.Name = "speichernToolStripMenuItem"; this.massenstatistikToolStripMenuItem.Name = "massenstatistikToolStripMenuItem";
this.speichernToolStripMenuItem.Size = new System.Drawing.Size(86, 24); this.massenstatistikToolStripMenuItem.Size = new System.Drawing.Size(99, 20);
this.speichernToolStripMenuItem.Text = "Speichern"; this.massenstatistikToolStripMenuItem.Text = "Massenstatistik";
this.speichernToolStripMenuItem.Click += new System.EventHandler(this.speichernToolStripMenuItem_Click); this.massenstatistikToolStripMenuItem.Click += new System.EventHandler(this.massenstatistikToolStripMenuItem_Click);
// //
// frmMain // frmMain
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(795, 459); this.ClientSize = new System.Drawing.Size(596, 373);
this.Controls.Add(this.statusStrip1); this.Controls.Add(this.statusStrip1);
this.Controls.Add(this.mainmenu); this.Controls.Add(this.mainmenu);
this.IsMdiContainer = true; this.IsMdiContainer = true;
this.MainMenuStrip = this.mainmenu; this.MainMenuStrip = this.mainmenu;
this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.Name = "frmMain"; this.Name = "frmMain";
this.Text = "Kanalsanierungsverwaltung"; this.Text = "Kanalsanierungsverwaltung";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.frm_main_FormClosing); this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.frm_main_FormClosing);
@@ -132,6 +139,7 @@
private System.Windows.Forms.StatusStrip statusStrip1; private System.Windows.Forms.StatusStrip statusStrip1;
private System.Windows.Forms.ToolStripStatusLabel toolStripStatus_projekt_Label; private System.Windows.Forms.ToolStripStatusLabel toolStripStatus_projekt_Label;
private System.Windows.Forms.ToolStripMenuItem speichernToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem speichernToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem massenstatistikToolStripMenuItem;
} }
} }

View File

@@ -102,5 +102,11 @@ namespace SanSystem
{ {
Datenbank.Instance.SaveProjekt(); Datenbank.Instance.SaveProjekt();
} }
private void massenstatistikToolStripMenuItem_Click(object sender, EventArgs e)
{
FrmSelectMassenDate frmSelectMassenDate = new FrmSelectMassenDate();
frmSelectMassenDate.ShowDialog();
}
} }
} }

View File

@@ -156,6 +156,7 @@ namespace SanSystem
} }
InlinerSanierung san = new InlinerSanierung(); InlinerSanierung san = new InlinerSanierung();
san.Inspektionsobjekt = inspektionsobjekt; san.Inspektionsobjekt = inspektionsobjekt;
san.Datum = new DateTime(2018, 01, 01, 12, 00, 00);
inspektionsobjekt.Sanierung.Add(san); inspektionsobjekt.Sanierung.Add(san);
TabPage tab = new TabPage(); TabPage tab = new TabPage();
tab.Text = "InlinerSanierung"; tab.Text = "InlinerSanierung";