Exemplo n.º 1
0
 public Document()
 {
     _initId                  = null;
     NewdocumentType          = new DocumentType(this);
     EditableIssuingAuthority = new IssuingAuthority(this);
     initDocumentTypes();
     initIssuingAuthority();
 }
Exemplo n.º 2
0
        public void AddSomeDocument()
        {
            var document = new Document();

            document.DocumentType     = DocumentType.GetTableById(2);
            document.IssuingAuthority = IssuingAuthority.GetTableById(3);
            document.Series           = "AB";
            document.Number           = "34567894455688";
            document.Date_of_issue    = new DateTime(2020, 08, 08);
            document.Update();
        }
Exemplo n.º 3
0
 Document(int?initId, string initSeries, string initNumber, DateTime initDate_of_issue,
          DocumentType initDocumentType, IssuingAuthority initIssuing_Authority)
 {
     NewdocumentType          = new DocumentType(this);
     EditableIssuingAuthority = new IssuingAuthority(this);
     Id               = _initId = initId;
     Series           = _initSeries = initSeries;
     Number           = _initNumber = initNumber;
     Date_of_issue    = _initDate_of_issue = initDate_of_issue;
     DocumentType     = _initDocumentType = initDocumentType;
     IssuingAuthority = _initIssuing_Authority = initIssuing_Authority;
     initDocumentTypes();
     initIssuingAuthority();
 }