日期:2014-05-17 浏览次数:20414 次
private int[] classid = new int[] { 15 }; /// <summary> /// 判断是否显示多图列表 /// </summary> /// <param name="id"></param> /// <returns></returns> private bool Get(int id) { Img.Model.Img_Class classmodel = classbll.GetModelByCache(id); foreach (var item in classid) { if (item == classmodel.Class_Id) { return true; } else { if (classmodel.Class_PId!=0) { Get(classmodel.Class_PId); } } } return false; }