private void loadDDLs() { IStock.BLL.Suppliers Suppliers = new IStock.BLL.Suppliers(); Suppliers.LoadAll(); Suppliers.Sort = "Name"; uiDropDownListSuppliers.DataSource = Suppliers.DefaultView; uiDropDownListSuppliers.DataTextField = "Name"; uiDropDownListSuppliers.DataValueField = "SupplierID"; uiDropDownListSuppliers.DataBind(); uiDropDownListSuppliers.Items.Insert(0, new ListItem("إختر المورد", "")); /* IStock.BLL.Items items = new IStock.BLL.Items(); items.LoadAll(); items.Sort = "Name"; uiDropDownListItems.DataSource = items.DefaultView; uiDropDownListItems.DataTextField = "Name"; uiDropDownListItems.DataValueField = "ItemID"; uiDropDownListItems.DataBind(); uiDropDownListItems.Items.Insert(0, new ListItem("إختر صنف", ""));*/ }
private void LoadDDLs() { IStock.BLL.ClientTypes types = new IStock.BLL.ClientTypes(); types.LoadAll(); uiDropDownListClientTypes.DataSource = types.DefaultView; uiDropDownListClientTypes.DataTextField = "Name"; uiDropDownListClientTypes.DataValueField = "ClientTypeID"; uiDropDownListClientTypes.DataBind(); uiDropDownListClientTypes.Items.Insert(0, new ListItem("إختر تصنيف", "0")); IStock.BLL.Suppliers sups = new IStock.BLL.Suppliers(); sups.LoadAll(); uiDropDownListSuppliers.DataSource = sups.DefaultView; uiDropDownListSuppliers.DataTextField = "Name"; uiDropDownListSuppliers.DataValueField = "SupplierID"; uiDropDownListSuppliers.DataBind(); uiDropDownListSuppliers.Items.Insert(0, new ListItem("إختر مورد", "0")); }