public static ArrayList QueryList(string sid) { ArrayList r = new ArrayList(); CB_ButtonEventBll snsb = new CB_ButtonEventBll(); SessionUserValidate iv = SysValidateBll.ValidateSession(); if (iv.f) { r.Add(iv.badstr); StringBuilder where = new StringBuilder(); List <CB_OrderEventBtn> lsf = snsb.QueryList(" and sid='" + sid + "' order by cdate desc"); if (lsf != null) { foreach (CB_OrderEventBtn s in lsf) { ArrayList al = new ArrayList(); al.Add(s.id); al.Add(s.bname); al.Add(s.maker); al.Add(s.ps); al.Add(s.cdate); r.Add(al); } } } else { r.Add(iv.badstr); } return(r); }