//--------------------------------------------------------------------------
//------------系统封面------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Unit2.h"
#include "Unit1.h"
#pragma package(smart_init)
#pragma resource "*.dfm"
TFwelcome *Fwelcome;
int logintime=15; //进入系统等待时间X秒
__fastcall TFwelcome::TFwelcome(TComponent* Owner)
: TForm(Owner)
{
}
void __fastcall TFwelcome::Timer1Timer(TObject *Sender)
{
if(logintime==0){
Timer1->Enabled=false;
Close();
}
logintime--;
SpeedButton1->Caption ="进入("+IntToStr(logintime)+")";
}
void __fastcall TFwelcome::SpeedButton2Click(TObject *Sender)
{
Application->Terminate() ;
}
void __fastcall TFwelcome::SpeedButton1Click(TObject *Sender)
{
logintime=15;
Timer1->Enabled=false;
Close();
}
//--------------------------------------------------------------------------
//---------------------数据修改窗体-----------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Unit4.h"
#include "Unit3.h"
#pragma package(smart_init)
#pragma resource "*.dfm"
TFadd *Fadd;
__fastcall TFadd::TFadd(TComponent* Owner)
: TForm(Owner)
{
}
void __fastcall TFadd::Button1Click(TObject *Sender)
{
if(DBEdit1->Text =="")return;
DataModule3->ADOQuery1->Refresh() ;
Close();
}
www.751com.cn
DataModule3->ADOQuery1->Cancel() ;
Close();
}
void __fastcall TFadd::FormClose(TObject *Sender, TCloseAction &Action)
{
DataModule3->ADOQuery1->Cancel() ;