Commit f1b80e79 authored by asant's avatar asant

Created common component ValidateSorderForm to validate nature of SorderForm and PlaceOrdWizIc.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@202825 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 8f529f54
...@@ -2360,7 +2360,28 @@ public class SOrderForm extends ValidatorEJB implements SOrderFormLocal, SOrderF ...@@ -2360,7 +2360,28 @@ public class SOrderForm extends ValidatorEJB implements SOrderFormLocal, SOrderF
} //end totqty } //end totqty
// ---------------------------- Nandkumar Gadkari -------------on 12/11/18---------start-------------------- // ---------------------------- Nandkumar Gadkari -------------on 12/11/18---------start--------------------
else if (childNodeName.equalsIgnoreCase("nature")) { else if (childNodeName.equalsIgnoreCase("nature")) {
System.out.println("#### Validating Nature ....");
//Changed by AMOL S Created common component to for SOrderForm and PlaceOrdWizIc [START]
String nature_ = "";
if(childNode.getFirstChild() != null)
{
nature_ = childNode.getFirstChild().getNodeValue();
}
//System.out.println("#### nature "+nature_);
System.out.println("#### Counter "+ctr+" nature "+nature_+" itemCode "+itemCode);
ValidateSorderForm validateSorderForm = new ValidateSorderForm();
errCode = validateSorderForm.validateNature(conn,dom,dom1,dom2,nature_,itemCode);
//errCode = validateSorderForm.validateNature(conn,dom,dom1,dom2);
System.out.println("#### Error Code "+errCode);
if(errCode.trim().length() > 0)
{
errString = getErrorString("nature",errCode,userId);
/*errList.add(errCode);
errFields.add(childNodeName.toLowerCase());*/
break;
}
//Changed by AMOL S Created common component to for SOrderForm and PlaceOrdWizIc [START]
/*
// ------------------------------------------------------------------------------------------- // -------------------------------------------------------------------------------------------
double unConfTotFreeQty = 0 , rate1 = 0,qtyTot=0.0,mRate = 0.00,value=0.0,valueAmount=0.0,quantity=0.0; double unConfTotFreeQty = 0 , rate1 = 0,qtyTot=0.0,mRate = 0.00,value=0.0,valueAmount=0.0,quantity=0.0;
...@@ -2867,7 +2888,7 @@ public class SOrderForm extends ValidatorEJB implements SOrderFormLocal, SOrderF ...@@ -2867,7 +2888,7 @@ public class SOrderForm extends ValidatorEJB implements SOrderFormLocal, SOrderF
} }*/
} }
// ---------------------------- Nandkumar Gadkari -------------on 12/11/18----------end---------------------- // ---------------------------- Nandkumar Gadkari -------------on 12/11/18----------end----------------------
}// end for }// end for
......
This diff is collapsed.
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