update 20240925

This commit is contained in:
Stefan Hutter
2024-09-25 19:14:14 +02:00
parent d4b9318d96
commit 9fcecb2c35
324 changed files with 1886317 additions and 353 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -4,7 +4,7 @@
<name>DOCGEN</name>
</assembly>
<members>
<member name="M:DOCGEN.Klassen.SynFWord.DocToPDF(System.String)">
<member name="M:DOCGEN.Klassen.SyncFWord.DocToPDF(System.String)">
<summary>Word to PDF-Konverter</summary>
<remarks>Das sind die Remarks</remarks>
<param name="dokument">Base64-Dokument</param>

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.

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

View File

@@ -253,3 +253,9 @@ E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\obj\Debug\EDOKAAPI_NetFramewor
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\obj\Debug\EDOKAAPI_NetFramework.pdb
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\Syncfusion.Presentation.Base.dll
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\Syncfusion.Presentation.Base.xml
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\FastReport.dll
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\FastReport.Compat.dll
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\FastReport.Bars.dll
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\FastReport.DataVisualization.dll
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\FastReport.Editor.dll
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\FastReport.xml

View File

@@ -31,6 +31,34 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Accessibility" />
<Reference Include="Database">
<HintPath>..\Database\bin\Debug\Database.dll</HintPath>
</Reference>
<Reference Include="FastReport, Version=2024.1.0.0, Culture=neutral, PublicKeyToken=db7e5ce63278458c, processorArchitecture=MSIL">
<HintPath>..\packages\FastReport.Net.Pro.2024.1.0\lib\net462\FastReport.dll</HintPath>
</Reference>
<Reference Include="FastReport.Bars, Version=2024.1.0.0, Culture=neutral, PublicKeyToken=db7e5ce63278458c, processorArchitecture=MSIL">
<HintPath>..\packages\FastReport.Net.Pro.2024.1.0\lib\net462\FastReport.Bars.dll</HintPath>
</Reference>
<Reference Include="FastReport.Compat, Version=2023.3.0.0, Culture=neutral, PublicKeyToken=406e1f4c3c8ef97e, processorArchitecture=MSIL">
<HintPath>..\packages\FastReport.Compat.2023.3.0\lib\net40\FastReport.Compat.dll</HintPath>
</Reference>
<Reference Include="FastReport.DataVisualization, Version=2023.3.0.0, Culture=neutral, PublicKeyToken=406e1f4c3c8ef97e, processorArchitecture=MSIL">
<HintPath>..\packages\FastReport.DataVisualization.2023.3.0\lib\net40\FastReport.DataVisualization.dll</HintPath>
</Reference>
<Reference Include="FastReport.Editor, Version=2024.1.0.0, Culture=neutral, PublicKeyToken=db7e5ce63278458c, processorArchitecture=MSIL">
<HintPath>..\packages\FastReport.Net.Pro.2024.1.0\lib\net462\FastReport.Editor.dll</HintPath>
</Reference>
<Reference Include="FastReport.VSDesign, Version=1.0.0.0, Culture=neutral, PublicKeyToken=db7e5ce63278458c, processorArchitecture=MSIL">
<HintPath>..\packages\FastReport.Net.Pro.2024.1.0\lib\net462\FastReport.VSDesign.dll</HintPath>
</Reference>
<Reference Include="FastReport.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=db7e5ce63278458c, processorArchitecture=MSIL">
<HintPath>..\packages\FastReport.Net.Pro.2024.1.0\lib\net462\FastReport.Web.dll</HintPath>
</Reference>
<Reference Include="Helper">
<HintPath>..\Helper\bin\Debug\Helper.dll</HintPath>
</Reference>
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<Reference Include="QRCoder, Version=1.6.0.0, Culture=neutral, PublicKeyToken=c4ed5b9ae8358a28, processorArchitecture=MSIL">
@@ -39,6 +67,8 @@
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Drawing" />
<Reference Include="System.Security" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
@@ -94,6 +124,12 @@
<Compile Include="Datamatrix\DmtxVector2.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="qr\qrcode.cs" />
<Compile Include="UI\Barcodekleber.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="UI\Barcodekleber.Designer.cs">
<DependentUpon>Barcodekleber.cs</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="BarcodeLib-Diagramm.cd" />
@@ -102,5 +138,10 @@
<ItemGroup>
<Content Include="Barcoded\Barcoded.ico" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="UI\Barcodekleber.resx">
<DependentUpon>Barcodekleber.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@@ -1,4 +1,5 @@
using DataMatrix.net;
using BarcodeLib.UI;
using DataMatrix.net;
using DatamatrixNF;
using System;
using System.Collections.Generic;
@@ -127,5 +128,13 @@ namespace BarcodeLib
return newImage;
}
public void Gen_BCK(string connectionstring)
{
Barcodekleber bck = new Barcodekleber(connectionstring);
bck.Show();
}
}
}

186
BarcodeLib/UI/Barcodekleber.Designer.cs generated Normal file
View File

@@ -0,0 +1,186 @@
namespace BarcodeLib.UI
{
partial class Barcodekleber
{
/// <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.lblFormat = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.previewControl1 = new FastReport.Preview.PreviewControl();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.cbxreportname = new System.Windows.Forms.ComboBox();
this.groupBox1.SuspendLayout();
this.SuspendLayout();
//
// lblFormat
//
this.lblFormat.AutoSize = true;
this.lblFormat.Location = new System.Drawing.Point(6, 16);
this.lblFormat.Name = "lblFormat";
this.lblFormat.Size = new System.Drawing.Size(87, 13);
this.lblFormat.TabIndex = 0;
this.lblFormat.Text = "Ettiketten-Format";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(6, 72);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(87, 13);
this.label1.TabIndex = 2;
this.label1.Text = "Anzahl Ettiketten";
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(6, 88);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(55, 20);
this.textBox1.TabIndex = 3;
//
// button1
//
this.button1.Location = new System.Drawing.Point(6, 114);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 4;
this.button1.Text = "Aufbereiten";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// button2
//
this.button2.Location = new System.Drawing.Point(122, 114);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(75, 23);
this.button2.TabIndex = 5;
this.button2.Text = "Design";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// previewControl1
//
this.previewControl1.BackColor = System.Drawing.SystemColors.AppWorkspace;
this.previewControl1.Buttons = ((FastReport.PreviewButtons)(((((((((((FastReport.PreviewButtons.Print | FastReport.PreviewButtons.Open)
| FastReport.PreviewButtons.Save)
| FastReport.PreviewButtons.Email)
| FastReport.PreviewButtons.Find)
| FastReport.PreviewButtons.Zoom)
| FastReport.PreviewButtons.Outline)
| FastReport.PreviewButtons.PageSetup)
| FastReport.PreviewButtons.Edit)
| FastReport.PreviewButtons.Watermark)
| FastReport.PreviewButtons.Navigator)));
this.previewControl1.Clouds = FastReport.PreviewClouds.None;
this.previewControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.previewControl1.Exports = ((FastReport.PreviewExports)((((((((((((((((((((((((FastReport.PreviewExports.PDFExport | FastReport.PreviewExports.RTFExport)
| FastReport.PreviewExports.HTMLExport)
| FastReport.PreviewExports.MHTExport)
| FastReport.PreviewExports.XMLExport)
| FastReport.PreviewExports.Excel2007Export)
| FastReport.PreviewExports.Excel2003Document)
| FastReport.PreviewExports.Word2007Export)
| FastReport.PreviewExports.PowerPoint2007Export)
| FastReport.PreviewExports.ODSExport)
| FastReport.PreviewExports.ODTExport)
| FastReport.PreviewExports.XPSExport)
| FastReport.PreviewExports.CSVExport)
| FastReport.PreviewExports.DBFExport)
| FastReport.PreviewExports.TextExport)
| FastReport.PreviewExports.ZplExport)
| FastReport.PreviewExports.ImageExport)
| FastReport.PreviewExports.XAMLExport)
| FastReport.PreviewExports.SVGExport)
| FastReport.PreviewExports.PPMLExport)
| FastReport.PreviewExports.PSExport)
| FastReport.PreviewExports.JsonExport)
| FastReport.PreviewExports.LaTeXExport)
| FastReport.PreviewExports.DxfExport)));
this.previewControl1.Font = new System.Drawing.Font("Tahoma", 8F);
this.previewControl1.Location = new System.Drawing.Point(215, 0);
this.previewControl1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.previewControl1.Name = "previewControl1";
this.previewControl1.PageOffset = new System.Drawing.Point(10, 10);
this.previewControl1.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.previewControl1.SaveInitialDirectory = null;
this.previewControl1.Size = new System.Drawing.Size(949, 907);
this.previewControl1.TabIndex = 26;
this.previewControl1.UIStyle = FastReport.Utils.UIStyle.VisualStudio2005;
//
// groupBox1
//
this.groupBox1.Controls.Add(this.cbxreportname);
this.groupBox1.Controls.Add(this.lblFormat);
this.groupBox1.Controls.Add(this.button2);
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Controls.Add(this.button1);
this.groupBox1.Controls.Add(this.textBox1);
this.groupBox1.Dock = System.Windows.Forms.DockStyle.Left;
this.groupBox1.Location = new System.Drawing.Point(0, 0);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(215, 907);
this.groupBox1.TabIndex = 27;
this.groupBox1.TabStop = false;
//
// cbxreportname
//
this.cbxreportname.FormattingEnabled = true;
this.cbxreportname.Location = new System.Drawing.Point(9, 33);
this.cbxreportname.Name = "cbxreportname";
this.cbxreportname.Size = new System.Drawing.Size(188, 21);
this.cbxreportname.TabIndex = 6;
//
// Barcodekleber
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1164, 907);
this.Controls.Add(this.previewControl1);
this.Controls.Add(this.groupBox1);
this.Name = "Barcodekleber";
this.Text = "Barcodekleber";
this.Load += new System.EventHandler(this.Barcodekleber_Load);
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Label lblFormat;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
private FastReport.Preview.PreviewControl previewControl1;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.ComboBox cbxreportname;
}
}

View File

