if (mdBagActionOn) {
List<Object> bagActionList = findAll(EntDbMdBagAction.class);
for (Iterator<Object> it = bagActionList.iterator(); it
.hasNext();) {
EntDbMdBagAction record = (EntDbMdBagAction) it.next();
mdBagActionList.add(record);
}
LOG.info("Master data Bag Action of Records = {}",
mdBagActionList.size());
}
if (mdBagTypeOn) {
List<Object> bagTypeList = findAll(EntDbMdBagType.class);
for (Iterator<Object> it = bagTypeList.iterator(); it.hasNext();) {
EntDbMdBagType record = (EntDbMdBagType) it.next();
mdBagTypeList.add(record);
}
LOG.info("Master data Bag Types Records = {}",
mdBagTypeList.size());
}
if (mdBagClassifyOn) {
List<Object> bagClassifyList = findAll(EntDbMdBagClassify.class);
for (Iterator<Object> it = bagClassifyList.iterator(); it
.hasNext();) {
EntDbMdBagClassify record = (EntDbMdBagClassify) it.next();
mdBagClassifyList.add(record);
}
LOG.info("Master data Bag Classify Records = {}",
mdBagClassifyList.size());
}
if (mdEquipLocOn) {
List<Object> euipLocList = findAll(EntDbMdEquipLoc.class);
for (Iterator<Object> it = euipLocList.iterator(); it.hasNext();) {
EntDbMdEquipLoc record = (EntDbMdEquipLoc) it.next();
if (!HpUfisUtils.isNullOrEmptyStr(record.getEquipArea())) {
mdEquipLocList.add(record.getEquipArea().toUpperCase());
}
}
LOG.info("Master data Equip Loc Records = {}",
mdEquipLocList.size());
}
if (mdEquipOn) {
List<Object> equipList = findAll(EntDbMdEquip.class);
for (Iterator<Object> it = equipList.iterator(); it.hasNext();) {
EntDbMdEquip record = (EntDbMdEquip) it.next();
if (!HpUfisUtils.isNullOrEmptyStr(record.getEquipNum())) {
mdEquipList.add(record.getEquipNum().toUpperCase());
}
}
LOG.info("Master data Equip Records = {}", mdEquipList.size());
}
}