public string GetListClassstr(int ClassId)
        {
            DataTable DT = new DataTable();
            DT = (DataTable)GetClassCache();//返回一个表内容 这个要修改自己的
            string ClassStr = ClassId.ToString();
            for (int i = 0; i < DT.Rows.Count; i++)
            {
                if (ClassId == (int)DT.Rows[i]["ParentId"])
                {
                    ClassStr += "," + DT.Rows[i]["Id"];
                }
            }
            return ClassStr;
        }

相关文章:

  • 2022-12-23
  • 2021-10-21
  • 2021-12-27
  • 2021-07-20
  • 2021-09-27
  • 2021-07-15
  • 2021-09-11
  • 2021-09-29
猜你喜欢
  • 2021-08-29
  • 2022-02-20
  • 2021-07-25
  • 2022-12-23
  • 2021-08-01
相关资源
相似解决方案