Esempio n. 1
0
        /// <summary>
        /// 从字典绑定下拉列表
        /// </summary>
        /// <param name="ddl"></param>
        /// <param name="dictCode"></param>
        public static void BindDropDownList(DropDownList ddl, string dictCode)
        {
            IDictItemsBLL itemBll = new DictItemsBLL();

            WebCommon.BindDropDownList(ddl,
                                       itemBll.GetList(item => item.DictCode == dictCode).OrderBy(item => item.OrderNum),
                                       "ItemName",
                                       "ItemCode");
        }
Esempio n. 2
0
        /// <summary>
        /// 绑定部门下拉列表
        /// </summary>
        private void BindDept()
        {
            IList <Department> lstDept = deptBll.GetList(null);

            WebCommon.BindDropDownList(ddlDept, lstDept, "DeptName", "DeptID");
        }