Componentes.Terceros.DevExp.../official/x.19/ExpressQuantumGrid 5/Demos/CBuilder/ViewCardDemo/ViewCardDemoData.cpp
2007-09-09 11:27:22 +00:00

33 lines
1.1 KiB
C++

//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "ViewCardDemoData.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma link "cxClasses"
#pragma link "cxGridTableView"
#pragma link "cxStyles"
#pragma link "cxDBEditRepository"
#pragma link "cxEdit"
#pragma link "cxEditRepositoryItems"
#pragma link "cxGridCardView"
#pragma resource "*.dfm"
TViewCardDemoDataDM *ViewCardDemoDataDM;
//---------------------------------------------------------------------------
__fastcall TViewCardDemoDataDM::TViewCardDemoDataDM(TComponent* Owner)
: TDataModule(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TViewCardDemoDataDM::tblPersonsCalcFields(
TDataSet *DataSet)
{
tblPersonsFullName->AsString = tblPersonsFIRSTNAME->AsString + " " +
tblPersonsSECONDNAME->AsString + " " + "(" +
IntToStr(tblPersonsID->AsInteger) + ")";
}
//---------------------------------------------------------------------------