/// <summary>
        /// 按钮列表
        /// </summary>
        /// <returns></returns>
        public List <ModuleButtonEntity> GetList()
        {
            var sql = PetaPoco.Sql.Builder.Append(@"select * from Base_ModuleButton where 1=1 ");

            sql.Append(" order by SortCode");
            var list = Base_ModuleButton.Query(sql);

            return(EntityConvertTools.CopyToList <Base_ModuleButton, ModuleButtonEntity>(list.ToList()));
        }
        /// <summary>
        /// 按钮列表
        /// </summary>
        /// <param name="moduleId">功能Id</param>
        /// <returns></returns>
        public List <ModuleButtonEntity> GetList(string moduleId)
        {
            var sql = PetaPoco.Sql.Builder.Append(@"select * from Base_ModuleButton where 1=1 ");

            //if (!string.IsNullOrEmpty(moduleId))
            //{
            sql.Append(" and ModuleId=@0", moduleId);
            //}
            sql.Append(" order by SortCode");
            var list = Base_ModuleButton.Query(sql);

            return(EntityConvertTools.CopyToList <Base_ModuleButton, ModuleButtonEntity>(list.ToList()));
        }