update 20250113

This commit is contained in:
Stefan Hutter
2025-01-13 21:00:23 +01:00
parent 1e3c169d49
commit 3e36dd541b
107 changed files with 366 additions and 79 deletions

View File

@@ -44,6 +44,12 @@ using Syncfusion.Windows.Forms;
using System.Runtime.Remoting.Messaging;
using Syncfusion.WinForms.DataGrid.Enums;
using System.Security.Cryptography;
using Syncfusion.WinForms.DataGrid.Renderers;
using Syncfusion.WinForms.DataGrid.Styles;
using Syncfusion.Data;
using Syncfusion.WinForms.Input;
using Syncfusion.Windows.Forms.CellGrid.ScrollAxis;
using Syncfusion.Windows.Forms.Edit.Utils;
@@ -82,10 +88,21 @@ namespace OnDoc.UICintrols
System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("de-DE");
InitializeComponent();
//this.sfDataGrid1.AutoGeneratingColumn += datagrid_AutoGeneratingColumn;
Broadcaster().AddListener(this);
//t_functions();
pos_elements();
}
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;
}
}
public void OnListen(string message, SenderInfo sender)
{
@@ -111,7 +128,8 @@ namespace OnDoc.UICintrols
// Helper.Security security = new Helper.Security();
// security.set_security(this);
//Refresh_Bewilligungen();
//this.sfDataGrid1.CellRenderers.Remove("DateTime");
//this.sfDataGrid.CellRenderers.Add("DateTime", new GridDateTimeCellRendererExt());
}
public void load_Profile()
@@ -1081,7 +1099,7 @@ namespace OnDoc.UICintrols
OfficePrinter.OnDocOffice op = new OfficePrinter.OnDocOffice();
Filename = AppParams.tempdir + dokumentid + "." + dok.extension;
fh.SaveBase64ToFile(dok.dokument, Filename);
op.PrintInWord(Filename, AppParams.wordprintmacro);
op.PrintInWord(Filename, AppParams.wordprintmacro, AppParams.OfficeSpleep1);
System.IO.File.Delete(Filename);
op = null;
break;
@@ -1564,6 +1582,7 @@ namespace OnDoc.UICintrols
{
this.selected_dokumentid = "";
}
System.Windows.Forms.Application.DoEvents();
@@ -2052,6 +2071,23 @@ namespace OnDoc.UICintrols
AdminDokTypGenerierung ag = new AdminDokTypGenerierung();
ag.Show();
}
private void RibbonButtonNewDoc_DoubleClick(object sender, EventArgs e)
{
}
private void dokumentFürPartnerErstellenToolStripMenuItem_Click(object sender, EventArgs e)
{
try
{
createnewdoc(Convert.ToInt32(selected_partnernr), 0);
}
catch { }
}
}
}