update 20250727

This commit is contained in:
Stefan Hutter
2025-07-27 13:24:50 +02:00
parent cb8acfea57
commit 2237be483d
192 changed files with 23435 additions and 107 deletions

View File

@@ -76,6 +76,8 @@
</PropertyGroup>
<PropertyGroup />
<ItemGroup>
<Reference Include="Alternet.Common.v9, Version=9.5.0.0, Culture=neutral, PublicKeyToken=8032721e70924a63" />
<Reference Include="Alternet.Syntax.v9, Version=9.5.0.0, Culture=neutral, PublicKeyToken=8032721e70924a63, processorArchitecture=MSIL" />
<Reference Include="BarcodeLib, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\BarcodeLib\bin\Debug\BarcodeLib.dll</HintPath>
@@ -88,6 +90,9 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\ExcelNet\bin\Debug\ExcelNet.dll</HintPath>
</Reference>
<Reference Include="MiniHTMLTextBox">
<HintPath>..\..\..\_Demos\minihtmltextbox-master\MiniHTMLTextBox\bin\Debug\net40\MiniHTMLTextBox.dll</HintPath>
</Reference>
<Reference Include="OnDocOffice">
<HintPath>..\OnDocOffice\bin\Debug\OnDocOffice.dll</HintPath>
</Reference>
@@ -459,6 +464,12 @@
<Compile Include="Diverses\frmLogin.Designer.cs">
<DependentUpon>frmLogin.cs</DependentUpon>
</Compile>
<Compile Include="Diverses\frmMail.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Diverses\frmMail.Designer.cs">
<DependentUpon>frmMail.cs</DependentUpon>
</Compile>
<Compile Include="Diverses\InputDialog.cs">
<SubType>Form</SubType>
</Compile>
@@ -769,6 +780,9 @@
<EmbeddedResource Include="Diverses\frmLogin.resx">
<DependentUpon>frmLogin.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Diverses\frmMail.resx">
<DependentUpon>frmMail.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Diverses\InputDialog.resx">
<DependentUpon>InputDialog.cs</DependentUpon>
</EmbeddedResource>

View File

@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
<StartArguments>
</StartArguments>
<StartArguments>funktion=showdoc&amp;id=OFFEDK0082025002528113</StartArguments>
</PropertyGroup>
<PropertyGroup>
<PublishUrlHistory>publish\</PublishUrlHistory>

View File

@@ -64,7 +64,7 @@
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(135, 26);
this.label2.TabIndex = 2;
this.label2.Text = "17. Juli 2025";
this.label2.Text = "27. Juli 2025";
this.label2.Click += new System.EventHandler(this.label2_Click);
//
// SplashScreen

183
Client/Diverses/frmMail.Designer.cs generated Normal file
View File

