update 20241203

This commit is contained in:
Stefan Hutter
2024-12-03 16:06:30 +01:00
parent f36b514063
commit ce2c0555b3
26 changed files with 622 additions and 550 deletions

View File

@@ -1,5 +1,6 @@
using Database;
using OnDoc.Klassen;
using Syncfusion.WinForms.DataGrid.Enums;
using System;
using System.Collections.Generic;
using System.ComponentModel;
@@ -24,6 +25,11 @@ namespace OnDoc.UIControls
}
public void set_panelheight(int height, Color background)
{
panel1.Height = height;
panel1.BackColor = background;
}
public void Update_Werte(string dokumentid)
{
DB db = new DB(AppParams.connectionstring);
@@ -32,6 +38,22 @@ namespace OnDoc.UIControls
db.Get_Tabledata("sp_ondoc_get_dokumentdetails", true, false);
this.sfDataGrid1.DataSource = db.dsdaten.Tables[0];
db = null;
sfDataGrid1.Columns[0].Width = 120;
sfDataGrid1.Columns[1].Width = 170;
}
private void sfDataGrid1_KeyUp(object sender, KeyEventArgs e)
{
if (e.Control && e.KeyCode == Keys.C)
{
}
}
private void sfDataGrid1_CopyCellContent(object sender, Syncfusion.WinForms.DataGrid.Events.CellCutCopyPasteEventArgs e)
{
MessageBox.Show(e.ClipboardValue.ToString());
}
}
}