Güteschutz erweitert

This commit is contained in:
HuskyTeufel
2020-04-06 15:14:19 +02:00
parent f8a324210b
commit 3f428be5f6
13 changed files with 144 additions and 53 deletions

View File

@@ -28,6 +28,5 @@ namespace KlassenBIB
public double Vakuum { get; set; } public double Vakuum { get; set; }
public string HarzTyp { get; set; } public string HarzTyp { get; set; }
public double Walzenabstand { get; set; } public double Walzenabstand { get; set; }
} }
} }

View File

@@ -31,6 +31,9 @@ namespace KlassenBIB
uint rueckholgeschwindigkeit; uint rueckholgeschwindigkeit;
bool geschlosseneEnde = false; // Todo Rausschmeißen bool geschlosseneEnde = false; // Todo Rausschmeißen
bool preliner = false; bool preliner = false;
int lagerungTemperatur = 6;
int temperaturEinbau = 19;
double inversionsDruck = 0.6;
DateTime anfangAushaertung; DateTime anfangAushaertung;
DateTime endeAushaertung; DateTime endeAushaertung;
string ort; string ort;
@@ -39,6 +42,7 @@ namespace KlassenBIB
DateTime endeKalibirierung; DateTime endeKalibirierung;
AbstractImprägnier imprägnierungsbericht; AbstractImprägnier imprägnierungsbericht;
Dictionary<int, TimeSpan> lagerungZeiten = new Dictionary<int, TimeSpan>();
public double GetGesamtHarzbedarf(double haltungslaenge) public double GetGesamtHarzbedarf(double haltungslaenge)
@@ -148,7 +152,12 @@ namespace KlassenBIB
{"harz_type","" }, {"harz_type","" },
{"preliner_verwendet","" }, {"preliner_verwendet","" },
{"geschlossene_ende","" }, {"geschlossene_ende","" },
{"schlauch_dn","" } {"schlauch_dn","" },
{"TV_Kontrolle","" },
{"Einbau_Temperatur","" },
{"Inversion_Druck","" },
{"Lagerung_Text","" },
{"Lagerung_Temp","" }
}; };
double LaengeGesamt = this.Inspektionsobjekt.Haltungslaenge + this.Inspektionsobjekt.Schachtlaenge; double LaengeGesamt = this.Inspektionsobjekt.Haltungslaenge + this.Inspektionsobjekt.Schachtlaenge;
@@ -198,17 +207,57 @@ namespace KlassenBIB
grunddaten["UVImageSpeed"] = Path.Combine(destinationPath, "linerGraph_speed.jpg"); grunddaten["UVImageSpeed"] = Path.Combine(destinationPath, "linerGraph_speed.jpg");
grunddaten["rueckhol_speed"] = rueckholgeschwindigkeit; grunddaten["rueckhol_speed"] = rueckholgeschwindigkeit;
grunddaten["liner_type"] = LinerTyp; grunddaten["liner_type"] = LinerTyp;
grunddaten["TV_Kontrolle"] = string.Format("Ja, am {0}", Inspektionsobjekt.HaltungGemessen.ToString());
grunddaten["harz_type"] = this.imprägnierungsbericht == null ? HarzTyp : this.imprägnierungsbericht.HarzTyp; grunddaten["harz_type"] = this.imprägnierungsbericht == null ? HarzTyp : this.imprägnierungsbericht.HarzTyp;
grunddaten["Lagerung_Temp"] = lagerungTemperatur;
grunddaten["Einbau_Temperatur"] = temperaturEinbau;
grunddaten["Inversion_Druck"] = inversionsDruck;
grunddaten["Lagerung_Text"] = GetLagerungText(DateTime.Parse(imprägnierungsbericht.ImprägnierDatum), this.Datum,lagerungTemperatur);
return grunddaten; return grunddaten;
} }
public InlinerSanierung() public InlinerSanierung()
{ {
//datumKalibrierung = new DateTime(); //datumKalibrierung = new DateTime();
lagerungZeiten.Add(10, TimeSpan.FromDays(90));
lagerungZeiten.Add(20, TimeSpan.FromDays(30));
lagerungZeiten.Add(25, TimeSpan.FromDays(7));
lagerungZeiten.Add(31, TimeSpan.FromDays(3));
Verzeichnispfad = "UVAnlage"; Verzeichnispfad = "UVAnlage";
if (datumKalibrierung <= DateTime.MinValue || datumKalibrierung >= DateTime.MaxValue) datumKalibrierung = DateTime.Now; if (datumKalibrierung <= DateTime.MinValue || datumKalibrierung >= DateTime.MaxValue) datumKalibrierung = DateTime.Now;
} }
private TimeSpan GetMaxLagerung(int lagerungTemp)
{
Dictionary<int, TimeSpan>.KeyCollection x = lagerungZeiten.Keys;
int laufer = 0;
if (lagerungTemp > 31) lagerungTemp = 31;
foreach(int temp in x)
{
if(lagerungTemp <= temp)
{
laufer = temp;
break;
}
}
return lagerungZeiten[laufer];
}
private string GetLagerungText(DateTime Kalibrierdatum, DateTime Einbaudatum, int lagerungTemperatur)
{
TimeSpan lagerungszeit = GetMaxLagerung(lagerungTemperatur);
if(Einbaudatum.Subtract(Kalibrierdatum) <= lagerungszeit)
{
return "Die Lagerungsdauer wurde somit nicht überschritten";
}
return "Die Lagerungsdauer wurde somit überschritten";
}
public double KalibrierUnterdruck { get => kalibrierUnterdruck; set => kalibrierUnterdruck = value; } public double KalibrierUnterdruck { get => kalibrierUnterdruck; set => kalibrierUnterdruck = value; }
public double KalibierWalzenAbstand { get => kalibierWalzenAbstand; set => kalibierWalzenAbstand = value; } public double KalibierWalzenAbstand { get => kalibierWalzenAbstand; set => kalibierWalzenAbstand = value; }
@@ -256,6 +305,9 @@ namespace KlassenBIB
public DateTime EndeKalibirierung { get => endeKalibirierung; set => endeKalibirierung = value; } public DateTime EndeKalibirierung { get => endeKalibirierung; set => endeKalibirierung = value; }
public bool Preliner { get => preliner; set => preliner = value; } public bool Preliner { get => preliner; set => preliner = value; }
public int LagerungTemperatur { get => lagerungTemperatur; set => lagerungTemperatur = value; }
public int EinbauTemperatur { get => temperaturEinbau; set => temperaturEinbau = value; }
public double InversionsDruck { get => inversionsDruck; set => inversionsDruck = value; }
public AbstractImprägnier Imprägnierungsbericht { get => imprägnierungsbericht; set => imprägnierungsbericht = value; } public AbstractImprägnier Imprägnierungsbericht { get => imprägnierungsbericht; set => imprägnierungsbericht = value; }
} }
} }

