コード例 #1
0
 public static RelationshipEventWrapper GetSample()
 {
     return(new RelationshipEventWrapper
     {
         CanEdit = true,
         Category = HistoryCategoryWrapper.GetSample(),
         Entity = EntityWrapper.GetSample(),
         Contact = ContactBaseWrapper.GetSample(),
         Created = (ApiDateTime)DateTime.UtcNow,
         CreateBy = EmployeeWraper.GetSample(),
         Files = new[] { FileWrapper.GetSample() },
         Content = @"Договорились встретиться с клиентом за обедом и обсудить коммерческое предложение
                                "
     });
 }
コード例 #2
0
        public HistoryCategoryWrapper ToHistoryCategoryWrapper(ListItem listItem)
        {
            var result = new HistoryCategoryWrapper(listItem)
            {
                                 RelativeItemsCount = DaoFactory.GetListItemDao().GetRelativeItemsCount(ListType.HistoryCategory,listItem.ID)

                             };

            return result;
        }