예제 #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            supplierOrder so1 = new  supplierOrder();

            so1.removeSupplierOrder(int.Parse(comboBox2.Text));
            this.supplierOrderTableAdapter.Fill(this.hWMSNDataSet6.SupplierOrder);
            this.supplierOrderTableAdapter1.Fill(this.hWMSNDataSet7.SupplierOrder);
        }
예제 #2
0
 public void addSupplierOrder(supplierOrder supplierOrder)
 {
 }
예제 #3
0
        private void SupplierOrderAddButton_Click(object sender, EventArgs e)
        {
            Boolean empty = false;


            if (textBox3.Text == "")
            {
                textBox3.BackColor = Color.Red;
                empty = true;
            }
            else
            {
                textBox3.BackColor = Color.White;
            }

            if (textBox4.Text == "")
            {
                textBox4.BackColor = Color.Red;
                empty = true;
            }
            else
            {
                textBox4.BackColor = Color.White;
            }
            if (textBox5.Text == "")
            {
                textBox5.BackColor = Color.Red;
                empty = true;
            }
            else
            {
                textBox5.BackColor = Color.White;
            }
            if (textBox6.Text == "")
            {
                textBox6.BackColor = Color.Red;
                empty = true;
            }
            else
            {
                textBox6.BackColor = Color.White;
            }
            if (textBox7.Text == "")
            {
                textBox7.BackColor = Color.Red;
                empty = true;
            }
            else
            {
                textBox7.BackColor = Color.White;
            }
            if (textBox8.Text == "")
            {
                textBox8.BackColor = Color.Red;
                empty = true;
            }
            else
            {
                textBox8.BackColor = Color.White;
            }



            if (empty == true)
            {
                MessageBox.Show("Red Colored areas cannot keep as Empty!");
            }
            else
            {
                supplierOrder newSupOrderOb1 = new supplierOrder(int.Parse(textBox3.Text), double.Parse(textBox4.Text), int.Parse(textBox5.Text), textBox6.Text, int.Parse(textBox7.Text), double.Parse(textBox8.Text));
                newSupOrderOb1.addSupplierOrder();
                this.supplierOrderTableAdapter.Fill(this.hWMSNDataSet6.SupplierOrder);
                this.supplierOrderTableAdapter1.Fill(this.hWMSNDataSet7.SupplierOrder);
            }
        }