deviceinfoinputunit.h

来自「指纹门禁机管理系统」· C头文件 代码 · 共 90 行

H
90
字号
//---------------------------------------------------------------------------

#ifndef DeviceInfoInputUnitH
#define DeviceInfoInputUnitH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "BaseInputUnit.h"
#include <Buttons.hpp>
#include <ComCtrls.hpp>
#include <ExtCtrls.hpp>
#include "EnguardCommon.h"
#include "DBAccessUnit.h"
#include "DeviceAccessUnit.h"
//---------------------------------------------------------------------------
class TDeviceInfoInputFrm : public TBaseDataInputFrm
{
__published:	// IDE-managed Components
        TPanel *plWork;
        TLabel *Label1;
        TLabel *Label2;
        TLabel *Label3;
        TLabel *Label7;
        TLabel *Label8;
        TLabel *Label5;
    TEdit *edtDeviceID;
    TEdit *edtDeviceName;
    TEdit *edtCaption;
    TEdit *edtLock;
    TEdit *edtDesc;
    TRadioGroup *rgDeviceType;
    TPageControl *pcParam;
    TTabSheet *tsUart;
    TTabSheet *tsIP;
    TLabel *Label11;
    TLabel *Label12;
    TComboBox *cbBaud;
    TLabel *Label13;
    TLabel *Label9;
    TEdit *edtIP4_1;
    TLabel *Label10;
    TEdit *edtPort;
    TTabSheet *tsUSB;
    TLabel *Label6;
    TComboBox *cbCOMID;
    TLabel *Label14;
    TEdit *edtIP4_2;
    TLabel *Label15;
    TEdit *edtIP4_3;
    TLabel *Label16;
    TEdit *edtIP4_4;
    TLabel *Label17;
    TCheckBox *cbStatus;
    TBitBtn *bbtnInitDevice;
        TLabel *Label4;
        TRadioGroup *rgMode;
        TBitBtn *bbtnRead;
        void __fastcall FormShow(TObject *Sender);
        void __fastcall bbtnOKClick(TObject *Sender);
    void __fastcall rgDeviceTypeClick(TObject *Sender);
    void __fastcall FormCreate(TObject *Sender);
    void __fastcall bbtnInitDeviceClick(TObject *Sender);
        void __fastcall bbtnReadClick(TObject *Sender);
private:	// User declarations
        TDBAccess aDBAccess;
        
        DeviceInfo_T  aDeviceInfo;
        OperateMode_T OperateMode;

        void SetDeviceInfoToUI();
        bool CheckInput();
        bool GetDeviceInfoFromUI();
        void SetUIEnabled(bool iEnabled);
        void ShowParamTab(DeviceType_T iType);
        void InitShow();
public:		// User declarations
        void SetOperateMode(OperateMode_T iMode);

        void GetDeviceInfo(DeviceInfo_T& oDeviceInfo);
        void SetDeviceInfo(DeviceInfo_T iDeviceInfo);

    __fastcall TDeviceInfoInputFrm(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TDeviceInfoInputFrm *DeviceInfoInputFrm;
//---------------------------------------------------------------------------
#endif

⌨️ 快捷键说明

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