update 20250309
This commit is contained in:
@@ -24,7 +24,7 @@ namespace ToolsDoksImportExport
|
||||
try
|
||||
{
|
||||
DB db = new DB(txtConnctionstring.Text);
|
||||
clsdok d = new clsdok("", "", "");
|
||||
clsdok d = new clsdok("", "", "","");
|
||||
d = db.GetDocumentAsBase64(this.txtDokumentID.Text);
|
||||
System.IO.File.WriteAllBytes(this.txtFilename.Text, Convert.FromBase64String(d.dokument));
|
||||
db = null;
|
||||
@@ -46,5 +46,24 @@ namespace ToolsDoksImportExport
|
||||
}
|
||||
catch (Exception ex) { MessageBox.Show(ex.Message); }
|
||||
}
|
||||
|
||||
private void button2_Click(object sender, EventArgs e)
|
||||
{
|
||||
DB db = new DB(txtConnctionstring.Text);
|
||||
db.Get_Tabledata("Select gridsettings from mitarbeiter_gridsettings where id=" + textBox1.Text, false, true);
|
||||
System.IO.File.WriteAllBytes(this.textBox2.Text, Convert.FromBase64String(db.dsdaten.Tables[0].Rows[0][0].ToString()));
|
||||
MessageBox.Show("Export erfolgreich");
|
||||
db = null;
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
Byte[] bytes = System.IO.File.ReadAllBytes(this.textBox2.Text);
|
||||
string b64 = Convert.ToBase64String(bytes);
|
||||
DB db = new DB(txtConnctionstring.Text);
|
||||
db.Exec_SQL("Update mitarbeiter_gridsettings set gridsettings='" + b64 + "'");
|
||||
MessageBox.Show("Import erfolgreich");
|
||||
db = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user