Esempio n. 1
0
        private void stockOutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            StockOutUI stockOut = new StockOutUI();

            stockOut.Show();
            this.Hide();
        }
Esempio n. 2
0
        private void stockOutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Hide();
            StockOutUI stockOutUi = new StockOutUI(userNameLabel.Text);

            stockOutUi.Show();
        }
        private void lostButton_Click(object sender, EventArgs e)
        {
            string message = "";

            for (int i = 0; i < stockOutListView.Items.Count; i++)
            {
                Stock aStock = new Stock();
                aStock.ItemName    = stockOutListView.Items[i].SubItems[1].Text;
                aStock.CompanyName = stockOutListView.Items[i].SubItems[2].Text;
                aStock.Quantity    = Convert.ToInt32(stockOutListView.Items[i].SubItems[3].Text);
                aStock.Date        = DateTime.Now.ToString("yyyy-MM-dd");

                message = aStockManager.SaveLostItem(aStock);
            }

            MessageBox.Show(message);
            this.Hide();
            StockOutUI stockOutUi = new StockOutUI(userNameLabel.Text);

            stockOutUi.Show();
        }
Esempio n. 4
0
        private void stockoutButton_Click(object sender, EventArgs e)
        {
            StockOutUI stock2 = new StockOutUI();

            stock2.Show();
        }