Update 20250306

This commit is contained in:
Stefan Hutter
2025-03-06 17:54:57 +01:00
parent 438845a172
commit 3ad46bb5ef
48 changed files with 413 additions and 272 deletions

View File

@@ -98,15 +98,22 @@ namespace OnDoc.UICintrols
Broadcaster().AddListener(this);
//t_functions();
pos_elements();
this.sfDataGrid1.FilterPopupShowing += SfDataGrid1_FilterPopupShowing;
}
private void SfDataGrid1_FilterPopupShowing(object sender, Syncfusion.WinForms.DataGrid.Events.FilterPopupShowingEventArgs e)
{
if (e.Column is GridDateTimeColumn)
{
e.Control.DatePicker.FirstDayOfWeek = DayOfWeek.Monday;
}
}
private void datagrid_AutoGeneratingColumn(object sender, AutoGeneratingColumnArgs e)
{
if (e.Column.MappingName == "Erstellt am" || e.Column.MappingName == "Mutiert am")
{
GridDateTimeColumn gdt = e.Column as GridDateTimeColumn;
gdt.Pattern = (Syncfusion.WinForms.Input.Enums.DateTimePattern)Syncfusion.Windows.Shared.DateTimePattern.FullDateTime;
}
@@ -279,6 +286,7 @@ namespace OnDoc.UICintrols
catch { }
finally { db = null; }
}
public void refresh_dokumente(string layout = "")
{
update_currentview();
@@ -300,10 +308,14 @@ namespace OnDoc.UICintrols
int selectedIndex = RibbonCBProfil.SelectedIndex;
profilnr = Convert.ToInt32(RibbonCBProfil.SelectedItem.Tag.ToString());
// profilnr = Convert.ToInt32(RibbonCBProfil.SelectedItem.Tag.ToString());
System.Data.DataTable dokumente = new System.Data.DataTable();
dokumente = db.Get_Dokumente(partnernr, docartnr, profilnr, forMaNr, Search_Docid, false);
dokumente = db.Get_Dokumente(partnernr, docartnr, profilnr, forMaNr, Search_Docid, false);
// TableHelper.SetColumnsOrder(dokumente, "trefferliste");
if (layout == "") { layout = "trefferliste_relaunch"; }
TableHelper.FormatTable(ref dokumente, layout, ref this.sfDataGrid1);
@@ -2624,6 +2636,8 @@ namespace OnDoc.UICintrols
TableEditor te = new TableEditor("DokInBearbeitung");
te.Show();
}
}