Nach Update Syncfusion / Anpassungen Nativ

This commit is contained in:
Stefan Hutter
2024-09-18 09:57:27 +02:00
parent cb21f39e6b
commit d4b9318d96
1954 changed files with 2024537 additions and 116 deletions

View File

@@ -38,6 +38,7 @@
Syncfusion.Windows.Forms.Tools.TreeNodeAdv treeNodeAdv7 = new Syncfusion.Windows.Forms.Tools.TreeNodeAdv();
Syncfusion.Windows.Forms.Tools.TreeNodeAdv treeNodeAdv8 = new Syncfusion.Windows.Forms.Tools.TreeNodeAdv();
Syncfusion.Windows.Forms.Tools.TreeNodeAdv treeNodeAdv9 = new Syncfusion.Windows.Forms.Tools.TreeNodeAdv();
Syncfusion.Windows.Forms.Tools.TreeNodeAdvStyleInfo treeNodeAdvStyleInfo2 = new Syncfusion.Windows.Forms.Tools.TreeNodeAdvStyleInfo();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Dokumenttyp));
this.tabControlAdv1 = new Syncfusion.Windows.Forms.Tools.TabControlAdv();
this.tabPageAdv1 = new Syncfusion.Windows.Forms.Tools.TabPageAdv();
@@ -92,6 +93,8 @@
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
this.grpVorlagenfeld = new System.Windows.Forms.GroupBox();
this.chkaktiv = new System.Windows.Forms.CheckBox();
this.label14 = new System.Windows.Forms.Label();
this.lblFeldregel = new System.Windows.Forms.TextBox();
this.txtTechbezeichnung = new System.Windows.Forms.TextBox();
this.label13 = new System.Windows.Forms.Label();
@@ -125,15 +128,14 @@
this.lblfeldregeliddesc = new System.Windows.Forms.Label();
this.lblID = new System.Windows.Forms.Label();
this.lbliddesc = new System.Windows.Forms.Label();
this.chkaktiv = new System.Windows.Forms.CheckBox();
this.label14 = new System.Windows.Forms.Label();
this.groupBox7 = new System.Windows.Forms.GroupBox();
this.panel1 = new System.Windows.Forms.Panel();
this.txtFilter = new System.Windows.Forms.TextBox();
this.rbBezeichnung = new System.Windows.Forms.RadioButton();
this.label16 = new System.Windows.Forms.Label();
this.rbNr = new System.Windows.Forms.RadioButton();
this.label15 = new System.Windows.Forms.Label();
this.txtFilter = new System.Windows.Forms.TextBox();
this.label16 = new System.Windows.Forms.Label();
this.panel1 = new System.Windows.Forms.Panel();
this.TreeDokumenttyp = new Syncfusion.Windows.Forms.Tools.TreeViewAdv();
((System.ComponentModel.ISupportInitialize)(this.tabControlAdv1)).BeginInit();
this.tabControlAdv1.SuspendLayout();
this.tabPageAdv1.SuspendLayout();
@@ -161,6 +163,7 @@
this.grpVorlagenfeld.SuspendLayout();
this.groupBox7.SuspendLayout();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.TreeDokumenttyp)).BeginInit();
this.SuspendLayout();
//
// tabControlAdv1
@@ -889,6 +892,26 @@
this.grpVorlagenfeld.TabStop = false;
this.grpVorlagenfeld.Text = "Vorlagenfeld";
//
// chkaktiv
//
this.chkaktiv.AutoSize = true;
this.chkaktiv.Location = new System.Drawing.Point(135, 576);
this.chkaktiv.Name = "chkaktiv";
this.chkaktiv.Size = new System.Drawing.Size(15, 14);
this.chkaktiv.TabIndex = 35;
this.chkaktiv.Tag = "aktiv";
this.chkaktiv.UseVisualStyleBackColor = true;
this.chkaktiv.CheckedChanged += new System.EventHandler(this.chkui_CheckedChanged);
//
// label14
//
this.label14.AutoSize = true;
this.label14.Location = new System.Drawing.Point(18, 577);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(31, 13);
this.label14.TabIndex = 34;
this.label14.Text = "Aktiv";
//
// lblFeldregel
//
this.lblFeldregel.BorderStyle = System.Windows.Forms.BorderStyle.None;
@@ -1194,28 +1217,9 @@
this.lbliddesc.TabIndex = 0;
this.lbliddesc.Text = "ID";
//
// chkaktiv
//
this.chkaktiv.AutoSize = true;
this.chkaktiv.Location = new System.Drawing.Point(135, 576);
this.chkaktiv.Name = "chkaktiv";
this.chkaktiv.Size = new System.Drawing.Size(15, 14);
this.chkaktiv.TabIndex = 35;
this.chkaktiv.Tag = "aktiv";
this.chkaktiv.UseVisualStyleBackColor = true;
this.chkaktiv.CheckedChanged += new System.EventHandler(this.chkui_CheckedChanged);
//
// label14
//
this.label14.AutoSize = true;
this.label14.Location = new System.Drawing.Point(18, 577);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(31, 13);
this.label14.TabIndex = 34;
this.label14.Text = "Aktiv";
//
// groupBox7
//
this.groupBox7.Controls.Add(this.TreeDokumenttyp);
this.groupBox7.Controls.Add(this.panel1);
this.groupBox7.Dock = System.Windows.Forms.DockStyle.Left;
this.groupBox7.Location = new System.Drawing.Point(2, 2);
@@ -1225,53 +1229,6 @@
this.groupBox7.TabStop = false;
this.groupBox7.Text = "sflk";
//
// rbBezeichnung
//
this.rbBezeichnung.AutoSize = true;
this.rbBezeichnung.Location = new System.Drawing.Point(111, 40);
this.rbBezeichnung.Name = "rbBezeichnung";
this.rbBezeichnung.Size = new System.Drawing.Size(87, 17);
this.rbBezeichnung.TabIndex = 9;
this.rbBezeichnung.Text = "Bezeichnung";
this.rbBezeichnung.UseVisualStyleBackColor = true;
//
// rbNr
//
this.rbNr.AutoSize = true;
this.rbNr.Checked = true;
this.rbNr.Location = new System.Drawing.Point(69, 39);
this.rbNr.Name = "rbNr";
this.rbNr.Size = new System.Drawing.Size(36, 17);
this.rbNr.TabIndex = 8;
this.rbNr.TabStop = true;
this.rbNr.Text = "Nr";
this.rbNr.UseVisualStyleBackColor = true;
//
// label15
//
this.label15.AutoSize = true;
this.label15.Location = new System.Drawing.Point(12, 37);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(26, 13);
this.label15.TabIndex = 7;
this.label15.Text = "Sort";
//
// txtFilter
//
this.txtFilter.Location = new System.Drawing.Point(69, 12);
this.txtFilter.Name = "txtFilter";
this.txtFilter.Size = new System.Drawing.Size(139, 20);
this.txtFilter.TabIndex = 6;
//
// label16
//
this.label16.AutoSize = true;
this.label16.Location = new System.Drawing.Point(12, 15);
this.label16.Name = "label16";
this.label16.Size = new System.Drawing.Size(29, 13);
this.label16.TabIndex = 5;
this.label16.Text = "Filter";
//
// panel1
//
this.panel1.Controls.Add(this.txtFilter);
@@ -1285,6 +1242,102 @@
this.panel1.Size = new System.Drawing.Size(276, 71);
this.panel1.TabIndex = 10;
//
// txtFilter
//
this.txtFilter.Location = new System.Drawing.Point(69, 12);
this.txtFilter.Name = "txtFilter";
this.txtFilter.Size = new System.Drawing.Size(139, 20);
this.txtFilter.TabIndex = 6;
this.txtFilter.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtFilter_KeyDown);
//
// rbBezeichnung
//
this.rbBezeichnung.AutoSize = true;
this.rbBezeichnung.Location = new System.Drawing.Point(111, 40);
this.rbBezeichnung.Name = "rbBezeichnung";
this.rbBezeichnung.Size = new System.Drawing.Size(87, 17);
this.rbBezeichnung.TabIndex = 9;
this.rbBezeichnung.Text = "Bezeichnung";
this.rbBezeichnung.UseVisualStyleBackColor = true;
this.rbBezeichnung.Click += new System.EventHandler(this.rbNr_Click);
//
// label16
//
this.label16.AutoSize = true;
this.label16.Location = new System.Drawing.Point(12, 15);
this.label16.Name = "label16";
this.label16.Size = new System.Drawing.Size(29, 13);
this.label16.TabIndex = 5;
this.label16.Text = "Filter";
//
// rbNr
//
this.rbNr.AutoSize = true;
this.rbNr.Checked = true;
this.rbNr.Location = new System.Drawing.Point(69, 39);
this.rbNr.Name = "rbNr";
this.rbNr.Size = new System.Drawing.Size(36, 17);
this.rbNr.TabIndex = 8;
this.rbNr.TabStop = true;
this.rbNr.Text = "Nr";
this.rbNr.UseVisualStyleBackColor = true;
this.rbNr.Click += new System.EventHandler(this.rbNr_Click);
//
// label15
//
this.label15.AutoSize = true;
this.label15.Location = new System.Drawing.Point(12, 37);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(26, 13);
this.label15.TabIndex = 7;
this.label15.Text = "Sort";
//
// TreeDokumenttyp
//
treeNodeAdvStyleInfo2.CheckBoxTickThickness = 1;
treeNodeAdvStyleInfo2.CheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
treeNodeAdvStyleInfo2.EnsureDefaultOptionedChild = true;
treeNodeAdvStyleInfo2.IntermediateCheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
treeNodeAdvStyleInfo2.OptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
treeNodeAdvStyleInfo2.SelectedOptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(210)))), ((int)(((byte)(210)))), ((int)(((byte)(210)))));
treeNodeAdvStyleInfo2.ShowCheckBox = false;
treeNodeAdvStyleInfo2.TextColor = System.Drawing.Color.Black;
this.TreeDokumenttyp.BaseStylePairs.AddRange(new Syncfusion.Windows.Forms.Tools.StyleNamePair[] {
new Syncfusion.Windows.Forms.Tools.StyleNamePair("Standard", treeNodeAdvStyleInfo2)});
this.TreeDokumenttyp.BeforeTouchSize = new System.Drawing.Size(303, 670);
this.TreeDokumenttyp.Dock = System.Windows.Forms.DockStyle.Left;
//
//
//
this.TreeDokumenttyp.HelpTextControl.BaseThemeName = null;
this.TreeDokumenttyp.HelpTextControl.Location = new System.Drawing.Point(0, 0);
this.TreeDokumenttyp.HelpTextControl.Name = "";
this.TreeDokumenttyp.HelpTextControl.Size = new System.Drawing.Size(392, 112);
this.TreeDokumenttyp.HelpTextControl.TabIndex = 0;
this.TreeDokumenttyp.HelpTextControl.Visible = true;
this.TreeDokumenttyp.InactiveSelectedNodeForeColor = System.Drawing.SystemColors.ControlText;
this.TreeDokumenttyp.Location = new System.Drawing.Point(3, 87);
this.TreeDokumenttyp.MetroColor = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(165)))), ((int)(((byte)(220)))));
this.TreeDokumenttyp.Name = "TreeDokumenttyp";
this.TreeDokumenttyp.SelectedNodeForeColor = System.Drawing.SystemColors.HighlightText;
this.TreeDokumenttyp.Size = new System.Drawing.Size(303, 670);
this.TreeDokumenttyp.SortWithChildNodes = true;
this.TreeDokumenttyp.TabIndex = 11;
this.TreeDokumenttyp.Text = "treeViewAdv1";
this.TreeDokumenttyp.ThemeStyle.TreeNodeAdvStyle.CheckBoxTickThickness = 0;
this.TreeDokumenttyp.ThemeStyle.TreeNodeAdvStyle.EnsureDefaultOptionedChild = true;
//
//
//
this.TreeDokumenttyp.ToolTipControl.BaseThemeName = null;
this.TreeDokumenttyp.ToolTipControl.Location = new System.Drawing.Point(0, 0);
this.TreeDokumenttyp.ToolTipControl.Name = "";
this.TreeDokumenttyp.ToolTipControl.Size = new System.Drawing.Size(392, 112);
this.TreeDokumenttyp.ToolTipControl.TabIndex = 0;
this.TreeDokumenttyp.ToolTipControl.Visible = true;
this.TreeDokumenttyp.AfterSelect += new System.EventHandler(this.TreeDokumenttyp_AfterSelect);
this.TreeDokumenttyp.Click += new System.EventHandler(this.TreeDokumenttyp_Click);
//
// Dokumenttyp
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@@ -1334,6 +1387,7 @@
this.groupBox7.ResumeLayout(false);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.TreeDokumenttyp)).EndInit();
this.ResumeLayout(false);
}
@@ -1435,5 +1489,6 @@
private System.Windows.Forms.Label label16;
private System.Windows.Forms.RadioButton rbNr;
private System.Windows.Forms.Label label15;
private Syncfusion.Windows.Forms.Tools.TreeViewAdv TreeDokumenttyp;
}
}

