0% found this document useful (0 votes)
74 views

C# Source Code

This document contains code for a medical application that manages inventory items. It defines a class called ADDItem with methods for adding, updating, and viewing inventory items. The class contains tabs for adding new items, updating quantities, removing items, and viewing all items in a datagrid. Fields include item name, description, quantity, price, supplier, location, and expiration date. Buttons allow submitting new items or updates.

Uploaded by

anon_896645884
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
74 views

C# Source Code

This document contains code for a medical application that manages inventory items. It defines a class called ADDItem with methods for adding, updating, and viewing inventory items. The class contains tabs for adding new items, updating quantities, removing items, and viewing all items in a datagrid. Fields include item name, description, quantity, price, supplier, location, and expiration date. Buttons allow submitting new items or updates.

Uploaded by

anon_896645884
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 41

namespace MEDICAL

{
partial class ADDItem
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;

/// <summary>
/// Clean up any renamespace MEDICAL
{
partial class ADDItem
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;

/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed;
otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}

#region Windows Form Designer generated code

/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new
System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new
System.Windows.Forms.DataGridViewCellStyle();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.dateexpire = new System.Windows.Forms.DateTimePicker();
this.txtlocation = new System.Windows.Forms.TextBox();
this.label12 = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button();
this.cmbdompany = new System.Windows.Forms.ComboBox();
this.txtiprice = new System.Windows.Forms.TextBox();
this.txtiqnt = new System.Windows.Forms.TextBox();
this.txtidetail = new System.Windows.Forms.TextBox();
this.txtiname = new System.Windows.Forms.TextBox();
this.label10 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.tabPage2 = new System.Windows.Forms.TabPage();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.txtcurentqnt = new System.Windows.Forms.TextBox();
this.label13 = new System.Windows.Forms.Label();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.button2 = new System.Windows.Forms.Button();
this.txtnewqnt = new System.Windows.Forms.TextBox();
this.label16 = new System.Windows.Forms.Label();
this.label19 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.tabPage3 = new System.Windows.Forms.TabPage();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.comboBox2 = new System.Windows.Forms.ComboBox();
this.button3 = new System.Windows.Forms.Button();
this.label17 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.tabPage4 = new System.Windows.Forms.TabPage();
this.groupBox4 = new System.Windows.Forms.GroupBox();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.label5 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.button4 = new System.Windows.Forms.Button();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
this.groupBox1.SuspendLayout();
this.tabPage2.SuspendLayout();
this.groupBox2.SuspendLayout();
this.tabPage3.SuspendLayout();
this.groupBox3.SuspendLayout();
this.tabPage4.SuspendLayout();
this.groupBox4.SuspendLayout();
((System.ComponentModel.ISupportInitialize)
(this.dataGridView1)).BeginInit();
this.SuspendLayout();
//
// tabControl1
//
this.tabControl1.Controls.Add(this.tabPage1);
this.tabControl1.Controls.Add(this.tabPage2);
this.tabControl1.Controls.Add(this.tabPage3);
this.tabControl1.Controls.Add(this.tabPage4);
this.tabControl1.Font = new System.Drawing.Font("Microsoft Sans Serif",
12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)
(0)));
this.tabControl1.ItemSize = new System.Drawing.Size(103, 35);
this.tabControl1.Location = new System.Drawing.Point(147, 173);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(991, 459);
this.tabControl1.TabIndex = 0;
this.tabControl1.SelectedIndexChanged += new
System.EventHandler(this.tabControl1_SelectedIndexChanged);
//
// tabPage1
//
this.tabPage1.BackColor = System.Drawing.Color.DarkSeaGreen;
this.tabPage1.Controls.Add(this.groupBox1);
this.tabPage1.Controls.Add(this.label2);
this.tabPage1.Location = new System.Drawing.Point(4, 39);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
this.tabPage1.Size = new System.Drawing.Size(983, 416);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "ADD NEW STOCK";
//
// groupBox1
//
this.groupBox1.Controls.Add(this.dateexpire);
this.groupBox1.Controls.Add(this.txtlocation);
this.groupBox1.Controls.Add(this.label12);
this.groupBox1.Controls.Add(this.label11);
this.groupBox1.Controls.Add(this.button1);
this.groupBox1.Controls.Add(this.cmbdompany);
this.groupBox1.Controls.Add(this.txtiprice);
this.groupBox1.Controls.Add(this.txtiqnt);
this.groupBox1.Controls.Add(this.txtidetail);
this.groupBox1.Controls.Add(this.txtiname);
this.groupBox1.Controls.Add(this.label10);
this.groupBox1.Controls.Add(this.label9);
this.groupBox1.Controls.Add(this.label8);
this.groupBox1.Controls.Add(this.label7);
this.groupBox1.Controls.Add(this.label6);
this.groupBox1.Location = new System.Drawing.Point(202, 67);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(647, 331);
this.groupBox1.TabIndex = 3;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "ADD Stock";
//
// dateexpire
//
this.dateexpire.Font = new System.Drawing.Font("Microsoft Sans Serif",
8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.dateexpire.Location = new System.Drawing.Point(304, 240);
this.dateexpire.Name = "dateexpire";
this.dateexpire.Size = new System.Drawing.Size(200, 20);
this.dateexpire.TabIndex = 15;
//
// txtlocation
//
this.txtlocation.BackColor = System.Drawing.Color.Honeydew;
this.txtlocation.Location = new System.Drawing.Point(304, 201);
this.txtlocation.Name = "txtlocation";
this.txtlocation.Size = new System.Drawing.Size(121, 26);
this.txtlocation.TabIndex = 14;
//
// label12
//
this.label12.AutoSize = true;
this.label12.Font = new System.Drawing.Font("Calibri", 12F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label12.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)
(64)))), ((int)(((byte)(0)))), ((int)(((byte)(64)))));
this.label12.Location = new System.Drawing.Point(191, 240);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(95, 19);
this.label12.TabIndex = 13;
this.label12.Text = "Expire Date :";
//
// label11
//
this.label11.AutoSize = true;
this.label11.Font = new System.Drawing.Font("Calibri", 12F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label11.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)
(64)))), ((int)(((byte)(0)))), ((int)(((byte)(64)))));
this.label11.Location = new System.Drawing.Point(210, 201);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(76, 19);
this.label11.TabIndex = 12;
this.label11.Text = "Location :";
//
// button1
//
this.button1.Font = new System.Drawing.Font("Calibri", 12F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button1.Location = new System.Drawing.Point(304, 276);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(100, 37);
this.button1.TabIndex = 11;
this.button1.Text = "ADD STOCK";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// cmbdompany
//
this.cmbdompany.FormattingEnabled = true;
this.cmbdompany.Location = new System.Drawing.Point(304, 161);
this.cmbdompany.Name = "cmbdompany";
this.cmbdompany.Size = new System.Drawing.Size(121, 28);
this.cmbdompany.TabIndex = 10;
//
// txtiprice
//
this.txtiprice.BackColor = System.Drawing.Color.Honeydew;
this.txtiprice.Location = new System.Drawing.Point(304, 92);
this.txtiprice.Name = "txtiprice";
this.txtiprice.Size = new System.Drawing.Size(121, 26);
this.txtiprice.TabIndex = 9;
//
// txtiqnt
//
this.txtiqnt.BackColor = System.Drawing.Color.Honeydew;
this.txtiqnt.Location = new System.Drawing.Point(304, 127);
this.txtiqnt.Name = "txtiqnt";
this.txtiqnt.Size = new System.Drawing.Size(121, 26);
this.txtiqnt.TabIndex = 8;
//
// txtidetail
//
this.txtidetail.BackColor = System.Drawing.Color.Honeydew;
this.txtidetail.Location = new System.Drawing.Point(304, 60);
this.txtidetail.Name = "txtidetail";
this.txtidetail.Size = new System.Drawing.Size(160, 26);
this.txtidetail.TabIndex = 6;
//
// txtiname
//
this.txtiname.BackColor = System.Drawing.Color.Honeydew;
this.txtiname.Location = new System.Drawing.Point(304, 28);
this.txtiname.Name = "txtiname";
this.txtiname.Size = new System.Drawing.Size(160, 26);
this.txtiname.TabIndex = 5;
//
// label10
//
this.label10.AutoSize = true;
this.label10.Font = new System.Drawing.Font("Calibri", 12F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label10.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)
(64)))), ((int)(((byte)(0)))), ((int)(((byte)(64)))));
this.label10.Location = new System.Drawing.Point(161, 164);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(125, 19);
this.label10.TabIndex = 4;
this.label10.Text = "Company Name :";
//
// label9
//
this.label9.AutoSize = true;
this.label9.Font = new System.Drawing.Font("Calibri", 12F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label9.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)
(64)))), ((int)(((byte)(0)))), ((int)(((byte)(64)))));
this.label9.Location = new System.Drawing.Point(208, 127);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(78, 19);
this.label9.TabIndex = 3;
this.label9.Text = "Qauntity :";
//
// label8
//
this.label8.AutoSize = true;
this.label8.Font = new System.Drawing.Font("Calibri", 12F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label8.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)
(64)))), ((int)(((byte)(0)))), ((int)(((byte)(64)))));
this.label8.Location = new System.Drawing.Point(200, 91);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(86, 19);
this.label8.TabIndex = 2;
this.label8.Text = "Item Price :";
//
// label7
//
this.label7.AutoSize = true;
this.label7.Font = new System.Drawing.Font("Calibri", 12F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label7.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)
(64)))), ((int)(((byte)(0)))), ((int)(((byte)(64)))));
this.label7.Location = new System.Drawing.Point(194, 59);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(92, 19);
this.label7.TabIndex = 1;
this.label7.Text = "Item Detail :";
//
// label6
//
this.label6.AutoSize = true;
this.label6.Font = new System.Drawing.Font("Calibri", 12F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label6.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)
(64)))), ((int)(((byte)(0)))), ((int)(((byte)(64)))));
this.label6.Location = new System.Drawing.Point(194, 28);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(92, 19);
this.label6.TabIndex = 0;
this.label6.Text = "Item Name :";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Calibri", 30F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)
(192)))), ((int)(((byte)(64)))), ((int)(((byte)(0)))));
this.label2.Location = new System.Drawing.Point(337, 0);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(305, 49);
this.label2.TabIndex = 2;
this.label2.Text = "ADD NEW STOCK";
//
// tabPage2
//
this.tabPage2.BackColor = System.Drawing.Color.DarkSeaGreen;
this.tabPage2.Controls.Add(this.groupBox2);
this.tabPage2.Controls.Add(this.label3);
this.tabPage2.Location = new System.Drawing.Point(4, 39);
this.tabPage2.Name = "tabPage2";
this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
this.tabPage2.Size = new System.Drawing.Size(983, 416);
this.tabPage2.TabIndex = 1;
this.tabPage2.Text = "UPDATE STOCK";
//
// groupBox2
//
this.groupBox2.Controls.Add(this.button4);
this.groupBox2.Controls.Add(this.txtcurentqnt);
this.groupBox2.Controls.Add(this.label13);
this.groupBox2.Controls.Add(this.comboBox1);
this.groupBox2.Controls.Add(this.button2);
this.groupBox2.Controls.Add(this.txtnewqnt);
this.groupBox2.Controls.Add(this.label16);
this.groupBox2.Controls.Add(this.label19);
this.groupBox2.Location = new System.Drawing.Point(169, 57);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(647, 331);
this.groupBox2.TabIndex = 4;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "Update Stock";
//
// txtcurentqnt
//
this.txtcurentqnt.BackColor = System.Drawing.Color.Honeydew;
this.txtcurentqnt.Location = new System.Drawing.Point(292, 112);
this.txtcurentqnt.Name = "txtcurentqnt";
this.txtcurentqnt.ReadOnly = true;
this.txtcurentqnt.Size = new System.Drawing.Size(121, 26);
this.txtcurentqnt.TabIndex = 14;
//
// label13
//
this.label13.AutoSize = true;
this.label13.Font = new System.Drawing.Font("Calibri", 12F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label13.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)
(64)))), ((int)(((byte)(0)))), ((int)(((byte)(64)))));
this.label13.Location = new System.Drawing.Point(187, 116);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(99, 19);
this.label13.TabIndex = 13;
this.label13.Text = "Current Qnt :";
//
// comboBox1
//
this.comboBox1.Font = new System.Drawing.Font("Microsoft Sans Serif",
10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)
(0)));
this.comboBox1.FormattingEnabled = true;
this.comboBox1.Location = new System.Drawing.Point(292, 66);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(121, 24);
this.comboBox1.TabIndex = 12;
this.comboBox1.SelectedIndexChanged += new
System.EventHandler(this.comboBox1_SelectedIndexChanged);
//
// button2
//
this.button2.Font = new System.Drawing.Font("Calibri", 12F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button2.Location = new System.Drawing.Point(292, 226);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(125, 37);
this.button2.TabIndex = 11;
this.button2.Text = "UPDATE STOCK";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// txtnewqnt
//
this.txtnewqnt.BackColor = System.Drawing.Color.Honeydew;
this.txtnewqnt.Location = new System.Drawing.Point(292, 166);
this.txtnewqnt.Name = "txtnewqnt";
this.txtnewqnt.Size = new System.Drawing.Size(121, 26);
this.txtnewqnt.TabIndex = 8;
//
// label16
//
this.label16.AutoSize = true;
this.label16.Font = new System.Drawing.Font("Calibri", 12F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label16.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)
(64)))), ((int)(((byte)(0)))), ((int)(((byte)(64)))));
this.label16.Location = new System.Drawing.Point(208, 173);
this.label16.Name = "label16";
this.label16.Size = new System.Drawing.Size(78, 19);
this.label16.TabIndex = 3;
this.label16.Text = "Qauntity :";
//
// label19
//
this.label19.AutoSize = true;
this.label19.Font = new System.Drawing.Font("Calibri", 12F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label19.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)
(64)))), ((int)(((byte)(0)))), ((int)(((byte)(64)))));
this.label19.Location = new System.Drawing.Point(194, 66);
this.label19.Name = "label19";
this.label19.Size = new System.Drawing.Size(92, 19);
this.label19.TabIndex = 0;
this.label19.Text = "Item Name :";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("Calibri", 30F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)
(192)))), ((int)(((byte)(64)))), ((int)(((byte)(0)))));
this.label3.Location = new System.Drawing.Point(310, 5);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(276, 49);
this.label3.TabIndex = 3;
this.label3.Text = "UPDATE STOCK";
//
// tabPage3
//
this.tabPage3.BackColor = System.Drawing.Color.DarkSeaGreen;
this.tabPage3.Controls.Add(this.groupBox3);
this.tabPage3.Controls.Add(this.label4);
this.tabPage3.Location = new System.Drawing.Point(4, 39);
this.tabPage3.Name = "tabPage3";
this.tabPage3.Padding = new System.Windows.Forms.Padding(3);
this.tabPage3.Size = new System.Drawing.Size(983, 416);
this.tabPage3.TabIndex = 2;
this.tabPage3.Text = "REMOVE STOCK";
//
// groupBox3
//
this.groupBox3.Controls.Add(this.comboBox2);
this.groupBox3.Controls.Add(this.button3);
this.groupBox3.Controls.Add(this.label17);
this.groupBox3.Location = new System.Drawing.Point(185, 74);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(647, 278);
this.groupBox3.TabIndex = 5;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "Delete Stock";
//
// comboBox2
//
this.comboBox2.Font = new System.Drawing.Font("Microsoft Sans Serif",
10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)
(0)));
this.comboBox2.FormattingEnabled = true;
this.comboBox2.Location = new System.Drawing.Point(272, 70);
this.comboBox2.Name = "comboBox2";
this.comboBox2.Size = new System.Drawing.Size(185, 24);
this.comboBox2.TabIndex = 12;
//
// button3
//
this.button3.Font = new System.Drawing.Font("Calibri", 12F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button3.Location = new System.Drawing.Point(272, 132);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(125, 37);
this.button3.TabIndex = 11;
this.button3.Text = "DELETE STOCK";
this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// label17
//
this.label17.AutoSize = true;
this.label17.Font = new System.Drawing.Font("Calibri", 12F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label17.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)
(64)))), ((int)(((byte)(0)))), ((int)(((byte)(64)))));
this.label17.Location = new System.Drawing.Point(174, 71);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(92, 19);
this.label17.TabIndex = 0;
this.label17.Text = "Item Name :";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Font = new System.Drawing.Font("Calibri", 30F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)
(192)))), ((int)(((byte)(64)))), ((int)(((byte)(0)))));
this.label4.Location = new System.Drawing.Point(320, 3);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(262, 49);
this.label4.TabIndex = 3;
this.label4.Text = "DELETE STOCK";
//
// tabPage4
//
this.tabPage4.BackColor = System.Drawing.Color.DarkSeaGreen;
this.tabPage4.Controls.Add(this.groupBox4);
this.tabPage4.Controls.Add(this.label5);
this.tabPage4.Location = new System.Drawing.Point(4, 39);
this.tabPage4.Name = "tabPage4";
this.tabPage4.Padding = new System.Windows.Forms.Padding(3);
this.tabPage4.Size = new System.Drawing.Size(983, 416);
this.tabPage4.TabIndex = 3;
this.tabPage4.Text = "VIEW STOCK";
//
// groupBox4
//
this.groupBox4.Controls.Add(this.dataGridView1);
this.groupBox4.Location = new System.Drawing.Point(83, 55);
this.groupBox4.Name = "groupBox4";
this.groupBox4.Size = new System.Drawing.Size(799, 342);
this.groupBox4.TabIndex = 6;
this.groupBox4.TabStop = false;
this.groupBox4.Text = "View Client List";
//
// dataGridView1
//
this.dataGridView1.BackgroundColor = System.Drawing.Color.DarkSeaGreen;
dataGridViewCellStyle1.Alignment =
System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle1.BackColor = System.Drawing.Color.DarkSeaGreen;
dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans
Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point,
((byte)(0)));
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle1.SelectionBackColor =
System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle1.SelectionForeColor =
System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode =
System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.ColumnHeadersDefaultCellStyle =
dataGridViewCellStyle1;
this.dataGridView1.ColumnHeadersHeightSizeMode =
System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dataGridViewCellStyle2.Alignment =
System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle2.BackColor = System.Drawing.Color.Honeydew;
dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft Sans
Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point,
((byte)(0)));
dataGridViewCellStyle2.ForeColor =
System.Drawing.SystemColors.AppWorkspace;
dataGridViewCellStyle2.SelectionBackColor =
System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle2.SelectionForeColor =
System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle2.WrapMode =
System.Windows.Forms.DataGridViewTriState.False;
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle2;
this.dataGridView1.GridColor = System.Drawing.Color.DarkSeaGreen;
this.dataGridView1.Location = new System.Drawing.Point(22, 25);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.Size = new System.Drawing.Size(746, 311);
this.dataGridView1.TabIndex = 0;
//
// label5
//
this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("Calibri", 30F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)
(192)))), ((int)(((byte)(64)))), ((int)(((byte)(0)))));
this.label5.Location = new System.Drawing.Point(334, 3);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(231, 49);
this.label5.TabIndex = 4;
this.label5.Text = "VIEW STOCK";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Calibri", 35F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.ForeColor = System.Drawing.Color.Purple;
this.label1.Location = new System.Drawing.Point(210, 109);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(792, 58);
this.label1.TabIndex = 1;
this.label1.Text = "ADD / UPDATE / DELETE STOCK HERE !!";
//
// button4
//
this.button4.Font = new System.Drawing.Font("Microsoft Sans Serif",
10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)
(0)));
this.button4.Location = new System.Drawing.Point(419, 62);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(75, 30);
this.button4.TabIndex = 15;
this.button4.Text = "Select";
this.button4.UseVisualStyleBackColor = true;
this.button4.Click += new System.EventHandler(this.button4_Click);
//
// ADDItem
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.DarkSeaGreen;
this.ClientSize = new System.Drawing.Size(1225, 746);
this.Controls.Add(this.label1);
this.Controls.Add(this.tabControl1);
this.Name = "ADDItem";
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
this.Text = "ADDItem";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.Load += new System.EventHandler(this.ADDItem_Load);
this.tabControl1.ResumeLayout(false);
this.tabPage1.ResumeLayout(false);
this.tabPage1.PerformLayout();
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.tabPage2.ResumeLayout(false);
this.tabPage2.PerformLayout();
this.groupBox2.ResumeLayout(false);
this.groupBox2.PerformLayout();
this.tabPage3.ResumeLayout(false);
this.tabPage3.PerformLayout();
this.groupBox3.ResumeLayout(false);
this.groupBox3.PerformLayout();
this.tabPage4.ResumeLayout(false);
this.tabPage4.PerformLayout();
this.groupBox4.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)
(this.dataGridView1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();

#endregion

private System.Windows.Forms.TabControl tabControl1;


private System.Windows.Forms.TabPage tabPage1;
private System.Windows.Forms.TabPage tabPage2;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TabPage tabPage3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.TabPage tabPage4;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.ComboBox cmbdompany;
private System.Windows.Forms.TextBox txtiprice;
private System.Windows.Forms.TextBox txtiqnt;
private System.Windows.Forms.TextBox txtidetail;
private System.Windows.Forms.TextBox txtiname;
private System.Windows.Forms.DateTimePicker dateexpire;
private System.Windows.Forms.TextBox txtlocation;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.TextBox txtcurentqnt;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.ComboBox comboBox1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.TextBox txtnewqnt;
private System.Windows.Forms.Label label16;
private System.Windows.Forms.Label label19;
private System.Windows.Forms.GroupBox groupBox3;
private System.Windows.Forms.ComboBox comboBox2;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Label label17;
private System.Windows.Forms.GroupBox groupBox4;
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.Button button4;

}
}sources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed;
otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}

