update vor Syncfusion-Aktualisierung

master
Stefan Hutter 1 year ago
parent 3d8d977a04
commit cb21f39e6b

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -199,10 +199,7 @@ E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\Syncfusion.Pdf.Base.dll
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\Syncfusion.DocToPDFConverter.Base.dll
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\OfficePrinter.dll
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\BarcodeLib.dll
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\Syncfusion.Licensing.dll
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\NLog.Database.dll
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\Syncfusion.Compression.Base.dll
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\Syncfusion.OfficeChart.Base.dll
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\QRCoder.dll
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\Database.pdb
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\DOCGEN.pdb
@ -239,8 +236,6 @@ E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\Syncfusion.DocToPDFConvert
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\OfficePrinter.pdb
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\BarcodeLib.pdb
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\NLog.Database.xml
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\Syncfusion.Compression.Base.xml
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\Syncfusion.OfficeChart.Base.xml
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\de\System.Net.Http.Formatting.resources.dll
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\de\System.Web.Helpers.resources.dll
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\de\System.Web.Http.resources.dll

@ -145,6 +145,12 @@
<Compile Include="Diverses\testx.Designer.cs">
<DependentUpon>testx.cs</DependentUpon>
</Compile>
<Compile Include="Diverses\valueselector.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Diverses\valueselector.Designer.cs">
<DependentUpon>valueselector.cs</DependentUpon>
</Compile>
<Compile Include="DocMgmt\DokTypFavoritenOrdner.cs">
<SubType>Form</SubType>
</Compile>
@ -343,6 +349,9 @@
<EmbeddedResource Include="Diverses\testx.resx">
<DependentUpon>testx.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Diverses\valueselector.resx">
<DependentUpon>valueselector.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="DocMgmt\DokTypFavoritenOrdner.resx">
<DependentUpon>DokTypFavoritenOrdner.cs</DependentUpon>
</EmbeddedResource>
@ -384,7 +393,9 @@
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<EmbeddedResource Include="Resources\Syncfusion.SfDataGrid.WinForms.de-DE.resx" />
<EmbeddedResource Include="Resources\Syncfusion.SfDataGrid.WinForms.de-DE.resx">
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="Resources\Syncfusion.SfDataGrid.WinForms.resx" />
<EmbeddedResource Include="Start.resx">
<DependentUpon>Start.cs</DependentUpon>

@ -41,6 +41,7 @@
this.sfCalendar1.Size = new System.Drawing.Size(196, 196);
this.sfCalendar1.TabIndex = 0;
this.sfCalendar1.Text = "sfCalendar1";
this.sfCalendar1.DoubleClick += new System.EventHandler(this.sfCalendar1_DoubleClick);
//
// btnOK
//
@ -50,6 +51,7 @@
this.btnOK.TabIndex = 1;
this.btnOK.Text = "OK";
this.btnOK.UseVisualStyleBackColor = true;
this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
//
// frmCalendar
//
@ -68,7 +70,7 @@
#endregion
private Syncfusion.WinForms.Input.SfCalendar sfCalendar1;
public Syncfusion.WinForms.Input.SfCalendar sfCalendar1;
private System.Windows.Forms.Button btnOK;
}
}

@ -4,6 +4,7 @@ using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Security.Policy;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
@ -12,6 +13,8 @@ namespace OnDoc.Diverses
{
public partial class frmCalendar : Form
{
public DateTime res;
public frmCalendar()
{
InitializeComponent();
@ -19,7 +22,17 @@ namespace OnDoc.Diverses
private void frmCalendar_Load(object sender, EventArgs e)
{
sfCalendar1.SelectedDate= DateTime.Now;
}
private void btnOK_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.OK;
}
private void sfCalendar1_DoubleClick(object sender, EventArgs e)
{
DialogResult= DialogResult.OK;
}
}
}

@ -0,0 +1,70 @@
namespace OnDoc.Diverses
{
partial class valueselector
{
/// <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.GridDokumenttyp = new Syncfusion.WinForms.DataGrid.SfDataGrid();
((System.ComponentModel.ISupportInitialize)(this.GridDokumenttyp)).BeginInit();
this.SuspendLayout();
//
// GridDokumenttyp
//
this.GridDokumenttyp.AccessibleName = "Table";
this.GridDokumenttyp.AllowEditing = false;
this.GridDokumenttyp.AllowFiltering = true;
this.GridDokumenttyp.AllowResizingColumns = true;
this.GridDokumenttyp.AllowSelectionOnMouseDown = true;
this.GridDokumenttyp.Dock = System.Windows.Forms.DockStyle.Fill;
this.GridDokumenttyp.Location = new System.Drawing.Point(2, 2);
this.GridDokumenttyp.Name = "GridDokumenttyp";
this.GridDokumenttyp.Size = new System.Drawing.Size(796, 446);
this.GridDokumenttyp.Style.HeaderStyle.FilterIconColor = System.Drawing.Color.FromArgb(((int)(((byte)(29)))), ((int)(((byte)(29)))), ((int)(((byte)(29)))));
this.GridDokumenttyp.TabIndex = 1;
this.GridDokumenttyp.Text = "sfDataGrid1";
//
// valueselector
//
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.GridDokumenttyp);
this.Name = "valueselector";
this.Style.MdiChild.IconHorizontalAlignment = System.Windows.Forms.HorizontalAlignment.Center;
this.Style.MdiChild.IconVerticalAlignment = System.Windows.Forms.VisualStyles.VerticalAlignment.Center;
this.Text = "Werte-Auwahl";
this.Load += new System.EventHandler(this.valueselector_Load);
((System.ComponentModel.ISupportInitialize)(this.GridDokumenttyp)).EndInit();
this.ResumeLayout(false);
}
#endregion
private Syncfusion.WinForms.DataGrid.SfDataGrid GridDokumenttyp;
}
}

@ -0,0 +1,32 @@
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;
using Syncfusion.WinForms.Controls;
namespace OnDoc.Diverses
{
public partial class valueselector : SfForm
{
public string partnernr { get; set; } = "";
public string datenherkunft { get; set; } = "";
public valueselector()
{
InitializeComponent();
}
private void valueselector_Load(object sender, EventArgs e)
{
}
public void load_data() {
}
}
}

@ -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>

@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks;
@ -22,5 +23,34 @@ namespace OnDoc.Helper
// return image;
//}
public enum DateTimeFormat{
datumshort,
datummedium,
datumlong,
}
public static string Datum(DateTime date, DateTimeFormat format) {
switch (format)
{
case DateTimeFormat.datumshort:
return date.ToShortDateString();
break;
case DateTimeFormat.datummedium:
return date.ToString("dd.MMMM yyyy");
break;
case DateTimeFormat.datumlong:
return date.ToLongDateString();
break;
default:
return date.ToShortDateString();
}
return date.ToString("dd.mm.yyyy");
}
}
}

