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();
     }
   }
 }
コード例 #2
0
        } // GetLRSTransaction

        // GET: /Home/GetParties
        public JsonResult GetParties(string name)
        {
            List <PartyIndexData> list = IndexesData.FindParty(name, String.Empty);

            return(base.Json(list, JsonRequestBehavior.AllowGet));
        }