Update 20240719
This commit is contained in:
409
Client/Diverses/MitarbeiterProfil.Designer.cs
generated
409
Client/Diverses/MitarbeiterProfil.Designer.cs
generated
@@ -32,10 +32,14 @@
|
||||
this.ribbon1 = new System.Windows.Forms.Ribbon();
|
||||
this.ribbonTab1 = new System.Windows.Forms.RibbonTab();
|
||||
this.RibbonPanelExit = new System.Windows.Forms.RibbonPanel();
|
||||
this.RibbonButtonExit = new System.Windows.Forms.RibbonButton();
|
||||
this.ribbonPanel1 = new System.Windows.Forms.RibbonPanel();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.ribbonButtonSave = new System.Windows.Forms.RibbonButton();
|
||||
this.ribbonButtonNew = new System.Windows.Forms.RibbonButton();
|
||||
this.ribbonButtonDelete = new System.Windows.Forms.RibbonButton();
|
||||
this.GrpBoxProfile = new System.Windows.Forms.GroupBox();
|
||||
this.lbprofile = new System.Windows.Forms.ListBox();
|
||||
this.groupBox2 = new System.Windows.Forms.GroupBox();
|
||||
this.GrpBoxDetails = new System.Windows.Forms.GroupBox();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.txtbezeichnung = new System.Windows.Forms.TextBox();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
@@ -46,15 +50,36 @@
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.RibbonButtonExit = new System.Windows.Forms.RibbonButton();
|
||||
this.ribbonButtonSave = new System.Windows.Forms.RibbonButton();
|
||||
this.ribbonButtonNew = new System.Windows.Forms.RibbonButton();
|
||||
this.ribbonButtonDelete = new System.Windows.Forms.RibbonButton();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.groupBox2.SuspendLayout();
|
||||
this.ribbonTab2 = new System.Windows.Forms.RibbonTab();
|
||||
this.ribbonPanel2 = new System.Windows.Forms.RibbonPanel();
|
||||
this.RibbonMitarbeiterButtonSave = new System.Windows.Forms.RibbonButton();
|
||||
this.GrpBoxMitarbeiter = new System.Windows.Forms.GroupBox();
|
||||
this.lblName = new System.Windows.Forms.Label();
|
||||
this.txtName = new System.Windows.Forms.TextBox();
|
||||
this.txtVorname = new System.Windows.Forms.TextBox();
|
||||
this.lblVorname = new System.Windows.Forms.Label();
|
||||
this.textBox1 = new System.Windows.Forms.TextBox();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.textBox2 = new System.Windows.Forms.TextBox();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.textBox3 = new System.Windows.Forms.TextBox();
|
||||
this.label8 = new System.Windows.Forms.Label();
|
||||
this.textBox4 = new System.Windows.Forms.TextBox();
|
||||
this.label9 = new System.Windows.Forms.Label();
|
||||
this.textBox5 = new System.Windows.Forms.TextBox();
|
||||
this.label10 = new System.Windows.Forms.Label();
|
||||
this.label11 = new System.Windows.Forms.Label();
|
||||
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
||||
this.label12 = new System.Windows.Forms.Label();
|
||||
this.btnLoadImage = new System.Windows.Forms.Button();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.GrpBoxProfile.SuspendLayout();
|
||||
this.GrpBoxDetails.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.cbboxTeam)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.cbboxUnterschriftRechts)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.cbboxUnterschriftLinks)).BeginInit();
|
||||
this.GrpBoxMitarbeiter.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// ribbon1
|
||||
@@ -76,9 +101,10 @@
|
||||
this.ribbon1.OrbStyle = System.Windows.Forms.RibbonOrbStyle.Office_2013;
|
||||
this.ribbon1.OrbVisible = false;
|
||||
this.ribbon1.RibbonTabFont = new System.Drawing.Font("Trebuchet MS", 9F);
|
||||
this.ribbon1.Size = new System.Drawing.Size(796, 80);
|
||||
this.ribbon1.Size = new System.Drawing.Size(796, 121);
|
||||
this.ribbon1.TabIndex = 0;
|
||||
this.ribbon1.Tabs.Add(this.ribbonTab1);
|
||||
this.ribbon1.Tabs.Add(this.ribbonTab2);
|
||||
this.ribbon1.TabSpacing = 4;
|
||||
this.ribbon1.Text = "ribbon1";
|
||||
//
|
||||
@@ -87,7 +113,8 @@
|
||||
this.ribbonTab1.Name = "ribbonTab1";
|
||||
this.ribbonTab1.Panels.Add(this.RibbonPanelExit);
|
||||
this.ribbonTab1.Panels.Add(this.ribbonPanel1);
|
||||
this.ribbonTab1.Text = "";
|
||||
this.ribbonTab1.Text = "Profile";
|
||||
this.ribbonTab1.ActiveChanged += new System.EventHandler(this.ribbonTab1_ActiveChanged);
|
||||
//
|
||||
// RibbonPanelExit
|
||||
//
|
||||
@@ -96,6 +123,15 @@
|
||||
this.RibbonPanelExit.Name = "RibbonPanelExit";
|
||||
this.RibbonPanelExit.Text = "";
|
||||
//
|
||||
// RibbonButtonExit
|
||||
//
|
||||
this.RibbonButtonExit.Image = global::OnDoc.Properties.Resources.CloseApplication_32x32_32;
|
||||
this.RibbonButtonExit.LargeImage = global::OnDoc.Properties.Resources.CloseApplication_32x32_32;
|
||||
this.RibbonButtonExit.Name = "RibbonButtonExit";
|
||||
this.RibbonButtonExit.SmallImage = ((System.Drawing.Image)(resources.GetObject("RibbonButtonExit.SmallImage")));
|
||||
this.RibbonButtonExit.Text = "Schliessen";
|
||||
this.RibbonButtonExit.Click += new System.EventHandler(this.RibbonButtonExit_Click);
|
||||
//
|
||||
// ribbonPanel1
|
||||
//
|
||||
this.ribbonPanel1.ButtonMoreVisible = false;
|
||||
@@ -105,16 +141,43 @@
|
||||
this.ribbonPanel1.Name = "ribbonPanel1";
|
||||
this.ribbonPanel1.Text = "Profil";
|
||||
//
|
||||
// groupBox1
|
||||
// ribbonButtonSave
|
||||
//
|
||||
this.groupBox1.Controls.Add(this.lbprofile);
|
||||
this.groupBox1.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.groupBox1.Location = new System.Drawing.Point(2, 82);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new System.Drawing.Size(231, 366);
|
||||
this.groupBox1.TabIndex = 1;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "Profile";
|
||||
this.ribbonButtonSave.Image = global::OnDoc.Properties.Resources.save_32x32_32;
|
||||
this.ribbonButtonSave.LargeImage = global::OnDoc.Properties.Resources.save_32x32_32;
|
||||
this.ribbonButtonSave.Name = "ribbonButtonSave";
|
||||
this.ribbonButtonSave.SmallImage = global::OnDoc.Properties.Resources.save_16x16_32;
|
||||
this.ribbonButtonSave.Text = "Speichern";
|
||||
this.ribbonButtonSave.Click += new System.EventHandler(this.ribbonButtonSave_Click);
|
||||
//
|
||||
// ribbonButtonNew
|
||||
//
|
||||
this.ribbonButtonNew.Image = global::OnDoc.Properties.Resources.add_32x32_32;
|
||||
this.ribbonButtonNew.LargeImage = global::OnDoc.Properties.Resources.add_32x32_32;
|
||||
this.ribbonButtonNew.Name = "ribbonButtonNew";
|
||||
this.ribbonButtonNew.SmallImage = global::OnDoc.Properties.Resources.add_16x16_32;
|
||||
this.ribbonButtonNew.Text = "Neu";
|
||||
this.ribbonButtonNew.DoubleClick += new System.EventHandler(this.ribbonButtonNew_DoubleClick);
|
||||
this.ribbonButtonNew.Click += new System.EventHandler(this.ribbonButtonNew_Click);
|
||||
//
|
||||
// ribbonButtonDelete
|
||||
//
|
||||
this.ribbonButtonDelete.Image = global::OnDoc.Properties.Resources.Remove_32x32_32;
|
||||
this.ribbonButtonDelete.LargeImage = global::OnDoc.Properties.Resources.Remove_32x32_32;
|
||||
this.ribbonButtonDelete.Name = "ribbonButtonDelete";
|
||||
this.ribbonButtonDelete.SmallImage = global::OnDoc.Properties.Resources.Remove_16x16_32;
|
||||
this.ribbonButtonDelete.Text = "Löschen";
|
||||
this.ribbonButtonDelete.Click += new System.EventHandler(this.ribbonButtonDelete_Click);
|
||||
//
|
||||
// GrpBoxProfile
|
||||
//
|
||||
this.GrpBoxProfile.Controls.Add(this.lbprofile);
|
||||
this.GrpBoxProfile.Location = new System.Drawing.Point(5, 194);
|
||||
this.GrpBoxProfile.Name = "GrpBoxProfile";
|
||||
this.GrpBoxProfile.Size = new System.Drawing.Size(231, 366);
|
||||
this.GrpBoxProfile.TabIndex = 1;
|
||||
this.GrpBoxProfile.TabStop = false;
|
||||
this.GrpBoxProfile.Text = "Profile";
|
||||
//
|
||||
// lbprofile
|
||||
//
|
||||
@@ -126,25 +189,24 @@
|
||||
this.lbprofile.TabIndex = 0;
|
||||
this.lbprofile.SelectedValueChanged += new System.EventHandler(this.lbprofile_SelectedValueChanged);
|
||||
//
|
||||
// groupBox2
|
||||
// GrpBoxDetails
|
||||
//
|
||||
this.groupBox2.Controls.Add(this.label5);
|
||||
this.groupBox2.Controls.Add(this.txtbezeichnung);
|
||||
this.groupBox2.Controls.Add(this.label4);
|
||||
this.groupBox2.Controls.Add(this.cbStandard);
|
||||
this.groupBox2.Controls.Add(this.cbboxTeam);
|
||||
this.groupBox2.Controls.Add(this.cbboxUnterschriftRechts);
|
||||
this.groupBox2.Controls.Add(this.cbboxUnterschriftLinks);
|
||||
this.groupBox2.Controls.Add(this.label3);
|
||||
this.groupBox2.Controls.Add(this.label2);
|
||||
this.groupBox2.Controls.Add(this.label1);
|
||||
this.groupBox2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.groupBox2.Location = new System.Drawing.Point(233, 82);
|
||||
this.groupBox2.Name = "groupBox2";
|
||||
this.groupBox2.Size = new System.Drawing.Size(565, 366);
|
||||
this.groupBox2.TabIndex = 2;
|
||||
this.groupBox2.TabStop = false;
|
||||
this.groupBox2.Text = "Details";
|
||||
this.GrpBoxDetails.Controls.Add(this.label5);
|
||||
this.GrpBoxDetails.Controls.Add(this.txtbezeichnung);
|
||||
this.GrpBoxDetails.Controls.Add(this.label4);
|
||||
this.GrpBoxDetails.Controls.Add(this.cbStandard);
|
||||
this.GrpBoxDetails.Controls.Add(this.cbboxTeam);
|
||||
this.GrpBoxDetails.Controls.Add(this.cbboxUnterschriftRechts);
|
||||
this.GrpBoxDetails.Controls.Add(this.cbboxUnterschriftLinks);
|
||||
this.GrpBoxDetails.Controls.Add(this.label3);
|
||||
this.GrpBoxDetails.Controls.Add(this.label2);
|
||||
this.GrpBoxDetails.Controls.Add(this.label1);
|
||||
this.GrpBoxDetails.Location = new System.Drawing.Point(297, 173);
|
||||
this.GrpBoxDetails.Name = "GrpBoxDetails";
|
||||
this.GrpBoxDetails.Size = new System.Drawing.Size(565, 366);
|
||||
this.GrpBoxDetails.TabIndex = 2;
|
||||
this.GrpBoxDetails.TabStop = false;
|
||||
this.GrpBoxDetails.Text = "Details";
|
||||
//
|
||||
// label5
|
||||
//
|
||||
@@ -240,50 +302,222 @@
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "Unterschrift links";
|
||||
//
|
||||
// RibbonButtonExit
|
||||
// ribbonTab2
|
||||
//
|
||||
this.RibbonButtonExit.Image = global::OnDoc.Properties.Resources.CloseApplication_32x32_32;
|
||||
this.RibbonButtonExit.LargeImage = global::OnDoc.Properties.Resources.CloseApplication_32x32_32;
|
||||
this.RibbonButtonExit.Name = "RibbonButtonExit";
|
||||
this.RibbonButtonExit.SmallImage = ((System.Drawing.Image)(resources.GetObject("RibbonButtonExit.SmallImage")));
|
||||
this.RibbonButtonExit.Text = "Schliessen";
|
||||
this.RibbonButtonExit.Click += new System.EventHandler(this.RibbonButtonExit_Click);
|
||||
this.ribbonTab2.Name = "ribbonTab2";
|
||||
this.ribbonTab2.Panels.Add(this.ribbonPanel2);
|
||||
this.ribbonTab2.Text = "Mitarbeiter-Daten";
|
||||
this.ribbonTab2.ActiveChanged += new System.EventHandler(this.ribbonTab2_ActiveChanged);
|
||||
//
|
||||
// ribbonButtonSave
|
||||
// ribbonPanel2
|
||||
//
|
||||
this.ribbonButtonSave.Image = global::OnDoc.Properties.Resources.Refresh_32x32_32;
|
||||
this.ribbonButtonSave.LargeImage = global::OnDoc.Properties.Resources.Refresh_32x32_32;
|
||||
this.ribbonButtonSave.Name = "ribbonButtonSave";
|
||||
this.ribbonButtonSave.SmallImage = global::OnDoc.Properties.Resources.save_16x16_32;
|
||||
this.ribbonButtonSave.Text = "Speichern";
|
||||
this.ribbonButtonSave.Click += new System.EventHandler(this.ribbonButtonSave_Click);
|
||||
this.ribbonPanel2.ButtonMoreVisible = false;
|
||||
this.ribbonPanel2.Items.Add(this.RibbonMitarbeiterButtonSave);
|
||||
this.ribbonPanel2.Name = "ribbonPanel2";
|
||||
this.ribbonPanel2.Text = "";
|
||||
//
|
||||
// ribbonButtonNew
|
||||
// RibbonMitarbeiterButtonSave
|
||||
//
|
||||
this.ribbonButtonNew.Image = global::OnDoc.Properties.Resources.add_32x32_32;
|
||||
this.ribbonButtonNew.LargeImage = global::OnDoc.Properties.Resources.add_32x32_32;
|
||||
this.ribbonButtonNew.Name = "ribbonButtonNew";
|
||||
this.ribbonButtonNew.SmallImage = global::OnDoc.Properties.Resources.add_16x16_32;
|
||||
this.ribbonButtonNew.Text = "Neu";
|
||||
this.ribbonButtonNew.DoubleClick += new System.EventHandler(this.ribbonButtonNew_DoubleClick);
|
||||
this.ribbonButtonNew.Click += new System.EventHandler(this.ribbonButtonNew_Click);
|
||||
this.RibbonMitarbeiterButtonSave.Image = global::OnDoc.Properties.Resources.save_32x32_32;
|
||||
this.RibbonMitarbeiterButtonSave.LargeImage = global::OnDoc.Properties.Resources.save_32x32_32;
|
||||
this.RibbonMitarbeiterButtonSave.Name = "RibbonMitarbeiterButtonSave";
|
||||
this.RibbonMitarbeiterButtonSave.SmallImage = global::OnDoc.Properties.Resources.save_16x16_32;
|
||||
this.RibbonMitarbeiterButtonSave.Text = "Speichern";
|
||||
//
|
||||
// ribbonButtonDelete
|
||||
// GrpBoxMitarbeiter
|
||||
//
|
||||
this.ribbonButtonDelete.Image = global::OnDoc.Properties.Resources.Remove_32x32_32;
|
||||
this.ribbonButtonDelete.LargeImage = global::OnDoc.Properties.Resources.Remove_32x32_32;
|
||||
this.ribbonButtonDelete.Name = "ribbonButtonDelete";
|
||||
this.ribbonButtonDelete.SmallImage = global::OnDoc.Properties.Resources.Remove_16x16_32;
|
||||
this.ribbonButtonDelete.Text = "Löschen";
|
||||
this.ribbonButtonDelete.Click += new System.EventHandler(this.ribbonButtonDelete_Click);
|
||||
this.GrpBoxMitarbeiter.Controls.Add(this.button1);
|
||||
this.GrpBoxMitarbeiter.Controls.Add(this.btnLoadImage);
|
||||
this.GrpBoxMitarbeiter.Controls.Add(this.label12);
|
||||
this.GrpBoxMitarbeiter.Controls.Add(this.pictureBox1);
|
||||
this.GrpBoxMitarbeiter.Controls.Add(this.label11);
|
||||
this.GrpBoxMitarbeiter.Controls.Add(this.textBox5);
|
||||
this.GrpBoxMitarbeiter.Controls.Add(this.label10);
|
||||
this.GrpBoxMitarbeiter.Controls.Add(this.textBox4);
|
||||
this.GrpBoxMitarbeiter.Controls.Add(this.label9);
|
||||
this.GrpBoxMitarbeiter.Controls.Add(this.textBox3);
|
||||
this.GrpBoxMitarbeiter.Controls.Add(this.label8);
|
||||
this.GrpBoxMitarbeiter.Controls.Add(this.textBox2);
|
||||
this.GrpBoxMitarbeiter.Controls.Add(this.label7);
|
||||
this.GrpBoxMitarbeiter.Controls.Add(this.textBox1);
|
||||
this.GrpBoxMitarbeiter.Controls.Add(this.label6);
|
||||
this.GrpBoxMitarbeiter.Controls.Add(this.txtVorname);
|
||||
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, 139);
|
||||
this.GrpBoxMitarbeiter.Name = "GrpBoxMitarbeiter";
|
||||
this.GrpBoxMitarbeiter.Size = new System.Drawing.Size(793, 340);
|
||||
this.GrpBoxMitarbeiter.TabIndex = 3;
|
||||
this.GrpBoxMitarbeiter.TabStop = false;
|
||||
//
|
||||
// lblName
|
||||
//
|
||||
this.lblName.AutoSize = true;
|
||||
this.lblName.Location = new System.Drawing.Point(26, 25);
|
||||
this.lblName.Name = "lblName";
|
||||
this.lblName.Size = new System.Drawing.Size(35, 13);
|
||||
this.lblName.TabIndex = 0;
|
||||
this.lblName.Text = "Name";
|
||||
//
|
||||
// txtName
|
||||
//
|
||||
this.txtName.Location = new System.Drawing.Point(96, 22);
|
||||
this.txtName.Name = "txtName";
|
||||
this.txtName.Size = new System.Drawing.Size(147, 20);
|
||||
this.txtName.TabIndex = 1;
|
||||
//
|
||||
// txtVorname
|
||||
//
|
||||
this.txtVorname.Location = new System.Drawing.Point(96, 48);
|
||||
this.txtVorname.Name = "txtVorname";
|
||||
this.txtVorname.Size = new System.Drawing.Size(147, 20);
|
||||
this.txtVorname.TabIndex = 3;
|
||||
//
|
||||
// lblVorname
|
||||
//
|
||||
this.lblVorname.AutoSize = true;
|
||||
this.lblVorname.Location = new System.Drawing.Point(26, 51);
|
||||
this.lblVorname.Name = "lblVorname";
|
||||
this.lblVorname.Size = new System.Drawing.Size(49, 13);
|
||||
this.lblVorname.TabIndex = 2;
|
||||
this.lblVorname.Text = "Vorname";
|
||||
//
|
||||
// textBox1
|
||||
//
|
||||
this.textBox1.Location = new System.Drawing.Point(96, 99);
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new System.Drawing.Size(147, 20);
|
||||
this.textBox1.TabIndex = 5;
|
||||
//
|
||||
// label6
|
||||
//
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Location = new System.Drawing.Point(26, 102);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(26, 13);
|
||||
this.label6.TabIndex = 4;
|
||||
this.label6.Text = "Mail";
|
||||
//
|
||||
// textBox2
|
||||
//
|
||||
this.textBox2.Location = new System.Drawing.Point(96, 125);
|
||||
this.textBox2.Name = "textBox2";
|
||||
this.textBox2.Size = new System.Drawing.Size(147, 20);
|
||||
this.textBox2.TabIndex = 7;
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Location = new System.Drawing.Point(26, 128);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(43, 13);
|
||||
this.label7.TabIndex = 6;
|
||||
this.label7.Text = "Telefon";
|
||||
//
|
||||
// textBox3
|
||||
//
|
||||
this.textBox3.Location = new System.Drawing.Point(96, 151);
|
||||
this.textBox3.Name = "textBox3";
|
||||
this.textBox3.Size = new System.Drawing.Size(147, 20);
|
||||
this.textBox3.TabIndex = 9;
|
||||
//
|
||||
// label8
|
||||
//
|
||||
this.label8.AutoSize = true;
|
||||
this.label8.Location = new System.Drawing.Point(26, 154);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new System.Drawing.Size(24, 13);
|
||||
this.label8.TabIndex = 8;
|
||||
this.label8.Text = "Fax";
|
||||
//
|
||||
// textBox4
|
||||
//
|
||||
this.textBox4.Location = new System.Drawing.Point(386, 25);
|
||||
this.textBox4.Name = "textBox4";
|
||||
this.textBox4.Size = new System.Drawing.Size(147, 20);
|
||||
this.textBox4.TabIndex = 11;
|
||||
//
|
||||
// label9
|
||||
//
|
||||
this.label9.AutoSize = true;
|
||||
this.label9.Location = new System.Drawing.Point(307, 28);
|
||||
this.label9.Name = "label9";
|
||||
this.label9.Size = new System.Drawing.Size(61, 13);
|
||||
this.label9.TabIndex = 10;
|
||||
this.label9.Text = "Unterschrift";
|
||||
//
|
||||
// textBox5
|
||||
//
|
||||
this.textBox5.Location = new System.Drawing.Point(96, 204);
|
||||
this.textBox5.Name = "textBox5";
|
||||
this.textBox5.Size = new System.Drawing.Size(147, 20);
|
||||
this.textBox5.TabIndex = 13;
|
||||
//
|
||||
// label10
|
||||
//
|
||||
this.label10.AutoSize = true;
|
||||
this.label10.Location = new System.Drawing.Point(26, 207);
|
||||
this.label10.Name = "label10";
|
||||
this.label10.Size = new System.Drawing.Size(48, 13);
|
||||
this.label10.TabIndex = 12;
|
||||
this.label10.Text = "Funktion";
|
||||
//
|
||||
// label11
|
||||
//
|
||||
this.label11.AutoSize = true;
|
||||
this.label11.Location = new System.Drawing.Point(307, 58);
|
||||
this.label11.Name = "label11";
|
||||
this.label11.Size = new System.Drawing.Size(42, 13);
|
||||
this.label11.TabIndex = 14;
|
||||
this.label11.Text = "Digitale";
|
||||
//
|
||||
// pictureBox1
|
||||
//
|
||||
this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.pictureBox1.Location = new System.Drawing.Point(386, 62);
|
||||
this.pictureBox1.Name = "pictureBox1";
|
||||
this.pictureBox1.Size = new System.Drawing.Size(346, 140);
|
||||
this.pictureBox1.TabIndex = 15;
|
||||
this.pictureBox1.TabStop = false;
|
||||
this.pictureBox1.DragDrop += new System.Windows.Forms.DragEventHandler(this.pictureBox1_DragDrop);
|
||||
this.pictureBox1.DragEnter += new System.Windows.Forms.DragEventHandler(this.pictureBox1_DragEnter);
|
||||
//
|
||||
// label12
|
||||
//
|
||||
this.label12.AutoSize = true;
|
||||
this.label12.Location = new System.Drawing.Point(306, 71);
|
||||
this.label12.Name = "label12";
|
||||
this.label12.Size = new System.Drawing.Size(61, 13);
|
||||
this.label12.TabIndex = 16;
|
||||
this.label12.Text = "Unterschrift";
|
||||
//
|
||||
// btnLoadImage
|
||||
//
|
||||
this.btnLoadImage.Location = new System.Drawing.Point(386, 208);
|
||||
this.btnLoadImage.Name = "btnLoadImage";
|
||||
this.btnLoadImage.Size = new System.Drawing.Size(104, 23);
|
||||
this.btnLoadImage.TabIndex = 17;
|
||||
this.btnLoadImage.Text = "Bild importieren";
|
||||
this.btnLoadImage.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Location = new System.Drawing.Point(628, 208);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(104, 23);
|
||||
this.button1.TabIndex = 18;
|
||||
this.button1.Text = "Bild löschen";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// MitarbeiterProfil
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(800, 450);
|
||||
this.Controls.Add(this.groupBox2);
|
||||
this.Controls.Add(this.groupBox1);
|
||||
this.ClientSize = new System.Drawing.Size(800, 498);
|
||||
this.Controls.Add(this.GrpBoxMitarbeiter);
|
||||
this.Controls.Add(this.GrpBoxDetails);
|
||||
this.Controls.Add(this.GrpBoxProfile);
|
||||
this.Controls.Add(this.ribbon1);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.KeyPreview = true;
|
||||
@@ -292,13 +526,17 @@
|
||||
this.Style.MdiChild.IconVerticalAlignment = System.Windows.Forms.VisualStyles.VerticalAlignment.Center;
|
||||
this.Style.TitleBar.BackColor = System.Drawing.Color.Silver;
|
||||
this.Text = "MitarbeiterProfil";
|
||||
this.Activated += new System.EventHandler(this.MitarbeiterProfil_Activated);
|
||||
this.Load += new System.EventHandler(this.MitarbeiterProfil_Load);
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.groupBox2.ResumeLayout(false);
|
||||
this.groupBox2.PerformLayout();
|
||||
this.GrpBoxProfile.ResumeLayout(false);
|
||||
this.GrpBoxDetails.ResumeLayout(false);
|
||||
this.GrpBoxDetails.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.cbboxTeam)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.cbboxUnterschriftRechts)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.cbboxUnterschriftLinks)).EndInit();
|
||||
this.GrpBoxMitarbeiter.ResumeLayout(false);
|
||||
this.GrpBoxMitarbeiter.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
@@ -309,9 +547,9 @@
|
||||
private System.Windows.Forms.RibbonTab ribbonTab1;
|
||||
private System.Windows.Forms.RibbonPanel RibbonPanelExit;
|
||||
private System.Windows.Forms.RibbonButton RibbonButtonExit;
|
||||
private System.Windows.Forms.GroupBox groupBox1;
|
||||
private System.Windows.Forms.GroupBox GrpBoxProfile;
|
||||
private System.Windows.Forms.ListBox lbprofile;
|
||||
private System.Windows.Forms.GroupBox groupBox2;
|
||||
private System.Windows.Forms.GroupBox GrpBoxDetails;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private Syncfusion.WinForms.ListView.SfComboBox cbboxTeam;
|
||||
private Syncfusion.WinForms.ListView.SfComboBox cbboxUnterschriftRechts;
|
||||
@@ -326,5 +564,28 @@
|
||||
private System.Windows.Forms.RibbonButton ribbonButtonSave;
|
||||
private System.Windows.Forms.RibbonButton ribbonButtonNew;
|
||||
private System.Windows.Forms.RibbonButton ribbonButtonDelete;
|
||||
private System.Windows.Forms.RibbonTab ribbonTab2;
|
||||
private System.Windows.Forms.RibbonPanel ribbonPanel2;
|
||||
private System.Windows.Forms.RibbonButton RibbonMitarbeiterButtonSave;
|
||||
private System.Windows.Forms.GroupBox GrpBoxMitarbeiter;
|
||||
private System.Windows.Forms.TextBox txtVorname;
|
||||
private System.Windows.Forms.Label lblVorname;
|
||||
private System.Windows.Forms.TextBox txtName;
|
||||
private System.Windows.Forms.Label lblName;
|
||||
private System.Windows.Forms.TextBox textBox5;
|
||||
private System.Windows.Forms.Label label10;
|
||||
private System.Windows.Forms.TextBox textBox4;
|
||||
private System.Windows.Forms.Label label9;
|
||||
private System.Windows.Forms.TextBox textBox3;
|
||||
private System.Windows.Forms.Label label8;
|
||||
private System.Windows.Forms.TextBox textBox2;
|
||||
private System.Windows.Forms.Label label7;
|
||||
private System.Windows.Forms.TextBox textBox1;
|
||||
private System.Windows.Forms.Label label6;
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.Windows.Forms.Button btnLoadImage;
|
||||
private System.Windows.Forms.Label label12;
|
||||
private System.Windows.Forms.PictureBox pictureBox1;
|
||||
private System.Windows.Forms.Label label11;
|
||||
}
|
||||
}
|
||||
@@ -15,6 +15,8 @@ using Syncfusion.WinForms.DataGrid.Interactivity;
|
||||
using OnDoc.Klassen;
|
||||
using System.Data.SqlClient;
|
||||
using Database;
|
||||
using System.Threading;
|
||||
using static System.Net.Mime.MediaTypeNames;
|
||||
|
||||
namespace OnDoc.Diverses
|
||||
{
|
||||
@@ -29,12 +31,14 @@ namespace OnDoc.Diverses
|
||||
public MitarbeiterProfil(int Mitarbeiternr)
|
||||
{
|
||||
InitializeComponent();
|
||||
mitarbeiternr=Mitarbeiternr;
|
||||
mitarbeiternr = Mitarbeiternr;
|
||||
}
|
||||
|
||||
private void MitarbeiterProfil_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
refresh_profile();
|
||||
ribbonTab1_ActiveChanged(sender, e);
|
||||
refresh_unterschriften_team();
|
||||
onLoad = false;
|
||||
lbprofile.SelectedIndex = 0;
|
||||
@@ -81,11 +85,11 @@ namespace OnDoc.Diverses
|
||||
{
|
||||
if (onLoad) { return; }
|
||||
DB db = new DB(AppParams.connectionstring);
|
||||
db.Get_Tabledata("Select * from profil where profilnr="+lbprofile.SelectedValue, false, true);
|
||||
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";
|
||||
cbStandard.Checked = db.dsdaten.Tables[0].Rows[0]["standard"].ToString() == "True";
|
||||
txtbezeichnung.Text = db.dsdaten.Tables[0].Rows[0]["bezeichnung"].ToString();
|
||||
db = null;
|
||||
}
|
||||
@@ -96,9 +100,9 @@ namespace OnDoc.Diverses
|
||||
if (cbStandard.Checked)
|
||||
{
|
||||
db.Exec_SQL("Update profil set standard=0 where mitarbeiternr=" + mitarbeiternr.ToString());
|
||||
db.Exec_SQL("Update profil set bezeichnung='"+txtbezeichnung.Text+"', unterschriftlinks=" + cbboxUnterschriftLinks.SelectedValue.ToString() + ", unterschriftrechts=" + cbboxUnterschriftRechts.SelectedValue.ToString() + ", team=" + cbboxTeam.SelectedValue.ToString() + " ,standard=1 where profilnr=" + lbprofile.SelectedValue.ToString());
|
||||
db.Exec_SQL("Update profil set bezeichnung='" + txtbezeichnung.Text + "', unterschriftlinks=" + cbboxUnterschriftLinks.SelectedValue.ToString() + ", unterschriftrechts=" + cbboxUnterschriftRechts.SelectedValue.ToString() + ", team=" + cbboxTeam.SelectedValue.ToString() + " ,standard=1 where profilnr=" + lbprofile.SelectedValue.ToString());
|
||||
}
|
||||
db.Exec_SQL("Update profil set bezeichnung='"+txtbezeichnung.Text+"',unterschriftlinks=" + cbboxUnterschriftLinks.SelectedValue.ToString() + ", unterschriftrechts=" + cbboxUnterschriftRechts.SelectedValue.ToString() + ", team=" + cbboxTeam.SelectedValue.ToString() + " where profilnr=" + lbprofile.SelectedValue.ToString());
|
||||
db.Exec_SQL("Update profil set bezeichnung='" + txtbezeichnung.Text + "',unterschriftlinks=" + cbboxUnterschriftLinks.SelectedValue.ToString() + ", unterschriftrechts=" + cbboxUnterschriftRechts.SelectedValue.ToString() + ", team=" + cbboxTeam.SelectedValue.ToString() + " where profilnr=" + lbprofile.SelectedValue.ToString());
|
||||
db = null;
|
||||
|
||||
}
|
||||
@@ -126,7 +130,7 @@ namespace OnDoc.Diverses
|
||||
MessageBox.Show("Das Standardprofil kann nicht gelöscht werden.", "Profil löschen", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
else
|
||||
{
|
||||
{
|
||||
db.Exec_SQL("Update profil set aktiv=0 where profilnr=" + lbprofile.SelectedValue.ToString());
|
||||
}
|
||||
db = null;
|
||||
@@ -141,9 +145,9 @@ namespace OnDoc.Diverses
|
||||
|
||||
int newkey = Convert.ToInt32(db.get_dbkey("Profil").ToString());
|
||||
|
||||
|
||||
db.dsdaten.Tables[0].Rows[0]["PROFILnr"]=newkey;
|
||||
db.dsdaten.Tables[0].Rows[0]["Mitarbeiternr"]=AppParams.CurrentMitarbieter;
|
||||
|
||||
db.dsdaten.Tables[0].Rows[0]["PROFILnr"] = newkey;
|
||||
db.dsdaten.Tables[0].Rows[0]["Mitarbeiternr"] = AppParams.CurrentMitarbieter;
|
||||
db.dsdaten.Tables[0].TableName = "Profil";
|
||||
var res = db.InsertDataRow(db.dsdaten.Tables[0].Rows[0], AppParams.connectionstring);
|
||||
//SqlCommand sqlq = db.CreateInsertCommand(db.dsdaten.Tables[0].Rows[0]);
|
||||
@@ -154,7 +158,7 @@ namespace OnDoc.Diverses
|
||||
//string sql = db.BuildInsertSQL(db.dsdaten.Tables[0]);
|
||||
//MessageBox.Show(sql);
|
||||
//db.Exec_SQL(sql);
|
||||
db=null; ;
|
||||
db = null; ;
|
||||
refresh_profile();
|
||||
lbprofile.SelectedValue = newkey;
|
||||
|
||||
@@ -164,5 +168,91 @@ namespace OnDoc.Diverses
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void MitarbeiterProfil_Activated(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void ribbonTab1_ActiveChanged(object sender, EventArgs e)
|
||||
{
|
||||
GrpBoxProfile.Dock = DockStyle.Left;
|
||||
GrpBoxProfile.Visible = true;
|
||||
GrpBoxDetails.Dock = DockStyle.Fill;
|
||||
GrpBoxDetails.Visible = true;
|
||||
GrpBoxMitarbeiter.Visible = false;
|
||||
}
|
||||
|
||||
private void ribbonTab2_ActiveChanged(object sender, EventArgs e)
|
||||
{
|
||||
GrpBoxProfile.Visible = false;
|
||||
GrpBoxDetails.Visible = false;
|
||||
GrpBoxMitarbeiter.Visible = true;
|
||||
GrpBoxMitarbeiter.Dock = DockStyle.Fill;
|
||||
System.Drawing.Image image = System.Drawing.Image.FromFile(@"E:\Software-Projekte\OnDoc\Images\download.png");
|
||||
this.pictureBox1.Image = image;
|
||||
|
||||
}
|
||||
protected bool validData;
|
||||
string path;
|
||||
protected System.Drawing.Image image;
|
||||
protected Thread getImageThread;
|
||||
private void pictureBox1_DragEnter(object sender, DragEventArgs e)
|
||||
{
|
||||
string filename;
|
||||
validData = GetFilename(out filename, e);
|
||||
if (validData)
|
||||
{
|
||||
path = filename;
|
||||
getImageThread = new Thread(new ThreadStart(LoadImage));
|
||||
getImageThread.Start();
|
||||
e.Effect = DragDropEffects.Copy;
|
||||
}
|
||||
else
|
||||
e.Effect = DragDropEffects.None;
|
||||
}
|
||||
private bool GetFilename(out string filename, DragEventArgs e)
|
||||
{
|
||||
bool ret = false;
|
||||
filename = String.Empty;
|
||||
if ((e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy)
|
||||
{
|
||||
Array data = ((IDataObject)e.Data).GetData("FileDrop") as Array;
|
||||
if (data != null)
|
||||
{
|
||||
if ((data.Length == 1) && (data.GetValue(0) is String))
|
||||
{
|
||||
filename = ((string[])data)[0];
|
||||
string ext = System.IO.Path.GetExtension(filename).ToLower();
|
||||
if ((ext == ".jpg") || (ext == ".png") || (ext == ".bmp"))
|
||||
{
|
||||
ret = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
protected void LoadImage()
|
||||
|
||||
{
|
||||
image = new Bitmap(path);
|
||||
}
|
||||
|
||||
private void pictureBox1_DragDrop(object sender, DragEventArgs e)
|
||||
{
|
||||
{
|
||||
if (validData)
|
||||
{
|
||||
while (getImageThread.IsAlive)
|
||||
{
|
||||
System.Windows.Forms.Application.DoEvents();
|
||||
Thread.Sleep(0);
|
||||
}
|
||||
pictureBox1.Image = image;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user