View File

@@ -28,24 +28,24 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.ucLinerGrundlagen1 = new SanSystem.UCLinerGrundlagenBrawo(); this.ucWerkseitigImprägniert1 = new SanSystem.UCWerkseitigImprägniert();
this.SuspendLayout(); this.SuspendLayout();
// //
// ucLinerGrundlagen1 // ucWerkseitigImprägniert1
// //
this.ucLinerGrundlagen1.BackColor = System.Drawing.SystemColors.Window; this.ucWerkseitigImprägniert1.Location = new System.Drawing.Point(12, 22);
this.ucLinerGrundlagen1.Location = new System.Drawing.Point(12, 12); this.ucWerkseitigImprägniert1.Name = "ucWerkseitigImprägniert1";
this.ucLinerGrundlagen1.Name = "ucLinerGrundlagen1"; this.ucWerkseitigImprägniert1.Size = new System.Drawing.Size(949, 343);
this.ucLinerGrundlagen1.Size = new System.Drawing.Size(731, 456); this.ucWerkseitigImprägniert1.TabIndex = 0;
this.ucLinerGrundlagen1.TabIndex = 0;
// //
// FrmKalibrierungFestlegung // frmKalibrierungFestlegung
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(757, 478); this.ClientSize = new System.Drawing.Size(1009, 588);
this.Controls.Add(this.ucLinerGrundlagen1); this.Controls.Add(this.ucWerkseitigImprägniert1);
this.Name = "FrmKalibrierungFestlegung"; this.Margin = new System.Windows.Forms.Padding(4);
this.Name = "frmKalibrierungFestlegung";
this.Text = "FrmKalibrierungFestlegung"; this.Text = "FrmKalibrierungFestlegung";
this.ResumeLayout(false); this.ResumeLayout(false);
@@ -53,6 +53,6 @@
#endregion #endregion
private UCLinerGrundlagenBrawo ucLinerGrundlagen1; private UCWerkseitigImprägniert ucWerkseitigImprägniert1;
} }
} }

View File

@@ -22,7 +22,8 @@ namespace SanSystem
public frmKalibrierungFestlegung(List<Inspektionsobjekt> inspektionsobjekts) public frmKalibrierungFestlegung(List<Inspektionsobjekt> inspektionsobjekts)
{ {
InitializeComponent(); InitializeComponent();
ucLinerGrundlagen1.inspektionsobjekts = inspektionsobjekts; //ucWerkseitigImprägniert1.
//ucLinerGrundlagen1.inspektionsobjekts = inspektionsobjekts;
} }
} }
} }

View File

@@ -203,9 +203,7 @@
<Compile Include="frmSelectNewSan.Designer.cs"> <Compile Include="frmSelectNewSan.Designer.cs">
<DependentUpon>frmSelectNewSan.cs</DependentUpon> <DependentUpon>frmSelectNewSan.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="frmStrassenList.cs"> <Compile Include="frmStrassenList.cs" />
<SubType>Form</SubType>
</Compile>
<Compile Include="frmStrassenList.Designer.cs"> <Compile Include="frmStrassenList.Designer.cs">
<DependentUpon>frmStrassenList.cs</DependentUpon> <DependentUpon>frmStrassenList.cs</DependentUpon>
</Compile> </Compile>
@@ -232,11 +230,11 @@
<Compile Include="UCLinerGrundlagenBrawo.Designer.cs"> <Compile Include="UCLinerGrundlagenBrawo.Designer.cs">
<DependentUpon>UCLinerGrundlagenBrawo.cs</DependentUpon> <DependentUpon>UCLinerGrundlagenBrawo.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="UCSchachtanbindung.cs"> <Compile Include="UCWeitereFotos.cs">
<SubType>UserControl</SubType> <SubType>UserControl</SubType>
</Compile> </Compile>
<Compile Include="UCSchachtanbindung.Designer.cs"> <Compile Include="UCWeitereFotos.Designer.cs">
<DependentUpon>UCSchachtanbindung.cs</DependentUpon> <DependentUpon>UCWeitereFotos.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="UCWerkseitigImprägniert.cs"> <Compile Include="UCWerkseitigImprägniert.cs">
<SubType>UserControl</SubType> <SubType>UserControl</SubType>
@@ -308,8 +306,8 @@
<EmbeddedResource Include="UCLinerGrundlagenBrawo.resx"> <EmbeddedResource Include="UCLinerGrundlagenBrawo.resx">
<DependentUpon>UCLinerGrundlagenBrawo.cs</DependentUpon> <DependentUpon>UCLinerGrundlagenBrawo.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="UCSchachtanbindung.resx"> <EmbeddedResource Include="UCWeitereFotos.resx">
<DependentUpon>UCSchachtanbindung.cs</DependentUpon> <DependentUpon>UCWeitereFotos.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<None Include="documents\JUME\KalibrierungAuflistung.docx"> <None Include="documents\JUME\KalibrierungAuflistung.docx">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>

View File

@@ -312,11 +312,17 @@ namespace SanSystem
foreach(SavedBilder bild in schacht.SavedBilders) foreach(SavedBilder bild in schacht.SavedBilders)
{ {
string komment = String.Empty;
if (schacht.SchachtNummer != null)
{
komment = string.Format("{0} von Schacht: {1}", bild.Bildname, schacht.SchachtNummer);
}
bilderObjects.Add(new BilderObject() bilderObjects.Add(new BilderObject()
{ {
Path = bild.Speicherpfad, Path = bild.Speicherpfad,
Kommentar = string.Format("{0} von Schacht: {1}", bild.Bildname, schacht.SchachtNummer)
}); Kommentar = komment
}) ;
} }

View File

@@ -1,6 +1,6 @@
namespace SanSystem namespace SanSystem
{ {
partial class UCSchachtanbindung partial class UCWeitereFotos
{ {
/// <summary> /// <summary>
/// Erforderliche Designervariable. /// Erforderliche Designervariable.
@@ -39,6 +39,7 @@
this.löschenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.löschenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.cb_erledigt = new System.Windows.Forms.CheckBox(); this.cb_erledigt = new System.Windows.Forms.CheckBox();
this.dt_datum = new System.Windows.Forms.DateTimePicker(); this.dt_datum = new System.Windows.Forms.DateTimePicker();
this.txt_FotoBezeichnung = new System.Windows.Forms.TextBox();
((System.ComponentModel.ISupportInitialize)(this.pt_box)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pt_box)).BeginInit();
this.contextMenuStrip1.SuspendLayout(); this.contextMenuStrip1.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
@@ -47,7 +48,7 @@
// //
this.label1.AutoSize = true; 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.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, 22); this.label1.Location = new System.Drawing.Point(14, 44);
this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label1.Name = "label1"; this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(155, 25); this.label1.Size = new System.Drawing.Size(155, 25);
@@ -57,16 +58,16 @@
// txt_schachtnummer // txt_schachtnummer
// //
this.txt_schachtnummer.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txt_schachtnummer.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.txt_schachtnummer.Location = new System.Drawing.Point(188, 18); this.txt_schachtnummer.Location = new System.Drawing.Point(190, 44);
this.txt_schachtnummer.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.txt_schachtnummer.Margin = new System.Windows.Forms.Padding(4);
this.txt_schachtnummer.Name = "txt_schachtnummer"; this.txt_schachtnummer.Name = "txt_schachtnummer";
this.txt_schachtnummer.Size = new System.Drawing.Size(208, 30); this.txt_schachtnummer.Size = new System.Drawing.Size(208, 30);
this.txt_schachtnummer.TabIndex = 1; this.txt_schachtnummer.TabIndex = 1;
// //
// pt_box // pt_box
// //
this.pt_box.Location = new System.Drawing.Point(17, 58); this.pt_box.Location = new System.Drawing.Point(19, 83);
this.pt_box.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.pt_box.Margin = new System.Windows.Forms.Padding(4);
this.pt_box.Name = "pt_box"; this.pt_box.Name = "pt_box";
this.pt_box.Size = new System.Drawing.Size(800, 401); this.pt_box.Size = new System.Drawing.Size(800, 401);
this.pt_box.TabIndex = 2; this.pt_box.TabIndex = 2;
@@ -75,10 +76,10 @@
// btn_add_bild // btn_add_bild
// //
this.btn_add_bild.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btn_add_bild.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btn_add_bild.Location = new System.Drawing.Point(837, 242); this.btn_add_bild.Location = new System.Drawing.Point(827, 271);
this.btn_add_bild.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.btn_add_bild.Margin = new System.Windows.Forms.Padding(4);
this.btn_add_bild.Name = "btn_add_bild"; this.btn_add_bild.Name = "btn_add_bild";
this.btn_add_bild.Size = new System.Drawing.Size(97, 217); this.btn_add_bild.Size = new System.Drawing.Size(115, 213);
this.btn_add_bild.TabIndex = 3; this.btn_add_bild.TabIndex = 3;
this.btn_add_bild.Text = "Bild Laden"; this.btn_add_bild.Text = "Bild Laden";
this.btn_add_bild.UseVisualStyleBackColor = true; this.btn_add_bild.UseVisualStyleBackColor = true;
@@ -88,10 +89,10 @@
// //
this.lb_pictures.FormattingEnabled = true; this.lb_pictures.FormattingEnabled = true;
this.lb_pictures.ItemHeight = 16; this.lb_pictures.ItemHeight = 16;
this.lb_pictures.Location = new System.Drawing.Point(827, 58); this.lb_pictures.Location = new System.Drawing.Point(827, 83);
this.lb_pictures.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.lb_pictures.Margin = new System.Windows.Forms.Padding(4);
this.lb_pictures.Name = "lb_pictures"; this.lb_pictures.Name = "lb_pictures";
this.lb_pictures.Size = new System.Drawing.Size(107, 180); this.lb_pictures.Size = new System.Drawing.Size(115, 180);
this.lb_pictures.TabIndex = 4; this.lb_pictures.TabIndex = 4;
this.lb_pictures.SelectedIndexChanged += new System.EventHandler(this.lb_pictures_SelectedIndexChanged); this.lb_pictures.SelectedIndexChanged += new System.EventHandler(this.lb_pictures_SelectedIndexChanged);
this.lb_pictures.MouseDown += new System.Windows.Forms.MouseEventHandler(this.lb_pictures_MouseDown); this.lb_pictures.MouseDown += new System.Windows.Forms.MouseEventHandler(this.lb_pictures_MouseDown);
@@ -122,8 +123,8 @@
// //
this.cb_erledigt.AutoSize = true; this.cb_erledigt.AutoSize = true;
this.cb_erledigt.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.cb_erledigt.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.cb_erledigt.Location = new System.Drawing.Point(405, 17); this.cb_erledigt.Location = new System.Drawing.Point(406, 44);
this.cb_erledigt.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.cb_erledigt.Margin = new System.Windows.Forms.Padding(4);
this.cb_erledigt.Name = "cb_erledigt"; this.cb_erledigt.Name = "cb_erledigt";
this.cb_erledigt.Size = new System.Drawing.Size(119, 33); this.cb_erledigt.Size = new System.Drawing.Size(119, 33);
this.cb_erledigt.TabIndex = 6; this.cb_erledigt.TabIndex = 6;
@@ -134,16 +135,25 @@
// //
this.dt_datum.CalendarFont = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.dt_datum.CalendarFont = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.dt_datum.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.dt_datum.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.dt_datum.Location = new System.Drawing.Point(537, 18); this.dt_datum.Location = new System.Drawing.Point(538, 45);
this.dt_datum.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.dt_datum.Margin = new System.Windows.Forms.Padding(4);
this.dt_datum.Name = "dt_datum"; this.dt_datum.Name = "dt_datum";
this.dt_datum.Size = new System.Drawing.Size(396, 30); this.dt_datum.Size = new System.Drawing.Size(396, 30);
this.dt_datum.TabIndex = 7; this.dt_datum.TabIndex = 7;
// //
// UCSchachtanbindung // txt_FotoBezeichnung
//
this.txt_FotoBezeichnung.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.txt_FotoBezeichnung.Location = new System.Drawing.Point(190, 3);
this.txt_FotoBezeichnung.Name = "txt_FotoBezeichnung";
this.txt_FotoBezeichnung.Size = new System.Drawing.Size(208, 30);
this.txt_FotoBezeichnung.TabIndex = 8;
//
// UCWeitereFotos
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.txt_FotoBezeichnung);
this.Controls.Add(this.dt_datum); this.Controls.Add(this.dt_datum);
this.Controls.Add(this.cb_erledigt); this.Controls.Add(this.cb_erledigt);
this.Controls.Add(this.lb_pictures); this.Controls.Add(this.lb_pictures);
@@ -151,9 +161,9 @@
this.Controls.Add(this.pt_box); this.Controls.Add(this.pt_box);
this.Controls.Add(this.txt_schachtnummer); this.Controls.Add(this.txt_schachtnummer);
this.Controls.Add(this.label1); this.Controls.Add(this.label1);
this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.Margin = new System.Windows.Forms.Padding(4);
this.Name = "UCSchachtanbindung"; this.Name = "UCWeitereFotos";
this.Size = new System.Drawing.Size(949, 479); this.Size = new System.Drawing.Size(1054, 618);
this.Load += new System.EventHandler(this.UCSchachtanbindung_Load); this.Load += new System.EventHandler(this.UCSchachtanbindung_Load);
((System.ComponentModel.ISupportInitialize)(this.pt_box)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pt_box)).EndInit();
this.contextMenuStrip1.ResumeLayout(false); this.contextMenuStrip1.ResumeLayout(false);
@@ -174,5 +184,6 @@
private System.Windows.Forms.ToolStripMenuItem löschenToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem löschenToolStripMenuItem;
private System.Windows.Forms.CheckBox cb_erledigt; private System.Windows.Forms.CheckBox cb_erledigt;
private System.Windows.Forms.DateTimePicker dt_datum; private System.Windows.Forms.DateTimePicker dt_datum;
private System.Windows.Forms.TextBox txt_FotoBezeichnung;
} }
} }

