protected sealed override DataView LoadDataSource() {
   if (base.SelectedTabStrip == 0) {
     return RecordingBooksData.GetVolumeRecordingBooks(selectedRecorderOffice, RecordingBookStatus.Revision,
                                                       GetRecordingBooksFilter(), "RecordingBookNumber DESC, RecordingBookFullName ASC");
   } else if (base.SelectedTabStrip == 1) {
     if (txtSearchExpression.Value.Length != 0) {
       return IndexesData.FindByParty(selectedRecorderOffice, DateTime.MinValue, DateTime.MaxValue, txtSearchExpression.Value);
     } else {
       return new DataView();
     }
   } else {
     if (txtSearchExpression.Value.Length != 0) {
       return IndexesData.FindByProperty(selectedRecorderOffice, DateTime.MinValue, DateTime.MaxValue, txtSearchExpression.Value);
     } else {
       return new DataView();
     }
   }
 }
 protected sealed override DataView LoadDataSource() {
   if (base.SelectedTabStrip == 0) {
     selectedRecorderOffice = RecorderOffice.Empty;
     return RecordingBooksData.GetVolumeRecordingBooks(selectedRecorderOffice, RecordingBookStatus.Assigned,
                                                       GetRecordingBookFilter(), String.Empty);
   } else if (base.SelectedTabStrip == 1) {
     return RecordingBooksData.GetVolumeRecordingBooks(selectedRecorderOffice, RecordingBookStatus.Pending,
                                                       GetRecordingBookFilter(), String.Empty);
   } else if (base.SelectedTabStrip == 2) {
     return RecordingBooksData.GetVolumeRecordingBooks(selectedRecorderOffice, RecordingBookStatus.Revision,
                                                       GetRecordingBookFilter(), String.Empty);
   } else if (base.SelectedTabStrip == 3) {
     return RecordingBooksData.GetVolumeRecordingBooks(selectedRecorderOffice, RecordingBookStatus.Closed,
                                                       GetRecordingBookFilter(), String.Empty);
   } else {
     return new DataView();
   }
 }
Пример #3
0
 protected sealed override DataView LoadDataSource() {
   if (base.SelectedTabStrip == 0) {
     return DocumentsData.GetFilesFolders(RecordBookDirectory.DirectoryType, GetDirectoriesFilter(), "FilesFolderDisplayName DESC");
   } else if (base.SelectedTabStrip == 1) {
     return RecordingBooksData.GetVolumeRecordingBooks(selectedRecorderOffice, RecordingBookStatus.Pending,
                                                       GetRecordingBooksFilter(), "RecordingBookFullName DESC");
   } else if (base.SelectedTabStrip == 2) {
     return RecordingBooksData.GetVolumeRecordingBooks(selectedRecorderOffice, RecordingBookStatus.Assigned,
                                                       GetRecordingBooksFilter(), "RecordingBookFullName DESC");
   } else if (base.SelectedTabStrip == 3) {
     return RecordingBooksData.GetVolumeRecordingBooks(selectedRecorderOffice, RecordingBookStatus.Revision,
                                                       GetRecordingBooksFilter(), "RecordingBookFullName");
   } else if (base.SelectedTabStrip == 4) {
     return RecordingBooksData.GetVolumeRecordingBooks(selectedRecorderOffice, RecordingBookStatus.Closed,
                                                       GetRecordingBooksFilter(), "RecordingBookFullName");
   } else {
     return new DataView();
   }
 }