@ -41,6 +41,9 @@
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Dokumenttyp));
this.tabControlAdv1 = new Syncfusion.Windows.Forms.Tools.TabControlAdv();
this.tabPageAdv1 = new Syncfusion.Windows.Forms.Tools.TabPageAdv();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.cbebanking_moeglich = new System.Windows.Forms.CheckBox();
this.cbversandstrasse_moeglich = new System.Windows.Forms.CheckBox();
this.toolStrip2 = new System.Windows.Forms.ToolStrip();
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
this.GrpUnterschrifte = new System.Windows.Forms.GroupBox();
@ -82,7 +85,10 @@
this.Label1 = new System.Windows.Forms.Label();
this.tabPageAdv2 = new Syncfusion.Windows.Forms.Tools.TabPageAdv();
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.groupBox6 = new System.Windows.Forms.GroupBox();
this.sfDataGrid1 = new Syncfusion.WinForms.DataGrid.SfDataGrid();
this.groupBox5 = new System.Windows.Forms.GroupBox();
this.listBox1 = new System.Windows.Forms.ListBox();
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
this.grpVorlagenfeld = new System.Windows.Forms.GroupBox();
@ -99,8 +105,8 @@
this.label8 = new System.Windows.Forms.Label();
this.txtessimagetop = new System.Windows.Forms.TextBox();
this.label7 = new System.Windows.Forms.Label();
this.textBox2 = new System.Windows.Forms.TextBox();
this.txtessfieldname = new System.Windows.Forms.Label();
this.txtessfieldname = new System.Windows.Forms.TextBox();
this.lblessfieldname = new System.Windows.Forms.Label();
this.txtessclass = new System.Windows.Forms.TextBox();
this.label9 = new System.Windows.Forms.Label();
this.txtBookmarkEnd = new System.Windows.Forms.TextBox();
@ -119,9 +125,19 @@
this.lblfeldregeliddesc = new System.Windows.Forms.Label();
this.lblID = new System.Windows.Forms.Label();
this.lbliddesc = new System.Windows.Forms.Label();
this.chkaktiv = new System.Windows.Forms.CheckBox();
this.label14 = new System.Windows.Forms.Label();
this.groupBox7 = new System.Windows.Forms.GroupBox();
this.rbBezeichnung = new System.Windows.Forms.RadioButton();
this.rbNr = new System.Windows.Forms.RadioButton();
this.label15 = new System.Windows.Forms.Label();
this.txtFilter = new System.Windows.Forms.TextBox();
this.label16 = new System.Windows.Forms.Label();
this.panel1 = new System.Windows.Forms.Panel();
((System.ComponentModel.ISupportInitialize)(this.tabControlAdv1)).BeginInit();
this.tabControlAdv1.SuspendLayout();
this.tabPageAdv1.SuspendLayout();
this.groupBox1.SuspendLayout();
this.toolStrip2.SuspendLayout();
this.GrpUnterschrifte.SuspendLayout();
this.GrpBewilligung.SuspendLayout();
@ -138,24 +154,29 @@
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
this.splitContainer1.SuspendLayout();
this.groupBox6.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.sfDataGrid1)).BeginInit();
this.groupBox5.SuspendLayout();
this.toolStrip1.SuspendLayout();
this.grpVorlagenfeld.SuspendLayout();
this.groupBox7.SuspendLayout();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// tabControlAdv1
//
this.tabControlAdv1.BeforeTouchSize = new System.Drawing.Size(1286, 671);
this.tabControlAdv1.BeforeTouchSize = new System.Drawing.Size(1019, 760);
this.tabControlAdv1.Controls.Add(this.tabPageAdv1);
this.tabControlAdv1.Controls.Add(this.tabPageAdv2);
this.tabControlAdv1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabControlAdv1.Location = new System.Drawing.Point(2, 2);
this.tabControlAdv1.Location = new System.Drawing.Point(284, 2);
this.tabControlAdv1.Name = "tabControlAdv1";
this.tabControlAdv1.Size = new System.Drawing.Size(1286, 671);
this.tabControlAdv1.Size = new System.Drawing.Size(1019, 760);
this.tabControlAdv1.TabIndex = 0;
//
// tabPageAdv1
//
this.tabPageAdv1.Controls.Add(this.groupBox1);
this.tabPageAdv1.Controls.Add(this.toolStrip2);
this.tabPageAdv1.Controls.Add(this.GrpUnterschrifte);
this.tabPageAdv1.Controls.Add(this.GrpBewilligung);
@ -168,11 +189,42 @@
this.tabPageAdv1.Location = new System.Drawing.Point(1, 25);
this.tabPageAdv1.Name = "tabPageAdv1";
this.tabPageAdv1.ShowCloseButton = true;
this.tabPageAdv1.Size = new System.Drawing.Size(1283, 644);
this.tabPageAdv1.Size = new System.Drawing.Size(1016, 733);
this.tabPageAdv1.TabIndex = 1;
this.tabPageAdv1.Text = "Allgemein";
this.tabPageAdv1.ThemesEnabled = false;
//
// groupBox1
//
this.groupBox1.Controls.Add(this.cbebanking_moeglich);
this.groupBox1.Controls.Add(this.cbversandstrasse_moeglich);
this.groupBox1.Location = new System.Drawing.Point(15, 628);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(488, 75);
this.groupBox1.TabIndex = 26;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Versandstrasse";
//
// cbebanking_moeglich
//
this.cbebanking_moeglich.AutoSize = true;
this.cbebanking_moeglich.Location = new System.Drawing.Point(19, 43);
this.cbebanking_moeglich.Name = "cbebanking_moeglich";
this.cbebanking_moeglich.Size = new System.Drawing.Size(131, 17);
this.cbebanking_moeglich.TabIndex = 1;
this.cbebanking_moeglich.Text = "E-Banking zugelassen";
this.cbebanking_moeglich.UseVisualStyleBackColor = true;
//
// cbversandstrasse_moeglich
//
this.cbversandstrasse_moeglich.AutoSize = true;
this.cbversandstrasse_moeglich.Location = new System.Drawing.Point(19, 20);
this.cbversandstrasse_moeglich.Name = "cbversandstrasse_moeglich";
this.cbversandstrasse_moeglich.Size = new System.Drawing.Size(79, 17);
this.cbversandstrasse_moeglich.TabIndex = 0;
this.cbversandstrasse_moeglich.Text = "zugelassen";
this.cbversandstrasse_moeglich.UseVisualStyleBackColor = true;
//
// toolStrip2
//
this.toolStrip2.AutoSize = false;
@ -180,7 +232,7 @@
this.toolStripButton1});
this.toolStrip2.Location = new System.Drawing.Point(0, 0);
this.toolStrip2.Name = "toolStrip2";
this.toolStrip2.Size = new System.Drawing.Size(1283, 42);
this.toolStrip2.Size = new System.Drawing.Size(1016, 42);
this.toolStrip2.TabIndex = 27;
this.toolStrip2.Text = "toolStrip2";
//
@ -204,7 +256,7 @@
this.GrpUnterschrifte.Controls.Add(this.cbFormularOhneUnterschrift);
this.GrpUnterschrifte.Controls.Add(this.cbDigitaleUnterschrift);
this.GrpUnterschrifte.Controls.Add(this.cbUnterschriftlinks);
this.GrpUnterschrifte.Location = new System.Drawing.Point(13, 347);
this.GrpUnterschrifte.Location = new System.Drawing.Point(15, 337);
this.GrpUnterschrifte.Name = "GrpUnterschrifte";
this.GrpUnterschrifte.Size = new System.Drawing.Size(488, 128);
this.GrpUnterschrifte.TabIndex = 26;
@ -277,13 +329,12 @@
// GrpBewilligung
//
this.GrpBewilligung.Controls.Add(this.chkBewilliigungZwingend);
this.GrpBewilligung.Location = new System.Drawing.Point(13, 481);
this.GrpBewilligung.Location = new System.Drawing.Point(15, 471);
this.GrpBewilligung.Name = "GrpBewilligung";
this.GrpBewilligung.Size = new System.Drawing.Size(488, 43);
this.GrpBewilligung.TabIndex = 25;
this.GrpBewilligung.TabStop = false;
this.GrpBewilligung.Text = "Unterschriftenprüfung";
this.GrpBewilligung.Visible = false;
//
// chkBewilliigungZwingend
//
@ -301,7 +352,7 @@
this.groupBox4.Controls.Add(this.cbPDFDirekteArchivierung);
this.groupBox4.Controls.Add(this.cbPDFDokument);
this.groupBox4.Controls.Add(this.cbOfficeDokument);
this.groupBox4.Location = new System.Drawing.Point(13, 530);
this.groupBox4.Location = new System.Drawing.Point(15, 520);
this.groupBox4.Name = "groupBox4";
this.groupBox4.Size = new System.Drawing.Size(488, 102);
this.groupBox4.TabIndex = 24;
@ -345,9 +396,9 @@
// groupBox3
//
this.groupBox3.Controls.Add(this.TreeDokumentArt);
this.groupBox3.Location = new System.Drawing.Point(519, 51);
this.groupBox3.Location = new System.Drawing.Point(521, 41);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(651, 581);
this.groupBox3.Size = new System.Drawing.Size(255, 581);
this.groupBox3.TabIndex = 24;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "Struktur";
@ -508,7 +559,7 @@
this.GroupBox2.Controls.Add(this.cbAnzeigeVorlagenauswahl);
this.GroupBox2.Controls.Add(this.cbbezeichnungmutierbar);
this.GroupBox2.Controls.Add(this.cbVertrag);
this.GroupBox2.Location = new System.Drawing.Point(13, 228);
this.GroupBox2.Location = new System.Drawing.Point(15, 218);
this.GroupBox2.Name = "GroupBox2";
this.GroupBox2.Size = new System.Drawing.Size(488, 113);
this.GroupBox2.TabIndex = 4;
@ -517,7 +568,7 @@
//
// cbaktiv
//
this.cbaktiv.Location = new System.Drawing.Point(291, 78);
this.cbaktiv.Location = new System.Drawing.Point(293, 53);
this.cbaktiv.Name = "cbaktiv";
this.cbaktiv.Size = new System.Drawing.Size(189, 24);
this.cbaktiv.TabIndex = 25;
@ -583,7 +634,7 @@
this.Grp1.Controls.Add(this.TxTBeschreibung);
this.Grp1.Controls.Add(this.TxTBezeichnung);
this.Grp1.Controls.Add(this.Label1);
this.Grp1.Location = new System.Drawing.Point(13, 55);
this.Grp1.Location = new System.Drawing.Point(15, 45);
this.Grp1.Name = "Grp1";
this.Grp1.Size = new System.Drawing.Size(488, 167);
this.Grp1.TabIndex = 2;
@ -701,7 +752,7 @@
this.tabPageAdv2.Location = new System.Drawing.Point(1, 25);
this.tabPageAdv2.Name = "tabPageAdv2";
this.tabPageAdv2.ShowCloseButton = true;
this.tabPageAdv2.Size = new System.Drawing.Size(1283, 644);
this.tabPageAdv2.Size = new System.Drawing.Size(1016, 733);
this.tabPageAdv2.TabIndex = 2;
this.tabPageAdv2.Text = "Voralgenfelder";
this.tabPageAdv2.ThemesEnabled = false;
@ -714,16 +765,28 @@
//
// splitContainer1.Panel1
//
this.splitContainer1.Panel1.Controls.Add(this.sfDataGrid1);
this.splitContainer1.Panel1.Controls.Add(this.groupBox6);
this.splitContainer1.Panel1.Controls.Add(this.groupBox5);
this.splitContainer1.Panel1.Controls.Add(this.toolStrip1);
//
// splitContainer1.Panel2
//
this.splitContainer1.Panel2.Controls.Add(this.grpVorlagenfeld);
this.splitContainer1.Size = new System.Drawing.Size(1283, 644);
this.splitContainer1.SplitterDistance = 930;
this.splitContainer1.Size = new System.Drawing.Size(1016, 733);
this.splitContainer1.SplitterDistance = 735;
this.splitContainer1.TabIndex = 0;
//
// groupBox6
//
this.groupBox6.Controls.Add(this.sfDataGrid1);
this.groupBox6.Dock = System.Windows.Forms.DockStyle.Fill;
this.groupBox6.Location = new System.Drawing.Point(200, 42);
this.groupBox6.Name = "groupBox6";
this.groupBox6.Size = new System.Drawing.Size(535, 691);
this.groupBox6.TabIndex = 31;
this.groupBox6.TabStop = false;
this.groupBox6.Text = "Verwendete Vorlagenfelder";
//
// sfDataGrid1
//
this.sfDataGrid1.AccessibleName = "Table";
@ -733,12 +796,33 @@
this.sfDataGrid1.AutoSizeColumnsMode = Syncfusion.WinForms.DataGrid.Enums.AutoSizeColumnsMode.AllCells;
this.sfDataGrid1.CopyOption = Syncfusion.WinForms.DataGrid.Enums.CopyOptions.None;
this.sfDataGrid1.Dock = System.Windows.Forms.DockStyle.Fill;
this.sfDataGrid1.Location = new System.Drawing.Point(0, 42);
this.sfDataGrid1.Location = new System.Drawing.Point(3, 16);
this.sfDataGrid1.Name = "sfDataGrid1";
this.sfDataGrid1.Size = new System.Drawing.Size(930, 602);
this.sfDataGrid1.Size = new System.Drawing.Size(529, 672);
this.sfDataGrid1.TabIndex = 1;
this.sfDataGrid1.CellClick += new Syncfusion.WinForms.DataGrid.Events.CellClickEventHandler(this.sfDataGrid1_CellClick);
//
// groupBox5
//
this.groupBox5.Controls.Add(this.listBox1);
this.groupBox5.Dock = System.Windows.Forms.DockStyle.Left;
this.groupBox5.Location = new System.Drawing.Point(0, 42);
this.groupBox5.Name = "groupBox5";
this.groupBox5.Size = new System.Drawing.Size(200, 691);
this.groupBox5.TabIndex = 30;
this.groupBox5.TabStop = false;
this.groupBox5.Text = "Vorhandene Vorlagenfelder";
//
// listBox1
//
this.listBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.listBox1.FormattingEnabled = true;
this.listBox1.Location = new System.Drawing.Point(3, 16);
this.listBox1.Name = "listBox1";
this.listBox1.Size = new System.Drawing.Size(194, 672);
this.listBox1.TabIndex = 29;
this.listBox1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.listBox1_MouseDoubleClick);
//
// toolStrip1
//
this.toolStrip1.AutoSize = false;
@ -746,7 +830,7 @@
this.toolStripButton2});
this.toolStrip1.Location = new System.Drawing.Point(0, 0);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(930, 42);
this.toolStrip1.Size = new System.Drawing.Size(735, 42);
this.toolStrip1.TabIndex = 28;
this.toolStrip1.Text = "toolStrip1";
//
@ -762,6 +846,8 @@
//
// grpVorlagenfeld
//
this.grpVorlagenfeld.Controls.Add(this.chkaktiv);
this.grpVorlagenfeld.Controls.Add(this.label14);
this.grpVorlagenfeld.Controls.Add(this.lblFeldregel);
this.grpVorlagenfeld.Controls.Add(this.txtTechbezeichnung);
this.grpVorlagenfeld.Controls.Add(this.label13);
@ -775,8 +861,8 @@
this.grpVorlagenfeld.Controls.Add(this.label8);
this.grpVorlagenfeld.Controls.Add(this.txtessimagetop);
this.grpVorlagenfeld.Controls.Add(this.label7);
this.grpVorlagenfeld.Controls.Add(this.textBox2);
this.grpVorlagenfeld.Controls.Add(this.txtessfieldname);
this.grpVorlagenfeld.Controls.Add(this.lblessfieldname);
this.grpVorlagenfeld.Controls.Add(this.txtessclass);
this.grpVorlagenfeld.Controls.Add(this.label9);
this.grpVorlagenfeld.Controls.Add(this.txtBookmarkEnd);
@ -798,7 +884,7 @@
this.grpVorlagenfeld.Dock = System.Windows.Forms.DockStyle.Fill;
this.grpVorlagenfeld.Location = new System.Drawing.Point(0, 0);
this.grpVorlagenfeld.Name = "grpVorlagenfeld";
this.grpVorlagenfeld.Size = new System.Drawing.Size(349, 644);
this.grpVorlagenfeld.Size = new System.Drawing.Size(277, 733);
this.grpVorlagenfeld.TabIndex = 0;
this.grpVorlagenfeld.TabStop = false;
this.grpVorlagenfeld.Text = "Vorlagenfeld";
@ -819,6 +905,7 @@
this.txtTechbezeichnung.Name = "txtTechbezeichnung";
this.txtTechbezeichnung.Size = new System.Drawing.Size(134, 20);
this.txtTechbezeichnung.TabIndex = 32;
this.txtTechbezeichnung.Tag = "TechBezeichnung";
this.txtTechbezeichnung.Leave += new System.EventHandler(this.txtSort_Leave);
//
// label13
@ -836,6 +923,7 @@
this.txtUIDescription.Name = "txtUIDescription";
this.txtUIDescription.Size = new System.Drawing.Size(134, 20);
this.txtUIDescription.TabIndex = 30;
this.txtUIDescription.Tag = "Feldbezeichnung";
this.txtUIDescription.Leave += new System.EventHandler(this.txtSort_Leave);
//
// label12
@ -849,16 +937,17 @@
//
// txtessimageheight
//
this.txtessimageheight.Location = new System.Drawing.Point(135, 531);
this.txtessimageheight.Location = new System.Drawing.Point(135, 513);
this.txtessimageheight.Name = "txtessimageheight";
this.txtessimageheight.Size = new System.Drawing.Size(134, 20);
this.txtessimageheight.TabIndex = 28;
this.txtessimageheight.Tag = "ess_img_height";
this.txtessimageheight.Leave += new System.EventHandler(this.txtSort_Leave);
//
// label11
//
this.label11.AutoSize = true;
this.label11.Location = new System.Drawing.Point(18, 531);
this.label11.Location = new System.Drawing.Point(18, 513);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(92, 13);
this.label11.TabIndex = 27;
@ -866,16 +955,17 @@
//
// txtessimagewidth
//
this.txtessimagewidth.Location = new System.Drawing.Point(135, 505);
this.txtessimagewidth.Location = new System.Drawing.Point(135, 487);
this.txtessimagewidth.Name = "txtessimagewidth";
this.txtessimagewidth.Size = new System.Drawing.Size(134, 20);
this.txtessimagewidth.TabIndex = 26;
this.txtessimagewidth.Tag = "ess_img_wdth";
this.txtessimagewidth.Leave += new System.EventHandler(this.txtSort_Leave);
//
// label10
//
this.label10.AutoSize = true;
this.label10.Location = new System.Drawing.Point(18, 505);
this.label10.Location = new System.Drawing.Point(18, 487);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(88, 13);
this.label10.TabIndex = 25;
@ -883,16 +973,17 @@
//
// txtessimageleft
//
this.txtessimageleft.Location = new System.Drawing.Point(135, 479);
this.txtessimageleft.Location = new System.Drawing.Point(135, 461);
this.txtessimageleft.Name = "txtessimageleft";
this.txtessimageleft.Size = new System.Drawing.Size(134, 20);
this.txtessimageleft.TabIndex = 24;
this.txtessimageleft.Tag = "ess_img_left";
this.txtessimageleft.Leave += new System.EventHandler(this.txtSort_Leave);
//
// label8
//
this.label8.AutoSize = true;
this.label8.Location = new System.Drawing.Point(18, 479);
this.label8.Location = new System.Drawing.Point(18, 461);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(77, 13);
this.label8.TabIndex = 23;
@ -900,50 +991,54 @@
//
// txtessimagetop
//
this.txtessimagetop.Location = new System.Drawing.Point(135, 453);
this.txtessimagetop.Location = new System.Drawing.Point(135, 435);
this.txtessimagetop.Name = "txtessimagetop";
this.txtessimagetop.Size = new System.Drawing.Size(134, 20);
this.txtessimagetop.TabIndex = 22;
this.txtessimagetop.Tag = "ess_img_top";
this.txtessimagetop.Leave += new System.EventHandler(this.txtSort_Leave);
//
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(18, 453);
this.label7.Location = new System.Drawing.Point(18, 435);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(82, 13);
this.label7.TabIndex = 21;
this.label7.Text = "ESS-Image Top";
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(135, 427);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(187, 20);
this.textBox2.TabIndex = 20;
this.textBox2.Leave += new System.EventHandler(this.txtSort_Leave);
//
// txtessfieldname
//
this.txtessfieldname.AutoSize = true;
this.txtessfieldname.Location = new System.Drawing.Point(18, 427);
this.txtessfieldname.Location = new System.Drawing.Point(135, 409);
this.txtessfieldname.Name = "txtessfieldname";
this.txtessfieldname.Size = new System.Drawing.Size(77, 13);
this.txtessfieldname.TabIndex = 19;
this.txtessfieldname.Text = "ESS-Feldname";
this.txtessfieldname.Size = new System.Drawing.Size(187, 20);
this.txtessfieldname.TabIndex = 20;
this.txtessfieldname.Tag = "ess_feldname";
this.txtessfieldname.TextChanged += new System.EventHandler(this.textBox2_TextChanged);
this.txtessfieldname.Leave += new System.EventHandler(this.txtSort_Leave);
//
// lblessfieldname
//
this.lblessfieldname.AutoSize = true;
this.lblessfieldname.Location = new System.Drawing.Point(18, 409);
this.lblessfieldname.Name = "lblessfieldname";
this.lblessfieldname.Size = new System.Drawing.Size(77, 13);
this.lblessfieldname.TabIndex = 19;
this.lblessfieldname.Text = "ESS-Feldname";
//
// txtessclass
//
this.txtessclass.Location = new System.Drawing.Point(135, 401);
this.txtessclass.Location = new System.Drawing.Point(135, 383);
this.txtessclass.Name = "txtessclass";
this.txtessclass.Size = new System.Drawing.Size(187, 20);
this.txtessclass.TabIndex = 18;
this.txtessclass.Tag = "ESSClass";
this.txtessclass.Leave += new System.EventHandler(this.txtSort_Leave);
//
// label9
//
this.label9.AutoSize = true;
this.label9.Location = new System.Drawing.Point(18, 401);
this.label9.Location = new System.Drawing.Point(18, 383);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(62, 13);
this.label9.TabIndex = 17;
@ -955,6 +1050,7 @@
this.txtBookmarkEnd.Name = "txtBookmarkEnd";
this.txtBookmarkEnd.Size = new System.Drawing.Size(187, 20);
this.txtBookmarkEnd.TabIndex = 16;
this.txtBookmarkEnd.Tag = "etm";
this.txtBookmarkEnd.Leave += new System.EventHandler(this.txtSort_Leave);
//
// label6
@ -972,6 +1068,7 @@
this.txtbookmarkstart.Name = "txtbookmarkstart";
this.txtbookmarkstart.Size = new System.Drawing.Size(187, 20);
this.txtbookmarkstart.TabIndex = 14;
this.txtbookmarkstart.Tag = "btm";
this.txtbookmarkstart.Leave += new System.EventHandler(this.txtSort_Leave);
//
// label5
@ -989,6 +1086,7 @@
this.txtfeldname.Name = "txtfeldname";
this.txtfeldname.Size = new System.Drawing.Size(187, 20);
this.txtfeldname.TabIndex = 12;
this.txtfeldname.Tag = "feldname";
this.txtfeldname.TextChanged += new System.EventHandler(this.txtfeldname_TextChanged);
this.txtfeldname.Leave += new System.EventHandler(this.txtSort_Leave);
//
@ -1008,7 +1106,9 @@
this.chkzwingend.Name = "chkzwingend";
this.chkzwingend.Size = new System.Drawing.Size(15, 14);
this.chkzwingend.TabIndex = 10;
this.chkzwingend.Tag = "Zwingend";
this.chkzwingend.UseVisualStyleBackColor = true;
this.chkzwingend.CheckedChanged += new System.EventHandler(this.chkui_CheckedChanged);
//
// lbelzwingend
//
@ -1025,6 +1125,7 @@
this.txtSort.Name = "txtSort";
this.txtSort.Size = new System.Drawing.Size(134, 20);
this.txtSort.TabIndex = 8;
this.txtSort.Tag = "reihenfolge";
this.txtSort.Leave += new System.EventHandler(this.txtSort_Leave);
//
// lblsort
@ -1044,7 +1145,9 @@
this.chkui.Name = "chkui";
this.chkui.Size = new System.Drawing.Size(15, 14);
this.chkui.TabIndex = 6;
this.chkui.Tag = "UI";
this.chkui.UseVisualStyleBackColor = true;
this.chkui.CheckedChanged += new System.EventHandler(this.chkui_CheckedChanged);
//
// lbluidesc
//
@ -1091,12 +1194,104 @@
this.lbliddesc.TabIndex = 0;
this.lbliddesc.Text = "ID";
//
// chkaktiv
//
this.chkaktiv.AutoSize = true;
this.chkaktiv.Location = new System.Drawing.Point(135, 576);
this.chkaktiv.Name = "chkaktiv";
this.chkaktiv.Size = new System.Drawing.Size(15, 14);
this.chkaktiv.TabIndex = 35;
this.chkaktiv.Tag = "aktiv";
this.chkaktiv.UseVisualStyleBackColor = true;
this.chkaktiv.CheckedChanged += new System.EventHandler(this.chkui_CheckedChanged);
//
// label14
//
this.label14.AutoSize = true;
this.label14.Location = new System.Drawing.Point(18, 577);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(31, 13);
this.label14.TabIndex = 34;
this.label14.Text = "Aktiv";
//
// groupBox7
//
this.groupBox7.Controls.Add(this.panel1);
this.groupBox7.Dock = System.Windows.Forms.DockStyle.Left;
this.groupBox7.Location = new System.Drawing.Point(2, 2);
this.groupBox7.Name = "groupBox7";
this.groupBox7.Size = new System.Drawing.Size(282, 760);
this.groupBox7.TabIndex = 1;
this.groupBox7.TabStop = false;
this.groupBox7.Text = "sflk";
//
// rbBezeichnung
//
this.rbBezeichnung.AutoSize = true;
this.rbBezeichnung.Location = new System.Drawing.Point(111, 40);
this.rbBezeichnung.Name = "rbBezeichnung";
this.rbBezeichnung.Size = new System.Drawing.Size(87, 17);
this.rbBezeichnung.TabIndex = 9;
this.rbBezeichnung.Text = "Bezeichnung";
this.rbBezeichnung.UseVisualStyleBackColor = true;
//
// rbNr
//
this.rbNr.AutoSize = true;
this.rbNr.Checked = true;
this.rbNr.Location = new System.Drawing.Point(69, 39);
this.rbNr.Name = "rbNr";
this.rbNr.Size = new System.Drawing.Size(36, 17);
this.rbNr.TabIndex = 8;
this.rbNr.TabStop = true;
this.rbNr.Text = "Nr";
this.rbNr.UseVisualStyleBackColor = true;
//
// label15
//
this.label15.AutoSize = true;
this.label15.Location = new System.Drawing.Point(12, 37);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(26, 13);
this.label15.TabIndex = 7;
this.label15.Text = "Sort";
//
// txtFilter
//
this.txtFilter.Location = new System.Drawing.Point(69, 12);
this.txtFilter.Name = "txtFilter";
this.txtFilter.Size = new System.Drawing.Size(139, 20);
this.txtFilter.TabIndex = 6;
//
// label16
//
this.label16.AutoSize = true;
this.label16.Location = new System.Drawing.Point(12, 15);
this.label16.Name = "label16";
this.label16.Size = new System.Drawing.Size(29, 13);
this.label16.TabIndex = 5;
this.label16.Text = "Filter";
//
// panel1
//
this.panel1.Controls.Add(this.txtFilter);
this.panel1.Controls.Add(this.rbBezeichnung);
this.panel1.Controls.Add(this.label16);
this.panel1.Controls.Add(this.rbNr);
this.panel1.Controls.Add(this.label15);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(3, 16);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(276, 71);
this.panel1.TabIndex = 10;
//
// Dokumenttyp
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1290, 675);
this.ClientSize = new System.Drawing.Size(1305, 764);
this.Controls.Add(this.tabControlAdv1);
this.Controls.Add(this.groupBox7);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "Dokumenttyp";
this.Style.MdiChild.IconHorizontalAlignment = System.Windows.Forms.HorizontalAlignment.Center;
@ -1106,6 +1301,8 @@
((System.ComponentModel.ISupportInitialize)(this.tabControlAdv1)).EndInit();
this.tabControlAdv1.ResumeLayout(false);
this.tabPageAdv1.ResumeLayout(false);
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.toolStrip2.ResumeLayout(false);
this.toolStrip2.PerformLayout();
this.GrpUnterschrifte.ResumeLayout(false);
@ -1127,11 +1324,16 @@
this.splitContainer1.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
this.splitContainer1.ResumeLayout(false);
this.groupBox6.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.sfDataGrid1)).EndInit();
this.groupBox5.ResumeLayout(false);
this.toolStrip1.ResumeLayout(false);
this.toolStrip1.PerformLayout();
this.grpVorlagenfeld.ResumeLayout(false);
this.grpVorlagenfeld.PerformLayout();
this.groupBox7.ResumeLayout(false);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.ResumeLayout(false);
}
@ -1201,8 +1403,8 @@
private System.Windows.Forms.Label label8;
private System.Windows.Forms.TextBox txtessimagetop;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.Label txtessfieldname;
private System.Windows.Forms.TextBox txtessfieldname;
private System.Windows.Forms.Label lblessfieldname;
private System.Windows.Forms.TextBox txtessclass;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.TextBox txtBookmarkEnd;
@ -1218,5 +1420,20 @@
private System.Windows.Forms.ToolStripButton toolStripButton1;
private System.Windows.Forms.ToolStrip toolStrip1;
private System.Windows.Forms.ToolStripButton toolStripButton2;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.CheckBox cbebanking_moeglich;
private System.Windows.Forms.CheckBox cbversandstrasse_moeglich;
private System.Windows.Forms.ListBox listBox1;
private System.Windows.Forms.GroupBox groupBox6;
private System.Windows.Forms.GroupBox groupBox5;
private System.Windows.Forms.CheckBox chkaktiv;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.GroupBox groupBox7;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.TextBox txtFilter;
private System.Windows.Forms.RadioButton rbBezeichnung;
private System.Windows.Forms.Label label16;
private System.Windows.Forms.RadioButton rbNr;
private System.Windows.Forms.Label label15;
}
}

