Commit fd796216 authored by kmandhre's avatar kmandhre

change for multiple error message


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94072 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 797c4fb8
......@@ -980,6 +980,7 @@ public class StockAllocationPrc extends ProcessEJB implements StockAllocationPrc
pendingOrderFlag = false;
flag = false;
//isFlag = true; change by kunal on 26/dec/13 no need to reset flag
//System.out.println("ERROR STRING:::"+errString);
parentNode = parentNodeList.item(selectedRow);
childNodeList = parentNode.getChildNodes();
......@@ -1040,7 +1041,7 @@ public class StockAllocationPrc extends ProcessEJB implements StockAllocationPrc
System.out.println("Pending Qty="+pendingQty+" alloc Qty="+allocQty);
if(allocQty > pendingQty) ///added by kunal on 27/dec/13
{
errString = itmDBAccessEJB.getErrorString("","ALLCQTY01","","",conn);
//errString = itmDBAccessEJB.getErrorString("","ALLCQTY01","","",conn);
flag = true;
isFlag = false;
list3.add(saleOrder);
......@@ -1054,7 +1055,7 @@ public class StockAllocationPrc extends ProcessEJB implements StockAllocationPrc
if(!"N".equalsIgnoreCase(activeAllow))
{
System.out.println("==activeAllow validate==");
errString = itmDBAccessEJB.getErrorString("","VTACTALW","","",conn);
//errString = itmDBAccessEJB.getErrorString("","VTACTALW","","",conn);
flag = true;
isFlag = false;
list4.add(saleOrder);
......@@ -1096,6 +1097,7 @@ public class StockAllocationPrc extends ProcessEJB implements StockAllocationPrc
errString = itmDBAccessEJB.getErrorString("",errString,"","",conn);
}
System.out.println("TEST 1099::"+errString);
if( errString != null && errString.trim().length() > 0 && flag == true)
{
isFlag = false;
......@@ -1104,6 +1106,7 @@ public class StockAllocationPrc extends ProcessEJB implements StockAllocationPrc
list.add(itemCode);
list.add(allocQty);
elements ++;
errString = "";//added by kunal for handle multiple error message 31/DEC/13
}
} //added by ritesh on 07/10/13 for request DI3ESUN009 END
......@@ -1179,6 +1182,7 @@ public class StockAllocationPrc extends ProcessEJB implements StockAllocationPrc
list1.add(itemCode);
list1.add(allocQty);
elements1 ++;
errString = "";
}
}
}
......@@ -1202,6 +1206,7 @@ public class StockAllocationPrc extends ProcessEJB implements StockAllocationPrc
list2.add(itemCode);
list2.add(allocQty);
elements2 ++;
errString = "";
}
else
{
......@@ -1226,6 +1231,7 @@ public class StockAllocationPrc extends ProcessEJB implements StockAllocationPrc
pstmt.close();
pstmt = null;
}
errString = ""; //added by kunal for handle multiple error message 31/DEC/13
}// out for loop
//added by ritesh on 07/10/13 for request DI3ESUN009 start
//if (errString != null && errString.trim().length() > 0)
......
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