日期:2014-05-17 浏览次数:20490 次
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
{
var sr = from d in ds.Tables[0].AsEnumerable()
where d.Field<int>("com_id") == Convert.ToInt32(ds.Tables[0].Rows[i]["com_id"])
select d;
foreach (var item in sr)
{
if (item.Field<int>("type") == 5)
{
hong = "color:red;";
int a = item.Field<int>("com_id");
}
if (item.Field<int>("type") == 7)
{
hot = "11111111111111111111111";
int b = item.Field<int>("com_id");
}
if (item.Field<int>("type") == 8)
{
ji = "<img src='images/ji.gif'>";
int c = item.Field<int>("com_id");
}
}
ca = comacc.GetModel(Convert.ToInt32(ds.Tables[0].Rows[i]["com_id"]), " and Trade=" + com);
li.A