@ -13,11 +13,15 @@ using Syncfusion.WinForms.Controls.Styles;
using Database;
using Helper;
using System.Windows.Forms.VisualStyles;
using OnDoc.Helper;
namespace OnDoc.UIControls.Administrator
{
public partial class Dokumenttyp : SfForm
{
DB db = new DB(AppParams.connectionstring);
private int dokumenttypnr = 0;
System.Data.DataRow Origin;
@ -36,7 +40,6 @@ namespace OnDoc.UIControls.Administrator
private void Dokumenttyp_Load(object sender, EventArgs e)
{
DB db = new DB(AppParams.connectionstring);
db.Get_Tabledata("Select office_vorlagenr, bezeichnung from office_vorlage", false, true);
cbboxofficevorlage.DataSource = db.dsdaten.Tables[0];
cbboxofficevorlage.DisplayMember = "Bezeichnung";
@ -100,9 +103,25 @@ namespace OnDoc.UIControls.Administrator
cbOfficeDokument.Checked = true;
break;
}
this.cbversandstrasse_moeglich.Checked = r["versandstrasse_moeglich"].ToString() == "True";
this.cbebanking_moeglich.Checked = r["ebanking_moeglich"].ToString() == "True";
db.Get_Tabledata("Select vorlagenfeldregelnr, bezeichnung from vorlagenfeldregel where aktiv=1 order by bezeichnung", false, true);
this.listBox1.DataSource = db.dsdaten.Tables[0];
this.listBox1.DisplayMember = "Bezeichnung";
this.listBox1.ValueMember = "vorlagenfeldregelnr";
Update_Vorlagenfelder();
}
private void Update_Vorlagenfelder() {
db.Get_Tabledata("Select * from View_Vorlagenfelder_Relaunch where doktypid=" + dokumenttypnr.ToString(), false, true);
this.sfDataGrid1.DataSource = db.dsdaten.Tables[0];
DataTable dt = db.dsdaten.Tables[0];
TableHelper.FormatTable(ref dt, "vorlagenfeld", ref this.sfDataGrid1);
sfDataGrid1.Columns["Feldregel"].AllowTextWrapping = false;
sfDataGrid1.Refresh();
}
@ -146,7 +165,7 @@ namespace OnDoc.UIControls.Administrator
txtbookmarkstart.Text = dr["BTM"].ToString();
txtBookmarkEnd.Text = dr["ETM"].ToString();
txtessclass.Text = dr["essclass"].ToString();
txtessfieldname.Text = dr["ess_feldname"].ToString();
lblessfieldname.Text = dr["ess_feldname"].ToString();
txtessimagetop.Text = dr["ess_img_top"].ToString();
txtessimageleft.Text = dr["ess_img_left"].ToString();
txtessimagewidth.Text = dr["ess_img_width"].ToString();
@ -155,12 +174,14 @@ namespace OnDoc.UIControls.Administrator
txtUIDescription.Text = dr["feldbezeichnung"].ToString();
txtTechbezeichnung.Text = dr["Techbezeichnung"].ToString();
if (Convert.ToBoolean(dr["ui"]) == true)
{
chkui.Checked = true;
txtSort.Enabled = true;
txtUIDescription.Enabled = true;
txtTechbezeichnung.Enabled = true;
chkzwingend.Enabled = true;
}
else
{
@ -169,6 +190,15 @@ namespace OnDoc.UIControls.Administrator
txtSort.Enabled = false;
txtUIDescription.Enabled = false;
txtTechbezeichnung.Enabled = false;
chkzwingend.Enabled = false;
}
if (Convert.ToBoolean(dr["aktiv"]) == true)
{
chkaktiv.Checked = true;
}
else
{
chkaktiv.Checked = false;
}
}
@ -179,16 +209,22 @@ namespace OnDoc.UIControls.Administrator
private void txtSort_Leave(object sender, EventArgs e)
{
TextBox tmptxtbox = new TextBox();
tmptxtbox = sender as TextBox;
Origin["BTM"] = tmptxtbox.Text;
try
{
var record = sfDataGrid1.View.Records.GetItemAt(sfDataGrid1.SelectedIndex);
TextBox tmptxtbox = new TextBox();
tmptxtbox = sender as TextBox;
this.sfDataGrid1.View.GetPropertyAccessProvider().SetValue(record, "BTM", tmptxtbox.Text);
Origin[tmptxtbox.Tag.ToString()] = tmptxtbox.Text;
Origin.AcceptChanges();
sfDataGrid1.Update();
var record = sfDataGrid1.View.Records.GetItemAt(sfDataGrid1.SelectedIndex);
this.sfDataGrid1.View.GetPropertyAccessProvider().SetValue(record, tmptxtbox.Tag.ToString(), tmptxtbox.Text);
Origin.AcceptChanges();
sfDataGrid1.Update();
}
catch { }
}
private void toolStripButton1_Click(object sender, EventArgs e)
@ -213,19 +249,8 @@ namespace OnDoc.UIControls.Administrator
r["aktiv"] = this.cbaktiv.Checked;
r["mutierer"] = AppParams.CurrentMitarbieter;
r["mutiert_am"]=DateTime.Now;
r["versandstrasse_moeglich"] = cbversandstrasse_moeglich.Checked == true;
r["ebanking_moeglich"] = cbebanking_moeglich.Checked == true;
if (cbOfficeDokument.Checked) { r["genresultat_type"] = 1; }
@ -233,7 +258,7 @@ namespace OnDoc.UIControls.Administrator
if (cbPDFDirekteArchivierung.Checked) { r["genresultat_type"] = 3; }
if (cbbearbeitungzwingend.Checked) { r["genresultat_type"] = 4; }
db.Update_Data();
@ -253,5 +278,47 @@ namespace OnDoc.UIControls.Administrator
db.Update_Data();
ToastMessage.ShowToast("Speichern", "Dokumenttyp erfolgreich gespeichert");
}
private void listBox1_MouseDoubleClick(object sender, MouseEventArgs e)
{
DB db = new DB(AppParams.connectionstring);
db.Insert_Vorlagenfeld(Convert.ToInt32(this.listBox1.SelectedValue), this.dokumenttypnr, AppParams.CurrentMitarbieter);
db.Get_Tabledata("Select top 1 vorlagenfeldnr from vorlagenfeld order by vorlagenfeldnr desc", false, true);
int newkey = Convert.ToInt32(db.dsdaten.Tables[0].Rows[0][0]);
Update_Vorlagenfelder();
pos_grid(newkey);
db = null;
}
private void pos_grid(int newkey)
{
var records = this.sfDataGrid1.View.Records;
foreach (var record in records)
{
var obj = record.Data as DataRowView;
if (obj["id"].ToString()==newkey.ToString())
this.sfDataGrid1.SelectedItems.Add(obj);
}
}
private void textBox2_TextChanged(object sender, EventArgs e)
{
}
private void chkui_CheckedChanged(object sender, EventArgs e)
{
CheckBox tmpcheckbox = sender as CheckBox;
Origin[tmpcheckbox.Tag.ToString()] = tmpcheckbox.Checked;
var record = sfDataGrid1.View.Records.GetItemAt(sfDataGrid1.SelectedIndex);
this.sfDataGrid1.View.GetPropertyAccessProvider().SetValue(record, tmpcheckbox.Tag.ToString(), tmpcheckbox.Checked);
Origin.AcceptChanges();
sfDataGrid1.Update();
}
}
}