@@ -0,0 +1,111 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Windows.Input;
namespace BarcodeLib.UI
{
public partial class Barcodekleber : Form
{
string connecionstring = string.Empty;
public Barcodekleber()
{
InitializeComponent();
}
public Barcodekleber(string connectoinstring)
{
InitializeComponent();
this.connecionstring = connectoinstring;
}
private void Barcodekleber_Load(object sender, EventArgs e)
{
DirectoryInfo d = new DirectoryInfo(Application.StartupPath+ @"\bck"); //Assuming Test is your Folder
FileInfo[] Files = d.GetFiles("*.frx"); //Getting Text files
string str = "";
foreach (FileInfo file in Files)
{
this.cbxreportname.Items.Add(file.Name);
}
}
private void button2_Click(object sender, EventArgs e)
{
DataTable dt = new DataTable();
DataSet dataSet = new DataSet();
dt.Columns.Add("barcode");
for (int i = 0; i < Convert.ToInt32(textBox1.Text); i++)
{
DataRow dr = dt.NewRow();
string s;
s = i.ToString();
while (s.Length < 8) { s = "0" + s; };
dr[0] = "" + s;
dt.Rows.Add(dr);
}
dataSet.Tables.Add(dt);
dt.TableName = "Barcodes";
FastReport.Report report = new FastReport.Report();
if (System.IO.File.Exists(Application.StartupPath + @"\bck\" + cbxreportname.Text) == true)
{
report.Load(Application.StartupPath + @"\bck\" + cbxreportname.Text);
}
else { }
report.RegisterData(dataSet);
report.GetDataSource("Barcodes").Enabled = true;
report.Preview = previewControl1;
report.Prepare();
report.Design();
}
private void button1_Click(object sender, EventArgs e)
{
DataTable dt = new DataTable();
DataSet dataSet = new DataSet();
dt.Columns.Add("barcode");
for (int i = 0; i < Convert.ToInt32(textBox1.Text); i++)
{
DataRow dr = dt.NewRow();
Database.DB dB = new Database.DB(connecionstring);
string key = dB.get_dbkey("barcodeetikette");
string s;
s = key;
while (s.Length < 5) { s = "0" + s; };
s = DateTime.Now.Year.ToString()+s;
s = s+Helper.DivFnkt.modulo10(s).ToString();
dr[0] = s;
dt.Rows.Add(dr);
}
dataSet.Tables.Add(dt);
dt.TableName = "Barcodes";
FastReport.Report report = new FastReport.Report();
if (System.IO.File.Exists(Application.StartupPath + @"\bck\" + cbxreportname.Text) == true)
{
report.Load(Application.StartupPath + @"\bck\" + cbxreportname.Text);
}
else { }
report.RegisterData(dataSet);
report.GetDataSource("Barcodes").Enabled = true;
report.Preview = previewControl1;
report.Prepare();
report.ShowPrepared();
}
}
}

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

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.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

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.

View File

@@ -0,0 +1,461 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>NLog.Database</name>
</assembly>
<members>
<member name="T:NLog.Targets.DatabaseCommandInfo">
<summary>
Information about database command + parameters.
</summary>
</member>
<member name="P:NLog.Targets.DatabaseCommandInfo.CommandType">
<summary>
Gets or sets the type of the command.
</summary>
<value>The type of the command.</value>
<docgen category='Command Options' order='10' />
</member>
<member name="P:NLog.Targets.DatabaseCommandInfo.ConnectionString">
<summary>
Gets or sets the connection string to run the command against. If not provided, connection string from the target is used.
</summary>
<docgen category='Command Options' order='10' />
</member>
<member name="P:NLog.Targets.DatabaseCommandInfo.Text">
<summary>
Gets or sets the command text.
</summary>
<docgen category='Command Options' order='10' />
</member>
<member name="P:NLog.Targets.DatabaseCommandInfo.IgnoreFailures">
<summary>
Gets or sets a value indicating whether to ignore failures.
</summary>
<docgen category='Command Options' order='10' />
</member>
<member name="P:NLog.Targets.DatabaseCommandInfo.Parameters">
<summary>
Gets the collection of parameters. Each parameter contains a mapping
between NLog layout and a database named or positional parameter.
</summary>
<docgen category='Command Options' order='10' />
</member>
<member name="T:NLog.Targets.DatabaseObjectPropertyInfo">
<summary>
Information about object-property for the database-connection-object
</summary>
</member>
<member name="M:NLog.Targets.DatabaseObjectPropertyInfo.#ctor">
<summary>
Initializes a new instance of the <see cref="T:NLog.Targets.DatabaseObjectPropertyInfo"/> class.
</summary>
</member>
<member name="P:NLog.Targets.DatabaseObjectPropertyInfo.Name">
<summary>
Gets or sets the name for the object-property
</summary>
<docgen category='Connection Options' order='10' />
</member>
<member name="P:NLog.Targets.DatabaseObjectPropertyInfo.Layout">
<summary>
Gets or sets the value to assign on the object-property
</summary>
<docgen category='Connection Options' order='10' />
</member>
<member name="P:NLog.Targets.DatabaseObjectPropertyInfo.PropertyType">
<summary>
Gets or sets the type of the object-property
</summary>
<docgen category='Connection Options' order='10' />
</member>
<member name="P:NLog.Targets.DatabaseObjectPropertyInfo.Format">
<summary>
Gets or sets convert format of the property value
</summary>
<docgen category='Connection Options' order='8' />
</member>
<member name="P:NLog.Targets.DatabaseObjectPropertyInfo.Culture">
<summary>
Gets or sets the culture used for parsing property string-value for type-conversion
</summary>
<docgen category='Connection Options' order='9' />
</member>
<member name="M:NLog.Targets.DatabaseObjectPropertyInfo.RenderValue(NLog.LogEventInfo)">
<summary>
Render Result Value
</summary>
<param name="logEvent">Log event for rendering</param>
<returns>Result value when available, else fallback to defaultValue</returns>
</member>
<member name="T:NLog.Targets.DatabaseParameterInfo">
<summary>
Represents a parameter to a Database target.
</summary>
</member>
<member name="M:NLog.Targets.DatabaseParameterInfo.#ctor">
<summary>
Initializes a new instance of the <see cref="T:NLog.Targets.DatabaseParameterInfo" /> class.
</summary>
</member>
<member name="M:NLog.Targets.DatabaseParameterInfo.#ctor(System.String,NLog.Layouts.Layout)">
<summary>
Initializes a new instance of the <see cref="T:NLog.Targets.DatabaseParameterInfo" /> class.
</summary>
<param name="parameterName">Name of the parameter.</param>
<param name="parameterLayout">The parameter layout.</param>
</member>
<member name="P:NLog.Targets.DatabaseParameterInfo.Name">
<summary>
Gets or sets the database parameter name.
</summary>
<docgen category='Parameter Options' order='0' />
</member>
<member name="P:NLog.Targets.DatabaseParameterInfo.Layout">
<summary>
Gets or sets the layout that should be use to calculate the value for the parameter.
</summary>
<docgen category='Parameter Options' order='1' />
</member>
<member name="P:NLog.Targets.DatabaseParameterInfo.DbType">
<summary>
Gets or sets the database parameter DbType.
</summary>
<docgen category='Parameter Options' order='2' />
</member>
<member name="P:NLog.Targets.DatabaseParameterInfo.Size">
<summary>
Gets or sets the database parameter size.
</summary>
<docgen category='Parameter Options' order='3' />
</member>
<member name="P:NLog.Targets.DatabaseParameterInfo.Precision">
<summary>
Gets or sets the database parameter precision.
</summary>
<docgen category='Parameter Options' order='4' />
</member>
<member name="P:NLog.Targets.DatabaseParameterInfo.Scale">
<summary>
Gets or sets the database parameter scale.
</summary>
<docgen category='Parameter Options' order='5' />
</member>
<member name="P:NLog.Targets.DatabaseParameterInfo.ParameterType">
<summary>
Gets or sets the type of the parameter.
</summary>
<docgen category='Parameter Options' order='6' />
</member>
<member name="P:NLog.Targets.DatabaseParameterInfo.DefaultValue">
<summary>
Gets or sets the fallback value when result value is not available
</summary>
<docgen category='Parameter Options' order='7' />
</member>
<member name="P:NLog.Targets.DatabaseParameterInfo.Format">
<summary>
Gets or sets convert format of the database parameter value.
</summary>
<docgen category='Parameter Options' order='8' />
</member>
<member name="P:NLog.Targets.DatabaseParameterInfo.Culture">
<summary>
Gets or sets the culture used for parsing parameter string-value for type-conversion
</summary>
<docgen category='Parameter Options' order='9' />
</member>
<member name="P:NLog.Targets.DatabaseParameterInfo.AllowDbNull">
<summary>
Gets or sets whether empty value should translate into DbNull. Requires database column to allow NULL values.
</summary>
<docgen category='Parameter Options' order='10' />
</member>
<member name="M:NLog.Targets.DatabaseParameterInfo.RenderValue(NLog.LogEventInfo)">
<summary>
Render Result Value
</summary>
<param name="logEvent">Log event for rendering</param>
<returns>Result value when available, else fallback to defaultValue</returns>
</member>
<member name="T:NLog.Targets.DatabaseTarget">
<summary>
Writes log messages to the database using an ADO.NET provider.
</summary>
<remarks>
<para>
Note .NET Core application cannot load connectionstrings from app.config / web.config. Instead use ${configsetting}
</para>
<a href="https://github.com/nlog/nlog/wiki/Database-target">See NLog Wiki</a>
</remarks>
<seealso href="https://github.com/nlog/nlog/wiki/Database-target">Documentation on NLog Wiki</seealso>
<example>
<para>
The configuration is dependent on the database type, because
there are different methods of specifying connection string, SQL
command and command parameters.
</para>
<para>MS SQL Server using System.Data.SqlClient:</para>
<code lang="XML" source="examples/targets/Configuration File/Database/MSSQL/NLog.config" height="450" />
<para>Oracle using System.Data.OracleClient:</para>
<code lang="XML" source="examples/targets/Configuration File/Database/Oracle.Native/NLog.config" height="350" />
<para>Oracle using System.Data.OleDBClient:</para>
<code lang="XML" source="examples/targets/Configuration File/Database/Oracle.OleDB/NLog.config" height="350" />
<para>To set up the log target programmatically use code like this (an equivalent of MSSQL configuration):</para>
<code lang="C#" source="examples/targets/Configuration API/Database/MSSQL/Example.cs" height="630" />
</example>
</member>
<member name="M:NLog.Targets.DatabaseTarget.#ctor">
<summary>
Initializes a new instance of the <see cref="T:NLog.Targets.DatabaseTarget" /> class.
</summary>
</member>
<member name="M:NLog.Targets.DatabaseTarget.#ctor(System.String)">
<summary>
Initializes a new instance of the <see cref="T:NLog.Targets.DatabaseTarget" /> class.
</summary>
<param name="name">Name of the target.</param>
</member>
<member name="P:NLog.Targets.DatabaseTarget.DBProvider">
<summary>
Gets or sets the name of the database provider.
</summary>
<remarks>
<para>
The parameter name should be a provider invariant name as registered in machine.config or app.config. Common values are:
</para>
<ul>
<li><c>System.Data.SqlClient</c> - <see href="https://msdn.microsoft.com/en-us/library/system.data.sqlclient.aspx">SQL Sever Client</see></li>
<li><c>System.Data.SqlServerCe.3.5</c> - <see href="https://www.microsoft.com/sqlserver/2005/en/us/compact.aspx">SQL Sever Compact 3.5</see></li>
<li><c>System.Data.OracleClient</c> - <see href="https://msdn.microsoft.com/en-us/library/system.data.oracleclient.aspx">Oracle Client from Microsoft</see> (deprecated in .NET Framework 4)</li>
<li><c>Oracle.DataAccess.Client</c> - <see href="https://www.oracle.com/technology/tech/windows/odpnet/index.html">ODP.NET provider from Oracle</see></li>
<li><c>System.Data.SQLite</c> - <see href="http://sqlite.phxsoftware.com/">System.Data.SQLite driver for SQLite</see></li>
<li><c>Npgsql</c> - <see href="https://www.npgsql.org/">Npgsql driver for PostgreSQL</see></li>
<li><c>MySql.Data.MySqlClient</c> - <see href="https://www.mysql.com/downloads/connector/net/">MySQL Connector/Net</see></li>
</ul>
<para>(Note that provider invariant names are not supported on .NET Compact Framework).</para>
<para>
Alternatively the parameter value can be be a fully qualified name of the provider
connection type (class implementing <see cref="T:System.Data.IDbConnection" />) or one of the following tokens:
</para>
<ul>
<li><c>sqlserver</c>, <c>mssql</c>, <c>microsoft</c> or <c>msde</c> - SQL Server Data Provider</li>
<li><c>oledb</c> - OLEDB Data Provider</li>
<li><c>odbc</c> - ODBC Data Provider</li>
</ul>
</remarks>
<docgen category='Connection Options' order='10' />
</member>
<member name="P:NLog.Targets.DatabaseTarget.ConnectionStringName">
<summary>
Gets or sets the name of the connection string (as specified in <see href="https://msdn.microsoft.com/en-us/library/bf7sd233.aspx">&lt;connectionStrings&gt; configuration section</see>.
</summary>
<docgen category='Connection Options' order='50' />
</member>
<member name="P:NLog.Targets.DatabaseTarget.ConnectionString">
<summary>
Gets or sets the connection string. When provided, it overrides the values
specified in DBHost, DBUserName, DBPassword, DBDatabase.
</summary>
<docgen category='Connection Options' order='10' />
</member>
<member name="P:NLog.Targets.DatabaseTarget.InstallConnectionString">
<summary>
Gets or sets the connection string using for installation and uninstallation. If not provided, regular ConnectionString is being used.
</summary>
<docgen category='Installation Options' order='100' />
</member>
<member name="P:NLog.Targets.DatabaseTarget.InstallDdlCommands">
<summary>
Gets the installation DDL commands.
</summary>
<docgen category='Installation Options' order='100' />
</member>
<member name="P:NLog.Targets.DatabaseTarget.UninstallDdlCommands">
<summary>
Gets the uninstallation DDL commands.
</summary>
<docgen category='Installation Options' order='100' />
</member>
<member name="P:NLog.Targets.DatabaseTarget.KeepConnection">
<summary>
Gets or sets a value indicating whether to keep the
database connection open between the log events.
</summary>
<docgen category='Connection Options' order='10' />
</member>
<member name="P:NLog.Targets.DatabaseTarget.DBHost">
<summary>
Gets or sets the database host name. If the ConnectionString is not provided
this value will be used to construct the "Server=" part of the
connection string.
</summary>
<docgen category='Connection Options' order='50' />
</member>
<member name="P:NLog.Targets.DatabaseTarget.DBUserName">
<summary>
Gets or sets the database user name. If the ConnectionString is not provided
this value will be used to construct the "User ID=" part of the
connection string.
</summary>
<docgen category='Connection Options' order='50' />
</member>
<member name="P:NLog.Targets.DatabaseTarget.DBPassword">
<summary>
Gets or sets the database password. If the ConnectionString is not provided
this value will be used to construct the "Password=" part of the
connection string.
</summary>
<docgen category='Connection Options' order='50' />
</member>
<member name="P:NLog.Targets.DatabaseTarget.DBDatabase">
<summary>
Gets or sets the database name. If the ConnectionString is not provided
this value will be used to construct the "Database=" part of the
connection string.
</summary>
<docgen category='Connection Options' order='50' />
</member>
<member name="P:NLog.Targets.DatabaseTarget.CommandText">
<summary>
Gets or sets the text of the SQL command to be run on each log level.
</summary>
<remarks>
Typically this is a SQL INSERT statement or a stored procedure call.
It should use the database-specific parameters (marked as <c>@parameter</c>
for SQL server or <c>:parameter</c> for Oracle, other data providers
have their own notation) and not the layout renderers,
because the latter is prone to SQL injection attacks.
The layout renderers should be specified as &lt;parameter /&gt; elements instead.
</remarks>
<docgen category='SQL Statement' order='10' />
</member>
<member name="P:NLog.Targets.DatabaseTarget.CommandType">
<summary>
Gets or sets the type of the SQL command to be run on each log level.
</summary>
<remarks>
This specifies how the command text is interpreted, as "Text" (default) or as "StoredProcedure".
When using the value StoredProcedure, the commandText-property would
normally be the name of the stored procedure. TableDirect method is not supported in this context.
</remarks>
<docgen category='SQL Statement' order='11' />
</member>
<member name="P:NLog.Targets.DatabaseTarget.Parameters">
<summary>
Gets the collection of parameters. Each item contains a mapping
between NLog layout and a database named or positional parameter.
</summary>
<docgen category='SQL Statement' order='14' />
</member>
<member name="P:NLog.Targets.DatabaseTarget.ConnectionProperties">
<summary>
Gets the collection of properties. Each item contains a mapping
between NLog layout and a property on the DbConnection instance
</summary>
<docgen category='Connection Options' order='50' />
</member>
<member name="P:NLog.Targets.DatabaseTarget.CommandProperties">
<summary>
Gets the collection of properties. Each item contains a mapping
between NLog layout and a property on the DbCommand instance
</summary>
<docgen category='Connection Options' order='50' />
</member>
<member name="P:NLog.Targets.DatabaseTarget.IsolationLevel">
<summary>
Configures isolated transaction batch writing. If supported by the database, then it will improve insert performance.
</summary>
<docgen category='Performance Tuning Options' order='10' />
</member>
<member name="M:NLog.Targets.DatabaseTarget.Install(NLog.Config.InstallationContext)">
<summary>
Performs installation which requires administrative permissions.
</summary>
<param name="installationContext">The installation context.</param>
</member>
<member name="M:NLog.Targets.DatabaseTarget.Uninstall(NLog.Config.InstallationContext)">
<summary>
Performs uninstallation which requires administrative permissions.
</summary>
<param name="installationContext">The installation context.</param>
</member>
<member name="M:NLog.Targets.DatabaseTarget.IsInstalled(NLog.Config.InstallationContext)">
<summary>
Determines whether the item is installed.
</summary>
<param name="installationContext">The installation context.</param>
<returns>
Value indicating whether the item is installed or null if it is not possible to determine.
</returns>
</member>
<member name="M:NLog.Targets.DatabaseTarget.InitializeTarget">
<inheritdoc/>
</member>
<member name="M:NLog.Targets.DatabaseTarget.SetConnectionType">
<summary>
Set the <see cref="P:NLog.Targets.DatabaseTarget.ConnectionType"/> to use it for opening connections to the database.
</summary>
</member>
<member name="M:NLog.Targets.DatabaseTarget.CloseTarget">
<inheritdoc/>
</member>
<member name="M:NLog.Targets.DatabaseTarget.Write(NLog.LogEventInfo)">
<summary>
Writes the specified logging event to the database. It creates
a new database command, prepares parameters for it by calculating
layouts and executes the command.
</summary>
<param name="logEvent">The logging event.</param>
</member>
<member name="M:NLog.Targets.DatabaseTarget.Write(System.Collections.Generic.IList{NLog.Common.AsyncLogEventInfo})">
<summary>
Writes an array of logging events to the log target. By default it iterates on all
events and passes them to "Write" method. Inheriting classes can use this method to
optimize batch writes.
</summary>
<param name="logEvents">Logging events to be written out.</param>
</member>
<member name="M:NLog.Targets.DatabaseTarget.ExecuteDbCommandWithParameters(NLog.LogEventInfo,System.Data.IDbConnection,System.Data.IDbTransaction)">
<summary>
Write logEvent to database
</summary>
</member>
<member name="M:NLog.Targets.DatabaseTarget.BuildConnectionString(NLog.LogEventInfo)">
<summary>
Build the connectionstring from the properties.
</summary>
<remarks>
Using <see cref="P:NLog.Targets.DatabaseTarget.ConnectionString"/> at first, and falls back to the properties <see cref="P:NLog.Targets.DatabaseTarget.DBHost"/>,
<see cref="P:NLog.Targets.DatabaseTarget.DBUserName"/>, <see cref="P:NLog.Targets.DatabaseTarget.DBPassword"/> and <see cref="P:NLog.Targets.DatabaseTarget.DBDatabase"/>
</remarks>
<param name="logEvent">Event to render the layout inside the properties.</param>
<returns></returns>
</member>
<member name="M:NLog.Targets.DatabaseTarget.EscapeValueForConnectionString(System.String)">
<summary>
Escape quotes and semicolons.
See https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ms722656(v=vs.85)#setting-values-that-use-reserved-characters
</summary>
</member>
<member name="M:NLog.Targets.DatabaseTarget.CreateDatabaseParameter(System.Data.IDbCommand,NLog.Targets.DatabaseParameterInfo)">
<summary>
Create database parameter
</summary>
<param name="command">Current command.</param>
<param name="parameterInfo">Parameter configuration info.</param>
</member>
<member name="M:NLog.Targets.DatabaseTarget.GetDatabaseParameterValue(NLog.LogEventInfo,NLog.Targets.DatabaseParameterInfo)">
<summary>
Extract parameter value from the logevent
</summary>
<param name="logEvent">Current logevent.</param>
<param name="parameterInfo">Parameter configuration info.</param>
</member>
<member name="T:NLog.Internal.ReflectionHelpers">
<summary>
Reflection helpers.
</summary>
</member>
</members>
</doc>

Binary file not shown.

29155
BarcodeLib/bin/Debug/NLog.xml Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1 +1 @@
890d912a29966fc168b1b7e4570e21526b0378c87c78bdb01468a52e38f382ad
09a6e44a4ac333ab0f068ab3c99038cca6e3707fc61d127e7b9140cc7a5aa39c

View File

@@ -14,3 +14,26 @@ E:\Software-Projekte\OnDoc\OnDoc\BarcodeLib\obj\Debug\BarcodeLib.csproj.CoreComp
E:\Software-Projekte\OnDoc\OnDoc\BarcodeLib\obj\Debug\BarcodeLib.csproj.Up2Date
E:\Software-Projekte\OnDoc\OnDoc\BarcodeLib\obj\Debug\BarcodeLib.dll
E:\Software-Projekte\OnDoc\OnDoc\BarcodeLib\obj\Debug\BarcodeLib.pdb
E:\Software-Projekte\OnDoc\OnDoc\BarcodeLib\bin\Debug\FastReport.Bars.dll
E:\Software-Projekte\OnDoc\OnDoc\BarcodeLib\bin\Debug\FastReport.Compat.dll
E:\Software-Projekte\OnDoc\OnDoc\BarcodeLib\bin\Debug\FastReport.DataVisualization.dll
E:\Software-Projekte\OnDoc\OnDoc\BarcodeLib\bin\Debug\FastReport.dll
E:\Software-Projekte\OnDoc\OnDoc\BarcodeLib\bin\Debug\FastReport.Editor.dll
E:\Software-Projekte\OnDoc\OnDoc\BarcodeLib\bin\Debug\FastReport.VSDesign.dll
E:\Software-Projekte\OnDoc\OnDoc\BarcodeLib\bin\Debug\FastReport.Web.dll
E:\Software-Projekte\OnDoc\OnDoc\BarcodeLib\bin\Debug\FastReport.xml
E:\Software-Projekte\OnDoc\OnDoc\BarcodeLib\bin\Debug\FastReport.Web.xml
E:\Software-Projekte\OnDoc\OnDoc\BarcodeLib\obj\Debug\BarcodeLib.UI.Barcodekleber.resources
E:\Software-Projekte\OnDoc\OnDoc\BarcodeLib\obj\Debug\BarcodeLib.csproj.GenerateResource.cache
E:\Software-Projekte\OnDoc\OnDoc\BarcodeLib\bin\Debug\Database.dll
E:\Software-Projekte\OnDoc\OnDoc\BarcodeLib\bin\Debug\Helper.dll
E:\Software-Projekte\OnDoc\OnDoc\BarcodeLib\bin\Debug\Model.dll
E:\Software-Projekte\OnDoc\OnDoc\BarcodeLib\bin\Debug\Logging.dll
E:\Software-Projekte\OnDoc\OnDoc\BarcodeLib\bin\Debug\NLog.dll
E:\Software-Projekte\OnDoc\OnDoc\BarcodeLib\bin\Debug\NLog.Database.dll
E:\Software-Projekte\OnDoc\OnDoc\BarcodeLib\bin\Debug\Database.pdb
E:\Software-Projekte\OnDoc\OnDoc\BarcodeLib\bin\Debug\Helper.pdb
E:\Software-Projekte\OnDoc\OnDoc\BarcodeLib\bin\Debug\Model.pdb
E:\Software-Projekte\OnDoc\OnDoc\BarcodeLib\bin\Debug\Logging.pdb
E:\Software-Projekte\OnDoc\OnDoc\BarcodeLib\bin\Debug\NLog.xml
E:\Software-Projekte\OnDoc\OnDoc\BarcodeLib\bin\Debug\NLog.Database.xml

Binary file not shown.

Binary file not shown.

View File

@@ -1,4 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="FastReport.Compat" version="2023.3.0" targetFramework="net481" />
<package id="FastReport.DataVisualization" version="2023.3.0" targetFramework="net481" />
<package id="FastReport.Net.Pro" version="2024.1.0" targetFramework="net481" />
<package id="QRCoder" version="1.6.0" targetFramework="net481" />
</packages>

View File

@@ -63,6 +63,9 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\ExcelNet\bin\Debug\ExcelNet.dll</HintPath>
</Reference>
<Reference Include="OnDocOffice">
<HintPath>..\OnDocOffice\bin\Debug\OnDocOffice.dll</HintPath>
</Reference>
<Reference Include="QRCoder, Version=1.5.1.0, Culture=neutral, PublicKeyToken=c4ed5b9ae8358a28, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\BarcodeLib\bin\Debug\QRCoder.dll</HintPath>
@@ -214,6 +217,7 @@
</Compile>
<Compile Include="Helper\ConvertHelper.cs" />
<Compile Include="Helper\FileHelper.cs" />
<Compile Include="Helper\Security.cs" />
<Compile Include="Helper\TableHelper.cs" />
<Compile Include="Interfaces\IListener.cs" />
<Compile Include="Klassen\Broadcaster.cs" />

View File

@@ -121,7 +121,7 @@
//
// button1
//
this.button1.Location = new System.Drawing.Point(319, 415);
this.button1.Location = new System.Drawing.Point(319, 422);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 4;

View File

@@ -270,20 +270,20 @@ namespace OnDoc.Diverses
switch (ext)
{
case ".D":
DOCGEN.Klassen.SynFWord sf = new DOCGEN.Klassen.SynFWord();
DOCGEN.Klassen.SyncFWord sf = new DOCGEN.Klassen.SyncFWord();
tempfilename1 = System.IO.Path.GetFileName(tempfilename);
tempfilename1 = AppParams.tempdir + "" + DateTime.Now.ToString("yyyyMMddhhmmss") + tempfilename1;
sf.create_nativ("Klassifikation", klassifizierung, "", tempfilename, tempfilename1);
sf.create_nativ("Klassifizierung", klassifizierung, "", tempfilename, tempfilename1);
System.Diagnostics.Process.Start("winword.exe", " /t" + tempfilename1);
//System.Diagnostics.Process.Start("winword.exe", " /t" + tempfilename);
break;
case ".X":
DOCGEN.Klassen.SynFExcel ef = new DOCGEN.Klassen.SynFExcel();
DOCGEN.Klassen.SyncFExcel ef = new DOCGEN.Klassen.SyncFExcel();
tempfilename1 = System.IO.Path.GetFileName(tempfilename);
tempfilename1 = AppParams.tempdir + "" + DateTime.Now.ToString("yyyyMMddhhmmss") + tempfilename1;
ef.create_nativ("Klassifikation", klassifizierung, "", tempfilename, tempfilename1);
ef.create_nativ("Klassifizierung", klassifizierung, "", tempfilename, tempfilename1);
System.Diagnostics.Process.Start("excel.exe", " /t " + tempfilename1);
break;
@@ -291,7 +291,7 @@ namespace OnDoc.Diverses
DOCGEN.Klassen.SyncFPowerPoint pf = new DOCGEN.Klassen.SyncFPowerPoint();
tempfilename1 = System.IO.Path.GetFileName(tempfilename);
tempfilename1 = AppParams.tempdir + "" + DateTime.Now.ToString("yyyyMMddhhmmss") + tempfilename1;
pf.create_nativ("Klassifikation",klassifizierung,"",tempfilename,tempfilename1);
pf.create_nativ("Klassifizierung", klassifizierung,"",tempfilename,tempfilename1);
System.Diagnostics.Process.Start("POWERPNT.EXE", " /N " + tempfilename1);
break;
default:

View File

@@ -125,7 +125,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAB4
DAAAAk1TRnQBSQFMAgEBBQEAATgBAAE4AQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
DAAAAk1TRnQBSQFMAgEBBQEAAUABAAFAAQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
AwABQAMAASADAAEBAQABCAYAAQgYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA

View File

@@ -76,7 +76,7 @@
//
this.PnlPreview.Controls.Add(this.docPreview1);
this.PnlPreview.Controls.Add(this.GrpFnkt);
this.PnlPreview.Location = new System.Drawing.Point(254, 108);
this.PnlPreview.Location = new System.Drawing.Point(219, 232);
this.PnlPreview.Name = "PnlPreview";
this.PnlPreview.Size = new System.Drawing.Size(668, 415);
this.PnlPreview.TabIndex = 19;
@@ -112,6 +112,7 @@
this.GrpFnkt.TabIndex = 2;
this.GrpFnkt.TabStop = false;
this.GrpFnkt.Text = "Funktionen";
this.GrpFnkt.Enter += new System.EventHandler(this.GrpFnkt_Enter);
//
// label6
//
@@ -154,7 +155,7 @@
// button4
//
this.button4.Image = ((System.Drawing.Image)(resources.GetObject("button4.Image")));
this.button4.Location = new System.Drawing.Point(257, 13);
this.button4.Location = new System.Drawing.Point(257, 16);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(75, 81);
this.button4.TabIndex = 7;
@@ -243,6 +244,7 @@
clsdocgendata1.erstellungsart = Model.Erstellungsart.DokumentBearbeiten;
clsdocgendata1.frormularOhneUnterschrift = false;
clsdocgendata1.inhaberadresse = null;
clsdocgendata1.logo = "";
clsdocgendata1.partnernr = null;
clsdocgendata1.postzustellung = null;
clsdocgendata1.status = null;
@@ -250,6 +252,7 @@
clsdocgendata1.unterschriftLinks = null;
clsdocgendata1.unterschriftRehts = null;
clsdocgendata1.verantwortlich = null;
clsdocgendata1.versandstrasse_moeglich = false;
clsdocgendata1.zustaendigkube = null;
clsdocgendata1.zustaendigmitarbeiter = null;
clsdocgendata1.zustelladresse = null;

View File

@@ -113,6 +113,12 @@ namespace OnDoc.DocMgmt
db.Save_To_DB(dokdata.Dokumentid, filename);
db = null;
}
if (ucAllgemeineDokumentParam1.docgendata.versandstrasse_moeglich == true)
{
button5.Enabled = true;
}
else { button5.Enabled = false; }
PnlPreview.Visible = true;
PnlPreview.Dock = DockStyle.Fill;
@@ -128,11 +134,10 @@ namespace OnDoc.DocMgmt
button4.Enabled = true;
button5.Enabled = true;
}
docPreview1.Show_Doc(dokumentid);
if (ucAllgemeineDokumentParam1.docgendata.versandstrasse_moeglich == false) { button5.Enabled = false; }
docPreview1.Show_Doc(dokumentid);
docPreview1.Hide_Editbuttons();
}
}
}
private void sfButton3_Click(object sender, EventArgs e)
@@ -172,5 +177,10 @@ namespace OnDoc.DocMgmt
this.Close();
}
private void GrpFnkt_Enter(object sender, EventArgs e)
{
}
}
}

