mirror of
https://github.com/dyiop/astute.git
synced 2025-04-09 06:40:20 -04:00
Add files via upload
This commit is contained in:
parent
f1cdea1603
commit
37a33887b9
|
@ -105,6 +105,8 @@ public abstract class DAO {
|
||||||
|
|
||||||
public abstract void createPODetail(String POnum, int lineItemNo, String serviceDesc, int feeTypeId, Double qty, Double fee, int serviceTypeId, Double remainingQuantity) throws AstuteException;
|
public abstract void createPODetail(String POnum, int lineItemNo, String serviceDesc, int feeTypeId, Double qty, Double fee, int serviceTypeId, Double remainingQuantity) throws AstuteException;
|
||||||
|
|
||||||
|
public abstract List<ServiceType> getServiceTypes() throws AstuteException;
|
||||||
|
|
||||||
|
|
||||||
public abstract List<Invoice> getInvoiceMaster(String invoiceNumber, int pmtStatus) throws AstuteException;
|
public abstract List<Invoice> getInvoiceMaster(String invoiceNumber, int pmtStatus) throws AstuteException;
|
||||||
|
|
||||||
|
|
|
@ -242,6 +242,25 @@ public class SqlDAO extends DAO {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<ServiceType> getServiceTypes() throws AstuteException {
|
||||||
|
try {
|
||||||
|
List<ServiceType> serviceTypes = new ArrayList<ServiceType>();
|
||||||
|
Statement stmt = conn.createStatement();
|
||||||
|
String sql = "SELECT SERVICE_TYPE_ID, SERVICE_TYPE.DESC FROM SERVICE_TYPE ORDER BY 1 ";
|
||||||
|
ResultSet rs = stmt.executeQuery(sql);
|
||||||
|
while (rs.next()) {
|
||||||
|
int serviceTypeId = rs.getInt(1);
|
||||||
|
String desc = rs.getString(2);
|
||||||
|
ServiceType serviceType = new ServiceType(serviceTypeId, desc);
|
||||||
|
serviceTypes.add(serviceType);
|
||||||
|
}
|
||||||
|
return serviceTypes;
|
||||||
|
} catch (SQLException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
throw new AstuteException(DB_ERROR,e.getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
=============================== Invoice Methods ===============================================
|
=============================== Invoice Methods ===============================================
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user