Commit fc94fc20 authored by smestry's avatar smestry

Updated the java file for customer details in side panel


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@104104 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 12a7db01
......@@ -4,6 +4,7 @@ import java.util.ArrayList;
import ibase.system.config.AppConnectParm;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.wms.CustomerDetails;
import ibase.webitm.ejb.wms.WavegenWizEJB;
import ibase.webitm.utility.ITMException;
import javax.naming.InitialContext;
import javax.servlet.http.HttpSession;
......@@ -37,7 +38,7 @@ public class CustomerDetailBean
}
@SuppressWarnings("rawtypes")
public ArrayList getCustomerDetails( String custCode) throws ITMException
public ArrayList getCustomerDetails(String custCode) throws ITMException
{
ArrayList custList = new ArrayList() ;
try
......@@ -52,4 +53,21 @@ public class CustomerDetailBean
}
return custList;
}
public String getCustomerImage(String custCode, String custName) throws ITMException
{
String custImg = "";
try
{
WavegenWizEJB wavegenWizEJB = new WavegenWizEJB();
custImg = wavegenWizEJB.getCustomImagePath(custCode, custName, "customer");
System.out.println("ItemListBean.getItemListDetails()["+custImg+"]");
}
catch (Exception e)
{
throw new ITMException(e);
}
return custImg;
}
}
......@@ -26,7 +26,7 @@ public class CustomerDetails extends ValidatorEJB
+ " AND DESPATCH.SORD_NO = SORDER.SALE_ORDER AND DESPATCH.CONFIRMED = 'N') AS CUSTOMER_OPEN_ORDER, CUST_PRIORITY, "
+ " (SELECT COUNT(*) FROM SORDER WHERE CUST_CODE = ? AND ORDER_DATE <= SYSDATE) AS TOTAL_ORDER_TILL_DATE, CR_TERM, SALES_PERS, "
+ " WAVE_TYPE, CONT_PERS, BLACK_LISTED, BLACK_LISTED_DATE, (SELECT FN_PAYAMT_CHECK(?) FROM DUAL) AS PAY_AMOUNT, "
+ " (SELECT FN_OUVERDUE_CHECK(?) FROM DUAL) AS DUE_AMOUNT_TILL_DATE "
+ " (SELECT FN_OUVERDUE_CHECK(?) FROM DUAL) AS DUE_AMOUNT_TILL_DATE, CUST_NAME "
+ " FROM CUSTOMER WHERE CUST_CODE = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, checkNull(custCode));
......@@ -48,6 +48,7 @@ public class CustomerDetails extends ValidatorEJB
custList.add(checkNull(rs.getString("BLACK_LISTED_DATE")));
custList.add(checkNull(rs.getString("PAY_AMOUNT")));
custList.add(checkNull(rs.getString("DUE_AMOUNT_TILL_DATE")));
custList.add(checkNull(rs.getString("CUST_NAME")));
isExists = true;
}
if(!isExists)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment