home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1997 May
/
VPR9705A.ISO
/
VPR_DATA
/
PROGRAM
/
CBTRIAL
/
SETUP
/
DATA.Z
/
CUSTDATA.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-14
|
840b
|
24 lines
//---------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "CustData.h"
//---------------------------------------------------------------------
#pragma resource "*.dfm"
TCustomerData *CustomerData;
//---------------------------------------------------------------------
__fastcall TCustomerData::TCustomerData(TComponent* AOwner)
: TDataModule(AOwner)
{
}
//---------------------------------------------------------------------
void __fastcall TCustomerData::LineItemsCalcFields(TDataSet *DataSet)
{
LineItemsExtendedPrice->Value =
LineItemsPrice->Value * ((100 - LineItemsDiscount->Value) / 100);
LineItemsTotal->Value =
LineItemsExtendedPrice->Value * LineItemsQty->Value;
}
//---------------------------------------------------------------------