Ejemplo n.º 1
0
        protected void companyDropDownList_OnSelectedIndexChanged(object sender, EventArgs e)
        {
            companyDropDownList.Items.Remove(companyDropDownList.Items.FindByText("Select Company"));
            ItemViewModel.CompanyId         = Convert.ToInt32(companyDropDownList.SelectedValue);
            itemDropDownList.DataSource     = StockOutManager.GetItemsByCompany(ItemViewModel.CompanyId);
            itemDropDownList.DataTextField  = "Name";
            itemDropDownList.DataValueField = "Id";
            itemDropDownList.DataBind();
            itemDropDownList.Items.Insert(0, new ListItem("Select Item", ""));

            reorderLevelTextBox.Text      = String.Empty;
            availableQuantityTextBox.Text = String.Empty;
            stockOutQuantityTextBox.Text  = String.Empty;
        }