@@ -0,0 +1,183 @@
namespace OnDoc.Diverses
{
partial class frmMail
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.txtbetreff = new System.Windows.Forms.TextBox();
this.cbboxEmpfaenger = new Syncfusion.WinForms.ListView.SfComboBox();
this.btncancel = new System.Windows.Forms.Button();
this.btnsend = new System.Windows.Forms.Button();
this.miniHTMLTextBox1 = new DG.MiniHTMLTextBox.MiniHTMLTextBox();
this.label4 = new System.Windows.Forms.Label();
this.txtemail = new System.Windows.Forms.TextBox();
((System.ComponentModel.ISupportInitialize)(this.cbboxEmpfaenger)).BeginInit();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(16, 33);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(58, 13);
this.label1.TabIndex = 0;
this.label1.Text = "Empfänger";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(16, 72);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(38, 13);
this.label2.TabIndex = 1;
this.label2.Text = "Betreff";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(16, 111);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(33, 13);
this.label3.TabIndex = 2;
this.label3.Text = "Inhalt";
//
// txtbetreff
//
this.txtbetreff.Location = new System.Drawing.Point(97, 72);
this.txtbetreff.Name = "txtbetreff";
this.txtbetreff.Size = new System.Drawing.Size(806, 20);
this.txtbetreff.TabIndex = 3;
//
// cbboxEmpfaenger
//
this.cbboxEmpfaenger.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
this.cbboxEmpfaenger.DropDownPosition = Syncfusion.WinForms.Core.Enums.PopupRelativeAlignment.Center;
this.cbboxEmpfaenger.Location = new System.Drawing.Point(97, 33);
this.cbboxEmpfaenger.Name = "cbboxEmpfaenger";
this.cbboxEmpfaenger.Size = new System.Drawing.Size(287, 19);
this.cbboxEmpfaenger.Style.DropDownStyle.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100)))));
this.cbboxEmpfaenger.Style.TokenStyle.CloseButtonBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.cbboxEmpfaenger.TabIndex = 12;
this.cbboxEmpfaenger.TabStop = false;
this.cbboxEmpfaenger.SelectedIndexChanged += new System.EventHandler(this.cbboxEmpfaenger_SelectedIndexChanged);
//
// btncancel
//
this.btncancel.Location = new System.Drawing.Point(12, 378);
this.btncancel.Name = "btncancel";
this.btncancel.Size = new System.Drawing.Size(171, 23);
this.btncancel.TabIndex = 21;
this.btncancel.Text = "Abbrechen";
this.btncancel.UseVisualStyleBackColor = true;
this.btncancel.Click += new System.EventHandler(this.btncancel_Click);
//
// btnsend
//
this.btnsend.Enabled = false;
this.btnsend.Location = new System.Drawing.Point(732, 378);
this.btnsend.Name = "btnsend";
this.btnsend.Size = new System.Drawing.Size(171, 23);
this.btnsend.TabIndex = 20;
this.btnsend.Text = "Senden";
this.btnsend.UseVisualStyleBackColor = true;
this.btnsend.Click += new System.EventHandler(this.btntoapproval_Click);
//
// miniHTMLTextBox1
//
this.miniHTMLTextBox1.IllegalPatterns = new string[] {
"<script.*?>",
"<\\w+\\s+.*?(j|java|vb|ecma)script:.*?>",
"<\\w+(\\s+|\\s+.*?\\s+)on\\w+\\s*=.+?>",
"</?input.*?>"};
this.miniHTMLTextBox1.Location = new System.Drawing.Point(97, 122);
this.miniHTMLTextBox1.Name = "miniHTMLTextBox1";
this.miniHTMLTextBox1.Padding = new System.Windows.Forms.Padding(1);
this.miniHTMLTextBox1.ShowToolbar = true;
this.miniHTMLTextBox1.Size = new System.Drawing.Size(806, 226);
this.miniHTMLTextBox1.TabIndex = 22;
this.miniHTMLTextBox1.Text = "miniHTMLTextBox1";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(407, 35);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(39, 13);
this.label4.TabIndex = 23;
this.label4.Text = "E-Mail:";
//
// txtemail
//
this.txtemail.Location = new System.Drawing.Point(452, 33);
this.txtemail.Name = "txtemail";
this.txtemail.Size = new System.Drawing.Size(451, 20);
this.txtemail.TabIndex = 24;
this.txtemail.Leave += new System.EventHandler(this.txtemail_Leave);
//
// frmMail
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(931, 416);
this.Controls.Add(this.txtemail);
this.Controls.Add(this.label4);
this.Controls.Add(this.miniHTMLTextBox1);
this.Controls.Add(this.btncancel);
this.Controls.Add(this.btnsend);
this.Controls.Add(this.cbboxEmpfaenger);
this.Controls.Add(this.txtbetreff);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Name = "frmMail";
this.Style.MdiChild.IconHorizontalAlignment = System.Windows.Forms.HorizontalAlignment.Center;
this.Style.MdiChild.IconVerticalAlignment = System.Windows.Forms.VisualStyles.VerticalAlignment.Center;
this.Text = "Mail-Versand";
this.Load += new System.EventHandler(this.frmMail_Load);
((System.ComponentModel.ISupportInitialize)(this.cbboxEmpfaenger)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox txtbetreff;
private Syncfusion.WinForms.ListView.SfComboBox cbboxEmpfaenger;
private System.Windows.Forms.Button btncancel;
private System.Windows.Forms.Button btnsend;
private DG.MiniHTMLTextBox.MiniHTMLTextBox miniHTMLTextBox1;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.TextBox txtemail;
}
}

174
Client/Diverses/frmMail.cs Normal file
View File

