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

  1. //---------------------------------------------------------------------------
  2. // Borland C++Builder
  3. // Copyright (c) 1987, 1997 Borland International Inc.  All Rights Reserved.
  4. //---------------------------------------------------------------------------
  5. //---------------------------------------------------------------------------
  6. #include <vcl\vcl.h>
  7. #pragma hdrstop
  8.  
  9. #include "PickRep.h"
  10. #include "Datamod.h"
  11. //---------------------------------------------------------------------------
  12. #pragma resource "*.dfm"
  13. TPickOrdDlg *PickOrdDlg;
  14. //---------------------------------------------------------------------------
  15. __fastcall TPickOrdDlg::TPickOrdDlg(TComponent* Owner)
  16.     : TForm(Owner)
  17. {
  18. }
  19. //---------------------------------------------------------------------------
  20. void __fastcall TPickOrdDlg::OrderGridDblClick(TObject *Sender)
  21. {
  22.   OrderNumber = OrderGrid->Fields[0]->AsInteger;
  23.   ModalResult = mrOk;
  24. }
  25. //---------------------------------------------------------------------------
  26. long TPickOrdDlg::GetOrderNo(){  return  OrderNo;}
  27. //---------------------------------------------------------------------------
  28. void TPickOrdDlg::SetOrderNo(long value){  OrderNo = value; }
  29. //---------------------------------------------------------------------------
  30. void __fastcall TPickOrdDlg::OkBtnClick(TObject *Sender)
  31. {
  32.   OrderNumber = OrderGrid->Fields[0]->AsInteger;
  33.   ModalResult = mrOk;
  34. }
  35. //---------------------------------------------------------------------------
  36. void __fastcall TPickOrdDlg::FormShow(TObject *Sender)
  37. {
  38.   OrderGrid->DataSource->DataSet->Active = true;
  39. }
  40. //---------------------------------------------------------------------------
  41.