📄 selectstore.~cpp
字号:
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "selectstore.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TfmSelectStore *fmSelectStore;
//---------------------------------------------------------------------------
__fastcall TfmSelectStore::TfmSelectStore(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TfmSelectStore::DBGrid1DblClick(TObject *Sender)
{
if(Query1->FieldByName("仓库"))
{
// 选择的仓库
m_szSelectStore = Query1->FieldByName("仓库")->AsString;
// 选择的仓库对应的库存
m_dStoreNumber = Query1->FieldByName("仓库")->AsFloat;
}
if(!m_szSelectStore.IsEmpty()) // 选择了一个仓库,关闭该窗体
this->Close();
}
//---------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -