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();
        }
예제 #3
0
        private void stockoutButton_Click(object sender, EventArgs e)
        {
            StockOutUI stock2 = new StockOutUI();

            stock2.Show();
        }
예제 #4
0
        private void stockOutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            StockOutUI stock2 = new StockOutUI();

            stock2.Show();
        }