DataRow [] dr=pageSet.PageSet.Tables[0].Select("TradeType='存款'"); StoreGold = dr.Sum<DataRow>(r => (long)r["transScore"]); DrawGold = pageSet.PageSet.Tables[0].Select("TradeType='取款'").Sum<DataRow>(r => (long)r["transScore"]);
DataRow [] dr=pageSet.PageSet.Tables[0].Select("TradeType='存款'"); StoreGold = dr.Sum<DataRow>(r => (long)r["transScore"]); DrawGold = pageSet.PageSet.Tables[0].Select("TradeType='取款'").Sum<DataRow>(r => (long)r["transScore"]);