Tekshirdi: Toshkent 2016


Download 1.97 Mb.
bet8/8
Sana02.09.2020
Hajmi1.97 Mb.
#128284
1   2   3   4   5   6   7   8
Bog'liq
Xisobot


24-rasm

Bunda bozorda sotilgan mashinalar ro’yxati mavjud bo’lib xaridor tomonidan sotib olingan mashina 1-bazadan chiqib 2-bazaga yoziladi. Ammo bu oynada administrator hech qanday vakolatga ega emas.



3. XULOSA

Men bu kurs ishini C++ Builder6 muhiti va Microsoft Accsessdan foydalangan holda tayyorladim. Bu dasturim Avtomobil bozorini xaridorlarni o’zlariga kerakli bo’lgan ma’lumotlarini bilib olishda foydali bo’lishiga ishonaman va sotuvchilar uchun ham foydali bo’lishiga aminman. Men bu kurs ishini bajarish davomida C++ builder 6 dasturida ko’plab yangi narsalarni o’rgandim. Dastur kamchiliklardan holi emas lekin navbatdagi dasturlarni kamchiliklarsiz yaratishga xarakat qilaman.



Dastur barcha kompyuterlarda birday ishlashi ta’minlangan va uning ishlashi uchun C++builder 6 muxiti o’rnatilishi shart emas.

4. Foydalanilgan adabiyotlar

  1. S. G’ulomov. “Axborot texnalogiyalari.”

  2. Maraximov A. va Raxmonova S. “Internet va undan foydalanish asoslari”.

  3. Б.С.ПоспедBorlandC++ Builder 6. Разработка приложений баз данных

СПб.: ООО ≪ДиаСофтЮП≫, 2003 – 320 с

  1. Никита Культин C++ Builder в задачах и примерах

СПб.: БХВ-Петербург 2005 — 336 с

  1. Вячеслав Ермолаев, Тарас Сорока C++ Builder: Книга рецептов

М.: КУДИЦ-ОБРАЗ, 2006. - 208 с.

  1. Teach Yourself Borland C++ Builder in 21 Days

  2. http: www.tuit.uz


V Ilova

Malumotlar bazasi

baza

Id

nom

narx

uzunlik

massa

tezlik

ot_kuchi

bak_sigimi

egasi_id

Ismi

Familiyasi

login

parol








































6

Opel

10000

3

2

100

2

100

0

Komil

Husanov




54546

1

Malibu TLZ

42000$

1.7

355,4

206

177

124

12432

Jahongir

Uzoqov

Jahongir

12432

2

Malibu LTZ

43500$

4

1002

110

104

98

124214

Komil

Rustamov

Komil

124214

3

Cobalt TS

21500$

3.1

1200

455

219

145

32423423

Xurshid

Ko'paysinov

Xurshid

32423423

4

Ferrari

35000

3.2

1757

190

55

34

234242

Aziz

Sultanov

Aziz

234242

5

Opel

23000

2.4

1400

185

50

30

3423

Xumoyun

Xolmurodov

Xumoyun

trefeegdf

6

BMW

45000

2.7

2150

210

56

32

23

Rustam

Xoliqov

Rustam

fg

7

Opel

32000

2,3

1267

987

867

785

34322

Asqarali

Yo'ldashov

Asqarali

dgheff

8

Ferrari

42000$

3,4

355,4

267

179

3

34324

Axlidin

Xabibullaev

Axlidin

fgdgfdg

9

Fiat

43500$

4.85

1002

325

120

65

3434

Muxammad

Turdaliev

Muxammad

dfg

10

Mers-bens

21500$

2.7

1200

135

78

55

343422

Abror

Karimov

Abror

dfgdg

11

Volvo

35000

1.7

1757

206

56

124

3424

Sanjar

Muminov

Sanjar

fd35t34

12

LASETTE

18000$

2.9

1200

260

150

50

234

Fedya

Odam o'g'li

Fedya

r43

13

Matiz

25000000

2

5

200

70

50

