The following code is used to check if the Dimension exist for item.
while select inventTable where inventTable.DefaultDimension == 0
{
if(EcoResStorageDimensionGroupItem::findByItem(inventTable.DataAreaId, inventTable.ItemId).StorageDimensionGroup
&& EcoResTrackingDimensionGroupItem::findByItem(inventTable.DataAreaId, inventTable.ItemId).TrackingDimensionGroup)
{
continue; // exist
}
else
{
// not exist do some thing.
}
}
while select inventTable where inventTable.DefaultDimension == 0
{
if(EcoResStorageDimensionGroupItem::findByItem(inventTable.DataAreaId, inventTable.ItemId).StorageDimensionGroup
&& EcoResTrackingDimensionGroupItem::findByItem(inventTable.DataAreaId, inventTable.ItemId).TrackingDimensionGroup)
{
continue; // exist
}
else
{
// not exist do some thing.
}
}
No comments:
Post a Comment