Commit 33b3e9c8 authored by sghate's avatar sghate

Updated PayVarIC Component

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@206044 ce508802-f39f-4f6c-b175-0d175dae99d5
parent c330997a
...@@ -70,6 +70,8 @@ public class PayVarIC extends ValidatorEJB implements PayVarLocal,PayVarRemote ...@@ -70,6 +70,8 @@ public class PayVarIC extends ValidatorEJB implements PayVarLocal,PayVarRemote
Double amount1 = 0.0; Double amount1 = 0.0;
Double amtAdj1 = 0.0; Double amtAdj1 = 0.0;
Double amtBal = 0.0; Double amtBal = 0.0;
String amount = "";
String amtAdj = "";
try try
{ {
...@@ -93,25 +95,26 @@ public class PayVarIC extends ValidatorEJB implements PayVarLocal,PayVarRemote ...@@ -93,25 +95,26 @@ public class PayVarIC extends ValidatorEJB implements PayVarLocal,PayVarRemote
{ {
lsPrdCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "prd_code"); lsPrdCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "prd_code");
valueXmlString.append("<prd_code>").append("<![CDATA[" + lsPrdCode + "]]>").append("</prd_code>"); valueXmlString.append("<prd_code>").append("<![CDATA[" + lsPrdCode + "]]>").append("</prd_code>");
valueXmlString.append("<flag>").append("<![CDATA[" + editFlag + "]]>").append("</flag>");
} }
else if("itm_defaultedit".equalsIgnoreCase(currentColumn)) else if("itm_defaultedit".equalsIgnoreCase(currentColumn))
{ {
varName = checkNull(genericUtility.getColumnValue("var_name", dom)); varName = checkNull(genericUtility.getColumnValue("var_name", dom));
valueXmlString.append("<var_name protect=\"1\"><![CDATA[").append(varName).append("]]></var_name>\r\n"); valueXmlString.append("<var_name protect=\"1\"><![CDATA[").append(varName).append("]]></var_name>\r\n");
valueXmlString.append("<flag>").append("<![CDATA[" + editFlag + "]]>").append("</flag>");
} }
else if("emp_code".equalsIgnoreCase(currentColumn)) else if("emp_code".equalsIgnoreCase(currentColumn))
{ {
empCode = checkNull(genericUtility.getColumnValue("emp_code", dom)); empCode = checkNull(genericUtility.getColumnValue("emp_code", dom));
sql = "Select emp_fname, emp_lname as mdescr,mdescr1 from employee where emp_code = ?"; sql = "Select emp_fname, emp_lname from employee where emp_code = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, empCode); pstmt.setString(1, empCode);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if(rs.next()) if(rs.next())
{ {
mdescr = rs.getString("mdescr"); mdescr = rs.getString("emp_fname");
mdescr1 = rs.getString("mdescr1"); mdescr1 = rs.getString("emp_lname");
} }
if(rs != null) if(rs != null)
{ {
...@@ -153,10 +156,10 @@ public class PayVarIC extends ValidatorEJB implements PayVarLocal,PayVarRemote ...@@ -153,10 +156,10 @@ public class PayVarIC extends ValidatorEJB implements PayVarLocal,PayVarRemote
else if("amount".equalsIgnoreCase(currentColumn) || "amt_adj".equalsIgnoreCase(currentColumn)) else if("amount".equalsIgnoreCase(currentColumn) || "amt_adj".equalsIgnoreCase(currentColumn))
{ {
String amount = checkInt(genericUtility.getColumnValue("amount", dom)); amount = checkInt(genericUtility.getColumnValue("amount", dom));
amount1 = Double.parseDouble(amount); amount1 = Double.parseDouble(amount);
String amtAdj = checkInt(genericUtility.getColumnValue("amt_adj", dom)); amtAdj = checkInt(genericUtility.getColumnValue("amt_adj", dom));
amtAdj1 = Double.parseDouble(amtAdj); amtAdj1 = Double.parseDouble(amtAdj);
amtBal = amount1 - amtAdj1; amtBal = amount1 - amtAdj1;
......
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