View File

@@ -14,6 +14,8 @@ using Database;
using Helper;
using System.Windows.Forms.VisualStyles;
using OnDoc.Helper;
using Syncfusion.Windows.Forms.Tools;
using Syncfusion.WinForms.Controls;
namespace OnDoc.UIControls.Administrator
{
@@ -37,9 +39,41 @@ namespace OnDoc.UIControls.Administrator
this.dokumenttypnr = dokumenttypnr;
}
System.Data.DataTable treedata = new System.Data.DataTable();
private void update_tree()
{
db.Get_Tabledata("Select dokumenttypnr as ID, Bezeichnung, Aktiv from dokumenttyp", false, true);
treedata = db.dsdaten.Tables[0].Copy();
string _sqlWhere = " Bezeichnung like '%" + txtFilter.Text + "%'";
string _sqlOrder = "Bezeichnung ";
if (rbNr.Checked)
{
_sqlOrder = "id ";
}
else _sqlOrder = "Bezeichnung";
System.Data.DataTable _newDataTable = treedata.Select(_sqlWhere, _sqlOrder).CopyToDataTable();
foreach (DataRow r in _newDataTable.Rows)
{
TreeNodeAdv nodeAdv = new TreeNodeAdv();
nodeAdv.Text = r["id"].ToString() + " " + r["Bezeichnung"].ToString();
nodeAdv.Tag = r["id"].ToString();
if (Convert.ToBoolean(r["aktiv"]) == false)
{
nodeAdv.Font = new System.Drawing.Font(nodeAdv.Font, FontStyle.Strikeout);
}
TreeDokumenttyp.Nodes.Add(nodeAdv);
}
}
private void Dokumenttyp_Load(object sender, EventArgs e)
{
update_tree();
return;
}
private void Update_Details(int id) {
db.Get_Tabledata("Select office_vorlagenr, bezeichnung from office_vorlage", false, true);
cbboxofficevorlage.DataSource = db.dsdaten.Tables[0];
cbboxofficevorlage.DisplayMember = "Bezeichnung";
@@ -320,5 +354,29 @@ namespace OnDoc.UIControls.Administrator
Origin.AcceptChanges();
sfDataGrid1.Update();
}
private void TreeDokumenttyp_Click(object sender, EventArgs e)
{
}
private void TreeDokumenttyp_AfterSelect(object sender, EventArgs e)
{
this.dokumenttypnr = Convert.ToInt32(TreeDokumenttyp.SelectedNode.Tag.ToString());
Update_Details(dokumenttypnr);
}
private void txtFilter_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
update_tree();
}
}
private void rbNr_Click(object sender, EventArgs e)
{
update_tree();
}
}
}