Commit 21794a8e authored by rtiwari's avatar rtiwari

Change for Old metis issue tracker UAT point #79 and 82


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93656 ce508802-f39f-4f6c-b175-0d175dae99d5
parent aa98f0e8
...@@ -24,7 +24,7 @@ public class PriceList extends ValidatorEJB implements PriceListLocal, PriceList ...@@ -24,7 +24,7 @@ public class PriceList extends ValidatorEJB implements PriceListLocal, PriceList
/*public void ejbCreate() throws RemoteException, CreateException /*public void ejbCreate() throws RemoteException, CreateException
{ {
System.out.println("Entering into SQLChangeEJB............."); System.out.println("sEntering into SQLChangeEJB.............");
} }
public void ejbRemove() public void ejbRemove()
{ {
...@@ -420,6 +420,9 @@ public class PriceList extends ValidatorEJB implements PriceListLocal, PriceList ...@@ -420,6 +420,9 @@ public class PriceList extends ValidatorEJB implements PriceListLocal, PriceList
String empCodeGiven = ""; String empCodeGiven = "";
String empCodeMerge = ""; String empCodeMerge = "";
String childNodeName = ""; String childNodeName = "";
String priceList = "";
String lskeyflag = "";
int cnt1 = 0;
NodeList parentNodeList = null; NodeList parentNodeList = null;
NodeList childNodeList = null; NodeList childNodeList = null;
Node parentNode = null; Node parentNode = null;
...@@ -459,6 +462,48 @@ public class PriceList extends ValidatorEJB implements PriceListLocal, PriceList ...@@ -459,6 +462,48 @@ public class PriceList extends ValidatorEJB implements PriceListLocal, PriceList
{ {
} }
// ADDED BY RITESH ON 23/SEP/13 START
else if(childNodeName.equals("price_list"))
{
NamedNodeMap attrMap = parentNode.getAttributes();
String objName = attrMap.getNamedItem( "objName" ).getNodeValue();
String winName = "w_"+ objName;
priceList = genericUtility.getColumnValue("price_list",dom);
System.out.println("price_list wfvalData :::: " + priceList);
sql = "select key_flag from transetup where tran_window = '"+ winName +"'";
pstmt = conn.prepareStatement(sql);
rs = pstmt.executeQuery();
if(rs.next())
{
lskeyflag = rs.getString("key_flag")== null ?"M":rs.getString("key_flag");
}
rs.close();rs = null;
pstmt.close();pstmt = null;
if("M".equals(lskeyflag) && (priceList == null || priceList.trim().length() == 0))
{
errCode = "VMCODNULL";
errString = getErrorString("price_list",errCode,userId);
}
else if ("A".equals(editFlag))
{
sql = "select count(*) from pricelist where price_list = '"+priceList+"'";
pstmt = conn.prepareStatement(sql);
rs = pstmt.executeQuery();
if(rs.next())
{
cnt1 = rs.getInt(1);
}
rs.close();rs = null;
pstmt.close();pstmt = null;
if(cnt1 > 0)
{
errCode = "VMDUPL1";
errString = getErrorString("price_list",errCode,userId);
}
}
} // ADDED BY RITESH ON 23/SEP/13 END
else if(childNodeName.equals("item_code")) else if(childNodeName.equals("item_code"))
{ {
System.out.println("childNodeName 1. : " + childNodeName); System.out.println("childNodeName 1. : " + childNodeName);
...@@ -579,6 +624,7 @@ public class PriceList extends ValidatorEJB implements PriceListLocal, PriceList ...@@ -579,6 +624,7 @@ public class PriceList extends ValidatorEJB implements PriceListLocal, PriceList
}//case1 }//case1
break; break;
} }
}//switch }//switch
......
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