Commit b6c2feda authored by spawar's avatar spawar

Changes in xml data retrieval for check null


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@99895 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 5a2e8cd8
...@@ -146,6 +146,11 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -146,6 +146,11 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
item_code = checkNullAndTrim(childNode.getFirstChild().getNodeValue()); item_code = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
item_parnt = item_code;//Changed by wasim on 15-07-2015 item_parnt = item_code;//Changed by wasim on 15-07-2015
} }
else
{
item_code = "";
item_parnt = "";
}
} }
else if (nodeName.equalsIgnoreCase("descr")) else if (nodeName.equalsIgnoreCase("descr"))
{ {
...@@ -155,6 +160,11 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -155,6 +160,11 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
//Changed by samadhan on 27/07/2015 //Changed by samadhan on 27/07/2015
item_parnt_desc = descr; item_parnt_desc = descr;
} }
else
{
descr = "";
item_parnt_desc = "";
}
} }
else if (nodeName.equalsIgnoreCase("item_type")) else if (nodeName.equalsIgnoreCase("item_type"))
{ {
...@@ -162,6 +172,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -162,6 +172,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
{ {
item_type = checkNullAndTrim(childNode.getFirstChild().getNodeValue()); item_type = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
} }
else
{
item_type = "";
}
} }
else if (nodeName.equalsIgnoreCase("item_type_descr")) else if (nodeName.equalsIgnoreCase("item_type_descr"))
{ {
...@@ -169,6 +183,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -169,6 +183,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
{ {
item_type_descr = checkNullAndTrim(childNode.getFirstChild().getNodeValue()); item_type_descr = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
} }
else
{
item_type_descr = "";
}
} }
else if (nodeName.equalsIgnoreCase("item_ser")) else if (nodeName.equalsIgnoreCase("item_ser"))
{ {
...@@ -176,6 +194,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -176,6 +194,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
{ {
item_ser = checkNullAndTrim(childNode.getFirstChild().getNodeValue()); item_ser = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
} }
else
{
item_ser = "";
}
} }
else if (nodeName.equalsIgnoreCase("item_ser_descr")) else if (nodeName.equalsIgnoreCase("item_ser_descr"))
{ {
...@@ -183,6 +205,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -183,6 +205,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
{ {
item_ser_descr = checkNullAndTrim(childNode.getFirstChild().getNodeValue()); item_ser_descr = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
} }
else
{
item_ser_descr = "";
}
} }
else if (nodeName.equalsIgnoreCase("grp_code")) else if (nodeName.equalsIgnoreCase("grp_code"))
{ {
...@@ -190,6 +216,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -190,6 +216,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
{ {
grp_code = checkNullAndTrim(childNode.getFirstChild().getNodeValue()); grp_code = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
} }
else
{
grp_code = "";
}
} }
else if (nodeName.equalsIgnoreCase("grp_code_descr")) else if (nodeName.equalsIgnoreCase("grp_code_descr"))
{ {
...@@ -197,6 +227,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -197,6 +227,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
{ {
grp_code_descr = checkNullAndTrim(childNode.getFirstChild().getNodeValue()); grp_code_descr = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
} }
else
{
grp_code_descr = "";
}
} }
else if (nodeName.equalsIgnoreCase("tax")) else if (nodeName.equalsIgnoreCase("tax"))
{ {
...@@ -204,6 +238,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -204,6 +238,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
{ {
tax = checkNullAndTrim(childNode.getFirstChild().getNodeValue()); tax = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
} }
else
{
tax = "";
}
} }
else if (nodeName.equalsIgnoreCase("language")) else if (nodeName.equalsIgnoreCase("language"))
{ {
...@@ -211,6 +249,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -211,6 +249,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
{ {
language = checkNullAndTrim(childNode.getFirstChild().getNodeValue()); language = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
} }
else
{
language = "";
}
} }
else if (nodeName.equalsIgnoreCase("language_dtl")) else if (nodeName.equalsIgnoreCase("language_dtl"))
{ {
...@@ -219,6 +261,11 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -219,6 +261,11 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
language_dtl = checkNullAndTrim(childNode.getFirstChild().getNodeValue()); language_dtl = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
hdrlanguage_dtl = language_dtl;//Changed by wasim on 15-07-2015 to get header data hdrlanguage_dtl = language_dtl;//Changed by wasim on 15-07-2015 to get header data
} }
else
{
language_dtl = "";
hdrlanguage_dtl = "";
}
} }
else if (nodeName.equalsIgnoreCase("sh_descr")) else if (nodeName.equalsIgnoreCase("sh_descr"))
{ {
...@@ -282,6 +329,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -282,6 +329,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
{ {
pur_lead_time = Double.parseDouble(checkNullAndTrim(childNode.getFirstChild().getNodeValue())); pur_lead_time = Double.parseDouble(checkNullAndTrim(childNode.getFirstChild().getNodeValue()));
} }
else
{
pur_lead_time = 0.0;
}
} }
else if (nodeName.equalsIgnoreCase("loc_code")) else if (nodeName.equalsIgnoreCase("loc_code"))
{ {
...@@ -289,6 +340,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -289,6 +340,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
{ {
loc_code = checkNullAndTrim(childNode.getFirstChild().getNodeValue()); loc_code = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
} }
else
{
loc_code = "";
}
} }
else if (nodeName.equalsIgnoreCase("loc_type")) else if (nodeName.equalsIgnoreCase("loc_type"))
{ {
...@@ -296,6 +351,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -296,6 +351,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
{ {
loc_type = checkNullAndTrim(childNode.getFirstChild().getNodeValue()); loc_type = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
} }
else
{
loc_type = "";
}
} }
else if (nodeName.equalsIgnoreCase("long_descr")) else if (nodeName.equalsIgnoreCase("long_descr"))
{ {
...@@ -303,6 +362,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -303,6 +362,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
{ {
long_descr = checkNullAndTrim(childNode.getFirstChild().getNodeValue()); long_descr = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
} }
else
{
long_descr = "";
}
} }
//Changed by Samadhan for brand start //Changed by Samadhan for brand start
//String brandCode ="",brandDescr="",ltdEdition="",stopPurchase=""; //String brandCode ="",brandDescr="",ltdEdition="",stopPurchase="";
...@@ -312,6 +375,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -312,6 +375,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
{ {
brandCode = checkNullAndTrim(childNode.getFirstChild().getNodeValue()); brandCode = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
} }
else
{
brandCode = "";
}
} }
//Changed by Samadhan for brand end //Changed by Samadhan for brand end
} }
...@@ -446,6 +513,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -446,6 +513,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
{ {
item_code = checkNullAndTrim(childNode.getFirstChild().getNodeValue()); item_code = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
} }
else
{
item_code = "";
}
} }
else if (nodeName.equalsIgnoreCase("descr")) else if (nodeName.equalsIgnoreCase("descr"))
{ {
...@@ -453,6 +524,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -453,6 +524,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
{ {
descr = checkNullAndTrim(childNode.getFirstChild().getNodeValue()); descr = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
} }
else
{
descr = "";
}
} }
else if (nodeName.equalsIgnoreCase("length")) else if (nodeName.equalsIgnoreCase("length"))
{ {
...@@ -460,6 +535,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -460,6 +535,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
{ {
item_length = checkNullAndTrim(childNode.getFirstChild().getNodeValue()); item_length = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
} }
else
{
item_length = "";
}
} }
else if (nodeName.equalsIgnoreCase("width")) else if (nodeName.equalsIgnoreCase("width"))
{ {
...@@ -467,6 +546,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -467,6 +546,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
{ {
item_width = checkNullAndTrim(childNode.getFirstChild().getNodeValue()); item_width = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
} }
else
{
item_width = "";
}
} }
else if (nodeName.equalsIgnoreCase("height")) else if (nodeName.equalsIgnoreCase("height"))
{ {
...@@ -474,6 +557,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -474,6 +557,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
{ {
item_height = checkNullAndTrim(childNode.getFirstChild().getNodeValue()); item_height = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
} }
else
{
item_height = "";
}
} }
else if (nodeName.equalsIgnoreCase("gross_weight")) else if (nodeName.equalsIgnoreCase("gross_weight"))
{ {
...@@ -481,6 +568,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -481,6 +568,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
{ {
item_gross_wt = checkNullAndTrim(childNode.getFirstChild().getNodeValue()); item_gross_wt = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
} }
else
{
item_gross_wt = "";
}
} }
else if (nodeName.equalsIgnoreCase("phy_attrib_1")) else if (nodeName.equalsIgnoreCase("phy_attrib_1"))
{ {
...@@ -488,6 +579,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -488,6 +579,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
{ {
phy_attrib_1 = checkNullAndTrim(childNode.getFirstChild().getNodeValue()); phy_attrib_1 = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
} }
else
{
phy_attrib_1 = "";
}
} }
else if (nodeName.equalsIgnoreCase("phy_attrib_2")) else if (nodeName.equalsIgnoreCase("phy_attrib_2"))
{ {
...@@ -495,6 +590,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -495,6 +590,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
{ {
phy_attrib_2 = checkNullAndTrim(childNode.getFirstChild().getNodeValue()); phy_attrib_2 = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
} }
else
{
phy_attrib_2 = "";
}
} }
else if (nodeName.equalsIgnoreCase("phy_attrib_3")) else if (nodeName.equalsIgnoreCase("phy_attrib_3"))
{ {
...@@ -502,6 +601,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -502,6 +601,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
{ {
phy_attrib_3 = checkNullAndTrim(childNode.getFirstChild().getNodeValue()); phy_attrib_3 = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
} }
else
{
phy_attrib_3 = "";
}
} }
else if (nodeName.equalsIgnoreCase("item_category")) else if (nodeName.equalsIgnoreCase("item_category"))
{ {
...@@ -509,6 +612,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -509,6 +612,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
{ {
item_category = checkNullAndTrim(childNode.getFirstChild().getNodeValue()); item_category = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
} }
else
{
item_category = "";
}
} }
else if (nodeName.equalsIgnoreCase("item_barcode")) else if (nodeName.equalsIgnoreCase("item_barcode"))
{ {
...@@ -516,6 +623,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -516,6 +623,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
{ {
item_barcode = checkNullAndTrim(childNode.getFirstChild().getNodeValue()); item_barcode = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
} }
else
{
item_barcode = "";
}
} }
else if (nodeName.equalsIgnoreCase("loc_code")) else if (nodeName.equalsIgnoreCase("loc_code"))
{ {
...@@ -537,6 +648,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -537,6 +648,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
{ {
pack_size_descr = checkNullAndTrim(childNode.getFirstChild().getNodeValue()); pack_size_descr = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
} }
else
{
pack_size_descr = "";
}
} }
else if (nodeName.equalsIgnoreCase("supp_item_dtl")) else if (nodeName.equalsIgnoreCase("supp_item_dtl"))
{ {
...@@ -544,6 +659,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -544,6 +659,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
{ {
supp_item_dtl = checkNullAndTrim(childNode.getFirstChild().getNodeValue()); supp_item_dtl = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
} }
else
{
supp_item_dtl = "";
}
} }
else if (nodeName.equalsIgnoreCase("price_list_dtl")) else if (nodeName.equalsIgnoreCase("price_list_dtl"))
{ {
...@@ -551,6 +670,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -551,6 +670,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
{ {
price_list_dtl = checkNullAndTrim(childNode.getFirstChild().getNodeValue()); price_list_dtl = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
} }
else
{
price_list_dtl = "";
}
} }
else if (nodeName.equalsIgnoreCase("language_dtl")) else if (nodeName.equalsIgnoreCase("language_dtl"))
{ {
...@@ -558,6 +681,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -558,6 +681,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
{ {
language_dtl = checkNullAndTrim(childNode.getFirstChild().getNodeValue()); language_dtl = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
} }
else
{
language_dtl = "";
}
} }
else if (nodeName.equalsIgnoreCase("tax")) else if (nodeName.equalsIgnoreCase("tax"))
{ {
...@@ -572,6 +699,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -572,6 +699,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
{ {
categoryId = checkNullAndTrim(childNode.getFirstChild().getNodeValue()); categoryId = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
} }
else
{
categoryId = "";
}
} }
else if (nodeName.equalsIgnoreCase("size_codes")) else if (nodeName.equalsIgnoreCase("size_codes"))
{ {
...@@ -579,6 +710,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -579,6 +710,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
{ {
size_codes = checkNullAndTrim(childNode.getFirstChild().getNodeValue()); size_codes = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
} }
else
{
size_codes = "";
}
} }
else if (nodeName.equalsIgnoreCase("loc_type")) else if (nodeName.equalsIgnoreCase("loc_type"))
{ {
...@@ -614,6 +749,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -614,6 +749,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
{ {
item_commodity = checkNullAndTrim(childNode.getFirstChild().getNodeValue()); item_commodity = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
} }
else
{
item_commodity = "";
}
} }
//Changed by Samadhan for brand,limited edition purchase stop start //Changed by Samadhan for brand,limited edition purchase stop start
else if (nodeName.equalsIgnoreCase("usage_type")) else if (nodeName.equalsIgnoreCase("usage_type"))
...@@ -622,6 +761,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -622,6 +761,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
{ {
ltdEdition = checkNullAndTrim(childNode.getFirstChild().getNodeValue()); ltdEdition = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
} }
else
{
ltdEdition = "";
}
} }
else if (nodeName.equalsIgnoreCase("catalog_no")) else if (nodeName.equalsIgnoreCase("catalog_no"))
{ {
...@@ -629,6 +772,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz ...@@ -629,6 +772,10 @@ public class DDProductWizEditPosEJB extends ValidatorEJB implements DDProductWiz
{ {
stopPurchase = checkNullAndTrim(childNode.getFirstChild().getNodeValue()); stopPurchase = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
} }
else
{
stopPurchase = "";
}
} }
//Changed by Samadhan for brand,limited edition purchase stop end //Changed by Samadhan for brand,limited edition purchase stop end
} }
......
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