Commit b2cdebec authored by pdas's avatar pdas

CHANGES FOR DATA TYPE DOUBLE IN MIN QTY,MAX QTY AND RATE


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98036 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 3e493bf9
...@@ -107,18 +107,18 @@ public class PriceListGenIC extends ValidatorEJB implements PriceListGenLocal, P ...@@ -107,18 +107,18 @@ public class PriceListGenIC extends ValidatorEJB implements PriceListGenLocal, P
String effFromStr = ""; String effFromStr = "";
String minRateStr = ""; String minRateStr = "";
String maxRateStr = ""; String maxRateStr = "";
int maxRate=0; double maxRate=0;
String rateStr = ""; String rateStr = "";
int rate = 0; double rate = 0;
int minRate = 0; double minRate = 0;
String unit =""; String unit ="";
int ctr = 0; int ctr = 0;
int count = 0; int count = 0;
int currentFormNo = 0; int currentFormNo = 0;
int minQty = 0; double minQty = 0;
String minQtyStr = ""; String minQtyStr = "";
String maxQtyStr = ""; String maxQtyStr = "";
int maxQty = 0; double maxQty = 0;
int childNodeListLength; int childNodeListLength;
StringBuffer valueXmlString = new StringBuffer(); StringBuffer valueXmlString = new StringBuffer();
ArrayList<String> errList = new ArrayList(); ArrayList<String> errList = new ArrayList();
...@@ -405,8 +405,8 @@ public class PriceListGenIC extends ValidatorEJB implements PriceListGenLocal, P ...@@ -405,8 +405,8 @@ public class PriceListGenIC extends ValidatorEJB implements PriceListGenLocal, P
if((minQtyStr.trim().length() > 0||minQtyStr !=null )&& (maxQtyStr.trim().length() >0 ||maxQtyStr != null )) if((minQtyStr.trim().length() > 0||minQtyStr !=null )&& (maxQtyStr.trim().length() >0 ||maxQtyStr != null ))
{ {
minQty = Integer.parseInt(minQtyStr.trim()); minQty = Double.parseDouble(minQtyStr.trim());
maxQty = Integer.parseInt(maxQtyStr.trim()); maxQty = Double.parseDouble(maxQtyStr.trim());
if (maxQty < minQty) { if (maxQty < minQty) {
errCode = "VMMINQTY"; errCode = "VMMINQTY";
errList.add(errCode); errList.add(errCode);
...@@ -423,9 +423,9 @@ public class PriceListGenIC extends ValidatorEJB implements PriceListGenLocal, P ...@@ -423,9 +423,9 @@ public class PriceListGenIC extends ValidatorEJB implements PriceListGenLocal, P
rateStr = genericUtility.getColumnValue("rate", dom); rateStr = genericUtility.getColumnValue("rate", dom);
if((minRateStr.trim().length() > 0||minRateStr !=null )&& (rateStr.trim().length() >0 ||rateStr != null )&&(maxRateStr.trim().length() > 0||maxRateStr !=null )) if((minRateStr.trim().length() > 0||minRateStr !=null )&& (rateStr.trim().length() >0 ||rateStr != null )&&(maxRateStr.trim().length() > 0||maxRateStr !=null ))
{ {
minRate = Integer.parseInt(minRateStr); minRate = Double.parseDouble(minRateStr);
rate = Integer.parseInt(rateStr); rate = Double.parseDouble(rateStr);
maxRate = Integer.parseInt(maxRateStr); maxRate = Double.parseDouble(maxRateStr);
if(rate<0) if(rate<0)
{ {
errCode = "VTSUBCRATE"; errCode = "VTSUBCRATE";
...@@ -605,7 +605,7 @@ public class PriceListGenIC extends ValidatorEJB implements PriceListGenLocal, P ...@@ -605,7 +605,7 @@ public class PriceListGenIC extends ValidatorEJB implements PriceListGenLocal, P
String calcMethodDescr = ""; String calcMethodDescr = "";
String rateStr = ""; String rateStr = "";
String rateNo = ""; String rateNo = "";
int rate = 0; double rate = 0;
String columnValue = ""; String columnValue = "";
String priceList = ""; String priceList = "";
String unit = ""; String unit = "";
......
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