update 20241127

This commit is contained in:
Stefan Hutter
2024-11-27 15:53:34 +01:00
parent 341ea50f06
commit 2a652c7325
11218 changed files with 1987907 additions and 362275 deletions

View File

@@ -37,6 +37,9 @@
this.ribbonButtonSave = new System.Windows.Forms.RibbonButton();
this.ribbonButtonNew = new System.Windows.Forms.RibbonButton();
this.ribbonButtonDelete = new System.Windows.Forms.RibbonButton();
this.ribbonTab2 = new System.Windows.Forms.RibbonTab();
this.ribbonPanel2 = new System.Windows.Forms.RibbonPanel();
this.RibbonMitarbeiterButtonSave = new System.Windows.Forms.RibbonButton();
this.GrpBoxProfile = new System.Windows.Forms.GroupBox();
this.lbprofile = new System.Windows.Forms.ListBox();
this.GrpBoxDetails = new System.Windows.Forms.GroupBox();
@@ -50,29 +53,26 @@
this.label3 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
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.button1 = new System.Windows.Forms.Button();
this.btnLoadImage = new System.Windows.Forms.Button();
this.label12 = new System.Windows.Forms.Label();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.label11 = new System.Windows.Forms.Label();
this.txtfunktion = new System.Windows.Forms.TextBox();
this.label10 = new System.Windows.Forms.Label();
this.txtunterschrift = new System.Windows.Forms.TextBox();
this.label9 = new System.Windows.Forms.Label();
this.txtfax = new System.Windows.Forms.TextBox();
this.label8 = new System.Windows.Forms.Label();
this.txttelefon = new System.Windows.Forms.TextBox();
this.label7 = new System.Windows.Forms.Label();
this.txtmail = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label();
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.txtName = new System.Windows.Forms.TextBox();
this.lblName = new System.Windows.Forms.Label();
this.GrpBoxProfile.SuspendLayout();
this.GrpBoxDetails.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.cbboxTeam)).BeginInit();
@@ -122,6 +122,7 @@
this.RibbonPanelExit.Items.Add(this.RibbonButtonExit);
this.RibbonPanelExit.Name = "RibbonPanelExit";
this.RibbonPanelExit.Text = "";
this.RibbonPanelExit.Visible = false;
//
// RibbonButtonExit
//
@@ -169,6 +170,29 @@
this.ribbonButtonDelete.Text = "Löschen";
this.ribbonButtonDelete.Click += new System.EventHandler(this.ribbonButtonDelete_Click);
//
// ribbonTab2
//
this.ribbonTab2.Name = "ribbonTab2";
this.ribbonTab2.Panels.Add(this.ribbonPanel2);
this.ribbonTab2.Text = "Mitarbeiter-Daten";
this.ribbonTab2.ActiveChanged += new System.EventHandler(this.ribbonTab2_ActiveChanged);
//
// ribbonPanel2
//
this.ribbonPanel2.ButtonMoreVisible = false;
this.ribbonPanel2.Items.Add(this.RibbonMitarbeiterButtonSave);
this.ribbonPanel2.Name = "ribbonPanel2";
this.ribbonPanel2.Text = "";
//
// RibbonMitarbeiterButtonSave
//
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";
this.RibbonMitarbeiterButtonSave.Click += new System.EventHandler(this.RibbonMitarbeiterButtonSave_Click);
//
// GrpBoxProfile
//
this.GrpBoxProfile.Controls.Add(this.lbprofile);
@@ -302,28 +326,6 @@
this.label1.TabIndex = 0;
this.label1.Text = "Unterschrift links";
//
// ribbonTab2
//
this.ribbonTab2.Name = "ribbonTab2";
this.ribbonTab2.Panels.Add(this.ribbonPanel2);
this.ribbonTab2.Text = "Mitarbeiter-Daten";
this.ribbonTab2.ActiveChanged += new System.EventHandler(this.ribbonTab2_ActiveChanged);
//
// ribbonPanel2
//
this.ribbonPanel2.ButtonMoreVisible = false;
this.ribbonPanel2.Items.Add(this.RibbonMitarbeiterButtonSave);
this.ribbonPanel2.Name = "ribbonPanel2";
this.ribbonPanel2.Text = "";
//
// RibbonMitarbeiterButtonSave
//
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";
//
// GrpBoxMitarbeiter
//
this.GrpBoxMitarbeiter.Controls.Add(this.button1);
@@ -331,15 +333,15 @@
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.txtfunktion);
this.GrpBoxMitarbeiter.Controls.Add(this.label10);
this.GrpBoxMitarbeiter.Controls.Add(this.textBox4);
this.GrpBoxMitarbeiter.Controls.Add(this.txtunterschrift);
this.GrpBoxMitarbeiter.Controls.Add(this.label9);
this.GrpBoxMitarbeiter.Controls.Add(this.textBox3);
this.GrpBoxMitarbeiter.Controls.Add(this.txtfax);
this.GrpBoxMitarbeiter.Controls.Add(this.label8);
this.GrpBoxMitarbeiter.Controls.Add(this.textBox2);
this.GrpBoxMitarbeiter.Controls.Add(this.txttelefon);
this.GrpBoxMitarbeiter.Controls.Add(this.label7);
this.GrpBoxMitarbeiter.Controls.Add(this.textBox1);
this.GrpBoxMitarbeiter.Controls.Add(this.txtmail);
this.GrpBoxMitarbeiter.Controls.Add(this.label6);
this.GrpBoxMitarbeiter.Controls.Add(this.txtVorname);
this.GrpBoxMitarbeiter.Controls.Add(this.lblVorname);
@@ -351,21 +353,135 @@
this.GrpBoxMitarbeiter.TabIndex = 3;
this.GrpBoxMitarbeiter.TabStop = false;
//
// lblName
// button1
//
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";
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;
this.button1.Visible = false;
//
// txtName
// btnLoadImage
//
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;
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;
this.btnLoadImage.Visible = false;
//
// 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";
//
// 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.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
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);
//
// 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";
//
// txtfunktion
//
this.txtfunktion.Location = new System.Drawing.Point(96, 204);
this.txtfunktion.Name = "txtfunktion";
this.txtfunktion.Size = new System.Drawing.Size(147, 20);
this.txtfunktion.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";
//
// txtunterschrift
//
this.txtunterschrift.Location = new System.Drawing.Point(386, 25);
this.txtunterschrift.Name = "txtunterschrift";
this.txtunterschrift.Size = new System.Drawing.Size(147, 20);
this.txtunterschrift.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";
//
// txtfax
//
this.txtfax.Location = new System.Drawing.Point(96, 151);
this.txtfax.Name = "txtfax";
this.txtfax.Size = new System.Drawing.Size(147, 20);
this.txtfax.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";
//
// txttelefon
//
this.txttelefon.Location = new System.Drawing.Point(96, 125);
this.txttelefon.Name = "txttelefon";
this.txttelefon.Size = new System.Drawing.Size(147, 20);
this.txttelefon.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";
//
// txtmail
//
this.txtmail.Location = new System.Drawing.Point(96, 99);
this.txtmail.Name = "txtmail";
this.txtmail.Size = new System.Drawing.Size(147, 20);
this.txtmail.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";
//
// txtVorname
//
@@ -383,132 +499,21 @@
this.lblVorname.TabIndex = 2;
this.lblVorname.Text = "Vorname";
//
// textBox1
// txtName
//
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;
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;
//
// label6
// lblName
//
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;
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";
//
// MitarbeiterProfil
//
@@ -572,15 +577,15 @@
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.TextBox txtfunktion;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.TextBox textBox4;
private System.Windows.Forms.TextBox txtunterschrift;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.TextBox textBox3;
private System.Windows.Forms.TextBox txtfax;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.TextBox txttelefon;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.TextBox txtmail;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button btnLoadImage;

View File

@@ -17,6 +17,8 @@ using System.Data.SqlClient;
using Database;
using System.Threading;
using static System.Net.Mime.MediaTypeNames;
using System.IO;
using System.Net;
namespace OnDoc.Diverses
{
@@ -117,6 +119,8 @@ namespace OnDoc.Diverses
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 mitarbeiter set name='" + txtName.Text + "', vorname='" + txtVorname.Text + "', email='" + txtmail.Text + "', telefon='" + txttelefon.Text + "' where mitarbeiternr=" + AppParams.CurrentMitarbieter.ToString());
//db.Exec_SQL("Update mitarbeiter set fax='" + txtfax.Text + "', unterschrift_text='" + txtunterschrift.Text + "', funktion='" + txtfunktion.Text + "', mutiert_am=getdate(), mutierer=" + AppParams.CurrentMitarbieter.ToString() + " where mitarbeiternr = " + AppParams.CurrentMitarbieter.ToString());
db = null;
refresh_profile();
lbprofile.SelectedValue = saveselected;
@@ -189,9 +193,65 @@ namespace OnDoc.Diverses
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;
DB db = new DB(AppParams.connectionstring);
db.Get_Tabledata("select * from mitarbeiter where mitarbeiternr=" + AppParams.CurrentMitarbieter.ToString(), false, true);
if (db.dsdaten.Tables[0].Rows.Count > 0)
{
try {
string unterschrift = get_unterschrift(db.dsdaten.Tables[0].Rows[0]["tgnummer"].ToString());
string ss = Newtonsoft.Json.JsonConvert.DeserializeObject<string>(unterschrift);
MemoryStream mssign = new MemoryStream(Convert.FromBase64String(ss));
System.Drawing.Image img = System.Drawing.Image.FromStream(mssign);
pictureBox1.Image = img;
mssign.Close();
mssign.Dispose();
}
catch { }
txtName.Text = db.dsdaten.Tables[0].Rows[0]["name"].ToString();
txtVorname.Text= db.dsdaten.Tables[0].Rows[0]["vorname"].ToString();
txtmail.Text = db.dsdaten.Tables[0].Rows[0]["email"].ToString();
txttelefon.Text = db.dsdaten.Tables[0].Rows[0]["telefon"].ToString();
txtfax.Text = db.dsdaten.Tables[0].Rows[0]["fax"].ToString();
txtunterschrift.Text = db.dsdaten.Tables[0].Rows[0]["unterschrift_text"].ToString();
txtfunktion.Text = db.dsdaten.Tables[0].Rows[0]["funktion"].ToString();
db = null;
// System.Drawing.Image image = System.Drawing.Image.FromFile(@"E:\Software-Projekte\OnDoc\Images\download.png");
//this.pictureBox1.Image = image;
}
}
private string get_unterschrift(string MaNr)
{
string URL = AppParams.RESTURI + "API/GetUnterschriftAsBase64ByMitarbeiternr?MaNr=" + AppParams.CurrentMitarbieter.ToString()+ "&ImageWith=-1";
HttpWebRequest webRequest = HttpWebRequest.Create(URL) as HttpWebRequest;
webRequest.Method = WebRequestMethods.Http.Get;
webRequest.Headers["Authorization"] = "Bearer " + AppParams.apikey;
try
{
using (HttpWebResponse response = webRequest.GetResponse() as HttpWebResponse)
{
if (response.StatusCode == HttpStatusCode.OK)
{
StreamReader reader = new StreamReader(response.GetResponseStream());
string responseContent = reader.ReadToEnd();
return responseContent;
}
else
{
Logging.Logging.Error(URL + ": " + response.StatusCode.ToString() + " / " + response.StatusDescription, "Clinet - DokList GetDocument", "");
return "";
}
}
}
catch (Exception ex)
{
return "";
}
}
protected bool validData;
string path;
@@ -253,6 +313,15 @@ namespace OnDoc.Diverses
}
}
}
private void RibbonMitarbeiterButtonSave_Click(object sender, EventArgs e)
{
DB db = new DB(AppParams.connectionstring);
db.Exec_SQL("Update mitarbeiter set name='" + txtName.Text + "', vorname='" + txtVorname.Text + "', email='" + txtmail.Text + "', telefon='" + txttelefon.Text + "' where mitarbeiternr=" + AppParams.CurrentMitarbieter.ToString());
db.Exec_SQL("Update mitarbeiter set fax='" + txtfax.Text + "', unterschrift_text='" + txtunterschrift.Text + "', funktion='" + txtfunktion.Text + "', mutiert_am=getdate(), mutierer=" + AppParams.CurrentMitarbieter.ToString() + " where mitarbeiternr = " + AppParams.CurrentMitarbieter.ToString());
db = null;
}
}
}

View File

@@ -271,7 +271,7 @@ namespace OnDoc.Diverses
switch (ext)
{
case ".D":
DOCGEN.Klassen.SyncFWord sf = new DOCGEN.Klassen.SyncFWord();
DOCGEN.Klassen.SyncFWord sf = new DOCGEN.Klassen.SyncFWord("","");
tempfilename1 = System.IO.Path.GetFileName(tempfilename);
tempfilename1 = AppParams.tempdir + "" + DateTime.Now.ToString("yyyyMMddhhmmss") + tempfilename1;
sf.create_nativ("Klassifizierung", klassifizierung, "", tempfilename, tempfilename1);