Berichte werden jetzt generiert, jedoch liegt es noch im bin datei dann
This commit is contained in:
60
SanSystem/FrmLinerChart.Designer.cs
generated
60
SanSystem/FrmLinerChart.Designer.cs
generated
@@ -1,60 +0,0 @@
|
||||
namespace SanSystem
|
||||
{
|
||||
partial class FrmLinerChart
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Location = new System.Drawing.Point(90, 67);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(210, 112);
|
||||
this.button1.TabIndex = 0;
|
||||
this.button1.Text = "button1";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new System.EventHandler(this.button1_Click);
|
||||
//
|
||||
// FrmLinerChart
|
||||
//
|
||||
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.button1);
|
||||
this.Name = "FrmLinerChart";
|
||||
this.Text = "FrmLinerChart";
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Button button1;
|
||||
}
|
||||
}
|
||||
@@ -1,105 +0,0 @@
|
||||
using Syncfusion.Windows.Forms.Chart;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace SanSystem
|
||||
{
|
||||
public partial class FrmLinerChart : Form
|
||||
{
|
||||
public FrmLinerChart()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
}
|
||||
|
||||
public void SaveChart()
|
||||
{
|
||||
Size size = new Size(800, 400);
|
||||
ChartControl chartControl = new ChartControl();
|
||||
chartControl.Size = size;
|
||||
|
||||
ChartAxis axis = chartControl.PrimaryYAxis;
|
||||
ChartAxis axis0 = new ChartAxis(ChartOrientation.Vertical);
|
||||
ChartAxis axis1 = new ChartAxis(ChartOrientation.Vertical);
|
||||
|
||||
ChartAxisLayout layout1 = new ChartAxisLayout();
|
||||
ChartAxisLayout layout2 = new ChartAxisLayout();
|
||||
|
||||
chartControl.Axes.Add(axis0);
|
||||
chartControl.Axes.Add(axis1);
|
||||
|
||||
layout1.Spacing = 12;
|
||||
layout2.Spacing = 12;
|
||||
layout1.Axes.Add(axis);
|
||||
layout2.Axes.Add(axis0);
|
||||
layout2.Axes.Add(axis1);
|
||||
|
||||
chartControl.ChartArea.YLayouts.Add(layout1);
|
||||
chartControl.ChartArea.YLayouts.Add(layout2);
|
||||
|
||||
ChartSeries temperaturChart = new ChartSeries("Temperatur", ChartSeriesType.Line);
|
||||
ChartSeries druckChart = new ChartSeries("Druck", ChartSeriesType.Line);
|
||||
|
||||
string[] input = File.ReadAllLines(@"C:\Users\Damian\Desktop\SanVerwaltung\SanSystem\bin\Debug\projekte\18-850\SW01-SW02\UVAnlage\Trend\Trend022.csv");
|
||||
int counter = 0;
|
||||
foreach (string pars in input)
|
||||
{
|
||||
string[] parts = pars.Split(',');
|
||||
if (parts[0].Equals("Group1") || parts[1].Equals("(END)")) continue;
|
||||
double temperatur = double.Parse(parts[1].Replace('.', ','));
|
||||
double druck = double.Parse(parts[2].Replace('.', ','));
|
||||
|
||||
temperaturChart.Points.Add(counter, temperatur);
|
||||
druckChart.Points.Add(counter, druck);
|
||||
counter++;
|
||||
|
||||
}
|
||||
temperaturChart.YAxis = axis;
|
||||
druckChart.YAxis = axis0;
|
||||
|
||||
axis.Title = "°C";
|
||||
axis.TitleFont = new Font("Segeo UI", 14F);
|
||||
|
||||
axis0.Title = "[bar]";
|
||||
axis0.TitleFont = new Font("Segeo UI", 14F);
|
||||
|
||||
chartControl.LegendsPlacement = ChartPlacement.Outside;
|
||||
chartControl.LegendPosition = ChartDock.Bottom;
|
||||
chartControl.LegendAlignment = ChartAlignment.Center;
|
||||
chartControl.Title.Visible = false;
|
||||
|
||||
ChartAxis chartAxis = new ChartAxis();
|
||||
chartAxis.Orientation = ChartOrientation.Horizontal;
|
||||
chartAxis.Range = new MinMaxInfo(0, 6, 1);
|
||||
chartAxis.DrawGrid = false;
|
||||
chartAxis.LineType.Width = 1F;
|
||||
chartAxis.LineType.ForeColor = Color.Black;
|
||||
chartControl.Axes.Add(chartAxis);
|
||||
|
||||
chartControl.Series.Add(temperaturChart);
|
||||
chartControl.Series.Add(druckChart);
|
||||
chartControl.Skins = Skins.Metro;
|
||||
|
||||
|
||||
axis1.OpposedPosition = true;
|
||||
axis.EdgeLabelsDrawingMode = ChartAxisEdgeLabelsDrawingMode.Shift;
|
||||
axis0.EdgeLabelsDrawingMode = ChartAxisEdgeLabelsDrawingMode.Shift;
|
||||
axis1.EdgeLabelsDrawingMode = ChartAxisEdgeLabelsDrawingMode.Shift;
|
||||
|
||||
chartControl.SaveImage("./temp.jpg");
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
SaveChart();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,120 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
@@ -65,12 +65,6 @@
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="FrmLinerChart.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmLinerChart.Designer.cs">
|
||||
<DependentUpon>FrmLinerChart.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="frmObjektEdit.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
@@ -116,9 +110,6 @@
|
||||
<Compile Include="UCSchachtanbindung.Designer.cs">
|
||||
<DependentUpon>UCSchachtanbindung.cs</DependentUpon>
|
||||
</Compile>
|
||||
<EmbeddedResource Include="FrmLinerChart.resx">
|
||||
<DependentUpon>FrmLinerChart.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="frmObjektEdit.resx">
|
||||
<DependentUpon>frmObjektEdit.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
|
||||
31
SanSystem/UCInliner.Designer.cs
generated
31
SanSystem/UCInliner.Designer.cs
generated
@@ -30,6 +30,7 @@
|
||||
{
|
||||
this.tabControl1 = new System.Windows.Forms.TabControl();
|
||||
this.tabPage2 = new System.Windows.Forms.TabPage();
|
||||
this.btn_create_graph = new System.Windows.Forms.Button();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.ftpProgress = new System.Windows.Forms.ProgressBar();
|
||||
this.btn_transfer_ftp = new System.Windows.Forms.Button();
|
||||
@@ -70,7 +71,7 @@
|
||||
this.label11 = new System.Windows.Forms.Label();
|
||||
this.label10 = new System.Windows.Forms.Label();
|
||||
this.label9 = new System.Windows.Forms.Label();
|
||||
this.btn_create_graph = new System.Windows.Forms.Button();
|
||||
this.btn_create_protokol = new System.Windows.Forms.Button();
|
||||
this.tabControl1.SuspendLayout();
|
||||
this.tabPage2.SuspendLayout();
|
||||
this.groupBox3.SuspendLayout();
|
||||
@@ -92,6 +93,7 @@
|
||||
//
|
||||
// tabPage2
|
||||
//
|
||||
this.tabPage2.Controls.Add(this.btn_create_protokol);
|
||||
this.tabPage2.Controls.Add(this.btn_create_graph);
|
||||
this.tabPage2.Controls.Add(this.button1);
|
||||
this.tabPage2.Controls.Add(this.ftpProgress);
|
||||
@@ -117,6 +119,16 @@
|
||||
this.tabPage2.Text = "Vorraussetzungen";
|
||||
this.tabPage2.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// btn_create_graph
|
||||
//
|
||||
this.btn_create_graph.Location = new System.Drawing.Point(443, 487);
|
||||
this.btn_create_graph.Name = "btn_create_graph";
|
||||
this.btn_create_graph.Size = new System.Drawing.Size(138, 67);
|
||||
this.btn_create_graph.TabIndex = 32;
|
||||
this.btn_create_graph.Text = "UVGraphic erzeugen";
|
||||
this.btn_create_graph.UseVisualStyleBackColor = true;
|
||||
this.btn_create_graph.Click += new System.EventHandler(this.btn_create_graph_Click);
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Location = new System.Drawing.Point(829, 197);
|
||||
@@ -546,15 +558,15 @@
|
||||
this.label9.TabIndex = 0;
|
||||
this.label9.Text = "Harz";
|
||||
//
|
||||
// btn_create_graph
|
||||
// btn_create_protokol
|
||||
//
|
||||
this.btn_create_graph.Location = new System.Drawing.Point(608, 457);
|
||||
this.btn_create_graph.Name = "btn_create_graph";
|
||||
this.btn_create_graph.Size = new System.Drawing.Size(138, 67);
|
||||
this.btn_create_graph.TabIndex = 32;
|
||||
this.btn_create_graph.Text = "UVGraphic erzeugen";
|
||||
this.btn_create_graph.UseVisualStyleBackColor = true;
|
||||
this.btn_create_graph.Click += new System.EventHandler(this.btn_create_graph_Click);
|
||||
this.btn_create_protokol.Location = new System.Drawing.Point(626, 484);
|
||||
this.btn_create_protokol.Name = "btn_create_protokol";
|
||||
this.btn_create_protokol.Size = new System.Drawing.Size(107, 69);
|
||||
this.btn_create_protokol.TabIndex = 33;
|
||||
this.btn_create_protokol.Text = "Protokoll erzeugen";
|
||||
this.btn_create_protokol.UseVisualStyleBackColor = true;
|
||||
this.btn_create_protokol.Click += new System.EventHandler(this.btn_create_protokol_Click);
|
||||
//
|
||||
// UCInliner
|
||||
//
|
||||
@@ -624,5 +636,6 @@
|
||||
private System.Windows.Forms.ProgressBar ftpProgress;
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.Windows.Forms.Button btn_create_graph;
|
||||
private System.Windows.Forms.Button btn_create_protokol;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -201,15 +201,10 @@ namespace SanSystem
|
||||
options.ShowDialog();
|
||||
}
|
||||
|
||||
private void button2_Click(object sender, EventArgs e)
|
||||
{
|
||||
FrmLinerChart frmLinerChart = new FrmLinerChart();
|
||||
frmLinerChart.ShowDialog();
|
||||
}
|
||||
|
||||
private static ChartControl getGraph(string csvFile)
|
||||
{
|
||||
Size size = new Size(800, 400);
|
||||
Size size = new Size(600, 400);
|
||||
|
||||
ChartControl chartControl = new ChartControl();
|
||||
chartControl.Size = size;
|
||||
@@ -300,5 +295,12 @@ namespace SanSystem
|
||||
watch.Stop();
|
||||
MessageBox.Show((watch.ElapsedTicks) + " s");
|
||||
}
|
||||
|
||||
private void btn_create_protokol_Click(object sender, EventArgs e)
|
||||
{
|
||||
Hashtable hashtable = inliner.MakeProtokoll(destinationPath);
|
||||
BerichtGen.Options options = new BerichtGen.Options("JUME", "liner_einbau.docx", "./", hashtable, new List<BilderObject>());
|
||||
options.ShowDialog();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user