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"));
        }
Example #2
0
        private void LoadDDls()
        {
            IStock.BLL.ClientTypes clientTypes = new IStock.BLL.ClientTypes();
            clientTypes.LoadAll();
            clientTypes.Sort = "Name";
            uiDropDownListClientTypes.DataSource = clientTypes.DefaultView;
            uiDropDownListClientTypes.DataTextField = "Name";
            uiDropDownListClientTypes.DataValueField = "ClientTypeID";
            uiDropDownListClientTypes.DataBind();
            uiDropDownListClientTypes.Items.Insert(0, new ListItem("إختر التصنيف",""));

            IStock.BLL.Cities cities = new IStock.BLL.Cities();
            cities.LoadAll();
            cities.Sort = "Name";
            uiDropDownListCities.DataSource = cities.DefaultView;
            uiDropDownListCities.DataTextField = "Name";
            uiDropDownListCities.DataValueField = "CityID";
            uiDropDownListCities.DataBind();
            uiDropDownListCities.Items.Insert(0, new ListItem("إختر المدينة",""));
        }