@@ -0,0 +1,174 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Security.RightsManagement;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Windows.Forms;
using Database;
using Microsoft.Office.Interop.Excel;
using Microsoft.Office.Interop.Word;
using Model;
using OnDoc.Klassen;
using OnDoc.UICintrols;
using Syncfusion.DocIO.DLS;
using Syncfusion.Windows.Forms;
using Syncfusion.Windows.Forms.Tools;
using Syncfusion.WinForms.Controls;
namespace OnDoc.Diverses
{
public partial class frmMail : SfForm
{
public string doclist { get; set; }
public frmMail()
{
InitializeComponent();
if (multipledocuments()) { this.txtbetreff.Text = "Link auf OnDoc-Dokumente"; } else { this.txtbetreff.Text = "Link auf OnDoc-Dokument"; }
}
public frmMail(string doclist)
{
InitializeComponent();
this.doclist=doclist;
if (multipledocuments()) { this.txtbetreff.Text = "Links auf OnDoc-Dokumente"; } else { this.txtbetreff.Text = "Link auf OnDoc-Dokument"; }
update_html();
}
private void frmMail_Load(object sender, EventArgs e)
{
DB db = new DB(AppParams.connectionstring);
db.clear_parameter();
db.Get_Tabledata("SP_Dokumentbearbeitung_Mitarbeiter", true, false);
cbboxEmpfaenger.DataSource = db.dsdaten.Tables[0];
cbboxEmpfaenger.DataSource = db.dsdaten.Tables[0];
cbboxEmpfaenger.DisplayMember = "name";
cbboxEmpfaenger.ValueMember = "mitarbeiternr";
db = null;
}
public void update_fields(string mailtext)
{
miniHTMLTextBox1.Text = mailtext;
miniHTMLTextBox1.ShowToolbar = false;
}
public void update_html()
{
DB db = new DB(AppParams.connectionstring);
db.Get_Tabledata("Select name,vorname,tgnummer, email from mitarbeiter where mitarbeiternr=" + AppParams.CurrentMitarbeiter.ToString(), false, true);
string absender = "";
try
{
absender = db.dsdaten.Tables[0].Rows[0]["Name"].ToString() + " " + db.dsdaten.Tables[0].Rows[0]["Vorname"].ToString() + ", " + db.dsdaten.Tables[0].Rows[0]["tgnummer"].ToString();
}
catch
{
absender = "";
}
string endabsatz = "<br><br>--------------------------------------------------------------------------<br>OnDoc / " + absender;
//endabsatz = "";
string empfaenger = "";
try
{
db.Get_Tabledata("Select vorname,email from mitarbeiter where mitarbeiternr=" + cbboxEmpfaenger.SelectedValue.ToString(), false, true);
empfaenger = db.dsdaten.Tables[0].Rows[0][0].ToString();
txtemail.Text = db.dsdaten.Tables[0].Rows[0][1].ToString();
if (!checkemail())
{
MessageBox.Show("E-Mail-Adresse ist ungültig!","E-Mail",MessageBoxButtons.OK,MessageBoxIcon.Error);
}
}
catch
{
empfaenger = "";
}
string text = "";
string starthtml = "<html>";
string endhtml = "</html>";
string startabsatz = "Guten Tag "+empfaenger+"<br>" + "<br>";
if (!multipledocuments()) { startabsatz = startabsatz + "<br>" + "Link zum Dokument:<br>"; } else { startabsatz = startabsatz + "<br>" + "Links zum Dokumenten:<br>"; }
text = text + starthtml;
text = text + startabsatz;
text = text + this.doclist;
text = text + endabsatz;
text = text + endhtml;
miniHTMLTextBox1.Text = text;
miniHTMLTextBox1.ShowToolbar = false;
db = null;
}
private bool checkemail()
{
if (Regex.IsMatch(txtemail.Text, @"^\d+$") == false && !txtemail.Text.ToUpper().Contains("@TKB.CH")) { this.btnsend.Enabled = false; return false; } else { this.btnsend.Enabled = true; return true; }
}
private bool multipledocuments()
{
if (doclist.Contains("ul"))
{
return true;
}
else
{ return false; }
}
private void cbboxEmpfaenger_SelectedIndexChanged(object sender, EventArgs e)
{
update_html();
}
private void btntoapproval_Click(object sender, EventArgs e)
{
Model.EMail email = new Model.EMail();
email.empfaenger = this.txtemail.Text;
email.betreff = txtbetreff.Text;
email.message = miniHTMLTextBox1.Text;
clsMailer mailer = new clsMailer();
if (mailer.SendHTMLMail(email))
{
this.Close();
}
else
{
MessageBox.Show("Mail konnte nicht versendet werden", "E-Mail", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
;
mailer = null;
email = null;
}
private void txtemail_TextChanged(object sender, EventArgs e)
{
}
private void txtemail_Leave(object sender, EventArgs e)
{
if (!checkemail())
{
MessageBox.Show("E-Mail-Adresse ist ungültig!", "E-Mail", MessageBoxButtons.OK, MessageBoxIcon.Error);
txtemail.Focus();
}
}
private void btncancel_Click(object sender, EventArgs e)
{
this.Close();
}
}
}

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>

View File

@@ -366,11 +366,19 @@ namespace OnDoc.DocMgmt
{
DocFunction = 2;
this.Close();
this.Close();
}
private void button3_Click(object sender, EventArgs e)
{
DB db = new DB(AppParams.connectionstring);
db.Exec_SQL("Update dokument set aktiv=0, mutiertam=getdate(), mutierer=" + AppParams.CurrentMitarbeiter.ToString() + " where dokumentid='" + dokumentid + "'");
db = null;
Logging.DocLog.Info("Dokument gelöscht", "Doklist.Dokument_loeschen", dokumentid, "", "Dokument gelöscht");
DocFunction = 3;
dokumentid = "";
PnlPreview.Visible = false;
}

View File

@@ -252,7 +252,7 @@ namespace OnDoc.Klassen
break;
case "funktion":
function = value;
if (value.ToLower() != "createdoc" && value.ToLower() != "createpac" && value.ToLower() != "ucheck" && value.ToLower() != "openclient" && value.ToLower()!="createsb")
if (value.ToLower() != "createdoc" && value.ToLower() != "createpac" && value.ToLower() != "ucheck" && value.ToLower() != "openclient" && value.ToLower()!="createsb" && value.ToLower() != "showdoc")
{
MessageBox.Show("Funktion ist ungültig: " + value, "Parameterfehler", MessageBoxButtons.OK, MessageBoxIcon.Error);
return false;

View File

@@ -42,5 +42,51 @@ namespace OnDoc.Klassen
return false;
}
}
public bool SendHTMLMail(Model.EMail mail)
{
string URL = AppParams.RESTURI + "API/SendHTMLMail";
Logging.Logging.Debug("Start Save Image", "OnDoc", "");
string response;
string jsonstring = Newtonsoft.Json.JsonConvert.SerializeObject(mail);
WebRequest request;
var data = Encoding.UTF8.GetBytes(jsonstring);
request = WebRequest.Create(URL);
request.ContentLength = data.Length;
request.ContentType = "application/json";
request.Method = "POST";
request.Headers["Authorization"] = "Bearer " + AppParams.apikey;
try
{
using (Stream requestStream = request.GetRequestStream())
{
requestStream.Write(data, 0, data.Length);
requestStream.Close();
using (Stream responseStream = request.GetResponse().GetResponseStream())
{
using (var reader = new StreamReader(responseStream))
{
response = reader.ReadToEnd();
}
}
}
return true;
}
catch (Exception ex)
{
Logging.Logging.Debug("HTML-Mailversand Fehler:" + ex.Message, "OnDoc", "");
return false;
}
}
}
}

View File

@@ -79,7 +79,7 @@ namespace OnDoc
else
{
if (args[0].ToString().ToUpper().IndexOf("PARTNERNR") > 0 || args[0].ToString().ToUpper().IndexOf("UCHECK") > 0 || args[0].ToString().ToUpper().IndexOf("OPENCLIENT") > 0 || args[0].ToString().ToUpper().IndexOf("CREATESB") > 0|| args[0].ToString().ToUpper().IndexOf("CREATEPAC") > 0 || args[0].ToString().ToUpper().IndexOf("CREATEDOC") > 0)
if (args[0].ToString().ToUpper().IndexOf("PARTNERNR") > 0 || args[0].ToString().ToUpper().IndexOf("UCHECK") > 0 || args[0].ToString().ToUpper().IndexOf("OPENCLIENT") > 0 || args[0].ToString().ToUpper().IndexOf("CREATESB") > 0|| args[0].ToString().ToUpper().IndexOf("CREATEPAC") > 0 || args[0].ToString().ToUpper().IndexOf("CREATEDOC") > 0 || args[0].ToString().ToUpper().IndexOf("SHOWDOC") > 0)
{
AppParams.init();
//MessageBox.Show(AppParams.tempdir);

View File

@@ -281,6 +281,10 @@ namespace OnDoc
dokList1.StartPruefung();
return;
}
if (ExternalCall.function.ToLower() == "showdoc")
{
dokList1.ShowDoc(ExternalCall.dokumentid);
}
if (ExternalCall.function.ToLower() == "createdoc")
{
@@ -398,6 +402,7 @@ namespace OnDoc
dokList1.upruefung();
}
}
}

View File

@@ -46,6 +46,7 @@ namespace OnDoc.UICintrols
this.dokumentFürPartnerErstellenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.dokumentKopierenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator();
this.dokumentLinkPerMailVersendenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.barcodeDemoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.vertragPDFDEMOToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.zellenwertInZwischenablageKopierenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@@ -212,6 +213,7 @@ namespace OnDoc.UICintrols
this.dokumentFürPartnerErstellenToolStripMenuItem,
this.dokumentKopierenToolStripMenuItem,
this.toolStripMenuItem1,
this.dokumentLinkPerMailVersendenToolStripMenuItem,
this.barcodeDemoToolStripMenuItem,
this.vertragPDFDEMOToolStripMenuItem,
this.zellenwertInZwischenablageKopierenToolStripMenuItem,
@@ -224,7 +226,7 @@ namespace OnDoc.UICintrols
this.gruppenSchliessenToolStripMenuItem,
this.zumVersandpaketHinzufügenToolStripMenuItem});
this.ctxMenuDokList.Name = "ctxMenuDokList";
this.ctxMenuDokList.Size = new System.Drawing.Size(284, 548);
this.ctxMenuDokList.Size = new System.Drawing.Size(284, 574);
this.ctxMenuDokList.Opening += new System.ComponentModel.CancelEventHandler(this.ctxMenuDokList_Opening);
//
// dokumentAnzeigenToolStripMenuItem
@@ -324,6 +326,13 @@ namespace OnDoc.UICintrols
this.toolStripMenuItem1.Name = "toolStripMenuItem1";
this.toolStripMenuItem1.Size = new System.Drawing.Size(280, 6);
//
// dokumentLinkPerMailVersendenToolStripMenuItem
//
this.dokumentLinkPerMailVersendenToolStripMenuItem.Name = "dokumentLinkPerMailVersendenToolStripMenuItem";
this.dokumentLinkPerMailVersendenToolStripMenuItem.Size = new System.Drawing.Size(283, 26);
this.dokumentLinkPerMailVersendenToolStripMenuItem.Text = "Dokument-Link per Mail versenden";
this.dokumentLinkPerMailVersendenToolStripMenuItem.Click += new System.EventHandler(this.dokumentLinkPerMailVersendenToolStripMenuItem_Click);
//
// barcodeDemoToolStripMenuItem
//
this.barcodeDemoToolStripMenuItem.Name = "barcodeDemoToolStripMenuItem";
@@ -1758,5 +1767,6 @@ namespace OnDoc.UICintrols
private System.Windows.Forms.ToolStripMenuItem zumVersandpaketHinzufügenToolStripMenuItem;
private System.Windows.Forms.RibbonPanel RibbonPrinter;
private System.Windows.Forms.RibbonButton ribbonbuttonPrinterSettings;
private System.Windows.Forms.ToolStripMenuItem dokumentLinkPerMailVersendenToolStripMenuItem;
}
}

View File

@@ -57,6 +57,7 @@ using System.Xml.Linq;
using Syncfusion.Windows.Forms.Chart;
using Syncfusion.Grouping;
using Syncfusion.Olap.MDXQueryParser;
using Windows.UI.Xaml.Input;
@@ -1033,6 +1034,16 @@ namespace OnDoc.UICintrols
ribbonButtonApproval_Click(null, null);
}
public void ShowDoc(string dokumentid)
{
Filter_Loeschen();
Search_Docid = dokumentid;
RibbonFilterLabel.Text = dokumentid;
RibbonFilterLabel.Visible = true;
RibbonFilterDelete.Visible = true;
refresh_dokumente();
}
public void createdocumentpaket(int partnernr, int dokumentpaketnr)
{
Dokumentpaket dp = new Dokumentpaket(dokumentpaketnr, partnernr, this.profilnr);
@@ -3192,6 +3203,42 @@ namespace OnDoc.UICintrols
{
Process.Start(Properties.Settings.Default.PrinterSettings);
}
private void dokumentLinkPerMailVersendenToolStripMenuItem_Click(object sender, EventArgs e)
{
string ul = "<ul>";
string endul = "</ul>";
string li = "<li>";
string endli = "</li>";
var records = sfDataGrid1.View.GetSelectedRecords();
if (records.Count < 1) { return; }
if (records.Count == 1)
{
ul = "";
endul = "";
li = "";
endli = "";
}
Cursor = Cursors.WaitCursor;
string doklist = "";
doklist = ul;
foreach (var record in records)
{
var datarow = record as DataRowView;
string documentid = datarow["dokumentid"].ToString();
string partnernr= datarow["Partner-Nr"].ToString();
string bezeichnung = datarow["DokBez"].ToString();
doklist = doklist + li + "<a href=ondoc::?funktion=showdoc&id=" + documentid + ">" + documentid + "</a> Partner:" + partnernr + " Dokument: " + bezeichnung + endli;
}
doklist = doklist + endul;
frmMail fmail = new frmMail(doklist);
fmail.ShowDialog();
Cursor = Cursors.Default;
}
}

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.

Binary file not shown.

Binary file not shown.

View File

@@ -1,5 +1,5 @@
delete EDKB02DMS.zip
"C:\Program Files\7-Zip\7z.exe" -pshu*tkb98125 a OnDocClient.zip OnDoc.exe OnDocOffice.dll Docgen.dll database.dll barcodelib.dll Helper.dll Logging.dll Model.dll OfficePrinter.dll VBFileManagement.dll vbbarcodes.dll WinSign.dll vboffice.dll versandstrasse.dll hyph_de_CH.dic
"C:\Program Files\7-Zip\7z.exe" -pshu*tkb98125 a OnDocClient.zip OnDoc.exe OnDocOffice.dll Docgen.dll database.dll barcodelib.dll Helper.dll Logging.dll Model.dll OfficePrinter.dll VBFileManagement.dll vbbarcodes.dll WinSign.dll vboffice.dll versandstrasse.dll hyph_de_CH.dic MiniHTMLTextBox.dll
copy OnDocClient.zip H:\NextCloud\ZZDownload
pause

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

@@ -1 +1 @@
5bdb5c25c09853ca6cfbd988d4db7b2a4c87987533acdf99613244a7267c3aab
4c586517a50a46a07c0703e6e2a0ba574ad3b69fd42363b416cfcdceca050f8b

View File

@@ -379,3 +379,16 @@ E:\Software-Projekte\OnDoc\OnDoc\Client\obj\Debug\OnDoc.pdb
E:\Software-Projekte\OnDoc\OnDoc\Client\obj\Debug\OnDoc.DocMgmt.FrmDokumentwerte.resources
E:\Software-Projekte\OnDoc\OnDoc\Client\obj\Debug\OnDoc.Diverses.FrmExternalDocEdit.resources
E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\Versandstrasse.dll
E:\Software-Projekte\OnDoc\OnDoc\Client\obj\Debug\OnDoc.Diverses.frmMail.resources
E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\Alternet.Common.v9.dll
E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\Alternet.Syntax.v9.dll
E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\Alternet.Common.v9.xml
E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\Alternet.Syntax.v9.xml
E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\de\Alternet.Common.v9.resources.dll
E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\en\Alternet.Common.v9.resources.dll
E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\es\Alternet.Common.v9.resources.dll
E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\fr\Alternet.Common.v9.resources.dll
E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\ru\Alternet.Common.v9.resources.dll
E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\uk\Alternet.Common.v9.resources.dll
E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\MiniHTMLTextBox.dll
E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\MiniHTMLTextBox.pdb

Binary file not shown.

Binary file not shown.

Binary file not shown.