Académique Documents
Professionnel Documents
Culture Documents
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ComCtrls, Vcl.DBCtrls,
Vcl.Mask, Vcl.ExtCtrls;
type
TForm7 = class(TForm)
DateTimePicker1: TDateTimePicker;
Label1: TLabel;
Button1: TButton;
Label3: TLabel;
Label4: TLabel;
Label5: TLabel;
Button2: TButton;
Button3: TButton;
Button4: TButton;
Button5: TButton;
Button6: TButton;
Label2: TLabel;
Label6: TLabel;
Label7: TLabel;
DBEdit_Janeiro: TDBEdit;
DBEdit_Fevereiro: TDBEdit;
DBEdit_Marco: TDBEdit;
DBEdit_Abril: TDBEdit;
DBEdit_Maio: TDBEdit;
DBEdit_Junho: TDBEdit;
DBEdit_Julho: TDBEdit;
DBEdit_Agosto: TDBEdit;
DBEdit_Setembro: TDBEdit;
DBEdit_Outubro: TDBEdit;
DBEdit_Novembro: TDBEdit;
DBEdit_Dezembro: TDBEdit;
Label8: TLabel;
Label9: TLabel;
Label10: TLabel;
Label11: TLabel;
Label12: TLabel;
Label13: TLabel;
Button7: TButton;
Button8: TButton;
Button9: TButton;
Button10: TButton;
Button11: TButton;
Button12: TButton;
Timer1: TTimer;
DBEdit13: TDBEdit;
DBEdit14: TDBEdit;
I: TLabel;
Label14: TLabel;
Edit_Dt_Hoje: TEdit;
DBCheckBox1: TDBCheckBox;
LblBloqueioDebito: TLabel;
Label15: TLabel;
DBEdit_Dt_Matricula: TDBEdit;
procedure Button1Click(Sender: TObject);
procedure Timer1Timer(Sender: TObject);
procedure FormCreate(Sender: TObject);
procedure Button2Click(Sender: TObject);
procedure Button3Click(Sender: TObject);
procedure Button6Click(Sender: TObject);
procedure Button5Click(Sender: TObject);
procedure Button4Click(Sender: TObject);
procedure Button12Click(Sender: TObject);
procedure Button11Click(Sender: TObject);
procedure Button10Click(Sender: TObject);
procedure Button8Click(Sender: TObject);
procedure Button9Click(Sender: TObject);
procedure Button7Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form7: TForm7;
implementation
{$R *.dfm}
uses Unit3;
DateTimePicker1.Date := Date;
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Fevereiro.Text)+ 30)
then
begin
DBEdit_Fevereiro.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Fevereiro.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Marco.Text)+ 30)
then //-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Marco.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Marco.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Abril.Text)+ 30)
then //-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Abril.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Abril.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Maio.Text)+ 30)
then //-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Maio.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Maio.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Junho.Text)+ 30)
then //-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Junho.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Junho.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Julho.Text)+ 30)
then //-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Julho.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Julho.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Agosto.Text)+ 30) then
//-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Agosto.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Agosto.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Setembro.Text)+ 30)
then //-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Setembro.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Setembro.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Outubro.Text)+ 30) then
//-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Outubro.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Outubro.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Novembro.Text)+ 30)
then
begin
DBEdit_Novembro.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Novembro.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Dezembro.Text)+ 30)
then
begin
DBEdit_Dezembro.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Dezembro.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
end;
//1=======================================================
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Marco.Text)+ 30)
then //-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Marco.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Marco.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Abril.Text)+ 30)
then //-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Abril.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Abril.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Maio.Text)+ 30)
then //-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Maio.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Maio.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Junho.Text)+ 30)
then //-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Junho.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Junho.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Julho.Text)+ 30)
then //-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Julho.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Julho.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Agosto.Text)+ 30) then
//-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Agosto.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Agosto.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Setembro.Text)+ 30)
then //-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Setembro.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Setembro.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Outubro.Text)+ 30) then
//-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Outubro.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Outubro.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Novembro.Text)+ 30)
then
begin
DBEdit_Novembro.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Novembro.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Dezembro.Text)+ 30)
then
begin
DBEdit_Dezembro.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Dezembro.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
end;
//2===============================================
// verifica se � matriculado em Mar�o e conta apartir dai
if Pos('/03/',DBEdit_Dt_Matricula.Text) <> 0 then
begin
// verifica se a data de hoje � mais que 30 dias da data de vencimento, tem
alguns detalhes a ajustar pois a data que aparece pra cauculo na verdadre seria a
data que fez o pagamento
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Marco.Text)+ 30)
then //-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Marco.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Marco.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Abril.Text)+ 30)
then //-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Abril.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Abril.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Maio.Text)+ 30)
then //-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Maio.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Maio.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Junho.Text)+ 30)
then //-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Junho.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Junho.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Julho.Text)+ 30)
then //-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Julho.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Julho.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Agosto.Text)+ 30) then
//-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Agosto.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Agosto.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Setembro.Text)+ 30)
then //-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Setembro.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Setembro.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Outubro.Text)+ 30) then
//-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Outubro.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Outubro.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Novembro.Text)+ 30)
then
begin
DBEdit_Novembro.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Novembro.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Dezembro.Text)+ 30)
then
begin
DBEdit_Dezembro.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Dezembro.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
end;
//3===========================================
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Maio.Text)+ 30)
then //-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Maio.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Maio.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Junho.Text)+ 30)
then //-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Junho.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Junho.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Julho.Text)+ 30)
then //-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Julho.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Julho.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Agosto.Text)+ 30) then
//-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Agosto.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Agosto.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Setembro.Text)+ 30)
then //-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Setembro.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Setembro.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Outubro.Text)+ 30) then
//-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Outubro.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Outubro.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Novembro.Text)+ 30)
then
begin
DBEdit_Novembro.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Novembro.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Dezembro.Text)+ 30)
then
begin
DBEdit_Dezembro.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Dezembro.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
end;
//4======================================
// verifica se � matriculado em janeiro e conta apartir dai
if Pos('/05/',DBEdit_Dt_Matricula.Text) <> 0 then
begin
// verifica se a data de hoje � mais que 30 dias da data de vencimento, tem
alguns detalhes a ajustar pois a data que aparece pra cauculo na verdadre seria a
data que fez o pagamento
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Maio.Text)+ 30)
then //-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Maio.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Maio.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Junho.Text)+ 30)
then //-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Junho.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Junho.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Julho.Text)+ 30)
then //-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Julho.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Julho.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Agosto.Text)+ 30) then
//-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Agosto.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Agosto.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Setembro.Text)+ 30)
then //-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Setembro.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Setembro.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Outubro.Text)+ 30) then
//-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Outubro.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Outubro.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Novembro.Text)+ 30)
then
begin
DBEdit_Novembro.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Novembro.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Dezembro.Text)+ 30)
then
begin
DBEdit_Dezembro.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Dezembro.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
end;
//5========================================
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Julho.Text)+ 30)
then //-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Julho.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Julho.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Agosto.Text)+ 30) then
//-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Agosto.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Agosto.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Setembro.Text)+ 30)
then //-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Setembro.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Setembro.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Outubro.Text)+ 30) then
//-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Outubro.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Outubro.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Novembro.Text)+ 30)
then
begin
DBEdit_Novembro.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Novembro.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Dezembro.Text)+ 30)
then
begin
DBEdit_Dezembro.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Dezembro.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
end;
//6=====================================
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Agosto.Text)+ 30) then
//-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Agosto.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Agosto.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Setembro.Text)+ 30)
then //-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Setembro.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Setembro.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Outubro.Text)+ 30) then
//-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Outubro.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Outubro.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Novembro.Text)+ 30)
then
begin
DBEdit_Novembro.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Novembro.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Dezembro.Text)+ 30)
then
begin
DBEdit_Dezembro.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Dezembro.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
end;
//7======================================
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Setembro.Text)+ 30)
then //-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Setembro.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Setembro.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Outubro.Text)+ 30) then
//-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Outubro.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Outubro.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Novembro.Text)+ 30)
then
begin
DBEdit_Novembro.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Novembro.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Dezembro.Text)+ 30)
then
begin
DBEdit_Dezembro.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Dezembro.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
end;
//8=============================================
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Outubro.Text)+ 30) then
//-->> and (StrToDate(DBEdit_Dt_Matricula.Text)+30) then
begin
DBEdit_Outubro.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Outubro.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Novembro.Text)+ 30)
then
begin
DBEdit_Novembro.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Novembro.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Dezembro.Text)+ 30)
then
begin
DBEdit_Dezembro.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Dezembro.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
end;
//9=============================================
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Novembro.Text)+ 30)
then
begin
DBEdit_Novembro.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Novembro.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Dezembro.Text)+ 30)
then
begin
DBEdit_Dezembro.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Dezembro.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
end;
//10============================================
end;
try
if StrToDate(Edit_Dt_Hoje.Text) > (StrToDate(DBEdit_Dezembro.Text)+ 30)
then
begin
DBEdit_Dezembro.Color := clRed;
DBCheckbox1.Checked := True;
LblBloqueioDebito.Visible := True;
end
else
begin
DBEdit_Dezembro.Color := clWindow;
DBCheckbox1.Checked := False;
LblBloqueioDebito.Visible := False;
end;
except
end;
end;
end;
end;
end;
end.