private ReceiptNotAcknowledgedMessage CreateReceiptNotAcknowledgedMessage( string registerIndex, string sequenceNumber, DateTime receiptOrSigningDate, ApplicationDataDo applicationDataDo, List<ElectronicDocumentDiscrepancyTypeNomenclature> discrepancies) { var receiptMessage = new ReceiptNotAcknowledgedMessage(); receiptMessage.MessageURI = new DocumentURI(); receiptMessage.MessageURI.RegisterIndex = registerIndex; receiptMessage.MessageURI.SequenceNumber = sequenceNumber; receiptMessage.MessageURI.ReceiptOrSigningDate = receiptOrSigningDate; receiptMessage.Applicant = applicationDataDo.ElectronicServiceApplicant; receiptMessage.ElectronicServiceProvider = applicationDataDo.ElectronicServiceProviderBasicData; receiptMessage.TransportType = "0006-000001"; //Чрез уеб базирано приложение; receiptMessage.DocumentTypeURI = applicationDataDo.DocumentTypeURI; receiptMessage.DocumentTypeName = applicationDataDo.DocumentTypeName; receiptMessage.MessageCreationTime = receiptOrSigningDate; receiptMessage.Discrepancies = new Discrepancies(); receiptMessage.Discrepancies.DiscrepancyCollection = new DiscrepancyCollection(); foreach (var discrepancy in discrepancies) { receiptMessage.Discrepancies.DiscrepancyCollection.Add(discrepancy.Uri); } return receiptMessage; }
public string XmlSerializeReceiptNotAcknowledgedMessage(ReceiptNotAcknowledgedMessage msg) { return XmlSerializerUtils.XmlSerializeObjectToString(msg); }