dateTable

DataSet ds = dal.GetInventory();
foreach (DataTable dt in ds.Tables)
{
foreach (DataRow dr in dt.Rows)
{
InventoryList.Add(new icbc_invtorylist()
{
pruduct_num = dr["goodsid"].ToString(),
pruduct_status = Convert.ToInt32(dr["inventory_warehouseshop"]) > 0 ? 0 : 1
});

}
}

posted @ 2017-01-24 16:08  applekingghfhfhbr  阅读(143)  评论(0编辑  收藏  举报