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

  1. //----------------------------------------------------------------------------
  2. //Borland C++Builder
  3. //Copyright (c) 1987, 1997 Borland International Inc. All Rights Reserved.
  4. //----------------------------------------------------------------------------
  5. //---------------------------------------------------------------------------
  6. #ifndef maindataH
  7. #define maindataH
  8. //---------------------------------------------------------------------------
  9. #include <vcl\Classes.hpp>
  10. #include <vcl\Controls.hpp>
  11. #include <vcl\StdCtrls.hpp>
  12. #include <vcl\Forms.hpp>
  13. #include <vcl\DBTables.hpp>
  14. #include <vcl\DB.hpp>
  15. //---------------------------------------------------------------------------
  16. class TDMMain : public TDataModule
  17. {
  18. __published:    // IDE-managed Components 
  19.     TDataSource *OrdersSoruce;
  20.     TTable *tbCustomer;
  21.     TFloatField *tbCustomerCustNo;
  22.     TStringField *tbCustomerCompany;
  23.     TStringField *tbCustomerAddr1;
  24.     TStringField *tbCustomerAddr2;
  25.     TStringField *tbCustomerCity;
  26.     TStringField *tbCustomerState;
  27.     TStringField *tbCustomerZip;
  28.     TStringField *tbCustomerCountry;
  29.     TStringField *tbCustomerPhone;
  30.     TStringField *tbCustomerFAX;
  31.     TFloatField *tbCustomerTaxRate;
  32.     TStringField *tbCustomerContact;
  33.     TDateTimeField *tbCustomerLastInvoiceDate;
  34.     TTable *tbEmployee;
  35.     TDataSource *CustomerSource;
  36.     TDataSource *EmployeeSource;
  37.     TTable *tbOrders;
  38.     TFloatField *tbOrdersOrderNo;
  39.     TFloatField *tbOrdersCustNo;
  40.     TDateTimeField *tbOrdersSaleDate;
  41.     TDateTimeField *tbOrdersShipDate;
  42.     TIntegerField *tbOrdersEmpNo;
  43.     TStringField *tbOrdersShipToContact;
  44.     TStringField *tbOrdersShipToAddr1;
  45.     TStringField *tbOrdersShipToAddr2;
  46.     TStringField *tbOrdersShipToCity;
  47.     TStringField *tbOrdersShipToState;
  48.     TStringField *tbOrdersShipToZip;
  49.     TStringField *tbOrdersShipToCountry;
  50.     TStringField *tbOrdersShipToPhone;
  51.     TStringField *tbOrdersShipVIA;
  52.     TStringField *tbOrdersPO;
  53.     TStringField *tbOrdersTerms;
  54.     TStringField *tbOrdersPaymentMethod;
  55.     TCurrencyField *tbOrdersItemsTotal;
  56.     TFloatField *tbOrdersTaxRate;
  57.     TCurrencyField *tbOrdersFreight;
  58.     TCurrencyField *tbOrdersAmountPaid;
  59.     TStringField *tbOrdersCustomerName;
  60.     TStringField *tbOrdersEmployeeLastName;
  61.     TStringField *tbOrdersEmployeeFirstName;
  62.     TStringField *tbOrdersEmployeeFullName;
  63.     void __fastcall tbOrdersCalcFields(TDataSet *DataSet);
  64. private:        // User declarations
  65. public:         // User declarations
  66.     virtual __fastcall TDMMain(TComponent* Owner);
  67. };
  68. //---------------------------------------------------------------------------
  69. extern TDMMain *DMMain;
  70. //---------------------------------------------------------------------------
  71. #endif
  72.