Leistungsverzeichnis Positionen

This commit is contained in:
Husky
2019-08-13 21:23:37 +02:00
parent abe7adbdb3
commit e39dd3f4a1
7 changed files with 74 additions and 19 deletions

View File

@@ -61,9 +61,9 @@ namespace Database
} }
catch(XamlObjectWriterException ex) catch(XamlObjectWriterException ex)
{ {
string msg = ex.Message; if (ex.HResult.Equals(-2146233088))
if (msg.ToLower().Contains("kann nicht festgelegt werden")) throw new DataBaseVersionMismatchException(ex.Message);
throw new DataBaseVersionMismatchException();
} }
} }
else else

View File

@@ -22,6 +22,10 @@ namespace KlassenBIB
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
public decimal Menge { get; set; }
/// <summary>
///
/// </summary>
public decimal Station { get; set; } public decimal Station { get; set; }
} }
} }

View File

@@ -79,6 +79,10 @@ namespace KlassenBIB
/// </summary> /// </summary>
public SanierungCollection Sanierung { get;set; } public SanierungCollection Sanierung { get;set; }
/// <summary> /// <summary>
///
/// </summary>
public AusgefuehrteTaetigkeitenCollection AusgefuehrteTaetigkeiten { get; set; }
/// <summary>
/// In welcher Richtung wurde Inspiziert /// In welcher Richtung wurde Inspiziert
/// </summary> /// </summary>
public string Inspektionsrichtung { get; set; } public string Inspektionsrichtung { get; set; }
@@ -97,6 +101,7 @@ namespace KlassenBIB
{ {
Schadenskuerzeln = new InspektionskuerzelnCollection(); Schadenskuerzeln = new InspektionskuerzelnCollection();
Sanierung = new SanierungCollection(); Sanierung = new SanierungCollection();
AusgefuehrteTaetigkeiten = new AusgefuehrteTaetigkeitenCollection();
if (HaltungGemessen <= DateTime.MinValue || HaltungGemessen >= DateTime.MaxValue) HaltungGemessen = DateTime.Now; if (HaltungGemessen <= DateTime.MinValue || HaltungGemessen >= DateTime.MaxValue) HaltungGemessen = DateTime.Now;
} }
} }

View File

@@ -23,5 +23,13 @@ namespace KlassenBIB
/// ///
/// </summary> /// </summary>
public string PositionsEinheit { get; set; } public string PositionsEinheit { get; set; }
/// <summary>
///
/// </summary>
/// <returns></returns>
public override string ToString()
{
return PositionsBeschreibung;
}
} }
} }

View File

@@ -30,6 +30,10 @@ namespace KlassenBIB
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
public LeistungsverzeichnisCollection Leistungsverzeichnis { get; set; }
/// <summary>
///
/// </summary>
public AbwasserTechnischeAnlageCollection Objekte { get; set; } public AbwasserTechnischeAnlageCollection Objekte { get; set; }
/// <summary> /// <summary>
/// ///
@@ -37,6 +41,7 @@ namespace KlassenBIB
public Projekt() public Projekt()
{ {
Objekte = new AbwasserTechnischeAnlageCollection(); Objekte = new AbwasserTechnischeAnlageCollection();
Leistungsverzeichnis = new LeistungsverzeichnisCollection();
Auftraggeber = new Auftraggeber(); Auftraggeber = new Auftraggeber();
} }
} }

View File

