Update 20250306

This commit is contained in:
Stefan Hutter
2025-03-06 17:54:57 +01:00
parent 438845a172
commit 3ad46bb5ef
48 changed files with 413 additions and 272 deletions

View File

@@ -76,6 +76,8 @@
this.txtName = new System.Windows.Forms.TextBox();
this.lblName = new System.Windows.Forms.Label();
this.GrpGetSignature = new System.Windows.Forms.GroupBox();
this.label18 = new System.Windows.Forms.Label();
this.btnSaveForUser = new System.Windows.Forms.Button();
this.label17 = new System.Windows.Forms.Label();
this.label16 = new System.Windows.Forms.Label();
this.label15 = new System.Windows.Forms.Label();
@@ -85,8 +87,6 @@
this.btnDeleteImage = new System.Windows.Forms.Button();
this.btnSaveSignature = new System.Windows.Forms.Button();
this.sign1 = new WinSign.Sign();
this.btnSaveForUser = new System.Windows.Forms.Button();
this.label18 = new System.Windows.Forms.Label();
this.GrpBoxProfile.SuspendLayout();
this.GrpBoxDetails.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.cbboxTeam)).BeginInit();
@@ -367,7 +367,7 @@
this.GrpBoxMitarbeiter.Controls.Add(this.lblVorname);
this.GrpBoxMitarbeiter.Controls.Add(this.txtName);
this.GrpBoxMitarbeiter.Controls.Add(this.lblName);
this.GrpBoxMitarbeiter.Location = new System.Drawing.Point(5, 129);
this.GrpBoxMitarbeiter.Location = new System.Drawing.Point(5, 148);
this.GrpBoxMitarbeiter.Name = "GrpBoxMitarbeiter";
this.GrpBoxMitarbeiter.Size = new System.Drawing.Size(793, 340);
this.GrpBoxMitarbeiter.TabIndex = 3;
@@ -569,7 +569,7 @@
this.GrpGetSignature.Controls.Add(this.btnDeleteImage);
this.GrpGetSignature.Controls.Add(this.btnSaveSignature);
this.GrpGetSignature.Controls.Add(this.sign1);
this.GrpGetSignature.Location = new System.Drawing.Point(101, 99);
this.GrpGetSignature.Location = new System.Drawing.Point(72, 88);
this.GrpGetSignature.Name = "GrpGetSignature";
this.GrpGetSignature.Size = new System.Drawing.Size(644, 394);
this.GrpGetSignature.TabIndex = 21;
@@ -577,6 +577,26 @@
this.GrpGetSignature.Text = "Unterschrift erfassen";
this.GrpGetSignature.Visible = false;
//
// label18
//
this.label18.AutoSize = true;
this.label18.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label18.Location = new System.Drawing.Point(11, 60);
this.label18.Name = "label18";
this.label18.Size = new System.Drawing.Size(130, 17);
this.label18.TabIndex = 30;
this.label18.Text = "Starten links unten.";
//
// btnSaveForUser
//
this.btnSaveForUser.Location = new System.Drawing.Point(462, 40);
this.btnSaveForUser.Name = "btnSaveForUser";
this.btnSaveForUser.Size = new System.Drawing.Size(176, 23);
this.btnSaveForUser.TabIndex = 29;
this.btnSaveForUser.Text = "Unterschrift für andere Benutzer";
this.btnSaveForUser.UseVisualStyleBackColor = true;
this.btnSaveForUser.Click += new System.EventHandler(this.btnSaveForUser_Click);
//
// label17
//
this.label17.AutoSize = true;
@@ -674,26 +694,6 @@
this.sign1.Size = new System.Drawing.Size(616, 228);
this.sign1.TabIndex = 20;
//
// btnSaveForUser
//
this.btnSaveForUser.Location = new System.Drawing.Point(462, 40);
this.btnSaveForUser.Name = "btnSaveForUser";
this.btnSaveForUser.Size = new System.Drawing.Size(176, 23);
this.btnSaveForUser.TabIndex = 29;
this.btnSaveForUser.Text = "Unterschrift für andere Benutzer";
this.btnSaveForUser.UseVisualStyleBackColor = true;
this.btnSaveForUser.Click += new System.EventHandler(this.btnSaveForUser_Click);
//
// label18
//
this.label18.AutoSize = true;
this.label18.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label18.Location = new System.Drawing.Point(11, 60);
this.label18.Name = "label18";
this.label18.Size = new System.Drawing.Size(130, 17);
this.label18.TabIndex = 30;
this.label18.Text = "Starten links unten.";
//
// MitarbeiterProfil
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);

