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