public StockInUi() { InitializeComponent(); stockIn = new StockIn(); item = new Item(); _stockInManager = new StockInManager(); }
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!"); } }
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); } }
private void stockInToolStripMenuItem_Click(object sender, EventArgs e) { StockIn stockIn = new StockIn(userIdd); stockIn.ShowDialog(); }
private void stockInToolStripMenuItem_Click(object sender, EventArgs e) { StockIn stockin = new StockIn(); stockin.Show(); }
private void StockInLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { StockIn stockIn = new StockIn(); stockIn.Show(); }
private void button4_Click(object sender, EventArgs e) { StockIn stockIn = new StockIn(); stockIn.ShowDialog(); }
private void StockInButton_Click(object sender, EventArgs e) { StockIn stockIn = new StockIn(userIdd); stockIn.ShowDialog(); }