View File

@@ -56,6 +56,7 @@ namespace OnDoc.Diverses
refresh_unterschriften_team();
onLoad = false;
lbprofile.SelectedIndex = 0;
lbprofile_SelectedValueChanged(sender, e);
sign1.PenWidth = Convert.ToInt32(AppParams.SignatureWidth);
var arrColorFragments = AppParams.SignatureColor.Split(',').Select(sFragment => { int.TryParse(sFragment, out int fragment); return fragment; }).ToArray();
@@ -107,14 +108,18 @@ namespace OnDoc.Diverses
private void lbprofile_SelectedValueChanged(object sender, EventArgs e)
{
if (onLoad) { return; }
DB db = new DB(AppParams.connectionstring);
db.Get_Tabledata("Select * from profil where profilnr=" + lbprofile.SelectedValue, false, true);
cbboxUnterschriftLinks.SelectedValue = Convert.ToInt32(db.dsdaten.Tables[0].Rows[0]["Unterschriftlinks"].ToString());
cbboxUnterschriftRechts.SelectedValue = Convert.ToInt32(db.dsdaten.Tables[0].Rows[0]["Unterschriftrechts"].ToString());
cbboxTeam.SelectedValue = Convert.ToInt32(db.dsdaten.Tables[0].Rows[0]["team"].ToString());
cbStandard.Checked = db.dsdaten.Tables[0].Rows[0]["standard"].ToString() == "True";
txtbezeichnung.Text = db.dsdaten.Tables[0].Rows[0]["bezeichnung"].ToString();
db = null;
try
{
DB db = new DB(AppParams.connectionstring);
db.Get_Tabledata("Select * from profil where profilnr=" + lbprofile.SelectedValue, false, true);
cbboxUnterschriftLinks.SelectedValue = Convert.ToInt32(db.dsdaten.Tables[0].Rows[0]["Unterschriftlinks"].ToString());
cbboxUnterschriftRechts.SelectedValue = Convert.ToInt32(db.dsdaten.Tables[0].Rows[0]["Unterschriftrechts"].ToString());
cbboxTeam.SelectedValue = Convert.ToInt32(db.dsdaten.Tables[0].Rows[0]["team"].ToString());
cbStandard.Checked = db.dsdaten.Tables[0].Rows[0]["standard"].ToString() == "True";
txtbezeichnung.Text = db.dsdaten.Tables[0].Rows[0]["bezeichnung"].ToString();
db = null;
}
catch { }
}
private void btnSave_Click(object sender, EventArgs e)

View File

