update 20240927

master
Stefan Hutter 1 year ago
parent 9fcecb2c35
commit bbace0411f

@ -175,6 +175,7 @@
<Compile Include="Controllers\DocumentController.cs" />
<Compile Include="Controllers\HomeController.cs" />
<Compile Include="Controllers\OnBaseController.cs" />
<Compile Include="Controllers\UnterschriftController.cs" />
<Compile Include="Controllers\ValuesController.cs" />
<Compile Include="Controllers\AntwortAdressController.cs" />
<Compile Include="Global.asax.cs">
@ -251,6 +252,7 @@
<ItemGroup>
<Folder Include="App_Data\" />
<Folder Include="Models\" />
<Folder Include="Views\Unterschrift\" />
</ItemGroup>
<ItemGroup>
<Content Include="Content\bootstrap.rtl.min.css.map" />

@ -0,0 +1,30 @@
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using DOCGEN;
using Model;
using Database;
using Newtonsoft.Json;
namespace API_NetFramework.Controllers
{
public class UnterschriftController : ApiController
{
string connectionstring = ConfigurationManager.ConnectionStrings["EDOKAConnectionstring"].ConnectionString;
[HttpGet]
[Route("API/GetUnterschriftAsBase64")]
public IHttpActionResult GetUnterschriftAsBase64(string TGNummer)
{
return Ok();
}
}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -1 +1 @@
853cf8e909e75c5168a9275641c3a4e2804e2954a305e6bc5ee3b6c2ce5f0700
ffc2e7a5302e859b56ea5b0fe0020c980612614ece61944eda615fd87be24da8

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -28,43 +28,45 @@
/// </summary>
private void InitializeComponent()
{
this.GridDokumenttyp = new Syncfusion.WinForms.DataGrid.SfDataGrid();
((System.ComponentModel.ISupportInitialize)(this.GridDokumenttyp)).BeginInit();
this.GridData = new Syncfusion.WinForms.DataGrid.SfDataGrid();
((System.ComponentModel.ISupportInitialize)(this.GridData)).BeginInit();
this.SuspendLayout();
//
// GridDokumenttyp
// GridData
//
this.GridDokumenttyp.AccessibleName = "Table";
this.GridDokumenttyp.AllowEditing = false;
this.GridDokumenttyp.AllowFiltering = true;
this.GridDokumenttyp.AllowResizingColumns = true;
this.GridDokumenttyp.AllowSelectionOnMouseDown = true;
this.GridDokumenttyp.Dock = System.Windows.Forms.DockStyle.Fill;
this.GridDokumenttyp.Location = new System.Drawing.Point(2, 2);
this.GridDokumenttyp.Name = "GridDokumenttyp";
this.GridDokumenttyp.Size = new System.Drawing.Size(796, 446);
this.GridDokumenttyp.Style.HeaderStyle.FilterIconColor = System.Drawing.Color.FromArgb(((int)(((byte)(29)))), ((int)(((byte)(29)))), ((int)(((byte)(29)))));
this.GridDokumenttyp.TabIndex = 1;
this.GridDokumenttyp.Text = "sfDataGrid1";
this.GridData.AccessibleName = "Table";
this.GridData.AllowEditing = false;
this.GridData.AllowFiltering = true;
this.GridData.AllowResizingColumns = true;
this.GridData.AllowSelectionOnMouseDown = true;
this.GridData.Dock = System.Windows.Forms.DockStyle.Fill;
this.GridData.Location = new System.Drawing.Point(2, 2);
this.GridData.Name = "GridData";
this.GridData.Size = new System.Drawing.Size(369, 446);
this.GridData.Style.HeaderStyle.FilterIconColor = System.Drawing.Color.FromArgb(((int)(((byte)(29)))), ((int)(((byte)(29)))), ((int)(((byte)(29)))));
this.GridData.TabIndex = 1;
this.GridData.Text = "sfDataGrid1";
this.GridData.CellClick += new Syncfusion.WinForms.DataGrid.Events.CellClickEventHandler(this.GridData_CellClick);
this.GridData.CellDoubleClick += new Syncfusion.WinForms.DataGrid.Events.CellClickEventHandler(this.GridData_CellDoubleClick);
//
// valueselector
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450);
this.Controls.Add(this.GridDokumenttyp);
this.ClientSize = new System.Drawing.Size(373, 450);
this.Controls.Add(this.GridData);
this.Name = "valueselector";
this.Style.MdiChild.IconHorizontalAlignment = System.Windows.Forms.HorizontalAlignment.Center;
this.Style.MdiChild.IconVerticalAlignment = System.Windows.Forms.VisualStyles.VerticalAlignment.Center;
this.Text = "Werte-Auwahl";
this.Load += new System.EventHandler(this.valueselector_Load);
((System.ComponentModel.ISupportInitialize)(this.GridDokumenttyp)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.GridData)).EndInit();
this.ResumeLayout(false);
}
#endregion
private Syncfusion.WinForms.DataGrid.SfDataGrid GridDokumenttyp;
private Syncfusion.WinForms.DataGrid.SfDataGrid GridData;
}
}

