home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 May / Pcwk0597.iso / borland / cb / setup / cbuilder / data.z / DATAMOD.CPP < prev    next >
C/C++ Source or Header  |  1997-02-28  |  1KB  |  31 lines

  1. //----------------------------------------------------------------------------
  2. //Borland C++Builder
  3. //Copyright (c) 1987, 1997 Borland International Inc. All Rights Reserved.
  4. //----------------------------------------------------------------------------
  5. //---------------------------------------------------------------------------
  6. #include <vcl.h>
  7. #pragma hdrstop
  8.  
  9. #include "DataMod.h"
  10. #include "TermMod.h"
  11. //---------------------------------------------------------------------------
  12. #pragma resource "*.dfm"
  13. TData *Data;
  14. //---------------------------------------------------------------------------
  15. __fastcall TData::TData(TComponent* Owner)
  16.   : TCustomerData(Owner)
  17. {
  18. }
  19. //---------------------------------------------------------------------------
  20. void __fastcall TData::CustomersFilterRecord(TDataSet *DataSet,
  21.       bool &Accept)
  22. {
  23.   Accept = (CustomersState->Value == Cust->FilterText->Text);  
  24. }
  25. //---------------------------------------------------------------------
  26. void __fastcall TData::OrdersFilterRecord(TDataSet *DataSet,
  27.       bool &Accept)
  28. {
  29.   Accept = (OrdersTerms->Value == Term->FilterText->Text);  
  30. }
  31. //---------------------------------------------------------------------