Commit b8995d4d authored by nkhan's avatar nkhan

[S15IBAS003] Updated Sources For Adding Validation From MSI And removing extra validation


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@103443 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 936047a6
......@@ -1444,6 +1444,7 @@ public class ItemIC extends ValidatorEJB implements ItemICLocal, ItemICRemote {
}
}
/* Changed By Nasruddin 19-SEP-16 Start
else if(childNodeName.equalsIgnoreCase("phy_attrib_1") || childNodeName.equalsIgnoreCase("phy_attrib_2") ||
childNodeName.equalsIgnoreCase("phy_attrib_3") || childNodeName.equalsIgnoreCase("phy_attrib_4") ||
childNodeName.equalsIgnoreCase("phy_attrib_5"))
......@@ -1462,10 +1463,7 @@ public class ItemIC extends ValidatorEJB implements ItemICLocal, ItemICRemote {
}
}
}
}*/
// // Changed By Nasruddin 19-SEP-16 END
}
......@@ -1581,12 +1579,15 @@ public class ItemIC extends ValidatorEJB implements ItemICLocal, ItemICRemote {
if (objContext != null && objContext.trim().length() > 0) {
currentFormNo = Integer.parseInt(objContext);
}
switch (currentFormNo) {
case 1: {
switch (currentFormNo)
{
case 1:
{
valueXmlString.append("<Detail1>");
System.out.println("currentColumn detail 1::: " + currentColumn);
if (currentColumn != null) {
if (currentColumn.equalsIgnoreCase("apr_code")) {
if (currentColumn.equalsIgnoreCase("apr_code"))
{
aprCode = checkNullAndTrim(genericUtility.getColumnValue("apr_code", dom));
System.out.println(":::: aprCode ::: " + aprCode);
sql = "select descr from aprlev where apr_code = ?";
......@@ -1599,11 +1600,13 @@ public class ItemIC extends ValidatorEJB implements ItemICLocal, ItemICRemote {
System.out.println("descrAprlev:::: " + descrAprlev);
valueXmlString.append("<aprlev_descr><![CDATA[" + descrAprlev + "]]></aprlev_descr>");
}
if (currentColumn.equalsIgnoreCase("grp_code")) {
if (currentColumn.equalsIgnoreCase("grp_code"))
{
grpCode = checkNullAndTrim(genericUtility.getColumnValue("grp_code", dom));
System.out.println("grpCode:::: " + grpCode);
if (grpCode.length() == 0) {
if (grpCode.length() == 0)
{
valueXmlString.append("<sgrp_code><![CDATA[]]></sgrp_code>");
}
}
......@@ -1620,7 +1623,8 @@ public class ItemIC extends ValidatorEJB implements ItemICLocal, ItemICRemote {
System.out.println("::: descritemSer" + descrItemSer);
valueXmlString.append("<itemser_descr><![CDATA[" + descrItemSer + "]]></itemser_descr>");
}
if (currentColumn.equalsIgnoreCase("item_type")) {
if (currentColumn.equalsIgnoreCase("item_type"))
{
itemType = checkNullAndTrim(genericUtility.getColumnValue("item_type", dom));
System.out.println(":::itemtype " + itemType);
setAttrbVal(itemType, conn, valueXmlString);
......@@ -1704,7 +1708,8 @@ public class ItemIC extends ValidatorEJB implements ItemICLocal, ItemICRemote {
}
}
if (currentColumn.equalsIgnoreCase("loc_code")) {
if (currentColumn.equalsIgnoreCase("loc_code"))
{
locCode = checkNullAndTrim(genericUtility.getColumnValue("loc_code", dom));
System.out.println("locCode:: " + locCode);
......@@ -1719,7 +1724,9 @@ public class ItemIC extends ValidatorEJB implements ItemICLocal, ItemICRemote {
valueXmlString.append("<location_descr><![CDATA[" + descrLocCode + "]]></location_descr>");
}
if (currentColumn.equalsIgnoreCase("phy_attrib_3")) {
/* Comment By Nasruddin Start 23-SEP-16 Start
* if (currentColumn.equalsIgnoreCase("phy_attrib_3"))
{
phyAttribThree = checkNullAndTrim(genericUtility.getColumnValue("phy_attrib_3", dom));
......@@ -1746,8 +1753,9 @@ public class ItemIC extends ValidatorEJB implements ItemICLocal, ItemICRemote {
String valueFour = setDescr(itemType, phyAttribThree,phyAttribFour, conn);
valueXmlString.append("<descr><![CDATA[" + valueFour + "]]></descr>");
}
if (currentColumn.equalsIgnoreCase("site_code")) {
}Comment By Nasruddin Start 23-SEP-16 END */
if (currentColumn.equalsIgnoreCase("site_code"))
{
siteCode = checkNullAndTrim(genericUtility.getColumnValue("site_code", dom));
......@@ -1873,22 +1881,24 @@ public class ItemIC extends ValidatorEJB implements ItemICLocal, ItemICRemote {
valueXmlString.append("<contract_req protect = '1'><![CDATA[" + contractReq + "]]></contract_req>");
}
}
//[END]
}
}
}
} catch (Exception e) {
}
catch (Exception e)
{
System.out.println(":::: " + this.getClass().getSimpleName()
+ ":::" + e.getMessage());
e.printStackTrace();
} finally {
try {
if (pstmt != null) {
}
finally
{
try
{
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
......
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