Update 20250331
This commit is contained in:
@@ -11,6 +11,7 @@ using OnDoc.Klassen;
|
||||
using Syncfusion.Windows.Forms.Tools;
|
||||
using Syncfusion.WinForms.Controls;
|
||||
using Database;
|
||||
using System.Security.RightsManagement;
|
||||
|
||||
namespace OnDoc.DocMgmt
|
||||
{
|
||||
@@ -19,6 +20,7 @@ namespace OnDoc.DocMgmt
|
||||
private string mitarbeiternr { get; set; } = "";
|
||||
public string selectedID = "";
|
||||
public string file = "";
|
||||
public string usedfelder = "";
|
||||
public SerienbriefTemplateLoad()
|
||||
{
|
||||
InitializeComponent();
|
||||
@@ -44,9 +46,10 @@ namespace OnDoc.DocMgmt
|
||||
}
|
||||
private void load_data() {
|
||||
DB db = new DB(AppParams.connectionstring);
|
||||
db.Get_Tabledata("Select ID,Bezeichnung from ondoc_sb_vorlage where aktiv=1 and mitarbeiternr="+ mitarbeiternr, false, true);
|
||||
db.Get_Tabledata("Select ID,Bezeichnung, isnull(usedfelder,'') as UsedFelder from ondoc_sb_vorlage where aktiv=1 and mitarbeiternr="+ mitarbeiternr, false, true);
|
||||
this.sfDataGrid1.DataSource = db.dsdaten.Tables[0];
|
||||
this.sfDataGrid1.Columns[0].Visible = false;
|
||||
this.sfDataGrid1.Columns[2].Visible = false;
|
||||
db = null;
|
||||
}
|
||||
|
||||
@@ -80,8 +83,9 @@ namespace OnDoc.DocMgmt
|
||||
{
|
||||
DialogResult = DialogResult.OK;
|
||||
DB db = new DB(AppParams.connectionstring);
|
||||
db.Get_Tabledata("Select vorlage from ondoc_sb_vorlage where id=" + selectedID, false, true);
|
||||
db.Get_Tabledata("Select vorlage, usedfelder from ondoc_sb_vorlage where id=" + selectedID, false, true);
|
||||
this.file = db.dsdaten.Tables[0].Rows[0][0].ToString();
|
||||
this.usedfelder = db.dsdaten.Tables[0].Rows[0][1].ToString();
|
||||
db = null;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user