public static ArrayList CustQueryListAll() { ArrayList r = new ArrayList(); Sys_PriceTypeBll srb = new Sys_PriceTypeBll(); List <Sys_PriceType> lsf = new List <Sys_PriceType>(); SessionUserValidate iv = SysValidateBll.ValidateSession(); if (iv.f) { r.Add(iv.badstr); lsf = srb.QueryList(" and dcode='" + iv.u.dcode.Substring(0, 8) + "'"); if (lsf != null) { foreach (Sys_PriceType s in lsf) { ArrayList al = new ArrayList(); al.Add(s.ptcode); al.Add(s.ptname); al.Add(s.ptype); r.Add(al); } } } else { r.Add(iv.badstr); } return(r); }
public static ArrayList QueryList(string ptype) { ArrayList r = new ArrayList(); Sys_PriceTypeBll srb = new Sys_PriceTypeBll(); List <Sys_PriceType> lsf = new List <Sys_PriceType>(); SessionUserValidate iv = SysValidateBll.ValidateSession(); if (iv.f) { r.Add(iv.badstr); string where = ""; if (iv.u.rcode != "xtgl") { where = " and dcode='" + iv.u.dcode.Substring(0, 8) + "'"; } lsf = srb.QueryList(" and ptype='" + ptype + "' " + where + ""); if (lsf != null) { foreach (Sys_PriceType s in lsf) { ArrayList al = new ArrayList(); al.Add(s.ptcode); al.Add(s.ptname); al.Add(s.ptype); al.Add(s.pms); r.Add(al); } } } else { r.Add(iv.badstr); } return(r); }