@ -123,6 +123,9 @@
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>227, 17</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>25</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>

@ -29,14 +29,20 @@
private void InitializeComponent()
{
Syncfusion.Windows.Forms.Tools.TreeNodeAdvStyleInfo treeNodeAdvStyleInfo1 = new Syncfusion.Windows.Forms.Tools.TreeNodeAdvStyleInfo();
Syncfusion.Windows.Forms.PdfViewer.MessageBoxSettings messageBoxSettings7 = new Syncfusion.Windows.Forms.PdfViewer.MessageBoxSettings();
Syncfusion.Windows.PdfViewer.PdfViewerPrinterSettings pdfViewerPrinterSettings7 = new Syncfusion.Windows.PdfViewer.PdfViewerPrinterSettings();
Syncfusion.Windows.Forms.PdfViewer.MessageBoxSettings messageBoxSettings1 = new Syncfusion.Windows.Forms.PdfViewer.MessageBoxSettings();
Syncfusion.Windows.PdfViewer.PdfViewerPrinterSettings pdfViewerPrinterSettings1 = new Syncfusion.Windows.PdfViewer.PdfViewerPrinterSettings();
Syncfusion.Windows.Forms.PdfViewer.TextSearchSettings textSearchSettings1 = new Syncfusion.Windows.Forms.PdfViewer.TextSearchSettings();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(OfficeVorlage));
Syncfusion.Windows.Forms.PdfViewer.TextSearchSettings textSearchSettings7 = new Syncfusion.Windows.Forms.PdfViewer.TextSearchSettings();
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.tsbtnClose = new System.Windows.Forms.ToolStripButton();
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.groupBox7 = new System.Windows.Forms.GroupBox();
this.label20 = new System.Windows.Forms.Label();
this.label19 = new System.Windows.Forms.Label();
this.label18 = new System.Windows.Forms.Label();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.label17 = new System.Windows.Forms.Label();
this.TreeOfficeVorlagen = new Syncfusion.Windows.Forms.Tools.TreeViewAdv();
this.groupBox4 = new System.Windows.Forms.GroupBox();
this.GrpBarcodeInhalt = new System.Windows.Forms.GroupBox();
@ -103,14 +109,13 @@
this.txtNrProduktion = new System.Windows.Forms.TextBox();
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
this.groupBox7 = new System.Windows.Forms.GroupBox();
this.label17 = new System.Windows.Forms.Label();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.label18 = new System.Windows.Forms.Label();
this.label19 = new System.Windows.Forms.Label();
this.label20 = new System.Windows.Forms.Label();
this.toolStripSplitButton1 = new System.Windows.Forms.ToolStripSplitButton();
this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel();
this.toolStripTextBox1 = new System.Windows.Forms.ToolStripTextBox();
this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
this.toolStrip1.SuspendLayout();
this.groupBox1.SuspendLayout();
this.groupBox7.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.TreeOfficeVorlagen)).BeginInit();
this.groupBox4.SuspendLayout();
this.GrpBarcodeInhalt.SuspendLayout();
@ -120,7 +125,6 @@
this.groupBox5.SuspendLayout();
this.groupBox6.SuspendLayout();
this.panel1.SuspendLayout();
this.groupBox7.SuspendLayout();
this.SuspendLayout();
//
// toolStrip1
@ -128,7 +132,11 @@
this.toolStrip1.ImageScalingSize = new System.Drawing.Size(32, 32);
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.tsbtnClose,
this.toolStripButton1});
this.toolStripButton1,
this.toolStripSplitButton1,
this.toolStripLabel1,
this.toolStripTextBox1,
this.toolStripButton2});
this.toolStrip1.Location = new System.Drawing.Point(2, 2);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(1566, 39);
@ -169,6 +177,76 @@
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Office-Vorlagen";
//
// groupBox7
//
this.groupBox7.Controls.Add(this.label20);
this.groupBox7.Controls.Add(this.label19);
this.groupBox7.Controls.Add(this.label18);
this.groupBox7.Controls.Add(this.comboBox1);
this.groupBox7.Controls.Add(this.label17);
this.groupBox7.Location = new System.Drawing.Point(313, 296);
this.groupBox7.Name = "groupBox7";
this.groupBox7.Size = new System.Drawing.Size(534, 256);
this.groupBox7.TabIndex = 14;
this.groupBox7.TabStop = false;
this.groupBox7.Text = "PDF-Generierung";
//
// label20
//
this.label20.AutoSize = true;
this.label20.Location = new System.Drawing.Point(17, 150);
this.label20.Name = "label20";
this.label20.Size = new System.Drawing.Size(56, 13);
this.label20.TabIndex = 4;
this.label20.Text = "Exemplare";
//
// label19
//
this.label19.AutoSize = true;
this.label19.Location = new System.Drawing.Point(22, 26);
this.label19.Name = "label19";
this.label19.Size = new System.Drawing.Size(113, 13);
this.label19.TabIndex = 3;
this.label19.Text = "Text löschen/ersetzen";
//
// label18
//
this.label18.AutoSize = true;
this.label18.Location = new System.Drawing.Point(207, 127);
this.label18.Name = "label18";
this.label18.Size = new System.Drawing.Size(40, 13);
this.label18.TabIndex = 2;
this.label18.Text = "Secion";
//
// comboBox1
//
this.comboBox1.FormattingEnabled = true;
this.comboBox1.Items.AddRange(new object[] {
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10"});
this.comboBox1.Location = new System.Drawing.Point(263, 124);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(121, 21);
this.comboBox1.TabIndex = 1;
//
// label17
//
this.label17.AutoSize = true;
this.label17.Location = new System.Drawing.Point(18, 127);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(102, 13);
this.label17.TabIndex = 0;
this.label17.Text = "Dokument aufteilen ";
//
// TreeOfficeVorlagen
//
treeNodeAdvStyleInfo1.CheckBoxTickThickness = 1;
@ -659,17 +737,17 @@
this.pdfViewerControl1.IsTextSearchEnabled = true;
this.pdfViewerControl1.IsTextSelectionEnabled = true;
this.pdfViewerControl1.Location = new System.Drawing.Point(3, 227);
messageBoxSettings7.EnableNotification = true;
this.pdfViewerControl1.MessageBoxSettings = messageBoxSettings7;
messageBoxSettings1.EnableNotification = true;
this.pdfViewerControl1.MessageBoxSettings = messageBoxSettings1;
this.pdfViewerControl1.MinimumZoomPercentage = 50;
this.pdfViewerControl1.Name = "pdfViewerControl1";
this.pdfViewerControl1.PageBorderThickness = 1;
pdfViewerPrinterSettings7.Copies = 1;
pdfViewerPrinterSettings7.PageOrientation = Syncfusion.Windows.PdfViewer.PdfViewerPrintOrientation.Auto;
pdfViewerPrinterSettings7.PageSize = Syncfusion.Windows.PdfViewer.PdfViewerPrintSize.ActualSize;
pdfViewerPrinterSettings7.PrintLocation = ((System.Drawing.PointF)(resources.GetObject("pdfViewerPrinterSettings7.PrintLocation")));
pdfViewerPrinterSettings7.ShowPrintStatusDialog = true;
this.pdfViewerControl1.PrinterSettings = pdfViewerPrinterSettings7;
pdfViewerPrinterSettings1.Copies = 1;
pdfViewerPrinterSettings1.PageOrientation = Syncfusion.Windows.PdfViewer.PdfViewerPrintOrientation.Auto;
pdfViewerPrinterSettings1.PageSize = Syncfusion.Windows.PdfViewer.PdfViewerPrintSize.ActualSize;
pdfViewerPrinterSettings1.PrintLocation = ((System.Drawing.PointF)(resources.GetObject("pdfViewerPrinterSettings1.PrintLocation")));
pdfViewerPrinterSettings1.ShowPrintStatusDialog = true;
this.pdfViewerControl1.PrinterSettings = pdfViewerPrinterSettings1;
this.pdfViewerControl1.ReferencePath = null;
this.pdfViewerControl1.ScrollDisplacementValue = 0;
this.pdfViewerControl1.ShowHorizontalScrollBar = true;
@ -679,10 +757,10 @@
this.pdfViewerControl1.SpaceBetweenPages = 8;
this.pdfViewerControl1.TabIndex = 1;
this.pdfViewerControl1.Text = "pdfViewerControl1";
textSearchSettings7.CurrentInstanceColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(255)))), ((int)(((byte)(171)))), ((int)(((byte)(64)))));
textSearchSettings7.HighlightAllInstance = true;
textSearchSettings7.OtherInstanceColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(0)))));
this.pdfViewerControl1.TextSearchSettings = textSearchSettings7;
textSearchSettings1.CurrentInstanceColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(255)))), ((int)(((byte)(171)))), ((int)(((byte)(64)))));
textSearchSettings1.HighlightAllInstance = true;
textSearchSettings1.OtherInstanceColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(0)))));
this.pdfViewerControl1.TextSearchSettings = textSearchSettings1;
this.pdfViewerControl1.ThemeName = "Default";
this.pdfViewerControl1.VerticalScrollOffset = 0;
this.pdfViewerControl1.VisualStyle = Syncfusion.Windows.Forms.PdfViewer.VisualStyle.Default;
@ -863,75 +941,36 @@
//
this.openFileDialog1.FileName = "openFileDialog1";
//
// groupBox7
// toolStripSplitButton1
//
this.groupBox7.Controls.Add(this.label20);
this.groupBox7.Controls.Add(this.label19);
this.groupBox7.Controls.Add(this.label18);
this.groupBox7.Controls.Add(this.comboBox1);
this.groupBox7.Controls.Add(this.label17);
this.groupBox7.Location = new System.Drawing.Point(313, 296);
this.groupBox7.Name = "groupBox7";
this.groupBox7.Size = new System.Drawing.Size(534, 256);
this.groupBox7.TabIndex = 14;
this.groupBox7.TabStop = false;
this.groupBox7.Text = "PDF-Generierung";
this.toolStripSplitButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.toolStripSplitButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripSplitButton1.Image")));
this.toolStripSplitButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripSplitButton1.Name = "toolStripSplitButton1";
this.toolStripSplitButton1.Size = new System.Drawing.Size(48, 36);
this.toolStripSplitButton1.Text = "toolStripSplitButton1";
//
// label17
// toolStripLabel1
//
this.label17.AutoSize = true;
this.label17.Location = new System.Drawing.Point(18, 127);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(102, 13);
this.label17.TabIndex = 0;
this.label17.Text = "Dokument aufteilen ";
this.toolStripLabel1.Name = "toolStripLabel1";
this.toolStripLabel1.Size = new System.Drawing.Size(101, 36);
this.toolStripLabel1.Text = "Suche in Vorlagen";
//
// comboBox1
// toolStripTextBox1
//
this.comboBox1.FormattingEnabled = true;
this.comboBox1.Items.AddRange(new object[] {
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10"});
this.comboBox1.Location = new System.Drawing.Point(263, 124);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(121, 21);
this.comboBox1.TabIndex = 1;
this.toolStripTextBox1.Font = new System.Drawing.Font("Segoe UI", 9F);
this.toolStripTextBox1.Name = "toolStripTextBox1";
this.toolStripTextBox1.Size = new System.Drawing.Size(100, 39);
//
// label18
// toolStripButton2
//
this.label18.AutoSize = true;
this.label18.Location = new System.Drawing.Point(207, 127);
this.label18.Name = "label18";
this.label18.Size = new System.Drawing.Size(40, 13);
this.label18.TabIndex = 2;
this.label18.Text = "Secion";
//
// label19
//
this.label19.AutoSize = true;
this.label19.Location = new System.Drawing.Point(22, 26);
this.label19.Name = "label19";
this.label19.Size = new System.Drawing.Size(113, 13);
this.label19.TabIndex = 3;
this.label19.Text = "Text löschen/ersetzen";
//
// label20
//
this.label20.AutoSize = true;
this.label20.Location = new System.Drawing.Point(17, 150);
this.label20.Name = "label20";
this.label20.Size = new System.Drawing.Size(56, 13);
this.label20.TabIndex = 4;
this.label20.Text = "Exemplare";
this.toolStripButton2.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.toolStripButton2.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton2.Image")));
this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton2.Name = "toolStripButton2";
this.toolStripButton2.Size = new System.Drawing.Size(36, 36);
this.toolStripButton2.Text = "toolStripButton2";
this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click);
//
// OfficeVorlage
//
@ -949,6 +988,8 @@
this.toolStrip1.ResumeLayout(false);
this.toolStrip1.PerformLayout();
this.groupBox1.ResumeLayout(false);
this.groupBox7.ResumeLayout(false);
this.groupBox7.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.TreeOfficeVorlagen)).EndInit();
this.groupBox4.ResumeLayout(false);
this.groupBox4.PerformLayout();
@ -964,8 +1005,6 @@
this.groupBox6.PerformLayout();
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.groupBox7.ResumeLayout(false);
this.groupBox7.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
@ -1049,5 +1088,9 @@
private System.Windows.Forms.Label label17;
private System.Windows.Forms.Label label20;
private System.Windows.Forms.Label label19;
private System.Windows.Forms.ToolStripSplitButton toolStripSplitButton1;
private System.Windows.Forms.ToolStripLabel toolStripLabel1;
private System.Windows.Forms.ToolStripTextBox toolStripTextBox1;
private System.Windows.Forms.ToolStripButton toolStripButton2;
}
}

@ -11,6 +11,7 @@ using System.Windows.Forms;
using System.Xml.Linq;
using Barcoded.qr;
using DOCGEN.Klassen;
using Microsoft.Office.Interop.Word;
using Model;
using NLog;
using OnDoc.Helper;
@ -25,7 +26,7 @@ namespace OnDoc.UIControls.Administrator
{
public partial class OfficeVorlage : SfForm
{
DataTable treedata = new DataTable();
System.Data.DataTable treedata = new System.Data.DataTable();
public OfficeVorlage()
{
InitializeComponent();
@ -56,7 +57,7 @@ namespace OnDoc.UIControls.Administrator
_sqlOrder = "Office_Vorlagenr ";
}
DataTable _newDataTable = treedata.Select(_sqlWhere, _sqlOrder).CopyToDataTable();
System.Data.DataTable _newDataTable = treedata.Select(_sqlWhere, _sqlOrder).CopyToDataTable();
//DataView dv = new DataView(treedata);
//dv.RowFilter = "bezeichnung like '%"+txtFilter.Text+"%'";
foreach (DataRow r in _newDataTable.Rows)
@ -66,7 +67,7 @@ namespace OnDoc.UIControls.Administrator
nodeAdv.Tag = r["office_vorlagenr"].ToString();
if (Convert.ToBoolean(r["aktiv"]) == false)
{
nodeAdv.Font = new Font(nodeAdv.Font, FontStyle.Strikeout);
nodeAdv.Font = new System.Drawing.Font(nodeAdv.Font, FontStyle.Strikeout);
}
TreeOfficeVorlagen.Nodes.Add(nodeAdv);
}
@ -250,6 +251,58 @@ namespace OnDoc.UIControls.Administrator
private void toolStripButton1_Click(object sender, EventArgs e)
{
}
private void toolStripButton2_Click(object sender, EventArgs e)
{
Database.DB db = new Database.DB(AppParams.connectionstring);
db.Get_Tabledata("SELECT dbo.office_vorlage.office_vorlagenr AS ID, dbo.Office_Vorlage_Datei.dateiname FROM dbo.office_vorlage INNER JOIN dbo.Office_Vorlage_Datei ON dbo.office_vorlage.office_vorlagenr = dbo.Office_Vorlage_Datei.office_vorlage_dateinr", false, true);
System.Data.DataTable vorlagen = db.dsdaten.Tables[0];
foreach (DataRow dr in vorlagen.Rows)
{
db.Get_Tabledata("Select dbo.binarytobase64(vorlage) from office_vorlage_datei where office_vorlage_dateinr = " + dr[0].ToString(), false, true);
string base64 = db.dsdaten.Tables[0].Rows[0][0].ToString();
db.Get_ApplicationType_from_Vorlage(Convert.ToInt32(dr[0].ToString()));
string Apptype = "";
try
{
Apptype = db.dsdaten.Tables[0].Rows[0][0].ToString();
}
catch
{
Apptype = "";
}
switch (Apptype.ToUpper())
{
case "DOCX":
case "DOCM":
case "DOC":
case "DOT":
case "WORD":
case "DOTM":
SynFWord sfword = new SynFWord();
if (sfword.FindText(base64, this.toolStripTextBox1.Text) == true) { MessageBox.Show(dr[1].ToString()); }
break;
case "XLSM":
case "XLSX":
case "XLST":
case "XLS":
case "XLT":
break;
//break;
case "PDF":
case "ACROBAT":
case "FORMULAR":
case "DOKUMENT":
//break ;
default:
break;
//break;
}
}
}
}
}

