Referat toshkent-2016 Mundarija



Download 2,17 Mb.
Pdf ko'rish
bet5/7
Sana31.12.2021
Hajmi2,17 Mb.
#259380
TuriReferat
1   2   3   4   5   6   7
Bog'liq
informatika asoslari kafedrasi c da dasturlash fanidan

 

 

 


 


 

Dastur kodi: 

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

#include  

#pragma hdrstop 

#include "Unit1.h" 

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

#pragma package(smart_init) 

#pragma resource "*.dfm" 

TForm1 *Form1; 

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

void __fastcall TForm1::Button3Click(TObject *Sender) 

Close();         



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

void __fastcall TForm1::Button1Click(TObject *Sender) 

ADOQuery1->Insert(); 



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

void __fastcall TForm1::Button2Click(TObject *Sender) 

ADOQuery1->Delete(); 



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

void __fastcall TForm1::Edit1Change(TObject *Sender) 

String S = "SELECT * FROM hospital WHERE Bemor_familiyasi like'"+Edit1->Text + 



"%'"; 

ADOQuery1->Close(); 

ADOQuery1->SQL->Clear(); 

ADOQuery1->SQL->Add(S); 

ADOQuery1->Open(); 

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



void __fastcall TForm1::Edit2Change(TObject *Sender) 

   String S = "SELECT * FROM hospital WHERE Bemor_ismi like'"+Edit2->Text + 



"%'"; 

ADOQuery1->Close(); 

ADOQuery1->SQL->Clear(); 

ADOQuery1->SQL->Add(S); 

ADOQuery1->Open(); 



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

void __fastcall TForm1::Edit3Change(TObject *Sender) 

String S = "SELECT * FROM hospital WHERE kelgan_sanasi like'"+Edit3->Text + 



"%'"; 

ADOQuery1->Close(); 

ADOQuery1->SQL->Clear(); 

ADOQuery1->SQL->Add(S); 

ADOQuery1->Open(); 

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



void __fastcall TForm1::Edit4Change(TObject *Sender) 

String S = "SELECT * FROM hospital WHERE ketgan_sanasi like'"+Edit4->Text + 



"%'"; 

ADOQuery1->Close(); 

ADOQuery1->SQL->Clear(); 

ADOQuery1->SQL->Add(S); 

ADOQuery1->Open(); 

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



void __fastcall TForm1::Edit5Change(TObject *Sender) 

String S = "SELECT * FROM hospital WHERE biriktirilgan_doktor like'"+Edit5->Text + 



"%'"; 

ADOQuery1->Close(); 

ADOQuery1->SQL->Clear(); 

ADOQuery1->SQL->Add(S); 

ADOQuery1->Open(); 

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



void __fastcall TForm1::Edit6Change(TObject *Sender) 

 String S = "SELECT * FROM hospital WHERE palata like'"+Edit6->Text + "%'"; 



ADOQuery1->Close(); 

ADOQuery1->SQL->Clear(); 

ADOQuery1->SQL->Add(S); 

ADOQuery1->Open(); 

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



void __fastcall TForm1::Button4Click(TObject *Sender) 

  String S = "SELECT * FROM hospital"; 



ADOQuery1->Close(); 


ADOQuery1->SQL->Clear(); 

ADOQuery1->SQL->Add(S); 

ADOQuery1->Open(); 

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





Download 2,17 Mb.

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




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

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish