예제 #1
0
        string IViewRegistryTask.GetItemsPage(Guid userId, int registryId, int pageNumber, int pageSize, DateTime startDate, DateTime endDate,
                                              string searchIncomeDate, string searchDocumentDate, string searchDocumentNumber, string searchSenderName,
                                              int searchCorrespondenceCategory, int searchCorrespondenceType, string searchCategoryValue,
                                              int searchCorrespondenceKind, string searchTypeValue, int searchCorrespondenceStatus, int searchCorrespondenceDept, int searchCorrespondenceWorker, bool isRF)
        {
            int startingIndex = pageNumber; //(pageNumber-1)*pageSize+1;

            using (XmlReader xr = dao.GetItemsPage(userId, registryId, startingIndex, pageSize, startDate, endDate, searchIncomeDate,
                                                   searchDocumentDate, searchDocumentNumber, searchSenderName, searchCorrespondenceCategory,
                                                   searchCorrespondenceType, searchTypeValue, searchCorrespondenceKind, searchCategoryValue, searchCorrespondenceStatus, searchCorrespondenceDept, searchCorrespondenceWorker, out this.totalItems, isRF))
            {
                if (!xr.Read())
                {
                    return(string.Empty);
                }
                return(xr.ReadOuterXml());
            }
        }