111
Client/Helper/Security.cs Normal file
View File

@@ -0,0 +1,111 @@
using OnDoc.Klassen;
using Syncfusion.Pdf.Graphics;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks;
using System.Web.UI;
using System.Windows.Forms;
using Windows.UI.Core.Preview;
namespace OnDoc.Helper
{
public class Security
{
DataTable secdata = new DataTable();
public void set_security(System.Windows.Forms.Control c)
{
Database.DB db = new Database.DB(AppParams.connectionstring);
db.Get_Tabledata("select * from ondoc_funktionen where aktiv=1", false, true);
secdata = db.dsdaten.Tables[0];
foreach (System.Windows.Forms.Control control in c.Controls)
{
Type typ = control.GetType();
Console.WriteLine(typ.Name);
if (typ.Name == "Ribbon")
{
Ribbon tmpribbon = (Ribbon)control;
foreach (RibbonTab tab in tmpribbon.Tabs)
{
switch (Update_Item(tab, tab.Name)) { case 1: tab.Enabled = false; break; case 2: tab.Visible = false; break; default:break; } ;
foreach (RibbonPanel panel in tab.Panels)
{
switch (Update_Item(panel,panel.Name)) { case 1: panel.Enabled = false; break; case 2: panel.Visible = false; break; default: break; };
foreach (RibbonItem item in panel.Items)
{
switch (Update_Item(item, item.Name)) { case 1: item.Enabled = false; break; case 2: item.Visible = false; break; default: break; };
}
}
}
}
if (typ.Name == "Label")
{
if (typ.Name == "lblToApprove")
{
Label lbl = (Label)control;
}
}
get_all_controls(control);
}
}
private int Update_Item(object sender, string name)
{
foreach (DataRow dr in secdata.Rows)
{
if (dr["Objectname"].ToString() == name)
{
switch (dr["ObjektStatus"].ToString())
{
case "1":
return 1;
break;
case "2":
return 2;
break;
case "3":
return 3;
break;
default:
return 0;
break;
}
}
}
return 0;
}
public void get_all_controls(System.Windows.Forms.Control c)
{
foreach (System.Windows.Forms.Control subc in c.Controls)
{
Type typ = c.GetType();
Console.WriteLine(typ.Name);
if (typ.Name == "Label")
{
if (typ.Name== "lblToApprove")
{
Label lbl = (Label)subc;
}
Ribbon tmpribbon = (Ribbon)c;
}
get_all_controls(subc);
}
}
}
}