234

Garri

Poter

Garri

345

14

Shungung

41000

4

1560

195

60

34

324

Farida

Ruziyeva

Farida

436

15

LADA

34000

3.1

2100

185

65

28

234

Bahrom

Nematov

Bahrom

fsdfsd32

16

Jiguli

23000

3.2

1400

185

50

30

243

Said

Suhrobov

Said

2323423

17

Nissan

45000

2.9

2150

210

56

32

5

Abbos

Farhodov

Abbos

561561

18

TOYOTO

34000

3.1

2100

135

78

55

453

Jabbor

Saidov

Jabbor

453

19

Mitsibusu

23000

3.2

1400

206

56

124

546

Dili

Sumanov

Dili

1651

20

Prodo

45000

2.9

2150

195

60

34

435

Ramz

Abbosov

Ramz

16

21

Land-crauser

23000

3

2400

185

65

28

6346435

Feruz

Ikromov

Feruz

15

22

Matiz

3786

2,3

98798

987

867

785

4

Zuhri

Husenov

Zuhri

1651

23

Matiz DLX

6700$

3,4

1555

267

179

122

53

Hamro

Firdavsiy

Hamro

651

24

Nexia DONC

11000$

4.85

1690

325

120

65

543

Laylo

Umarova

Laylo

6

25

Nexia CONS

13000$

2.7

1267

135

71

55

345

Razzoq

Sharipov

Razzoq

151

27

Malibu LTZ

43500$

4

1002

110

104

98

543

Yulchi

jonuzoqov

Yulchi

151545644

28

Cobalt TS

21500$

3.1

1200

455

219

145

53

Nortoy

Hubbumov

Nortoy

45645

29

Ferrari

35000

3.2

1757

190

55

34

53

Umar

rahmatov

Umar

41

30

FIAT

41000

2.9

1560

195

60

34

54

Jamol

Komolov

Jamol

5616

31

FIAT clx

34000

3.1

2100

185

65

28

53

Latif

Karimov

Latif

165151

32

Opel

23000

2.4

1400

185

50

30

35

Noila

Jumanov

Noila

61

33

BMW

45000

2.7

2150

210

56

32

435

Muhammad

Buriyev

Muhammad

16151

34

Opel

32000

2,3

1267

987

867

785

43543

Isakboy

Turdiyev

Isakboy

1615151

35

Ferrari

42000$

3,4

355,4

267

179

122

345

Elbek

Akromov

Elbek

156

36

Fiat

43500$

4.85

1002

325

120

65

34535

Shamil

Muhsinov

Shamil

46545

37

Mers-bens

21500$

2.7

1200

135

78

55

345

Otabek

Ho'jayev

Otabek

5154

38

Volvo

35000

1.7

1757

206

56

124

345

Nurzod

Karahanov

Nurzod

46545

39

Shungung

41000

4

1560

195

60

34

44

Aziz

Ashurov

Aziz

454

41

Jiguli

23000

3.2

1400

185

50

30

34545

Komil

Husanov

Komil

54546

42

Nissan

45000

2.9

2150

210

56

32

435

Abduqodir

Muhiddinov

Abduqodir

464545

43

Jeep

42000$

3,4

355,4

987

867

785

34

Salim

ganiyev

Salim

45465

44

Hummer

43500$

4.85

1002

267

179

122

543

Majid

Karimov

Majid

8494

45

Orlando

21500$

2.7

1200

325

120

65

5345

Bohodir

Yusupov

Bohodir

89644



ism

id

ism

familiya

manzil

tolov

login

parol

1

Jahongir

Uzoqov

Samarqand vil

40000

Jahongir

12432

2

Komil

Rustamov

Sirdaryo vil

40000

Komil

124214

3

Xurshid

Ko'paysinov

Namangan vil

40000

Xurshid

32423423

4

Aziz

Sultanov

Chirchiq vil

40000

Aziz

234242

5

Xumoyun

Xolmurodov

Navoiy vil

40000

Xumoyun

