protected void Page_Load(object sender, EventArgs e) { try { if (IsPostBack.IsFalse()) { InitializeSession(); ItemGroupList = manager.GetAllItemGroup(); } } catch (Exception ex) { throw ex; } }
private void InitializeCombo() { ddlItemGroup.DataSource = itemGroupManager.GetAllItemGroup(); ddlItemGroup.DataTextField = "GroupName"; ddlItemGroup.DataValueField = "ItemGroupID"; ddlItemGroup.DataBind(); ddlItemGroup.Items.Insert(0, new ListItem(String.Empty, String.Empty)); ddlItemGroup.SelectedIndex = 0; }
private void InitializeCombo() { #region Item Group ItemGroupList = new CustomList <ItemGroup>(); ItemGroupList = itemGroupManager.GetAllItemGroup(); ddlItemGroup.DataSource = ItemGroupList; ddlItemGroup.DataTextField = "GroupName"; ddlItemGroup.DataValueField = "ItemGroupID"; ddlItemGroup.DataBind(); ddlItemGroup.Items.Insert(0, new ListItem(String.Empty, String.Empty)); ddlItemGroup.SelectedIndex = 0; #endregion #region Item UOM ddlUOM1.DataSource = unitSetUpManager.GetAllUnitSetup(); ddlUOM1.DataTextField = "Name"; ddlUOM1.DataValueField = "UnitID"; ddlUOM1.DataBind(); ddlUOM1.Items.Insert(0, new ListItem(String.Empty, String.Empty)); ddlUOM1.SelectedIndex = 0; #endregion }