View File

@@ -1,5 +1,4 @@
using Database;
using Microsoft.Office.Interop.Word;
using Microsoft.Toolkit.Uwp.Notifications;
using System;
using System.Collections.Generic;

View File

@@ -1,4 +1,5 @@
using Microsoft.Office.Interop.Word;
using OnDoc.UIControls.Administrator;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -14,6 +15,7 @@ namespace OnDoc.Klassen
public string connectstring { get;set; }
public string filename { get; set; }
public string dokumentid { get; set; }
public
Microsoft.Office.Interop.Word.Application word;
Document doc = null;
@@ -23,6 +25,7 @@ namespace OnDoc.Klassen
this.connectstring = connectstring;
this.filename = filename;
this.dokumentid = dokumentid;
}
public bool Start_Application()
@@ -64,5 +67,10 @@ namespace OnDoc.Klassen
}
return true; // Document is closed
}
public void run_macros()
{
}
}
}

View File

@@ -1,5 +1,4 @@
using Microsoft.Office.Interop.Word;
using Syncfusion.Styles;
using Syncfusion.Styles;
using Syncfusion.WinForms.Controls;
using Syncfusion.WinForms.Controls.Styles;
using Syncfusion.WinForms.DataGrid.RowFilter;

View File

@@ -11,6 +11,7 @@ using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
using Syncfusion.Windows.Forms.Spreadsheet.Commands;
using OnDoc.UICintrols;
namespace OnDoc
@@ -84,6 +85,7 @@ namespace OnDoc
// // MyForm = new Start();
// Application.Run(MyForm);
Application.Run(new Start());
}
}

View File

