arrlCVID.add(new Integer(ID));
}
}
else if (modulename.equals("PurchaseOrder")) {
Iterator it = arrl.iterator();
PurchaseOrderVO VO = new PurchaseOrderVO();
while (it.hasNext()) {
VO = (PurchaseOrderVO) it.next();
int ID = VO.getPurchaseOrderId();
arrlCVID.add(new Integer(ID));
}
}
else if (modulename.equals("Expense")) {
Iterator it = arrl.iterator();
ExpenseVO VO = new ExpenseVO();
while (it.hasNext()) {
VO = (ExpenseVO) it.next();
int ID = VO.getExpenseID();
arrlCVID.add(new Integer(ID));
}
}
else if (isItemModule(modulename)) {
Iterator it = arrl.iterator();
ItemVO VO = new ItemVO();
while (it.hasNext()) {
VO = (ItemVO) it.next();
int ID = VO.getItemId();
arrlCVID.add(new Integer(ID));
}
}
else if (modulename.equals("Payment")) {
Iterator it = arrl.iterator();
PaymentVO VO = new PaymentVO();
while (it.hasNext()) {
VO = (PaymentVO) it.next();
int ID = VO.getPaymentID();
arrlCVID.add(new Integer(ID));
}
}
else if (modulename.equals("PaymentMethod")) {
Iterator it = arrl.iterator();
PaymentMethodVO VO = new PaymentMethodVO();
while (it.hasNext()) {
VO = (PaymentMethodVO) it.next();
int ID = VO.getMethodID();
arrlCVID.add(new Integer(ID));
}
}
else if (modulename.equals("GLAccount")) {
Iterator it = arrl.iterator();
GLAccountVO VO = new GLAccountVO();
while (it.hasNext()) {
VO = (GLAccountVO) it.next();
int ID = VO.getGlaccountID();
arrlCVID.add(new Integer(ID));
}
}
}catch(Exception e)
{