void buildChild(xl line) { IList<PS_gt> gtlist= Client.ClientHelper.PlatformSqlMap.GetList<PS_gt>("where linecode='" + line.xlValue.LineCode + "' order by gtcode"); line.addGt(gtlist); line.initgtsb(); IList<PS_xl> xlList= Client.ClientHelper.PlatformSqlMap.GetList<PS_xl>(" where parentgt in (select gtcode from ps_gt where linecode='" + line.xlValue.LineCode + "')"); line.addXl(xlList); foreach (xl xl in line.lines) { if (strList.Contains(xl.xlValue.LineCode)) continue; strList.Add(xl.xlValue.LineCode); buildChild(xl); } }