Files
OnDoc/Model/OnDocApiDoc.cs
Stefan Hutter bfa6a27e11 update 20260303
2026-03-03 13:49:14 +01:00

201 lines
7.6 KiB
C#

using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Security.Permissions;
using System.Security.Policy;
using System.Text;
using System.Threading.Tasks;
namespace Model
{
public class DocCreate
{
private string _Versandstrasse = "false";
public string Versandstrasse
{ get => _Versandstrasse; set => _Versandstrasse = value ?? "false"; }
private string _VersandDirekt = "";
public string VersandDirekt { get =>_VersandDirekt; set =>_VersandDirekt = value ?? ""; }
private string _VersandOption = "B1_Post";
public string VersandOption { get => _VersandOption; set => _VersandOption =value?? "B1_POST"; }
private string _GASAdresse = "";
public string GASAdresse { get =>_GASAdresse; set => _GASAdresse = value??""; }
public string GASCouvert { get; set; }
public string ResultOnDoc { get; set; }
public string ResultSender { get; set; }
public string ResultFileType { get; set; }
public string ConfirmationMail { get; set; }
private string _ConfirmationMailAddress = "";
public string ConfirmationMailAddress { get => _ConfirmationMailAddress; set => _ConfirmationMailAddress=value??""; }
public string VorlagenTypID { get; set; }
public string Paket { get; set; }
public string PartnerNr { get; set; }
public string PersonNr { get; set; }
public string TGNrErsteller { get; set; }
public string TGNrVerantwortlich { get; set; }
public string TGNrUnterschriftLinks { get; set; }
public string TGNrUnterschriftRechts { get; set; }
public string UnterschriftLinksGeprueft { get; set; }
public string UnterschriftRechtsGeprueft { get; set; }
public string OhneUnterschrift { get; set; }
public string FaksimileUnterschrift { get; set; }
public string PrintLogo { get; set; }
public string Dokumentdatum { get; set; }
public string Bezeichnung { get; set; }
private string _Herkunftsapplikation = "";
public string Herkunftsapplikation
{ get => _Herkunftsapplikation; set => _Herkunftsapplikation = value ?? ""; }
public string OnDocSignCheck { get; set; }
private string _Reference = "";
public string Reference { get => _Reference; set => _Reference = value ?? ""; }
public List<attribute> APIValues { get; set; }
public List<textreplace> TextToReplace { get; set; }
public List<Listen> Listen { get; set; }
}
public class Liste
{
public string Listname { get; set; }
public string Placeholder { get; set; }
public string Tag { get; set; }
public string Value { get; set; }
}
public class Listen
{
public List<Liste> Liste { get; set; }
}
public class attribute
{
public string Tag { get; set; }
public string Value { get; set; }
private string _Type = "";
public string Type { get => _Type; set => _Type = value ?? ""; }
}
public class textreplace
{
public string TextToFind { get; set; }
public string TextToReplace { get; set; }
}
public class JsonTable
{
public List<Dictionary<string, object>> Listen { get; set; }
}
public class DokumentCreate
{
public string Versandstrasse { get; set; }
public string VersandDirekt { get; set; } = "";
public string VersandVerantwortlich { get; set; }
public string VersandOption { get; set; } = "B2_Post";
public string GASAdresse { get; set; } = "";
public string GASCouvert { get; set; } = "C5mini";
public string ResultOnDoc { get; set; }
public string ResultSender { get; set; }
public string ResultFileType { get; set; }
public string ConfirmationMail { get; set; }
private string _ConfirmationMailAddress = "";
public string ConfirmationMailAddress { get => _ConfirmationMailAddress; set => _ConfirmationMailAddress = value ?? ""; }
public string Herkunftsapplikation { get; set; }
public string OnDocSignCheck { get; set; }
public string Paketbezeichnung { get; set; }
public string Reference { get; set; }
public List<APIDokument> Dokumente { get; set; }
}
public class APIDokument
{
public string VorlagenTypID { get; set; }
public string PartnerNr { get; set; }
public string TGNrErsteller { get; set; }
public string TGNrVerantwortlich { get; set; }
public string TGNrUnterschriftLinks { get; set; }
public string TGNrUnterschriftRechts { get; set; }
public string UnterschriftLinksGeprueft { get; set; }
public string UnterschriftRechtsGeprueft { get; set; }
public string OhneUnterschrift { get; set; }
public string FaksimileUnterschrift { get; set; }
public string PrintLogo { get; set; }
public string Dokumentdatum { get; set; }
public string Bezeichnung { get; set; }
public List<attribute> APIValues { get; set; }
public List<textreplace> TextToReplace { get; set; }
public string PDFDoc { get; set; }
public string DokumentID { get; set; } = "";
}
public class APIDokumentResult
{
public string dokumentid { get; set; }
public string dokument { get; set; }
}
public class CLMDocItem
{
public string itemname;
public string itemtag;
public string itemvalue;
public string doclinkname;
public string type;
public string field;
public string bmstart;
public string bmend;
public string top;
public string left;
public string width;
public string height;
public string tablevalues;
public string format;
public bool done = false;
}
//public class CLMDocItems
//{
// public List<docitem> CLMDocItem { get; set; }
//}
public class ArchiveDoc
{
public string _DokumentID = "";
public string DokumentID { get => _DokumentID; set => _DokumentID = value ?? ""; }
private string _DokumenttypNr = "";
public string DokumenttypNr { get => _DokumenttypNr; set => _DokumenttypNr = value ?? ""; }
public string _PartnerNr = "";
public string PartnerNr { get => _PartnerNr; set => _PartnerNr = value ?? ""; }
private string _Status = "";
public string Status { get => _Status; set => _Status = value ?? ""; }
private string _Herkunftsapplikation = "";
public string Herkunftsapplikation { get => _Herkunftsapplikation; set => _Herkunftsapplikation = value ?? ""; }
private string _Reference = "";
public string Reference { get => _Reference; set => _Reference = value ?? ""; }
private string _DokumentDatum = "";
public string DokumentDatum { get => _DokumentDatum; set => _DokumentDatum = value ?? ""; }
private string _TGCreatedBy = "";
private string _Bezeichung = "";
public string Bezeichnung { get => _Bezeichung; set => _Bezeichung = value ?? ""; }
public string TGCreatedBy { get => _TGCreatedBy; set => _TGCreatedBy = value ?? ""; }
private string _TGResponsible = "";
public string TGResponsible { get => _TGResponsible; set => _TGResponsible = value ?? ""; }
private string _Dokument = "";
public string Dokument { get => _Dokument; set => _Dokument = value ?? ""; }
private string _DokumentType = "";
public string DokumentType { get => _DokumentType; set => _DokumentType = value ?? "PDF"; }
}
}