/// <summary>
        /// 获取数据库所有表
        /// </summary>
        /// <param name="linkId">数据库连接Id</param>
        /// <returns></returns>
        public ActionResult GetDbTableList(string linkId)
        {
            Pagination pagination = new Pagination
            {
                PageIndex = 1,
                PageRows  = int.MaxValue
            };
            var resList = _rapidDevelopmentBus.GetDbTableList(linkId);

            return(Content(pagination.BuildTableResult_BootstrapTable(resList).ToJson()));
        }
Exemplo n.º 2
0
 /// <summary>
 /// 返回数据表格数据
 /// 注:BootstrapTable格式
 /// </summary>
 /// <param name="dataList">数据列表</param>
 /// <param name="pagination">分页参数</param>
 /// <returns></returns>
 public ActionResult DataTable_Bootstrap(object dataList, Pagination pagination)
 {
     return(Content(pagination.BuildTableResult_BootstrapTable(dataList).ToJson()));
 }
Exemplo n.º 3
0
        /// <summary>
        /// 获取数据列表
        /// </summary>
        /// <param name="condition">查询类型</param>
        /// <param name="keyword">关键字</param>
        /// <returns></returns>
        public ActionResult GetDataList(string condition, string keyword, Pagination pagination)
        {
            var dataList = _base_UserBusiness.GetDataList(condition, keyword, pagination);

            return(Content(pagination.BuildTableResult_BootstrapTable(dataList).ToJson()));
        }