Commit bbce9966 authored by vkadam's avatar vkadam

During insert in table 'gencodes' set 'active' as 'Y'


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@99893 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 1be4434a
...@@ -273,6 +273,7 @@ public class PlistGenerationConf extends ActionHandlerEJB implements PlistGenera ...@@ -273,6 +273,7 @@ public class PlistGenerationConf extends ActionHandlerEJB implements PlistGenera
xmlBuff.append("<unit><![CDATA[" + unit + "]]></unit>"); xmlBuff.append("<unit><![CDATA[" + unit + "]]></unit>");
xmlBuff.append("<eff_from><![CDATA[" + effFromStr + "]]></eff_from>"); xmlBuff.append("<eff_from><![CDATA[" + effFromStr + "]]></eff_from>");
xmlBuff.append("<valid_upto><![CDATA[" + validUptoStr + "]]></valid_upto>"); xmlBuff.append("<valid_upto><![CDATA[" + validUptoStr + "]]></valid_upto>");
xmlBuff.append("<chg_ref_no><![CDATA[" + chgReffNo + "]]></chg_ref_no>");
xmlBuff.append("</Detail2>"); xmlBuff.append("</Detail2>");
/** /**
...@@ -698,7 +699,8 @@ public class PlistGenerationConf extends ActionHandlerEJB implements PlistGenera ...@@ -698,7 +699,8 @@ public class PlistGenerationConf extends ActionHandlerEJB implements PlistGenera
rs = null; rs = null;
if (noRecords == 0) if (noRecords == 0)
{ {
sql = "insert into gencodes (fld_name, mod_name, fld_value, descr, chg_date, chg_user, chg_term) values(?,?,?,?,?,?,?)"; sql = "insert into gencodes (fld_name, mod_name, fld_value, descr, chg_date, chg_user, chg_term,active) "
+ " values(?,?,?,?,?,?,?,?)";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, "BATCH_EXEMPTED"); pstmt.setString(1, "BATCH_EXEMPTED");
pstmt.setString(2, "W_EXC_EXEMPTED"); pstmt.setString(2, "W_EXC_EXEMPTED");
...@@ -707,6 +709,7 @@ public class PlistGenerationConf extends ActionHandlerEJB implements PlistGenera ...@@ -707,6 +709,7 @@ public class PlistGenerationConf extends ActionHandlerEJB implements PlistGenera
pstmt.setTimestamp(5, systemdate); pstmt.setTimestamp(5, systemdate);
pstmt.setString(6, empCode); pstmt.setString(6, empCode);
pstmt.setString(7, termId); pstmt.setString(7, termId);
pstmt.setString(8, "Y");
insertCount = pstmt.executeUpdate(); insertCount = pstmt.executeUpdate();
pstmt.close(); pstmt.close();
......
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