Commit f7e59a4b authored by pshinde's avatar pshinde

Source code for post save for Period Table Generation


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@100079 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 13f0f5d0
...@@ -205,8 +205,8 @@ public class PrdTableGenPostSave extends ValidatorEJB implements PrdTableGenPost ...@@ -205,8 +205,8 @@ public class PrdTableGenPostSave extends ValidatorEJB implements PrdTableGenPost
if(cnt==0) if(cnt==0)
{ {
System.out.println("New Exist@@@@@@@"); System.out.println("New Exist@@@@@@@");
sql="Insert into period_tbl (PRD_CODE,PRD_TBLNO,FR_DATE,TO_DATE,PRD_CLOSED,CHG_DATE,CHG_USER,CHG_TERM) " + sql="Insert into period_tbl (PRD_CODE,PRD_TBLNO,FR_DATE,TO_DATE,PRD_CLOSED,CHG_DATE,CHG_USER,CHG_TERM,ADD_DATE,ADD_USER,ADD_TERM) " +
"values (?,?,?,?,?,?,?,?)"; "values (?,?,?,?,?,?,?,?,?,?,?)";
System.out.println("header sql :"+sql); System.out.println("header sql :"+sql);
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1,prdCode); pstmt.setString(1,prdCode);
...@@ -216,7 +216,10 @@ public class PrdTableGenPostSave extends ValidatorEJB implements PrdTableGenPost ...@@ -216,7 +216,10 @@ public class PrdTableGenPostSave extends ValidatorEJB implements PrdTableGenPost
pstmt.setString(5,prdClose); pstmt.setString(5,prdClose);
pstmt.setTimestamp(6,currDate); pstmt.setTimestamp(6,currDate);
pstmt.setString(7,chgUser); pstmt.setString(7,chgUser);
pstmt.setString(8,chgTerm); pstmt.setString(8,chgTerm);
pstmt.setTimestamp(9,currDate);
pstmt.setString(10,chgUser);
pstmt.setString(11,chgTerm);
detCnt = pstmt.executeUpdate(); detCnt = pstmt.executeUpdate();
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
......
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