Files
OnDoc/Client - Kopie (2)/Diverses/DokHistory.cs
Stefan Hutter 4093f8764d update 20241224
2024-12-24 11:13:02 +01:00

40 lines
1.0 KiB
C#

using Database;
using OnDoc.Klassen;
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 * 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";
}
}
}