信息b的代码如下:
unit czYWXX;
interface
uses
Business.System, Business.Model, Business.Data;
type
TczYWXX = class(TInfo)
DataSetBZSJJ1: TSQLDataSet;
private
{private declarations}
public
procedure Test;
{public declarations}
end;
implementation
procedure TczYWXX.Test;
begin
business.Forms.Dialogs.ShowMessage('dd');
end;
信息A的代码如下
uses
Business.System, Business.Model, Business.Data,CZYWXX;
type
TYWXX1 = class(TInfo)
DataSetBZSJJ1: TSQLDataSet;
procedure DataSetBZSJJ1AfterApplyUpdates(Sender: TObject; var OwnerData: object);
private
{private declarations}
public
{public declarations}
end;
implementation
procedure TYWXX1.DataSetBZSJJ1AfterApplyUpdates(Sender: TObject; var OwnerData: object);
var
lInfo : TczYWXX;
begin
lInfo :=TczYWXX.Create(self.Context);
lInfo.Test;
end; |