示例#1
0
        /// <summary>
        /// Factory method. Loads a <see cref="OutgoingInfo"/> object from the given OutgoingInfoDto.
        /// </summary>
        /// <param name="data">The <see cref="OutgoingInfoDto"/>.</param>
        /// <returns>A reference to the fetched <see cref="OutgoingInfo"/> object.</returns>
        internal static OutgoingInfo GetOutgoingInfo(OutgoingInfoDto data)
        {
            OutgoingInfo obj = new OutgoingInfo();

            obj.Fetch(data);
            return(obj);
        }
示例#2
0
        /// <summary>
        /// Loads a <see cref="OutgoingInfo"/> object from the given <see cref="OutgoingInfoDto"/>.
        /// </summary>
        /// <param name="data">The OutgoingInfoDto to use.</param>
        private void Fetch(OutgoingInfoDto data)
        {
            // Value properties
            LoadProperty(RegisterIdProperty, data.RegisterId);
            LoadProperty(RegisterDateProperty, data.RegisterDate);
            LoadProperty(DocumentTypeProperty, data.DocumentType);
            LoadProperty(DocumentReferenceProperty, data.DocumentReference);
            LoadProperty(DocumentEntityProperty, data.DocumentEntity);
            LoadProperty(DocumentDeptProperty, data.DocumentDept);
            LoadProperty(DocumentClassProperty, data.DocumentClass);
            LoadProperty(DocumentDateProperty, data.DocumentDate);
            LoadProperty(SubjectProperty, data.Subject);
            LoadProperty(SendDateProperty, data.SendDate);
            LoadProperty(RecipientNameProperty, data.RecipientName);
            LoadProperty(RecipientTownProperty, data.RecipientTown);
            LoadProperty(NotesProperty, data.Notes);
            LoadProperty(ArchiveLocationProperty, data.ArchiveLocation);
            var args = new DataPortalHookArgs(data);

            OnFetchRead(args);
        }