room.cpp

来自「全面剖析酒店管理的内容」· C++ 代码 · 共 35 行

CPP
35
字号
//---------------------------------------------------------------------------

#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 + =
减小字号Ctrl + -
显示快捷键?