trefeegdf

6

Rustam

Xoliqov

Surxandaryo vil

40000

Rustam

fg

7

Asqarali

Yo'ldashov

Samarqand vil

40000

Asqarali

dgheff

8

Axlidin

Xabibullaev

Namangan vil

40000

Axlidin

fgdgfdg

9

Muxammad

Turdaliev

Farg'ona vil

40000

Muxammad

dfg

10

Abror

Karimov

Yunusobod t-n

40000

Abror

dfgdg

11

Sanjar

Muminov

Yakkasaroy t-n

40000

Sanjar

fd35t34

12

Fedya

Odam o'g'li

Yunusobod t-n

40000

Fedya

r43

13

Garri

Poter

Chilonzor t-n

40000

Garri

345

14

Farida

Ruziyeva

Yunusobod t-n

40000

Farida

436

15

Bahrom

Nematov

Yunusobod t-n

40000

Bahrom

fsdfsd32

16

Said

Suhrobov

Yakkasaroy t-n

40000

Said

2323423

17

Abbos

Farhodov

Yunusobod t-n

40000

Abbos

561561

18

Jabbor

Saidov

Chilonzor t-n

40000

Jabbor

453

19

Dili

Sumanov

Yakkasaroy t-n

40000

Dili

1651

20

Ramz

Abbosov

Yunusobod t-n

40000

Ramz

16

21

Feruz

Ikromov

Yakkasaroy t-n

40000

Feruz

15

22

Zuhri

Husenov

Chilonzor t-n

40000

Zuhri

1651

23

Hamro

Firdavsiy

Yakkasaroy t-n

40000

Hamro

651

24

Laylo

Umarova

Yunusobod t-n

40000

Laylo

6

25

Razzoq

Sharipov

Chilonzor t-n

40000

Razzoq

151

26

Bahrom

Bibitov

Yunusobod t-n

40000

Bahrom

1651

27

Yulchi

jonuzoqov

Uchtepa tumani

40000

Yulchi

151545644

28

Nortoy

Hubbumov

Xamza tuman

40000

Nortoy

45645

29

Umar

rahmatov

Chilonzor t-n

40000

Umar

41

30

Jamol

Komolov

Uchtepa tumani

40000

Jamol

5616

31

Latif

Karimov

Yakkasaroy t-n

40000

Latif

165151

32

Noila

Jumanov

Yunusobod t-n

40000

Noila

61

33

Muhammad

Buriyev

Uchtepa tumani

40000

Muhammad

16151

34

Isakboy

Turdiyev

Yakkasaroy t-n

40000

Isakboy

1615151

35

Elbek

Akromov

Yunusobod t-n

40000

Elbek

156

36

Shamil

Muhsinov

Xamza tuman

40000

Shamil

46545

37

Otabek

Ho'jayev

Yunusobod t-n

40000

Otabek

5154

38

Nurzod

Karahanov

Uchtepa tumani

40000

Nurzod

46545

40

Jamshid

Elov

Yunusobod t-n

40000

Jamshid

546

41

Komil

Husanov

Xamza tuman

40000

Komil

54546

42

Abduqodir

Muhiddinov

Yakkasaroy t-n

40000

Abduqodir

464545

43

Salim

ganiyev

Uchtepa tumani

40000

Salim

45465

44

Majid

Karimov

Yakkasaroy t-n

40000

Majid

8494

45

Bohodir

Yusupov

Uchtepa tumani

40000

Bohodir

89644

0

Shohista

To'rayev

Qashqadaryo.vil

0

Boburxon

1234



moshinasotilgan

id

Sotuvchi_ismi

Sotuvchi_familiyasi

Oluvchining_ismi

Oluvchining_familiyasi

Mashina_rusumi

Summa

1

Shohista

To'rayev

Boburxon

To'rayev




10000

2

Laylo

Umarova

Botir

jalilov

Nexia DONC

1000

3

Bahrom

Bibitov

Bohodir

sharipov

Malibu TLZ

10000

4

Shohista

To'rayev

Shohista

To'rayev

Ferrari

10000

Dastur kodi:

Form1 oynasi

#include

#pragma hdrstop

#include "Unit1.h"

#include "Mashinalar.h"

#include "bolim.h"

#include "Admin.h"

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

#pragma package(smart_init)

#pragma link "sSkinManager"

#pragma resource "*.dfm"

TForm1 *Form1;

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

__fastcall TForm1::TForm1(TComponent* Owner)

: TForm(Owner)

{

}



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

void __fastcall TForm1::Button3Click(TObject *Sender)

{

Hide();


Form4->Show();

}

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



void __fastcall TForm1::Button1Click(TObject *Sender)

{

Hide();



Form2->Button4->Visible = false;

Form2->Show();

}

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



void __fastcall TForm1::Button2Click(TObject *Sender)

{

Hide();



Form3->Show();

}

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



void __fastcall TForm1::Button4Click(TObject *Sender)

{

Close();



}

Form2 oynasi

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

#include

#pragma hdrstop

#include "Mashinalar.h"

#include "Unit1.h"

#include "sotuvchilarr.h"

#include "Sotilgan_mashinala.h"

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

#pragma package(smart_init)

#pragma resource "*.dfm"

TForm2 *Form2;

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

__fastcall TForm2::TForm2(TComponent* Owner)

: TForm(Owner)

{

}



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

void __fastcall TForm2::Button3Click(TObject *Sender)

{

Form1->Close();



}

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

void __fastcall TForm2::Button2Click(TObject *Sender)

{

Close();



Form1->Show();

}

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



void __fastcall TForm2::Edit1Change(TObject *Sender)

{

AnsiString k;



k = Edit1->Text;

ADOQuery1 -> Close();

ADOQuery1 -> SQL -> Clear();

ADOQuery1 -> SQL -> Add("select *");

ADOQuery1 -> SQL -> Add(" from baza ");

ADOQuery1 -> SQL -> Add("where "+ComboBox1->Text+" LIKE '" + k +"%'");

ADOQuery1 -> Open();

}

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



void __fastcall TForm2::Button1Click(TObject *Sender)

{

AnsiString k;



k = Edit1->Text;

ADOQuery1 -> Close();

ADOQuery1 -> SQL -> Clear();

ADOQuery1 -> SQL -> Add("select *");

ADOQuery1 -> SQL -> Add(" from baza");

ADOQuery1 -> SQL -> Add("where "+ComboBox1->Text+" LIKE '" + k +"%'");

ADOQuery1 -> Open();

}

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



void __fastcall TForm2::Button8Click(TObject *Sender)

{

ComboBox1->ItemIndex = -1;



Edit1->Text = "";

Button1->Click();

}

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



void __fastcall TForm2::Button6Click(TObject *Sender)

{

TLocateOptions qidiruv;



qidiruv<

if(Form8->ADOTable1->Locate("login",Edit2->Text,qidiruv))

{if(Form8->ADOTable1->Locate("parol",Edit3->Text,qidiruv))

{

if(DBEdit1->Text == Edit2->Text)



{

if(Edit6->Text!="" && Edit4->Text!="" && Edit5->Text!="")

{

Form9->ADOQuery1->Open();



Form9->ADOQuery1->Insert();

Form9->ADOQuery1->FieldByName("Sotuvchi_ismi")->AsString = DBEdit2->Text;

Form9->ADOQuery1->FieldByName("Sotuvchi_familiyasi")->AsString = DBEdit3->Text;

Form9->ADOQuery1->FieldByName("Oluvchining_ismi")->AsString = Edit4->Text;

Form9->ADOQuery1->FieldByName("Oluvchining_familiyasi")->AsString = Edit5->Text;

Form9->ADOQuery1->FieldByName("Summa")->AsString = Edit6->Text;

Form9->ADOQuery1->FieldByName("Mashina_rusumi")->AsString = DBEdit4->Text;

Form9->ADOQuery1->Post();

Edit4->Text="";

Edit5->Text="" ;

Edit6->Text="";

ShowMessage("Tabriklaymiz siz mashina sotib oldingiz!");

Panel1->Visible = false;

ADOQuery1->Delete();

}

else


ShowMessage("BARCHA MAYDON TO'LDIRILISHI SHART...");

//ADOQuery1->Delete();

}

}

else



ShowMessage("login yoki parol xato");

}

else



ShowMessage("login yoki parol xato");

Edit2->Clear();

Edit3->Clear();

}

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