@@ -1,4 +1,5 @@
using Database;
using Microsoft.Office.Interop.Excel;
using OnDoc.Diverses;
using OnDoc.DocMgmt;
using OnDoc.Klassen;
@@ -62,9 +63,14 @@ namespace OnDoc
//partnerTree1.Refresh(-1, AppParams.CurrentMitarbieter, Convert.ToInt32(rbcomboboxprofil.SelectedItem.Tag.ToString()));
dokList1.mitarbeiternr = AppParams.CurrentMitarbieter;
//Helper.Security security = new Helper.Security();
//security.set_security(dokList1);
dokList1.load_Profile();
dokList1.load_Mitarbeiter();
dokList1.refresh_dokumente();
dokList1.set_functions();
Logging.Logging.Debug("Start - Ende", "start.cs", "");
}
@@ -105,8 +111,10 @@ namespace OnDoc
// exec_edk();
//}
//partnerTree1.mitarbeiternr = AppParams.CurrentMitarbieter;
}
private void dokList1_Load(object sender, EventArgs e)
{

View File

@@ -280,7 +280,7 @@ namespace OnDoc.UIControls.Administrator
case "DOT":
case "WORD":
case "DOTM":
SynFWord sfword = new SynFWord();
SyncFWord sfword = new SyncFWord();
if (sfword.FindText(base64, this.toolStripTextBox1.Text) == true) { MessageBox.Show(dr[1].ToString()); }
break;
case "XLSM":

View File

@@ -1,4 +1,6 @@
namespace OnDoc.UICintrols
using Syncfusion.Windows.Forms.Tools;
namespace OnDoc.UICintrols
{
partial class DokList
{
@@ -49,6 +51,7 @@
this.tsbtnpreviewbottom = new System.Windows.Forms.ToolStripButton();
this.tsbtnpreviewright = new System.Windows.Forms.ToolStripButton();
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.docPreview1 = new OnDoc.UIControls.DocPreview();
this.panel2 = new System.Windows.Forms.Panel();
this.lblTitel = new System.Windows.Forms.Label();
this.ribbonPanel2 = new System.Windows.Forms.RibbonPanel();
@@ -56,11 +59,6 @@
this.RibbonTabUserFunctions = new System.Windows.Forms.RibbonTab();
this.RibbonPanelExit = new System.Windows.Forms.RibbonPanel();
this.RibbonButtonExit = new System.Windows.Forms.RibbonButton();
this.ribbonPanelVorschau = new System.Windows.Forms.RibbonPanel();
this.RibbonBtnVorschauNo = new System.Windows.Forms.RibbonButton();
this.RibbonBtnVorschauUnten = new System.Windows.Forms.RibbonButton();
this.RibbonButtonVorschauRechts = new System.Windows.Forms.RibbonButton();
this.RibbonBtnVorschauSepparat = new System.Windows.Forms.RibbonButton();
this.RibbonPanelBearbeiten = new System.Windows.Forms.RibbonPanel();
this.RibbonButtonNewDoc = new System.Windows.Forms.RibbonButton();
this.RibbonButtonFavoriten = new System.Windows.Forms.RibbonButton();
@@ -74,11 +72,6 @@
this.RibbonPanelArchiv = new System.Windows.Forms.RibbonPanel();
this.RibbonButtonArchivToOnBase = new System.Windows.Forms.RibbonButton();
this.ribbonButtonVersandstrasse = new System.Windows.Forms.RibbonButton();
this.RibbonPanelProfil = new System.Windows.Forms.RibbonPanel();
this.ribbonItemGroup1 = new System.Windows.Forms.RibbonItemGroup();
this.ribbonLabel1 = new System.Windows.Forms.RibbonLabel();
this.RibbonCBProfil = new System.Windows.Forms.RibbonComboBox();
this.ribbonButton1 = new System.Windows.Forms.RibbonButton();
this.RibbonPanelCreate = new System.Windows.Forms.RibbonPanel();
this.RibbonButtonCreateNewPaket = new System.Windows.Forms.RibbonButton();
this.RibbonButtonEditPaket = new System.Windows.Forms.RibbonButton();
@@ -95,6 +88,16 @@
this.ribbonButtonPartnerSuche = new System.Windows.Forms.RibbonButton();
this.ribbonGroupMitarbeiter = new System.Windows.Forms.RibbonItemGroup();
this.ribbonLabelMitarbeiter = new System.Windows.Forms.RibbonLabel();
this.ribbonPanelVorschau = new System.Windows.Forms.RibbonPanel();
this.RibbonBtnVorschauNo = new System.Windows.Forms.RibbonButton();
this.RibbonBtnVorschauUnten = new System.Windows.Forms.RibbonButton();
this.RibbonButtonVorschauRechts = new System.Windows.Forms.RibbonButton();
this.RibbonBtnVorschauSepparat = new System.Windows.Forms.RibbonButton();
this.RibbonPanelProfil = new System.Windows.Forms.RibbonPanel();
this.ribbonItemGroup1 = new System.Windows.Forms.RibbonItemGroup();
this.ribbonLabel1 = new System.Windows.Forms.RibbonLabel();
this.RibbonCBProfil = new System.Windows.Forms.RibbonComboBox();
this.ribbonButton1 = new System.Windows.Forms.RibbonButton();
this.ribbonPannelDiverseVorlagen = new System.Windows.Forms.RibbonPanel();
this.ribbonButtonNativ = new System.Windows.Forms.RibbonButton();
this.RibbonTabAdmin = new System.Windows.Forms.RibbonTab();
@@ -104,12 +107,14 @@
this.ribbonPanel3 = new System.Windows.Forms.RibbonPanel();
this.ribbonButton2 = new System.Windows.Forms.RibbonButton();
this.RibbonButtonBerechtigungsgruppe = new System.Windows.Forms.RibbonButton();
this.RibbonPanelDiverses = new System.Windows.Forms.RibbonPanel();
this.ribbonButtonBCK = new System.Windows.Forms.RibbonButton();
this.pdfConfig1 = new Syncfusion.Pdf.PdfConfig();
this.RibbonButtonCreateNewDoc = new System.Windows.Forms.RibbonButton();
this.lblToApprove = new System.Windows.Forms.Label();
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.cbboxMitarbeiter = new Syncfusion.WinForms.ListView.SfComboBox();
this.docPreview1 = new OnDoc.UIControls.DocPreview();
this.wordInterOPEditToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
((System.ComponentModel.ISupportInitialize)(this.sfDataGrid1)).BeginInit();
this.ctxMenuDokList.SuspendLayout();
this.toolStrip1.SuspendLayout();
@@ -153,9 +158,10 @@
this.zellenwertInZwischenablageKopierenToolStripMenuItem,
this.druckenToolStripMenuItem,
this.pDFGenerierenToolStripMenuItem,
this.dokumentAnVersandstrasseToolStripMenuItem});
this.dokumentAnVersandstrasseToolStripMenuItem,
this.wordInterOPEditToolStripMenuItem});
this.ctxMenuDokList.Name = "ctxMenuDokList";
this.ctxMenuDokList.Size = new System.Drawing.Size(280, 224);
this.ctxMenuDokList.Size = new System.Drawing.Size(280, 268);
//
// dokumentAnzeigenToolStripMenuItem
//
@@ -316,6 +322,15 @@
this.splitContainer1.SplitterDistance = 343;
this.splitContainer1.TabIndex = 2;
//
// docPreview1
//
this.docPreview1.BackColor = System.Drawing.SystemColors.Control;
this.docPreview1.Dock = System.Windows.Forms.DockStyle.Fill;
this.docPreview1.Location = new System.Drawing.Point(0, 0);
this.docPreview1.Name = "docPreview1";
this.docPreview1.Size = new System.Drawing.Size(1709, 347);
this.docPreview1.TabIndex = 0;
//
// panel2
//
this.panel2.BackColor = System.Drawing.Color.WhiteSmoke;
@@ -372,6 +387,7 @@
this.ribbon2.Tabs.Add(this.RibbonTabAdmin);
this.ribbon2.TabSpacing = 4;
this.ribbon2.Text = "ribbon2";
this.ribbon2.DockChanged += new System.EventHandler(this.ribbon2_DockChanged);
this.ribbon2.Click += new System.EventHandler(this.ribbon2_Click);
//
// RibbonTabUserFunctions
@@ -408,54 +424,6 @@
this.RibbonButtonExit.TextAlignment = System.Windows.Forms.RibbonItem.RibbonItemTextAlignment.Center;
this.RibbonButtonExit.Click += new System.EventHandler(this.RibbonButtonExit_Click);
//
// ribbonPanelVorschau
//
this.ribbonPanelVorschau.ButtonMoreVisible = false;
this.ribbonPanelVorschau.Items.Add(this.RibbonBtnVorschauNo);
this.ribbonPanelVorschau.Items.Add(this.RibbonBtnVorschauUnten);
this.ribbonPanelVorschau.Items.Add(this.RibbonButtonVorschauRechts);
this.ribbonPanelVorschau.Items.Add(this.RibbonBtnVorschauSepparat);
this.ribbonPanelVorschau.Name = "ribbonPanelVorschau";
this.ribbonPanelVorschau.Text = "Vorschau";
//
// RibbonBtnVorschauNo
//
this.RibbonBtnVorschauNo.Image = global::OnDoc.Properties.Resources.Preview_Now_32x32_32;
this.RibbonBtnVorschauNo.LargeImage = global::OnDoc.Properties.Resources.Preview_Now_32x32_32;
this.RibbonBtnVorschauNo.MaxSizeMode = System.Windows.Forms.RibbonElementSizeMode.Large;
this.RibbonBtnVorschauNo.Name = "RibbonBtnVorschauNo";
this.RibbonBtnVorschauNo.SmallImage = global::OnDoc.Properties.Resources.Preview_Now_16x16_32;
this.RibbonBtnVorschauNo.Text = "Keine";
this.RibbonBtnVorschauNo.TextAlignment = System.Windows.Forms.RibbonItem.RibbonItemTextAlignment.Center;
this.RibbonBtnVorschauNo.Click += new System.EventHandler(this.RibbonBtnVorschauNo_Click);
//
// RibbonBtnVorschauUnten
//
this.RibbonBtnVorschauUnten.Image = global::OnDoc.Properties.Resources.Preview_Unten_32x32_32;
this.RibbonBtnVorschauUnten.LargeImage = global::OnDoc.Properties.Resources.Preview_Unten_32x32_32;
this.RibbonBtnVorschauUnten.Name = "RibbonBtnVorschauUnten";
this.RibbonBtnVorschauUnten.SmallImage = global::OnDoc.Properties.Resources.Preview_Unten_16x16_32;
this.RibbonBtnVorschauUnten.Text = "Unten";
this.RibbonBtnVorschauUnten.Click += new System.EventHandler(this.RibbonBtnVorschauUnten_Click);
//
// RibbonButtonVorschauRechts
//
this.RibbonButtonVorschauRechts.Image = global::OnDoc.Properties.Resources.Preview_Rechts_32x32_32;
this.RibbonButtonVorschauRechts.LargeImage = global::OnDoc.Properties.Resources.Preview_Rechts_32x32_32;
this.RibbonButtonVorschauRechts.Name = "RibbonButtonVorschauRechts";
this.RibbonButtonVorschauRechts.SmallImage = global::OnDoc.Properties.Resources.Preview_Rechts_16x16_32;
this.RibbonButtonVorschauRechts.Text = "Rechts";
this.RibbonButtonVorschauRechts.Click += new System.EventHandler(this.RibbonButtonVorschauRechts_Click);
//
// RibbonBtnVorschauSepparat
//
this.RibbonBtnVorschauSepparat.Image = global::OnDoc.Properties.Resources.Preview_separated_32x32_32;
this.RibbonBtnVorschauSepparat.LargeImage = global::OnDoc.Properties.Resources.Preview_separated_32x32_32;
this.RibbonBtnVorschauSepparat.Name = "RibbonBtnVorschauSepparat";
this.RibbonBtnVorschauSepparat.SmallImage = global::OnDoc.Properties.Resources.Preview_separated_16x16_32;
this.RibbonBtnVorschauSepparat.Text = "Eigenes Fenster";
this.RibbonBtnVorschauSepparat.Click += new System.EventHandler(this.RibbonBtnVorschauSepparat_Click);
//
// RibbonPanelBearbeiten
//
this.RibbonPanelBearbeiten.ButtonMoreVisible = false;
@@ -573,42 +541,6 @@
this.ribbonButtonVersandstrasse.Text = "Versandstrasse";
this.ribbonButtonVersandstrasse.Click += new System.EventHandler(this.ribbonButtonVersandstrasse_Click);
//
// RibbonPanelProfil
//
this.RibbonPanelProfil.ButtonMoreVisible = false;
this.RibbonPanelProfil.Items.Add(this.ribbonItemGroup1);
this.RibbonPanelProfil.Items.Add(this.ribbonButton1);
this.RibbonPanelProfil.Name = "RibbonPanelProfil";
this.RibbonPanelProfil.Text = "Profil";
//
// ribbonItemGroup1
//
this.ribbonItemGroup1.Items.Add(this.ribbonLabel1);
this.ribbonItemGroup1.Items.Add(this.RibbonCBProfil);
this.ribbonItemGroup1.Name = "ribbonItemGroup1";
//
// ribbonLabel1
//
this.ribbonLabel1.MaxSizeMode = System.Windows.Forms.RibbonElementSizeMode.Compact;
this.ribbonLabel1.Name = "ribbonLabel1";
this.ribbonLabel1.Text = "Profil";
//
// RibbonCBProfil
//
this.RibbonCBProfil.MaxSizeMode = System.Windows.Forms.RibbonElementSizeMode.Compact;
this.RibbonCBProfil.Name = "RibbonCBProfil";
this.RibbonCBProfil.SelectedIndex = -1;
this.RibbonCBProfil.TextBoxText = "";
//
// ribbonButton1
//
this.ribbonButton1.Image = global::OnDoc.Properties.Resources.Pprofil_32x32_32;
this.ribbonButton1.LargeImage = global::OnDoc.Properties.Resources.Pprofil_32x32_32;
this.ribbonButton1.Name = "ribbonButton1";
this.ribbonButton1.SmallImage = global::OnDoc.Properties.Resources.Pprofil_16x16_32;
this.ribbonButton1.Visible = false;
this.ribbonButton1.Click += new System.EventHandler(this.ribbonButton1_Click);
//
// RibbonPanelCreate
//
this.RibbonPanelCreate.ButtonMoreVisible = false;
@@ -734,6 +666,90 @@
this.ribbonLabelMitarbeiter.Name = "ribbonLabelMitarbeiter";
this.ribbonLabelMitarbeiter.Text = "Mitarbeiter";
//
// ribbonPanelVorschau
//
this.ribbonPanelVorschau.ButtonMoreVisible = false;
this.ribbonPanelVorschau.Items.Add(this.RibbonBtnVorschauNo);
this.ribbonPanelVorschau.Items.Add(this.RibbonBtnVorschauUnten);
this.ribbonPanelVorschau.Items.Add(this.RibbonButtonVorschauRechts);
this.ribbonPanelVorschau.Items.Add(this.RibbonBtnVorschauSepparat);
this.ribbonPanelVorschau.Name = "ribbonPanelVorschau";
this.ribbonPanelVorschau.Text = "Vorschau";
//
// RibbonBtnVorschauNo
//
this.RibbonBtnVorschauNo.Image = global::OnDoc.Properties.Resources.Preview_Now_32x32_32;
this.RibbonBtnVorschauNo.LargeImage = global::OnDoc.Properties.Resources.Preview_Now_32x32_32;
this.RibbonBtnVorschauNo.MaxSizeMode = System.Windows.Forms.RibbonElementSizeMode.Large;
this.RibbonBtnVorschauNo.Name = "RibbonBtnVorschauNo";
this.RibbonBtnVorschauNo.SmallImage = global::OnDoc.Properties.Resources.Preview_Now_16x16_32;
this.RibbonBtnVorschauNo.Text = "Keine";
this.RibbonBtnVorschauNo.TextAlignment = System.Windows.Forms.RibbonItem.RibbonItemTextAlignment.Center;
this.RibbonBtnVorschauNo.Click += new System.EventHandler(this.RibbonBtnVorschauNo_Click);
//
// RibbonBtnVorschauUnten
//
this.RibbonBtnVorschauUnten.Image = global::OnDoc.Properties.Resources.Preview_Unten_32x32_32;
this.RibbonBtnVorschauUnten.LargeImage = global::OnDoc.Properties.Resources.Preview_Unten_32x32_32;
this.RibbonBtnVorschauUnten.Name = "RibbonBtnVorschauUnten";
this.RibbonBtnVorschauUnten.SmallImage = global::OnDoc.Properties.Resources.Preview_Unten_16x16_32;
this.RibbonBtnVorschauUnten.Text = "Unten";
this.RibbonBtnVorschauUnten.Click += new System.EventHandler(this.RibbonBtnVorschauUnten_Click);
//
// RibbonButtonVorschauRechts
//
this.RibbonButtonVorschauRechts.Image = global::OnDoc.Properties.Resources.Preview_Rechts_32x32_32;
this.RibbonButtonVorschauRechts.LargeImage = global::OnDoc.Properties.Resources.Preview_Rechts_32x32_32;
this.RibbonButtonVorschauRechts.Name = "RibbonButtonVorschauRechts";
this.RibbonButtonVorschauRechts.SmallImage = global::OnDoc.Properties.Resources.Preview_Rechts_16x16_32;
this.RibbonButtonVorschauRechts.Text = "Rechts";
this.RibbonButtonVorschauRechts.Click += new System.EventHandler(this.RibbonButtonVorschauRechts_Click);
//
// RibbonBtnVorschauSepparat
//
this.RibbonBtnVorschauSepparat.Image = global::OnDoc.Properties.Resources.Preview_separated_32x32_32;
this.RibbonBtnVorschauSepparat.LargeImage = global::OnDoc.Properties.Resources.Preview_separated_32x32_32;
this.RibbonBtnVorschauSepparat.Name = "RibbonBtnVorschauSepparat";
this.RibbonBtnVorschauSepparat.SmallImage = global::OnDoc.Properties.Resources.Preview_separated_16x16_32;
this.RibbonBtnVorschauSepparat.Text = "Eigenes Fenster";
this.RibbonBtnVorschauSepparat.Click += new System.EventHandler(this.RibbonBtnVorschauSepparat_Click);
//
// RibbonPanelProfil
//
this.RibbonPanelProfil.ButtonMoreVisible = false;
this.RibbonPanelProfil.Items.Add(this.ribbonItemGroup1);
this.RibbonPanelProfil.Items.Add(this.ribbonButton1);
this.RibbonPanelProfil.Name = "RibbonPanelProfil";
this.RibbonPanelProfil.Text = "Profil";
//
// ribbonItemGroup1
//
this.ribbonItemGroup1.Items.Add(this.ribbonLabel1);
this.ribbonItemGroup1.Items.Add(this.RibbonCBProfil);
this.ribbonItemGroup1.Name = "ribbonItemGroup1";
//
// ribbonLabel1
//
this.ribbonLabel1.MaxSizeMode = System.Windows.Forms.RibbonElementSizeMode.Compact;
this.ribbonLabel1.Name = "ribbonLabel1";
this.ribbonLabel1.Text = "Profil";
//
// RibbonCBProfil
//
this.RibbonCBProfil.MaxSizeMode = System.Windows.Forms.RibbonElementSizeMode.Compact;
this.RibbonCBProfil.Name = "RibbonCBProfil";
this.RibbonCBProfil.SelectedIndex = -1;
this.RibbonCBProfil.TextBoxText = "";
//
// ribbonButton1
//
this.ribbonButton1.Image = global::OnDoc.Properties.Resources.Pprofil_32x32_32;
this.ribbonButton1.LargeImage = global::OnDoc.Properties.Resources.Pprofil_32x32_32;
this.ribbonButton1.Name = "ribbonButton1";
this.ribbonButton1.SmallImage = global::OnDoc.Properties.Resources.Pprofil_16x16_32;
this.ribbonButton1.Visible = false;
this.ribbonButton1.Click += new System.EventHandler(this.ribbonButton1_Click);
//
// ribbonPannelDiverseVorlagen
//
this.ribbonPannelDiverseVorlagen.Items.Add(this.ribbonButtonNativ);
@@ -754,6 +770,7 @@
this.RibbonTabAdmin.Name = "RibbonTabAdmin";
this.RibbonTabAdmin.Panels.Add(this.ribbonPanel1);
this.RibbonTabAdmin.Panels.Add(this.ribbonPanel3);
this.RibbonTabAdmin.Panels.Add(this.RibbonPanelDiverses);
this.RibbonTabAdmin.Text = "Administration";
//
// ribbonPanel1
@@ -810,6 +827,21 @@
this.RibbonButtonBerechtigungsgruppe.Text = "Berechtigungsgruppe";
this.RibbonButtonBerechtigungsgruppe.Click += new System.EventHandler(this.RibbonButtonBerechtigungsgruppe_Click);
//
// RibbonPanelDiverses
//
this.RibbonPanelDiverses.Items.Add(this.ribbonButtonBCK);
this.RibbonPanelDiverses.Name = "RibbonPanelDiverses";
this.RibbonPanelDiverses.Text = "Diverse Funktionen";
//
// ribbonButtonBCK
//
this.ribbonButtonBCK.Image = ((System.Drawing.Image)(resources.GetObject("ribbonButtonBCK.Image")));
this.ribbonButtonBCK.LargeImage = ((System.Drawing.Image)(resources.GetObject("ribbonButtonBCK.LargeImage")));
this.ribbonButtonBCK.Name = "ribbonButtonBCK";
this.ribbonButtonBCK.SmallImage = ((System.Drawing.Image)(resources.GetObject("ribbonButtonBCK.SmallImage")));
this.ribbonButtonBCK.Text = "BCK";
this.ribbonButtonBCK.Click += new System.EventHandler(this.ribbonButton3_Click);
//
// RibbonButtonCreateNewDoc
//
this.RibbonButtonCreateNewDoc.Image = global::OnDoc.Properties.Resources.NewDoc_32x32_32;
@@ -850,14 +882,12 @@
this.cbboxMitarbeiter.TabStop = false;
this.cbboxMitarbeiter.SelectedValueChanged += new System.EventHandler(this.cbboxMitarbeiter_SelectedValueChanged);
//
// docPreview1
// wordInterOPEditToolStripMenuItem
//
this.docPreview1.BackColor = System.Drawing.SystemColors.Control;
this.docPreview1.Dock = System.Windows.Forms.DockStyle.Fill;
this.docPreview1.Location = new System.Drawing.Point(0, 0);
this.docPreview1.Name = "docPreview1";
this.docPreview1.Size = new System.Drawing.Size(1709, 347);
this.docPreview1.TabIndex = 0;
this.wordInterOPEditToolStripMenuItem.Name = "wordInterOPEditToolStripMenuItem";
this.wordInterOPEditToolStripMenuItem.Size = new System.Drawing.Size(279, 22);
this.wordInterOPEditToolStripMenuItem.Text = "Word InterOP Edit";
this.wordInterOPEditToolStripMenuItem.Click += new System.EventHandler(this.wordInterOPEditToolStripMenuItem_Click);
//
// DokList
//
@@ -871,6 +901,7 @@
this.Name = "DokList";
this.Size = new System.Drawing.Size(1709, 847);
this.Load += new System.EventHandler(this.DokList_Load);
this.DockChanged += new System.EventHandler(this.DokList_DockChanged);
((System.ComponentModel.ISupportInitialize)(this.sfDataGrid1)).EndInit();
this.ctxMenuDokList.ResumeLayout(false);
this.toolStrip1.ResumeLayout(false);
@@ -969,5 +1000,8 @@
private System.Windows.Forms.Timer timer1;
private System.Windows.Forms.RibbonButton ribbonButtonRefresh_Bewilligungen;
private Syncfusion.WinForms.ListView.SfComboBox cbboxMitarbeiter;
private System.Windows.Forms.RibbonPanel RibbonPanelDiverses;
private System.Windows.Forms.RibbonButton ribbonButtonBCK;
private System.Windows.Forms.ToolStripMenuItem wordInterOPEditToolStripMenuItem;
}
}

View File

@@ -39,6 +39,8 @@ using BroadcastListener.Classes;
using System.Resources;
using NLog.Config;
using OnDoc.Versandstrasse;
using Windows.UI.Input.Preview.Injection;
using Windows.UI.WebUI;
@@ -48,7 +50,7 @@ namespace OnDoc.UICintrols
{
public int partnernr { get; set; } = 0;
public int forMaNr { get; set; } = 0;
public int docartnr { get; set; }
public int docartnr { get; set; }
public int profilnr { get; set; }
public int mitarbeiternr { get; set; }
@@ -64,26 +66,31 @@ namespace OnDoc.UICintrols
System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("de-DE");
InitializeComponent();
Broadcaster().AddListener(this);
//Theaming.FormTheaming(ref this);
//t_functions();
pos_elements();
}
public void OnListen(string message, SenderInfo sender)
{
if (sender.SenderName is "PreviewWindow")
{
if (sender.Function == "WindowClosed") {
if (sender.Function == "WindowClosed")
{
this.Separate_Vorschau_offen = false;
}
}
}
private void DokList_Load(object sender, EventArgs e)
{
tsrbvorschau.SelectedIndex = 0;
sfDataGrid1.AllowDraggingColumns = true;
// Helper.Security security = new Helper.Security();
// security.set_security(this);
//Refresh_Bewilligungen();
}
public void load_Profile()
@@ -125,19 +132,19 @@ namespace OnDoc.UICintrols
public void refresh_dokumente()
{
if (datafilter!="")
if (datafilter != "")
{
refresh_dokumente_filtered();
return;
}
DB db = new DB(AppParams.connectionstring);
int selectedIndex = RibbonCBProfil.SelectedIndex;
profilnr = Convert.ToInt32(RibbonCBProfil.SelectedItem.Tag.ToString());
// profilnr = Convert.ToInt32(RibbonCBProfil.SelectedItem.Tag.ToString());
// profilnr = Convert.ToInt32(RibbonCBProfil.SelectedItem.Tag.ToString());
System.Data.DataTable dokumente = new System.Data.DataTable();
dokumente = db.Get_Dokumente(partnernr, docartnr, profilnr,forMaNr, false);
dokumente = db.Get_Dokumente(partnernr, docartnr, profilnr, forMaNr, false);
// TableHelper.SetColumnsOrder(dokumente, "trefferliste");
TableHelper.FormatTable(ref dokumente, "trefferliste_relaunch", ref this.sfDataGrid1);
@@ -181,13 +188,13 @@ namespace OnDoc.UICintrols
selected_cellvalue = dataRow[e.DataColumn.ColumnIndex].ToString();
if (dataRow["Bearbeitung_Zwingend"].ToString() == "1")
{
RibbonButtonArchivToOnBase.Enabled=false;
archivierenToolStripMenuItem.Enabled=false;
RibbonButtonArchivToOnBase.Enabled = false;
archivierenToolStripMenuItem.Enabled = false;
}
else
{
RibbonButtonArchivToOnBase.Enabled=true;
archivierenToolStripMenuItem.Enabled= true;
RibbonButtonArchivToOnBase.Enabled = true;
archivierenToolStripMenuItem.Enabled = true;
}
}
catch
@@ -256,7 +263,7 @@ namespace OnDoc.UICintrols
}
else
{
Logging.Logging.Error(URL + ": " + response.StatusCode.ToString() + " / " + response.StatusDescription, "Clinet - DokList GetDocument", "");
Logging.Logging.Error(URL + ": " + response.StatusCode.ToString() + " / " + response.StatusDescription, "Clinet - DokList GetDocument", "");
}
}
}
@@ -281,7 +288,7 @@ namespace OnDoc.UICintrols
return dok;
}
private void OpenDoc(clsdok dok, bool editdoc)
private void OpenDoc(clsdok dok, bool editdoc, bool interop = false)
{
switch (dok.extension.ToUpper().Substring(0, 1))
@@ -291,7 +298,16 @@ namespace OnDoc.UICintrols
string tempfilename = "";
tempfilename = fh.save_temp_file(dok.dokument, selected_dokumentid, AppParams.tempdir, dok.extension);
//System.Diagnostics.Process.Start(tempfilename);
System.Diagnostics.Process.Start("winword.exe", "/w "+tempfilename);
if (interop == true)
{
OnDocOffice.clsWordEdit WordInterOP = new OnDocOffice.clsWordEdit(AppParams.connectionstring, tempfilename, selected_dokumentid);
WordInterOP.Edit_Document();
WordInterOP = null;
}
else
{
System.Diagnostics.Process.Start("winword.exe", "/w " + tempfilename);
}
if (editdoc == true)
{
@@ -302,8 +318,17 @@ namespace OnDoc.UICintrols
case "X":
clsFileHelper fh2 = new clsFileHelper();
tempfilename = fh2.save_temp_file(dok.dokument, selected_dokumentid, AppParams.tempdir, dok.extension);
//System.Diagnostics.Process.Start(tempfilename);
System.Diagnostics.Process.Start("excel.exe", "/x "+tempfilename);
if (interop == true)
{
OnDocOffice.clsExcelEdit ExcelInterOP = new OnDocOffice.clsExcelEdit(AppParams.connectionstring, tempfilename, selected_dokumentid);
ExcelInterOP.Edit_Document();
ExcelInterOP = null;
}
else
{
System.Diagnostics.Process.Start("excel.exe", " " + tempfilename);
}
//System.Diagnostics.Process.Start("excel.exe", "/x " + tempfilename);
if (editdoc == true)
{
clsProcessWatch.AddToList(selected_dokumentid, tempfilename, "Excel");
@@ -371,7 +396,8 @@ namespace OnDoc.UICintrols
this.splitContainer1.SplitterDistance = this.Height;
this.splitContainer1.Orientation = Orientation.Horizontal;
docPreview1.Visible = false;
if (Separate_Vorschau_offen) {
if (Separate_Vorschau_offen)
{
Broadcaster().Broadcast(selected_dokumentid, new SenderInfo("Doklist", "UpdateView", ""));
}
else
@@ -415,7 +441,7 @@ namespace OnDoc.UICintrols
}
private void RibbonBtnVorschauSepparat_Click(object sender, EventArgs e)
{
if (tsrbvorschau.SelectedIndex==3 && Separate_Vorschau_offen==false)
if (tsrbvorschau.SelectedIndex == 3 && Separate_Vorschau_offen == false)
{
tsrbvorschau_SelectedIndexChanged(sender, e);
return;
@@ -427,7 +453,7 @@ namespace OnDoc.UICintrols
{
createnewdoc(0, 0);
}
public void createnewdoc(int partnernr, int dokumenttypnr, bool Favoriten=false, string interaktion="Yes",string showdoc="Yes")
public void createnewdoc(int partnernr, int dokumenttypnr, bool Favoriten = false, string interaktion = "Yes", string showdoc = "Yes")
{
if (dokumenttypnr == 0)
@@ -455,7 +481,7 @@ namespace OnDoc.UICintrols
}
else
{
frmnewdok.ShowDialog();
frmnewdok.ShowDialog();
}
switch (frmnewdok.DocFunction)
{
@@ -481,62 +507,62 @@ namespace OnDoc.UICintrols
default:
break;
}
}
private void RibbonButtonRefresh_Click(object sender, EventArgs e)
{
refresh_dokumente();
}
private void RibbonButtonEditDelete_Click(object sender, EventArgs e)
{
var records = sfDataGrid1.View.GetSelectedRecords();
if (records.Count < 1) { return; }
if (MessageBox.Show("Gewählte Dokument(e) löschen", "Dokument löschen", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.Yes) { return; }
foreach (var record in records)
{
var datarow = record as DataRowView;
string documentid = datarow["dokumentid"].ToString();
dokument_loeschen(documentid);
}
refresh_dokumente();
}
private void dokument_loeschen(string dokumentid)
{
DB db = new DB(AppParams.connectionstring);
db.Exec_SQL("Delete from dokument where dokumentid='" + dokumentid + "'");
db.Exec_SQL("Delete from dokument_trefferliste where dokumentid='" + dokumentid + "'");
db = null;
}
private void RibbonButtonRefresh_Click(object sender, EventArgs e)
{
refresh_dokumente();
}
private void ribbonButton1_Click(object sender, EventArgs e)
{
MitarbeiterProfil map = new MitarbeiterProfil(AppParams.CurrentMitarbieter);
map.ShowDialog();
load_Profile();
}
private void RibbonButtonEditDelete_Click(object sender, EventArgs e)
{
private void dokumentLöschenToolStripMenuItem_Click(object sender, EventArgs e)
{
RibbonButtonEditDelete_Click(sender, e);
}
var records = sfDataGrid1.View.GetSelectedRecords();
if (records.Count < 1) { return; }
if (MessageBox.Show("Gewählte Dokument(e) löschen", "Dokument löschen", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.Yes) { return; }
foreach (var record in records)
{
var datarow = record as DataRowView;
string documentid = datarow["dokumentid"].ToString();
dokument_loeschen(documentid);
}
refresh_dokumente();
}
private void dokument_loeschen(string dokumentid)
{
DB db = new DB(AppParams.connectionstring);
db.Exec_SQL("Delete from dokument where dokumentid='" + dokumentid + "'");
db.Exec_SQL("Delete from dokument_trefferliste where dokumentid='" + dokumentid + "'");
db = null;
}
private void ribbonButton1_Click(object sender, EventArgs e)
{
MitarbeiterProfil map = new MitarbeiterProfil(AppParams.CurrentMitarbieter);
map.ShowDialog();
load_Profile();
}
private void dokumentLöschenToolStripMenuItem_Click(object sender, EventArgs e)
{
RibbonButtonEditDelete_Click(sender, e);
}
private void RibbonButtonZuweisen_Click(object sender, EventArgs e)
{
frmDocPreview dpv = new frmDocPreview();
dpv.Show();
}
private void RibbonButtonZuweisen_Click(object sender, EventArgs e)
{
frmDocPreview dpv = new frmDocPreview();
dpv.Show();
}
private void RibbonButtonCreateNewPaket_Click(object sender, EventArgs e)
{
@@ -557,32 +583,32 @@ namespace OnDoc.UICintrols
createnewdoc(0, 0);
}
public void hide_panels()
{
this.RibbonPanelExit.Visible = false;
this.RibbonPanelProfil.Visible=false;
this.RibbonPanelCreate.Visible=false;
this.RibbonPanelProfil.Visible = false;
this.RibbonPanelCreate.Visible = false;
this.RibbonTabAdmin.Visible = false;
this.sfDataGrid1.AllowGrouping=false;
this.sfDataGrid1.ShowGroupDropArea=false;
this.sfDataGrid1.AllowGrouping = false;
this.sfDataGrid1.ShowGroupDropArea = false;
this.lblTitel.Text = "";
this.RibbonButtonNewDoc.Visible=false;
this.RibbonPanelDoklist.Visible=false;
this.RibbonButtonNewDoc.Visible = false;
this.RibbonPanelDoklist.Visible = false;
this.RibbonBtnVorschauNo.Visible = false;
this.RibbonButtonVorschauRechts.Visible=false;
this.RibbonBtnVorschauUnten.Visible=false
this.RibbonButtonVorschauRechts.Visible = false;
this.RibbonBtnVorschauUnten.Visible = false
;
}
private void sfDataGrid1_DrawCell(object sender, DrawCellEventArgs e)
{
if (e.Column.MappingName == "fileext")
{
try
{
e.Column.CellStyle.HorizontalAlignment= HorizontalAlignment.Center;
e.Column.CellStyle.HorizontalAlignment = HorizontalAlignment.Center;
e.Handled = true;
var selectedItem = e.DataRow;
var dataRow = (e.DataRow.RowData as DataRowView).Row;
@@ -591,7 +617,8 @@ namespace OnDoc.UICintrols
if (dataRow[11].ToString() != "1")
{
e.Graphics.DrawImage(OnDoc.Properties.Resources.Word_24x24_32, e.Bounds.X + 20, e.Bounds.Y);
}else
}
else
{
e.Graphics.DrawImage(OnDoc.Properties.Resources.Word_Edit_24x24_32, e.Bounds.X + 20, e.Bounds.Y);
}
@@ -645,18 +672,18 @@ namespace OnDoc.UICintrols
clsdok dok = new clsdok("", "", "");
dok = gd.GetDoc(selected_dokumentid);
gd.Print_Doc(dok.dokument);
}
private void RibbonButtonTest1_Click(object sender, EventArgs e)
{
DOCGEN.print print = new DOCGEN.print();
print.printWord();
}
private void ribbonPartnerSuche_Click(object sender, EventArgs e)
@@ -676,7 +703,7 @@ namespace OnDoc.UICintrols
{
if (e.KeyCode == Keys.Enter)
{
this.partnernr= Convert.ToInt32(ribbonTextPartner.TextBoxText.Trim());
this.partnernr = Convert.ToInt32(ribbonTextPartner.TextBoxText.Trim());
refresh_dokumente();
}
}
@@ -689,7 +716,7 @@ namespace OnDoc.UICintrols
private void ribbonButton2_Click(object sender, EventArgs e)
{
Verbindungseditor ve = new Verbindungseditor("Relaunch_Berechtigungsgruppe","Mitarbeiter", "Relaunch_Berechtigungsgruppe_Mitarbeiter");
Verbindungseditor ve = new Verbindungseditor("Relaunch_Berechtigungsgruppe", "Mitarbeiter", "Relaunch_Berechtigungsgruppe_Mitarbeiter");
ve.Show();
}
@@ -727,7 +754,7 @@ namespace OnDoc.UICintrols
private void RibbonButtonArchivToOnBase_Click(object sender, EventArgs e)
{
}
private void ribbonButtonVersandstrasse_Click(object sender, EventArgs e)
@@ -772,7 +799,7 @@ namespace OnDoc.UICintrols
private void ribbonButtonApproval_Click(object sender, EventArgs e)
{
if (this.lblToApprove.Text=="") { MessageBox.Show("Es sind keine Bewilligungen ausstehend.", "Bewilligung", MessageBoxButtons.OK, MessageBoxIcon.Information);return; }
if (this.lblToApprove.Text == "") { MessageBox.Show("Es sind keine Bewilligungen ausstehend.", "Bewilligung", MessageBoxButtons.OK, MessageBoxIcon.Information); return; }
frmBewilligung bw = new frmBewilligung();
bw.Show();
}
@@ -780,7 +807,7 @@ namespace OnDoc.UICintrols
private void ribbonButtonToApproval_Click(object sender, EventArgs e)
{
frmToApproval fa = new frmToApproval();
fa.dokumentid=selected_dokumentid;
fa.dokumentid = selected_dokumentid;
fa.ShowDialog();
}
@@ -812,14 +839,15 @@ namespace OnDoc.UICintrols
private void ribbon2_Click(object sender, EventArgs e)
{
pos_elements();
if (ribbon2.ActiveTab.Text != "Funktionen")
{
lblToApprove.Visible= false;
cbboxMitarbeiter.Visible= false;
lblToApprove.Visible = false;
cbboxMitarbeiter.Visible = false;
}
else
{
lblToApprove.Visible= true;
lblToApprove.Visible = true;
cbboxMitarbeiter.Visible = true;
}
}
@@ -829,5 +857,54 @@ namespace OnDoc.UICintrols
this.forMaNr = Convert.ToInt32(cbboxMitarbeiter.SelectedValue);
refresh_dokumente();
}
private void pos_elements()
{
System.Windows.Forms.Application.DoEvents();
int posx = ribbonButtonApproval.Bounds.X;
int width = RibbonPannelAproval.Bounds.Width;
if (RibbonPannelAproval.Visible == true && ribbonButtonApproval.Visible == true)
{
//lblToApprove.Visible = true;
lblToApprove.Left = posx + (width / 2);
}
else { lblToApprove.Visible = false; }
posx = ribbonTextPartner.Bounds.X;
cbboxMitarbeiter.Left = posx;
}
private void ribbonButton3_Click(object sender, EventArgs e)
{
BarcodeLib.Barcode bck = new BarcodeLib.Barcode();
bck.Gen_BCK(AppParams.connectionstring);
}
public void set_functions()
{
Security security = new Security();
security.set_security(this);
//pos_elements();
}
private void ribbon2_DockChanged(object sender, EventArgs e)
{
}
private void DokList_DockChanged(object sender, EventArgs e)
{
}
private void wordInterOPEditToolStripMenuItem_Click(object sender, EventArgs e)
{
clsdok dok = GetDoc(false);
if (dok.dokument == "") return;
OpenDoc(dok, true,true);
}
}
}

View File

@@ -447,6 +447,24 @@
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vAAADrwBlbxySQAAABNJREFUOE9jGAWjYBSMAjBgYAAABBAAAadEfGMAAAAASUVORK5CYII=
</value>
</data>
<data name="ribbonButtonBCK.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vAAADrwBlbxySQAAABpJREFUWEftwQEBAAAAgiD/r25IQAAAAMC5GhAgAAGdeElDAAAAAElFTkSuQmCC
</value>
</data>
<data name="ribbonButtonBCK.LargeImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vAAADrwBlbxySQAAABpJREFUWEftwQEBAAAAgiD/r25IQAAAAMC5GhAgAAGdeElDAAAAAElFTkSuQmCC
</value>
</data>
<data name="ribbonButtonBCK.SmallImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vAAADrwBlbxySQAAABNJREFUOE9jGAWjYBSMAjBgYAAABBAAAadEfGMAAAAASUVORK5CYII=
</value>
</data>
<metadata name="pdfConfig1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">

View File

@@ -12,7 +12,6 @@ using System.Windows.Forms;
using Helper;
using OnDoc.Helper;
using Syncfusion.WinForms.DataGrid;
using Microsoft.Office.Interop.Word;
using System.Web.UI.WebControls;
using Syncfusion.Data;
using Syncfusion.WinForms.DataGrid.Interactivity;

View File

@@ -222,6 +222,7 @@
this.rbEditlater.TabIndex = 11;
this.rbEditlater.Text = "Dokument später bearbeiten";
this.rbEditlater.UseVisualStyleBackColor = true;
this.rbEditlater.Visible = false;
//
// rbasPDFarchivieren
//

View File

@@ -26,6 +26,7 @@ namespace OnDoc.UIControls
public int partnernr { get; set; }
public bool checkpartner { get; set; } = true;
public clsdocgendata docgendata { get; set; }
public UCAllgemeineDokumentParam()
{
@@ -86,6 +87,11 @@ namespace OnDoc.UIControls
this.cbfaksimile.Enabled = Convert.ToBoolean(dr["unterschrift_faksimile"]) == true;
this.cbfaksimile.Checked = false;
this.cbformularohneunterschrfit.Checked = false;
if (dr["Versandstrasse_moeglich"].ToString() == "") { docgendata.versandstrasse_moeglich = false; }
else
{
docgendata.versandstrasse_moeglich = Convert.ToBoolean(dr["Versandstrasse_moeglich"].ToString());
}
if (Convert.ToInt32(dr["Unterschrift_Standard"].ToString()) == 1) { cbfaksimile.Checked = true; }
if (Convert.ToInt32(dr["Unterschrift_Standard"].ToString()) == 2) { cbformularohneunterschrfit.Checked = true; }
@@ -250,6 +256,7 @@ namespace OnDoc.UIControls
if (rbEditlater.Checked) { docgendata.erstellungsart = Erstellungsart.DokumentSpäterBearbeiten; }
if (rbasPDF.Checked) { docgendata.erstellungsart = Erstellungsart.DokumentAlsPDF; }
if (rbasPDFarchivieren.Checked) { docgendata.erstellungsart = Erstellungsart.DokumentAlsPDFArchivieren; }
//XXXXXdocgendata.dokumentwerte = gridDokwertlist.DataSource;
}

View File

@@ -32,25 +32,24 @@
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Versandstrasse));
this.treeViewAdv1 = new Syncfusion.Windows.Forms.Tools.TreeViewAdv();
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.tsbtnDruckPaketNew = new System.Windows.Forms.ToolStripButton();
this.tsbtnVersenden = new System.Windows.Forms.ToolStripButton();
this.GrpPaketDetails = new System.Windows.Forms.GroupBox();
this.button1 = new System.Windows.Forms.Button();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.label1 = new System.Windows.Forms.Label();
this.lbgasadresse = new System.Windows.Forms.ListBox();
this.chkGAS = new System.Windows.Forms.CheckBox();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.txtnachrichtankunde = new System.Windows.Forms.TextBox();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.rbversandoption3 = new System.Windows.Forms.RadioButton();
this.rbversandoption2 = new System.Windows.Forms.RadioButton();
this.rbversandoption1 = new System.Windows.Forms.RadioButton();
this.button1 = new System.Windows.Forms.Button();
this.tsbtnDruckPaketNew = new System.Windows.Forms.ToolStripButton();
this.tsbtnVersenden = new System.Windows.Forms.ToolStripButton();
this.radioButton1 = new System.Windows.Forms.RadioButton();
this.radioButton2 = new System.Windows.Forms.RadioButton();
((System.ComponentModel.ISupportInitialize)(this.treeViewAdv1)).BeginInit();
this.toolStrip1.SuspendLayout();
this.GrpPaketDetails.SuspendLayout();
this.groupBox3.SuspendLayout();
this.groupBox2.SuspendLayout();
this.groupBox1.SuspendLayout();
this.SuspendLayout();
//
@@ -140,12 +139,28 @@
this.toolStrip1.TabIndex = 8;
this.toolStrip1.Text = "toolStrip1";
//
// tsbtnDruckPaketNew
//
this.tsbtnDruckPaketNew.Image = global::OnDoc.Properties.Resources.add_32x32_32;
this.tsbtnDruckPaketNew.ImageTransparentColor = System.Drawing.Color.Magenta;
this.tsbtnDruckPaketNew.Name = "tsbtnDruckPaketNew";
this.tsbtnDruckPaketNew.Size = new System.Drawing.Size(123, 34);
this.tsbtnDruckPaketNew.Text = "Neues Druckpaket";
this.tsbtnDruckPaketNew.Click += new System.EventHandler(this.tsbtnDruckPaketNew_Click);
//
// tsbtnVersenden
//
this.tsbtnVersenden.Image = global::OnDoc.Properties.Resources.Letter_24x24_32;
this.tsbtnVersenden.ImageTransparentColor = System.Drawing.Color.Magenta;
this.tsbtnVersenden.Name = "tsbtnVersenden";
this.tsbtnVersenden.Size = new System.Drawing.Size(244, 34);
this.tsbtnVersenden.Text = "Dokumente an Versandstrasse übergeben";
//
// GrpPaketDetails
//
this.GrpPaketDetails.Controls.Add(this.button1);
this.GrpPaketDetails.Controls.Add(this.groupBox3);
this.GrpPaketDetails.Controls.Add(this.groupBox2);
this.GrpPaketDetails.Controls.Add(this.groupBox1);
this.GrpPaketDetails.Controls.Add(this.button1);
this.GrpPaketDetails.Location = new System.Drawing.Point(495, 39);
this.GrpPaketDetails.Name = "GrpPaketDetails";
this.GrpPaketDetails.Size = new System.Drawing.Size(437, 502);
@@ -153,13 +168,23 @@
this.GrpPaketDetails.TabStop = false;
this.GrpPaketDetails.Text = "Details zum Druckpaket";
//
// button1
//
this.button1.Location = new System.Drawing.Point(6, 454);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 3;
this.button1.Text = "Speichern";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// groupBox3
//
this.groupBox3.Controls.Add(this.label1);
this.groupBox3.Controls.Add(this.lbgasadresse);
this.groupBox3.Controls.Add(this.chkGAS);
this.groupBox3.Dock = System.Windows.Forms.DockStyle.Top;
this.groupBox3.Location = new System.Drawing.Point(3, 230);
this.groupBox3.Location = new System.Drawing.Point(3, 130);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(431, 192);
this.groupBox3.TabIndex = 2;
@@ -197,29 +222,11 @@
this.chkGAS.Text = "GAS-Rückantwort";
this.chkGAS.UseVisualStyleBackColor = true;
//
// groupBox2
//
this.groupBox2.Controls.Add(this.txtnachrichtankunde);
this.groupBox2.Dock = System.Windows.Forms.DockStyle.Top;
this.groupBox2.Location = new System.Drawing.Point(3, 130);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(431, 100);
this.groupBox2.TabIndex = 1;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "Nachricht an Kunde";
//
// txtnachrichtankunde
//
this.txtnachrichtankunde.Dock = System.Windows.Forms.DockStyle.Fill;
this.txtnachrichtankunde.Location = new System.Drawing.Point(3, 16);
this.txtnachrichtankunde.Multiline = true;
this.txtnachrichtankunde.Name = "txtnachrichtankunde";
this.txtnachrichtankunde.Size = new System.Drawing.Size(425, 81);
this.txtnachrichtankunde.TabIndex = 0;
//
// groupBox1
//
this.groupBox1.Controls.Add(this.radioButton2);
this.groupBox1.Controls.Add(this.rbversandoption3);
this.groupBox1.Controls.Add(this.radioButton1);
this.groupBox1.Controls.Add(this.rbversandoption2);
this.groupBox1.Controls.Add(this.rbversandoption1);
this.groupBox1.Dock = System.Windows.Forms.DockStyle.Top;
@@ -237,7 +244,6 @@
this.rbversandoption3.Name = "rbversandoption3";
this.rbversandoption3.Size = new System.Drawing.Size(207, 17);
this.rbversandoption3.TabIndex = 2;
this.rbversandoption3.TabStop = true;
this.rbversandoption3.Text = "Hauptadresse, Postversand erzwingen";
this.rbversandoption3.UseVisualStyleBackColor = true;
//
@@ -248,7 +254,6 @@
this.rbversandoption2.Name = "rbversandoption2";
this.rbversandoption2.Size = new System.Drawing.Size(197, 17);
this.rbversandoption2.TabIndex = 1;
this.rbversandoption2.TabStop = true;
this.rbversandoption2.Text = "Hauptadresse, E-Banking erzwingen";
this.rbversandoption2.UseVisualStyleBackColor = true;
//
@@ -259,36 +264,30 @@
this.rbversandoption1.Name = "rbversandoption1";
this.rbversandoption1.Size = new System.Drawing.Size(166, 17);
this.rbversandoption1.TabIndex = 0;
this.rbversandoption1.TabStop = true;
this.rbversandoption1.Text = "Hauptadresse und Versandart";
this.rbversandoption1.UseVisualStyleBackColor = true;
//
// button1
// radioButton1
//
this.button1.Location = new System.Drawing.Point(6, 454);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 3;
this.button1.Text = "Speichern";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
this.radioButton1.AutoSize = true;
this.radioButton1.Location = new System.Drawing.Point(332, 52);
this.radioButton1.Name = "radioButton1";
this.radioButton1.Size = new System.Drawing.Size(56, 17);
this.radioButton1.TabIndex = 3;
this.radioButton1.Text = "A-Post";
this.radioButton1.UseVisualStyleBackColor = true;
//
// tsbtnDruckPaketNew
// radioButton2
//
this.tsbtnDruckPaketNew.Image = global::OnDoc.Properties.Resources.add_32x32_32;
this.tsbtnDruckPaketNew.ImageTransparentColor = System.Drawing.Color.Magenta;
this.tsbtnDruckPaketNew.Name = "tsbtnDruckPaketNew";
this.tsbtnDruckPaketNew.Size = new System.Drawing.Size(123, 34);
this.tsbtnDruckPaketNew.Text = "Neues Druckpaket";
this.tsbtnDruckPaketNew.Click += new System.EventHandler(this.tsbtnDruckPaketNew_Click);
//
// tsbtnVersenden
//
this.tsbtnVersenden.Image = global::OnDoc.Properties.Resources.Letter_24x24_32;
this.tsbtnVersenden.ImageTransparentColor = System.Drawing.Color.Magenta;
this.tsbtnVersenden.Name = "tsbtnVersenden";
this.tsbtnVersenden.Size = new System.Drawing.Size(244, 34);
this.tsbtnVersenden.Text = "Dokumente an Versandstrasse übergeben";
this.radioButton2.AutoSize = true;
this.radioButton2.Checked = true;
this.radioButton2.Location = new System.Drawing.Point(332, 29);
this.radioButton2.Name = "radioButton2";
this.radioButton2.Size = new System.Drawing.Size(56, 17);
this.radioButton2.TabIndex = 4;
this.radioButton2.TabStop = true;
this.radioButton2.Text = "B-Post";
this.radioButton2.UseVisualStyleBackColor = true;
//
// Versandstrasse
//
@@ -311,8 +310,6 @@
this.GrpPaketDetails.ResumeLayout(false);
this.groupBox3.ResumeLayout(false);
this.groupBox3.PerformLayout();
this.groupBox2.ResumeLayout(false);
this.groupBox2.PerformLayout();
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.ResumeLayout(false);
@@ -325,7 +322,6 @@
private System.Windows.Forms.ToolStripButton tsbtnDruckPaketNew;
private System.Windows.Forms.ToolStripButton tsbtnVersenden;
private System.Windows.Forms.GroupBox GrpPaketDetails;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.RadioButton rbversandoption3;
private System.Windows.Forms.RadioButton rbversandoption2;
@@ -334,7 +330,8 @@
private System.Windows.Forms.Label label1;
private System.Windows.Forms.ListBox lbgasadresse;
private System.Windows.Forms.CheckBox chkGAS;
private System.Windows.Forms.TextBox txtnachrichtankunde;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.RadioButton radioButton2;
private System.Windows.Forms.RadioButton radioButton1;
}
}

View File

@@ -234,8 +234,7 @@ namespace OnDoc.Versandstrasse
default:
break;
}
txtnachrichtankunde.Text = "";
txtnachrichtankunde.Text=paket.Mitteilung.ToString();
if (paket.GAS.ToString() == "1"){
chkGAS.Checked= true;
lbgasadresse.SelectedIndex = Convert.ToInt32(paket.GASAdresse.ToString());
@@ -250,7 +249,7 @@ namespace OnDoc.Versandstrasse
if (rbversandoption1.Checked) { paket.Versandoption = "1"; }
if (rbversandoption2.Checked) { paket.Versandoption = "2"; }
if (rbversandoption3.Checked) { paket.Versandoption = "3"; }
paket.Mitteilung = txtnachrichtankunde.Text;
if (chkGAS.Checked) { paket.GAS = "1"; } else { paket.GAS = "0"; }
try { paket.GASAdresse = lbgasadresse.SelectedIndex.ToString(); } catch { paket.GASAdresse= "0"; }
paket.verified = true;

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -4,7 +4,7 @@
<name>DOCGEN</name>
</assembly>
<members>
<member name="M:DOCGEN.Klassen.SynFWord.DocToPDF(System.String)">
<member name="M:DOCGEN.Klassen.SyncFWord.DocToPDF(System.String)">
<summary>Word to PDF-Konverter</summary>
<remarks>Das sind die Remarks</remarks>
<param name="dokument">Base64-Dokument</param>

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.

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" DoublePass="true" ReportInfo.Created="09/23/2024 14:02:41" ReportInfo.Modified="09/23/2024 14:49:37" ReportInfo.CreatorVersion="2024.1.0.0">
<Dictionary>
<TableDataSource Name="Barcodes" ReferenceName="Data.Barcodes" DataType="System.Int32" Enabled="true">
<Column Name="barcode" DataType="System.String"/>
</TableDataSource>
</Dictionary>
<ReportPage Name="Page1" PaperWidth="210.0072" PaperHeight="297.0022" LeftMargin="0" TopMargin="4.826" RightMargin="0" BottomMargin="0" Columns.Count="3" Columns.Width="70.104" Columns.Positions="0,70.104,140.208" Watermark.Font="Arial, 60pt" Duplex="Simplex">
<DataBand Name="Data1" Width="264.99" Height="64.26" DataSource="Barcodes">
<BarcodeObject Name="Barcode1" Left="56.7" Top="9.45" Width="141.17" Height="28.35" AutoSize="false" Text="[Barcodes.barcode]" ShowText="false" AllowExpressions="true" Barcode="2/5 Interleaved"/>
<TextObject Name="Text1" Left="56.7" Top="37.8" Width="141.75" Height="18.9" Text="[Barcodes.barcode]" HorzAlign="Center" Font="Arial, 10pt"/>
</DataBand>
</ReportPage>
</Report>

Some files were not shown because too many files have changed in this diff Show More