Ejemplo n.º 1
0
 public DropDownVLSearchBinder(DropDownList c, string fieldName, WFValueList vl, bool hasNotSelected)
 {
     this.fieldName      = fieldName;
     this.c              = c;
     this.vl             = vl;
     this.hasNotSelected = hasNotSelected;
 }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 4
0
 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;
 }
Ejemplo n.º 5
0
 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);
         }
     }
 }
Ejemplo n.º 7
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);
         }
     }
 }
Ejemplo n.º 9
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;
                }
            }
        }
Ejemplo n.º 10
0
 public DropDownVLBinder(DBManager db, DropDownList c, WFValueList vl)
     : this(db, c, vl, null, c.ID)
 {
 }
Ejemplo n.º 11
0
 public static void loadValues(DatabaseConnection DBConn, ListControl c, WFValueList vl, DBFilter filter)
 {
     loadValues(DBConn, c, vl, filter, null, null, "--");
 }
Ejemplo n.º 12
0
 public LabelVLBinder(DBManager db, Label c, string name, WFValueList vl)
     : this(db, c, name, vl, null)
 {
 }
Ejemplo n.º 13
0
 public BlankZeroLabelVLBinder(DBManager db, Label c, string name, WFValueList vl)
     : base(db, c, name, vl)
 {
     this.c    = c;
     this.name = name;
 }
Ejemplo n.º 14
0
 public DropDownVLSearchBinder(DropDownList c, string fieldName, WFValueList vl)
     : this(c, fieldName, vl, true)
 {
 }
Ejemplo n.º 15
0
 public LabelVLBinder(DBManager db, Label c, WFValueList vl, DBFilter filter)
     : this(db, c, c.ID, vl, filter)
 {
 }
Ejemplo n.º 16
0
 public DropDownVLBinder(DBManager db, DropDownList c, WFValueList vl, DBFilter filter)
     : this(db, c, vl, filter, c.ID)
 {
 }
Ejemplo n.º 17
0
 public BlankZeroLabelVLBinder(DBManager db, Label c, WFValueList vl, DBFilter filter)
     : base(db, c, vl, filter)
 {
     this.c    = c;
     this.name = c.ID;
 }
Ejemplo n.º 18
0
 public LabelVLBinder(DBManager db, Label c, WFValueList vl)
     : this(db, c, c.ID, vl, null)
 {
 }