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

📄 room.cpp

📁 全面剖析酒店管理的内容
💻 CPP
字号:
//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "Room.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma link "Parent"
#pragma resource "*.dfm"
TfmRoom *fmRoom;
//---------------------------------------------------------------------------
__fastcall TfmRoom::TfmRoom(TComponent* Owner)
    : TfmParent(Owner)
{
    this->szCondition1 = "客房编号";
    this->szCondition2 = "类型编号";
    this->szCondition3 = "楼层编号";
    // 设置查询条件
    this->SetSeekEditStatus();
    Table1->Active = true;
    Table2->Active = true;
    Table3->Active = true;
    lblCount->Caption = "记录数: " + IntToStr(Table1->RecordCount) ;
}
//---------------------------------------------------------------------------
void __fastcall TfmRoom::btNewClick(TObject *Sender)
{
    // 注意如何调用父类窗体的方法
    TfmParent::btNewClick(NULL);
    EditDBEdit8->Text = "空房";    
}
//---------------------------------------------------------------------------

⌨️ 快捷键说明

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