View File

@@ -16,7 +16,7 @@ namespace SanSystem
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
public partial class UCSchachtanbindung : UserControl public partial class UCWeitereFotos : UserControl
{ {
SchachtAnbindung schacht = null; SchachtAnbindung schacht = null;
string mydestination = string.Empty; string mydestination = string.Empty;
@@ -24,7 +24,7 @@ namespace SanSystem
/// ///
/// </summary> /// </summary>
/// <param name="schacht"></param> /// <param name="schacht"></param>
public UCSchachtanbindung(SchachtAnbindung schacht) public UCWeitereFotos(SchachtAnbindung schacht)
{ {
InitializeComponent(); InitializeComponent();
this.schacht = schacht; this.schacht = schacht;
@@ -33,7 +33,7 @@ namespace SanSystem
/// <summary> /// <summary>
/// Sollte nicht verwendet werden /// Sollte nicht verwendet werden
/// </summary> /// </summary>
public UCSchachtanbindung() public UCWeitereFotos()
{ {
} }
@@ -72,6 +72,7 @@ namespace SanSystem
if (pt_box == null) throw new Exception(); if (pt_box == null) throw new Exception();
string speicherpfad = Path.Combine(mydestination, targetname); string speicherpfad = Path.Combine(mydestination, targetname);
File.Copy(source, speicherpfad); File.Copy(source, speicherpfad);
bilder.Bildname = "Anbindung"; bilder.Bildname = "Anbindung";
bilder.Speicherpfad = speicherpfad; bilder.Speicherpfad = speicherpfad;
schacht.SavedBilders.Add(bilder); schacht.SavedBilders.Add(bilder);
@@ -106,7 +107,6 @@ namespace SanSystem
schacht.SavedBilders.Remove(bild); schacht.SavedBilders.Remove(bild);
pt_box.Image = null; pt_box.Image = null;
pt_box.Dispose(); pt_box.Dispose();
//File.Delete(bild.Speicherpfad);
lb_pictures.DataSource = null; lb_pictures.DataSource = null;
lb_pictures.DataSource = schacht.SavedBilders; lb_pictures.DataSource = schacht.SavedBilders;
} }

View File

@@ -15,6 +15,11 @@ namespace SanSystem
{ {
InlinerSanierung inliner; InlinerSanierung inliner;
public UCWerkseitigImprägniert()
{
InitializeComponent();
}
public UCWerkseitigImprägniert(InlinerSanierung inliner) public UCWerkseitigImprägniert(InlinerSanierung inliner)
{ {
InitializeComponent(); InitializeComponent();
@@ -39,6 +44,7 @@ namespace SanSystem
index++; index++;
} }
if (index > Database.Datenbank.Instance.MainDatenbank.ImprägnierBerichtListe.Capacity) index = 0; if (index > Database.Datenbank.Instance.MainDatenbank.ImprägnierBerichtListe.Capacity) index = 0;
lst_imprägnierberichte.SelectedIndex = index; lst_imprägnierberichte.SelectedIndex = index;
} }

View File

@@ -199,6 +199,7 @@ namespace SanSystem
private void MassenberichteToolStripMenuItem_Click(object sender, EventArgs e) private void MassenberichteToolStripMenuItem_Click(object sender, EventArgs e)
{ {
List<InlinerSanierung> ausdruck = new List<InlinerSanierung>(); List<InlinerSanierung> ausdruck = new List<InlinerSanierung>();
List<BilderObject> bilder = new List<BilderObject>();
foreach(Inspektionsobjekt objekte in Database.Datenbank.Instance.loadedProjekt.Objekte) foreach(Inspektionsobjekt objekte in Database.Datenbank.Instance.loadedProjekt.Objekte)
{ {
foreach(AbstractSanieren san in objekte.Sanierung) foreach(AbstractSanieren san in objekte.Sanierung)
@@ -207,6 +208,23 @@ namespace SanSystem
{ {
ausdruck.Add((InlinerSanierung)san); ausdruck.Add((InlinerSanierung)san);
} }
else if(san is SchachtAnbindung)
{
foreach(SavedBilder bild in (san as SchachtAnbindung).SavedBilders)
{
string komment = String.Empty;
if ((san as SchachtAnbindung).SchachtNummer != null)
{
komment = string.Format("{0} von Schacht: {1}", bild.Bildname, (san as SchachtAnbindung).SchachtNummer);
}
bilder.Add(new BilderObject()
{
Path = bild.Speicherpfad,
Kommentar = komment
});
}
}
} }
} }
@@ -217,7 +235,7 @@ namespace SanSystem
Hashtable hashtable = san.MakeProtokoll(destinationPath, Database.Datenbank.Instance.loadedProjekt, DateTime.MinValue); Hashtable hashtable = san.MakeProtokoll(destinationPath, Database.Datenbank.Instance.loadedProjekt, DateTime.MinValue);
DirectoryInfo directory = Directory.GetParent(destinationPath); DirectoryInfo directory = Directory.GetParent(destinationPath);
string speicherpfad = Path.Combine(directory.FullName,"Einbauprotokolle"); string speicherpfad = Path.Combine(directory.FullName,"Einbauprotokolle");
BerichtGen.FrmOptions options = new BerichtGen.FrmOptions("JUME", "liner_einbauBlueLight.docx", speicherpfad, san.Inspektionsobjekt.Objektbezeichnung, hashtable, new List<BilderObject>(),null,true); BerichtGen.FrmOptions options = new BerichtGen.FrmOptions("JUME", "liner_einbauBlueLight.docx", speicherpfad, san.Inspektionsobjekt.Objektbezeichnung, hashtable, bilder,null,true);
} }
//options.ShowDialog(); //options.ShowDialog();

