update 20250202

This commit is contained in:
Stefan Hutter
2025-02-02 18:07:10 +01:00
parent f1f74f8cc5
commit 293b615547
133 changed files with 333088 additions and 333 deletions

View File

@@ -67,6 +67,7 @@ namespace OnDoc.UIControls
public bool Erstellung_in_Office = false;
public bool FillOffice = false;
public string CompatibilityMode = "";
public bool signiert = false;
public string dokumentid { get; set; } = "";
@@ -598,7 +599,7 @@ namespace OnDoc.UIControls
}
public void Update_DocGenData()
{
docgendata.partnernr = this.partnernr.ToString();
docgendata.inhaberadresse = this.txtPartnerInhaber.Text;
docgendata.zustelladresse = this.txtPartnerZusteller.Text;
@@ -646,13 +647,14 @@ namespace OnDoc.UIControls
public void update_dokdata(ref clsDocData dokdata)
{
if (this.signiert == true) { dokdata.remove_signature = true; }
dokdata.PartnerNr = docgendata.partnernr;
dokdata.UseEDOKA_Values = "True";
try
{
dokdata.postzustellung = cbboxpostzustellung.SelectedValue.ToString();
} catch { dokdata.postzustellung = "0"; }
dokdata.DokumenttypNr = docgendata.dokumenttypnr;
@@ -743,6 +745,8 @@ namespace OnDoc.UIControls
if (dokdata.approval1 == 1 && dokdata.approval2 == 1 )
{
dokdata.approved = 1;
dokdata.signiert = false;
dokdata.sign = true;
}
}
@@ -1041,6 +1045,8 @@ namespace OnDoc.UIControls
this.cbboxpostzustellung.SelectedValue = Convert.ToInt32(dr["postzustellung"]);
this.DateDokumentDatum.Value = Convert.ToDateTime(dr["erstellungsdatum"]);
this.DateTerminText.Text = Convert.ToDateTime(dr["termin"]).ToString();
this.signiert = Convert.ToBoolean(dr["signiert"]) == true;
if (dr["zustelladresse"].ToString() != "") this.txtPartnerZusteller.Text = dr["zustelladresse"].ToString();
Get_DokWertList(ref db, dokumentid, 0);