Commit 8cc3203c authored by mchaudhari's avatar mchaudhari

Done changes and deliverables


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@96138 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b94daab9
......@@ -234,6 +234,7 @@ public class DistIssDelWiz extends ValidatorEJB implements DistIssDelWizLocal, D
{
siteCode = genericUtility.getColumnValue("site_code",dom2);
lotSl = genericUtility.getColumnValue("lot_sl",dom2);
distOrderIssNo = genericUtility.getColumnValue("distord_issno",dom1);
if (lotSl == null || lotSl.trim().length() == 0)
{
......@@ -245,9 +246,10 @@ public class DistIssDelWiz extends ValidatorEJB implements DistIssDelWizLocal, D
{
//add validation here for check lot sl present in detail table
sql = "select count(1) from distord_issdet where lot_sl = ?";
sql = "select count(1) from distord_issdet where lot_sl = ? and tran_id = ?";
pstmt=conn.prepareStatement(sql);
pstmt.setString(1,lotSl);
pstmt.setString(2,distOrderIssNo);
rs = pstmt.executeQuery();
if(rs.next())
{
......
......@@ -57,7 +57,7 @@ public class DistIssDelWizPostSave extends ValidatorEJB implements DistIssDelWiz
{
System.out.println("post save dom data1 ---------------:"+dom);
String sql = "", error = "";
String lotSl="";
String lotSl="", chgTerm = "", chgUser = "";
int cnt = 0;
PreparedStatement pstmt = null;
......@@ -65,14 +65,29 @@ public class DistIssDelWizPostSave extends ValidatorEJB implements DistIssDelWiz
try
{
lotSl = GenericUtility.getInstance().getColumnValue("lot_sl",dom);
chgTerm = GenericUtility.getInstance().getValueFromXTRA_PARAMS(xtraParams, "chgTerm");
chgUser = GenericUtility.getInstance().getValueFromXTRA_PARAMS(xtraParams, "loginCode");
sql = "delete from distord_issdet where tran_id = ? and lot_sl = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
pstmt.setString(2, lotSl);
cnt = pstmt.executeUpdate();
if(pstmt != null){
pstmt.close();
pstmt = null;
}
System.out.println(">>>>>>>successfully deleted record DisIssDelWizPostSave cnt = :" + cnt);
if(cnt > 0){
sql = "update distord_iss set chg_date = sysdate, chg_user = ?, chg_term = ? where tran_id = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, chgUser);
pstmt.setString(2, chgTerm);
pstmt.setString(3, tranId);
cnt = pstmt.executeUpdate();
}
conn.commit();
}catch(Exception e)
......
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