void __fastcall TForm2::Button5Click(TObject *Sender)

{

Panel1->Visible = false;



}

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

void __fastcall TForm2::Button4Click(TObject *Sender)

{

Panel1->Visible = true;



}

Form3 oynasi

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

#include

#pragma hdrstop

#include "bolim.h"

#include "Unit1.h"

#include "Parol.h"

#include "Mashinalar.h"

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

#pragma package(smart_init)

#pragma resource "*.dfm"

TForm3 *Form3;

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

__fastcall TForm3::TForm3(TComponent* Owner)

: TForm(Owner)

{

}



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

void __fastcall TForm3::Button4Click(TObject *Sender)

{

Close();


Form1->Show();

}

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



void __fastcall TForm3::Button1Click(TObject *Sender)

{

Close();



Form5->Show();

}

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



void __fastcall TForm3::Button2Click(TObject *Sender)

{

Hide();



Form2->Button4->Visible = true;

Form2->Show();

}

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



Form4 oynasi

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

#include

#pragma hdrstop

#include "Admin.h"

#include "Unit1.h"

#include "Sotuvchila.h"

#include "sotuvchilarr.h"

#include "Mashinalar.h"

#include "Sotilgan_mashinala.h"

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

#pragma package(smart_init)

#pragma resource "*.dfm"

TForm4 *Form4;

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

__fastcall TForm4::TForm4(TComponent* Owner)

: TForm(Owner)

{

}



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

void __fastcall TForm4::Button3Click(TObject *Sender)

{

Form1->Close();



}

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

void __fastcall TForm4::Button2Click(TObject *Sender)

{

Button5->Visible = false;



Button4->Visible = false;

Button1->Visible = false;

Label3->Visible = false;

Panel1->Visible = true;

Close();

Form1->Show();

}

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



void __fastcall TForm4::Button6Click(TObject *Sender)

{

if(Edit1->Text =="shohista" && Edit2->Text == "1234")



{

Edit1->Text = "";

Edit2->Text = "";

Button5->Visible = true;

Button4->Visible = true;

Button1->Visible = true;

Label3->Visible = true;

Panel1->Visible = false;

}

else ShowMessage("Parol yoki login xato!");



}

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

void __fastcall TForm4::Button1Click(TObject *Sender)

{

Hide();



Form8->Show();

}

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



void __fastcall TForm4::Button4Click(TObject *Sender)

{

Hide();



Form9->Show();

}

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



void __fastcall TForm4::Button5Click(TObject *Sender)

{

Edit1->Text = "";



Edit2->Text = "";

Button5->Visible = false;

Button4->Visible = false;

Button1->Visible = false;

Label3->Visible = false;

Panel1->Visible = true;

Hide();

Form2->Show();



}

Form5 oynasi

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

#include

#pragma hdrstop

#include "Parol.h"

#include "Sotuvchila.h"

#include "regestratsiya.h"

#include "Mashinalar.h"

#include "sotuvchilarr.h"

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

#pragma package(smart_init)

#pragma resource "*.dfm"

TForm5 *Form5;

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

__fastcall TForm5::TForm5(TComponent* Owner)

: TForm(Owner)

{

}



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

void __fastcall TForm5::Button1Click(TObject *Sender)