View File

@@ -54,7 +54,7 @@ namespace SanSystem
else if(san is SchachtAnbindung) else if(san is SchachtAnbindung)
{ {
tab.Text = "Schachtanbindung"; tab.Text = "Schachtanbindung";
UCSchachtanbindung uCSchachtanbindung = new UCSchachtanbindung(san as SchachtAnbindung); UCWeitereFotos uCSchachtanbindung = new UCWeitereFotos(san as SchachtAnbindung);
uCSchachtanbindung.Dock = DockStyle.Fill; uCSchachtanbindung.Dock = DockStyle.Fill;
tab.Controls.Add(uCSchachtanbindung); tab.Controls.Add(uCSchachtanbindung);
tabControl1.TabPages.Add(tab); tabControl1.TabPages.Add(tab);
@@ -145,7 +145,7 @@ namespace SanSystem
inspektionsobjekt.Sanierung.Add(schachtAnbindung); inspektionsobjekt.Sanierung.Add(schachtAnbindung);
TabPage tab = new TabPage(); TabPage tab = new TabPage();
tab.Text = "Schachtanbindung"; tab.Text = "Schachtanbindung";
UCSchachtanbindung uCSchachtanbindung = new UCSchachtanbindung(schachtAnbindung); UCWeitereFotos uCSchachtanbindung = new UCWeitereFotos(schachtAnbindung);
uCSchachtanbindung.Dock = DockStyle.Fill; uCSchachtanbindung.Dock = DockStyle.Fill;
tab.Controls.Add(uCSchachtanbindung); tab.Controls.Add(uCSchachtanbindung);
tabControl1.TabPages.Add(tab); tabControl1.TabPages.Add(tab);