void referTables(object id) { if (m_sysTable == null || m_sysTable.refer == null) { return; } var key = m_table + "_" + ID; var sqlSetDict = new Dictionary <string, string>(); sqlSetDict.Add(key, null); var tableList = YoConvert.ToList(m_sysTable.refer); foreach (var table in tableList) { var refer = new YoCacheRefer(table, m_act); if (!refer.CheckDisplayChange(sqlSetDict)) { continue; } refer.referRows(key, id); } }
void init() { if (m_sysTable.title != null) { m_titleFields = YoConvert.ToList(m_sysTable.title); m_sysTable.translation = ConfigHelper.Translate(m_sysTable.table_name, m_trans); } var yoColumnList = (new ColumnModel()).GetList(m_sysTable.id); m_yoColumnDict = YoConvert.List2Dict(yoColumnList, column_name, yoColumn => { if (yoColumn.set != null) { var setList = YoConvert.ToList(yoColumn.set); yoColumn.setDict = new Dictionary <string, string>(); foreach (var setKey in setList) { var setValue = ConfigHelper.Translate(setKey, m_trans); yoColumn.setDict.Add(setKey, setValue); } } yoColumn.translation = ConfigHelper.Translate(yoColumn.column_name, m_trans); return(yoColumn); }); }