Korxona tashkilotlarda konsilariya xizmatlarini avtomatlashtirish dasturiy ta’minoti



Download 38,5 Kb.
bet2/2
Sana12.07.2022
Hajmi38,5 Kb.
#779057
1   2
Bog'liq
dep-materiallar-varaq

Uni2.cpp

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

#include
#pragma hdrstop

#include "Unit2.h"


//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm2 *Form2;
//---------------------------------------------------------------------------
__fastcall TForm2::TForm2(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------

void __fastcall TForm2::Edit1Change(TObject *Sender)


{
String sapa = "SELECT * FROM buyumlar where buyumnomi like '"+Edit1->Text+"%'";
ADOQuery1->Close();
ADOQuery1->SQL->Clear();
ADOQuery1->SQL->Add(sapa);
ADOQuery1->Open();
}
//---------------------------------------------------------------------------
void __fastcall TForm2::Edit2Change(TObject *Sender)
{
String sapa = "SELECT * FROM dokumentlar where doknomi like '"+Edit2->Text+"%'";
ADOQuery2->Close();
ADOQuery2->SQL->Clear();
ADOQuery2->SQL->Add(sapa);
ADOQuery2->Open();
}
//---------------------------------------------------------------------------

Unit3.cpp
//---------------------------------------------------------------------------

#include


#pragma hdrstop

#include "Unit3.h"


#include "Unit1.h"
#include "Unit2.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm3 *Form3;
//---------------------------------------------------------------------------
__fastcall TForm3::TForm3(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------

void __fastcall TForm3::SpeedButton1Click(TObject *Sender)


{
String ss,jamoa,oyin,galaba,durang,yutq,tn,och,k;
jamoa=Edit1->Text;
oyin=Edit2->Text;
galaba=Edit3->Text;
durang=Edit4->Text;
yutq=Edit5->Text;
tn=Edit6->Text;
och=Edit7->Text;
if (ComboBoxEx1->Text=="Buyumlar")k="buyumlar";
if (ComboBoxEx1->Text=="Xujjatlar")k="dokumentlar";

ss="INSERT INTO "+k+"(jamoa,oyin,galaba,durang,maglubiyat,tn,ochko) "


"VALUES('"+jamoa+"','"+oyin+"','"+galaba+"','"+durang+"','"+yutq+"','"+
tn+"','"+och+"')";

ADOQuery1->Close();


ADOQuery1->SQL->Clear();
ADOQuery1->SQL->Add(ss);
ADOQuery1->ExecSQL();

String sss="SELECT * FROM "+k;


ADOQuery1->Close();
ADOQuery1->SQL->Clear();
ADOQuery1->SQL->Add(sss);
ADOQuery1->Open();
Close();
}
//---------------------------------------------------------------------------



Download 38,5 Kb.

Do'stlaringiz bilan baham:
1   2




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