public static ArrayList ListPageBtnEx(string emcode, string btype, string tab) { ArrayList r = new ArrayList(); BusiEventButtonBll bebb = new BusiEventButtonBll(); SessionUserValidate iv = SysValidateBll.ValidateSession(); if (iv.f) { r.Add(iv.badstr); Sys_Domain ym = sdb.Query(" and dtype='p'"); List <Sys_Button> lsb = bebb.QueryBtnListEx(emcode, iv.u.rcode, btype, tab); if (lsb != null) { foreach (Sys_Button s in lsb) { ArrayList al = new ArrayList(); string burl = sbib.QueryBurl(s.bico); al.Add(s.babc); al.Add(s.bname); al.Add(s.bfn.Replace(",", "_")); al.Add(s.burl); al.Add(s.bstyle); al.Add(s.btip); s.bico = burl != "" ? ym.url + burl : ""; al.Add(s.bico); r.Add(al); } } } else { r.Add(iv.badstr); } return(r); }
public static ArrayList CustQueryRoleList(string curpage, string pagesize) { ArrayList r = new ArrayList(); BusiEventButtonBll bebb = new BusiEventButtonBll(); NB_NewsBll sub = new NB_NewsBll(); List <NB_News> lsr = new List <NB_News>(); StringBuilder where = new StringBuilder(); SessionUserValidate iv = SysValidateBll.ValidateSession(); if (iv.f) { r.Add(iv.badstr); int rcount = 0; int pcount = 0; if (iv.u.rcode != "xtgl") { where.AppendFormat(" and ( id in(select nid from NB_DepNews where dcode='{0}') or rtype='a' ) ", iv.u.dcode); } lsr = sub.QueryList(Convert.ToInt32(curpage), Convert.ToInt32(pagesize), where.ToString(), "id desc", ref rcount, ref pcount); if (lsr != null) { r.Add(pcount); foreach (NB_News s in lsr) { ArrayList al = new ArrayList(); al.Add(s.id); al.Add(s.ntitle); al.Add(s.ntype); al.Add(s.nstate == true ? "显示" : "关闭"); al.Add(s.maker); al.Add(s.cdate); al.Add(bebb.QueryBtnListItems("0175", iv.u.rcode, "LX", s.id.ToString())); r.Add(al); } } } else { r.Add(iv.badstr); } return(r); }
public static ArrayList CustQueryListAll(string curpage, string pagesize) { ArrayList r = new ArrayList(); BusiEventButtonBll bebb = new BusiEventButtonBll(); NB_NewsBll sub = new NB_NewsBll(); List <NB_News> lsr = new List <NB_News>(); SessionUserValidate iv = SysValidateBll.ValidateSession(); if (iv.f) { r.Add(iv.badstr); int rcount = 0; int pcount = 0; lsr = sub.QueryList(Convert.ToInt32(curpage), Convert.ToInt32(pagesize), " ", "id desc", ref rcount, ref pcount); if (lsr != null) { r.Add(pcount); foreach (NB_News s in lsr) { ArrayList al = new ArrayList(); al.Add(s.id); al.Add(s.ntitle); al.Add(s.ntype); al.Add(s.nstate == true ? "显示" : "关闭"); al.Add(s.maker); al.Add(s.cdate); al.Add(bebb.QueryBtnListItems("0176", iv.u.rcode, "LX", s.id.ToString())); r.Add(al); } } } else { r.Add(iv.badstr); } return(r); }