update 20260303

This commit is contained in:
Stefan Hutter
2026-03-03 13:49:14 +01:00
parent 30d047e33d
commit bfa6a27e11
653 changed files with 455612 additions and 410 deletions

View File

@@ -144,6 +144,7 @@ namespace OnDoc.Versandstrasse
lblserienbrief.Text = db.dsdaten.Tables[0].Rows[4]["textblock"].ToString();
lblpostausgang.MaximumSize = new Size(500, 60);
db = null;
@@ -316,12 +317,14 @@ namespace OnDoc.Versandstrasse
db1 = null;
return false;
}
db1 = null;
set_nodeimage(node, 1);
return true;
}
DB db = new DB(AppParams.connectionstring);
if (node.Nodes.Count > 0)
{
Versanddokument vd = node.Nodes[0].TagObject as Versanddokument;
@@ -854,6 +857,7 @@ namespace OnDoc.Versandstrasse
if (rbapost.Checked) { txtVersandoption.Text = "A_POST"; }
if (rbb1post.Checked) { txtVersandoption.Text = "B1_POST"; }
if (rbb2post.Checked) { txtVersandoption.Text = "B2_POST"; }
if (rbeinschreiben.Checked) { txtVersandoption.Text = "EINSCHREIBEN"; }
this.txtRückantwort.Text = txtadresse.Text.ToString();
this.txtRückantwortSB.Text = txtRückantwort.Text;
this.txtversandartsb.Text = txtVersandoption.Text;
@@ -1274,6 +1278,7 @@ namespace OnDoc.Versandstrasse
if (rbapost.Checked) { versandoption = "A_POST"; }
if (rbb1post.Checked) { versandoption = "B1_POST"; }
if (rbb2post.Checked) { versandoption = "B2_POST"; }
if (rbeinschreiben.Checked) { versandoption = "EINSCHREIBEN"; }
Versandpaket vp = treeViewAdv1.SelectedNode.TagObject as Versandpaket; ;
vp.Versandoption = versandoption;
@@ -1353,6 +1358,9 @@ namespace OnDoc.Versandstrasse
rbb1post.Checked = true; break;
case "B2_POST":
rbb2post.Checked = true; break;
case "EINSCHREIBEN":
rbeinschreiben.Checked = true;break;
default:
rbb2post.Checked = true; break;
}
@@ -1911,5 +1919,34 @@ namespace OnDoc.Versandstrasse
{
Refresh_VersandCouverts();
}
private void rbeinschreiben_CheckedChanged(object sender, EventArgs e)
{
Versandpaket vp = treeViewAdv1.SelectedNode.TagObject as Versandpaket;
DB db = new DB(AppParams.connectionstring);
try
{
if (rbeinschreiben.Checked == true)
{
db.Get_Tabledata("Select dbo.fnkt_ondoc_check_landcode(" + vp.partnernr.ToString() + ")", false, true);
try
{
if (Convert.ToInt32(db.dsdaten.Tables[0].Rows[0][0]) == 1)
{
return;
}
else
{
MessageBox.Show("Einschreiben kann nur für Schweiz und Deutschland verwendet werden." + Environment.NewLine + "Bitte prüfe im ersten Dokument die Zustelladresse.", "Versandsart", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
catch { }
}
}
catch { }
finally { db = null; vp = null; }
}
}
}