update 20250721
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
using Database;
|
||||
using OnDoc.Klassen;
|
||||
using Syncfusion.WinForms.DataGrid.Events;
|
||||
using Syncfusion.WinForms.DataGrid;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
@@ -30,10 +32,21 @@ namespace OnDoc.Diverses
|
||||
private void DokHistory_Load(object sender, EventArgs e)
|
||||
{
|
||||
DB dB = new DB(AppParams.connectionstring);
|
||||
dB.Get_Tabledata("Select * from edoka_journale.dbo.nlog_doc where dokumentid='"+dokumentid+"' order by id desc",false,true);
|
||||
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";
|
||||
|
||||
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;
|
||||
|
||||
//}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user