コード例 #1
0
        public JsonResult GetTableInfo(int id)
        {
            IBaseBll <TableInfo> tableBll = new BaseBll <TableInfo>();
            var    info        = tableBll.QueryById(id);
            string tableStatus = info.TableState == 1?"正常" : "禁用";

            return(Json(new
            {
                table_name_cn = info.NameCh,
                table_name = info.NameEn,
                table_type = info.TableType,
                key_name = info.TableKey,
                table_status = tableStatus,
                unique_index = info.TableIndex,
                description = info.TableExplain
            }));
        }