日期:2014-05-18 浏览次数:20991 次
PosGroup.Lane.Row[m].Col[n].Layer[h].Pos.PosState = Convert.ToInt32(ds1.Tables[0].Rows[i]["Pos_State"]);
var lane = PosGroup.Lane;
var row = lane.Row;
for (int m = 0; m <= IRow; m++)
{
PosGroup.Lane.Row[m] = new TRow();
for (int n = 0; n <= ICol; ICol++)
{
PosGroup.Lane.Row[m].Col[n] = new TCol();
for (int h = 0; h <= ILayer; h++)
{
PosGroup.Lane.Row[m].Col[n].Layer[h] = new TLayer();
PosGroup.Lane.Row[m].Col[n].Layer[h].Pos.PosState = Convert.ToInt32(ds1.Tables[0].Rows[i]["Pos_State"]);
PosGroup.Lane.Row[m].Col[n].Layer[h].Pos.Zone_ID = Convert.ToInt32(ds1.Tables[0].Rows[i]["Zone_ID"]);
PosGroup.Lane.Row[m].Col[n].Layer[h].Pos.PID = Convert.ToInt32(ds1.Tables[0].Rows[i]["PID"]);
PosGroup.Lane.Row[m].Col[n].Layer[h].Pos.HasSetValue = true;
}
}
}