Commit f3e27cc2 authored by ssalve's avatar ssalve

Sarita : Done changes to add throw exception get tran_date for lot_no and...

Sarita : Done changes to add throw exception get tran_date for lot_no and lot_sl itemchange on 16 OCT 2018

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@192013 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 6e021a29
......@@ -2316,6 +2316,9 @@ public class PoReturnIC extends ValidatorEJB implements PoReturnICLocal,
System.out
.println("Exception : [PoReturnIC][itemChanged( String, String )] :==>\n"
+ e.getMessage());
//Added by sarita to throw ITMException [START].
throw new ITMException(e);
//Added by sarita to throw ITMException [END]
}
return valueXmlString;
}
......@@ -3968,7 +3971,7 @@ public class PoReturnIC extends ValidatorEJB implements PoReturnICLocal,
System.out.println("mPordLine@@"+mPordLine);
ldt_trandt1 = checkNull(genericUtility.getColumnValue(
"tran_date", dom1));// add get application format
"tran_date", dom1));// add get application format
System.out.println("ldt_trandt1@@"+ldt_trandt1);
......@@ -6619,8 +6622,12 @@ public class PoReturnIC extends ValidatorEJB implements PoReturnICLocal,
"item_code", dom));
ls_site = checkNull(genericUtility.getColumnValue(
"site_code", dom1));
//Commented and added by sarita on 16 OCT 2018 as tran_date should get from dom1 [START]
/*ldt_trandtStr = checkNull(genericUtility.getColumnValue(
"tran_date", dom));*/
ldt_trandtStr = checkNull(genericUtility.getColumnValue(
"tran_date", dom));
"tran_date", dom1));
//Commented and added by sarita on 16 OCT 2018 as tran_date should get from dom1 [END]
mPordNo = checkNull(genericUtility.getColumnValue(
"purc_order", dom));
mrateStr = checkNull(genericUtility.getColumnValue("rate",
......@@ -6729,14 +6736,14 @@ public class PoReturnIC extends ValidatorEJB implements PoReturnICLocal,
if (ls_pricelist.trim().length() > 0)
{
System.out.println("ldt_trandtStr-1111-["+ldt_trandtStr+"]");
mrate = disscommon.pickRate(ls_pricelist,
ldt_trandtStr, mItem, mlotno, "B", conn);// pickRate(ls_pricelist,
// ldt_trandt,
// mItem,mlotno,"B",
// conn);//gbf_pick_rate(ls_pricelist,ldt_trandt,mitem,mlotno,'B')
System.out.println("mrate[" + mrate + "]");
}
// conn);//gbf_pick_rate(ls_pricelist,ldt_trandt,mitem,mlotno,'B')
}
valueXmlString.append("<rate>")
.append("<![CDATA[" + mrate + "]]>")
.append("</rate>");
......@@ -6832,8 +6839,12 @@ public class PoReturnIC extends ValidatorEJB implements PoReturnICLocal,
"item_code", dom));
ls_site = checkNull(genericUtility.getColumnValue(
"site_code", dom1));
//Added and commented by sarita as tran_date should come from dom1 [START]
ldt_trandtStr = checkNull(genericUtility.getColumnValue(
"tran_date", dom));
ldt_trandtStr = checkNull(genericUtility.getColumnValue(
"tran_date", dom1));
//Added and commented by sarita as tran_date should come from dom1 [END]
mPordNo = checkNull(genericUtility.getColumnValue(
"purc_order", dom));
mrateStr = checkNull(genericUtility.getColumnValue("rate",
......@@ -7053,8 +7064,12 @@ public class PoReturnIC extends ValidatorEJB implements PoReturnICLocal,
conn.close();
}
conn = null;
} catch (Exception d) {
} catch (Exception d)
{
d.printStackTrace();
//Added by sarita to throw ITMException [START]
throw new ITMException(d);
//Added by sarita to throw ITMException [END]
}
}
return valueXmlString.toString();
......@@ -7075,7 +7090,7 @@ public class PoReturnIC extends ValidatorEJB implements PoReturnICLocal,
}
private String gfgetmfgsite(String asitem, String assite, String asloc,
String aslotno, String aslotsl, String astype, Connection conn) {
String aslotno, String aslotsl, String astype, Connection conn) throws ITMException {
String lsmfgsite = "", lserrcode = "";
PreparedStatement pstmt = null, pstmt1 = null, pstmt2 = null;
ResultSet rs = null, rs1 = null, rs2 = null;
......@@ -7145,8 +7160,10 @@ public class PoReturnIC extends ValidatorEJB implements PoReturnICLocal,
pstmt.close();
pstmt = null;
System.out.println("Packing COde is" + lsmfgsite);
System.out.println("Packing COde Length is"
+ lsmfgsite.trim().length());
//Commented by sarita giving error where Packing COde is null [START]
/*System.out.println("Packing COde Length is"
+ lsmfgsite.trim().length());*/
//Commented by sarita giving error where Packing COde is null [END]
if (lsmfgsite == null || lsmfgsite.trim().length() == 0) {
sql2 = "select pack_code from item where item_code = ? ";
pstmt1 = conn.prepareStatement(sql2);
......@@ -7164,8 +7181,12 @@ public class PoReturnIC extends ValidatorEJB implements PoReturnICLocal,
}
}
} catch (Exception e) {
} catch (Exception e)
{
System.out.println("The Exception occurs in gfgetmfgsite :" + e);
//Added by sarita to throw ITMException [START]
throw new ITMException(e);
//Added by sarita to throw ITMException [END]
}
System.out.println("Packing COde || site_code :[" + lsmfgsite + "]");
return lsmfgsite;
......
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