@@ -47,22 +47,22 @@
this.label6 = new System.Windows.Forms.Label();
this.grpadressen = new System.Windows.Forms.GroupBox();
this.sfGridAdressen = new Syncfusion.WinForms.DataGrid.SfDataGrid();
this.ctxmenuadresse = new System.Windows.Forms.ContextMenuStrip(this.components);
this.adresseÜbernehmenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.GrpVV = new System.Windows.Forms.GroupBox();
this.sfGridVV = new Syncfusion.WinForms.DataGrid.SfDataGrid();
this.panel1 = new System.Windows.Forms.Panel();
this.panel2 = new System.Windows.Forms.Panel();
this.btnclose = new System.Windows.Forms.Button();
this.ctxmenuadresse = new System.Windows.Forms.ContextMenuStrip(this.components);
this.adresseÜbernehmenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.groupBox5.SuspendLayout();
this.groupBox6.SuspendLayout();
this.grpadressen.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.sfGridAdressen)).BeginInit();
this.ctxmenuadresse.SuspendLayout();
this.GrpVV.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.sfGridVV)).BeginInit();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
this.ctxmenuadresse.SuspendLayout();
this.SuspendLayout();
//
// label1
@@ -234,6 +234,20 @@
this.sfGridAdressen.CellDoubleClick += new Syncfusion.WinForms.DataGrid.Events.CellClickEventHandler(this.sfGridAdressen_CellDoubleClick);
this.sfGridAdressen.DoubleClick += new System.EventHandler(this.sfGridAdressen_DoubleClick);
//
// ctxmenuadresse
//
this.ctxmenuadresse.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.adresseÜbernehmenToolStripMenuItem});
this.ctxmenuadresse.Name = "ctxmenuadresse";
this.ctxmenuadresse.Size = new System.Drawing.Size(187, 26);
//
// adresseÜbernehmenToolStripMenuItem
//
this.adresseÜbernehmenToolStripMenuItem.Name = "adresseÜbernehmenToolStripMenuItem";
this.adresseÜbernehmenToolStripMenuItem.Size = new System.Drawing.Size(186, 22);
this.adresseÜbernehmenToolStripMenuItem.Text = "Adresse übernehmen";
this.adresseÜbernehmenToolStripMenuItem.Click += new System.EventHandler(this.adresseÜbernehmenToolStripMenuItem_Click);
//
// GrpVV
//
this.GrpVV.Controls.Add(this.sfGridVV);
@@ -299,20 +313,6 @@
this.btnclose.UseVisualStyleBackColor = true;
this.btnclose.Click += new System.EventHandler(this.btnclose_Click);
//
// ctxmenuadresse
//
this.ctxmenuadresse.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.adresseÜbernehmenToolStripMenuItem});
this.ctxmenuadresse.Name = "ctxmenuadresse";
this.ctxmenuadresse.Size = new System.Drawing.Size(187, 26);
//
// adresseÜbernehmenToolStripMenuItem
//
this.adresseÜbernehmenToolStripMenuItem.Name = "adresseÜbernehmenToolStripMenuItem";
this.adresseÜbernehmenToolStripMenuItem.Size = new System.Drawing.Size(186, 22);
this.adresseÜbernehmenToolStripMenuItem.Text = "Adresse übernehmen";
this.adresseÜbernehmenToolStripMenuItem.Click += new System.EventHandler(this.adresseÜbernehmenToolStripMenuItem_Click);
//
// PartnerDetails
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@@ -326,7 +326,7 @@
this.Name = "PartnerDetails";
this.Style.MdiChild.IconHorizontalAlignment = System.Windows.Forms.HorizontalAlignment.Center;
this.Style.MdiChild.IconVerticalAlignment = System.Windows.Forms.VisualStyles.VerticalAlignment.Center;
this.Text = "PartnerDetails";
this.Text = "§";
this.Load += new System.EventHandler(this.PartnerDetails_Load);
this.groupBox5.ResumeLayout(false);
this.groupBox5.PerformLayout();
@@ -334,12 +334,12 @@
this.groupBox6.PerformLayout();
this.grpadressen.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.sfGridAdressen)).EndInit();
this.ctxmenuadresse.ResumeLayout(false);
this.GrpVV.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.sfGridVV)).EndInit();
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.panel2.ResumeLayout(false);
this.ctxmenuadresse.ResumeLayout(false);
this.ResumeLayout(false);
}

View File

@@ -64,7 +64,7 @@
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(138, 26);
this.label2.TabIndex = 2;
this.label2.Text = "3. März 2025";
this.label2.Text = "6. März 2025";
//
// SplashScreen
//

View File

@@ -35,6 +35,7 @@
//
// sfCalendar1
//
this.sfCalendar1.FirstDayOfWeek = System.DayOfWeek.Monday;
this.sfCalendar1.Location = new System.Drawing.Point(1, 2);
this.sfCalendar1.MinimumSize = new System.Drawing.Size(196, 196);
this.sfCalendar1.Name = "sfCalendar1";