ClassesData.pas
资源名称:delphi.rar [点击查看]
上传用户:fh681027
上传日期:2022-07-23
资源大小:1959k
文件大小:1k
源码类别:
Delphi控件源码
开发平台:
Delphi
- unit ClassesData;
- interface
- uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
- IBCustomDataSet, IBDatabase, Db, IBQuery;
- type
- TDmClasses = class(TDataModule)
- IBTransaction1: TIBTransaction;
- IBClassReg: TIBDataSet;
- dsClasses: TDataSource;
- IBClasses: TIBDataSet;
- IBPeopleReg: TIBDataSet;
- dsReg: TDataSource;
- procedure IBClassRegAfterInsert(DataSet: TDataSet);
- procedure IBPeopleRegAfterInsert(DataSet: TDataSet);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
- var
- DmClasses: TDmClasses;
- implementation
- uses MainData;
- {$R *.DFM}
- procedure TDmClasses.IBClassRegAfterInsert(DataSet: TDataSet);
- begin
- IBClassReg.FieldByName ('ID_CLASS').AsString :=
- IBClasses.FieldByName ('ID').AsString;
- end;
- procedure TDmClasses.IBPeopleRegAfterInsert(DataSet: TDataSet);
- begin
- IBPeopleReg.FieldByName ('ID_CLASSES_REG').AsString :=
- IBClassReg.FieldByName ('ID').AsString;
- end;
- end.