Example #1
0
        /// <summary>
        /// Existing <see cref="DocumentInfo"/> object is updated by <see cref="DocumentEdit"/> Saved event.
        /// </summary>
        internal static DocumentInfo LoadInfo(DocumentEdit documentEdit)
        {
            var info = new DocumentInfo();

            info.UpdatePropertiesOnSaved(documentEdit);
            return(info);
        }
Example #2
0
 /// <summary>
 /// Properties on <see cref="DocumentInfo"/> object are updated by <see cref="DocumentEdit"/> Saved event.
 /// </summary>
 internal void UpdatePropertiesOnSaved(DocumentEdit documentEdit)
 {
     LoadProperty(DocumentIdProperty, documentEdit.DocumentId);
     LoadProperty(DocumentReferenceProperty, documentEdit.DocumentReference);
     LoadProperty(DocumentDateProperty, (SmartDate)documentEdit.DocumentDate);
     LoadProperty(SubjectProperty, documentEdit.Subject);
     LoadProperty(SenderProperty, documentEdit.Sender);
     LoadProperty(ReceiverProperty, documentEdit.Receiver);
 }
Example #3
0
 /// <summary>
 /// Creates or loads a <see cref="DocumentEditGetter"/> unit of objects, based on given criteria.
 /// </summary>
 /// <param name="crit">The create/fetch criteria.</param>
 protected void DataPortal_Fetch(Criteria1 crit)
 {
     if (crit.CreateDocumentEdit)
     {
         LoadProperty(DocumentProperty, DocumentEdit.NewDocumentEdit());
     }
     else
     {
         LoadProperty(DocumentProperty, DocumentEdit.GetDocumentEdit(crit.DocumentId));
     }
     LoadProperty(FoldersProperty, FolderNVL.GetFolderNVL());
 }