Exemple #1
0
        private void btnDeliver_Click(object sender, EventArgs e)
        {
            TransactionBLL transactionBLL = new TransactionBLL();

            if (transactionBLL.SetStatus("Delivering", IDTrans))
            {
                MessageBox.Show("Delevering");
            }
            this.Close();
        }
Exemple #2
0
        private void btnCancel_Click(object sender, EventArgs e)
        {
            // Cong lai so luong trong bang tree
            TreeBLL treeBLL = new TreeBLL();

            foreach (DataRow row in dt.Rows)
            {
                string name     = row.Field <string>(2).ToString();
                int    quantity = int.Parse(row.Field <int>(3).ToString());
                treeBLL.IncreaseQuantity(name, quantity);
            }
            TransactionBLL transactionBLL = new TransactionBLL();

            if (transactionBLL.SetStatus("Cancel", IDTrans))
            {
                MessageBox.Show("Cancel");
            }
            this.Close();
        }