Unit DBInterface;
...
procedure Get_Customer_Terminals;
// Kundenterminals von allen Kunden der DB werden ausgelesen
var TEID, TMID, VSID, Syst, Knot :Integer;
Bez, Beschr, Typ, IP_A, Schnitts, Firmbez,FirmW, TermProg, KartTyp, Zubeh:
String;
begin
with D_DataModule.DataSet
do
begin
SelectSQL.Clear;
SelectSQL.Text := '
select * from V_CUSTOMER_TERMINALS v where v.vsid = ''
' + (inttostr(reg.Versions_ID)) + '
''
';
Open;
end;
while not D_DataModule.DataSet.Eof
do
begin
TEID := D_DataModule.DataSet.FieldByName('
TEID').AsInteger;
TMID := D_DataModule.DataSet.FieldByName('
TMID').AsInteger;
...
Zubeh := D_DataModule.dataset.FieldByName('
ZUBEH').value;
reg.Add_Cust_Terminal(Bez + Beschr + Typ,TMID, VSID, Syst, Knot, Schnitts, IP_A, Firmbez, FirmW, TermProg, KartTyp, Zubeh);
D_DataModule.DataSet.Next;
end;
D_DataModule.DataSet.Close;
end;
Unit DeclareTypes;
...
procedure TSoftwarePaket.Add_Cust_Terminal(TMNA1:
String; TMID, VSID, Syst, Knot: Integer; Schnittst,
IP, Firmenbez, Firmware, TermProg, KartTyp, Zubehoer:
String);
begin
with CustomerTerminal
do
begin
TMNA := TMNA1;
TEID := TEID;
...
Zubehoer := Zubehoer;
end;
LCustomerTerminal.Add(CustomerTerminal);
...
End;