public override string ToHtml()
        {
            string result = Visualisation.HtmlReceiptNotAcknowledgedMessage;

            result = result.Replace(
                ":ElectronicServiceProvider:",
                (ElectronicServiceProvider == null) ? string.Empty : ElectronicServiceProvider.ToHtml());
            result += "\n";
            result  = result.Replace(
                ":DocumentURI:",
                (MessageURI == null) ? string.Empty : MessageURI.ToHtml());
            result += "\n";
            result  = result.Replace(
                ":TransportType:",
                (TransportType == null) ? string.Empty : TransportType.GetDisplay(TransportType.ToString()));
            result += "\n";
            result  = result.Replace(
                ":Discrepancies:",
                (Discrepancies == null) ? string.Empty : Discrepancies.GetDisplayList());
            result += "\n";
            result  = result.Replace(
                ":Applicant:",
                (Applicant == null) ? string.Empty : Applicant.ToHtml());
            result += "\n";
            result  = result.Replace(
                ":DocumentTypeURI:",
                (DocumentTypeURI == null) ? string.Empty : DocumentTypeURI.ToHtml());
            result += "\n";
            result  = result.Replace(
                ":DocumentTypeName:",
                (DocumentTypeName == null) ? string.Empty : DocumentTypeName.ToString());
            result += "\n";
            result  = result.Replace(
                ":ReceiptTime:",
                (MessageCreationTime == null) ? string.Empty : MessageCreationTime.ToString("dd.MM.yyyy hh:mm:ss"));
            result += "\n";
            //result = result.Replace(
            //    ":Signature:",
            //    (Signature == null) ? string.Empty : Signature.ToHtml());
            return(result);
        }
        public override string ToString()
        {
            string result = Visualisation.ReceiptAcknowledgedMessage;

            result = result.Replace(
                ":ElectronicServiceProvider:",
                (ElectronicServiceProvider == null) ? string.Empty : ElectronicServiceProvider.ToString());
            result = result.Replace(
                ":DocumentURI:",
                (DocumentURI == null) ? string.Empty : DocumentURI.ToString());
            result = result.Replace(
                ":TransportType:",
                (TransportType == null) ? string.Empty : TransportType.GetDisplay(TransportType.ToString()));
            result = result.Replace(
                ":Applicant:",
                (Applicant == null) ? string.Empty : Applicant.ToString());
            result = result.Replace(
                ":DocumentTypeURI:",
                (DocumentTypeURI == null) ? string.Empty : DocumentTypeURI.ToString());
            result = result.Replace(
                ":DocumentTypeName:",
                (DocumentTypeName == null) ? string.Empty : DocumentTypeName.ToString());
            result = result.Replace(
                ":CaseAccessIdentifier:",
                (CaseAccessIdentifier == null) ? string.Empty : CaseAccessIdentifier.ToString());
            result = result.Replace(
                ":ReceiptTime:",
                (ReceiptTime == null) ? string.Empty : ReceiptTime.ToString("dd.MM.yyyy hh:mm:ss"));
            result = result.Replace(
                ":RegisteredBy:",
                (RegisteredBy == null) ? string.Empty : RegisteredBy.ToString());
            //result = result.Replace(
            //    ":Signature:",
            //    (Signature== null) ? string.Empty : Signature.ToString());
            return(result);
        }