bookunendprint.cpp

来自「机器须安装SQL Server2000 程序安装完之后」· C++ 代码 · 共 42 行

CPP
42
字号
//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "BookUnEndPrint.h"
#include "Main.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma link "BookEndPrint"
#pragma resource "*.dfm"
TBookUnEndPrintForm1 *BookUnEndPrintForm1;
//---------------------------------------------------------------------------
__fastcall TBookUnEndPrintForm1::TBookUnEndPrintForm1(TComponent* Owner)
    : TBookEndPrintForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TBookUnEndPrintForm1::FormShow(TObject *Sender)
{
      DateTimePicker1->DateTime=Now();
      QRLabel1->Caption=MainForm->TheCompany+"  预定未到期报表";
      QRLabel11->Caption=Now();
    AnsiString SQL;
   SQL="  select a.name ,a.sex ,a.passtype,a.passnumber,b.special,b.starttime,b.endtime,b.bookedtime ,c.roomno  from custom a ,orders b,roomorder c where( b.StartTime>"+QuotedStr(DateTimePicker1->DateTime.DateString())+"and a.customID=b.customID and b.orderno=c.orderno and b.booked=1 and b.used=0)";
    ADOQuery1->Active=false;
    ADOQuery1->SQL->Clear();
    ADOQuery1->SQL->Add(SQL);
    ADOQuery1->Active=true;
//    QuickRep1->Preview();
}
//---------------------------------------------------------------------------
void __fastcall TBookUnEndPrintForm1::FormClose(TObject *Sender,
      TCloseAction &Action)
{
    ADOQuery1->Active=false;
    Action=caFree;
     
}
//---------------------------------------------------------------------------

⌨️ 快捷键说明

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