//为数据集添加列
table.Columns.Add(new DataColumn("JYState", typeof(String)));
//为数据集添加行
DataRow dr = dtNew.NewRow();
gongZuoDiDian = string.Empty;
gongZuoXiangMu = string.Empty;
gongZuoShiJian = string.Empty;
danWei = string.Empty;
shuLiangChiCun = 0;
gongRi = string.Empty;
caiLiaoXiaoHao = string.Empty;
jiXieTaiBan = string.Empty;
dr["gongZuoDiDian"] = l1;
dr["gongZuoXiangMu"] = l2;
dr["gongZuoShiJian"] = l3;
dr["danWei"] = l4;
dr["shuLiangChiCun"] = l5;
dr["gongRi"] = l6;
dr["caiLiaoXiaoHao"] = l7;
dr["jiXieTaiBan"] = l8;
dtNew.Rows.Add(dr);
dtNew.AcceptChanges();
table.Columns.Add(new DataColumn("JYState", typeof(String)));
//为数据集添加行
DataRow dr = dtNew.NewRow();
gongZuoDiDian = string.Empty;
gongZuoXiangMu = string.Empty;
gongZuoShiJian = string.Empty;
danWei = string.Empty;
shuLiangChiCun = 0;
gongRi = string.Empty;
caiLiaoXiaoHao = string.Empty;
jiXieTaiBan = string.Empty;
dr["gongZuoDiDian"] = l1;
dr["gongZuoXiangMu"] = l2;
dr["gongZuoShiJian"] = l3;
dr["danWei"] = l4;
dr["shuLiangChiCun"] = l5;
dr["gongRi"] = l6;
dr["caiLiaoXiaoHao"] = l7;
dr["jiXieTaiBan"] = l8;
dtNew.Rows.Add(dr);
dtNew.AcceptChanges();