public DropDownVLSearchBinder(DropDownList c, string fieldName, WFValueList vl, bool hasNotSelected) { this.fieldName = fieldName; this.c = c; this.vl = vl; this.hasNotSelected = hasNotSelected; }
public DropDownListXMLNodeVLBinder(DBManager db, DropDownList dropDownList, WFValueList vl, DBFilter filter, string fieldName, string xmlNodeName) : base(db, dropDownList, vl, filter, fieldName) { this.dropDownList = dropDownList; this.fieldName = fieldName; this.xmlNodeName = xmlNodeName; }
public LabelVLBinder(DBManager db, Label c, string name, WFValueList vl, DBFilter filter) { this.c = c; this.name = name; this.field = db.getField(name); this.vl = vl; }
public DropDownVLBinder(DBManager db, DropDownList c, WFValueList vl, DBFilter filter, string name) { this.filter = filter; this.c = c; this.name = name; this.field = db.getField(name); this.vl = vl; }
public LabelXMLNodeVLBinder(DBManager db, Label label, WFValueList valueList, DBFilter filter, string fieldName, string xmlNodeName) : base(db, label, fieldName, valueList, filter) { this.label = label; this.valueList = valueList; this.filter = filter; this.fieldName = fieldName; this.xmlNodeName = xmlNodeName; }
public void LoadListControl(DatabaseConnection dbConn, WFValueList ValueList, bool hasNotSelected) { WebFormUtils.loadValues(dbConn, CheckBoxListObject, ValueList, new DBFilter(), System.Threading.Thread.CurrentThread.CurrentUICulture, null, (string)"combobox.notselected"); if (!hasNotSelected) { if (CheckBoxListObject.Items[0].Value.Equals(string.Empty)) { CheckBoxListObject.Items.RemoveAt(0); } } }
public void initValues(string name, DBFilter filter, WFValueList vl, CultureInfo ci) { Hashtable map = new Hashtable(); List <WFSelectValue> list = vl.getValues(DBConn, filter, ci); foreach (WFSelectValue v in list) { map[v.key] = v.name; } values[name] = map; }
protected void LoadListControl(ListControl listControl, WFValueList ValueList, bool hasNotSelected) { WebFormUtils.loadValues(dbConn, listControl, ValueList, new DBFilter()); if (!hasNotSelected) { if (listControl.Items[0].Value.Equals(string.Empty)) { listControl.Items.RemoveAt(0); } } }
public static void loadValues(DatabaseConnection DBConn, ListControl c, WFValueList vl, DBFilter filter, CultureInfo ci, string selected, string notSelected) { //if (selected != null && selected.Equals(string.Empty)) // selected = Common.EMPTY_STRING; List <WFSelectValue> list = vl.getValues(DBConn, filter, ci); c.Items.Clear(); if (notSelected != null) { ResourceManager rm = DBUtils.getResourceManager(); string s = rm.GetString(notSelected, ci); if (s == null) { s = notSelected; } c.Items.Add(new ListItem(s, string.Empty)); } foreach (WFSelectValue sv in list) { string key = sv.key; //if (key.Equals("")) // key = Common.EMPTY_STRING; ListItem i = new ListItem(sv.name, key); if (selected != null && sv.key != null && sv.key.Equals(selected)) { i.Selected = true; } c.Items.Add(i); } if (selected != null) { ListItem item = c.Items.FindByValue(selected); if (item != null) { c.SelectedValue = item.Value; } } }
public DropDownVLBinder(DBManager db, DropDownList c, WFValueList vl) : this(db, c, vl, null, c.ID) { }
public static void loadValues(DatabaseConnection DBConn, ListControl c, WFValueList vl, DBFilter filter) { loadValues(DBConn, c, vl, filter, null, null, "--"); }
public LabelVLBinder(DBManager db, Label c, string name, WFValueList vl) : this(db, c, name, vl, null) { }
public BlankZeroLabelVLBinder(DBManager db, Label c, string name, WFValueList vl) : base(db, c, name, vl) { this.c = c; this.name = name; }
public DropDownVLSearchBinder(DropDownList c, string fieldName, WFValueList vl) : this(c, fieldName, vl, true) { }
public LabelVLBinder(DBManager db, Label c, WFValueList vl, DBFilter filter) : this(db, c, c.ID, vl, filter) { }
public DropDownVLBinder(DBManager db, DropDownList c, WFValueList vl, DBFilter filter) : this(db, c, vl, filter, c.ID) { }
public BlankZeroLabelVLBinder(DBManager db, Label c, WFValueList vl, DBFilter filter) : base(db, c, vl, filter) { this.c = c; this.name = c.ID; }
public LabelVLBinder(DBManager db, Label c, WFValueList vl) : this(db, c, c.ID, vl, null) { }