@ -120,7 +120,38 @@
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<data name="pdfViewerPrinterSettings7.PrintLocation" mimetype="application/x-microsoft.net.object.binary.base64">
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="toolStripSplitButton1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG
YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9
0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw
bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc
VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9
c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32
Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo
mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+
kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D
TgDQASA1MVpwzwAAAABJRU5ErkJggg==
</value>
</data>
<data name="toolStripButton2.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG
YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9
0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw
bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc
VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9
c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32
Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo
mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+
kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D
TgDQASA1MVpwzwAAAABJRU5ErkJggg==
</value>
</data>
<data name="pdfViewerPrinterSettings1.PrintLocation" mimetype="application/x-microsoft.net.object.binary.base64">
<value>
AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0
dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABVTeXN0ZW0uRHJh

@ -23,6 +23,7 @@ namespace OnDoc.UIControls
{
public int partnernr = 0;
public string partnerkurzname = "";
public Partnersuche()
{
InitializeComponent();
@ -64,6 +65,7 @@ namespace OnDoc.UIControls
try
{
partnernr = Convert.ToInt32(TableHelper.GetCellCValue(ref trefferlistedata, "nrpar00"));
partnerkurzname = TableHelper.GetCellCValue(ref this.trefferlistedata, "bkpar00");
}
catch { }
}
@ -83,6 +85,7 @@ namespace OnDoc.UIControls
try
{
partnernr = Convert.ToInt32(TableHelper.GetCellCValue(ref trefferlistedata, "nrpar00"));
partnerkurzname = TableHelper.GetCellCValue(ref this.trefferlistedata, "bkpar00");
}
catch { }
}
@ -92,6 +95,7 @@ namespace OnDoc.UIControls
try
{
partnernr = Convert.ToInt32(TableHelper.GetCellCValue(ref this.trefferlistedata, "nrpar00"));
partnerkurzname = TableHelper.GetCellCValue(ref this.trefferlistedata, "bkpar00");
this.DialogResult = DialogResult.OK;
this.Close();
}
@ -101,6 +105,7 @@ namespace OnDoc.UIControls
private void sfButton1_Click(object sender, EventArgs e)
{
partnernr = Convert.ToInt32(TableHelper.GetCellCValue(ref this.trefferlistedata, "nrpar00"));
partnerkurzname = TableHelper.GetCellCValue(ref this.trefferlistedata, "bkpar00");
this.DialogResult = DialogResult.OK;
this.Close();
}
@ -118,6 +123,7 @@ namespace OnDoc.UIControls
try
{
partnernr = Convert.ToInt32(TableHelper.GetCellCValue(ref this.trefferlistedata, "nrpar00"));
partnerkurzname = TableHelper.GetCellCValue(ref this.trefferlistedata, "bkpar00");
this.DialogResult = DialogResult.OK;
this.Close();
}

