Commit 552f51e6 authored by cpandey's avatar cpandey

add edit flag condition for item code


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92131 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 4bb336d4
......@@ -85,7 +85,9 @@ implements BillofQuantityICLocal, BillofQuantityICRemote
String indentNo = "";
String tranDateS = "";
String unitRate="";
System.out.println("editFlag ---->>>["+editFlag+"]");
String unit = "";
String updateFlag = "";
int ctr = 0;
int currentFormNo = 0;
int cnt = 0;
......@@ -116,10 +118,16 @@ implements BillofQuantityICLocal, BillofQuantityICRemote
childNodeList = parentNode.getChildNodes();
valueXmlString.append("<Detail1>");
int childNodeListLength = childNodeList.getLength();
System.out.println("EDIT FLAG --- 1-->>["+editFlag+"]");
for (ctr = 0; ctr < childNodeListLength; ctr++)
{
childNode = childNodeList.item(ctr);
childNodeName = childNode.getNodeName();
// if (("Attribute").equalsIgnoreCase(childNodeName))
// {
// updateFlag = childNodeName.getNamedItem("updateFlag") ==null ? "": childNodeName.getNamedItem("updateFlag").getNodeValue();
// break;
// }
System.out.println("CURRENT COLUMN IN VALIDATION ["+childNodeName+"]");
if (childNodeName.equalsIgnoreCase("tran_date"))
......@@ -400,6 +408,7 @@ implements BillofQuantityICLocal, BillofQuantityICRemote
childNodeList = parentNode.getChildNodes();
valueXmlString.append("<Detail2>");
childNodeListLength = childNodeList.getLength();
System.out.println("editFlag -->>["+editFlag+"]");
for (ctr = 0; ctr < childNodeListLength; ctr++)
{
childNode = childNodeList.item(ctr);
......@@ -408,6 +417,8 @@ implements BillofQuantityICLocal, BillofQuantityICRemote
{
itemCode=checkNull(this.genericUtility.getColumnValue("item_code", dom));
hitemCode=checkNull(this.genericUtility.getColumnValue("item_code", dom1));
System.out.println("Header item code ["+hitemCode+"] and detail item code ["+itemCode+"]");
if (itemCode != null && itemCode.trim().length() > 0 )
{
sql = "select count(*) from item where item_code = ?";
......@@ -428,7 +439,8 @@ implements BillofQuantityICLocal, BillofQuantityICRemote
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
else if(itemCode.equalsIgnoreCase(hitemCode))
//&& editFlag.equalsIgnoreCase("E")
else if(itemCode.equalsIgnoreCase(hitemCode) && ("E").equalsIgnoreCase(editFlag) )
{
errCode = "VMITMSM";
errList.add(errCode);
......
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