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

📄 bookendprint.cpp

📁 机器须安装SQL Server2000 程序安装完之后
💻 CPP
字号:
//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "BookEndPrint.h"
#include "DataMoudle.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TBookEndPrintForm *BookEndPrintForm;
//---------------------------------------------------------------------------
__fastcall TBookEndPrintForm::TBookEndPrintForm(TComponent* Owner)
    : TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TBookEndPrintForm::FormShow(TObject *Sender)
{
    DateTimePicker1->DateTime=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 TBookEndPrintForm::FormClose(TObject *Sender,
      TCloseAction &Action)
{
    ADOQuery1->Active=false;
    Action=caFree;

}
//---------------------------------------------------------------------------

⌨️ 快捷键说明

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