Update 20250606

This commit is contained in:
Stefan Hutter
2025-06-06 09:13:32 +02:00
parent 10343fcbab
commit 85ff87dc62
106 changed files with 1312 additions and 298 deletions

View File

@@ -94,12 +94,13 @@ namespace OnDoc.Diverses
}
else
{
//MessageBox.Show(status);
if (status == "aktiv")
{
lblmessage.Text = "Das Dokument mit der ID '" + dokumentid + "' ist in OnBase aktiv und kann nicht bearbeitet werden.";
sfButton3.Enabled = false;
}
if (status == "inaktiv / in aufbewahrung")
if (status.Trim() == "inaktiv")
{
lblmessage.Text = "Das Dokument mit der ID '" + dokumentid + "' ist in OnBase im Status 'Inaktiv / in Aufbewahrung' und kann nicht bearbeitet werden.";
sfButton3.Enabled = false;

View File

@@ -40,10 +40,9 @@
this.pictureBox1.ErrorImage = ((System.Drawing.Image)(resources.GetObject("pictureBox1.ErrorImage")));
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.InitialImage = ((System.Drawing.Image)(resources.GetObject("pictureBox1.InitialImage")));
this.pictureBox1.Location = new System.Drawing.Point(139, 31);
this.pictureBox1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.pictureBox1.Location = new System.Drawing.Point(104, 25);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(348, 318);
this.pictureBox1.Size = new System.Drawing.Size(261, 258);
this.pictureBox1.TabIndex = 0;
this.pictureBox1.TabStop = false;
//
@@ -51,36 +50,33 @@
//
this.label1.AutoSize = true;
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(219, 374);
this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label1.Location = new System.Drawing.Point(164, 304);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(151, 31);
this.label1.Size = new System.Drawing.Size(122, 26);
this.label1.TabIndex = 1;
this.label1.Text = "Version 1.5";
this.label1.Text = "Version 1.6";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label2.Location = new System.Drawing.Point(215, 406);
this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label2.Location = new System.Drawing.Point(159, 330);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(154, 31);
this.label2.Size = new System.Drawing.Size(130, 26);
this.label2.TabIndex = 2;
this.label2.Text = "5. Mai 2025";
this.label2.Text = "5. Juni 2025";
this.label2.Click += new System.EventHandler(this.label2_Click);
//
// SplashScreen
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.White;
this.ClientSize = new System.Drawing.Size(625, 487);
this.ClientSize = new System.Drawing.Size(469, 396);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.pictureBox1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.Name = "SplashScreen";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "SplashScreen";

View File

@@ -54,6 +54,9 @@
this.GridData.Style.HeaderStyle.FilterIconColor = System.Drawing.Color.FromArgb(((int)(((byte)(29)))), ((int)(((byte)(29)))), ((int)(((byte)(29)))));
this.GridData.TabIndex = 1;
this.GridData.Text = "sfDataGrid1";
this.GridData.QueryCellStyle += new Syncfusion.WinForms.DataGrid.Events.QueryCellStyleEventHandler(this.GridData_QueryCellStyle);
this.GridData.DrawCell += new Syncfusion.WinForms.DataGrid.Events.DrawCellEventHandler(this.GridData_DrawCell);
this.GridData.QueryRowStyle += new Syncfusion.WinForms.DataGrid.Events.QueryRowStyleEventHandler(this.GridData_QueryRowStyle);
this.GridData.CellClick += new Syncfusion.WinForms.DataGrid.Events.CellClickEventHandler(this.GridData_CellClick);
this.GridData.CellDoubleClick += new Syncfusion.WinForms.DataGrid.Events.CellClickEventHandler(this.GridData_CellDoubleClick);
//

View File

@@ -4,11 +4,13 @@ using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using OnDoc.Klassen;
using Syncfusion.WinForms.Controls;
using Syncfusion.WinForms.DataGrid.Enums;
using Windows.UI.Xaml.Controls;
namespace OnDoc.Diverses
@@ -106,5 +108,64 @@ namespace OnDoc.Diverses
{
sfCalendar1_DoubleClick(sender, e);
}
private void GridData_DrawCell(object sender, Syncfusion.WinForms.DataGrid.Events.DrawCellEventArgs e)
{
//try
//{
// if (e.Column.MappingName == "SAREC00")
// {
// e.Handled = true;
// var selectedItem = e.DataRow;
// var dataRow = (e.DataRow.RowData as DataRowView).Row;
// e.Style.Font.Strikeout = true;
// Pen borderPen = new Pen(Color.LightGray);
// e.Graphics.DrawLine(borderPen, e.Bounds.Right, e.Bounds.Top, e.Bounds.Right, e.Bounds.Bottom);
// e.Graphics.DrawLine(borderPen, e.Bounds.Left, e.Bounds.Bottom, e.Bounds.Right, e.Bounds.Bottom);
// return;
// }
//}
//catch { }
}
private void GridData_QueryCellStyle(object sender, Syncfusion.WinForms.DataGrid.Events.QueryCellStyleEventArgs e)
{
//try
//{
// if (e.Column.MappingName == "SAREC00")
// {
// var selectedItem = e.DataRow;
// var dataRow = (e.DataRow.RowData as DataRowView).Row;
// e.Style.Font.Strikeout = true;
// return;
// }
//}
//catch { }
}
private void GridData_QueryRowStyle(object sender, Syncfusion.WinForms.DataGrid.Events.QueryRowStyleEventArgs e)
{
try
{
if (e.RowType == RowType.DefaultRow)
{
var dataRowView = e.RowData as DataRowView;
if (dataRowView != null)
{
var dataRow = dataRowView.Row;
var cellValue = dataRow["SAREC00"].ToString();
if (cellValue == "7")
e.Style.Font.Strikeout = true;
}
}
}
catch { }
}
}
}