Update 20260514

This commit is contained in:
Stefan Hutter
2026-05-14 10:49:27 +02:00
parent d3d7b06872
commit 83a0703324
247 changed files with 900388 additions and 222 deletions
+103 -7
View File
@@ -28,6 +28,7 @@
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
Syncfusion.Windows.Forms.Tools.TreeNodeAdvStyleInfo treeNodeAdvStyleInfo1 = new Syncfusion.Windows.Forms.Tools.TreeNodeAdvStyleInfo();
Syncfusion.Windows.Forms.Tools.TreeNodeAdv treeNodeAdv1 = new Syncfusion.Windows.Forms.Tools.TreeNodeAdv();
Syncfusion.Windows.Forms.Tools.TreeNodeAdv treeNodeAdv2 = new Syncfusion.Windows.Forms.Tools.TreeNodeAdv();
@@ -56,6 +57,7 @@
this.tsbtncopy = new System.Windows.Forms.ToolStripButton();
this.toolStripButton3 = new System.Windows.Forms.ToolStripButton();
this.GrpUnterschrifte = new System.Windows.Forms.GroupBox();
this.cbSignierungSyncfusion = new System.Windows.Forms.CheckBox();
this.cbfaksimileStandard = new System.Windows.Forms.CheckBox();
this.lblStandard = new System.Windows.Forms.Label();
this.lbUnterschriftStandard = new System.Windows.Forms.ListBox();
@@ -146,6 +148,11 @@
this.lblfeldregeliddesc = new System.Windows.Forms.Label();
this.lblID = new System.Windows.Forms.Label();
this.lbliddesc = new System.Windows.Forms.Label();
this.tabPageAdv3 = new Syncfusion.Windows.Forms.Tools.TabPageAdv();
this.sfDataGrid2 = new Syncfusion.WinForms.DataGrid.SfDataGrid();
this.btnSetSync = new System.Windows.Forms.Button();
this.label21 = new System.Windows.Forms.Label();
this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker();
this.groupBox7 = new System.Windows.Forms.GroupBox();
this.TreeDokumenttyp = new Syncfusion.Windows.Forms.Tools.TreeViewAdv();
this.panel1 = new System.Windows.Forms.Panel();
@@ -155,7 +162,8 @@
this.label16 = new System.Windows.Forms.Label();
this.rbNr = new System.Windows.Forms.RadioButton();
this.label15 = new System.Windows.Forms.Label();
this.cbSignierungSyncfusion = new System.Windows.Forms.CheckBox();
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.label22 = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.tabControlAdv1)).BeginInit();
this.tabControlAdv1.SuspendLayout();
this.tabPageAdv1.SuspendLayout();
@@ -183,6 +191,8 @@
this.groupBox5.SuspendLayout();
this.toolStrip1.SuspendLayout();
this.grpVorlagenfeld.SuspendLayout();
this.tabPageAdv3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.sfDataGrid2)).BeginInit();
this.groupBox7.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.TreeDokumenttyp)).BeginInit();
this.panel1.SuspendLayout();
@@ -193,12 +203,14 @@
this.tabControlAdv1.BeforeTouchSize = new System.Drawing.Size(1019, 760);
this.tabControlAdv1.Controls.Add(this.tabPageAdv1);
this.tabControlAdv1.Controls.Add(this.tabPageAdv2);
this.tabControlAdv1.Controls.Add(this.tabPageAdv3);
this.tabControlAdv1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabControlAdv1.Location = new System.Drawing.Point(284, 2);
this.tabControlAdv1.Name = "tabControlAdv1";
this.tabControlAdv1.Size = new System.Drawing.Size(1019, 760);
this.tabControlAdv1.TabIndex = 0;
this.tabControlAdv1.ThemeStyle.PrimitiveButtonStyle.DisabledNextPageImage = null;
this.tabControlAdv1.SelectedIndexChanged += new System.EventHandler(this.tabControlAdv1_SelectedIndexChanged);
//
// tabPageAdv1
//
@@ -371,6 +383,14 @@
this.GrpUnterschrifte.TabStop = false;
this.GrpUnterschrifte.Text = "Unterschriften";
//
// cbSignierungSyncfusion
//
this.cbSignierungSyncfusion.Location = new System.Drawing.Point(293, 49);
this.cbSignierungSyncfusion.Name = "cbSignierungSyncfusion";
this.cbSignierungSyncfusion.Size = new System.Drawing.Size(163, 24);
this.cbSignierungSyncfusion.TabIndex = 28;
this.cbSignierungSyncfusion.Text = "Signierung Syncfusion";
//
// cbfaksimileStandard
//
this.cbfaksimileStandard.Location = new System.Drawing.Point(163, 49);
@@ -1437,6 +1457,65 @@
this.lbliddesc.TabIndex = 0;
this.lbliddesc.Text = "ID";
//
// tabPageAdv3
//
this.tabPageAdv3.Controls.Add(this.label22);
this.tabPageAdv3.Controls.Add(this.sfDataGrid2);
this.tabPageAdv3.Controls.Add(this.btnSetSync);
this.tabPageAdv3.Controls.Add(this.label21);
this.tabPageAdv3.Controls.Add(this.dateTimePicker1);
this.tabPageAdv3.Image = null;
this.tabPageAdv3.ImageSize = new System.Drawing.Size(20, 20);
this.tabPageAdv3.Location = new System.Drawing.Point(1, 25);
this.tabPageAdv3.Name = "tabPageAdv3";
this.tabPageAdv3.ShowCloseButton = true;
this.tabPageAdv3.Size = new System.Drawing.Size(1016, 733);
this.tabPageAdv3.TabIndex = 3;
this.tabPageAdv3.Text = "Synchronisation";
this.tabPageAdv3.ThemesEnabled = false;
//
// sfDataGrid2
//
this.sfDataGrid2.AccessibleName = "Table";
this.sfDataGrid2.AllowFiltering = true;
this.sfDataGrid2.AllowGrouping = false;
this.sfDataGrid2.AllowResizingColumns = true;
this.sfDataGrid2.AutoSizeColumnsMode = Syncfusion.WinForms.DataGrid.Enums.AutoSizeColumnsMode.AllCells;
this.sfDataGrid2.CopyOption = Syncfusion.WinForms.DataGrid.Enums.CopyOptions.None;
this.sfDataGrid2.Location = new System.Drawing.Point(36, 49);
this.sfDataGrid2.Name = "sfDataGrid2";
this.sfDataGrid2.PreviewRowHeight = 35;
this.sfDataGrid2.Size = new System.Drawing.Size(484, 356);
this.sfDataGrid2.TabIndex = 10;
//
// btnSetSync
//
this.btnSetSync.Location = new System.Drawing.Point(36, 453);
this.btnSetSync.Name = "btnSetSync";
this.btnSetSync.Size = new System.Drawing.Size(75, 23);
this.btnSetSync.TabIndex = 9;
this.btnSetSync.Text = "Eintragen";
this.btnSetSync.UseVisualStyleBackColor = true;
this.btnSetSync.Click += new System.EventHandler(this.btnSetSync_Click);
//
// label21
//
this.label21.AutoSize = true;
this.label21.Location = new System.Drawing.Point(33, 418);
this.label21.Name = "label21";
this.label21.Size = new System.Drawing.Size(81, 13);
this.label21.TabIndex = 8;
this.label21.Text = "Übernahme Per";
//
// dateTimePicker1
//
this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Short;
this.dateTimePicker1.Location = new System.Drawing.Point(120, 418);
this.dateTimePicker1.Name = "dateTimePicker1";
this.dateTimePicker1.Size = new System.Drawing.Size(99, 20);
this.dateTimePicker1.TabIndex = 7;
this.dateTimePicker1.ValueChanged += new System.EventHandler(this.dateTimePicker1_ValueChanged);
//
// groupBox7
//
this.groupBox7.Controls.Add(this.TreeDokumenttyp);
@@ -1571,13 +1650,20 @@
this.label15.TabIndex = 7;
this.label15.Text = "Sort";
//
// cbSignierungSyncfusion
// contextMenuStrip1
//
this.cbSignierungSyncfusion.Location = new System.Drawing.Point(293, 49);
this.cbSignierungSyncfusion.Name = "cbSignierungSyncfusion";
this.cbSignierungSyncfusion.Size = new System.Drawing.Size(163, 24);
this.cbSignierungSyncfusion.TabIndex = 28;
this.cbSignierungSyncfusion.Text = "Signiereung Syncfusion";
this.contextMenuStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
this.contextMenuStrip1.Name = "contextMenuStrip1";
this.contextMenuStrip1.Size = new System.Drawing.Size(61, 4);
//
// label22
//
this.label22.AutoSize = true;
this.label22.Location = new System.Drawing.Point(33, 19);
this.label22.Name = "label22";
this.label22.Size = new System.Drawing.Size(51, 13);
this.label22.TabIndex = 11;
this.label22.Text = "Elemente";
//
// Dokumenttyp
//
@@ -1629,6 +1715,9 @@
this.toolStrip1.PerformLayout();
this.grpVorlagenfeld.ResumeLayout(false);
this.grpVorlagenfeld.PerformLayout();
this.tabPageAdv3.ResumeLayout(false);
this.tabPageAdv3.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.sfDataGrid2)).EndInit();
this.groupBox7.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.TreeDokumenttyp)).EndInit();
this.panel1.ResumeLayout(false);
@@ -1755,5 +1844,12 @@
private System.Windows.Forms.TextBox txturibeschreibung;
internal System.Windows.Forms.CheckBox cbfaksimileStandard;
internal System.Windows.Forms.CheckBox cbSignierungSyncfusion;
private Syncfusion.Windows.Forms.Tools.TabPageAdv tabPageAdv3;
private System.Windows.Forms.DateTimePicker dateTimePicker1;
private System.Windows.Forms.Button btnSetSync;
private System.Windows.Forms.Label label21;
private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
private Syncfusion.WinForms.DataGrid.SfDataGrid sfDataGrid2;
private System.Windows.Forms.Label label22;
}
}
@@ -563,6 +563,65 @@ namespace OnDoc.UIControls.Administrator
vdb = null;
}
private void dateTimePicker1_ValueChanged(object sender, EventArgs e)
{
}
private void tabControlAdv1_SelectedIndexChanged(object sender, EventArgs e)
{
if (tabControlAdv1.SelectedTab.Text == "Synchronisation")
{
DB db = new DB(AppParams.connectionstring);
db.Get_Tabledata("Select * from OnDoc_Admin_VorlagenSync_Param order by id", false, true);
db.dsdaten.Tables[0].Columns.Add("Sync", typeof(bool));
this.sfDataGrid2.DataSource=db.dsdaten.Tables[0];
sfDataGrid2.Columns[0].Width = 0;
sfDataGrid2.Columns[1].Width = 0;
db = null;
}
}
private void btnSetSync_Click(object sender, EventArgs e)
{
DB db = new DB(AppParams.connectionstring);
db.Exec_SQL("delete from OnDoc_Admin_VorlagenSync where sync_datum='"+this.dateTimePicker1.Value+"' and dokumenttypnr="+this.dokumenttypnr.ToString()+"");
db.Get_Tabledata_for_Update("Select top 1 * from OnDoc_Admin_VorlagenSync where id=-1", false, true);
DataRow dr = db.daten.Tables[0].NewRow();
DataTable sourcedata = sfDataGrid2.DataSource as DataTable;
foreach (DataRow sdr in sourcedata.Rows)
{
try {
if (Convert.ToBoolean(sdr["Sync"]) == true)
{
dr[sdr["OnDoc_Admin_VorlagenSync_Attribut"].ToString()] = true;
}
else
{
dr[sdr["OnDoc_Admin_VorlagenSync_Attribut"].ToString()] = false;
}
}
catch
{
dr[sdr["OnDoc_Admin_VorlagenSync_Attribut"].ToString()] = false;
}
}
dr["dokumenttypnr"] = this.dokumenttypnr;
dr["sync_datum"] =this.dateTimePicker1.Value;
dr["erstellt_am"] = DateTime.Now;
dr["mutiert_am"] = DateTime.Now;
dr["mutierer"] = AppParams.CurrentMitarbeiter;
dr["sync_done"] = false;
dr["sync_return"] = "";
db.daten.Tables[0].Rows.Add(dr);
db.Update_Data();
db = null;
}
}
public static class SOExtension
{
@@ -123,6 +123,9 @@
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>227, 17</value>
</metadata>
<metadata name="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>353, 17</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>25</value>
</metadata>
@@ -93,7 +93,13 @@ namespace OnDoc.UIControls.Administrator
{
var data = e.NewObject as dynamic;
data["aktiv"] = true;
try
{
data["aktiv"] = true;
}
catch
{}
data["erstellt_am"] = DateTime.Now;
data["mutiert_am"] = DateTime.Now;
data["mutierer"]=AppParams.CurrentMitarbeiter;
+1 -1
View File
@@ -384,7 +384,7 @@ namespace OnDoc.UIControls
{ error = 1; }
}
dg = null;
}
//DateTime t = DateTime.Now;
//DateTime now = DateTime.Now;
-1
View File
@@ -547,7 +547,6 @@ namespace OnDoc.UICintrols
this.sfDataGrid1.ShowGroupDropArea = true;
this.sfDataGrid1.ShowToolTip = true;
this.sfDataGrid1.Size = new System.Drawing.Size(1709, 341);
// this.sfDataGrid1.Style.DragPreviewRowStyle.Font = new System.Drawing.Font("Segoe UI", 9F);
this.sfDataGrid1.TabIndex = 0;
this.sfDataGrid1.ValidationMode = Syncfusion.WinForms.DataGrid.Enums.GridValidationMode.InView;
this.sfDataGrid1.ToolTipOpening += new Syncfusion.WinForms.DataGrid.Events.ToolTipOpeningEventHandler(this.sfDataGrid1_ToolTipOpening_1);