H
hurryman
Unregistered / Unconfirmed
GUEST, unregistred user!
private
tdept,tflag,tpage:string;
isprint :boolean;
public
{ Public declarations }
end;
var
ccardrpt: Tccardrpt;
implementation
uses frmpwork, frmccardrpt;
{$R *.DFM}
procedure Tccardrpt.QRDBText2Print(sender: TObject;
var Value: String);
begin
if value<>tdept then
begin
tdept:=value;
tflag:='Y';
end;
if tflag='Y' then
begin
value:=value;
tflag:='N';
end
else
value:='';
{
if isprint=true then
value :='';
}
end;
procedure Tccardrpt.QRSysData2Print(sender: TObject;
var Value: String);
begin
if value<>tpage then
begin
tpage:=value;
tflag:='Y';
end
else
tflag:='N';
end;
procedure Tccardrpt.QRLabel14Print(sender: TObject;
var Value: String);
begin
if ccardrptfrm.checkbox2.checked=false then
value:='';
end;
procedure Tccardrpt.DetailBand1BeforePrint(Sender: TQRCustomBand;
var PrintBand: Boolean);
begin
{
ccardrptfrm.work.Open ;
if tdept=ccardrptfrm.work.fieldByName('d_desc').AsString then
isprint :=true
else
begin
tdept:=ccardrptfrm.work.fieldByName('d_desc').AsString ;
isprint :=false ;
end;
}
end;
end.
tdept,tflag,tpage:string;
isprint :boolean;
public
{ Public declarations }
end;
var
ccardrpt: Tccardrpt;
implementation
uses frmpwork, frmccardrpt;
{$R *.DFM}
procedure Tccardrpt.QRDBText2Print(sender: TObject;
var Value: String);
begin
if value<>tdept then
begin
tdept:=value;
tflag:='Y';
end;
if tflag='Y' then
begin
value:=value;
tflag:='N';
end
else
value:='';
{
if isprint=true then
value :='';
}
end;
procedure Tccardrpt.QRSysData2Print(sender: TObject;
var Value: String);
begin
if value<>tpage then
begin
tpage:=value;
tflag:='Y';
end
else
tflag:='N';
end;
procedure Tccardrpt.QRLabel14Print(sender: TObject;
var Value: String);
begin
if ccardrptfrm.checkbox2.checked=false then
value:='';
end;
procedure Tccardrpt.DetailBand1BeforePrint(Sender: TQRCustomBand;
var PrintBand: Boolean);
begin
{
ccardrptfrm.work.Open ;
if tdept=ccardrptfrm.work.fieldByName('d_desc').AsString then
isprint :=true
else
begin
tdept:=ccardrptfrm.work.fieldByName('d_desc').AsString ;
isprint :=false ;
end;
}
end;
end.