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
if(cnt==0)
{
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) " +
"values (?,?,?,?,?,?,?,?)";
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 (?,?,?,?,?,?,?,?,?,?,?)";
System.out.println("header sql :"+sql);
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,prdCode);
......@@ -217,6 +217,9 @@ public class PrdTableGenPostSave extends ValidatorEJB implements PrdTableGenPost
pstmt.setTimestamp(6,currDate);
pstmt.setString(7,chgUser);
pstmt.setString(8,chgTerm);
pstmt.setTimestamp(9,currDate);
pstmt.setString(10,chgUser);
pstmt.setString(11,chgTerm);
detCnt = pstmt.executeUpdate();
pstmt.close();
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