@ -253,6 +253,8 @@
this.gridDokwertlist.Size = new System.Drawing.Size(456, 376);
this.gridDokwertlist.TabIndex = 0;
this.gridDokwertlist.Text = "sfDataGrid1";
this.gridDokwertlist.CellClick += new Syncfusion.WinForms.DataGrid.Events.CellClickEventHandler(this.gridDokwertlist_CellClick);
this.gridDokwertlist.CellDoubleClick += new Syncfusion.WinForms.DataGrid.Events.CellClickEventHandler(this.gridDokwertlist_CellDoubleClick);
//
// lblBezeichnung
//

@ -13,6 +13,9 @@ using System.Threading.Tasks;
using System.Windows.Forms;
using Database;
using Syncfusion.Pdf.Graphics;
using Windows.UI.WebUI;
using OnDoc.Diverses;
using System.Web.Security;
namespace OnDoc.UIControls
{
@ -79,17 +82,17 @@ namespace OnDoc.UIControls
this.txtbezeichnung.Enabled = Convert.ToBoolean(dr["bezeichnungmut"]);
this.cbboxunterschriftlinks.Enabled = Convert.ToBoolean(dr["unterschrift_links"]) == true;
this.cbboxunterschriftrechts.Enabled = Convert.ToBoolean(dr["unterschrift_rechts"]) == true;
this.cbformularohneunterschrfit.Enabled=Convert.ToBoolean(dr["unterschrift_ohne"]) == true;
this.cbformularohneunterschrfit.Enabled = Convert.ToBoolean(dr["unterschrift_ohne"]) == true;
this.cbfaksimile.Enabled = Convert.ToBoolean(dr["unterschrift_faksimile"]) == true;
this.cbfaksimile.Checked = false;
this.cbformularohneunterschrfit.Checked=false;
if (Convert.ToInt32(dr["Unterschrift_Standard"].ToString()) ==1) { cbfaksimile.Checked=true; }
this.cbformularohneunterschrfit.Checked = false;
if (Convert.ToInt32(dr["Unterschrift_Standard"].ToString()) == 1) { cbfaksimile.Checked = true; }
if (Convert.ToInt32(dr["Unterschrift_Standard"].ToString()) == 2) { cbformularohneunterschrfit.Checked = true; }
}
else
{
}
if (profilnr != 0)
{
@ -112,12 +115,12 @@ namespace OnDoc.UIControls
System.Data.DataTable dokwertlist = new System.Data.DataTable();
dokwertlist = db.Get_DokumentWertList("", dokumenttypnr);
if (EDK_Data.toexecute==true)
if (EDK_Data.toexecute == true)
{
foreach(System.Data.DataRow dr in dokwertlist.Rows)
foreach (System.Data.DataRow dr in dokwertlist.Rows)
{
string val = EDK_Data.GetAVQ_Value(dr[0].ToString(), dr[12].ToString());
if (val != ""){ dr[2] = val; }
if (val != "") { dr[2] = val; }
}
dokwertlist.AcceptChanges();
}
@ -139,7 +142,7 @@ namespace OnDoc.UIControls
this.cbboxteam.SelectedIndex = 0;
}
public void update_partner()
public void update_partner()
{
DB db = new DB(AppParams.connectionstring);
@ -153,11 +156,11 @@ namespace OnDoc.UIControls
string s = "";
for (int i = 1; i < 8; i++)
{
txtPartnerInhaber.Text = txtPartnerInhaber.Text + db.dsdaten.Tables[0].Rows[0]["d" + i.ToString()].ToString()+"\r\n";
txtPartnerInhaber.Text = txtPartnerInhaber.Text + db.dsdaten.Tables[0].Rows[0]["d" + i.ToString()].ToString() + "\r\n";
txtPartnerZusteller.Text = txtPartnerZusteller.Text + db.dsdaten.Tables[0].Rows[0]["h" + i.ToString()].ToString() + "\r\n";
s = s + db.dsdaten.Tables[0].Rows[0]["h" + i.ToString()].ToString();
}
if (s=="") { txtPartnerZusteller.Text=txtPartnerInhaber.Text; }
if (s == "") { txtPartnerZusteller.Text = txtPartnerInhaber.Text; }
db.clear_parameter();
db.add_parameter("@partnernr", this.partnernr.ToString());
@ -227,7 +230,7 @@ namespace OnDoc.UIControls
docgendata.unterschriftLinks = cbboxunterschriftlinks.SelectedValue.ToString();
docgendata.unterschriftRehts = cbboxunterschriftrechts.SelectedValue.ToString();
if (cbfaksimile.Checked) { docgendata.digitaleunterschrift = true; } else { docgendata.digitaleunterschrift = false; }
if (cbformularohneunterschrfit.Checked) { docgendata.frormularOhneUnterschrift = true; } else { docgendata.frormularOhneUnterschrift = false;}
if (cbformularohneunterschrfit.Checked) { docgendata.frormularOhneUnterschrift = true; } else { docgendata.frormularOhneUnterschrift = false; }
docgendata.verantwortlich = cbboxverantwortlich.SelectedValue.ToString();
docgendata.team = cbboxteam.SelectedValue.ToString();
@ -266,8 +269,8 @@ namespace OnDoc.UIControls
dokdata.DokumentDatum = docgendata.dokumentdatum;
dokdata.Bezeichnung = docgendata.bezeichnung;
if (docgendata.erstellungsart == Erstellungsart.DokumentAlsPDF) { dokdata.Result_as_PDF = "True"; } else { dokdata.Result_as_PDF = "False"; }
if (docgendata.digitaleunterschrift == true) {dokdata.As_Faksimile = "True"; } else { dokdata.As_Faksimile= "False"; }
if (docgendata.digitaleunterschrift == true) { dokdata.As_Faksimile = "True"; } else { dokdata.As_Faksimile = "False"; }
}
private void sfButton1_Click(object sender, EventArgs e)
{
@ -289,5 +292,128 @@ namespace OnDoc.UIControls
{
}
private void gridDokwertlist_CellDoubleClick(object sender, Syncfusion.WinForms.DataGrid.Events.CellClickEventArgs e)
{
var selectedItem = e.DataRow;
var dataRow = (e.DataRow.RowData as DataRowView).Row;
string datenherkunft = dataRow["datenherkunft"].ToString();
string feldtyp = dataRow["feldtyp"].ToString();
if (datenherkunft != "")
{
dataRow["feldwert"] = data_select(datenherkunft, feldtyp);
}
}
private string data_select(string datenherkunft, string feldtyp)
{
switch (feldtyp.ToUpper())
{
case "DATUMSHORT":
case "DATUMMEDIUM":
case "DATUMLONG":
break;
frmCalendar f = new frmCalendar();
f.ShowDialog();
string res = "";
if (f.DialogResult == DialogResult.OK)
{
if (feldtyp.ToUpper() == "DATUMSHORT")
{
res = Helper.ConvertHelper.Datum(Convert.ToDateTime(f.sfCalendar1.SelectedDate), Helper.ConvertHelper.DateTimeFormat.datumshort);
}
if (feldtyp.ToUpper() == "DATUMMEDIUM")
{
res = Helper.ConvertHelper.Datum(Convert.ToDateTime(f.sfCalendar1.SelectedDate), Helper.ConvertHelper.DateTimeFormat.datummedium);
}
if (feldtyp.ToUpper() == "DATUMLONG")
{
res = Helper.ConvertHelper.Datum(Convert.ToDateTime(f.sfCalendar1.SelectedDate), Helper.ConvertHelper.DateTimeFormat.datummedium);
}
}
f.Dispose();
return res;
break;
case "TEXT":
if (datenherkunft.Substring(0, 1) != "&") { return ""; }
if (datenherkunft.Substring(0, 8).ToUpper() == "&PARTNER")
{
Partnersuche p = new Partnersuche();
p.ShowDialog();
if (p.partnernr != 0) { return p.partnernr.ToString() + " - " + p.partnerkurzname; } else { return ""; }
}
valueselector vs = new valueselector();
if (datenherkunft.ToUpper() == "&SekPartnerVV&")
{
var records = gridDokwertlist.View.Records;
string s = "";
foreach (var record in records)
{
var dataRowView = record.Data as DataRowView;
if (dataRowView != null)
{
var selectedValue = dataRowView.Row["datenherkunft"];
if (selectedValue== "&Partner&")
{
s = "";
s = dataRowView.Row["feldwert"].ToString();
int ii = 0;
ii = s.IndexOf("-") - 1;
if (ii < 1) return "";
}
}
}
vs.partnernr = s.Substring(0, s.IndexOf("-") - 1);
}
if (datenherkunft.ToUpper() == "&TerPartnerVV&")
{
var records = gridDokwertlist.View.Records;
string s = "";
foreach (var record in records)
{
var dataRowView = record.Data as DataRowView;
if (dataRowView != null)
{
var selectedValue = dataRowView.Row["datenherkunft"];
if (selectedValue == "&Partner3&")
{
s = "";
s = dataRowView.Row["feldwert"].ToString();
int ii = 0;
ii = s.IndexOf("-") - 1;
if (ii < 1) return "";
}
}
}
vs.partnernr = s.Substring(0, s.IndexOf("-") - 1);
}
vs.datenherkunft = datenherkunft;
break;
default:
return "";
break;
}
return "";
}
private void gridDokwertlist_CellClick(object sender, Syncfusion.WinForms.DataGrid.Events.CellClickEventArgs e)
{
if (e.DataColumn.Index == 15)
{
var selectedItem = e.DataRow;
var dataRow = (e.DataRow.RowData as DataRowView).Row;
string datenherkunft = dataRow["datenherkunft"].ToString();
string feldtyp = dataRow["feldtyp"].ToString();
if (datenherkunft != "")
{
dataRow["feldwert"] = data_select(datenherkunft, feldtyp);
}
}
}
}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

