gesamtlänge wird erfasst

This commit is contained in:
HuskyTeufel
2020-06-25 16:24:05 +02:00
parent de5af70dd0
commit d9431ef400
26 changed files with 792 additions and 107 deletions

View File

@@ -95,8 +95,6 @@ namespace SanSystem
inliner.Datum = new DateTime(2018, 01, 01, 12, 0, 0);
}
dt_eingebaut.DataBindings.Add(new Binding("Value", inliner, "Datum"));
/*else
dt_eingebaut.Enabled = false;*/
cb_genehmigung.DataBindings.Add(new Binding("Checked", inliner, "genehmigungVorhanden"));
cb_stvo.DataBindings.Add(new Binding("Checked", inliner, "sTVOAbsicherung"));
cb_wasserhaltung.DataBindings.Add(new Binding("Checked", inliner, "wasserhaltungEingerichtet"));
@@ -199,12 +197,28 @@ namespace SanSystem
private void btn_transfer_ftp_Click(object sender, EventArgs e)
{
filenames.Clear();
if (MessageBox.Show("Bitte stellen Sie sicher, dass der Server antwortet und dass nur die Dateien vorhanden sind!, Bitte beachten Sie, dass das fenster einfrieren kann", "WARNUNG", MessageBoxButtons.OKCancel, MessageBoxIcon.Stop) == DialogResult.OK)
if (true)
{
DownloadFromUV();
OpenFileDialog openFileDialog = new OpenFileDialog();
openFileDialog.InitialDirectory = @"\\192.168.2.248";
if (openFileDialog.ShowDialog() == DialogResult.OK)
{
string source = openFileDialog.FileName;
string destFile = string.Format("{0}.csv", inliner.Inspektionsobjekt.Sanierungsnummer);
destFile = Path.Combine(destinationPath, destFile);
File.Copy(source, destFile, false);
File.Delete(source);
}
}
else
{
filenames.Clear();
if (MessageBox.Show("Bitte stellen Sie sicher, dass der Server antwortet und dass nur die Dateien vorhanden sind!, Bitte beachten Sie, dass das fenster einfrieren kann", "WARNUNG", MessageBoxButtons.OKCancel, MessageBoxIcon.Stop) == DialogResult.OK)
{
DownloadFromUV();
}
}
}
}
private void ListFiles(FtpClient client, string directory)
{
@@ -222,19 +236,13 @@ namespace SanSystem
}
}
private bool AccessCSV()
{
string myPath = Path.Combine(destinationPath);
if (!Directory.Exists(myPath))
return false;
IEnumerable<string> files = Directory.EnumerateFiles(myPath, "*.csv", SearchOption.AllDirectories);
IEnumerable<string> files = Directory.EnumerateFiles(myPath, "*.csv", SearchOption.TopDirectoryOnly);
IReadCSVData csvFile = null;
List<UVcsvStrukture> struktures = null;
@@ -264,8 +272,6 @@ namespace SanSystem
return makeGraphic.GetGraphics(struktures, destinationPath);
}
private void Btn_open_file_Click(object sender, EventArgs e)
{
Process prozess = new Process();
@@ -281,10 +287,8 @@ namespace SanSystem
}
}
private void Btn_create_protokol_MouseDown(object sender, MouseEventArgs e)
{
//DateTime offset = DateTime.MinValue;
if(e.Button == MouseButtons.Right)
{
@@ -331,8 +335,6 @@ namespace SanSystem
Kommentar = komment
}) ;
}
}
}
BerichtGen.FrmOptions options = new BerichtGen.FrmOptions("JUME", "liner_einbauBlueLight.docx", speicherpfad, inliner.Inspektionsobjekt.Objektbezeichnung, hashtable, bilderObjects);
@@ -365,9 +367,6 @@ namespace SanSystem
protokollWriter.Ersetzen();
protokollWriter.WriteFile();
MessageBox.Show("Fertig");
}
}
}