Смекни!
smekni.com

Система рейтингового контроля знаний (стр. 4 из 6)

объекта «Операции над БД»


ДПДД для состояния Создание базы

объекта «Операции над БД»


ДПДД для состояния Открытие базы

объекта «Операции над БД»


ДПДД для состояния Редактирование базы

объекта «Операции над БД»


ДПДД для состояния Закрытие базы

объекта «Операции над БД»


ДПДД для состояния Сохранение БД

объекта «Операции над БД»


ДПДД для состояния Неуспешное открытие БД

объекта «Операции над БД»


ДПДД для состояния Обновление БД

объекта «Операции над БД»


Текст программы

В листинг программы был включен весь тот код, который был написан в процессе разработки и включения тех строк кода, которые были автоматически сгенерированы С++ Builder:

1. Заголовочные файлы:

Kur1.h:

//---------------------------------------------------------------------------

#ifndef kur1H

#define kur1H

//---------------------------------------------------------------------------

#include <vcl&bsol;Classes.hpp>

#include <vcl&bsol;Controls.hpp>

#include <vcl&bsol;StdCtrls.hpp>

#include <vcl&bsol;Forms.hpp>

#include <vcl&bsol;Menus.hpp>

#include <vcl&bsol;Dialogs.hpp>

#include <vcl&bsol;ExtCtrls.hpp>

#include <vcl&bsol;ComCtrls.hpp>

#include <vcl&bsol;DBGrids.hpp>

#include "Grids.hpp"

#include <vcl&bsol;Buttons.hpp>

#include <vcl&bsol;DBCtrls.hpp>

#include <vcl&bsol;Mask.hpp>

#include <vcl&bsol;DB.hpp>

#include <vcl&bsol;DBTables.hpp>

#include <vcl&bsol;QuickRep.hpp>

#include <vcl&bsol;system.hpp>

//---------------------------------------------------------------------------

class TForm1 : public TForm

{

__published: // IDE-managed Components

TMainMenu *MainMenu1;

TMenuItem *N1;

TMenuItem *N3;

TMenuItem *N4;

TMenuItem *N10;

TMenuItem *N14;

TMenuItem *N16;

TMenuItem *N17;

TOpenDialog *OpenDialog1;

TSaveDialog *SaveDialog1;

TMenuItem *N18;

TMenuItem *N20;

TPrintDialog *PrintDialog1;

TPrinterSetupDialog *PrinterSetupDialog1;

TStatusBar *StatusBar1;

TPanel *Panel1;

TDBGrid *DBGrid1;

TDBNavigator *DBNavigator1;

TMenuItem *N2;

TMenuItem *N5;

TMenuItem *N6;

TBitBtn *BitBtn1;

TBitBtn *BitBtn2;

TBitBtn *BitBtn3;

TMenuItem *N7;

void __fastcall N10Click(TObject *Sender);

void __fastcall N17Click(TObject *Sender);

void __fastcall N14Click(TObject *Sender);

void __fastcall N5Click(TObject *Sender);

void __fastcall N2Click(TObject *Sender);

void __fastcall N16Click(TObject *Sender);

void __fastcall N20Click(TObject *Sender);

void __fastcall BitBtn1Click(TObject *Sender);

void __fastcall BitBtn2Click(TObject *Sender);

void __fastcall BitBtn3Click(TObject *Sender);

void __fastcall N7Click(TObject *Sender);

void __fastcall N4Click(TObject *Sender);

private: // User declarations

public: // User declarations

// AnsiString file2;

__fastcall TForm1(TComponent* Owner);

};

//---------------------------------------------------------------------------

extern TForm1 *Form1;

//---------------------------------------------------------------------------

#endif

Datam.h:

//---------------------------------------------------------------------------

#ifndef DatamH

#define DatamH

//---------------------------------------------------------------------------

#include <vcl&bsol;Classes.hpp>

#include <vcl&bsol;Controls.hpp>

#include <vcl&bsol;StdCtrls.hpp>

#include <vcl&bsol;Forms.hpp>

#include <vcl&bsol;DB.hpp>

#include <vcl&bsol;DBTables.hpp>

//---------------------------------------------------------------------------

class TDM1 : public TDataModule

{

__published: // IDE-managed Components

TDataSource *DataSource1;

TTable *Table1;

TQuery *Query1;

TDataSource *DataSource2;

private: // User declarations

public: // User declarations

__fastcall TDM1(TComponent* Owner);

};

//---------------------------------------------------------------------------

extern TDM1 *DM1;

//---------------------------------------------------------------------------

#endif

filename.h:

//---------------------------------------------------------------------------

#ifndef filenameH

#define filenameH

//---------------------------------------------------------------------------

#include <vcl&bsol;Classes.hpp>

#include <vcl&bsol;Controls.hpp>

#include <vcl&bsol;StdCtrls.hpp>

#include <vcl&bsol;Forms.hpp>

#include <vcl&bsol;ExtCtrls.hpp>

//---------------------------------------------------------------------------

class TForm6 : public TForm

