Commit 0867c14f authored by agaikwad's avatar agaikwad

changes made in ejb fro messages_level.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97332 ce508802-f39f-4f6c-b175-0d175dae99d5
parent db587b15
......@@ -118,6 +118,16 @@ public class MessagesLevel extends ValidatorEJB implements MessagesLevelLocal, M
}
}
if (childNodeName.equalsIgnoreCase("msg_type"))
{
String msg_type = genericUtility.getColumnValue("msg_type", dom);
msg_type = msg_type == null ? "" : msg_type.trim();
if (msg_type.length() == 0) {
errString = getErrorString("msg_type", "VMMSGTYNL", userId);
break;
}
}
else if (childNodeName.equalsIgnoreCase("msg_no")) {
String msgNo = genericUtility.getColumnValue("msg_no", dom);
msgNo = msgNo == null ? "" : msgNo.trim();
......@@ -161,11 +171,14 @@ public class MessagesLevel extends ValidatorEJB implements MessagesLevelLocal, M
break;
}
else
{
if (!editFlag.equalsIgnoreCase("E"))
{
int a = 0;
String id1 = genericUtility.getColumnValue("profile_id", dom);
String id2 = genericUtility.getColumnValue("msg_no", dom);
String id3 = genericUtility.getColumnValue("win_name", dom);
sql = "SELECT COUNT(1) AS COUNT FROM messages_level WHERE profile_id = ? AND msg_no= ? AND win_name= ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,id1);
......@@ -183,6 +196,7 @@ public class MessagesLevel extends ValidatorEJB implements MessagesLevelLocal, M
errString = getErrorString("", "VMALEXTDB", chgUser);
break;
}
}
}
......
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