Update 20250618

This commit is contained in:
Stefan Hutter
2025-06-18 23:11:00 +02:00
parent 85ff87dc62
commit f45b683545
173 changed files with 1728 additions and 320 deletions

View File

@@ -364,7 +364,7 @@ namespace OnDoc.Versandstrasse
foreach (TreeNodeAdv dokumentnode in node.Nodes)
{
//node.LeftImageIndices = new int[] { 0 };
db.Get_Tabledata("SELECT dbo.dokument.nrpar00, dbo.dokument.dokumentid, isnull(dbo.dokumenttyp.Versandstrasse_moeglich,0) as vsm, isnull(dbo.dokumenttyp.versandstrasse_firstdoc,0) as firstdoc FROM dbo.dokument INNER JOIN " +
db.Get_Tabledata("SELECT dbo.dokument.nrpar00, dbo.dokument.dokumentid, isnull(dbo.dokumenttyp.Versandstrasse_moeglich,0) as vsm, isnull(dbo.dokumenttyp.versandstrasse_firstdoc,0) as firstdoc, isnull(postzustellung,0) as postzustellung FROM dbo.dokument INNER JOIN " +
" dbo.dokumenttyp ON dbo.dokument.dokumenttypnr = dbo.dokumenttyp.dokumenttypnr where dbo.dokument.dokumentid='" + dokumentnode.Tag + "'", false, true);
//BP-Verifikation
//if (currentbp != Convert.ToInt32(db.dsdaten.Tables[0].Rows[0]["nrpar00"]))
@@ -383,6 +383,12 @@ namespace OnDoc.Versandstrasse
}
else
{
if (Convert.ToInt32(db.dsdaten.Tables[0].Rows[0]["Postzustellung"]) > 1)
{
set_nodeimage(dokumentnode, 2);
versandbereit = false;
add_errormessage(2, "Im Versand-Couvert liegt an erster Position ein Dokument, bei welchem die Postzustellung festgelegt wurde.");
}
if (Convert.ToInt32(db.dsdaten.Tables[0].Rows[0]["firstdoc"]) == 0)
{
if (nodecounter == 0) { set_nodeimage(dokumentnode, 4);versandbereit = false; add_errormessage(2,"Im Versand-Couvert liegt an erster Position ein Dokument, welches nicht als vorderstes Dokument tauglich ist"); }