public StockInUi() { InitializeComponent(); stockIn = new StockIn(); item = new Item(); _stockInManager = new StockInManager(); }
public ItemController() { companyManager = new CompanyManager(); categoryManager = new CategoryManager(); itemManager = new ItemManager(); stockInManager = new StockInManager(); stockOutManager = new StockOutManager(); }
protected void DropdownCompanySelectedIndexChanged(object sender, EventArgs e) { StockInManager item = new StockInManager(); int companyid = Convert.ToInt32(DropDownCompanyList.SelectedItem.Value); DropDownItemList.DataSource = item.GetAllitem(companyid); DropDownItemList.DataTextField = "ItemName"; DropDownItemList.DataValueField = "ItemId"; DropDownItemList.DataBind(); DropDownItemList.Items.Insert(0, new ListItem("Select", "0")); }
public StockIn() { InitializeComponent(); _StockInManager = new StockInManager(); _StockInManager2 = new StockInManager(); _StockInManager3 = new StockInManager(); _StockInManager4 = new StockInManager(); _StockInManager5 = new StockInManager(); itemModel = new ItemModel(); }
private void saveButton_Click(object sender, EventArgs e) { StockIn stockInObj = new StockIn(); stockInObj.ItemName = itemStockInComboBox.Text; stockInObj.previousQuntity = Convert.ToInt32(availableQuantityStockInTextBox.Text); stockInObj.stockInQuantity = Convert.ToInt32(stockInQuantityTextBox.Text); availableQuantityStockInTextBox.Text = (stockInObj.previousQuntity + stockInObj.stockInQuantity).ToString(); StockInManager stockInMangObj = new StockInManager(); string stockInInfo = stockInMangObj.StockInQuantity(stockInObj); MessageBox.Show(stockInInfo); }
private void saveButton_Click(object sender, EventArgs e) { try { StockIn insGet = new StockIn(); insGet.ComapanyName = companyComboBox.Text; insGet.CatagoryName = categoryComboBox.Text; insGet.Item = itemComboBox.Text; insGet.ReorderLavel = reorderTextBox.Text; insGet.StockInQuantity = stockinTextBox.Text; insGet.AvailableQuantity = availableQuanTextBox.Text; StockInManager manager = new StockInManager(); // bool chk = manager.i } catch (Exception ex) { MessageBox.Show(ex.Message); } }
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); } }
protected void SaveButtonStockIn(object sender, EventArgs e) { if (ValidateFrom()) { StockInManager stockInItem = new StockInManager(); int stockInQuanty = Convert.ToInt32(TextBoxStockIn.Text); int itemid = Convert.ToInt32(DropDownItemList.SelectedItem.Value); int companyid = Convert.ToInt32(DropDownCompanyList.SelectedItem.Value); string message = stockInItem.UpdateStockById(companyid, itemid, stockInQuanty); int reorderlevel = Convert.ToInt32(TextBoxReorderLevel.Text); int availQuantity = Convert.ToInt32(TextBoxAvailableQuantity.Text) + stockInQuanty; TextBoxReorderLevel.Text = reorderlevel.ToString(); TextBoxAvailableQuantity.Text = availQuantity.ToString(); TextBoxStockIn.Text = ""; LabelMessage.Visible = true; LabelMessage.Text = "Stock In Successfully"; } }
public StockInUI() { stockInManager = new StockInManager(); companyManager = new CompanyManager(); }
public StockInUI() { stockInManager = new StockInManager(); }
public StockInSetup() { stockInManager = new StockInManager(); baseGetway = new BaseGetway(); }