{

TLocateOptions qidiruv;



qidiruv<

if(Form8->ADOTable1->Locate("login",Edit1->Text,qidiruv))

{if(Form8->ADOTable1->Locate("parol",Edit2->Text,qidiruv))

{

Hide();



Form6->Edit1->Text = Edit1->Text;

Form6->Edit2->Text = Edit2->Text;

Form6->Show();

}

else



ShowMessage("login yoki parol xato");}

else


ShowMessage("login yoki parol xato");

Edit1->Clear();

Edit2->Clear();

}

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



void __fastcall TForm5::Label3MouseMove(TObject *Sender, TShiftState Shift,

int X, int Y)

{

Label3->Font ->Color = clRed;



}

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

void __fastcall TForm5::Label3MouseLeave(TObject *Sender)

{

Label3->Font->Color = clBlack;



}

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

void __fastcall TForm5::Label3Click(TObject *Sender)

{

Hide();



Form7->Show();

}

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



Form6 oynasi

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

#include

#pragma hdrstop

#include "Sotuvchila.h"

#include "Unit1.h"

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

#pragma package(smart_init)

#pragma resource "*.dfm"

TForm6 *Form6;

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

__fastcall TForm6::TForm6(TComponent* Owner)

: TForm(Owner)

{

}



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

void __fastcall TForm6::Button1Click(TObject *Sender)

{

Form1->Close();



}

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

void __fastcall TForm6::Timer1Timer(TObject *Sender)

{

AnsiString j;



j = Edit2->Text;

ADOQuery1 -> Close();

ADOQuery1 -> SQL -> Clear();

ADOQuery1 -> SQL -> Add("select *");

ADOQuery1 -> SQL -> Add(" from baza");

ADOQuery1 -> SQL -> Add("where parol LIKE '" + j +"%'");

ADOQuery1 -> Open();

if(DBEdit1->Text == Edit2->Text){

j = Edit2->Text;

ADOQuery1 -> Close();

ADOQuery1 -> SQL -> Clear();

ADOQuery1 -> SQL -> Add("select *");

ADOQuery1 -> SQL -> Add(" from baza");

ADOQuery1 -> SQL -> Add("where parol LIKE '" + j +"%'");

ADOQuery1 -> Open();

Timer1->Enabled=false;

}

}

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



void __fastcall TForm6::Button2Click(TObject *Sender)

{

Close();



Form1->Show();

}

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



void __fastcall TForm6::Button3Click(TObject *Sender)

{DBGrid1->Visible = false;

Button3->Visible = false;

Button4->Visible = false;

GroupBox1 -> Visible = true;

}

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



void __fastcall TForm6::BitBtn1Click(TObject *Sender)

{

if(Edit7->Text!="" && Edit8->Text!="" && Edit3->Text!="" &&



Edit4->Text!="" && Edit5->Text!="" && Edit6->Text!=""&& Edit9->Text != "")

{

ADOQuery1->Open();



ADOQuery1->Insert();

ADOQuery1->FieldByName("Ismi")->AsString = Edit10->Text;

ADOQuery1->FieldByName("parol")->AsString = Edit2->Text;

ADOQuery1->FieldByName("nom")->AsString = Edit3->Text;

ADOQuery1->FieldByName("narx")->AsString = Edit4->Text;

ADOQuery1->FieldByName("uzunlik")->AsString = Edit5->Text;

ADOQuery1->FieldByName("massa")->AsString = Edit6->Text;

ADOQuery1->FieldByName("tezlik")->AsString = Edit7->Text;

ADOQuery1->FieldByName("ot_kuchi")->AsString = Edit8->Text;

ADOQuery1->FieldByName("bak_sigimi")->AsString = Edit9->Text;

ADOQuery1->FieldByName("Id")->AsString =IntToStr(StrToInt(DBEdit1->Text)%12);

ADOQuery1->FieldByName("Familiyasi")->AsString = Edit11->Text;

ADOQuery1->Post();

ShowMessage(" Ma`lumot kiritildi! ");

Edit8->Text="";

Edit7->Text="";

Edit3->Text="";

Edit4->Text="" ;

Edit5->Text="";

Edit6->Text="" ;

Edit9->Text = "";

Button3->Visible = true;

Button4->Visible = true;

DBGrid1->Visible = true;

Timer1->Enabled = true;

GroupBox1 -> Visible = false;

}

else


ShowMessage("BARCHA MAYDON TO'LDIRILISHI SHART...");

}

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



