⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 trrepfrm.pas

📁 一个电力企业的后台管理程序
💻 PAS
📖 第 1 页 / 共 2 页
字号:
unit TrRepFrm;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  ExtCtrls, QuickRpt, qrprntr, Qrctrls, Db, DbTables;

type
  TForm_TrRep = class(TForm)
    QuickRep1: TQuickRep;
    PageFooterBand1: TQRBand;
    TitleBand1: TQRBand;
    QRLabel1: TQRLabel;
    QRShape1: TQRShape;
    QRShape3: TQRShape;
    QRLabel22: TQRLabel;
    QRSysData1: TQRSysData;
    QRShape2: TQRShape;
    QRShape4: TQRShape;
    QRShape5: TQRShape;
    QRShape6: TQRShape;
    QRShape8: TQRShape;
    QRShape9: TQRShape;
    QRLabel2: TQRLabel;
    QRLabel3: TQRLabel;
    QRLabel5: TQRLabel;
    QRLabel6: TQRLabel;
    QRShape10: TQRShape;
    QRShape11: TQRShape;
    QRShape12: TQRShape;
    QRShape14: TQRShape;
    QRShape15: TQRShape;
    QRLabel7: TQRLabel;
    QRLabel8: TQRLabel;
    QRShape17: TQRShape;
    QRLabel9: TQRLabel;
    QRShape21: TQRShape;
    QRLabel10: TQRLabel;
    QRLabel11: TQRLabel;
    QRLabel12: TQRLabel;
    QRLabel14: TQRLabel;
    QRLabel15: TQRLabel;
    QRShape16: TQRShape;
    QRLabel16: TQRLabel;
    QRLabel19: TQRLabel;
    QRShape19: TQRShape;
    QRLabel20: TQRLabel;
    QRLabel21: TQRLabel;
    QRShape20: TQRShape;
    QRLabel23: TQRLabel;
    QRShape22: TQRShape;
    QRLabel25: TQRLabel;
    QRLabel26: TQRLabel;
    QRShape23: TQRShape;
    QRLabel27: TQRLabel;
    QRShape24: TQRShape;
    QRLabel28: TQRLabel;
    QRShape26: TQRShape;
    QRLabel30: TQRLabel;
    QRShape27: TQRShape;
    QRLabel31: TQRLabel;
    QRShape28: TQRShape;
    QRLabel32: TQRLabel;
    QRLabel33: TQRLabel;
    QRShape29: TQRShape;
    QRLabel34: TQRLabel;
    QRShape30: TQRShape;
    QRLabel35: TQRLabel;
    QRShape31: TQRShape;
    QRLabel36: TQRLabel;
    QRLabel37: TQRLabel;
    QRLabel38: TQRLabel;
    QRLabel39: TQRLabel;
    QRLabel40: TQRLabel;
    QRShape32: TQRShape;
    QRLabel41: TQRLabel;
    QRShape33: TQRShape;
    QRLabel42: TQRLabel;
    QRShape34: TQRShape;
    QRLabel43: TQRLabel;
    QRShape36: TQRShape;
    QRLabel45: TQRLabel;
    QRShape37: TQRShape;
    QRLabel46: TQRLabel;
    QRShape38: TQRShape;
    QRLabel47: TQRLabel;
    QRShape39: TQRShape;
    QRLabel48: TQRLabel;
    QRShape40: TQRShape;
    QRLabel49: TQRLabel;
    QRShape41: TQRShape;
    QRLabel50: TQRLabel;
    QRShape43: TQRShape;
    QRLabel52: TQRLabel;
    QRShape44: TQRShape;
    QRLabel53: TQRLabel;
    QRShape45: TQRShape;
    QRLabel54: TQRLabel;
    QRShape46: TQRShape;
    QRLabel55: TQRLabel;
    QRShape47: TQRShape;
    QRLabel56: TQRLabel;
    QRShape48: TQRShape;
    QRLabel57: TQRLabel;
    QRShape50: TQRShape;
    QRLabel59: TQRLabel;
    QRShape51: TQRShape;
    QRLabel60: TQRLabel;
    QRShape52: TQRShape;
    QRLabel61: TQRLabel;
    QRShape53: TQRShape;
    QRLabel62: TQRLabel;
    QRShape54: TQRShape;
    QRLabel63: TQRLabel;
    QRShape55: TQRShape;
    QRLabel64: TQRLabel;
    QRShape57: TQRShape;
    QRLabel66: TQRLabel;
    QRShape58: TQRShape;
    QRLabel67: TQRLabel;
    QRShape59: TQRShape;
    QRLabel68: TQRLabel;
    QRShape7: TQRShape;
    QRLabel4: TQRLabel;
    QRShape13: TQRShape;
    QRLabel13: TQRLabel;
    QRShape18: TQRShape;
    QRShape25: TQRShape;
    QRShape35: TQRShape;
    QRShape42: TQRShape;
    QRShape49: TQRShape;
    QRLabel17: TQRLabel;
    QRLabel18: TQRLabel;
    QRLabel24: TQRLabel;
    QRLabel29: TQRLabel;
    QRLabel44: TQRLabel;
    procedure QuickRep1Preview(Sender: TObject);
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
    SelStartDateTime,SelEndDateTime:TDateTime;
    NoDoStr:string;
    A:array[1..2,1..10]of string;
    i,j:integer;
    DoInt:integer;
    Function OutNoDo(lblcaption:string;conststr:string):string;
  public
    { Public declarations }
    function SqlOpen(anyqry:TQuery;sqlstr:string):string;
    procedure Sqltrue(anyqry:TQuery;sqlstr:string);
  end;

var
  Form_TrRep: TForm_TrRep;

implementation

uses prgramstaticFrm, MyPreviewFrm, SystemDM, DMStatic;

{$R *.DFM}

function TForm_TrRep.SqlOpen(anyqry:TQuery;sqlstr:string):string;
begin
  result:='0';
  with anyqry do
  begin
    close;  sql.clear;  sql.text:=sqlstr;  prepare;
    SelStartDateTime:=Form_prgramstatic.DatePicker_Start.date;
    SelEndDateTime:=Form_prgramstatic.DatePicker_End.date;
    replacetime(SelStartDateTime,Form_prgramstatic.TimePicker_Start.time);
    replacetime(SelEndDateTime,Form_prgramstatic.TimePicker_End.time);
    ParamByName('Start').asdatetime:=SelStartDateTime;
    ParamByName('End').asdatetime:=SelEndDateTime;
    open;
    result:=FieldByName('Number').asstring;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -