update 20260522
This commit is contained in:
@@ -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);
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user