예제 #1
0
        /// <summary>
        /// 加载级别
        /// </summary>
        protected virtual void LoadLevel()
        {
            if (LevelDrowDownList == null)
            {
                return;
            }
            var infos = WorkflowArgs.Engine.GetLevels()?.OrderBy(it => it.Sequence);

            LevelDrowDownList.DataTextField  = "Name";
            LevelDrowDownList.DataValueField = "Id";
            LevelDrowDownList.DataSource     = infos;
            LevelDrowDownList.DataBind();
        }
예제 #2
0
        /// <summary>
        /// 加载级别
        /// </summary>
        protected virtual void LoadLevel()
        {
            if (LevelDrowDownList == null)
            {
                return;
            }
            var query = new QueryBasicInfo <LevelEntity>();
            var infos = query.Query().OrderBy(it => it.Sequence).Select(it => new object[] { it.Name }).ToList <LevelEntity>();

            LevelDrowDownList.DataTextField  = "Name";
            LevelDrowDownList.DataValueField = "Name";
            LevelDrowDownList.DataSource     = infos;
            LevelDrowDownList.DataBind();
        }