@@ -30,6 +30,8 @@
{ {
this.tabControl1 = new System.Windows.Forms.TabControl(); this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage(); this.tabPage1 = new System.Windows.Forms.TabPage();
this.txt_san_nr = new System.Windows.Forms.TextBox();
this.label9 = new System.Windows.Forms.Label();
this.btn_delete = new System.Windows.Forms.Button(); this.btn_delete = new System.Windows.Forms.Button();
this.btn_close = new System.Windows.Forms.Button(); this.btn_close = new System.Windows.Forms.Button();
this.cb_objekname_man = new System.Windows.Forms.CheckBox(); this.cb_objekname_man = new System.Windows.Forms.CheckBox();
@@ -64,19 +66,22 @@
this.Kanalinformationen = new System.Windows.Forms.TabPage(); this.Kanalinformationen = new System.Windows.Forms.TabPage();
this.dgv_schadenkuerzel = new System.Windows.Forms.DataGridView(); this.dgv_schadenkuerzel = new System.Windows.Forms.DataGridView();
this.btn_add_san = new System.Windows.Forms.Button(); this.btn_add_san = new System.Windows.Forms.Button();
this.label9 = new System.Windows.Forms.Label(); this.tabPage2 = new System.Windows.Forms.TabPage();
this.txt_san_nr = new System.Windows.Forms.TextBox(); this.dgv_sanierungen = new System.Windows.Forms.DataGridView();
this.tabControl1.SuspendLayout(); this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout(); this.tabPage1.SuspendLayout();
this.groupBox2.SuspendLayout(); this.groupBox2.SuspendLayout();
this.Kanalinformationen.SuspendLayout(); this.Kanalinformationen.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgv_schadenkuerzel)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dgv_schadenkuerzel)).BeginInit();
this.tabPage2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgv_sanierungen)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
// tabControl1 // tabControl1
// //
this.tabControl1.Controls.Add(this.tabPage1); this.tabControl1.Controls.Add(this.tabPage1);
this.tabControl1.Controls.Add(this.Kanalinformationen); this.tabControl1.Controls.Add(this.Kanalinformationen);
this.tabControl1.Controls.Add(this.tabPage2);
this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabControl1.Location = new System.Drawing.Point(0, 0); this.tabControl1.Location = new System.Drawing.Point(0, 0);
this.tabControl1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.tabControl1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
@@ -126,6 +131,24 @@
this.tabPage1.Text = "Grunddaten"; this.tabPage1.Text = "Grunddaten";
this.tabPage1.UseVisualStyleBackColor = true; this.tabPage1.UseVisualStyleBackColor = true;
// //
// txt_san_nr
//
this.txt_san_nr.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.txt_san_nr.Location = new System.Drawing.Point(745, 29);
this.txt_san_nr.Name = "txt_san_nr";
this.txt_san_nr.Size = new System.Drawing.Size(191, 30);
this.txt_san_nr.TabIndex = 7;
//
// label9
//
this.label9.AutoSize = true;
this.label9.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label9.Location = new System.Drawing.Point(585, 32);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(84, 25);
this.label9.TabIndex = 32;
this.label9.Text = "SAN. Nr";
//
// btn_delete // btn_delete
// //
this.btn_delete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.btn_delete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
@@ -518,23 +541,27 @@
this.btn_add_san.UseVisualStyleBackColor = true; this.btn_add_san.UseVisualStyleBackColor = true;
this.btn_add_san.Click += new System.EventHandler(this.btn_add_san_Click); this.btn_add_san.Click += new System.EventHandler(this.btn_add_san_Click);
// //
// label9 // tabPage2
// //
this.label9.AutoSize = true; this.tabPage2.Controls.Add(this.dgv_sanierungen);
this.label9.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.tabPage2.Location = new System.Drawing.Point(4, 34);
this.label9.Location = new System.Drawing.Point(585, 32); this.tabPage2.Name = "tabPage2";
this.label9.Name = "label9"; this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
this.label9.Size = new System.Drawing.Size(84, 25); this.tabPage2.Size = new System.Drawing.Size(1282, 664);
this.label9.TabIndex = 32; this.tabPage2.TabIndex = 2;
this.label9.Text = "SAN. Nr"; this.tabPage2.Text = "tabPage2";
this.tabPage2.UseVisualStyleBackColor = true;
// //
// txt_san_nr // dgv_sanierungen
// //
this.txt_san_nr.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.dgv_sanierungen.AllowUserToOrderColumns = true;
this.txt_san_nr.Location = new System.Drawing.Point(745, 29); this.dgv_sanierungen.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.txt_san_nr.Name = "txt_san_nr"; this.dgv_sanierungen.Location = new System.Drawing.Point(51, 6);
this.txt_san_nr.Size = new System.Drawing.Size(191, 30); this.dgv_sanierungen.Name = "dgv_sanierungen";
this.txt_san_nr.TabIndex = 7; this.dgv_sanierungen.RowHeadersWidth = 51;
this.dgv_sanierungen.RowTemplate.Height = 24;
this.dgv_sanierungen.Size = new System.Drawing.Size(824, 208);
this.dgv_sanierungen.TabIndex = 0;
// //
// frmObjektEdit // frmObjektEdit
// //
@@ -558,6 +585,8 @@
this.groupBox2.PerformLayout(); this.groupBox2.PerformLayout();
this.Kanalinformationen.ResumeLayout(false); this.Kanalinformationen.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dgv_schadenkuerzel)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dgv_schadenkuerzel)).EndInit();
this.tabPage2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dgv_sanierungen)).EndInit();
this.ResumeLayout(false); this.ResumeLayout(false);
} }
@@ -602,5 +631,7 @@
private System.Windows.Forms.DataGridView dgv_schadenkuerzel; private System.Windows.Forms.DataGridView dgv_schadenkuerzel;
private System.Windows.Forms.TextBox txt_san_nr; private System.Windows.Forms.TextBox txt_san_nr;
private System.Windows.Forms.Label label9; private System.Windows.Forms.Label label9;
private System.Windows.Forms.TabPage tabPage2;
private System.Windows.Forms.DataGridView dgv_sanierungen;
} }
} }

View File

@@ -36,7 +36,9 @@ namespace SanSystem
btn_close.Text = Global.Instance.language.Labels["btn_close"]; btn_close.Text = Global.Instance.language.Labels["btn_close"];
this.inspektionsobjekt = inspektion; this.inspektionsobjekt = inspektion;
dgv_schadenkuerzel.DataSource = inspektion.Schadenskuerzeln; dgv_schadenkuerzel.DataSource = inspektion.Schadenskuerzeln;
dgv_sanierungen.DataSource = inspektion.AusgefuehrteTaetigkeiten;
foreach(Sanierung san in inspektion.Sanierung) foreach(Sanierung san in inspektion.Sanierung)
{ {