public int GetCount(object refNoteID)
        {
            ViewCount.Clear();
            int startRow  = 0;
            int totalRows = 0;
            var filters   = InitFilters(refNoteID, null);

            var list = ViewCount.Select(null,
                                        new [] { refNoteID },
                                        null,
                                        new [] { typeof(CRActivity.createdDateTime).Name },
                                        new[] { true }, filters.ToArray(), ref startRow, 0, ref totalRows);
            PXResult pxRes = (PXResult)list[0];

            return(pxRes.RowCount.GetValueOrDefault(0));
        }
Пример #2
0
 public int GetCount(object refNoteID)
 {
     ViewCount.Clear();
     return((int)((PXResult)ViewCount.SelectSingle(refNoteID)).RowCount);
 }