Commit 5d6feec5 authored by arawankar's avatar arawankar

Changes made in SalesOrderIC.java .


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@174615 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 1cf8d06b
...@@ -4967,7 +4967,10 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -4967,7 +4967,10 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
if (lsEmpCode != null && lsEmpCode.trim().length() > 0) if (lsEmpCode != null && lsEmpCode.trim().length() > 0)
{ {
lsCctrCodeSal = checkNull(genericUtility.getColumnValue("cctr_code__sal", dom)); lsCctrCodeSal = checkNull(genericUtility.getColumnValue("cctr_code__sal", dom));
if (lsCctrCodeSal != null && lsCctrCodeSal.trim().length() > 0) //Modified by Anjali R. [To get cctr_code__sal if it is null in dom]on[24/11/2017][Start]
//if (lsCctrCodeSal != null && lsCctrCodeSal.trim().length() > 0)
if (lsCctrCodeSal == null || lsCctrCodeSal.trim().length() == 0)
//Modified by Anjali R. [To get cctr_code__sal if it is null in dom]on[24/11/2017][End]
{ {
sql = "select (case when cctr_code__sal is null then '' else cctr_code__sal end) as cctr_code__sal from employee where emp_code = ?"; sql = "select (case when cctr_code__sal is null then '' else cctr_code__sal end) as cctr_code__sal from employee where emp_code = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
...@@ -5205,7 +5208,10 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -5205,7 +5208,10 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
if (lsEmpCode != null && lsEmpCode.trim().length() > 0) if (lsEmpCode != null && lsEmpCode.trim().length() > 0)
{ {
lsCctrCodeSal = checkNull(genericUtility.getColumnValue("cctr_code__sal", dom)); lsCctrCodeSal = checkNull(genericUtility.getColumnValue("cctr_code__sal", dom));
if (lsCctrCodeSal != null && lsCctrCodeSal.trim().length() > 0) //Modified by Anjali R. [To get cctr_code__sal if it is null in dom]on[24/11/2017][Start]
//if (lsCctrCodeSal != null && lsCctrCodeSal.trim().length() > 0)
if (lsCctrCodeSal == null || lsCctrCodeSal.trim().length() == 0)
//Modified by Anjali R. [To get cctr_code__sal if it is null in dom]on[24/11/2017][End]
{ {
sql = "select (case when cctr_code__sal is null then '' else cctr_code__sal end) as cctr_code__sal from employee where emp_code = ?"; sql = "select (case when cctr_code__sal is null then '' else cctr_code__sal end) as cctr_code__sal from employee where emp_code = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
...@@ -5458,8 +5464,10 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -5458,8 +5464,10 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
if (lsEmpCode != null && lsEmpCode.trim().length() > 0) if (lsEmpCode != null && lsEmpCode.trim().length() > 0)
{ {
lsCctrCodeSal = checkNull(genericUtility.getColumnValue("cctr_code__sal", dom)); lsCctrCodeSal = checkNull(genericUtility.getColumnValue("cctr_code__sal", dom));
//Modified by Anjali R. [To get cctr_code__sal if it is null in dom]on[24/11/2017][Start]
if (lsCctrCodeSal != null && lsCctrCodeSal.trim().length() > 0) //if (lsCctrCodeSal != null && lsCctrCodeSal.trim().length() > 0)
if (lsCctrCodeSal == null || lsCctrCodeSal.trim().length() == 0)
//Modified by Anjali R. [To get cctr_code__sal if it is null in dom]on[24/11/2017][End]
{ {
sql = "select (case when cctr_code__sal is null then '' else cctr_code__sal end) as ls_cctr_code__sal" + " from employee where emp_code = ?"; sql = "select (case when cctr_code__sal is null then '' else cctr_code__sal end) as ls_cctr_code__sal" + " from employee where emp_code = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
......
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