Commit d012ff4f authored by mmhatre's avatar mmhatre

Get site code from dom

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@213723 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 6d9c75e1
......@@ -250,8 +250,8 @@ public class SiteItemIC extends ValidatorEJB implements SiteItemICLocal, SiteIte
}
} else if (childNodeName.equalsIgnoreCase("emp_code__pln")) {
empCodePln = checkNull(genericUtility.getColumnValue("emp_code__pln", dom));
// siteCode = genericUtility.getColumnValue("site_code", dom);
siteCode = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode"));
siteCode = genericUtility.getColumnValue("site_code", dom); //added by manish mhatre on 18-dec-2019
// siteCode = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode")); //commented by manish mhatre on 18-dec-2019
if (empCodePln != null && empCodePln.trim().length() > 0) {
// Comment By Nasruddin Start 20-SEP-16
/*
......@@ -272,7 +272,8 @@ public class SiteItemIC extends ValidatorEJB implements SiteItemICLocal, SiteIte
}
} else if (childNodeName.equalsIgnoreCase("emp_code__iapr")) {
empCodeApr = checkNull(genericUtility.getColumnValue("emp_code__iapr", dom));
siteCode = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode"));
// siteCode = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode")); //commented by manish mhatre
siteCode = genericUtility.getColumnValue("site_code", dom); //added by manish mhatre on 18-dec-2019
if (empCodeApr != null && empCodeApr.trim().length() > 0) {
/*
* Comment By Nasruddin Start 20-SEP-16 errcode =
......@@ -306,7 +307,8 @@ public class SiteItemIC extends ValidatorEJB implements SiteItemICLocal, SiteIte
*/
else if (childNodeName.equalsIgnoreCase("supp_code__pref")) {
supplierCodePref = checkNull(genericUtility.getColumnValue("supp_code__pref", dom));
siteCode = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode"));
// siteCode = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode")); //commented by manish mhatre
siteCode = genericUtility.getColumnValue("site_code", dom); //added by manish mhatre on 18-dec-2019
if (supplierCodePref != null && supplierCodePref.length() > 0) {
// errcode = nvo_dis.gbf_supplier(mval1,mval,transer)
sql = "select var_value from disparm where prd_code = '999999' and var_name = 'SITE_SPECIFIC_SUPP'";
......@@ -435,7 +437,8 @@ public class SiteItemIC extends ValidatorEJB implements SiteItemICLocal, SiteIte
} else if (childNodeName.equalsIgnoreCase("site_code__supp")) {
siteCodeSuppiler = checkNull(genericUtility.getColumnValue("site_code__supp", dom));
suppilerSour = checkNull(genericUtility.getColumnValue("supp_sour", dom));
siteCode = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode"));
// siteCode = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode")); //commented by manish mhatre
siteCode = genericUtility.getColumnValue("site_code", dom); //added by manish mhatre on 18-dec-2019
if (siteCodeSuppiler != null && siteCodeSuppiler.trim().length() > 0) {
sql = "select count(*) from site where site_code = ?";
pstmt = conn.prepareStatement(sql);
......@@ -608,8 +611,9 @@ public class SiteItemIC extends ValidatorEJB implements SiteItemICLocal, SiteIte
errFields.add(childNodeName.toLowerCase());
} else {
// siteCode = genericUtility.getColumnValue("site_code", dom).trim();
siteCode = checkNull(
genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode"));
// siteCode = checkNull(
// genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode")); //commented by manish mhatre
siteCode = genericUtility.getColumnValue("site_code", dom); //added by manish mhatre on 18-dec-2019
sql2 = "Select case when eou is null then 'N' else eou end From site Where site_code = ?";
pstmt2 = conn.prepareStatement(sql2);
pstmt2.setString(1, siteCode);
......@@ -723,7 +727,8 @@ public class SiteItemIC extends ValidatorEJB implements SiteItemICLocal, SiteIte
} else if (childNodeName.equalsIgnoreCase("loc_code__aprv")) {
locCodeAprv = checkNull(genericUtility.getColumnValue("loc_code__aprv", dom));
itemCode = checkNull(genericUtility.getColumnValue("item_code", dom));
siteCode = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode"));
// siteCode = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode")); //commented by manish mhatre
siteCode = genericUtility.getColumnValue("site_code", dom); //added by manish mhatre on 18-dec-2019
if (locCodeAprv != null && locCodeAprv.trim().length() > 0) {
// Changed By Nasruddin [21-SEP-16] STARt
// sql = "select case when available is null then 'Y' else available end from
......@@ -774,7 +779,8 @@ public class SiteItemIC extends ValidatorEJB implements SiteItemICLocal, SiteIte
} else if (childNodeName.equalsIgnoreCase("loc_code__rej")) {
locCodeRej = checkNull(genericUtility.getColumnValue("loc_code__rej", dom));
itemCode = checkNull(genericUtility.getColumnValue("item_code", dom));
siteCode = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode"));
// siteCode = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode")); //commented by manish mhatre
siteCode = genericUtility.getColumnValue("site_code", dom); //added by manish mhatre on 18-dec-2019
if (locCodeRej != null && locCodeRej.trim().length() > 0) {
// Changed By Nasruddin [21-SEP-16] STARt
// sql = "select case when available is null then 'N' else available end from
......@@ -825,7 +831,8 @@ public class SiteItemIC extends ValidatorEJB implements SiteItemICLocal, SiteIte
} else if (childNodeName.equalsIgnoreCase("loc_code__insp")) {
locCodeInsp = checkNull(genericUtility.getColumnValue("loc_code__insp", dom));
itemCode = checkNull(genericUtility.getColumnValue("item_code", dom));
siteCode = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode"));
// siteCode = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode")); //commented by manish mhatre
siteCode = genericUtility.getColumnValue("site_code", dom); //added by manish mhatre on 18-dec-2019
if (locCodeInsp != null && locCodeInsp.trim().length() > 0) {
// Changed By Nasruddin [21-SEP-16] STARt
// sql = "select (case when available is null then 'N' else available end) from
......
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