@ -7,7 +7,9 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using OnDoc.Klassen;
using Syncfusion.WinForms.Controls;
using Windows.UI.Xaml.Controls;
namespace OnDoc.Diverses
{
@ -15,6 +17,8 @@ namespace OnDoc.Diverses
{
public string partnernr { get; set; } = "";
public string datenherkunft { get; set; } = "";
public string selected_value { get; set; }
public valueselector()
{
InitializeComponent();
@ -22,11 +26,46 @@ namespace OnDoc.Diverses
private void valueselector_Load(object sender, EventArgs e)
{
this.SetDesktopLocation(Cursor.Position.X, Cursor.Position.Y);
}
public void load_data() {
public void load_data()
{
Database.DB dB = new Database.DB(AppParams.connectionstring);
dB.clear_parameter();
dB.add_parameter("@nrpar00",partnernr);
dB.add_parameter("@regel", datenherkunft);
dB.Get_Tabledata("dbo.SP_Dokumentbearbeitung_DokWertList", true, false);
this.GridData.DataSource = dB.dsdaten.Tables[0];
GridData.AutoSizeColumnsMode = Syncfusion.WinForms.DataGrid.Enums.AutoSizeColumnsMode.AllCells;
}
private void GridData_CellClick(object sender, Syncfusion.WinForms.DataGrid.Events.CellClickEventArgs e)
{
string value = "";
try
{
var selectedItem = e.DataRow;
var dataRow = (e.DataRow.RowData as DataRowView).Row;
value = dataRow[0].ToString();
selected_value = value;
}
catch { selected_value = ""; }
}
private void GridData_CellDoubleClick(object sender, Syncfusion.WinForms.DataGrid.Events.CellClickEventArgs e)
{
string value = "";
try
{
var selectedItem = e.DataRow;
var dataRow = (e.DataRow.RowData as DataRowView).Row;
value = dataRow[0].ToString();
selected_value = value;
}
catch { selected_value = ""; }
DialogResult = DialogResult.OK;
this.Close();
}
}
}

@ -27,6 +27,8 @@ namespace OnDoc.DocMgmt
public string showdoc { get; set; } = "";
public int DocFunction = 0;
public bool interop { get; set; } = false;
public bool runmacros { get; set; } = false;
public string dokumentid = "";
public Dokumenterstellung()
@ -68,7 +70,10 @@ namespace OnDoc.DocMgmt
Dokument_Erstellen();
}
public void Dokument_Erstellen()
{
{
if (ucAllgemeineDokumentParam1.check_fields()==false) {
MessageBox.Show(ucAllgemeineDokumentParam1.check_error);
return; };
ucAllgemeineDokumentParam1.Update_DocGenData();
clsDocData dokdata = new clsDocData();
ucAllgemeineDokumentParam1.update_dokdata(ref dokdata);
@ -83,6 +88,8 @@ namespace OnDoc.DocMgmt
clsdok dok = new clsdok("", "", "");
dok = Generator.Generate_Doc_EDOKA(dokumentid, ref dokdata);
interop = ucAllgemeineDokumentParam1.interop;
if (ucAllgemeineDokumentParam1.docgendata.erstellungsart == Erstellungsart.DokumentBearbeiten)
{
string filename = AppParams.tempdir + dokumentid + "." + dok.extension;
@ -90,10 +97,21 @@ namespace OnDoc.DocMgmt
DB db = new DB(AppParams.connectionstring);
db.Save_To_DB(dokdata.Dokumentid, filename);
db = null;
DocFunction = 1;
System.Diagnostics.Process.Start("winword.exe", filename);
clsProcessWatch.AddToList(dokdata.Dokumentid, filename, "Word");
//if (dok.extension.Substring(0,1).ToUpper() == "D") { System.Diagnostics.Process.Start("winword.exe", filename); }
//if (dok.extension.Substring(0, 1).ToUpper() == "X") { System.Diagnostics.Process.Start("excel.exe", filename); }
//clsProcessWatch.AddToList(dokdata.Dokumentid, filename, "Word");
this.Close();
return;
}
if (ucAllgemeineDokumentParam1.docgendata.erstellungsart == Erstellungsart.DokumentPreview)
{
string filename = AppParams.tempdir + dokumentid + "." + dok.extension;
System.IO.File.WriteAllBytes(filename, Convert.FromBase64String(dok.dokument));
DB db = new DB(AppParams.connectionstring);
db.Save_To_DB(dokdata.Dokumentid, filename);
db = null;
}
if (ucAllgemeineDokumentParam1.docgendata.erstellungsart == Erstellungsart.DokumentAlsPDF)
{
@ -135,7 +153,7 @@ namespace OnDoc.DocMgmt
button5.Enabled = true;
}
if (ucAllgemeineDokumentParam1.docgendata.versandstrasse_moeglich == false) { button5.Enabled = false; }
docPreview1.Show_Doc(dokumentid);
docPreview1.Show_Doc(dokumentid);
docPreview1.Hide_Editbuttons();
}
}

@ -19,6 +19,7 @@ using System.Threading.Tasks;
using System.Web.UI.WebControls;
using System.Windows.Forms;
using Database;
using OnDoc.UIControls;
namespace OnDoc.DocMgmt
{

@ -46,7 +46,7 @@ namespace OnDoc.UICintrols
where = "and bezeichnung like '%" + filter.Replace(" ", "%") + "%'";
}
DB db = new DB(AppParams.connectionstring);
db.Get_Tabledata("Select dokumenttypnr as id, bezeichnung from dokumenttyp where aktiv=1 "+where+" order by bezeichnung",false,true);
db.Get_Tabledata("Select distinct dokumenttypnr as id, bezeichnung from dokumenttyp where aktiv=1 "+where+" order by bezeichnung",false,true);
sfListView1.DataSource = db.dsdaten.Tables[0];
sfListView1.DisplayMember = "bezeichnung";
sfListView1.ValueMember = "id";

@ -58,6 +58,7 @@
this.GrpBewilligung = new System.Windows.Forms.GroupBox();
this.chkBewilliigungZwingend = new System.Windows.Forms.CheckBox();
this.groupBox4 = new System.Windows.Forms.GroupBox();
this.chkbearbeitungdirekt = new System.Windows.Forms.CheckBox();
this.cbbearbeitungzwingend = new System.Windows.Forms.CheckBox();
this.cbPDFDirekteArchivierung = new System.Windows.Forms.CheckBox();
this.cbPDFDokument = new System.Windows.Forms.CheckBox();
@ -129,13 +130,14 @@
this.lblID = new System.Windows.Forms.Label();
this.lbliddesc = new System.Windows.Forms.Label();
this.groupBox7 = new System.Windows.Forms.GroupBox();
this.TreeDokumenttyp = new Syncfusion.Windows.Forms.Tools.TreeViewAdv();
this.panel1 = new System.Windows.Forms.Panel();
this.txtFilter = new System.Windows.Forms.TextBox();
this.rbBezeichnung = new System.Windows.Forms.RadioButton();
this.label16 = new System.Windows.Forms.Label();
this.rbNr = new System.Windows.Forms.RadioButton();
this.label15 = new System.Windows.Forms.Label();
this.TreeDokumenttyp = new Syncfusion.Windows.Forms.Tools.TreeViewAdv();
this.chkinterop = new System.Windows.Forms.CheckBox();
((System.ComponentModel.ISupportInitialize)(this.tabControlAdv1)).BeginInit();
this.tabControlAdv1.SuspendLayout();
this.tabPageAdv1.SuspendLayout();
@ -162,8 +164,8 @@
this.toolStrip1.SuspendLayout();
this.grpVorlagenfeld.SuspendLayout();
this.groupBox7.SuspendLayout();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.TreeDokumenttyp)).BeginInit();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// tabControlAdv1
@ -351,6 +353,8 @@
//
// groupBox4
//
this.groupBox4.Controls.Add(this.chkinterop);
this.groupBox4.Controls.Add(this.chkbearbeitungdirekt);
this.groupBox4.Controls.Add(this.cbbearbeitungzwingend);
this.groupBox4.Controls.Add(this.cbPDFDirekteArchivierung);
this.groupBox4.Controls.Add(this.cbPDFDokument);
@ -362,6 +366,14 @@
this.groupBox4.TabStop = false;
this.groupBox4.Text = "Dokument-Produktion";
//
// chkbearbeitungdirekt
//
this.chkbearbeitungdirekt.Location = new System.Drawing.Point(259, 40);
this.chkbearbeitungdirekt.Name = "chkbearbeitungdirekt";
this.chkbearbeitungdirekt.Size = new System.Drawing.Size(127, 24);
this.chkbearbeitungdirekt.TabIndex = 10;
this.chkbearbeitungdirekt.Text = "Direkt bearbeiten";
//
// cbbearbeitungzwingend
//
this.cbbearbeitungzwingend.Location = new System.Drawing.Point(259, 19);
@ -1229,6 +1241,52 @@
this.groupBox7.TabStop = false;
this.groupBox7.Text = "sflk";
//
// TreeDokumenttyp
//
treeNodeAdvStyleInfo2.CheckBoxTickThickness = 1;
treeNodeAdvStyleInfo2.CheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
treeNodeAdvStyleInfo2.EnsureDefaultOptionedChild = true;
treeNodeAdvStyleInfo2.IntermediateCheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
treeNodeAdvStyleInfo2.OptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
treeNodeAdvStyleInfo2.SelectedOptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(210)))), ((int)(((byte)(210)))), ((int)(((byte)(210)))));
treeNodeAdvStyleInfo2.ShowCheckBox = false;
treeNodeAdvStyleInfo2.TextColor = System.Drawing.Color.Black;
this.TreeDokumenttyp.BaseStylePairs.AddRange(new Syncfusion.Windows.Forms.Tools.StyleNamePair[] {
new Syncfusion.Windows.Forms.Tools.StyleNamePair("Standard", treeNodeAdvStyleInfo2)});
this.TreeDokumenttyp.BeforeTouchSize = new System.Drawing.Size(303, 670);
this.TreeDokumenttyp.Dock = System.Windows.Forms.DockStyle.Left;
//
//
//
this.TreeDokumenttyp.HelpTextControl.BaseThemeName = null;
this.TreeDokumenttyp.HelpTextControl.Location = new System.Drawing.Point(0, 0);
this.TreeDokumenttyp.HelpTextControl.Name = "";
this.TreeDokumenttyp.HelpTextControl.Size = new System.Drawing.Size(392, 112);
this.TreeDokumenttyp.HelpTextControl.TabIndex = 0;
this.TreeDokumenttyp.HelpTextControl.Visible = true;
this.TreeDokumenttyp.InactiveSelectedNodeForeColor = System.Drawing.SystemColors.ControlText;
this.TreeDokumenttyp.Location = new System.Drawing.Point(3, 87);
this.TreeDokumenttyp.MetroColor = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(165)))), ((int)(((byte)(220)))));
this.TreeDokumenttyp.Name = "TreeDokumenttyp";
this.TreeDokumenttyp.SelectedNodeForeColor = System.Drawing.SystemColors.HighlightText;
this.TreeDokumenttyp.Size = new System.Drawing.Size(303, 670);
this.TreeDokumenttyp.SortWithChildNodes = true;
this.TreeDokumenttyp.TabIndex = 11;
this.TreeDokumenttyp.Text = "treeViewAdv1";
this.TreeDokumenttyp.ThemeStyle.TreeNodeAdvStyle.CheckBoxTickThickness = 0;
this.TreeDokumenttyp.ThemeStyle.TreeNodeAdvStyle.EnsureDefaultOptionedChild = true;
//
//
//
this.TreeDokumenttyp.ToolTipControl.BaseThemeName = null;
this.TreeDokumenttyp.ToolTipControl.Location = new System.Drawing.Point(0, 0);
this.TreeDokumenttyp.ToolTipControl.Name = "";
this.TreeDokumenttyp.ToolTipControl.Size = new System.Drawing.Size(392, 112);
this.TreeDokumenttyp.ToolTipControl.TabIndex = 0;
this.TreeDokumenttyp.ToolTipControl.Visible = true;
this.TreeDokumenttyp.AfterSelect += new System.EventHandler(this.TreeDokumenttyp_AfterSelect);
this.TreeDokumenttyp.Click += new System.EventHandler(this.TreeDokumenttyp_Click);
//
// panel1
//
this.panel1.Controls.Add(this.txtFilter);
@ -1292,51 +1350,13 @@
this.label15.TabIndex = 7;
this.label15.Text = "Sort";
//
// TreeDokumenttyp
// chkinterop
//
treeNodeAdvStyleInfo2.CheckBoxTickThickness = 1;
treeNodeAdvStyleInfo2.CheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
treeNodeAdvStyleInfo2.EnsureDefaultOptionedChild = true;
treeNodeAdvStyleInfo2.IntermediateCheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
treeNodeAdvStyleInfo2.OptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
treeNodeAdvStyleInfo2.SelectedOptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(210)))), ((int)(((byte)(210)))), ((int)(((byte)(210)))));
treeNodeAdvStyleInfo2.ShowCheckBox = false;
treeNodeAdvStyleInfo2.TextColor = System.Drawing.Color.Black;
this.TreeDokumenttyp.BaseStylePairs.AddRange(new Syncfusion.Windows.Forms.Tools.StyleNamePair[] {
new Syncfusion.Windows.Forms.Tools.StyleNamePair("Standard", treeNodeAdvStyleInfo2)});
this.TreeDokumenttyp.BeforeTouchSize = new System.Drawing.Size(303, 670);
this.TreeDokumenttyp.Dock = System.Windows.Forms.DockStyle.Left;
//
//
//
this.TreeDokumenttyp.HelpTextControl.BaseThemeName = null;
this.TreeDokumenttyp.HelpTextControl.Location = new System.Drawing.Point(0, 0);
this.TreeDokumenttyp.HelpTextControl.Name = "";
this.TreeDokumenttyp.HelpTextControl.Size = new System.Drawing.Size(392, 112);
this.TreeDokumenttyp.HelpTextControl.TabIndex = 0;
this.TreeDokumenttyp.HelpTextControl.Visible = true;
this.TreeDokumenttyp.InactiveSelectedNodeForeColor = System.Drawing.SystemColors.ControlText;
this.TreeDokumenttyp.Location = new System.Drawing.Point(3, 87);
this.TreeDokumenttyp.MetroColor = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(165)))), ((int)(((byte)(220)))));
this.TreeDokumenttyp.Name = "TreeDokumenttyp";
this.TreeDokumenttyp.SelectedNodeForeColor = System.Drawing.SystemColors.HighlightText;
this.TreeDokumenttyp.Size = new System.Drawing.Size(303, 670);
this.TreeDokumenttyp.SortWithChildNodes = true;
this.TreeDokumenttyp.TabIndex = 11;
this.TreeDokumenttyp.Text = "treeViewAdv1";
this.TreeDokumenttyp.ThemeStyle.TreeNodeAdvStyle.CheckBoxTickThickness = 0;
this.TreeDokumenttyp.ThemeStyle.TreeNodeAdvStyle.EnsureDefaultOptionedChild = true;
//
//
//
this.TreeDokumenttyp.ToolTipControl.BaseThemeName = null;
this.TreeDokumenttyp.ToolTipControl.Location = new System.Drawing.Point(0, 0);
this.TreeDokumenttyp.ToolTipControl.Name = "";
this.TreeDokumenttyp.ToolTipControl.Size = new System.Drawing.Size(392, 112);
this.TreeDokumenttyp.ToolTipControl.TabIndex = 0;
this.TreeDokumenttyp.ToolTipControl.Visible = true;
this.TreeDokumenttyp.AfterSelect += new System.EventHandler(this.TreeDokumenttyp_AfterSelect);
this.TreeDokumenttyp.Click += new System.EventHandler(this.TreeDokumenttyp_Click);
this.chkinterop.Location = new System.Drawing.Point(259, 59);
this.chkinterop.Name = "chkinterop";
this.chkinterop.Size = new System.Drawing.Size(127, 24);
this.chkinterop.TabIndex = 11;
this.chkinterop.Text = "Bearbeitung InterOP";
//
// Dokumenttyp
//
@ -1385,9 +1405,9 @@
this.grpVorlagenfeld.ResumeLayout(false);
this.grpVorlagenfeld.PerformLayout();
this.groupBox7.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.TreeDokumenttyp)).EndInit();
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.TreeDokumenttyp)).EndInit();
this.ResumeLayout(false);
}
@ -1490,5 +1510,7 @@
private System.Windows.Forms.RadioButton rbNr;
private System.Windows.Forms.Label label15;
private Syncfusion.Windows.Forms.Tools.TreeViewAdv TreeDokumenttyp;
internal System.Windows.Forms.CheckBox chkbearbeitungdirekt;
internal System.Windows.Forms.CheckBox chkinterop;
}
}

