AbetoDesign_FactuGES2/Source/Modulos/Contactos/Model/uBizInstaladoresServer.pas

108 lines
2.8 KiB
ObjectPascal

unit uBizInstaladoresServer;
interface
uses
schContactosServer_Intf, uDAInterfaces, uDADelta,
uDADataTable, uDABusinessProcessor, uBizContactosServer;
const
BIZ_SERVER_INSTALADOR = 'Server.Instalador';
type
TBizInstaladorServer = class(TBizContactosServer)
protected
procedure Insert_Datos_Contacto(aChange: TDADeltaChange); override;
procedure Update_Datos_Contacto(aChange: TDADeltaChange); override;
procedure Delete_Datos_Contacto(aChange: TDADeltaChange); override;
end;
implementation
uses
uDataModuleServer, uDAClasses,
schContactosClient_Intf, uBusinessUtils;
{ TBizInstaladorServer }
procedure TBizInstaladorServer.Delete_Datos_Contacto(aChange: TDADeltaChange);
var
ASchema : TDASchema;
ACurrentConn : IDAConnection;
ACommand : IDASQLCommand;
begin
inherited;
{
ASchema := BusinessProcessor.Schema;
ACurrentConn := GetBusinessProcessorConnection(BusinessProcessor);
ACommand := ASchema.NewCommand(ACurrentConn, 'Delete_InstaladoresDatos');
try
with ACommand do
begin
ParamByName('OLD_ID_Instalador').Value := aChange.OldValueByName[fld_InstaladoresID];
Execute;
end;
finally
ACommand := NIL;
end;
}
end;
procedure TBizInstaladorServer.Insert_Datos_Contacto(aChange: TDADeltaChange);
var
ASchema : TDASchema;
ACurrentConn : IDAConnection;
ACommand : IDASQLCommand;
begin
inherited;
{
ASchema := BusinessProcessor.Schema;
ACurrentConn := GetBusinessProcessorConnection(BusinessProcessor);
ACommand := ASchema.NewCommand(ACurrentConn, 'Insert_InstaladoresDatos');
try
with ACommand do
begin
ParamByName('ID_Instalador').Value := aChange.NewValueByName[fld_InstaladoresID];
ParamByName('ID_USUARIO').Value := aChange.NewValueByName[fld_InstaladoresID_USUARIO];
ParamByName('COMISION').Value := aChange.NewValueByName[fld_InstaladoresCOMISION];
Execute;
end;
finally
ACommand := NIL;
end;
}
end;
procedure TBizInstaladorServer.Update_Datos_Contacto(aChange: TDADeltaChange);
var
ASchema : TDASchema;
ACurrentConn : IDAConnection;
ACommand : IDASQLCommand;
begin
inherited;
{
ASchema := BusinessProcessor.Schema;
ACurrentConn := GetBusinessProcessorConnection(BusinessProcessor);
ACommand := ASchema.NewCommand(ACurrentConn, 'Update_InstaladoresDatos');
try
with ACommand do
begin
ParamByName('OLD_ID_Instalador').Value := aChange.OldValueByName[fld_InstaladoresID];
ParamByName('ID_USUARIO').Value := aChange.NewValueByName[fld_InstaladoresID_USUARIO];
ParamByName('COMISION').Value := aChange.NewValueByName[fld_InstaladoresCOMISION];
Execute;
end;
finally
ACommand := NIL;
end;
}
end;
initialization
RegisterBusinessProcessorRules(BIZ_SERVER_INSTALADOR, TBizInstaladorServer);
end.