diff --git a/AstuteSystem/src/main/java/com/astute/service/AuthService.java b/AstuteSystem/src/main/java/com/astute/service/AuthService.java index d194bc1..d41187b 100644 --- a/AstuteSystem/src/main/java/com/astute/service/AuthService.java +++ b/AstuteSystem/src/main/java/com/astute/service/AuthService.java @@ -17,15 +17,15 @@ public class AuthService extends Service{ return getDao().login(username,password); } - public void updateCustomer( int customerId, String customerName, String billToDept, String add1, String add2, String city, String state, int zip, int ziplast4, String email, int phone, int fax) + public void updateCustomer( String customerId, String customerName, String billToDept, String add1, String add2, String city, String state, int zip, int ziplast4, String email, Long phone, Long fax) throws AstuteException { getDao().updateCustomer(customerId, customerName,billToDept, add1, add2, city, state, zip, ziplast4, email, phone, fax); } - public void createCustomer(String customerName, String billToDept, String add1, String add2, String city, String state, int zip, int ziplast4, String email, int phone, int fax) + public void createCustomer(String customerId, String customerName, String billToDept, String add1, String add2, String city, String state, int zip, int ziplast4, String email, Long phone, Long fax) throws AstuteException { - getDao().createCustomer(customerName,billToDept, add1, add2, city, state, zip, ziplast4, email, phone, fax); + getDao().createCustomer(customerId, customerName,billToDept, add1, add2, city, state, zip, ziplast4, email, phone, fax); } } diff --git a/AstuteSystem/src/main/java/com/astute/service/CustomerService.java b/AstuteSystem/src/main/java/com/astute/service/CustomerService.java index a4a356b..f2a829f 100644 --- a/AstuteSystem/src/main/java/com/astute/service/CustomerService.java +++ b/AstuteSystem/src/main/java/com/astute/service/CustomerService.java @@ -13,20 +13,20 @@ public class CustomerService extends Service{ super(); } - public List getCustomers(int customerId) + public List getCustomers(String customerId) throws AstuteException { return getDao().getCustomers(customerId); } - public void updateCustomer( int customerId, String customerName, String billToDept, String add1, String add2, String city, String state, int zip, int ziplast4, String email, int phone, int fax) + public void updateCustomer( String customerId, String customerName, String billToDept, String add1, String add2, String city, String state, int zip, int ziplast4, String email, Long phone, Long fax) throws AstuteException { getDao().updateCustomer(customerId, customerName,billToDept, add1, add2, city, state, zip, ziplast4, email, phone, fax); } - public int createCustomer(String customerName, String billToDept, String add1, String add2, String city, String state, int zip, int ziplast4, String email, int phone, int fax) + public String createCustomer(String customerId, String customerName, String billToDept, String add1, String add2, String city, String state, int zip, int ziplast4, String email, Long phone, Long fax) throws AstuteException { - return getDao().createCustomer(customerName,billToDept, add1, add2, city, state, zip, ziplast4, email, phone, fax); + return getDao().createCustomer(customerId, customerName,billToDept, add1, add2, city, state, zip, ziplast4, email, phone, fax); } } diff --git a/AstuteSystem/src/main/java/com/astute/service/POService.java b/AstuteSystem/src/main/java/com/astute/service/POService.java index be4b96f..90c1c1b 100644 --- a/AstuteSystem/src/main/java/com/astute/service/POService.java +++ b/AstuteSystem/src/main/java/com/astute/service/POService.java @@ -37,7 +37,7 @@ public class POService extends Service{ getDao().updatePODetail(POnum, lineItemNo, serviceDesc, feeTypeId, qty, fee, serviceTypeId); } - public void createPOMaster(String PONum, String contractNum, Date PODate, Double contractAmt, Integer customerId, String astuteProjectNumber) + public void createPOMaster(String PONum, String contractNum, Date PODate, Double contractAmt, String customerId, String astuteProjectNumber) throws AstuteException { getDao().createPOMaster(PONum, contractNum, PODate, contractAmt, customerId, astuteProjectNumber); }