日期:2014-05-18 浏览次数:20502 次
XmlDocument xmldoc = new XmlDocument();
StringBuilder sb = new StringBuilder();
var query = upl.OrderBy(o => o.Rig_RR_ID).ToList();
var query1 = (from o in kp.V_UserRight.Where(o => o.Psn_ID == wp[0].Psn_ID && o.RR_Flag == "启用" && o.UR_State == "启用")
group o by o.Rig_RR_ID into p
select new
{
p.Key,
RitList = (from q in query
where q.Rig_RR_ID == p.Key
group q by q.Group_ID into a
select new
{
a.Key,
RitList = query.Where(r => r.Group_ID == a.Key).ToList()
}).ToList()
}).ToList();
sb.Append(" <Rib