Options fenster repariert
This commit is contained in:
@@ -12,7 +12,7 @@ using System.Threading.Tasks;
|
|||||||
|
|
||||||
namespace BerichtGen
|
namespace BerichtGen
|
||||||
{
|
{
|
||||||
public class Bericht
|
class Bericht
|
||||||
{
|
{
|
||||||
private List<Image> _listImages;
|
private List<Image> _listImages;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -70,15 +70,17 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="Bericht.cs" />
|
<Compile Include="Bericht.cs" />
|
||||||
<Compile Include="Options.cs" />
|
<Compile Include="FrmOptions.cs">
|
||||||
<Compile Include="Options.Designer.cs">
|
<SubType>Form</SubType>
|
||||||
<DependentUpon>Options.cs</DependentUpon>
|
</Compile>
|
||||||
|
<Compile Include="FrmOptions.Designer.cs">
|
||||||
|
<DependentUpon>FrmOptions.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<EmbeddedResource Include="Options.resx">
|
<EmbeddedResource Include="FrmOptions.resx">
|
||||||
<DependentUpon>Options.cs</DependentUpon>
|
<DependentUpon>FrmOptions.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
namespace BerichtGen
|
namespace BerichtGen
|
||||||
{
|
{
|
||||||
partial class Options
|
partial class FrmOptions
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required designer variable.
|
/// Required designer variable.
|
||||||
@@ -103,7 +103,7 @@
|
|||||||
this.label1.TabIndex = 5;
|
this.label1.TabIndex = 5;
|
||||||
this.label1.Text = "Nach dem erzeugen öffnen";
|
this.label1.Text = "Nach dem erzeugen öffnen";
|
||||||
//
|
//
|
||||||
// Options
|
// FrmOptions
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
@@ -114,7 +114,7 @@
|
|||||||
this.Controls.Add(this.cb_pdf);
|
this.Controls.Add(this.cb_pdf);
|
||||||
this.Controls.Add(this.cb_doc);
|
this.Controls.Add(this.cb_doc);
|
||||||
this.Controls.Add(this.btn_start);
|
this.Controls.Add(this.btn_start);
|
||||||
this.Name = "Options";
|
this.Name = "FrmOptions";
|
||||||
this.Text = "Options";
|
this.Text = "Options";
|
||||||
this.ResumeLayout(false);
|
this.ResumeLayout(false);
|
||||||
this.PerformLayout();
|
this.PerformLayout();
|
||||||
@@ -4,7 +4,6 @@ using System.Collections;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Data;
|
using System.Data;
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
@@ -15,7 +14,7 @@ using System.Windows.Forms;
|
|||||||
|
|
||||||
namespace BerichtGen
|
namespace BerichtGen
|
||||||
{
|
{
|
||||||
public partial class Options : Form
|
public partial class FrmOptions : Form
|
||||||
{
|
{
|
||||||
Thread generateProtokollThread;
|
Thread generateProtokollThread;
|
||||||
Hashtable grundDaten;
|
Hashtable grundDaten;
|
||||||
@@ -24,25 +23,26 @@ namespace BerichtGen
|
|||||||
string speicherpfad;
|
string speicherpfad;
|
||||||
string source;
|
string source;
|
||||||
List<BilderObject> bilderObjects;
|
List<BilderObject> bilderObjects;
|
||||||
|
|
||||||
DataTable tableContent = null;
|
DataTable tableContent = null;
|
||||||
|
public FrmOptions(string firma, string vorlage, string speicherpfad, Hashtable grunddaten, List<BilderObject> bilderObjects, DataTable tableContent = null)
|
||||||
|
|
||||||
public Options(string firma, string vorlage, string speicherpfad, Hashtable grunddaten, List<BilderObject> bilderObjects, DataTable tableContent = null)
|
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
this.firma = firma;
|
this.firma = firma;
|
||||||
this.vorlage = vorlage;
|
this.vorlage = vorlage;
|
||||||
this.speicherpfad = speicherpfad;
|
this.speicherpfad = speicherpfad;
|
||||||
this.grundDaten = grunddaten;
|
this.grundDaten = grunddaten;
|
||||||
this.bilderObjects = bilderObjects;
|
this.bilderObjects = bilderObjects;
|
||||||
this.tableContent = tableContent;
|
this.tableContent = tableContent;
|
||||||
this.source = Path.Combine("documents",firma, vorlage);
|
this.source = Path.Combine("documents", firma, vorlage);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Gen()
|
void Gen()
|
||||||
{
|
{
|
||||||
Bericht bericht = new Bericht();
|
Bericht bericht = new Bericht();
|
||||||
bericht.Erzeuge(source, speicherpfad, grundDaten,bilderObjects,tableContent);
|
bericht.Erzeuge(source, speicherpfad, grundDaten, bilderObjects, tableContent);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void btn_start_Click(object sender, EventArgs e)
|
private void btn_start_Click(object sender, EventArgs e)
|
||||||
@@ -53,10 +53,10 @@ namespace BerichtGen
|
|||||||
|
|
||||||
while (generateProtokollThread.IsAlive)
|
while (generateProtokollThread.IsAlive)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(rb_yes.Checked)
|
if (rb_yes.Checked)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -212,7 +212,7 @@ namespace SanSystem
|
|||||||
Kommentar = "TestBild",
|
Kommentar = "TestBild",
|
||||||
Path = @"C:\Users\Damian\Desktop\SanVerwaltung\SanSystem\bin\Debug\projekte\18-850\SW01-SW02\Schachtanbindung\4d0a1627-bd51-48d6-a27e-a4c6691b02d2.jpg"
|
Path = @"C:\Users\Damian\Desktop\SanVerwaltung\SanSystem\bin\Debug\projekte\18-850\SW01-SW02\Schachtanbindung\4d0a1627-bd51-48d6-a27e-a4c6691b02d2.jpg"
|
||||||
});
|
});
|
||||||
BerichtGen.Options options = new BerichtGen.Options("", "", "", grunddaten,bilderO);
|
BerichtGen.FrmOptions options = new BerichtGen.FrmOptions("", "", "", grunddaten,bilderO);
|
||||||
options.ShowDialog();
|
options.ShowDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -314,7 +314,7 @@ namespace SanSystem
|
|||||||
private void btn_create_protokol_Click(object sender, EventArgs e)
|
private void btn_create_protokol_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
Hashtable hashtable = inliner.MakeProtokoll(destinationPath);
|
Hashtable hashtable = inliner.MakeProtokoll(destinationPath);
|
||||||
BerichtGen.Options options = new BerichtGen.Options("JUME", "liner_einbau.docx", "./", hashtable, new List<BilderObject>());
|
BerichtGen.FrmOptions options = new BerichtGen.FrmOptions("JUME", "liner_einbau.docx", "./", hashtable, new List<BilderObject>());
|
||||||
options.ShowDialog();
|
options.ShowDialog();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -270,7 +270,7 @@ namespace SanSystem
|
|||||||
dr["bemerkung"] = obj.Bemerkung;
|
dr["bemerkung"] = obj.Bemerkung;
|
||||||
linereintraege.Rows.Add(dr);
|
linereintraege.Rows.Add(dr);
|
||||||
}
|
}
|
||||||
BerichtGen.Options options = new BerichtGen.Options("JUME", "KalibrierungAuflistung.docx", "", grundDaten, null, linereintraege);
|
BerichtGen.FrmOptions options = new BerichtGen.FrmOptions("JUME", "KalibrierungAuflistung.docx", "", grundDaten, null, linereintraege);
|
||||||
options.ShowDialog();
|
options.ShowDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user