Last active
April 9, 2016 16:32
-
-
Save diego-aslz/768470edc12ace194f0091fe679b72cc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
procedure TFComissoesPgto.BTOkClick(Sender: TObject); | |
begin | |
inherited; | |
QConsulta.First; | |
if not QConsulta.Eof then | |
begin | |
try | |
while not QConsulta.Eof do | |
begin | |
DMSistema.AtualizaBanco('COMISSOES', 'DT_PAGAMENTO', QuotedStr(FormatDateTime('YYYY.MM.DD', Date)), 'ID = ' + QConsultaID.Text); | |
QConsulta.Next; | |
end; | |
DMSistema.TSistema.CommitRetaining; | |
if FRReciboComissao = nil then | |
FRReciboComissao := TFRReciboComissao.Create(Application); | |
QConsulta.First; | |
FRReciboComissao.QRRelatorio.Dataset := QConsulta; | |
FRReciboComissao.QRRelatorio.Preview; | |
except | |
DMSistema.TSistema.RollbackRetaining; | |
raise; | |
end; | |
Buscar; | |
end; | |
end; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment