public static void GetClassSubAll(int proclassid, ref string str) { List <ProClassModel> list = EispProClassBLL.GetProClassList(proclassid); // string cid=string.Empty; foreach (ProClassModel proclass in list) { str += proclass.ID.ToString() + ","; GetClassSubAll(proclass.ID, ref str); } //str += proclassid; }
public static void GetClassSubAllByLang(int lang, ref string str) { List <ProClassModel> list = EispProClassBLL.GetProClassListByLang(lang, 0); // string cid=string.Empty; foreach (ProClassModel proclass in list) { str += proclass.ID.ToString() + ","; GetClassSubAll(proclass.ID, ref str); } str += "0"; }