copylist_r.pas
来自「县级供电企业电费核算源码, 在客户处正常运行8年以上, Delphi 5开发,数」· PAS 代码 · 共 149 行
PAS
149 行
unit CopyList_R;
interface
uses Windows, SysUtils, Messages, Classes, Graphics, Controls,
StdCtrls, ExtCtrls, Forms, Quickrpt, QRCtrls;
type
TR_CopyList = class(TQuickRep)
PageHeaderBand1: TQRBand;
PageFooterBand1: TQRBand;
DetailBand1: TQRBand;
QRL_Title: TQRLabel;
QRDB_HouseNo: TQRDBText;
QRDBText2: TQRDBText;
QRDBText3: TQRDBText;
QRL_ANo1: TQRLabel;
QRL_ANo2: TQRLabel;
QRL_ANo3: TQRLabel;
QRShape1: TQRShape;
QRShape2: TQRShape;
QRShape3: TQRShape;
QRShape5: TQRShape;
QRShape7: TQRShape;
QRShape9: TQRShape;
QRShape10: TQRShape;
QRShape11: TQRShape;
QRShape12: TQRShape;
QRShape14: TQRShape;
QRShape15: TQRShape;
QRShape16: TQRShape;
QRShape17: TQRShape;
QRShape18: TQRShape;
QRShape19: TQRShape;
QRShape20: TQRShape;
QRLabel4: TQRLabel;
QRLabel5: TQRLabel;
QRLabel6: TQRLabel;
QRLabel7: TQRLabel;
QRLabel12: TQRLabel;
QRLabel13: TQRLabel;
QRLabel3: TQRLabel;
QRLabel15: TQRLabel;
QRLabel16: TQRLabel;
QRL_Month: TQRLabel;
QRDBText1: TQRDBText;
QRDBText4: TQRDBText;
QRLabel1: TQRLabel;
QRLabel8: TQRLabel;
QRShape4: TQRShape;
QRShape6: TQRShape;
QRShape8: TQRShape;
QRShape13: TQRShape;
QRLabel9: TQRLabel;
QRLabel10: TQRLabel;
QRDB_VillageNo: TQRDBText;
QRLabel11: TQRLabel;
QRLabel14: TQRLabel;
SummaryBand1: TQRBand;
QRLabel17: TQRLabel;
QRLabel18: TQRLabel;
QRSysData1: TQRSysData;
QRLabel19: TQRLabel;
QRSysData2: TQRSysData;
QRLabel20: TQRLabel;
QRShape21: TQRShape;
QRL_Auditing: TQRLabel;
procedure PageHeaderBand1BeforePrint(Sender: TQRCustomBand;
var PrintBand: Boolean);
procedure QRDB_VillageNoPrint(sender: TObject; var Value: String);
procedure QRDB_HouseNoPrint(sender: TObject; var Value: String);
procedure PageFooterBand1BeforePrint(Sender: TQRCustomBand;
var PrintBand: Boolean);
private
LastVillageNo:String;//上次打印的村、社编
public
end;
var
R_CopyList: TR_CopyList;
implementation
uses Table_DM, CommSmdljf, Variants;
{$R *.DFM}
procedure TR_CopyList.PageHeaderBand1BeforePrint(Sender: TQRCustomBand;
var PrintBand: Boolean);
begin
QRL_Title.Caption := CorpName + StationName + '“一户一表”抄表工作单';
QRL_Month.Caption := CurrentYear+' 年 '+CurrentMonth+' 月份';
LastVillageNo := '';
end;
procedure TR_CopyList.QRDB_VillageNoPrint(sender: TObject; var Value: String);
Var
VillageNo:String;//村、社编号
vPosition:String;//门牌号
begin
VillageNo := Dm_Table.Tb_House['F_Village_No'];
If Dm_Table.Tb_House['F_Position'] <> Null Then
vPosition := Trim(Dm_Table.Tb_House['F_Position'])
Else
vPosition := '';
If (LastVillageNo <> VillageNo) Then//村子有变化则重新取得村、社名称
Begin
p_GetVillageName(VillageNo,Value);
Value := Trim(Value) + vPosition;
LastVillageNo := VillageNo;
End
Else//村、社编号无变化则不打印村名
Value := vPosition
end;
procedure TR_CopyList.QRDB_HouseNoPrint(sender: TObject;
var Value: String);
var
A_No1, A_No2, A_No3:String;//表号
begin
p_GetAmmeterNo(Value, A_No1, A_No2, A_No3);
QRL_ANo1.Caption := A_No1;//三支表的表号
QRL_ANo2.Caption := A_No2;
QRL_ANo3.Caption := A_No3;
end;
procedure TR_CopyList.PageFooterBand1BeforePrint(Sender: TQRCustomBand;
var PrintBand: Boolean);
begin
QRL_Auditing.Caption := Default_Auditing;
end;
end.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?