update 20260522

This commit is contained in:
Stefan Hutter
2026-05-22 20:49:40 +02:00
parent 83a0703324
commit 6d764dccd0
2824 changed files with 1929001 additions and 132 deletions
+18
View File
@@ -153,6 +153,24 @@ namespace OnDoc.DocMgmt
if (ucAllgemeineDokumentParam1.check_fields()==false) {
MessageBox.Show(ucAllgemeineDokumentParam1.check_error,"Feldwerte",MessageBoxButtons.OK,MessageBoxIcon.Error);
return; };
if (ucAllgemeineDokumentParam1.partnernr == 0)
{
DB db2 = new DB(AppParams.connectionstring);
try
{
db2.Get_Tabledata("Select * from dokumenttyp where dokumenttypnr=" + ucAllgemeineDokumentParam1.dokumenttypnr.ToString(), false, true);
if (Convert.ToBoolean(db2.dsdaten.Tables[0].Rows[0]["nurnative"]) == false)
{
MessageBox.Show("Für den gewählten Vorlagentyp muss ein Partner selektiert werden.", "Partnerzuordnung", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
}
catch { }
finally { db2 = null; }
}
ucAllgemeineDokumentParam1.Update_DocGenData();
clsDocData dokdata = new clsDocData();
ucAllgemeineDokumentParam1.update_dokdata(ref dokdata);