public void LoadDDLVariable()
        {
            var listVariable = VariableController.GetAllIsHidden(false);

            if (listVariable.Count > 0)
            {
                ddlVariable.Items.Clear();
                ddlVariable.Items.Insert(0, new ListItem("-- Chọn --", "0"));
                foreach (var p in listVariable)
                {
                    ListItem listitem = new ListItem(p.VariableName, p.ID.ToString());
                    ddlVariable.Items.Add(listitem);
                }
                ddlVariable.DataBind();
            }
        }
示例#2
0
        public void LoadPDW()
        {
            var variablename = VariableController.GetAllIsHidden(false);

            if (variablename.Count > 0)
            {
                ddlVariablename.Items.Clear();
                ddlVariablename.Items.Insert(0, new ListItem("Chọn thuộc tính", "0"));
                foreach (var p in variablename)
                {
                    ListItem listitem = new ListItem(p.VariableName, p.ID.ToString());
                    ddlVariablename.Items.Add(listitem);
                }
                ddlVariablename.DataBind();
            }
            ddlVariableValue.Items.Clear();
            ddlVariableValue.Items.Insert(0, new ListItem("Chọn giá trị", "0"));
        }