@ -1 +1 @@
0c0103b186aa54d887312e230eca92c13413cec92b1ef916f5bfc3ee468fa262
da6e27a951f1e79517049ea219a223f67311eaf29461b40a574668460592df2b

@ -203,3 +203,4 @@ E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\Syncfusion.Presentation.Base.d
E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\Syncfusion.Presentation.Base.xml
E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\Syncfusion.OfficeChart.Base.dll
E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\Syncfusion.OfficeChart.Base.xml
E:\Software-Projekte\OnDoc\OnDoc\Client\obj\Debug\OnDoc.Diverses.valueselector.resources

Binary file not shown.

Binary file not shown.

@ -29,6 +29,7 @@ using System.Buffers.Text;
using Syncfusion.XlsIO.Implementation.TemplateMarkers;
using System.Drawing.Printing;
using Syncfusion.XlsIO;
using System.Security.Permissions;
@ -196,7 +197,7 @@ namespace DOCGEN.Klassen
if (docdata.PrintLogo == true)
{
insert_Logo(document, docdata);
}
}
//document.UpdateDocumentFields();
//document.UpdateAlternateChunks();
@ -676,6 +677,15 @@ namespace DOCGEN.Klassen
}
catch { }
}
public bool FindText(string base64, string searchstring)
{
MemoryStream ms = new MemoryStream(Helper.EncodeExtensions.DecodeBase642ByteArray(base64));
WordDocument document = new WordDocument(ms, FormatType.Automatic);
TextSelection textSelection = document.Find(searchstring, false, true);
document = null;
ms = null;
if (textSelection != null) { return true; } else return false;
}
}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -1037,6 +1037,48 @@ namespace Database
daten.Tables[0].Rows.Add(dr);
Update_Data();
}
public void Insert_Vorlagenfeld(int vorlagenfeldregelnr, int dokumenttypnr, int mitarbeiternr)
{
SqlConnection conn = new SqlConnection(connectionstring);
var scmCmdToExecute = new SqlCommand();
scmCmdToExecute.Connection = conn;
scmCmdToExecute.CommandText = "dbo.[sp_trefferliste_getdata_new_relaunch]";
scmCmdToExecute.CommandType = CommandType.StoredProcedure;
var dtToReturn = new DataTable();
var sdaAdapter = new SqlDataAdapter(scmCmdToExecute);
scmCmdToExecute.Connection.ConnectionString = connectionstring;
var iErrorcode = default(int);
scmCmdToExecute.Connection.Open();
scmCmdToExecute.CommandType = CommandType.StoredProcedure;
scmCmdToExecute.CommandText = "dbo.[sp_vorlagenfeld_insert]";
scmCmdToExecute.Parameters.Add(new SqlParameter("@dokumenttypnr", SqlDbType.Int, 4, ParameterDirection.Input, true, 10, 0, "", DataRowVersion.Proposed, dokumenttypnr));
scmCmdToExecute.Parameters.Add(new SqlParameter("@vorlagenfeldregelnr", SqlDbType.Int, 4, ParameterDirection.Input, true, 10, 0, "", DataRowVersion.Proposed, vorlagenfeldregelnr));
scmCmdToExecute.Parameters.Add(new SqlParameter("@mitarbeiternr", SqlDbType.Int, 4, ParameterDirection.Input, true, 10, 0, "", DataRowVersion.Proposed, mitarbeiternr));
scmCmdToExecute.Parameters.Add(new SqlParameter("@mandantnr", SqlDbType.Int, 4, ParameterDirection.Input, true, 10, 0, "", DataRowVersion.Proposed, 1));
scmCmdToExecute.Parameters.Add(new SqlParameter("@iErrorCode", SqlDbType.Int, 4, ParameterDirection.Output, true, 10, 0, "", DataRowVersion.Proposed, iErrorcode));
try
{
scmCmdToExecute.ExecuteNonQuery();
return;
}
catch (Exception ex)
{
throw new Exception("sp_vorlagenfeld_standard_insert:Error occured." + ex.Message, ex);
}
finally
{
scmCmdToExecute.Connection.Close();
scmCmdToExecute.Dispose();
}
scmCmdToExecute.Dispose();
}
}
}

Binary file not shown.

Binary file not shown.
Loading…
Cancel
Save