{

__published: // IDE-managed Components

TEdit *Edit1;

TLabel *Label2;

TBevel *Bevel1;

TButton *Button1;

TButton *Button2;

void __fastcall Button1Click(TObject *Sender);

private: // User declarations

public: // User declarations

__fastcall TForm6(TComponent* Owner);

};

//---------------------------------------------------------------------------

extern TForm6 *Form6;

//---------------------------------------------------------------------------

#endif

filter.h:

//---------------------------------------------------------------------------

#ifndef filterH

#define filterH

//---------------------------------------------------------------------------

#include <vcl&bsol;Classes.hpp>

#include <vcl&bsol;Controls.hpp>

#include <vcl&bsol;StdCtrls.hpp>

#include <vcl&bsol;Forms.hpp>

#include <vcl&bsol;ExtCtrls.hpp>

//---------------------------------------------------------------------------

class TForm5 : public TForm

{

__published: // IDE-managed Components

TBevel *Bevel1;

TLabel *Label1;

TLabel *Label2;

TComboBox *ComboBox1;

TEdit *Edit1;

TButton *Button1;

TButton *Button2;

TButton *Button3;

void __fastcall Button3Click(TObject *Sender);

private: // User declarations

public: // User declarations

__fastcall TForm5(TComponent* Owner);

};

//---------------------------------------------------------------------------

extern TForm5 *Form5;

//---------------------------------------------------------------------------

#endif

Findcust.h:

//---------------------------------------------------------------------------

#ifndef filterH

#define filterH

//---------------------------------------------------------------------------

#include <vcl&bsol;Classes.hpp>

#include <vcl&bsol;Controls.hpp>

#include <vcl&bsol;StdCtrls.hpp>

#include <vcl&bsol;Forms.hpp>

#include <vcl&bsol;ExtCtrls.hpp>

//---------------------------------------------------------------------------

class TForm5 : public TForm

{

__published: // IDE-managed Components

TBevel *Bevel1;

TLabel *Label1;

TLabel *Label2;

TComboBox *ComboBox1;

TEdit *Edit1;

TButton *Button1;

TButton *Button2;

TButton *Button3;

void __fastcall Button3Click(TObject *Sender);

private: // User declarations

public: // User declarations

__fastcall TForm5(TComponent* Owner);

};

//---------------------------------------------------------------------------

extern TForm5 *Form5;

//---------------------------------------------------------------------------

#endif

Repopt.h:

//----------------------------------------------------------------------------

#ifndef ReportH

#define ReportH

//----------------------------------------------------------------------------

#include <vcl&bsol;ExtCtrls.hpp>

#include <vcl&bsol;StdCtrls.hpp>

#include <vcl&bsol;Quickrep.hpp>

#include <vcl&bsol;Dialogs.hpp>

#include <vcl&bsol;Forms.hpp>

#include <vcl&bsol;Controls.hpp>

#include <vcl&bsol;Graphics.hpp>

#include <vcl&bsol;Classes.hpp>

#include <vcl&bsol;SysUtils.hpp>

#include <vcl&bsol;Messages.hpp>

#include <vcl&bsol;Windows.hpp>

#include <vcl&bsol;System.hpp>

//----------------------------------------------------------------------------

class TQRListForm : public TForm

{

__published:

TQuickReport *QuickReport;

TQRBand *Title;

TQRBand *PageHeader;

TQRBand *Detail;

TQRBand *PageFooter;

TQRLabel *QRLabel4;

TQRLabel *QRLabel1;

TQRLabel *QRLabel2;

TQRLabel *QRLabel3;

TQRLabel *QRLabel5;

TQRLabel *QRLabel6;

TQRGroup *QRGroup1;

TQRSysData *QRSysData1;

TQRShape *QRShape1;

TQRDBText *QRDBText3;

TQRDBText *QRDBText1;

TQRDBText *QRDBText9;

TQRDBText *QRDBText10;

TQRDBText *QRDBText2;

void __fastcall QRGroup1NeedData(AnsiString &Value);

private:

public:

virtual __fastcall TQRListForm(TComponent* AOwner);

};

//----------------------------------------------------------------------------

extern TQRListForm *QRListForm;

//----------------------------------------------------------------------------

#endif

RichАbt.h:

//----------------------------------------------------------------------------

#ifndef RichAbtH

#define RichAbtH

//----------------------------------------------------------------------------

#include <ExtCtrls.hpp>

#include <StdCtrls.hpp>

#include <Dialogs.hpp>

#include <Forms.hpp>

#include <Controls.hpp>

#include <Graphics.hpp>

#include <Classes.hpp>

#include <SysUtils.hpp>

#include <Messages.hpp>

#include <Windows.hpp>

#include <System.hpp>

//----------------------------------------------------------------------------

class TForm2 : public TForm

{

__published:

TImage *ProgramIcon;

TButton *OKButton;

public:

virtual __fastcall TForm2(TComponent *Owner);

};

//----------------------------------------------------------------------------

extern TForm2 *Form2;

//----------------------------------------------------------------------------