Курсовая работа: Автоматизация заказа блюд в ресторане
procedure TMainForm.T_spisokBAfterPost(DataSet: TDataSet);
begin
T_spisokB.Refresh;
end;
{****************************Products********************888}
procedure TMainForm.T_productsBeforeInsert(DataSet: TDataSet);
begin
MKeyvalue:=0;
repeat
MKeyvalue:=MKeyvalue+1;
until varType(T_products.lookup('IDP',MKeyvalue,'IDP'))=varnull;
end;
procedure TMainForm.T_productsAfterInsert(DataSet: TDataSet);
begin
T_products.edit;
T_productsIDP.Value:=MKeyvalue;
T_productsIdEI.Value:=1;
T_products.Post;
InformForm.DBGrid3.Refresh;
end;
procedure TMainForm.T_productsAfterPost(DataSet: TDataSet);
begin
T_products.Refresh;
end;
{*********************TypeB****************************}
procedure TMainForm.T_EIBeforeInsert(DataSet: TDataSet);
begin
MKeyvalue:=0;
repeat