You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.6 KiB
53 lines
1.6 KiB
using Database;
|
|
using OnDoc.Klassen;
|
|
using Syncfusion.WinForms.DataGrid.Events;
|
|
using Syncfusion.WinForms.DataGrid;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace OnDoc.Diverses
|
|
{
|
|
public partial class DokHistory : Form
|
|
{
|
|
|
|
private string dokumentid { get; set; } = "";
|
|
public DokHistory()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
public DokHistory(string dokumentid)
|
|
{
|
|
InitializeComponent();
|
|
this.dokumentid = dokumentid;
|
|
}
|
|
|
|
private void DokHistory_Load(object sender, EventArgs e)
|
|
{
|
|
DB dB = new DB(AppParams.connectionstring);
|
|
dB.Get_Tabledata("Select id,Origin,Message,LogLevel,CreatedOn,UserID ,Dokumentid,Partnernr,[Aktion] from edoka_journale.dbo.nlog_doc where dokumentid='" + dokumentid+"' order by id desc",false,true);
|
|
sfDataGrid1.DataSource = dB.dsdaten.Tables[0];
|
|
this.sfDataGrid1.Columns["CreatedOn"].Format = "yyyy-MM-dd HH:mm:ss";
|
|
}
|
|
|
|
|
|
|
|
private void sfDataGrid1_AutoGeneratingColumn(object sender, AutoGeneratingColumnArgs e)
|
|
{
|
|
//if (e.Column.MappingName == "CreatedOn" || e.Column.MappingName == "Mutiert am")
|
|
//{
|
|
// GridDateTimeColumn gdt = e.Column as GridDateTimeColumn;
|
|
// gdt.Pattern = (Syncfusion.WinForms.Input.Enums.DateTimePattern)Syncfusion.Windows.Shared.DateTimePattern.CustomPattern;
|
|
|
|
//}
|
|
}
|
|
}
|
|
}
|