#region Windows Form Designer generated code

/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new
System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new
System.Windows.Forms.DataGridViewCellStyle();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.dateexpire = new System.Windows.Forms.DateTimePicker();
this.txtlocation = new System.Windows.Forms.TextBox();
this.label12 = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button();
this.cmbdompany = new System.Windows.Forms.ComboBox();
this.txtiprice = new System.Windows.Forms.TextBox();
this.txtiqnt = new System.Windows.Forms.TextBox();
this.txtidetail = new System.Windows.Forms.TextBox();
this.txtiname = new System.Windows.Forms.TextBox();
this.label10 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.tabPage2 = new System.Windows.Forms.TabPage();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.txtcurentqnt = new System.Windows.Forms.TextBox();
this.label13 = new System.Windows.Forms.Label();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.button2 = new System.Windows.Forms.Button();
this.txtnewqnt = new System.Windows.Forms.TextBox();
this.label16 = new System.Windows.Forms.Label();
this.label19 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.tabPage3 = new System.Windows.Forms.TabPage();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.comboBox2 = new System.Windows.Forms.ComboBox();
this.button3 = new System.Windows.Forms.Button();
this.label17 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.tabPage4 = new System.Windows.Forms.TabPage();
this.groupBox4 = new System.Windows.Forms.GroupBox();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.label5 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.button4 = new System.Windows.Forms.Button();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
this.groupBox1.SuspendLayout();
this.tabPage2.SuspendLayout();
this.groupBox2.SuspendLayout();
this.tabPage3.SuspendLayout();
this.groupBox3.SuspendLayout();
this.tabPage4.SuspendLayout();
this.groupBox4.SuspendLayout();
((System.ComponentModel.ISupportInitialize)
(this.dataGridView1)).BeginInit();
this.SuspendLayout();
//
// tabControl1
//
this.tabControl1.Controls.Add(this.tabPage1);
this.tabControl1.Controls.Add(this.tabPage2);
this.tabControl1.Controls.Add(this.tabPage3);
this.tabControl1.Controls.Add(this.tabPage4);
this.tabControl1.Font = new System.Drawing.Font("Microsoft Sans Serif",
12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)
(0)));
this.tabControl1.ItemSize = new System.Drawing.Size(103, 35);
this.tabControl1.Location = new System.Drawing.Point(147, 173);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(991, 459);
this.tabControl1.TabIndex = 0;
this.tabControl1.SelectedIndexChanged += new
System.EventHandler(this.tabControl1_SelectedIndexChanged);
//
// tabPage1
//
this.tabPage1.BackColor = System.Drawing.Color.DarkSeaGreen;
this.tabPage1.Controls.Add(this.groupBox1);
this.tabPage1.Controls.Add(this.label2);
this.tabPage1.Location = new System.Drawing.Point(4, 39);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
this.tabPage1.Size = new System.Drawing.Size(983, 416);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "ADD NEW STOCK";
//
// groupBox1
//
this.groupBox1.Controls.Add(this.dateexpire);
this.groupBox1.Controls.Add(this.txtlocation);
this.groupBox1.Controls.Add(this.label12);
this.groupBox1.Controls.Add(this.label11);
this.groupBox1.Controls.Add(this.button1);
this.groupBox1.Controls.Add(this.cmbdompany);
this.groupBox1.Controls.Add(this.txtiprice);
this.groupBox1.Controls.Add(this.txtiqnt);
this.groupBox1.Controls.Add(this.txtidetail);
this.groupBox1.Controls.Add(this.txtiname);
this.groupBox1.Controls.Add(this.label10);
this.groupBox1.Controls.Add(this.label9);
this.groupBox1.Controls.Add(this.label8);
this.groupBox1.Controls.Add(this.label7);
this.groupBox1.Controls.Add(this.label6);
this.groupBox1.Location = new System.Drawing.Point(202, 67);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(647, 331);
this.groupBox1.TabIndex = 3;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "ADD Stock";
//
// dateexpire
//
this.dateexpire.Font = new System.Drawing.Font("Microsoft Sans Serif",
8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.dateexpire.Location = new System.Drawing.Point(304, 240);
this.dateexpire.Name = "dateexpire";
this.dateexpire.Size = new System.Drawing.Size(200, 20);
this.dateexpire.TabIndex = 15;
//
// txtlocation
//
this.txtlocation.BackColor = System.Drawing.Color.Honeydew;
this.txtlocation.Location = new System.Drawing.Point(304, 201);
this.txtlocation.Name = "txtlocation";
this.txtlocation.Size = new System.Drawing.Size(121, 26);
this.txtlocation.TabIndex = 14;
//
// label12
//
this.label12.AutoSize = true;
this.label12.Font = new System.Drawing.Font("Calibri", 12F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label12.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)
(64)))), ((int)(((byte)(0)))), ((int)(((byte)(64)))));
this.label12.Location = new System.Drawing.Point(191, 240);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(95, 19);
this.label12.TabIndex = 13;
this.label12.Text = "Expire Date :";
//
// label11
//
this.label11.AutoSize = true;
this.label11.Font = new System.Drawing.Font("Calibri", 12F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label11.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)
(64)))), ((int)(((byte)(0)))), ((int)(((byte)(64)))));
this.label11.Location = new System.Drawing.Point(210, 201);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(76, 19);
this.label11.TabIndex = 12;
this.label11.Text = "Location :";
//
// button1
//
this.button1.Font = new System.Drawing.Font("Calibri", 12F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button1.Location = new System.Drawing.Point(304, 276);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(100, 37);
this.button1.TabIndex = 11;
this.button1.Text = "ADD STOCK";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// cmbdompany
//
this.cmbdompany.FormattingEnabled = true;
this.cmbdompany.Location = new System.Drawing.Point(304, 161);
this.cmbdompany.Name = "cmbdompany";
this.cmbdompany.Size = new System.Drawing.Size(121, 28);
this.cmbdompany.TabIndex = 10;
//
// txtiprice
//
this.txtiprice.BackColor = System.Drawing.Color.Honeydew;
this.txtiprice.Location = new System.Drawing.Point(304, 92);
this.txtiprice.Name = "txtiprice";
this.txtiprice.Size = new System.Drawing.Size(121, 26);
this.txtiprice.TabIndex = 9;
//
// txtiqnt
//
this.txtiqnt.BackColor = System.Drawing.Color.Honeydew;
this.txtiqnt.Location = new System.Drawing.Point(304, 127);
this.txtiqnt.Name = "txtiqnt";
this.txtiqnt.Size = new System.Drawing.Size(121, 26);
this.txtiqnt.TabIndex = 8;
//
// txtidetail
//
this.txtidetail.BackColor = System.Drawing.Color.Honeydew;
this.txtidetail.Location = new System.Drawing.Point(304, 60);
this.txtidetail.Name = "txtidetail";
this.txtidetail.Size = new System.Drawing.Size(160, 26);
this.txtidetail.TabIndex = 6;
//
// txtiname
//
this.txtiname.BackColor = System.Drawing.Color.Honeydew;
this.txtiname.Location = new System.Drawing.Point(304, 28);
this.txtiname.Name = "txtiname";
this.txtiname.Size = new System.Drawing.Size(160, 26);
this.txtiname.TabIndex = 5;
//
// label10
//
this.label10.AutoSize = true;
this.label10.Font = new System.Drawing.Font("Calibri", 12F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label10.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)
(64)))), ((int)(((byte)(0)))), ((int)(((byte)(64)))));
this.label10.Location = new System.Drawing.Point(161, 164);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(125, 19);
this.label10.TabIndex = 4;
this.label10.Text = "Company Name :";
//
// label9
//
this.label9.AutoSize = true;
this.label9.Font = new System.Drawing.Font("Calibri", 12F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label9.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)
(64)))), ((int)(((byte)(0)))), ((int)(((byte)(64)))));
this.label9.Location = new System.Drawing.Point(208, 127);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(78, 19);
this.label9.TabIndex = 3;
this.label9.Text = "Qauntity :";
//
// label8
//
this.label8.AutoSize = true;
this.label8.Font = new System.Drawing.Font("Calibri", 12F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label8.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)
(64)))), ((int)(((byte)(0)))), ((int)(((byte)(64)))));
this.label8.Location = new System.Drawing.Point(200, 91);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(86, 19);
this.label8.TabIndex = 2;
this.label8.Text = "Item Price :";
//
// label7
//
this.label7.AutoSize = true;
this.label7.Font = new System.Drawing.Font("Calibri", 12F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label7.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)
(64)))), ((int)(((byte)(0)))), ((int)(((byte)(64)))));
this.label7.Location = new System.Drawing.Point(194, 59);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(92, 19);
this.label7.TabIndex = 1;
this.label7.Text = "Item Detail :";
//
// label6
//
this.label6.AutoSize = true;
this.label6.Font = new System.Drawing.Font("Calibri", 12F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label6.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)
(64)))), ((int)(((byte)(0)))), ((int)(((byte)(64)))));
this.label6.Location = new System.Drawing.Point(194, 28);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(92, 19);
this.label6.TabIndex = 0;
this.label6.Text = "Item Name :";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Calibri", 30F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)
(192)))), ((int)(((byte)(64)))), ((int)(((byte)(0)))));
this.label2.Location = new System.Drawing.Point(337, 0);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(305, 49);
this.label2.TabIndex = 2;
this.label2.Text = "ADD NEW STOCK";
//
// tabPage2
//
this.tabPage2.BackColor = System.Drawing.Color.DarkSeaGreen;
this.tabPage2.Controls.Add(this.groupBox2);
this.tabPage2.Controls.Add(this.label3);
this.tabPage2.Location = new System.Drawing.Point(4, 39);
this.tabPage2.Name = "tabPage2";
this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
this.tabPage2.Size = new System.Drawing.Size(983, 416);
this.tabPage2.TabIndex = 1;
this.tabPage2.Text = "UPDATE STOCK";
//
// groupBox2
//
this.groupBox2.Controls.Add(this.button4);
this.groupBox2.Controls.Add(this.txtcurentqnt);
this.groupBox2.Controls.Add(this.label13);
this.groupBox2.Controls.Add(this.comboBox1);
this.groupBox2.Controls.Add(this.button2);
this.groupBox2.Controls.Add(this.txtnewqnt);
this.groupBox2.Controls.Add(this.label16);
this.groupBox2.Controls.Add(this.label19);
this.groupBox2.Location = new System.Drawing.Point(169, 57);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(647, 331);
this.groupBox2.TabIndex = 4;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "Update Stock";
//
// txtcurentqnt
//
this.txtcurentqnt.BackColor = System.Drawing.Color.Honeydew;
this.txtcurentqnt.Location = new System.Drawing.Point(292, 112);
this.txtcurentqnt.Name = "txtcurentqnt";
this.txtcurentqnt.ReadOnly = true;
this.txtcurentqnt.Size = new System.Drawing.Size(121, 26);
this.txtcurentqnt.TabIndex = 14;
//
// label13
//
this.label13.AutoSize = true;
this.label13.Font = new System.Drawing.Font("Calibri", 12F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label13.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)
(64)))), ((int)(((byte)(0)))), ((int)(((byte)(64)))));
this.label13.Location = new System.Drawing.Point(187, 116);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(99, 19);
this.label13.TabIndex = 13;
this.label13.Text = "Current Qnt :";
//
// comboBox1
//
this.comboBox1.Font = new System.Drawing.Font("Microsoft Sans Serif",
10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)
(0)));
this.comboBox1.FormattingEnabled = true;
this.comboBox1.Location = new System.Drawing.Point(292, 66);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(121, 24);
this.comboBox1.TabIndex = 12;
this.comboBox1.SelectedIndexChanged += new
System.EventHandler(this.comboBox1_SelectedIndexChanged);
//
// button2
//
this.button2.Font = new System.Drawing.Font("Calibri", 12F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button2.Location = new System.Drawing.Point(292, 226);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(125, 37);
this.button2.TabIndex = 11;
this.button2.Text = "UPDATE STOCK";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// txtnewqnt
//
this.txtnewqnt.BackColor = System.Drawing.Color.Honeydew;
this.txtnewqnt.Location = new System.Drawing.Point(292, 166);
this.txtnewqnt.Name = "txtnewqnt";
this.txtnewqnt.Size = new System.Drawing.Size(121, 26);
this.txtnewqnt.TabIndex = 8;
//
// label16
//
this.label16.AutoSize = true;
this.label16.Font = new System.Drawing.Font("Calibri", 12F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label16.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)
(64)))), ((int)(((byte)(0)))), ((int)(((byte)(64)))));
this.label16.Location = new System.Drawing.Point(208, 173);
this.label16.Name = "label16";
this.label16.Size = new System.Drawing.Size(78, 19);
this.label16.TabIndex = 3;
this.label16.Text = "Qauntity :";
//
// label19
//
this.label19.AutoSize = true;
this.label19.Font = new System.Drawing.Font("Calibri", 12F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label19.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)
(64)))), ((int)(((byte)(0)))), ((int)(((byte)(64)))));
this.label19.Location = new System.Drawing.Point(194, 66);
this.label19.Name = "label19";
this.label19.Size = new System.Drawing.Size(92, 19);
this.label19.TabIndex = 0;
this.label19.Text = "Item Name :";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("Calibri", 30F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)
(192)))), ((int)(((byte)(64)))), ((int)(((byte)(0)))));
this.label3.Location = new System.Drawing.Point(310, 5);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(276, 49);
this.label3.TabIndex = 3;
this.label3.Text = "UPDATE STOCK";
//
// tabPage3
//
this.tabPage3.BackColor = System.Drawing.Color.DarkSeaGreen;
this.tabPage3.Controls.Add(this.groupBox3);
this.tabPage3.Controls.Add(this.label4);
this.tabPage3.Location = new System.Drawing.Point(4, 39);
this.tabPage3.Name = "tabPage3";
this.tabPage3.Padding = new System.Windows.Forms.Padding(3);
this.tabPage3.Size = new System.Drawing.Size(983, 416);
this.tabPage3.TabIndex = 2;
this.tabPage3.Text = "REMOVE STOCK";
//
// groupBox3
//
this.groupBox3.Controls.Add(this.comboBox2);
this.groupBox3.Controls.Add(this.button3);
this.groupBox3.Controls.Add(this.label17);
this.groupBox3.Location = new System.Drawing.Point(185, 74);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(647, 278);
this.groupBox3.TabIndex = 5;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "Delete Stock";
//
// comboBox2
//
this.comboBox2.Font = new System.Drawing.Font("Microsoft Sans Serif",
10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)
(0)));
this.comboBox2.FormattingEnabled = true;
this.comboBox2.Location = new System.Drawing.Point(272, 70);
this.comboBox2.Name = "comboBox2";
this.comboBox2.Size = new System.Drawing.Size(185, 24);
this.comboBox2.TabIndex = 12;
//
// button3
//
this.button3.Font = new System.Drawing.Font("Calibri", 12F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button3.Location = new System.Drawing.Point(272, 132);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(125, 37);
this.button3.TabIndex = 11;
this.button3.Text = "DELETE STOCK";
this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// label17
//
this.label17.AutoSize = true;
this.label17.Font = new System.Drawing.Font("Calibri", 12F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label17.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)
(64)))), ((int)(((byte)(0)))), ((int)(((byte)(64)))));
this.label17.Location = new System.Drawing.Point(174, 71);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(92, 19);
this.label17.TabIndex = 0;
this.label17.Text = "Item Name :";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Font = new System.Drawing.Font("Calibri", 30F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)
(192)))), ((int)(((byte)(64)))), ((int)(((byte)(0)))));
this.label4.Location = new System.Drawing.Point(320, 3);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(262, 49);
this.label4.TabIndex = 3;
this.label4.Text = "DELETE STOCK";
//
// tabPage4
//
this.tabPage4.BackColor = System.Drawing.Color.DarkSeaGreen;
this.tabPage4.Controls.Add(this.groupBox4);
this.tabPage4.Controls.Add(this.label5);
this.tabPage4.Location = new System.Drawing.Point(4, 39);
this.tabPage4.Name = "tabPage4";
this.tabPage4.Padding = new System.Windows.Forms.Padding(3);
this.tabPage4.Size = new System.Drawing.Size(983, 416);
this.tabPage4.TabIndex = 3;
this.tabPage4.Text = "VIEW STOCK";
//
// groupBox4
//
this.groupBox4.Controls.Add(this.dataGridView1);
this.groupBox4.Location = new System.Drawing.Point(83, 55);
this.groupBox4.Name = "groupBox4";
this.groupBox4.Size = new System.Drawing.Size(799, 342);
this.groupBox4.TabIndex = 6;
this.groupBox4.TabStop = false;
this.groupBox4.Text = "View Client List";
//
// dataGridView1
//
this.dataGridView1.BackgroundColor = System.Drawing.Color.DarkSeaGreen;
dataGridViewCellStyle1.Alignment =
System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle1.BackColor = System.Drawing.Color.DarkSeaGreen;
dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans
Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point,
((byte)(0)));
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle1.SelectionBackColor =
System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle1.SelectionForeColor =
System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode =
System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.ColumnHeadersDefaultCellStyle =
dataGridViewCellStyle1;
this.dataGridView1.ColumnHeadersHeightSizeMode =
System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dataGridViewCellStyle2.Alignment =
System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle2.BackColor = System.Drawing.Color.Honeydew;
dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft Sans
Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point,
((byte)(0)));
dataGridViewCellStyle2.ForeColor =
System.Drawing.SystemColors.AppWorkspace;
dataGridViewCellStyle2.SelectionBackColor =
System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle2.SelectionForeColor =
System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle2.WrapMode =
System.Windows.Forms.DataGridViewTriState.False;
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle2;
this.dataGridView1.GridColor = System.Drawing.Color.DarkSeaGreen;
this.dataGridView1.Location = new System.Drawing.Point(22, 25);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.Size = new System.Drawing.Size(746, 311);
this.dataGridView1.TabIndex = 0;
//
// label5
//
this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("Calibri", 30F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)
(192)))), ((int)(((byte)(64)))), ((int)(((byte)(0)))));
this.label5.Location = new System.Drawing.Point(334, 3);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(231, 49);
this.label5.TabIndex = 4;
this.label5.Text = "VIEW STOCK";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Calibri", 35F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.ForeColor = System.Drawing.Color.Purple;
this.label1.Location = new System.Drawing.Point(210, 109);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(792, 58);
this.label1.TabIndex = 1;
this.label1.Text = "ADD / UPDATE / DELETE STOCK HERE !!";
//
// button4
//
this.button4.Font = new System.Drawing.Font("Microsoft Sans Serif",
10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)
(0)));
this.button4.Location = new System.Drawing.Point(419, 62);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(75, 30);
this.button4.TabIndex = 15;
this.button4.Text = "Select";
this.button4.UseVisualStyleBackColor = true;
this.button4.Click += new System.EventHandler(this.button4_Click);
//
// ADDItem
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.DarkSeaGreen;
this.ClientSize = new System.Drawing.Size(1225, 746);
this.Controls.Add(this.label1);
this.Controls.Add(this.tabControl1);
this.Name = "ADDItem";
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
this.Text = "ADDItem";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.Load += new System.EventHandler(this.ADDItem_Load);
this.tabControl1.ResumeLayout(false);
this.tabPage1.ResumeLayout(false);
this.tabPage1.PerformLayout();
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.tabPage2.ResumeLayout(false);
this.tabPage2.PerformLayout();
this.groupBox2.ResumeLayout(false);
this.groupBox2.PerformLayout();
this.tabPage3.ResumeLayout(false);
this.tabPage3.PerformLayout();
this.groupBox3.ResumeLayout(false);
this.groupBox3.PerformLayout();
this.tabPage4.ResumeLayout(false);
this.tabPage4.PerformLayout();
this.groupBox4.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)
(this.dataGridView1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();

#endregion

private System.Windows.Forms.TabControl tabControl1;


private System.Windows.Forms.TabPage tabPage1;
private System.Windows.Forms.TabPage tabPage2;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TabPage tabPage3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.TabPage tabPage4;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.ComboBox cmbdompany;
private System.Windows.Forms.TextBox txtiprice;
private System.Windows.Forms.TextBox txtiqnt;
private System.Windows.Forms.TextBox txtidetail;
private System.Windows.Forms.TextBox txtiname;
private System.Windows.Forms.DateTimePicker dateexpire;
private System.Windows.Forms.TextBox txtlocation;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.TextBox txtcurentqnt;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.ComboBox comboBox1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.TextBox txtnewqnt;
private System.Windows.Forms.Label label16;
private System.Windows.Forms.Label label19;
private System.Windows.Forms.GroupBox groupBox3;
private System.Windows.Forms.ComboBox comboBox2;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Label label17;
private System.Windows.Forms.GroupBox groupBox4;
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.Button button4;

}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MEDICAL
{
public partial class ADDItem : Form
{
DS.DS_ITEM.StockInMst_SelectDataTable IDT = new
MEDICAL.DS.DS_ITEM.StockInMst_SelectDataTable();
DS.DS_ITEMTableAdapters.StockInMst_SelectTableAdapter IAdapter = new
MEDICAL.DS.DS_ITEMTableAdapters.StockInMst_SelectTableAdapter();

DS.DS_COMPANY.CompanyMst_SelectDataTable CDT = new


MEDICAL.DS.DS_COMPANY.CompanyMst_SelectDataTable();
DS.DS_COMPANYTableAdapters.CompanyMst_SelectTableAdapter CAdapter = new
MEDICAL.DS.DS_COMPANYTableAdapters.CompanyMst_SelectTableAdapter();

DS.DS_STOCK.StockMst_SelectDataTable SDT = new


MEDICAL.DS.DS_STOCK.StockMst_SelectDataTable();
DS.DS_STOCKTableAdapters.StockMst_SelectTableAdapter SAdapter = new
MEDICAL.DS.DS_STOCKTableAdapters.StockMst_SelectTableAdapter();
DS.DS_USER.UserMst_SelectDataTable UDT = new
DS.DS_USER.UserMst_SelectDataTable();
DS.DS_USERTableAdapters.UserMst_SelectTableAdapter UAdapter = new
MEDICAL.DS.DS_USERTableAdapters.UserMst_SelectTableAdapter();
public string username;
public ADDItem(string uname)
{
username = uname;
InitializeComponent();
}

private void ADDItem_Load(object sender, EventArgs e)


{
CDT = CAdapter.SelectComapny();
cmbdompany.DataSource = CDT;
cmbdompany.DisplayMember = "Cname";
cmbdompany.ValueMember = "Cid";

IDT = IAdapter.SelectItem();
comboBox1.DataSource = IDT;
comboBox1.DisplayMember = "I_name";
comboBox1.ValueMember = "I_ID";
}

private void button1_Click(object sender, EventArgs e)


{
int inst = IAdapter.Insert(txtiname.Text, txtidetail.Text,
Convert.ToInt32(txtiqnt.Text), Convert.ToDouble(txtiprice.Text), cmbdompany.Text,
Convert.ToDateTime(dateexpire.Text), txtlocation.Text);

double price=Convert.ToDouble(txtiqnt.Text) *
Convert.ToDouble(txtiprice.Text);
int addstock = SAdapter.Insert(txtiname.Text,
Convert.ToDouble(txtiprice.Text), Convert.ToInt32(txtiqnt.Text), 0,
Convert.ToInt32(txtiqnt.Text), price, 0, price, System.DateTime.Now.Date);

MessageBox.Show("Item Added Successfully !!", "MEdical System");

private void tabControl1_SelectedIndexChanged(object sender, EventArgs e)


{
if (tabControl1.SelectedIndex == 0)
{
CDT = CAdapter.SelectComapny();
cmbdompany.DataSource = CDT;
cmbdompany.DisplayMember = "Cname";
cmbdompany.ValueMember = "Cid";
}
else if (tabControl1.SelectedIndex == 1)
{
IDT = IAdapter.SelectItem();
comboBox1.DataSource = IDT;
comboBox1.DisplayMember = "I_name";
comboBox1.ValueMember = "I_ID";
}
else if (tabControl1.SelectedIndex == 2)
{
IDT = IAdapter.SelectItem();
comboBox2.DataSource = IDT;
comboBox2.DisplayMember = "I_name";
comboBox2.ValueMember = "I_ID";

}
else if (tabControl1.SelectedIndex == 3)
{

IDT = IAdapter.SelectItem();
dataGridView1.DataSource = IDT;
}
}

private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)


{
//if (comboBox1.SelectedText != "")
//{
//IDT = IAdapter.SelectBYID(Convert.ToInt32(comboBox1.SelectedValue));
// txtcurentqnt.Text = IDT.Rows[0]["I_Quantity"].ToString();
//}
}

private void button2_Click(object sender, EventArgs e)


{
if (MessageBox.Show("Are you sure !! You want to Update Stock !!",
"Medical system", MessageBoxButtons.OKCancel) == DialogResult.OK)
{

IDT =
IAdapter.SelectBYID(Convert.ToInt32(comboBox1.SelectedValue));

//IAdapter.StockInMst_Updateitem(Convert.ToInt32(comboBox1.SelectedValue),
Convert.ToInt32(txtnewqnt.Text));
int inst = IAdapter.Insert(comboBox1.Text, IDT.Rows[0]
["I_Descrip"].ToString(), Convert.ToInt32(txtnewqnt.Text),
Convert.ToDouble(IDT.Rows[0]["I_Price"].ToString()), IDT.Rows[0]
["c_name"].ToString(), Convert.ToDateTime(IDT.Rows[0]["I_Ex_date"].ToString()),
IDT.Rows[0]["I_location"].ToString());

double tprice = Convert.ToDouble(txtnewqnt.Text) *


Convert.ToDouble(IDT.Rows[0]["I_Price"].ToString());

SAdapter.StockMst_ADD_Update_Quantity(Convert.ToInt32(txtnewqnt.Text), tprice,
comboBox1.Text);

MessageBox.Show("Quantity Updated Successfully !!", "MEdical


System");
}
}

private void button3_Click(object sender, EventArgs e)


{
int del= IAdapter.Delete(Convert.ToInt32(comboBox2.SelectedValue));
MessageBox.Show("Item Deleted Successfully !!", "Medical System");
}
private void button4_Click(object sender, EventArgs e)
{
IDT = IAdapter.SelectBYID(Convert.ToInt32(comboBox1.SelectedValue));
txtcurentqnt.Text = IDT.Rows[0]["I_Quantity"].ToString();
}
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MEDICAL
{
public partial class Client : Form
{
DS.DS_CLIENT.ClientMst_SelectDataTable CDT = new
MEDICAL.DS.DS_CLIENT.ClientMst_SelectDataTable();
DS.DS_CLIENTTableAdapters.ClientMst_SelectTableAdapter CAdapter = new
MEDICAL.DS.DS_CLIENTTableAdapters.ClientMst_SelectTableAdapter();
public Client()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)


{
int inst = CAdapter.Insert(txtame.Text, txtsurname.Text,
Convert.ToDouble(txtmobile.Text), txtadd.Text, txtcity.Text);
MessageBox.Show("Client Added Susscessfully !!", "Medical System");
}

private void tabControl1_SelectedIndexChanged(object sender, EventArgs e)


{
if (tabControl1.SelectedIndex == 0)
{

}
else if (tabControl1.SelectedIndex == 1)
{

CDT = CAdapter.SelectClient();
comboBox1.DataSource = CDT;
comboBox1.DisplayMember = "cu_name";
comboBox1.ValueMember = "cu_id";

}
else if (tabControl1.SelectedIndex == 2)
{
CDT = CAdapter.SelectClient();
dataGridView1.DataSource = CDT;
}
}

private void button2_Click(object sender, EventArgs e)


{
int del = CAdapter.Delete(Convert.ToInt32(comboBox1.SelectedValue));
MessageBox.Show("Client Deleted !", "Medical System");
CDT = CAdapter.SelectClient();
comboBox1.DataSource = CDT;
comboBox1.DisplayMember = "cu_name";
comboBox1.ValueMember = "cu_id";

}
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MEDICAL
{

public partial class Form1 : Form


{
DS.DS_USER.UserMst_SelectDataTable UDT = new
DS.DS_USER.UserMst_SelectDataTable();
DS.DS_USERTableAdapters.UserMst_SelectTableAdapter UAdapter = new
MEDICAL.DS.DS_USERTableAdapters.UserMst_SelectTableAdapter();
public string username;
public Form1()
{
InitializeComponent();
}

private void Form1_Load(object sender, EventArgs e)


{

lbltime.Text = System.DateTime.Now.ToString();
lblday.Text = System.DateTime.Now.DayOfWeek.ToString();

foreach (Control ctl in this.Controls)


{
try
{
System.Windows.Forms.Control Mdi = (MdiClient)ctl;

Mdi.BackColor = System.Drawing.Color.DarkSeaGreen;
}
catch (Exception a)
{

}
}
}

private void btnlogin_Click(object sender, EventArgs e)


{
if (txtname.Text == "")
{

MessageBox.Show("Enter Login Name !", "Medical System");


}
else if (txtpass.Text == "")
{
MessageBox.Show("Enter Login Password !", "Medical System");
}
else
{
UDT = UAdapter.SelectForLOGIN(txtname.Text, txtpass.Text);
if(UDT.Rows.Count>0)
{ lblname.Text = "welcome " + txtname.Text;
username = txtname.Text;
txtname.Text = "";
txtpass.Text = "";
gplogin.Visible = false;
menulogout.Visible = true;
mENUToolStripMenuItem.Enabled = true;
sELLToolStripMenuItem.Enabled = true;
cLIENTSToolStripMenuItem.Enabled = true;
rEPORTSToolStripMenuItem.Enabled = true;
mANAGEUSERToolStripMenuItem.Enabled = true;
cOMPANYToolStripMenuItem.Enabled = true;

}
else
{
MessageBox.Show("Invalid LoginName OR Password !", "Medical
System");
}
}
}

private void menulogout_Click(object sender, EventArgs e)


{
closeExistingForm();
gplogin.Visible = true;
menulogout.Visible = false;
mENUToolStripMenuItem.Enabled = false;
sELLToolStripMenuItem.Enabled = false;
cLIENTSToolStripMenuItem.Enabled = false;
rEPORTSToolStripMenuItem.Enabled = false;
mANAGEUSERToolStripMenuItem.Enabled = false;
cOMPANYToolStripMenuItem.Enabled = false;

lblname.Text = "";
}

private void nEWToolStripMenuItem_Click(object sender, EventArgs e)


{
closeExistingForm();
Form additem = new ADDItem(username);
additem.MdiParent = this;
additem.Show();
}
private void closeExistingForm()
{
try
{
this.ActiveMdiChild.Close();
}
catch (Exception)
{

}
private void eXITToolStripMenuItem_Click(object sender, EventArgs e)
{
Application.Exit();
}

private void aDDNEWToolStripMenuItem_Click(object sender, EventArgs e)


{
closeExistingForm();
Form additem = new UserMst(username);
additem.MdiParent = this;
additem.Show();
}

private void aDDNEWToolStripMenuItem1_Click(object sender, EventArgs e)


{
closeExistingForm();
Form additem = new Company();
additem.MdiParent = this;
additem.Show();

private void aDDNEWToolStripMenuItem2_Click(object sender, EventArgs e)


{
closeExistingForm();
Form additem = new Client();
additem.MdiParent = this;
additem.Show();

private void sELLToolStripMenuItem_Click(object sender, EventArgs e)


{
DS.DS_SALES.SALES_SELECTDataTable SDT = new
MEDICAL.DS.DS_SALES.SALES_SELECTDataTable();
DS.DS_SALESTableAdapters.SALES_SELECTTableAdapter SAdapter = new
MEDICAL.DS.DS_SALESTableAdapters.SALES_SELECTTableAdapter();
int del = SAdapter.Delete();
closeExistingForm();
Form additem = new SELL();
additem.MdiParent = this;
additem.Show();
}

private void timer1_Tick(object sender, EventArgs e)


{

}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace MEDICAL
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}
namespace MEDICAL
{
partial class SELL
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;

/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed;
otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}

#region Windows Form Designer generated code

/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 =
new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 =
new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 =
new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 =
new System.Windows.Forms.DataGridViewCellStyle();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.label3 = new System.Windows.Forms.Label();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.gpdispatch = new System.Windows.Forms.GroupBox();
this.label8 = new System.Windows.Forms.Label();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.label1 = new System.Windows.Forms.Label();
this.txtq = new System.Windows.Forms.TextBox();
this.label7 = new System.Windows.Forms.Label();
this.lbll = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.lblp = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.lblq = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.lbltprice = new System.Windows.Forms.Label();
this.lblqnt = new System.Windows.Forms.Label();
this.button2 = new System.Windows.Forms.Button();
this.button1 = new System.Windows.Forms.Button();
this.gvsales = new System.Windows.Forms.DataGridView();
this.PName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Price = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Quntity = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.TotalPrice = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Remove = new System.Windows.Forms.DataGridViewLinkColumn();
this.IID = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.label6 = new System.Windows.Forms.Label();
this.txtiname = new System.Windows.Forms.TextBox();
this.txtpname = new System.Windows.Forms.TextBox();
this.groupBox1.SuspendLayout();
this.gpdispatch.SuspendLayout();
this.tableLayoutPanel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.gvsales)).BeginInit();
this.SuspendLayout();
//
// groupBox1
//
this.groupBox1.Controls.Add(this.label3);
this.groupBox1.Controls.Add(this.comboBox1);
this.groupBox1.Controls.Add(this.gpdispatch);
this.groupBox1.Controls.Add(this.label6);
this.groupBox1.Controls.Add(this.txtiname);
this.groupBox1.Controls.Add(this.txtpname);
this.groupBox1.Font = new System.Drawing.Font("Microsoft Sans Serif",
12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)
(0)));
this.groupBox1.Location = new System.Drawing.Point(163, 123);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(937, 530);
this.groupBox1.TabIndex = 4;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Item Sell Area";
this.groupBox1.Enter += new System.EventHandler(this.groupBox1_Enter);
//
// label3
//
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("Calibri", 12F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)
(64)))), ((int)(((byte)(0)))), ((int)(((byte)(64)))));
this.label3.Location = new System.Drawing.Point(163, 23);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(126, 19);
this.label3.TabIndex = 11;
this.label3.Text = "Customer Name :";
//
// comboBox1
//
this.comboBox1.Font = new System.Drawing.Font("Microsoft Sans Serif",
10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)
(0)));
this.comboBox1.FormattingEnabled = true;
this.comboBox1.Location = new System.Drawing.Point(292, 21);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(149, 24);
this.comboBox1.TabIndex = 12;
this.comboBox1.SelectedIndexChanged += new
System.EventHandler(this.comboBox1_SelectedIndexChanged);
//
// gpdispatch
//
this.gpdispatch.BackColor = System.Drawing.Color.DarkSeaGreen;
this.gpdispatch.Controls.Add(this.label8);
this.gpdispatch.Controls.Add(this.button2);
this.gpdispatch.Controls.Add(this.tableLayoutPanel1);
this.gpdispatch.Controls.Add(this.label2);
this.gpdispatch.Controls.Add(this.lbltprice);
this.gpdispatch.Controls.Add(this.lblqnt);
this.gpdispatch.Controls.Add(this.button1);
this.gpdispatch.Controls.Add(this.gvsales);
this.gpdispatch.Font = new System.Drawing.Font("Microsoft Sans Serif",
8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)
(0)));
this.gpdispatch.ForeColor = System.Drawing.SystemColors.ControlText;
this.gpdispatch.Location = new System.Drawing.Point(103, 82);
this.gpdispatch.Name = "gpdispatch";
this.gpdispatch.Size = new System.Drawing.Size(709, 431);
this.gpdispatch.TabIndex = 8;
this.gpdispatch.TabStop = false;
this.gpdispatch.Text = "Stock Out";
this.gpdispatch.Visible = false;
//
// label8
//
this.label8.Anchor = System.Windows.Forms.AnchorStyles.None;
this.label8.AutoSize = true;
this.label8.Font = new System.Drawing.Font("Calibri", 12F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label8.ForeColor = System.Drawing.Color.Red;
this.label8.Location = new System.Drawing.Point(77, 16);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(0, 19);
this.label8.TabIndex = 20;
//
// tableLayoutPanel1
//
this.tableLayoutPanel1.ColumnCount = 8;
this.tableLayoutPanel1.ColumnStyles.Add(new
System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 12.5F));
this.tableLayoutPanel1.ColumnStyles.Add(new
System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 9.89011F));
this.tableLayoutPanel1.ColumnStyles.Add(new
System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent,
12.08791F));
this.tableLayoutPanel1.ColumnStyles.Add(new
System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent,
10.62271F));
this.tableLayoutPanel1.ColumnStyles.Add(new
System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent,
15.75092F));
this.tableLayoutPanel1.ColumnStyles.Add(new
System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent,
12.45421F));
this.tableLayoutPanel1.ColumnStyles.Add(new
System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent,
13.91941F));
this.tableLayoutPanel1.ColumnStyles.Add(new
System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 12.5F));
this.tableLayoutPanel1.Controls.Add(this.label1, 0, 0);
this.tableLayoutPanel1.Controls.Add(this.txtq, 7, 0);
this.tableLayoutPanel1.Controls.Add(this.label7, 6, 0);
this.tableLayoutPanel1.Controls.Add(this.lbll, 5, 0);
this.tableLayoutPanel1.Controls.Add(this.label5, 4, 0);
this.tableLayoutPanel1.Controls.Add(this.lblp, 3, 0);
this.tableLayoutPanel1.Controls.Add(this.label4, 2, 0);
this.tableLayoutPanel1.Controls.Add(this.lblq, 1, 0);
this.tableLayoutPanel1.Location = new System.Drawing.Point(81, 38);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RightToLeft =
System.Windows.Forms.RightToLeft.No;
this.tableLayoutPanel1.RowCount = 1;
this.tableLayoutPanel1.RowStyles.Add(new
System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(546, 36);
this.tableLayoutPanel1.TabIndex = 11;
//
// label1
//
this.label1.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Calibri", 12F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)
(64)))), ((int)(((byte)(0)))), ((int)(((byte)(64)))));
this.label1.Location = new System.Drawing.Point(22, 8);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(43, 19);
this.label1.TabIndex = 12;
this.label1.Text = "Qnt :";
this.label1.Click += new System.EventHandler(this.label1_Click);
//
// txtq
//
this.txtq.Anchor = System.Windows.Forms.AnchorStyles.None;
this.txtq.BackColor = System.Drawing.Color.Honeydew;
this.txtq.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.txtq.Location = new System.Drawing.Point(479, 6);
this.txtq.Name = "txtq";
this.txtq.Size = new System.Drawing.Size(64, 23);
this.txtq.TabIndex = 18;
this.txtq.TextChanged += new
System.EventHandler(this.txtq_TextChanged);
this.txtq.Leave += new System.EventHandler(this.txtq_Leave);
//
// label7
//
this.label7.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.label7.AutoSize = true;
this.label7.Font = new System.Drawing.Font("Calibri", 12F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label7.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)
(64)))), ((int)(((byte)(0)))), ((int)(((byte)(64)))));
this.label7.Location = new System.Drawing.Point(406, 8);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(67, 19);
this.label7.TabIndex = 15;
this.label7.Text = "SellQnt :";
//
// lbll
//
this.lbll.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.lbll.AutoSize = true;
this.lbll.Font = new System.Drawing.Font("Calibri", 12F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lbll.ForeColor = System.Drawing.Color.Honeydew;
this.lbll.Location = new System.Drawing.Point(335, 8);
this.lbll.Name = "lbll";
this.lbll.Size = new System.Drawing.Size(43, 19);
this.lbll.TabIndex = 21;
this.lbll.Text = "Qnt :";
//
// label5
//
this.label5.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("Calibri", 12F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)
(64)))), ((int)(((byte)(0)))), ((int)(((byte)(64)))));
this.label5.Location = new System.Drawing.Point(253, 8);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(76, 19);
this.label5.TabIndex = 14;
this.label5.Text = "Location :";
//
// lblp
//
this.lblp.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.lblp.AutoSize = true;
this.lblp.Font = new System.Drawing.Font("Calibri", 12F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblp.ForeColor = System.Drawing.Color.Honeydew;
this.lblp.Location = new System.Drawing.Point(191, 8);
this.lblp.Name = "lblp";
this.lblp.Size = new System.Drawing.Size(43, 19);
this.lblp.TabIndex = 20;
this.lblp.Text = "Qnt :";
//
// label4
//
this.label4.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.label4.AutoSize = true;
this.label4.Font = new System.Drawing.Font("Calibri", 12F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)
(64)))), ((int)(((byte)(0)))), ((int)(((byte)(64)))));
this.label4.Location = new System.Drawing.Point(134, 8);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(51, 19);
this.label4.TabIndex = 13;
this.label4.Text = "Price :";
//
// lblq
//
this.lblq.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.lblq.AutoSize = true;
this.lblq.Font = new System.Drawing.Font("Calibri", 12F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblq.ForeColor = System.Drawing.Color.Honeydew;
this.lblq.Location = new System.Drawing.Point(71, 8);
this.lblq.Name = "lblq";
this.lblq.Size = new System.Drawing.Size(43, 19);
this.lblq.TabIndex = 19;
this.lblq.Text = "Qnt :";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)
(192)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
this.label2.Location = new System.Drawing.Point(294, 360);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(61, 15);
this.label2.TabIndex = 10;
this.label2.Text = "TOTAL =";
//
// lbltprice
//
this.lbltprice.AutoSize = true;
this.lbltprice.Font = new System.Drawing.Font("Microsoft Sans Serif",
9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lbltprice.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)
(192)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
this.lbltprice.Location = new System.Drawing.Point(467, 360);
this.lbltprice.Name = "lbltprice";
this.lbltprice.Size = new System.Drawing.Size(15, 15);
this.lbltprice.TabIndex = 9;
this.lbltprice.Text = "0";
//
// lblqnt
//
this.lblqnt.AutoSize = true;
this.lblqnt.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblqnt.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)
(192)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
this.lblqnt.Location = new System.Drawing.Point(370, 360);
this.lblqnt.Name = "lblqnt";
this.lblqnt.Size = new System.Drawing.Size(15, 15);
this.lblqnt.TabIndex = 8;
this.lblqnt.Text = "0";
//
// button2
//
this.button2.BackColor = System.Drawing.Color.Honeydew;
this.button2.Font = new System.Drawing.Font("Microsoft Sans Serif",
11F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)
(0)));
this.button2.Location = new System.Drawing.Point(515, 387);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(112, 38);
this.button2.TabIndex = 5;
this.button2.Text = "CANCLE";
this.button2.UseVisualStyleBackColor = false;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// button1
//
this.button1.BackColor = System.Drawing.Color.Honeydew;
this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif",
11F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)
(0)));
this.button1.Location = new System.Drawing.Point(357, 387);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(152, 38);
this.button1.TabIndex = 4;
this.button1.Text = "SUBMIT ORDER";
this.button1.UseVisualStyleBackColor = false;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// gvsales
//
this.gvsales.AllowUserToAddRows = false;
this.gvsales.AllowUserToDeleteRows = false;
this.gvsales.AllowUserToResizeColumns = false;
this.gvsales.AllowUserToResizeRows = false;
this.gvsales.BackgroundColor = System.Drawing.Color.DarkSeaGreen;
dataGridViewCellStyle17.Alignment =
System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle17.BackColor =
System.Drawing.SystemColors.Control;
dataGridViewCellStyle17.Font = new System.Drawing.Font("Microsoft Sans
Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point,
((byte)(0)));
dataGridViewCellStyle17.ForeColor =
System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle17.SelectionBackColor =
System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle17.SelectionForeColor =
System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle17.WrapMode =
System.Windows.Forms.DataGridViewTriState.True;
this.gvsales.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle17;
this.gvsales.ColumnHeadersHeightSizeMode =
System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.gvsales.Columns.AddRange(new
System.Windows.Forms.DataGridViewColumn[] {
this.PName,
this.Price,
this.Quntity,
this.TotalPrice,
this.Remove,
this.IID});
dataGridViewCellStyle18.Alignment =
System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle18.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle18.Font = new System.Drawing.Font("Microsoft Sans
Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point,
((byte)(0)));
dataGridViewCellStyle18.ForeColor =
System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle18.SelectionBackColor =
System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle18.SelectionForeColor =
System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle18.WrapMode =
System.Windows.Forms.DataGridViewTriState.False;
this.gvsales.DefaultCellStyle = dataGridViewCellStyle18;
this.gvsales.GridColor = System.Drawing.Color.DarkSeaGreen;
this.gvsales.Location = new System.Drawing.Point(81, 80);
this.gvsales.Name = "gvsales";
dataGridViewCellStyle19.Alignment =
System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle19.BackColor = System.Drawing.Color.DarkSeaGreen;
dataGridViewCellStyle19.Font = new System.Drawing.Font("Microsoft Sans
Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point,
((byte)(0)));
dataGridViewCellStyle19.ForeColor =
System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle19.SelectionBackColor =
System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle19.SelectionForeColor =
System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle19.WrapMode =
System.Windows.Forms.DataGridViewTriState.True;
this.gvsales.RowHeadersDefaultCellStyle = dataGridViewCellStyle19;
dataGridViewCellStyle20.Alignment =
System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle20.BackColor = System.Drawing.Color.Honeydew;
this.gvsales.RowsDefaultCellStyle = dataGridViewCellStyle20;
this.gvsales.Size = new System.Drawing.Size(546, 277);
this.gvsales.TabIndex = 3;
this.gvsales.CellContentClick += new
System.Windows.Forms.DataGridViewCellEventHandler(this.gvsales_CellContentClick);
//
// PName
//
this.PName.DataPropertyName = "INAME";
this.PName.HeaderText = "ITEM NAME";
this.PName.Name = "PName";
this.PName.ReadOnly = true;
this.PName.Resizable = System.Windows.Forms.DataGridViewTriState.False;
//
// Price
//
this.Price.DataPropertyName = "Price";
this.Price.HeaderText = "PRICE";
this.Price.Name = "Price";
this.Price.ReadOnly = true;
//
// Quntity
//
this.Quntity.DataPropertyName = "Quantity";
this.Quntity.HeaderText = "QUNTITY";
this.Quntity.Name = "Quntity";
//
// TotalPrice
//
this.TotalPrice.DataPropertyName = "tPrice";
this.TotalPrice.HeaderText = "TOTAL PRICE";
this.TotalPrice.Name = "TotalPrice";
this.TotalPrice.ReadOnly = true;
//
// Remove
//
this.Remove.DataPropertyName = "Remove";
this.Remove.HeaderText = "REMOVE";
this.Remove.Name = "Remove";
this.Remove.Text = "Remove";
this.Remove.ToolTipText = "Remove Item Record";
this.Remove.UseColumnTextForLinkValue = true;
//
// IID
//
this.IID.DataPropertyName = "IID";
this.IID.HeaderText = "IID";
this.IID.Name = "IID";
this.IID.ReadOnly = true;
this.IID.Visible = false;
//
// label6
//
this.label6.AutoSize = true;
this.label6.Font = new System.Drawing.Font("Calibri", 12F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label6.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)
(64)))), ((int)(((byte)(0)))), ((int)(((byte)(64)))));
this.label6.Location = new System.Drawing.Point(144, 54);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(145, 19);
this.label6.TabIndex = 7;
this.label6.Text = "Select Item for Sell :";
//
// txtiname
//
this.txtiname.AutoCompleteMode =
System.Windows.Forms.AutoCompleteMode.SuggestAppend;
this.txtiname.AutoCompleteSource =
System.Windows.Forms.AutoCompleteSource.CustomSource;
this.txtiname.BackColor = System.Drawing.Color.Honeydew;
this.txtiname.Font = new System.Drawing.Font("Microsoft Sans Serif",
10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)
(0)));
this.txtiname.Location = new System.Drawing.Point(292, 54);
this.txtiname.Name = "txtiname";
this.txtiname.Size = new System.Drawing.Size(285, 23);
this.txtiname.TabIndex = 6;
this.txtiname.TextChanged += new
System.EventHandler(this.txtiname_TextChanged);
this.txtiname.Click += new System.EventHandler(this.txtiname_Click);
this.txtiname.KeyDown += new
System.Windows.Forms.KeyEventHandler(this.txtiname_KeyDown);
this.txtiname.Leave += new System.EventHandler(this.txtiname_Leave);
this.txtiname.KeyPress += new
System.Windows.Forms.KeyPressEventHandler(this.txtiname_KeyPress);
this.txtiname.Enter += new System.EventHandler(this.txtiname_Enter);
this.txtiname.DragEnter += new
System.Windows.Forms.DragEventHandler(this.txtiname_DragEnter);
//
// txtpname
//
this.txtpname.BackColor = System.Drawing.Color.Honeydew;
this.txtpname.Font = new System.Drawing.Font("Microsoft Sans Serif",
10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)
(0)));
this.txtpname.Location = new System.Drawing.Point(447, 23);
this.txtpname.Name = "txtpname";
this.txtpname.Size = new System.Drawing.Size(130, 23);
this.txtpname.TabIndex = 2;
//
// SELL
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.DarkSeaGreen;
this.ClientSize = new System.Drawing.Size(1284, 746);
this.Controls.Add(this.groupBox1);
this.Name = "SELL";
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
this.Text = "SELL";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.Load += new System.EventHandler(this.SELL_Load);
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.gpdispatch.ResumeLayout(false);
this.gpdispatch.PerformLayout();
this.tableLayoutPanel1.ResumeLayout(false);
this.tableLayoutPanel1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.gvsales)).EndInit();
this.ResumeLayout(false);

#endregion
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.TextBox txtiname;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.GroupBox gpdispatch;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label lbltprice;
private System.Windows.Forms.Label lblqnt;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.DataGridView gvsales;
private System.Windows.Forms.TextBox txtpname;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.ComboBox comboBox1;
private System.Windows.Forms.DataGridViewTextBoxColumn PName;
private System.Windows.Forms.DataGridViewTextBoxColumn Price;
private System.Windows.Forms.DataGridViewTextBoxColumn Quntity;
private System.Windows.Forms.DataGridViewTextBoxColumn TotalPrice;
private System.Windows.Forms.DataGridViewLinkColumn Remove;
private System.Windows.Forms.DataGridViewTextBoxColumn IID;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label lbll;
private System.Windows.Forms.Label lblp;
private System.Windows.Forms.Label lblq;
private System.Windows.Forms.TextBox txtq;
private System.Windows.Forms.Label label8;
}
}

You might also like