Man kann jetzt einen Offset eingeben
This commit is contained in:
@@ -66,7 +66,7 @@ namespace SanSystem
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void UCInliner_Load(object sender, EventArgs e)
|
||||
{
|
||||
CheckDirectories();
|
||||
@@ -78,7 +78,6 @@ namespace SanSystem
|
||||
cbb_wetter.DataBindings.Clear();
|
||||
txt_besatzung.DataBindings.Clear();
|
||||
cb_preliner.DataBindings.Clear();
|
||||
|
||||
txt_besatzung.DataBindings.Add(new Binding("Text", inliner, "Besatzung"));
|
||||
cb_fertig.DataBindings.Add(new Binding("Checked", inliner, "fertig"));
|
||||
cb_preliner.DataBindings.Add(new Binding("Checked", inliner, "Preliner"));
|
||||
@@ -258,18 +257,7 @@ namespace SanSystem
|
||||
return makeGraphic.GetGraphics(struktures, destinationPath);
|
||||
}
|
||||
|
||||
private void btn_create_protokol_Click(object sender, EventArgs e)
|
||||
{
|
||||
if(!AccessCSV())
|
||||
{
|
||||
MessageBox.Show("Warnung, es wurden keine Daten von der Anlage geladen, Grafik konnte nicht erstellt werden");
|
||||
}
|
||||
Hashtable hashtable = inliner.MakeProtokoll(destinationPath,Database.Datenbank.Instance.loadedProjekt);
|
||||
DirectoryInfo directory = Directory.GetParent(destinationPath);
|
||||
string speicherpfad = directory.FullName;
|
||||
BerichtGen.FrmOptions options = new BerichtGen.FrmOptions("JUME", "liner_einbauBlueLight.docx", speicherpfad,inliner.Inspektionsobjekt.Objektbezeichnung, hashtable, new List<BilderObject>());
|
||||
options.ShowDialog();
|
||||
}
|
||||
|
||||
|
||||
private void Btn_open_file_Click(object sender, EventArgs e)
|
||||
{
|
||||
@@ -285,5 +273,37 @@ namespace SanSystem
|
||||
MessageBox.Show("Es ist ein fehler aufgetreten beim öffnen vom Leitungsordner " + ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void Btn_create_protokol_MouseDown(object sender, MouseEventArgs e)
|
||||
{
|
||||
//DateTime offset = DateTime.MinValue;
|
||||
|
||||
if(e.Button == MouseButtons.Right)
|
||||
{
|
||||
|
||||
frmOffsetSet frmOffsetSet;
|
||||
if (inliner.Offset != DateTime.MinValue)
|
||||
{
|
||||
frmOffsetSet = new frmOffsetSet(inliner.Offset.TimeOfDay.ToString());
|
||||
} else
|
||||
{
|
||||
frmOffsetSet = new frmOffsetSet();
|
||||
}
|
||||
frmOffsetSet.ShowDialog();
|
||||
inliner.Offset = frmOffsetSet.Offset;
|
||||
|
||||
|
||||
}
|
||||
if (!AccessCSV())
|
||||
{
|
||||
MessageBox.Show("Warnung, es wurden keine Daten von der Anlage geladen, Grafik konnte nicht erstellt werden");
|
||||
}
|
||||
Hashtable hashtable = inliner.MakeProtokoll(destinationPath, Database.Datenbank.Instance.loadedProjekt,inliner.Offset);
|
||||
DirectoryInfo directory = Directory.GetParent(destinationPath);
|
||||
string speicherpfad = directory.FullName;
|
||||
BerichtGen.FrmOptions options = new BerichtGen.FrmOptions("JUME", "liner_einbauBlueLight.docx", speicherpfad, inliner.Inspektionsobjekt.Objektbezeichnung, hashtable, new List<BilderObject>());
|
||||
options.ShowDialog();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user