git-svn-id: https://192.168.0.254/svn/Componentes.Terceros.DevExpressVCL@29 05c56307-c608-d34a-929d-697000501d7a
29 lines
959 B
C++
29 lines
959 B
C++
//---------------------------------------------------------------------------
|
|
|
|
#include <vcl.h>
|
|
#pragma hdrstop
|
|
|
|
#include "CustomDrawDemoData.h"
|
|
//---------------------------------------------------------------------------
|
|
#pragma package(smart_init)
|
|
#pragma link "cxClasses"
|
|
#pragma link "cxStyles"
|
|
#pragma link "cxTL"
|
|
#pragma resource "*.dfm"
|
|
TCustomDrawDemoDataDM *CustomDrawDemoDataDM;
|
|
//---------------------------------------------------------------------------
|
|
__fastcall TCustomDrawDemoDataDM::TCustomDrawDemoDataDM(TComponent* Owner)
|
|
: TDataModule(Owner)
|
|
{
|
|
}
|
|
//---------------------------------------------------------------------------
|
|
|
|
void TCustomDrawDemoDataDM::SetParentValue(Variant AValue)
|
|
{
|
|
if ((tblDepartments->State == dsEdit) || (tblDepartments->State == dsInsert))
|
|
tblDepartments->FindField("ParentID")->Value = AValue;
|
|
}
|
|
//---------------------------------------------------------------------------
|
|
|
|
|