diff --git a/KlassenBIB/Sanierung.cs b/KlassenBIB/Sanierung.cs index 339eb9b..5ee7291 100644 --- a/KlassenBIB/Sanierung.cs +++ b/KlassenBIB/Sanierung.cs @@ -9,6 +9,7 @@ namespace KlassenBIB public abstract class Sanierung { Guid guid; + string projektnummer; decimal tempAusen; decimal tempKanal; string wetter; @@ -21,6 +22,7 @@ namespace KlassenBIB Inspektionsobjekt inspektionsObjekt; public Guid Guid { get => guid; set => guid = value; } + public string ProjektNummer { get => projektnummer; set => projektnummer = value; } public decimal TempAusen { get => tempAusen; set => tempAusen = value; } public decimal TempKanal { get => tempKanal; set => tempKanal = value; } public string Wetter { get => wetter; set => wetter = value; } diff --git a/SanSystem/FrmObjektEdit.Designer.cs b/SanSystem/FrmObjektEdit.Designer.cs new file mode 100644 index 0000000..c54750b --- /dev/null +++ b/SanSystem/FrmObjektEdit.Designer.cs @@ -0,0 +1,469 @@ +namespace SanSystem +{ + partial class frmObjektEdit + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.tabControl1 = new System.Windows.Forms.TabControl(); + this.tabPage1 = new System.Windows.Forms.TabPage(); + this.textBox6 = new System.Windows.Forms.TextBox(); + this.textBox5 = new System.Windows.Forms.TextBox(); + this.textBox4 = new System.Windows.Forms.TextBox(); + this.textBox3 = new System.Windows.Forms.TextBox(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.label6 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.label1 = new System.Windows.Forms.Label(); + this.tabPage2 = new System.Windows.Forms.TabPage(); + this.cb_lb_vorbereitung = new System.Windows.Forms.CheckedListBox(); + this.cb_stvo = new System.Windows.Forms.CheckBox(); + this.cb_wasserhaltung = new System.Windows.Forms.CheckBox(); + this.cb_genehmigung = new System.Windows.Forms.CheckBox(); + this.label7 = new System.Windows.Forms.Label(); + this.label8 = new System.Windows.Forms.Label(); + this.tabPage3 = new System.Windows.Forms.TabPage(); + this.label9 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label14 = new System.Windows.Forms.Label(); + this.label15 = new System.Windows.Forms.Label(); + this.label16 = new System.Windows.Forms.Label(); + this.label17 = new System.Windows.Forms.Label(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.tabControl1.SuspendLayout(); + this.tabPage1.SuspendLayout(); + this.tabPage2.SuspendLayout(); + this.tabPage3.SuspendLayout(); + this.groupBox1.SuspendLayout(); + this.SuspendLayout(); + // + // tabControl1 + // + this.tabControl1.Controls.Add(this.tabPage1); + this.tabControl1.Controls.Add(this.tabPage2); + this.tabControl1.Controls.Add(this.tabPage3); + this.tabControl1.Location = new System.Drawing.Point(12, 12); + this.tabControl1.Name = "tabControl1"; + this.tabControl1.SelectedIndex = 0; + this.tabControl1.Size = new System.Drawing.Size(776, 426); + this.tabControl1.TabIndex = 0; + // + // tabPage1 + // + this.tabPage1.Controls.Add(this.textBox6); + this.tabPage1.Controls.Add(this.textBox5); + this.tabPage1.Controls.Add(this.textBox4); + this.tabPage1.Controls.Add(this.textBox3); + this.tabPage1.Controls.Add(this.textBox2); + this.tabPage1.Controls.Add(this.textBox1); + this.tabPage1.Controls.Add(this.label6); + this.tabPage1.Controls.Add(this.label5); + this.tabPage1.Controls.Add(this.label4); + this.tabPage1.Controls.Add(this.label3); + this.tabPage1.Controls.Add(this.label2); + this.tabPage1.Controls.Add(this.label1); + this.tabPage1.Location = new System.Drawing.Point(4, 22); + this.tabPage1.Name = "tabPage1"; + this.tabPage1.Padding = new System.Windows.Forms.Padding(3); + this.tabPage1.Size = new System.Drawing.Size(768, 400); + this.tabPage1.TabIndex = 0; + this.tabPage1.Text = "Grunddaten"; + this.tabPage1.UseVisualStyleBackColor = true; + // + // textBox6 + // + this.textBox6.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBox6.Location = new System.Drawing.Point(128, 179); + this.textBox6.Name = "textBox6"; + this.textBox6.Size = new System.Drawing.Size(221, 26); + this.textBox6.TabIndex = 11; + // + // textBox5 + // + this.textBox5.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBox5.Location = new System.Drawing.Point(128, 149); + this.textBox5.Name = "textBox5"; + this.textBox5.Size = new System.Drawing.Size(221, 26); + this.textBox5.TabIndex = 10; + // + // textBox4 + // + this.textBox4.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBox4.Location = new System.Drawing.Point(128, 113); + this.textBox4.Name = "textBox4"; + this.textBox4.Size = new System.Drawing.Size(221, 26); + this.textBox4.TabIndex = 9; + // + // textBox3 + // + this.textBox3.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBox3.Location = new System.Drawing.Point(128, 82); + this.textBox3.Name = "textBox3"; + this.textBox3.Size = new System.Drawing.Size(221, 26); + this.textBox3.TabIndex = 8; + // + // textBox2 + // + this.textBox2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBox2.Location = new System.Drawing.Point(128, 52); + this.textBox2.Name = "textBox2"; + this.textBox2.Size = new System.Drawing.Size(221, 26); + this.textBox2.TabIndex = 7; + // + // textBox1 + // + this.textBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBox1.Location = new System.Drawing.Point(128, 20); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(221, 26); + this.textBox1.TabIndex = 6; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label6.Location = new System.Drawing.Point(6, 181); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(112, 20); + this.label6.TabIndex = 5; + this.label6.Text = "Haltungslänge"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label5.Location = new System.Drawing.Point(6, 148); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(65, 20); + this.label5.TabIndex = 4; + this.label5.Text = "Material"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label4.Location = new System.Drawing.Point(6, 115); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(104, 20); + this.label4.TabIndex = 3; + this.label4.Text = "Durchmesser"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label3.Location = new System.Drawing.Point(6, 84); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(76, 20); + this.label3.TabIndex = 2; + this.label3.Text = "Bis Punkt"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label2.Location = new System.Drawing.Point(6, 54); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(83, 20); + this.label2.TabIndex = 1; + this.label2.Text = "Von Punkt"; + // + // 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(6, 23); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(116, 20); + this.label1.TabIndex = 0; + this.label1.Text = "Projektnummer"; + // + // tabPage2 + // + this.tabPage2.Controls.Add(this.label8); + this.tabPage2.Controls.Add(this.label7); + this.tabPage2.Controls.Add(this.cb_lb_vorbereitung); + this.tabPage2.Controls.Add(this.cb_stvo); + this.tabPage2.Controls.Add(this.cb_wasserhaltung); + this.tabPage2.Controls.Add(this.cb_genehmigung); + this.tabPage2.Location = new System.Drawing.Point(4, 22); + this.tabPage2.Name = "tabPage2"; + this.tabPage2.Padding = new System.Windows.Forms.Padding(3); + this.tabPage2.Size = new System.Drawing.Size(768, 400); + this.tabPage2.TabIndex = 1; + this.tabPage2.Text = "Vorraussetzungen"; + this.tabPage2.UseVisualStyleBackColor = true; + // + // cb_lb_vorbereitung + // + this.cb_lb_vorbereitung.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.cb_lb_vorbereitung.FormattingEnabled = true; + this.cb_lb_vorbereitung.Items.AddRange(new object[] { + "HD - Reinigung", + "Mechanisch", + "Roboter"}); + this.cb_lb_vorbereitung.Location = new System.Drawing.Point(179, 156); + this.cb_lb_vorbereitung.Name = "cb_lb_vorbereitung"; + this.cb_lb_vorbereitung.Size = new System.Drawing.Size(142, 67); + this.cb_lb_vorbereitung.TabIndex = 4; + // + // cb_stvo + // + this.cb_stvo.AutoSize = true; + this.cb_stvo.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.cb_stvo.Location = new System.Drawing.Point(39, 97); + this.cb_stvo.Name = "cb_stvo"; + this.cb_stvo.Size = new System.Drawing.Size(263, 24); + this.cb_stvo.TabIndex = 2; + this.cb_stvo.Text = "Es wurde nach StVO abgesichert"; + this.cb_stvo.UseVisualStyleBackColor = true; + // + // cb_wasserhaltung + // + this.cb_wasserhaltung.AutoSize = true; + this.cb_wasserhaltung.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.cb_wasserhaltung.Location = new System.Drawing.Point(39, 64); + this.cb_wasserhaltung.Name = "cb_wasserhaltung"; + this.cb_wasserhaltung.Size = new System.Drawing.Size(269, 24); + this.cb_wasserhaltung.TabIndex = 1; + this.cb_wasserhaltung.Text = "Wasserhaltung wurde eingerichtet"; + this.cb_wasserhaltung.UseVisualStyleBackColor = true; + // + // cb_genehmigung + // + this.cb_genehmigung.AutoSize = true; + this.cb_genehmigung.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.cb_genehmigung.Location = new System.Drawing.Point(39, 27); + this.cb_genehmigung.Name = "cb_genehmigung"; + this.cb_genehmigung.Size = new System.Drawing.Size(245, 24); + this.cb_genehmigung.TabIndex = 0; + this.cb_genehmigung.Text = "Genehmigung wurde eingeholt"; + this.cb_genehmigung.UseVisualStyleBackColor = true; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label7.Location = new System.Drawing.Point(39, 156); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(134, 20); + this.label7.TabIndex = 5; + this.label7.Text = "Leitung wurde mit"; + // + // label8 + // + this.label8.AutoSize = true; + this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label8.Location = new System.Drawing.Point(345, 156); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(88, 20); + this.label8.TabIndex = 6; + this.label8.Text = "Vorbereitet"; + // + // tabPage3 + // + this.tabPage3.Controls.Add(this.groupBox1); + this.tabPage3.Controls.Add(this.label13); + this.tabPage3.Controls.Add(this.label12); + this.tabPage3.Controls.Add(this.label11); + this.tabPage3.Controls.Add(this.label10); + this.tabPage3.Controls.Add(this.label9); + this.tabPage3.Location = new System.Drawing.Point(4, 22); + this.tabPage3.Name = "tabPage3"; + this.tabPage3.Padding = new System.Windows.Forms.Padding(3); + this.tabPage3.Size = new System.Drawing.Size(768, 400); + this.tabPage3.TabIndex = 2; + this.tabPage3.Text = "LinerGrundlagen"; + this.tabPage3.UseVisualStyleBackColor = true; + // + // 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(24, 30); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(43, 20); + this.label9.TabIndex = 0; + this.label9.Text = "Harz"; + // + // label10 + // + this.label10.AutoSize = true; + this.label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label10.Location = new System.Drawing.Point(229, 30); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(126, 20); + this.label10.TabIndex = 1; + this.label10.Text = "Charge-Nummer"; + // + // label11 + // + this.label11.AutoSize = true; + this.label11.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label11.Location = new System.Drawing.Point(24, 65); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(110, 20); + this.label11.TabIndex = 2; + this.label11.Text = "Harzbedarf /m"; + // + // label12 + // + this.label12.AutoSize = true; + this.label12.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label12.Location = new System.Drawing.Point(24, 100); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(44, 20); + this.label12.TabIndex = 3; + this.label12.Text = "Liner"; + // + // label13 + // + this.label13.AutoSize = true; + this.label13.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label13.Location = new System.Drawing.Point(229, 100); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(126, 20); + this.label13.TabIndex = 4; + this.label13.Text = "Charge-Nummer"; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label14.Location = new System.Drawing.Point(6, 153); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(129, 20); + this.label14.TabIndex = 5; + this.label14.Text = "Temperatur Harz"; + // + // label15 + // + this.label15.AutoSize = true; + this.label15.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label15.Location = new System.Drawing.Point(2, 31); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(166, 20); + this.label15.TabIndex = 6; + this.label15.Text = "Datum der Kalibierung"; + // + // label16 + // + this.label16.AutoSize = true; + this.label16.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label16.Location = new System.Drawing.Point(2, 80); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(127, 20); + this.label16.TabIndex = 7; + this.label16.Text = "Walzen-Abstand"; + // + // label17 + // + this.label17.AutoSize = true; + this.label17.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label17.Location = new System.Drawing.Point(229, 88); + this.label17.Name = "label17"; + this.label17.Size = new System.Drawing.Size(68, 20); + this.label17.TabIndex = 8; + this.label17.Text = "Vakuum"; + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.label17); + this.groupBox1.Controls.Add(this.label14); + this.groupBox1.Controls.Add(this.label16); + this.groupBox1.Controls.Add(this.label15); + this.groupBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.groupBox1.Location = new System.Drawing.Point(27, 148); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(502, 213); + this.groupBox1.TabIndex = 9; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "Kalibrierung"; + // + // frmObjektEdit + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(800, 450); + this.Controls.Add(this.tabControl1); + this.Name = "frmObjektEdit"; + this.Text = "FrmObjektEdit"; + this.tabControl1.ResumeLayout(false); + this.tabPage1.ResumeLayout(false); + this.tabPage1.PerformLayout(); + this.tabPage2.ResumeLayout(false); + this.tabPage2.PerformLayout(); + this.tabPage3.ResumeLayout(false); + this.tabPage3.PerformLayout(); + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.TabControl tabControl1; + private System.Windows.Forms.TabPage tabPage1; + private System.Windows.Forms.TabPage tabPage2; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.TextBox textBox6; + private System.Windows.Forms.TextBox textBox5; + private System.Windows.Forms.TextBox textBox4; + private System.Windows.Forms.TextBox textBox3; + private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.CheckedListBox cb_lb_vorbereitung; + private System.Windows.Forms.CheckBox cb_stvo; + private System.Windows.Forms.CheckBox cb_wasserhaltung; + private System.Windows.Forms.CheckBox cb_genehmigung; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.TabPage tabPage3; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.Label label17; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.Label label16; + private System.Windows.Forms.Label label15; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label9; + } +} \ No newline at end of file diff --git a/SanSystem/FrmObjektEdit.cs b/SanSystem/FrmObjektEdit.cs new file mode 100644 index 0000000..9769ef4 --- /dev/null +++ b/SanSystem/FrmObjektEdit.cs @@ -0,0 +1,20 @@ +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 frmObjektEdit : Form + { + public frmObjektEdit() + { + InitializeComponent(); + } + } +} diff --git a/SanSystem/FrmObjektEdit.resx b/SanSystem/FrmObjektEdit.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/SanSystem/FrmObjektEdit.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/SanSystem/Properties/DataSources/KlassenBIB.Strasse.datasource b/SanSystem/Properties/DataSources/KlassenBIB.Strasse.datasource new file mode 100644 index 0000000..8b177fd --- /dev/null +++ b/SanSystem/Properties/DataSources/KlassenBIB.Strasse.datasource @@ -0,0 +1,10 @@ + + + + KlassenBIB.Strasse, KlassenBIB, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + \ No newline at end of file diff --git a/SanSystem/SanSystem.csproj b/SanSystem/SanSystem.csproj index 0627e9f..52a77d1 100644 --- a/SanSystem/SanSystem.csproj +++ b/SanSystem/SanSystem.csproj @@ -45,6 +45,12 @@ + + Form + + + frmObjektEdit.cs + Form @@ -65,6 +71,9 @@ + + frmObjektEdit.cs + frmObjekteList.cs @@ -83,6 +92,7 @@ True Resources.resx + SettingsSingleFileGenerator Settings.Designer.cs diff --git a/SanSystem/frmMain.cs b/SanSystem/frmMain.cs index 048af5e..6b50d00 100644 --- a/SanSystem/frmMain.cs +++ b/SanSystem/frmMain.cs @@ -44,6 +44,10 @@ namespace SanSystem frmStrassenList strassenList = new frmStrassenList(); strassenList.MdiParent = this; strassenList.Show(); + + + frmObjektEdit frmObjektEdit = new frmObjektEdit(); + frmObjektEdit.Show(); } private void frm_main_FormClosing(object sender, FormClosingEventArgs e) diff --git a/SanSystem/frmObjekteList.Designer.cs b/SanSystem/frmObjekteList.Designer.cs index fe1da14..d8a1635 100644 --- a/SanSystem/frmObjekteList.Designer.cs +++ b/SanSystem/frmObjekteList.Designer.cs @@ -28,41 +28,114 @@ /// private void InitializeComponent() { + this.components = new System.ComponentModel.Container(); this.dGObjekte = new System.Windows.Forms.DataGridView(); this.button1 = new System.Windows.Forms.Button(); + this.strasseBindingSource = new System.Windows.Forms.BindingSource(this.components); + this.objektbezeichnungDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.vonPunktDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.bisPunktDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.rohrMaterialDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.kanalrohrweiteDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.haltungslaengeDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.sanierungDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); ((System.ComponentModel.ISupportInitialize)(this.dGObjekte)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.strasseBindingSource)).BeginInit(); this.SuspendLayout(); // // dGObjekte // this.dGObjekte.AllowUserToOrderColumns = true; + this.dGObjekte.AutoGenerateColumns = false; this.dGObjekte.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.dGObjekte.Location = new System.Drawing.Point(12, 12); + this.dGObjekte.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.objektbezeichnungDataGridViewTextBoxColumn, + this.vonPunktDataGridViewTextBoxColumn, + this.bisPunktDataGridViewTextBoxColumn, + this.rohrMaterialDataGridViewTextBoxColumn, + this.kanalrohrweiteDataGridViewTextBoxColumn, + this.haltungslaengeDataGridViewTextBoxColumn, + this.sanierungDataGridViewTextBoxColumn}); + this.dGObjekte.DataMember = "Objekte"; + this.dGObjekte.DataSource = this.strasseBindingSource; + this.dGObjekte.Location = new System.Drawing.Point(9, 10); + this.dGObjekte.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.dGObjekte.Name = "dGObjekte"; this.dGObjekte.RowTemplate.Height = 24; - this.dGObjekte.Size = new System.Drawing.Size(348, 163); + this.dGObjekte.Size = new System.Drawing.Size(951, 361); this.dGObjekte.TabIndex = 0; // // button1 // - this.button1.Location = new System.Drawing.Point(448, 51); + this.button1.Location = new System.Drawing.Point(763, 387); + this.button1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(136, 124); + this.button1.Size = new System.Drawing.Size(102, 101); this.button1.TabIndex = 1; this.button1.Text = "button1"; this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.button1_Click); // + // strasseBindingSource + // + this.strasseBindingSource.DataSource = typeof(KlassenBIB.Strasse); + // + // objektbezeichnungDataGridViewTextBoxColumn + // + this.objektbezeichnungDataGridViewTextBoxColumn.DataPropertyName = "Objektbezeichnung"; + this.objektbezeichnungDataGridViewTextBoxColumn.HeaderText = "Objektbezeichnung"; + this.objektbezeichnungDataGridViewTextBoxColumn.Name = "objektbezeichnungDataGridViewTextBoxColumn"; + // + // vonPunktDataGridViewTextBoxColumn + // + this.vonPunktDataGridViewTextBoxColumn.DataPropertyName = "VonPunkt"; + this.vonPunktDataGridViewTextBoxColumn.HeaderText = "VonPunkt"; + this.vonPunktDataGridViewTextBoxColumn.Name = "vonPunktDataGridViewTextBoxColumn"; + // + // bisPunktDataGridViewTextBoxColumn + // + this.bisPunktDataGridViewTextBoxColumn.DataPropertyName = "BisPunkt"; + this.bisPunktDataGridViewTextBoxColumn.HeaderText = "BisPunkt"; + this.bisPunktDataGridViewTextBoxColumn.Name = "bisPunktDataGridViewTextBoxColumn"; + // + // rohrMaterialDataGridViewTextBoxColumn + // + this.rohrMaterialDataGridViewTextBoxColumn.DataPropertyName = "RohrMaterial"; + this.rohrMaterialDataGridViewTextBoxColumn.HeaderText = "RohrMaterial"; + this.rohrMaterialDataGridViewTextBoxColumn.Name = "rohrMaterialDataGridViewTextBoxColumn"; + // + // kanalrohrweiteDataGridViewTextBoxColumn + // + this.kanalrohrweiteDataGridViewTextBoxColumn.DataPropertyName = "Kanalrohrweite"; + this.kanalrohrweiteDataGridViewTextBoxColumn.HeaderText = "Kanalrohrweite"; + this.kanalrohrweiteDataGridViewTextBoxColumn.Name = "kanalrohrweiteDataGridViewTextBoxColumn"; + // + // haltungslaengeDataGridViewTextBoxColumn + // + this.haltungslaengeDataGridViewTextBoxColumn.DataPropertyName = "Haltungslaenge"; + this.haltungslaengeDataGridViewTextBoxColumn.HeaderText = "Haltungslaenge"; + this.haltungslaengeDataGridViewTextBoxColumn.Name = "haltungslaengeDataGridViewTextBoxColumn"; + // + // sanierungDataGridViewTextBoxColumn + // + this.sanierungDataGridViewTextBoxColumn.DataPropertyName = "Sanierung"; + this.sanierungDataGridViewTextBoxColumn.HeaderText = "Sanierung"; + this.sanierungDataGridViewTextBoxColumn.Name = "sanierungDataGridViewTextBoxColumn"; + this.sanierungDataGridViewTextBoxColumn.Visible = false; + // // frmObjekteList // - this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(639, 253); + this.ClientSize = new System.Drawing.Size(971, 499); this.Controls.Add(this.button1); this.Controls.Add(this.dGObjekte); + this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.Name = "frmObjekteList"; this.Text = "frmObjekteList"; + this.Load += new System.EventHandler(this.frmObjekteList_Load); ((System.ComponentModel.ISupportInitialize)(this.dGObjekte)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.strasseBindingSource)).EndInit(); this.ResumeLayout(false); } @@ -71,5 +144,13 @@ private System.Windows.Forms.DataGridView dGObjekte; private System.Windows.Forms.Button button1; + private System.Windows.Forms.DataGridViewTextBoxColumn objektbezeichnungDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn vonPunktDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn bisPunktDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn rohrMaterialDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn kanalrohrweiteDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn haltungslaengeDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn sanierungDataGridViewTextBoxColumn; + private System.Windows.Forms.BindingSource strasseBindingSource; } } \ No newline at end of file diff --git a/SanSystem/frmObjekteList.cs b/SanSystem/frmObjekteList.cs index e9429df..92fcf38 100644 --- a/SanSystem/frmObjekteList.cs +++ b/SanSystem/frmObjekteList.cs @@ -25,22 +25,31 @@ namespace SanSystem bs.DataSource = street; this.strasse = strasse; - dGObjekte.DataSource = bs; //strasse.Objekte; + //dGObjekte.BindingContext = strasse.Objekte; + //dGObjekte.DataSource = strasse.Objekte;// bs; //strasse.Objekte; + //dGObjekte.AutoGenerateColumns = false; } private void button1_Click(object sender, EventArgs e) { - street.Add(new Strasse() + /*street.Add(new Strasse() { Strassename = "XSSD" }); + */ - /* strasse.Objekte.Add(new Inspektionsobjekt() { Objektbezeichnung = "1229292" }); - */ + dGObjekte.DataSource = null; + dGObjekte.DataSource = strasse.Objekte; + + } + + private void frmObjekteList_Load(object sender, EventArgs e) + { + dGObjekte.DataSource = strasse.Objekte; } } } diff --git a/SanSystem/frmObjekteList.resx b/SanSystem/frmObjekteList.resx index 1af7de1..a2902ca 100644 --- a/SanSystem/frmObjekteList.resx +++ b/SanSystem/frmObjekteList.resx @@ -117,4 +117,10 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 17, 17 + + + 17, 17 + \ No newline at end of file