@ -42,6 +42,7 @@ namespace OnDoc.UIControls.Administrator
System.Data.DataTable treedata = new System.Data.DataTable();
private void update_tree()
{
TreeDokumenttyp.Nodes.Clear();
db.Get_Tabledata("Select dokumenttypnr as ID, Bezeichnung, Aktiv from dokumenttyp", false, true);
treedata = db.dsdaten.Tables[0].Copy();
string _sqlWhere = " Bezeichnung like '%" + txtFilter.Text + "%'";
@ -145,6 +146,17 @@ namespace OnDoc.UIControls.Administrator
this.listBox1.DataSource = db.dsdaten.Tables[0];
this.listBox1.DisplayMember = "Bezeichnung";
this.listBox1.ValueMember = "vorlagenfeldregelnr";
try
{
chkbearbeitungdirekt.Checked = Convert.ToBoolean(r["BearbeitungDirket"]) == true;
}
catch { chkbearbeitungdirekt.Checked = false; }
try
{
chkinterop.Checked = Convert.ToBoolean(r["interop"]) == true;
}
catch { chkinterop.Checked = false; }
Update_Vorlagenfelder();
@ -285,7 +297,8 @@ namespace OnDoc.UIControls.Administrator
r["mutiert_am"]=DateTime.Now;
r["versandstrasse_moeglich"] = cbversandstrasse_moeglich.Checked == true;
r["ebanking_moeglich"] = cbebanking_moeglich.Checked == true;
r["BearbeitungDirket"] = chkbearbeitungdirekt.Checked==true;
r["interop"] = chkinterop.Checked == true;
if (cbOfficeDokument.Checked) { r["genresultat_type"] = 1; }
if (cbPDFDokument.Checked) { r["genresultat_type"] = 2; }

@ -1,6 +1,5 @@
using OnDoc.Helper;
using OnDoc.Klassen;
using Syncfusion.Windows.Forms.Tools;
using System;
using System.Collections.Generic;
@ -61,6 +60,9 @@ namespace OnDoc.UICintrols
private bool Separate_Vorschau_offen = false;
public string datafilter { get; set; } = "";
public bool interop { get; set; } = false;
public bool runmacros { get; set; } = false;
public DokList()
{
System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("de-DE");
@ -230,7 +232,7 @@ namespace OnDoc.UICintrols
clsdok dok = GetDoc(false);
if (dok.dokument == "") return;
OpenDoc(dok, true);
OpenDoc(dok, true,interop, runmacros);
}
private clsdok GetDoc(bool AsPDF)
@ -288,7 +290,7 @@ namespace OnDoc.UICintrols
return dok;
}
private void OpenDoc(clsdok dok, bool editdoc, bool interop = false)
private void OpenDoc(clsdok dok, bool editdoc, bool interop = false, bool runmacros = false)
{
switch (dok.extension.ToUpper().Substring(0, 1))
@ -301,7 +303,7 @@ namespace OnDoc.UICintrols
if (interop == true)
{
OnDocOffice.clsWordEdit WordInterOP = new OnDocOffice.clsWordEdit(AppParams.connectionstring, tempfilename, selected_dokumentid);
WordInterOP.Edit_Document();
WordInterOP.Edit_Document(runmacros);
WordInterOP = null;
}
else
@ -489,6 +491,9 @@ namespace OnDoc.UICintrols
if (frmnewdok.dokumentid != "")
{
selected_dokumentid = frmnewdok.dokumentid;
interop = frmnewdok.interop;
runmacros = frmnewdok.runmacros;
dokument_bearbeiten();
}
break;

@ -25,6 +25,11 @@ namespace OnDoc.UIControls
public int profilnr { get; set; }
public int partnernr { get; set; }
public bool checkpartner { get; set; } = true;
public bool interop { get; set; } = false;
public bool runmacros { get; set; } = false;
public string check_error { get; set; } = "";
public clsdocgendata docgendata { get; set; }
@ -94,7 +99,15 @@ namespace OnDoc.UIControls
}
if (Convert.ToInt32(dr["Unterschrift_Standard"].ToString()) == 1) { cbfaksimile.Checked = true; }
if (Convert.ToInt32(dr["Unterschrift_Standard"].ToString()) == 2) { cbformularohneunterschrfit.Checked = true; }
try
{
this.rbDokumentbearbeiten.Checked = Convert.ToBoolean(dr["BearbeitungDirket"]) == true;
} catch { this.rbDokumentbearbeiten.Checked = false; }
try
{
interop = Convert.ToBoolean(dr["interop"]) == true;
}
catch { interop = false; }
}
else
{
@ -227,6 +240,25 @@ namespace OnDoc.UIControls
{
this.rbEditlater.Checked = true;
}
public Boolean check_fields()
{
check_error = "";
var records = gridDokwertlist.View.Records;
foreach (var record in records)
{
var dataRowView = record.Data as DataRowView;
if (dataRowView != null)
{
bool zwingend = Convert.ToBoolean(dataRowView.Row["zwingend"]);
var feldwert = dataRowView.Row["feldwert"].ToString().Trim();
var bezeichnung = dataRowView.Row["bezeichnung"];
if (zwingend==true && feldwert=="")
{ check_error = check_error + "- " + bezeichnung + " Feldwert ist zwingend" + "//"; }
}
}
if (check_error == "") { return true; } else { return false; }
return true;
}
public void Update_DocGenData()
{
docgendata.partnernr = this.partnernr.ToString();
@ -252,12 +284,13 @@ namespace OnDoc.UIControls
docgendata.ersteller = AppParams.CurrentMitarbieter.ToString();
docgendata.dokumentdatum = DateDokumentDatum.DateTimeText.ToString();
docgendata.bezeichnung = txtbezeichnung.Text;
docgendata.erstellungsart = Erstellungsart.DokumentPreview;
if (rbDokumentbearbeiten.Checked) { docgendata.erstellungsart = Erstellungsart.DokumentBearbeiten; }
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;
docgendata.dokumentwerte = gridDokwertlist.DataSource as DataTable;
}
public void update_dokdata(ref clsDocData dokdata)
@ -277,7 +310,8 @@ namespace OnDoc.UIControls
dokdata.Bezeichnung = docgendata.bezeichnung;
if (docgendata.erstellungsart == Erstellungsart.DokumentAlsPDF) { dokdata.Result_as_PDF = "True"; } else { dokdata.Result_as_PDF = "False"; }
if (docgendata.digitaleunterschrift == true) { dokdata.As_Faksimile = "True"; } else { dokdata.As_Faksimile = "False"; }
dokdata.dokumentwerte = docgendata.dokumentwerte;
}
private void sfButton1_Click(object sender, EventArgs e)
{
@ -396,8 +430,16 @@ namespace OnDoc.UIControls
}
}
vs.partnernr = s.Substring(0, s.IndexOf("-") - 1);
vs.load_data();
vs.ShowDialog();
}
vs.datenherkunft = datenherkunft;
vs.partnernr = this.partnernr.ToString();
vs.load_data();
vs.ShowDialog();
if (vs.DialogResult == DialogResult.OK) {
return vs.selected_value;
}
break;
default:

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.

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.

