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 ToHtml()
        {
            string result = Visualisation.HtmlReceiptAcknowledgedMessage;

            result = result.Replace(
                ":ElectronicServiceProvider:",
                (ElectronicServiceProvider == null) ? string.Empty : ElectronicServiceProvider.ToHtml());
            result = result.Replace(
                ":DocumentURI:",
                (DocumentURI == null) ? string.Empty : DocumentURI.ToHtml());
            result = result.Replace(
                ":TransportType:",
                (TransportType == null) ? string.Empty : TransportType.GetDisplay(TransportType.ToString()));
            result = result.Replace(
                ":Applicant:",
                (Applicant == null) ? string.Empty : Applicant.ToHtml());
            result = result.Replace(
                ":DocumentTypeURI:",
                (DocumentTypeURI == null) ? string.Empty : DocumentTypeURI.ToHtml());
            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.ToHtml());
            //result = result.Replace(
            //    ":Signature:",
            //    (Signature == null) ? string.Empty : Signature.ToHtml());
            return(result);
        }