Zbekiston respublikasi raqamli texnologiyalari vazirligi muxammad al-xorazmiy nomidagi toshkent axborot texnologiyalari universiteti - bet 8

|
Zbekiston respublikasi raqamli texnologiyalari vazirligi muxammad al-xorazmiy nomidagi toshkent axborot texnologiyalari universiteti
|
bet | 8/9 | Sana | 23.05.2024 | Hajmi | 2,07 Mb. | | #251316 |
Bog'liq Xushvatshoyev Sanjar loyihaBu sahifa navigatsiya:
- ILOVA
XULOSA
Xulosa qilib aytganda, ushbu loyiha ishimni bajarish jarayonida Santexnika dokoni tizimi xaqida juda ko’plab ma’lumotga ega bo’ldim. Dasturchidan talab etiladigan talablar ko’plab va yuqori sifatda amalga oshirilishi kerakligini tushundim. Yana shuni ham takidlab o’tishim joizki, xar qanday dasturning tuzilishida juda ko’plab mehnat va mashaqqat bor ekan. Ushbu bilimlar kelgusida amaliy mashg’ulotlarni bajarishda qo’l kelishiga aminman, Santexnika dokoni tizimi loyihasini bajarganimdan keyin dasturlash faniga mehrim yanada ortdi va shuning uchun ham kelajakda ko’plab mashhur dasturchilar ka’bi men ham yirik loyihalarni amalga oshiraman degan umiddaman.
ILOVA
#include
#pragma hdrstop
#include "Unit1.h"
#include "Unit2.h"
#include "Unit3.h"
#include "Unit4.h"
#include "Unit5.h"
#include "Unit6.h"
#include "Unit7.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button1Click(TObject *Sender)
{
Form2->Show();
Form1->Hide();
}
//---------------------------------------------------------------------------
void __fastcall TForm1::BitBtn1Click(TObject *Sender)
{
Form1->Close();
}
//---------------------------------------------------------------------------
void __fastcall TForm1::BitBtn2Click(TObject *Sender)
{
Form7->Show();
Form1->Hide();
}
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
#include
#pragma hdrstop
#include "Unit2.h"
#include "Unit3.h"
#include "Unit4.h"
#include "Unit6.h"
#include "Unit1.h"
#include "Unit5.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm2 *Form2;
//---------------------------------------------------------------------------
__fastcall TForm2::TForm2(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm2::Button1Click(TObject *Sender)
{
Form6->Show();
Form2->Hide();
}
//---------------------------------------------------------------------------
void __fastcall TForm2::Button2Click(TObject *Sender)
{
Form4->Show();
Form2->Hide();
}
//---------------------------------------------------------------------------
void __fastcall TForm2::Button3Click(TObject *Sender)
{
Form1->Show();
Form2->Hide();
}
//---------------------------------------------------------------------------//---------------------------------------------------------------------------
#include
#pragma hdrstop
#include "Unit3.h"
#include "Unit5.h"
#include "Unit1.h"
#include "Unit2.h"
#include "Unit4.h"
#include "Unit6.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm3 *Form3;
//---------------------------------------------------------------------------
__fastcall TForm3::TForm3(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm3::BitBtn1Click(TObject *Sender)
{
ADOTable1->Insert();
Form5->ShowModal();
}
//---------------------------------------------------------------------------
void __fastcall TForm3::BitBtn2Click(TObject *Sender)
{
ADOTable1->Edit();
Form5->Show();
}
//---------------------------------------------------------------------------
void __fastcall TForm3::BitBtn3Click(TObject *Sender)
{
int q=MessageDlg("Aniq bu tovarni o'chirasizmi?",mtConfirmation,mbYesNo,0);
if(q==mrYes)
ADOTable1->Delete();
}
//---------------------------------------------------------------------------
void __fastcall TForm3::Button1Click(TObject *Sender)
{
Form2->Show();
Form3->Hide();
}
//---------------------------------------------------------------------------
void __fastcall TForm3::Button2Click(TObject *Sender)
{
Form3->ADOTable1->Filtered=false;
Form3->ADOTable1->Filter="Narxi>100000";
Form3->ADOTable1->Filtered=true;
}
//---------------------------------------------------------------------------
void __fastcall TForm3::Button3Click(TObject *Sender)
{
Form3->ADOTable1->Filtered=false;
}
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
#include
#pragma hdrstop
#include "Unit6.h"
#include "Unit1.h"
#include "Unit2.h"
#include "Unit3.h"
#include "Unit4.h"
#include "Unit5.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm6 *Form6;
//---------------------------------------------------------------------------
__fastcall TForm6::TForm6(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm6::Button1Click(TObject *Sender)
{
String login=Form6->Edit1->Text;
String parol=StrToInt(Form6->Edit2->Text);
if((login=="komp") && (parol==4444)){
Form3->Show();
Form6->Close();
}
else {
ShowMessage("Login yoki parol xato");}
Form6->Edit1->Text="";Form6->Edit2->Text="";
}
//---------------------------------------------------------------------------
void __fastcall TForm6::BitBtn1Click(TObject *Sender)
{
Form2->Show();
Form6->Hide();
}
//---------------------------------------------------------------------------
int WINAPI _tWinMain(HINSTANCE, HINSTANCE, LPTSTR, int)
{
try
{
Application->Initialize();
Application->MainFormOnTaskBar = true;
TStyleManager::TrySetStyle("Metropolis UI Black");
Application->CreateForm(__classid(TForm1), &Form1);
Application->CreateForm(__classid(TForm2), &Form2);
Application->CreateForm(__classid(TForm3), &Form3);
Application->CreateForm(__classid(TForm4), &Form4);
Application->CreateForm(__classid(TForm5), &Form5);
Application->CreateForm(__classid(TForm6), &Form6);
Application->CreateForm(__classid(TForm7), &Form7);
Application->Run();
}
catch (Exception &exception)
{
Application->ShowException(&exception);
}
catch (...)
{
try
{
throw Exception("");
}
catch (Exception &exception)
{
Application->ShowException(&exception);
}
}
return 0;
}
|
|
Bosh sahifa
Aloqalar
Bosh sahifa
Zbekiston respublikasi raqamli texnologiyalari vazirligi muxammad al-xorazmiy nomidagi toshkent axborot texnologiyalari universiteti
|