void __fastcall TForm6::Button4Click(TObject *Sender)

{

ADOQuery1->Delete();



}

Form7 oynasi

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

----------------------------------------------------------------

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

#include

#pragma hdrstop

#include "regestratsiya.h"

#include "Unit1.h"

#include "sotuvchilarr.h"

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

#pragma package(smart_init)

#pragma resource "*.dfm"

TForm7 *Form7;

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

__fastcall TForm7::TForm7(TComponent* Owner)

: TForm(Owner)

{

}



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

void __fastcall TForm7::Button1Click(TObject *Sender)

{

Form1->Close();



}

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

void __fastcall TForm7::Button2Click(TObject *Sender)

{

Close();



Form1->Show();

}

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



void __fastcall TForm7::Button3Click(TObject *Sender)

{

if(Edit1->Text!="" && Edit2->Text!="" && Edit3->Text!=""



&& Edit4->Text!="" && Edit5->Text!="")

{

Form8->ADOTable1->Open();



Form8->ADOTable1->Insert();

Form8->ADOTable1->FieldByName("ism")->AsString = Edit1->Text;

Form8->ADOTable1->FieldByName("familiya")->AsString = Edit2->Text;

Form8->ADOTable1->FieldByName("manzil")->AsString = Edit3->Text;

Form8->ADOTable1->FieldByName("login")->AsString = Edit4->Text;

Form8->ADOTable1->FieldByName("parol")->AsString = Edit5->Text;

Form8->ADOTable1->Post();

ShowMessage(" Ma`lumot kiritildi! ");

Edit3->Text="";

Edit4->Text="" ;

Edit5->Text="";

Edit1->Text="";

Edit2->Text="" ;

}

else



ShowMessage("BARCHA MAYDON TO'LDIRILISHI SHART...");

}

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



void __fastcall TForm7::CheckBox1Click(TObject *Sender)

{

if(CheckBox1->Checked == true)



{

CheckBox1->Visible = false;

Label1->Visible = true;

Label2->Visible = true;

Label3->Visible = true;

Label4->Visible = true;

Label5->Visible = true;

Label6->Visible = true;

Edit1->Visible = true;

Edit2->Visible = true;

Edit3->Visible = true;

Edit4->Visible = true;

Edit5->Visible = true;

Button3->Visible = true;

}

}

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



--------------------------------------------------------------

Form8 oynasi

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

#include

#pragma hdrstop

#include "sotuvchilarr.h"

#include "Unit1.h"

#include "Admin.h"

#include "Mashinalar.h"

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

#pragma package(smart_init)

#pragma resource "*.dfm"

TForm8 *Form8;

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

__fastcall TForm8::TForm8(TComponent* Owner)

: TForm(Owner)

{

}

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



void __fastcall TForm8::Button1Click(TObject *Sender)

{

Form1->Close();



}

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

void __fastcall TForm8::Button4Click(TObject *Sender)

{

Close();



Form4->Show();

}

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



void __fastcall TForm8::Button2Click(TObject *Sender)

{

ADOTable1->Delete();



Form2->ComboBox1->Text = "Ismi";

Form2->Edit1->Text = DBEdit1->Text;

Form2-> ADOQuery1->Delete();

}

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



Form 9 oynasi

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

#include

#pragma hdrstop

#include "Sotilgan_mashinala.h"

#include "Unit1.h"

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

#pragma package(smart_init)

#pragma resource "*.dfm"

TForm9 *Form9;

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

__fastcall TForm9::TForm9(TComponent* Owner)

: TForm(Owner)

{

}



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

void __fastcall TForm9::Button1Click(TObject *Sender)



{

Form1->Close();



}

//---------------------------------------------------------------------------
Download 1.97 Mb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling