update 20241217

This commit is contained in:
Stefan Hutter
2024-12-17 20:48:07 +01:00
parent 8f74cec1ab
commit 7e891afc23
108 changed files with 686 additions and 150 deletions

View File

@@ -52,9 +52,9 @@
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Location = new System.Drawing.Point(164, 304);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(122, 26);
this.label1.Size = new System.Drawing.Size(134, 26);
this.label1.TabIndex = 1;
this.label1.Text = "Version 0.8";
this.label1.Text = "Version 0.85";
//
// label2
//
@@ -64,7 +64,7 @@
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(203, 26);
this.label2.TabIndex = 2;
this.label2.Text = "13. Dezember 2024";
this.label2.Text = "15. Dezember 2024";
//
// SplashScreen
//

View File

@@ -30,7 +30,14 @@
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(valueselector));
this.GridData = new Syncfusion.WinForms.DataGrid.SfDataGrid();
this.sfCalendar1 = new Syncfusion.WinForms.Input.SfCalendar();
this.panel1 = new System.Windows.Forms.Panel();
this.panel2 = new System.Windows.Forms.Panel();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.GridData)).BeginInit();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// GridData
@@ -50,11 +57,74 @@
this.GridData.CellClick += new Syncfusion.WinForms.DataGrid.Events.CellClickEventHandler(this.GridData_CellClick);
this.GridData.CellDoubleClick += new Syncfusion.WinForms.DataGrid.Events.CellClickEventHandler(this.GridData_CellDoubleClick);
//
// sfCalendar1
//
this.sfCalendar1.FirstDayOfWeek = System.DayOfWeek.Monday;
this.sfCalendar1.Location = new System.Drawing.Point(3, 3);
this.sfCalendar1.MinimumSize = new System.Drawing.Size(196, 196);
this.sfCalendar1.Name = "sfCalendar1";
this.sfCalendar1.ShowWeekNumbers = true;
this.sfCalendar1.Size = new System.Drawing.Size(357, 342);
this.sfCalendar1.TabIndex = 2;
this.sfCalendar1.Text = "sfCalendar1";
this.sfCalendar1.Click += new System.EventHandler(this.sfCalendar1_Click);
this.sfCalendar1.DoubleClick += new System.EventHandler(this.sfCalendar1_DoubleClick);
//
// panel1
//
this.panel1.Controls.Add(this.button1);
this.panel1.Controls.Add(this.label2);
this.panel1.Controls.Add(this.label1);
this.panel1.Controls.Add(this.panel2);
this.panel1.Controls.Add(this.sfCalendar1);
this.panel1.Location = new System.Drawing.Point(5, 5);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(363, 425);
this.panel1.TabIndex = 3;
//
// panel2
//
this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel2.Location = new System.Drawing.Point(79, 351);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(32, 16);
this.panel2.TabIndex = 3;
this.panel2.Click += new System.EventHandler(this.panel2_Click);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(118, 353);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(36, 13);
this.label1.TabIndex = 4;
this.label1.Text = "Heute";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(160, 353);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(35, 13);
this.label2.TabIndex = 5;
this.label2.Text = "label2";
//
// button1
//
this.button1.Location = new System.Drawing.Point(136, 390);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(86, 23);
this.button1.TabIndex = 6;
this.button1.Text = "übernehmen";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// valueselector
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(373, 450);
this.Controls.Add(this.panel1);
this.Controls.Add(this.GridData);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "valueselector";
@@ -63,6 +133,8 @@
this.Text = "Werte-Auwahl";
this.Load += new System.EventHandler(this.valueselector_Load);
((System.ComponentModel.ISupportInitialize)(this.GridData)).EndInit();
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.ResumeLayout(false);
}
@@ -70,5 +142,11 @@
#endregion
private Syncfusion.WinForms.DataGrid.SfDataGrid GridData;
private Syncfusion.WinForms.Input.SfCalendar sfCalendar1;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button button1;
}
}

View File

@@ -18,15 +18,29 @@ namespace OnDoc.Diverses
public string partnernr { get; set; } = "";
public string datenherkunft { get; set; } = "";
public string selected_value { get; set; }
public string selected_value { get; set; }
public DateTime selected_datetime { get; set; } = DateTime.Now;
public valueselector()
{
InitializeComponent();
this.panel1.Visible = false;
this.GridData.Visible = true;
}
public valueselector(Boolean Showcalendar)
{
InitializeComponent();
this.panel1.Visible = true;
this.GridData.Visible = false;
label2.Text = DateTime.Now.ToString("dd.MM.yyyy");
}
private void valueselector_Load(object sender, EventArgs e)
{
this.SetDesktopLocation(Cursor.Position.X, Cursor.Position.Y);
this.sfCalendar1.SelectedDate = DateTime.Now;
}
public void load_data()
@@ -68,5 +82,29 @@ namespace OnDoc.Diverses
DialogResult = DialogResult.OK;
this.Close();
}
private void sfCalendar1_Click(object sender, EventArgs e)
{
this.selected_datetime = (DateTime)sfCalendar1.SelectedDate;
}
private void sfCalendar1_DoubleClick(object sender, EventArgs e)
{
sfCalendar1_Click(sender, e);
DialogResult = DialogResult.OK;
this.Close();
}
private void panel2_Click(object sender, EventArgs e)
{
sfCalendar1.SelectedDate = DateTime.Now;
sfCalendar1_DoubleClick(sender, e);
}
private void button1_Click(object sender, EventArgs e)
{
sfCalendar1_DoubleClick(sender, e);
}
}
}