Commit 27f0292d authored by caluka's avatar caluka

changes done for suppler portal field level attachment extra required fields added


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98751 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 37969283
...@@ -237,7 +237,7 @@ public class SuppInfoUpdIC extends ValidatorEJB implements SuppInfoUpdICLocal, S ...@@ -237,7 +237,7 @@ public class SuppInfoUpdIC extends ValidatorEJB implements SuppInfoUpdICLocal, S
Document dom = null; Document dom = null;
Document dom1 = null; Document dom1 = null;
Document dom2 = null; Document dom2 = null;
System.out.println("itemChanged() called for SuppInfoAmdIC"); System.out.println("itemChanged() called for SuppInfoAmdIC ...editFlag["+editFlag+"]");
String valueXmlString = ""; String valueXmlString = "";
try try
{ {
...@@ -295,8 +295,8 @@ public class SuppInfoUpdIC extends ValidatorEJB implements SuppInfoUpdICLocal, S ...@@ -295,8 +295,8 @@ public class SuppInfoUpdIC extends ValidatorEJB implements SuppInfoUpdICLocal, S
String contactPurcO="",contactPurc="",altAddr1O="",altAddr1="",altAddr2O="",altAddr2="",altAddr3O="",altAddr3=""; String contactPurcO="",contactPurc="",altAddr1O="",altAddr1="",altAddr2O="",altAddr2="",altAddr3O="",altAddr3="";
String altCityO="",altCity="",stateCodeAltO="",stateCodeAlt="",altPinO="", altPin="",altTele1O="",altTele1=""; String altCityO="",altCity="",stateCodeAltO="",stateCodeAlt="",altPinO="", altPin="",altTele1O="",altTele1="";
String faxO="",fax="",emailAddrO="",emailAddr="",eccNoO="",eccNo="",cstNoO="",cstNo="",ssiO="",ssi="",tele2O="",tele2=""; String faxO="",fax="",emailAddrO="",emailAddr="",eccNoO="",eccNo="",cstNoO="",cstNo="",ssiO="",ssi="",tele2O="",tele2="";
String pfNoO="", pfNo="", emailPurcO="", emailPurc="", taxRegStO="", taxRegSt=""; String pfNoO="", pfNo="", emailPurcO="", emailPurc="", taxRegStO="", taxRegSt="", tranDateStr="", statusDateStr="",addDateStr="",chgDateLastStr="";
String countryCodeAltO="",countryCodeAlt="";
Timestamp chgDateLast=null; Timestamp chgDateLast=null;
String chgUserLast="",chgTermLast=""; String chgUserLast="",chgTermLast="";
...@@ -329,6 +329,8 @@ public class SuppInfoUpdIC extends ValidatorEJB implements SuppInfoUpdICLocal, S ...@@ -329,6 +329,8 @@ public class SuppInfoUpdIC extends ValidatorEJB implements SuppInfoUpdICLocal, S
newsysDate = java.sql.Timestamp.valueOf(sdf1.format(date1).toString() + " 00:00:00.0"); newsysDate = java.sql.Timestamp.valueOf(sdf1.format(date1).toString() + " 00:00:00.0");
System.out.println("newsysDate["+newsysDate+"]"); System.out.println("newsysDate["+newsysDate+"]");
//SimpleDateFormat sdfApp= new SimpleDateFormat(genericUtility.getApplDateFormat());
conn = connDriver.getConnectDB("DriverITM"); conn = connDriver.getConnectDB("DriverITM");
conn.setAutoCommit(false); conn.setAutoCommit(false);
...@@ -339,8 +341,8 @@ public class SuppInfoUpdIC extends ValidatorEJB implements SuppInfoUpdICLocal, S ...@@ -339,8 +341,8 @@ public class SuppInfoUpdIC extends ValidatorEJB implements SuppInfoUpdICLocal, S
currentFormNo = Integer.parseInt(objContext.trim()); currentFormNo = Integer.parseInt(objContext.trim());
} }
valueXmlString = new StringBuffer("<?xml version = \"1.0\"?> <Root> <header> <editFlag>"); valueXmlString = new StringBuffer("<?xml version = \"1.0\"?> <Root> <header> <editFlag>E</editFlag> </header>");
valueXmlString.append(editFlag).append("</editFlag> </header>"); //valueXmlString.append(editFlag).append("</editFlag> </header>");
System.out.println("**********ITEMCHANGE FOR CASE"+currentFormNo+"**************"); System.out.println("**********ITEMCHANGE FOR CASE"+currentFormNo+"**************");
switch(currentFormNo) switch(currentFormNo)
...@@ -351,6 +353,8 @@ public class SuppInfoUpdIC extends ValidatorEJB implements SuppInfoUpdICLocal, S ...@@ -351,6 +353,8 @@ public class SuppInfoUpdIC extends ValidatorEJB implements SuppInfoUpdICLocal, S
childNodeList = parentNode.getChildNodes(); childNodeList = parentNode.getChildNodes();
ctr = 0; ctr = 0;
valueXmlString.append("<Detail1>"); valueXmlString.append("<Detail1>");
//valueXmlString.append("<Detail1 dbID='"+""+"' domID='"+1+"' objContext='"+1+"' objName='"+"supp_info_upd"+"'><attribute pkNames='"+""+"' selected='"+"N"+"' status='"+"N"+"' updateFlag='"+"E"+"'/>");
int childNodeListLength = childNodeList.getLength(); int childNodeListLength = childNodeList.getLength();
/* /*
* do * do
...@@ -370,17 +374,68 @@ public class SuppInfoUpdIC extends ValidatorEJB implements SuppInfoUpdICLocal, S ...@@ -370,17 +374,68 @@ public class SuppInfoUpdIC extends ValidatorEJB implements SuppInfoUpdICLocal, S
*/ */
System.out.println("[" + currentColumn + "] ==> '" + columnValue + "'"); System.out.println("[" + currentColumn + "] ==> '" + columnValue + "'");
//if(currentColumn.trim().equalsIgnoreCase("itm_default") || currentColumn.trim().equalsIgnoreCase("itm_defaultedit"))
if(currentColumn.trim().equalsIgnoreCase("itm_default")) if(currentColumn.trim().equalsIgnoreCase("itm_default"))
{ {
System.out.println("@@@@@@@@ itm_default called @@@@@@@@"); System.out.println("@@@@@@@@ "+currentColumn+" called @@@@@@@@");
}
else if(currentColumn.trim().equalsIgnoreCase("itm_defaultedit"))
{ //start
System.out.println("@@@@@@@@ itm_defaultedit called @@@@@@@@"); /*
Timestamp sysDate1= null, tranDate1= null;
sql = "select sysdate from dual ";
pstmt = conn.prepareStatement(sql);
rs = pstmt.executeQuery();
if(rs.next())
{
sysDate1 = rs.getTimestamp(1);
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
System.out.print("========>::sysDate1["+sysDate1+"]");
sql = "select tran_date from supp_amd ";
pstmt = conn.prepareStatement(sql);
rs = pstmt.executeQuery();
if(rs.next())
{
tranDate1 = rs.getTimestamp(1);
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
System.out.print("========>::tranDate1["+tranDate1+"]");
if( sysDate1.after(tranDate1))
{
System.out.println("sysDate1 Greater");
}
else
{
System.out.println("trnaDate1 Greater");
}
*/
/*
o/p :
BasePreparedStatement Sql [select sysdate from dual]
10:27:45,703 INFO [STDOUT] ========>::sysDate1[2015-09-25 11:11:51.0]
10:27:45,703 INFO [STDOUT] BasePreparedStatement Sql [select tran_date from supp_amd]
10:27:45,706 INFO [STDOUT] ========>::tranDate1[2015-09-14 00:00:00.0]
10:27:45,706 INFO [STDOUT] sysDate1 Greater
*/
//end
// chgTerm = getValueFromXTRA_PARAMS(xtraParams,"chgTerm"); // chgTerm = getValueFromXTRA_PARAMS(xtraParams,"chgTerm");
// chgUser = getValueFromXTRA_PARAMS(xtraParams,"chgUser"); // chgUser = getValueFromXTRA_PARAMS(xtraParams,"chgUser");
...@@ -548,23 +603,70 @@ public class SuppInfoUpdIC extends ValidatorEJB implements SuppInfoUpdICLocal, S ...@@ -548,23 +603,70 @@ public class SuppInfoUpdIC extends ValidatorEJB implements SuppInfoUpdICLocal, S
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
if(stateCodeAltO!= null && stateCodeAltO.trim().length()>0)
{
sql = "select count_code from state where state_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, stateCodeAltO);
rs = pstmt.executeQuery();
if (rs.next())
{
countryCodeAltO = checkNull(rs.getString("count_code"));
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
}
if(stateCodeAlt!= null && stateCodeAlt.trim().length()>0)
{
sql = "select count_code from state where state_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, stateCodeAlt);
rs = pstmt.executeQuery();
if (rs.next())
{
countryCodeAlt = checkNull(rs.getString("count_code"));
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
}
if("O".equalsIgnoreCase(wfStatus)) if("O".equalsIgnoreCase(wfStatus))
{ {
System.out.println("tranDate["+tranDate+"]statusDate["+statusDate+"]"); System.out.println("tranDate["+tranDate+"]statusDate["+statusDate+"]");
String tranDateStr = genericUtility.getValidDateTimeString(tranDate,genericUtility.getApplDateFormat());
System.out.println("@@@@@@@@@@@@@ statusDateStr["+tranDateStr+"]");
String statusDateStr = genericUtility.getValidDateTimeString(statusDate,genericUtility.getApplDateFormat()); if(tranDate!=null)
{
tranDateStr = sdf.format(tranDate).toString();
System.out.println(">>>>>Check tranDateStr:"+tranDateStr);
}
//String tranDateStr = genericUtility.getValidDateTimeString(tranDate,genericUtility.getApplDateFormat());
System.out.println("@@@@@@@@@@@@@ statusDateStr["+tranDateStr+"]");
if(statusDate!=null)
{
statusDateStr = sdf.format(statusDate).toString();
System.out.println(">>>>>Check statusDateStr:"+statusDateStr);
}
//String statusDateStr = genericUtility.getValidDateTimeString(statusDate,genericUtility.getApplDateFormat());
System.out.println("@@@@@@@@@@@@@ statusDateStr["+statusDateStr+"]"); System.out.println("@@@@@@@@@@@@@ statusDateStr["+statusDateStr+"]");
String addDateStr = genericUtility.getValidDateTimeString(statusDate,genericUtility.getApplDateFormat()); if(statusDate!=null)
{
addDateStr = sdf.format(statusDate).toString();
System.out.println(">>>>>Check addDateStr:"+addDateStr);
}
//String addDateStr = genericUtility.getValidDateTimeString(statusDate,genericUtility.getApplDateFormat());
System.out.println("@@@@@@@@@@@@@ addDateStr["+addDateStr+"]"); System.out.println("@@@@@@@@@@@@@ addDateStr["+addDateStr+"]");
//valueXmlString.append("<attribute selected=\"N\" updateFlag=\"E\" status=\"O\" pkNames=\"\" />\r\n");//Change by chandrashekar 0n 7-Oct-2015
valueXmlString.append("<tran_id protect = \"1\" >").append("<![CDATA["+tranId+"]]>").append("</tran_id>"); valueXmlString.append("<tran_id protect = \"1\" >").append("<![CDATA["+tranId+"]]>").append("</tran_id>");
valueXmlString.append("<tran_date protect = \"1\" >").append("<![CDATA["+tranDateStr+"]]>").append("</tran_date>"); valueXmlString.append("<tran_date protect = \"1\" >").append("<![CDATA["+tranDateStr+"]]>").append("</tran_date>");
valueXmlString.append("<supp_code protect = \"1\" >").append("<![CDATA["+suppCode+"]]>").append("</supp_code>"); valueXmlString.append("<supp_code protect = \"1\" >").append("<![CDATA["+suppCode+"]]>").append("</supp_code>");
valueXmlString.append("<supp_name protect = \"1\" >").append("<![CDATA["+setDescription("supp_name", "supplier", "supp_code", suppCode, conn)+"]]>").append("</supp_name>");
valueXmlString.append("<chq_name protect = \"0\" >").append("<![CDATA["+chqName+"]]>").append("</chq_name>"); valueXmlString.append("<chq_name protect = \"0\" >").append("<![CDATA["+chqName+"]]>").append("</chq_name>");
valueXmlString.append("<chq_name_o protect = \"1\" >").append("<![CDATA["+chqNameO+"]]>").append("</chq_name_o>"); valueXmlString.append("<chq_name_o protect = \"1\" >").append("<![CDATA["+chqNameO+"]]>").append("</chq_name_o>");
...@@ -647,6 +749,8 @@ public class SuppInfoUpdIC extends ValidatorEJB implements SuppInfoUpdICLocal, S ...@@ -647,6 +749,8 @@ public class SuppInfoUpdIC extends ValidatorEJB implements SuppInfoUpdICLocal, S
valueXmlString.append("<tax_reg_st protect = \"0\" >").append("<![CDATA["+taxRegSt+"]]>").append("</tax_reg_st>"); valueXmlString.append("<tax_reg_st protect = \"0\" >").append("<![CDATA["+taxRegSt+"]]>").append("</tax_reg_st>");
valueXmlString.append("<tax_reg_st_o protect = \"1\" >").append("<![CDATA["+taxRegStO+"]]>").append("</tax_reg_st_o>"); valueXmlString.append("<tax_reg_st_o protect = \"1\" >").append("<![CDATA["+taxRegStO+"]]>").append("</tax_reg_st_o>");
valueXmlString.append("<count_code protect = \"1\" >").append("<![CDATA["+countryCodeAltO+"]]>").append("</count_code>");
valueXmlString.append("<count_code_1 protect = \"1\" >").append("<![CDATA["+countryCodeAlt+"]]>").append("</count_code_1>");
...@@ -655,23 +759,44 @@ public class SuppInfoUpdIC extends ValidatorEJB implements SuppInfoUpdICLocal, S ...@@ -655,23 +759,44 @@ public class SuppInfoUpdIC extends ValidatorEJB implements SuppInfoUpdICLocal, S
{ {
System.out.println("tranDate["+tranDate+"]statusDate["+statusDate+"]addDate["+addDate+"]chgDateLast["+chgDateLast+"]"); System.out.println("tranDate["+tranDate+"]statusDate["+statusDate+"]addDate["+addDate+"]chgDateLast["+chgDateLast+"]");
String tranDateStr = genericUtility.getValidDateTimeString(tranDate,genericUtility.getApplDateFormat()); if(tranDate!=null)
{
tranDateStr = sdf.format(tranDate).toString();
System.out.println(">>>>>Check shitDateApp:"+tranDateStr);
}
//tranDateStr = genericUtility.getValidDateTimeString(tranDate,genericUtility.getApplDateFormat());
System.out.println("@@@@@@@@@@@@@ statusDateStr["+tranDateStr+"]"); System.out.println("@@@@@@@@@@@@@ statusDateStr["+tranDateStr+"]");
String statusDateStr = genericUtility.getValidDateTimeString(statusDate,genericUtility.getApplDateFormat()); if(statusDate!=null)
{
statusDateStr = sdf.format(statusDate).toString();
System.out.println(">>>>>Check statusDateStr:"+statusDateStr);
}
//String statusDateStr = genericUtility.getValidDateTimeString(statusDate,genericUtility.getApplDateFormat());
System.out.println("@@@@@@@@@@@@@ statusDateStr["+statusDateStr+"]"); System.out.println("@@@@@@@@@@@@@ statusDateStr["+statusDateStr+"]");
String addDateStr = genericUtility.getValidDateTimeString(addDate,genericUtility.getApplDateFormat()); if(statusDate!=null)
{
addDateStr = sdf.format(statusDate).toString();
System.out.println(">>>>>Check addDateStr:"+addDateStr);
}
//String addDateStr = genericUtility.getValidDateTimeString(addDate,genericUtility.getApplDateFormat());
System.out.println("@@@@@@@@@@@@@ addDateStr["+addDateStr+"]"); System.out.println("@@@@@@@@@@@@@ addDateStr["+addDateStr+"]");
String chgDateLastStr = genericUtility.getValidDateTimeString( chgDateLast ,genericUtility.getApplDateFormat()); if(chgDateLast!=null)
{
chgDateLastStr = sdf.format(chgDateLast).toString();
System.out.println(">>>>>Check chgDateLastStr:"+chgDateLastStr);
}
//String chgDateLastStr = genericUtility.getValidDateTimeString( chgDateLast ,genericUtility.getApplDateFormat());
System.out.println("@@@@@@@@@@@@@ chgDateLastStr["+chgDateLastStr+"]"); System.out.println("@@@@@@@@@@@@@ chgDateLastStr["+chgDateLastStr+"]");
valueXmlString.append("<tran_id protect = \"1\" >").append("<![CDATA["+tranId+"]]>").append("</tran_id>"); valueXmlString.append("<tran_id protect = \"1\" >").append("<![CDATA["+tranId+"]]>").append("</tran_id>");
valueXmlString.append("<tran_date protect = \"1\" >").append("<![CDATA["+tranDateStr+"]]>").append("</tran_date>"); valueXmlString.append("<tran_date protect = \"1\" >").append("<![CDATA["+tranDateStr+"]]>").append("</tran_date>");
valueXmlString.append("<supp_code protect = \"1\" >").append("<![CDATA["+suppCode+"]]>").append("</supp_code>"); valueXmlString.append("<supp_code protect = \"1\" >").append("<![CDATA["+suppCode+"]]>").append("</supp_code>");
valueXmlString.append("<supp_name protect = \"1\" >").append("<![CDATA["+setDescription("supp_name", "supplier", "supp_code", suppCode, conn)+"]]>").append("</supp_name>");
valueXmlString.append("<chq_name protect = \"1\" >").append("<![CDATA["+chqName+"]]>").append("</chq_name>"); valueXmlString.append("<chq_name protect = \"1\" >").append("<![CDATA["+chqName+"]]>").append("</chq_name>");
valueXmlString.append("<chq_name_o protect = \"1\" >").append("<![CDATA["+chqNameO+"]]>").append("</chq_name_o>"); valueXmlString.append("<chq_name_o protect = \"1\" >").append("<![CDATA["+chqNameO+"]]>").append("</chq_name_o>");
...@@ -755,7 +880,8 @@ public class SuppInfoUpdIC extends ValidatorEJB implements SuppInfoUpdICLocal, S ...@@ -755,7 +880,8 @@ public class SuppInfoUpdIC extends ValidatorEJB implements SuppInfoUpdICLocal, S
valueXmlString.append("<tax_reg_st protect = \"1\" >").append("<![CDATA["+taxRegSt+"]]>").append("</tax_reg_st>"); valueXmlString.append("<tax_reg_st protect = \"1\" >").append("<![CDATA["+taxRegSt+"]]>").append("</tax_reg_st>");
valueXmlString.append("<tax_reg_st_o protect = \"1\" >").append("<![CDATA["+taxRegStO+"]]>").append("</tax_reg_st_o>"); valueXmlString.append("<tax_reg_st_o protect = \"1\" >").append("<![CDATA["+taxRegStO+"]]>").append("</tax_reg_st_o>");
valueXmlString.append("<count_code protect = \"1\" >").append("<![CDATA["+countryCodeAltO+"]]>").append("</count_code>");
valueXmlString.append("<count_code_1 protect = \"1\" >").append("<![CDATA["+countryCodeAlt+"]]>").append("</count_code_1>");
} }
} }
else else
...@@ -765,7 +891,7 @@ public class SuppInfoUpdIC extends ValidatorEJB implements SuppInfoUpdICLocal, S ...@@ -765,7 +891,7 @@ public class SuppInfoUpdIC extends ValidatorEJB implements SuppInfoUpdICLocal, S
suppCode = genericUtility.getValueFromXTRA_PARAMS( xtraParams, "entityCode" ); suppCode = genericUtility.getValueFromXTRA_PARAMS( xtraParams, "entityCode" );
System.out.println("@@@@@@@@@ suppCode["+suppCode+"].. new recode for supp amd...."); System.out.println("@@@@@@@@@ suppCode["+suppCode+"].. new recode for supp amd....");
String keyString="",keyCol="",tranSer1=""; /*String keyString="",keyCol="",tranSer1="";
sql = "SELECT KEY_STRING, TRAN_ID_COL, REF_SER FROM TRANSETUP WHERE lower(TRAN_WINDOW) = 'w_supp_info_upd' "; sql = "SELECT KEY_STRING, TRAN_ID_COL, REF_SER FROM TRANSETUP WHERE lower(TRAN_WINDOW) = 'w_supp_info_upd' ";
System.out.println("keyStringQuery--------->>"+sql); System.out.println("keyStringQuery--------->>"+sql);
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
...@@ -785,7 +911,7 @@ public class SuppInfoUpdIC extends ValidatorEJB implements SuppInfoUpdICLocal, S ...@@ -785,7 +911,7 @@ public class SuppInfoUpdIC extends ValidatorEJB implements SuppInfoUpdICLocal, S
System.out.println("keyCol :"+ keyCol); System.out.println("keyCol :"+ keyCol);
System.out.println("tranSer1 :"+ tranSer1); System.out.println("tranSer1 :"+ tranSer1);
String xmlValues = ""; String xmlValues = "";
String tranDateStr = getCurrdateAppFormat(); tranDateStr = getCurrdateAppFormat();
xmlValues ="<?xml version=\"1.0\" encoding=\"utf-8\"?><Root>"; xmlValues ="<?xml version=\"1.0\" encoding=\"utf-8\"?><Root>";
xmlValues = xmlValues + "<Header></Header>"; xmlValues = xmlValues + "<Header></Header>";
xmlValues = xmlValues + "<Detail1>"; xmlValues = xmlValues + "<Detail1>";
...@@ -796,7 +922,7 @@ public class SuppInfoUpdIC extends ValidatorEJB implements SuppInfoUpdICLocal, S ...@@ -796,7 +922,7 @@ public class SuppInfoUpdIC extends ValidatorEJB implements SuppInfoUpdICLocal, S
System.out.println("xmlValues :["+xmlValues+"]"); System.out.println("xmlValues :["+xmlValues+"]");
TransIDGenerator tg = new TransIDGenerator(xmlValues, "BASE", commonConstants.DB_NAME); TransIDGenerator tg = new TransIDGenerator(xmlValues, "BASE", commonConstants.DB_NAME);
tranId = tg.generateTranSeqID(tranSer1, keyCol, keyString, conn); tranId = tg.generateTranSeqID(tranSer1, keyCol, keyString, conn);
System.out.println("@@@@ generated tranId :["+tranId+"]"); System.out.println("@@@@ generated tranId :["+tranId+"]");*/
sql = " select supp_code, chq_name, tele1,pan_no,excise_ref,ser_tax_reg,tax_reg ," + sql = " select supp_code, chq_name, tele1,pan_no,excise_ref,ser_tax_reg,tax_reg ," +
" CONTACT_PURC, ALT_ADDR1, ALT_ADDR2," + // added for new changes by cpatil on 27/08/2015 " CONTACT_PURC, ALT_ADDR1, ALT_ADDR2," + // added for new changes by cpatil on 27/08/2015
...@@ -840,9 +966,23 @@ public class SuppInfoUpdIC extends ValidatorEJB implements SuppInfoUpdICLocal, S ...@@ -840,9 +966,23 @@ public class SuppInfoUpdIC extends ValidatorEJB implements SuppInfoUpdICLocal, S
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
if(stateCodeAlt!= null && stateCodeAlt.trim().length()>0)
{
sql = "select count_code from state where state_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, stateCodeAlt);
rs = pstmt.executeQuery();
if (rs.next())
{
countryCodeAlt = checkNull(rs.getString("count_code"));
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
}
sql = " insert into supp_amd ( tran_id, supp_code , chq_name_o,chq_name, tele1_o," + /*sql = " insert into supp_amd ( tran_id, supp_code , chq_name_o,chq_name, tele1_o," +
" tele1, pan_no_o, pan_no, excise_ref_o, excise_ref, " + " tele1, pan_no_o, pan_no, excise_ref_o, excise_ref, " +
" ser_tax_reg_o, ser_tax_reg, tax_reg_o, tax_reg, wf_status, " + " ser_tax_reg_o, ser_tax_reg, tax_reg_o, tax_reg, wf_status, " +
" CONTACT_PURC_O, CONTACT_PURC, ALT_ADDR1_O, ALT_ADDR1, ALT_ADDR2_O," + // added for new changes by cpatil on 27/08/2015 " CONTACT_PURC_O, CONTACT_PURC, ALT_ADDR1_O, ALT_ADDR1, ALT_ADDR2_O," + // added for new changes by cpatil on 27/08/2015
...@@ -939,13 +1079,14 @@ public class SuppInfoUpdIC extends ValidatorEJB implements SuppInfoUpdICLocal, S ...@@ -939,13 +1079,14 @@ public class SuppInfoUpdIC extends ValidatorEJB implements SuppInfoUpdICLocal, S
System.out.println("@@@@@@ rec inserted ["+cnt+"]conn.commit()"); System.out.println("@@@@@@ rec inserted ["+cnt+"]conn.commit()");
conn.commit(); conn.commit();
} }*/
valueXmlString.append("<tran_id protect = \"1\" >").append("<![CDATA["+tranId+"]]>").append("</tran_id>"); valueXmlString.append("<tran_id protect = \"1\" >").append("<![CDATA[]]>").append("</tran_id>");
valueXmlString.append("<tran_date protect = \"1\" >").append("<![CDATA["+sysDate+"]]>").append("</tran_date>"); valueXmlString.append("<tran_date protect = \"1\" >").append("<![CDATA["+sysDate+"]]>").append("</tran_date>");
valueXmlString.append("<supp_code protect = \"1\" >").append("<![CDATA["+suppCode+"]]>").append("</supp_code>"); valueXmlString.append("<supp_code protect = \"1\" >").append("<![CDATA["+suppCode+"]]>").append("</supp_code>");
valueXmlString.append("<supp_name protect = \"1\" >").append("<![CDATA["+setDescription("supp_name", "supplier", "supp_code", suppCode, conn)+"]]>").append("</supp_name>");
valueXmlString.append("<chq_name protect = \"0\" >").append("<![CDATA["+chqName+"]]>").append("</chq_name>"); valueXmlString.append("<chq_name protect = \"0\" >").append("<![CDATA["+chqName+"]]>").append("</chq_name>");
valueXmlString.append("<chq_name_o protect = \"1\" >").append("<![CDATA["+chqName+"]]>").append("</chq_name_o>"); valueXmlString.append("<chq_name_o protect = \"1\" >").append("<![CDATA["+chqName+"]]>").append("</chq_name_o>");
...@@ -1028,9 +1169,32 @@ public class SuppInfoUpdIC extends ValidatorEJB implements SuppInfoUpdICLocal, S ...@@ -1028,9 +1169,32 @@ public class SuppInfoUpdIC extends ValidatorEJB implements SuppInfoUpdICLocal, S
valueXmlString.append("<tax_reg_st protect = \"0\" >").append("<![CDATA["+taxRegSt+"]]>").append("</tax_reg_st>"); valueXmlString.append("<tax_reg_st protect = \"0\" >").append("<![CDATA["+taxRegSt+"]]>").append("</tax_reg_st>");
valueXmlString.append("<tax_reg_st_o protect = \"1\" >").append("<![CDATA["+taxRegSt+"]]>").append("</tax_reg_st_o>"); valueXmlString.append("<tax_reg_st_o protect = \"1\" >").append("<![CDATA["+taxRegSt+"]]>").append("</tax_reg_st_o>");
valueXmlString.append("<count_code protect = \"1\" >").append("<![CDATA["+countryCodeAlt+"]]>").append("</count_code>");
valueXmlString.append("<count_code_1 protect = \"1\" >").append("<![CDATA["+countryCodeAlt+"]]>").append("</count_code_1>");
}
}else if(currentColumn.trim().equalsIgnoreCase("state_code__alt"))
{
System.out.println("call state_code__alt item change");
stateCodeAlt = checkNull(genericUtility.getColumnValue("state_code__alt",dom2));
System.out.println("stateCodeAlt>>>>>>>>>"+stateCodeAlt);
if(stateCodeAlt!= null && stateCodeAlt.trim().length()>0)
{
sql = "select count_code from state where state_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, stateCodeAlt);
rs = pstmt.executeQuery();
if (rs.next())
{
countryCodeAlt = checkNull(rs.getString("count_code"));
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
} }
valueXmlString.append("<count_code_1 protect = \"1\" >").append("<![CDATA["+countryCodeAlt+"]]>").append("</count_code_1>");
} }
// case 1 end // case 1 end
valueXmlString.append("</Detail1>"); valueXmlString.append("</Detail1>");
......
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