Prefix und Suffix können nun bearbeitet werden
This commit is contained in:
119
SanSystem/FrmPrefixSuffix.Designer.cs
generated
Normal file
119
SanSystem/FrmPrefixSuffix.Designer.cs
generated
Normal file
@@ -0,0 +1,119 @@
|
|||||||
|
namespace SanSystem
|
||||||
|
{
|
||||||
|
partial class FrmPrefixSuffix
|
||||||
|
{
|
||||||
|
/// <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.label1 = new System.Windows.Forms.Label();
|
||||||
|
this.label2 = new System.Windows.Forms.Label();
|
||||||
|
this.txt_prefix = new System.Windows.Forms.TextBox();
|
||||||
|
this.txt_suffix = new System.Windows.Forms.TextBox();
|
||||||
|
this.btn_safe = new System.Windows.Forms.Button();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// label1
|
||||||
|
//
|
||||||
|
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.Location = new System.Drawing.Point(18, 14);
|
||||||
|
this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||||
|
this.label1.Name = "label1";
|
||||||
|
this.label1.Size = new System.Drawing.Size(61, 25);
|
||||||
|
this.label1.TabIndex = 0;
|
||||||
|
this.label1.Text = "Prefix";
|
||||||
|
//
|
||||||
|
// label2
|
||||||
|
//
|
||||||
|
this.label2.AutoSize = true;
|
||||||
|
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.label2.Location = new System.Drawing.Point(18, 97);
|
||||||
|
this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||||
|
this.label2.Name = "label2";
|
||||||
|
this.label2.Size = new System.Drawing.Size(61, 25);
|
||||||
|
this.label2.TabIndex = 1;
|
||||||
|
this.label2.Text = "Suffix";
|
||||||
|
//
|
||||||
|
// txt_prefix
|
||||||
|
//
|
||||||
|
this.txt_prefix.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.txt_prefix.Location = new System.Drawing.Point(171, 9);
|
||||||
|
this.txt_prefix.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
|
this.txt_prefix.Name = "txt_prefix";
|
||||||
|
this.txt_prefix.Size = new System.Drawing.Size(456, 30);
|
||||||
|
this.txt_prefix.TabIndex = 2;
|
||||||
|
//
|
||||||
|
// txt_suffix
|
||||||
|
//
|
||||||
|
this.txt_suffix.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.txt_suffix.Location = new System.Drawing.Point(171, 95);
|
||||||
|
this.txt_suffix.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
|
this.txt_suffix.Name = "txt_suffix";
|
||||||
|
this.txt_suffix.Size = new System.Drawing.Size(456, 30);
|
||||||
|
this.txt_suffix.TabIndex = 3;
|
||||||
|
//
|
||||||
|
// btn_safe
|
||||||
|
//
|
||||||
|
this.btn_safe.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.btn_safe.Location = new System.Drawing.Point(26, 180);
|
||||||
|
this.btn_safe.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
|
this.btn_safe.Name = "btn_safe";
|
||||||
|
this.btn_safe.Size = new System.Drawing.Size(603, 162);
|
||||||
|
this.btn_safe.TabIndex = 4;
|
||||||
|
this.btn_safe.Text = "Speichern";
|
||||||
|
this.btn_safe.UseVisualStyleBackColor = true;
|
||||||
|
this.btn_safe.Click += new System.EventHandler(this.Btn_safe_Click);
|
||||||
|
//
|
||||||
|
// FrmPrefixSuffix
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 25F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.ClientSize = new System.Drawing.Size(692, 380);
|
||||||
|
this.ControlBox = false;
|
||||||
|
this.Controls.Add(this.btn_safe);
|
||||||
|
this.Controls.Add(this.txt_suffix);
|
||||||
|
this.Controls.Add(this.txt_prefix);
|
||||||
|
this.Controls.Add(this.label2);
|
||||||
|
this.Controls.Add(this.label1);
|
||||||
|
this.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
|
this.Name = "FrmPrefixSuffix";
|
||||||
|
this.Text = "Prefix Suffix Bearbeiten";
|
||||||
|
this.Load += new System.EventHandler(this.FrmPrefixSuffix_Load);
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
this.PerformLayout();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private System.Windows.Forms.Label label1;
|
||||||
|
private System.Windows.Forms.Label label2;
|
||||||
|
private System.Windows.Forms.TextBox txt_prefix;
|
||||||
|
private System.Windows.Forms.TextBox txt_suffix;
|
||||||
|
private System.Windows.Forms.Button btn_safe;
|
||||||
|
}
|
||||||
|
}
|
||||||
37
SanSystem/FrmPrefixSuffix.cs
Normal file
37
SanSystem/FrmPrefixSuffix.cs
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
using Database;
|
||||||
|
using KlassenBIB;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel;
|
||||||
|
using System.Data;
|
||||||
|
using System.Drawing;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
namespace SanSystem
|
||||||
|
{
|
||||||
|
public partial class FrmPrefixSuffix : Form
|
||||||
|
{
|
||||||
|
Projekt aktuelleProjekt;
|
||||||
|
public FrmPrefixSuffix()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
aktuelleProjekt = Datenbank.Instance.loadedProjekt;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void FrmPrefixSuffix_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
txt_prefix.DataBindings.Add("text", aktuelleProjekt, "SanierungsIDPrefix");
|
||||||
|
txt_suffix.DataBindings.Add("text", aktuelleProjekt, "SanierungsIDSuffix");
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Btn_safe_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
txt_prefix.DataBindings.Clear();
|
||||||
|
txt_suffix.DataBindings.Clear();
|
||||||
|
this.Close();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
120
SanSystem/FrmPrefixSuffix.resx
Normal file
120
SanSystem/FrmPrefixSuffix.resx
Normal file
@@ -0,0 +1,120 @@
|
|||||||
|
<?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>
|
||||||
@@ -185,6 +185,12 @@
|
|||||||
<Compile Include="frmOffsetSet.Designer.cs">
|
<Compile Include="frmOffsetSet.Designer.cs">
|
||||||
<DependentUpon>frmOffsetSet.cs</DependentUpon>
|
<DependentUpon>frmOffsetSet.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="FrmPrefixSuffix.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="FrmPrefixSuffix.Designer.cs">
|
||||||
|
<DependentUpon>FrmPrefixSuffix.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="frmProjektList.cs">
|
<Compile Include="frmProjektList.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
@@ -287,6 +293,9 @@
|
|||||||
<EmbeddedResource Include="frmOffsetSet.resx">
|
<EmbeddedResource Include="frmOffsetSet.resx">
|
||||||
<DependentUpon>frmOffsetSet.cs</DependentUpon>
|
<DependentUpon>frmOffsetSet.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="FrmPrefixSuffix.resx">
|
||||||
|
<DependentUpon>FrmPrefixSuffix.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="frmProjektList.resx">
|
<EmbeddedResource Include="frmProjektList.resx">
|
||||||
<DependentUpon>frmProjektList.cs</DependentUpon>
|
<DependentUpon>frmProjektList.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
|||||||
12
SanSystem/frmMain.Designer.cs
generated
12
SanSystem/frmMain.Designer.cs
generated
@@ -48,6 +48,7 @@
|
|||||||
this.statusStrip1 = new System.Windows.Forms.StatusStrip();
|
this.statusStrip1 = new System.Windows.Forms.StatusStrip();
|
||||||
this.toolStripStatus_projekt_Label = new System.Windows.Forms.ToolStripStatusLabel();
|
this.toolStripStatus_projekt_Label = new System.Windows.Forms.ToolStripStatusLabel();
|
||||||
this.toolstrip_gesamtLiner = new System.Windows.Forms.ToolStripStatusLabel();
|
this.toolstrip_gesamtLiner = new System.Windows.Forms.ToolStripStatusLabel();
|
||||||
|
this.prefixSuffixToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.mainmenu.SuspendLayout();
|
this.mainmenu.SuspendLayout();
|
||||||
this.statusStrip1.SuspendLayout();
|
this.statusStrip1.SuspendLayout();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
@@ -77,7 +78,8 @@
|
|||||||
this.neuToolStripMenuItem,
|
this.neuToolStripMenuItem,
|
||||||
this.öffnenToolStripMenuItem,
|
this.öffnenToolStripMenuItem,
|
||||||
this.stammdatenImportierenToolStripMenuItem,
|
this.stammdatenImportierenToolStripMenuItem,
|
||||||
this.auftraggeberToolStripMenuItem});
|
this.auftraggeberToolStripMenuItem,
|
||||||
|
this.prefixSuffixToolStripMenuItem});
|
||||||
this.projektToolStripMenuItem.Name = "projektToolStripMenuItem";
|
this.projektToolStripMenuItem.Name = "projektToolStripMenuItem";
|
||||||
this.projektToolStripMenuItem.Size = new System.Drawing.Size(88, 32);
|
this.projektToolStripMenuItem.Size = new System.Drawing.Size(88, 32);
|
||||||
this.projektToolStripMenuItem.Text = "Projekt";
|
this.projektToolStripMenuItem.Text = "Projekt";
|
||||||
@@ -191,6 +193,13 @@
|
|||||||
this.toolstrip_gesamtLiner.Size = new System.Drawing.Size(138, 20);
|
this.toolstrip_gesamtLiner.Size = new System.Drawing.Size(138, 20);
|
||||||
this.toolstrip_gesamtLiner.Text = "Insgesammt Einbau";
|
this.toolstrip_gesamtLiner.Text = "Insgesammt Einbau";
|
||||||
//
|
//
|
||||||
|
// prefixSuffixToolStripMenuItem
|
||||||
|
//
|
||||||
|
this.prefixSuffixToolStripMenuItem.Name = "prefixSuffixToolStripMenuItem";
|
||||||
|
this.prefixSuffixToolStripMenuItem.Size = new System.Drawing.Size(318, 32);
|
||||||
|
this.prefixSuffixToolStripMenuItem.Text = "Prefix / Suffix";
|
||||||
|
this.prefixSuffixToolStripMenuItem.Click += new System.EventHandler(this.PrefixSuffixToolStripMenuItem_Click);
|
||||||
|
//
|
||||||
// frmMain
|
// frmMain
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
|
||||||
@@ -233,6 +242,7 @@
|
|||||||
private System.Windows.Forms.ToolStripMenuItem massenberichteToolStripMenuItem;
|
private System.Windows.Forms.ToolStripMenuItem massenberichteToolStripMenuItem;
|
||||||
private System.Windows.Forms.ToolStripMenuItem verbrauchToolStripMenuItem;
|
private System.Windows.Forms.ToolStripMenuItem verbrauchToolStripMenuItem;
|
||||||
private System.Windows.Forms.ToolStripStatusLabel toolstrip_gesamtLiner;
|
private System.Windows.Forms.ToolStripStatusLabel toolstrip_gesamtLiner;
|
||||||
|
private System.Windows.Forms.ToolStripMenuItem prefixSuffixToolStripMenuItem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -339,5 +339,11 @@ namespace SanSystem
|
|||||||
File.WriteAllLines("linercharges.txt", datencontent);
|
File.WriteAllLines("linercharges.txt", datencontent);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void PrefixSuffixToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
FrmPrefixSuffix frmPrefixSuffix = new FrmPrefixSuffix();
|
||||||
|
frmPrefixSuffix.ShowDialog();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user