Skip to content

Commit

Permalink
Final Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Omkar Kajarkear committed Jul 6, 2021
1 parent 11617eb commit 8a6d7b1
Show file tree
Hide file tree
Showing 4 changed files with 423 additions and 330 deletions.
1 change: 1 addition & 0 deletions billing.h
Original file line number Diff line number Diff line change
Expand Up @@ -920,6 +920,7 @@ namespace SupermarketInventoryandBillingSystem {
textBox8->Visible = true;
textBox9->Visible = true;
textBox10->Visible = true;
button2->Visible = false;
try {
String^ constr = "Server=127.0.0.1;Uid=root;Pwd=;Database=bill";
MySqlConnection^ con = gcnew MySqlConnection(constr);
Expand Down
5 changes: 4 additions & 1 deletion inventory.h
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,7 @@ namespace SupermarketInventoryandBillingSystem {
this->comboBox3->Name = L"comboBox3";
this->comboBox3->Size = System::Drawing::Size(162, 25);
this->comboBox3->TabIndex = 20;
this->comboBox3->SelectedIndexChanged += gcnew System::EventHandler(this, &inventory::comboBox3_SelectedIndexChanged);
//
// textBox1
//
Expand Down Expand Up @@ -883,7 +884,7 @@ private: System::Void pictureBox6_Click(System::Object^ sender, System::EventArg
sql_query = "select * from stock where product_name='" + product_name + "'";
}
else if (opt_selected == "Search by Category") {
String^ category = (comboBox3->SelectedItem)->ToString();
String^ category = comboBox3->Text;//(comboBox3->SelectedItem)->ToString();
sql_query = "select * from stock where product_category='" + category + "'";
}
else if (opt_selected == "Search by Quantity") {
Expand Down Expand Up @@ -951,5 +952,7 @@ private: System::Void button6_Click_2(System::Object^ sender, System::EventArgs^
private: System::Void timer1_Tick(System::Object^ sender, System::EventArgs^ e) {
timer_label->Text = System::DateTime::Now.ToString();
}
private: System::Void comboBox3_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e) {
}
};
}
57 changes: 37 additions & 20 deletions login.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ namespace SupermarketInventoryandBillingSystem {
private: System::Windows::Forms::Label^ createdby_label;

private: System::Windows::Forms::Label^ name_display_label;
private: System::Windows::Forms::PictureBox^ pictureBox2;



Expand Down Expand Up @@ -164,12 +165,14 @@ namespace SupermarketInventoryandBillingSystem {
this->pictureBox1 = (gcnew System::Windows::Forms::PictureBox());
this->panel3 = (gcnew System::Windows::Forms::Panel());
this->button7 = (gcnew System::Windows::Forms::Button());
this->pictureBox2 = (gcnew System::Windows::Forms::PictureBox());
this->panel2->SuspendLayout();
this->panel5->SuspendLayout();
this->panel4->SuspendLayout();
this->groupBox1->SuspendLayout();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->pictureBox1))->BeginInit();
this->panel3->SuspendLayout();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->pictureBox2))->BeginInit();
this->SuspendLayout();
//
// panel1
Expand Down Expand Up @@ -197,6 +200,7 @@ namespace SupermarketInventoryandBillingSystem {
//
this->panel2->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(66)), static_cast<System::Int32>(static_cast<System::Byte>(66)),
static_cast<System::Int32>(static_cast<System::Byte>(66)));
this->panel2->Controls->Add(this->pictureBox2);
this->panel2->Controls->Add(this->panel5);
this->panel2->Controls->Add(this->title_label);
this->panel2->Controls->Add(this->panel4);
Expand All @@ -205,54 +209,54 @@ namespace SupermarketInventoryandBillingSystem {
this->panel2->Controls->Add(this->label13);
this->panel2->Location = System::Drawing::Point(460, 27);
this->panel2->Name = L"panel2";
this->panel2->Size = System::Drawing::Size(458, 550);
this->panel2->Size = System::Drawing::Size(458, 523);
this->panel2->TabIndex = 3;
//
// panel5
//
this->panel5->Controls->Add(this->name_display_label);
this->panel5->Controls->Add(this->createdby_label);
this->panel5->Location = System::Drawing::Point(47, 118);
this->panel5->Location = System::Drawing::Point(28, 193);
this->panel5->Name = L"panel5";
this->panel5->Size = System::Drawing::Size(397, 159);
this->panel5->TabIndex = 18;
//
// name_display_label
//
this->name_display_label->AutoSize = true;
this->name_display_label->Font = (gcnew System::Drawing::Font(L"Nirmala UI", 15.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
this->name_display_label->Font = (gcnew System::Drawing::Font(L"Lucida Calligraphy", 12, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->name_display_label->ForeColor = System::Drawing::Color::White;
this->name_display_label->Location = System::Drawing::Point(158, 28);
this->name_display_label->Location = System::Drawing::Point(150, 17);
this->name_display_label->Name = L"name_display_label";
this->name_display_label->Size = System::Drawing::Size(215, 90);
this->name_display_label->Size = System::Drawing::Size(222, 63);
this->name_display_label->TabIndex = 1;
this->name_display_label->Text = L"1. Omkar Kajrekar\n2. prathamesh Jadhav\n3. Bhavya Oswal";
this->name_display_label->Text = L"1. Omkar Kajarekar\n2. Prathamesh Jadhav\n3. Bhavya Oswal";
//
// createdby_label
//
this->createdby_label->AutoSize = true;
this->createdby_label->Font = (gcnew System::Drawing::Font(L"Nirmala UI", 18, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->createdby_label->Font = (gcnew System::Drawing::Font(L"Bernard MT Condensed", 14.25F, System::Drawing::FontStyle::Regular,
System::Drawing::GraphicsUnit::Point, static_cast<System::Byte>(0)));
this->createdby_label->ForeColor = System::Drawing::Color::White;
this->createdby_label->Location = System::Drawing::Point(3, 26);
this->createdby_label->Location = System::Drawing::Point(14, 17);
this->createdby_label->Name = L"createdby_label";
this->createdby_label->Size = System::Drawing::Size(136, 32);
this->createdby_label->Size = System::Drawing::Size(115, 22);
this->createdby_label->TabIndex = 0;
this->createdby_label->Text = L"Created By:";
this->createdby_label->Text = L"Developed By:";
this->createdby_label->Click += gcnew System::EventHandler(this, &login::label6_Click);
//
// title_label
//
this->title_label->AutoSize = true;
this->title_label->Font = (gcnew System::Drawing::Font(L"Nirmala UI", 24, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
this->title_label->Font = (gcnew System::Drawing::Font(L"Nirmala UI", 20.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->title_label->ForeColor = System::Drawing::Color::White;
this->title_label->Location = System::Drawing::Point(39, 3);
this->title_label->Location = System::Drawing::Point(39, 110);
this->title_label->Name = L"title_label";
this->title_label->Size = System::Drawing::Size(381, 90);
this->title_label->Size = System::Drawing::Size(370, 74);
this->title_label->TabIndex = 17;
this->title_label->Text = L"Inventory Management \nand Billing System";
this->title_label->Text = L"Supermarket Inventory and\r\nBilling System";
//
// panel4
//
Expand All @@ -262,9 +266,9 @@ namespace SupermarketInventoryandBillingSystem {
this->panel4->Controls->Add(this->textBox10);
this->panel4->Controls->Add(this->label15);
this->panel4->Controls->Add(this->button5);
this->panel4->Location = System::Drawing::Point(32, 127);
this->panel4->Location = System::Drawing::Point(29, 193);
this->panel4->Name = L"panel4";
this->panel4->Size = System::Drawing::Size(399, 365);
this->panel4->Size = System::Drawing::Size(399, 318);
this->panel4->TabIndex = 10;
this->panel4->Visible = false;
//
Expand Down Expand Up @@ -490,10 +494,11 @@ namespace SupermarketInventoryandBillingSystem {
//
// pictureBox1
//
this->pictureBox1->BackgroundImage = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"pictureBox1.BackgroundImage")));
this->pictureBox1->Location = System::Drawing::Point(65, 40);
this->pictureBox1->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"pictureBox1.Image")));
this->pictureBox1->Location = System::Drawing::Point(40, 33);
this->pictureBox1->Name = L"pictureBox1";
this->pictureBox1->Size = System::Drawing::Size(323, 72);
this->pictureBox1->Size = System::Drawing::Size(400, 123);
this->pictureBox1->SizeMode = System::Windows::Forms::PictureBoxSizeMode::AutoSize;
this->pictureBox1->TabIndex = 4;
this->pictureBox1->TabStop = false;
//
Expand Down Expand Up @@ -521,6 +526,16 @@ namespace SupermarketInventoryandBillingSystem {
this->button7->UseVisualStyleBackColor = true;
this->button7->Click += gcnew System::EventHandler(this, &login::button7_Click);
//
// pictureBox2
//
this->pictureBox2->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"pictureBox2.Image")));
this->pictureBox2->Location = System::Drawing::Point(47, 15);
this->pictureBox2->Name = L"pictureBox2";
this->pictureBox2->Size = System::Drawing::Size(358, 91);
this->pictureBox2->SizeMode = System::Windows::Forms::PictureBoxSizeMode::Zoom;
this->pictureBox2->TabIndex = 10;
this->pictureBox2->TabStop = false;
//
// login
//
this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
Expand Down Expand Up @@ -548,6 +563,7 @@ namespace SupermarketInventoryandBillingSystem {
this->groupBox1->PerformLayout();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->pictureBox1))->EndInit();
this->panel3->ResumeLayout(false);
(cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->pictureBox2))->EndInit();
this->ResumeLayout(false);
this->PerformLayout();

Expand Down Expand Up @@ -763,5 +779,6 @@ private: System::Void label16_Click(System::Object^ sender, System::EventArgs^ e
}
private: System::Void label6_Click(System::Object^ sender, System::EventArgs^ e) {
}

};
}
Loading

0 comments on commit 8a6d7b1

Please sign in to comment.