@ -430,7 +430,36 @@ namespace Database
edoka_conn.OpenConnection();
dok.Update();
edoka_conn.CloseConnection(true);
//DokumentInfoWert
foreach (DataRow dr in DocData.dokumentwerte.Rows)
{
if (dr["cold_indexfeld"].ToString()=="") { dr["cold_indexfeld"] = 0; }
if (dr["cold_indexfeld"].ToString() == "0")
{
db.clear_parameter();
db.add_parameter("@dokumentid", dokumentid);
db.add_parameter("@vorlagenfeldnr", dr["vorlagenfeldnr"].ToString());
db.add_parameter("@value", dr["feldwert"].ToString());
db.Get_Tabledata("dbo.SP_Dokument_Information_Wert", true, false);
}
else
{
db.Get_Tabledata("Select count(*) from dokumentcoldindexwert where dokumentid='" + dokumentid + "'", false, true);
if (Convert.ToInt32(db.dsdaten.Tables[0].Rows[0][0]) == 0)
{
db.clear_parameter();
db.add_parameter("@dokumentid", dokumentid);
db.add_parameter("@indextyp", "1");
db.Get_Tabledata("SP_Dokument_Cold_Index",true, false);
}
db.clear_parameter();
db.add_parameter("@dokumentid", dokumentid);
db.add_parameter("@coldfeldnr", dr["cold_indexfeld"].ToString());
db.add_parameter("@value", dr["feldwert"].ToString());
db.Get_Tabledata("SP_Dokument_Cold_Index_Update", true, false);
}
}
return dokumentid;
}

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.

