Пример #1
0
        private MailboxDocument ToModel(IncomingMailboxViewModel doc)
        {
            var result = new MailboxDocument();

            result.AssignedBy        = doc.DBModel.AssignedByLogin;
            result.AssignedTo        = doc.DBModel.AssignedToCCControl;
            result.AssignmentDate    = doc.DBModel.AssignmentDate;
            result.DocLibrary        = doc.DBModel.DocumentLibraryId;
            result.DocumentDate      = doc.DBModel.DocumentDate;
            result.DocumentTitle     = doc.DBModel.DocumentSubject;
            result.ListItemId        = doc.DBModel.ListItemId;
            result.DocumentSummary   = doc.DBModel.DocumentSummary;
            result.SiteUrl           = doc.DBModel.SiteUrl;
            result.Title             = doc.DBModel.DocumentTitle;
            result.ListItemId        = doc.DBModel.ListItemId;
            result.MailboxDocumentId = doc.DBModel.MailboxDocumentId;
            result.DocumentURL       = doc.DBModel.DocumentUrl;
            result.AssignedToCC      = doc.DBModel.AssignedToCCControl;
            result.DocumentStatus    = doc.DBModel.AssignmentStatus;
            return(result);
        }
Пример #2
0
        private MailboxDocument ToModel(DoIncomingViewModel doc)
        {
            var result = new MailboxDocument();

            result.AssignedBy        = doc.AssignedBy;
            result.AssignedTo        = doc.AssignedTo;
            result.AssignmentDate    = doc.AssignmentDate;
            result.DocLibrary        = doc.DocLibrary;
            result.DocumentDate      = doc.DocumentDate;
            result.DocumentTitle     = doc.DocumentSubject;
            result.ListItemId        = doc.ListItemId;
            result.DocumentSummary   = doc.DocumentSummary;
            result.SiteUrl           = doc.SiteUrl;
            result.Title             = doc.Title;
            result.ListItemId        = doc.ListItemId;
            result.MailboxDocumentId = doc.AssignmentId;
            result.DocumentURL       = doc.DocumentURL;
            result.AssignedToCC      = doc.AssignedToCC;
            result.DocumentStatus    = doc.DocumentStatus;
            return(result);
        }
Пример #3
0
        private IncomingMailboxViewModel ToViewModel(MailboxDocument doc)
        {
            var result = new IncomingMailboxViewModel();

            result.DBModel.AssignedByLogin     = doc.AssignedBy;
            result.DBModel.AssignedToControl   = doc.AssignedTo;
            result.DBModel.AssignmentDate      = doc.AssignmentDate;
            result.DBModel.DocumentLibraryId   = doc.DocLibrary;
            result.DBModel.DocumentDate        = doc.DocumentDate;
            result.DBModel.DocumentSubject     = doc.DocumentTitle;
            result.DBModel.ListItemId          = doc.ListItemId;
            result.DBModel.DocumentSummary     = doc.DocumentSummary;
            result.DBModel.SiteUrl             = doc.SiteUrl;
            result.DBModel.DocumentTitle       = doc.Title;
            result.DBModel.ListItemId          = doc.ListItemId;
            result.DBModel.MailboxDocumentId   = doc.MailboxDocumentId;
            result.DBModel.DocumentUrl         = doc.DocumentURL;
            result.DBModel.AssignedToCCControl = doc.AssignedToCC;
            result.DBModel.AssignmentStatus    = doc.DocumentStatus;
            return(result);
        }