Пример #1
0
 public StockInUi()
 {
     InitializeComponent();
     stockIn         = new StockIn();
     item            = new Item();
     _stockInManager = new StockInManager();
 }
Пример #2
0
        private void InsertStockIn(StockIn stockIn)
        {
            int isExecuted = 0;

            isExecuted = _stockInManager.InsertStockIn(stockIn);
            if (isExecuted > 0)
            {
                messageLabel.Text = "Saved";
            }
            else
            {
                messageLabel.Text = "Save Failed";
            }
        }
        private void AddStockIn(StockIn stockIn)
        {
            int isExecuted = 0;

            isExecuted = _stockInManager.AddtStockIn(stockIn);
            if (isExecuted > 0)
            {
                MessageBox.Show("Stock in save successfully.");
            }
            else
            {
                MessageBox.Show("Stock in save failed!");
            }
        }
Пример #4
0
        private void SaveButton_Click(object sender, EventArgs e)
        {
            try
            {
                StockIn insGet = new StockIn();
                insGet.ComapanyName      = CompanyComboBox.Text;
                insGet.CategoryName      = CategoryComboBox.Text;
                insGet.Item              = ItemComboBox.Text;
                insGet.ReorderLavel      = ReorderTextBox.Text;
                insGet.StockInQuantity   = StockTextBox.Text;
                insGet.AvailableQuantity = AvailableTextBox.Text;

                StockInManager manager = new StockInManager();
                bool           chk     = manager.Insert(insGet);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Пример #5
0
        private void stockInToolStripMenuItem_Click(object sender, EventArgs e)
        {
            StockIn stockIn = new StockIn(userIdd);

            stockIn.ShowDialog();
        }
Пример #6
0
        private void stockInToolStripMenuItem_Click(object sender, EventArgs e)
        {
            StockIn stockin = new StockIn();

            stockin.Show();
        }
Пример #7
0
        private void StockInLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            StockIn stockIn = new StockIn();

            stockIn.Show();
        }
Пример #8
0
        private void button4_Click(object sender, EventArgs e)
        {
            StockIn stockIn = new StockIn();

            stockIn.ShowDialog();
        }
Пример #9
0
        private void StockInButton_Click(object sender, EventArgs e)
        {
            StockIn stockIn = new StockIn(userIdd);

            stockIn.ShowDialog();
        }