@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Security.Permissions;
using System.Text;
@ -40,6 +41,8 @@ namespace Model
public List<clsDocValue> DocValues {get;set;}
public List<clsDocMacro> DocMacros { get; set; }
public DataTable dokumentwerte { get; set; }
}
public class clsDocValue

@ -12,7 +12,9 @@ namespace Model
DokumentBearbeiten,
DokumentSpäterBearbeiten,
DokumentAlsPDF,
DokumentAlsPDFArchivieren
DokumentAlsPDFArchivieren,
DokumentPreview
}
public class clsdocgendata
{

Binary file not shown.

Binary file not shown.

@ -1,35 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Syncfusion.DocIO.Base" publicKeyToken="3d67ed1f87d44c89" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-25.2462.6.0" newVersion="25.2462.6.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Syncfusion.Compression.Base" publicKeyToken="3d67ed1f87d44c89" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-25.2462.6.0" newVersion="25.2462.6.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Syncfusion.OfficeChart.Base" publicKeyToken="3d67ed1f87d44c89" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-25.2462.6.0" newVersion="25.2462.6.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Syncfusion.Licensing" publicKeyToken="632609b4d040f6b4" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-26.2462.8.0" newVersion="26.2462.8.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.1.2" newVersion="4.0.1.2" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Text.Encoding.CodePages" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-8.0.0.0" newVersion="8.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

@ -1,13 +0,0 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>DOCGEN</name>
</assembly>
<members>
<member name="M:DOCGEN.Klassen.SynFWord.DocToPDF(System.String)">
<summary>Word to PDF-Konverter</summary>
<remarks>Das sind die Remarks</remarks>
<param name="dokument">Base64-Dokument</param>
</member>
</members>
</doc>

Binary file not shown.

Binary file not shown.

@ -1,461 +0,0 @@
<?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.

File diff suppressed because it is too large Load Diff

@ -1,21 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="NativVorlagen.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8.1" />
</startup>
<userSettings>
<NativVorlagen.Properties.Settings>
<setting name="Vorlagen" serializeAs="String">
<value>E:\Software-Projekte\OnDoc\Nativ\</value>
</setting>
<setting name="UserDir" serializeAs="String">
<value>h:\edoka_work\</value>
</setting>
</NativVorlagen.Properties.Settings>
</userSettings>
</configuration>

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

Loading…
Cancel
Save