Ejemplo n.º 1
0
        public void bind(params string[] dependants)
        {
            var q = Repository.getList();

            FilterDropDownList.Items.Clear(); // cheat!!!!
            foreach (var item in q)
            {
                FilterDropDownList.Items.Add(item);
            }
            FilterDropDownList.DataBind();
        }
Ejemplo n.º 2
0
        public virtual void bind(params string[] dependants)
        {
            var q = Repository.getList(dependants);

            clear();
            foreach (var item in q)
            {
                FilterDropDownList.Items.Add(item);
            }
            FilterDropDownList.DataBind();
        }
Ejemplo n.º 3
0
 public override void bind(params string[] dependants)
 {
     _ddList = Repository3.getList(dependants);
     clear();
     foreach (var item in _ddList)
     {
         FilterDropDownList.Items.Add(item.Name);
     }
     FilterDropDownList.DataBind();
     SetFeedback();
 }
Ejemplo n.º 4
0
        public override void rebind(int selectedIndex, params string[] dependants)
        {
            var q = Repository.getList(dependants);

            clear();
            foreach (var item in q)
            {
                FilterDropDownList.Items.Add(item);
            }
            FilterDropDownList.SelectedIndex = selectedIndex;
            FilterDropDownList.DataBind();
            SetFeedback();
        }
Ejemplo n.º 5
0
        private void LoadParmeters()
        {
            if (string.IsNullOrWhiteSpace(this.GetSchema()))
            {
                return;
            }
            if (string.IsNullOrWhiteSpace(this.GetView()))
            {
                return;
            }

            using (System.Data.DataTable table = MixERP.Net.BusinessLayer.Helpers.TableHelper.GetTable(this.GetSchema(), this.GetView(), ""))
            {
                FilterDropDownList.DataSource = table;
                FilterDropDownList.DataBind();
            }
        }