Commit 20d480a0 authored by agaikwad's avatar agaikwad

Request_id-D15DSUN019

Added item change for item code column


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98396 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 9395cbb7
...@@ -94,6 +94,7 @@ public class DistOrderAmdIC extends ValidatorEJB implements DistOrderAmdICLocal ...@@ -94,6 +94,7 @@ public class DistOrderAmdIC extends ValidatorEJB implements DistOrderAmdICLocal
String sql = null; String sql = null;
ResultSet rs1 = null; ResultSet rs1 = null;
String sql1 = null; String sql1 = null;
PreparedStatement pstmt1=null;
ConnDriver connDriver = new ConnDriver(); ConnDriver connDriver = new ConnDriver();
try try
...@@ -423,7 +424,48 @@ public class DistOrderAmdIC extends ValidatorEJB implements DistOrderAmdICLocal ...@@ -423,7 +424,48 @@ public class DistOrderAmdIC extends ValidatorEJB implements DistOrderAmdICLocal
return errString; return errString;
} }
} }
// ADDED BY RITESH FOR DI3HSUP004 END // ADDED BY ABHIJIT FOR D15DSUN019 END
if ( childNodeName.equalsIgnoreCase( "item_code" ) ) // ADDED BY ABHIJIT FOR D15DSUN019
{
String lineNoOrder1 = "" ;
String distOrder1 = "";
String itemcode = "";
String itemCode = "";
itemCode = genericUtility.getColumnValue("item_code", dom);
System.out.println("Item code is:"+itemCode);
lineNoOrder1 = genericUtility.getColumnValue("line_no_distord",dom);
distOrder1 = genericUtility.getColumnValue("dist_order", dom1);
if( lineNoOrder1 != null && lineNoOrder1.length() > 0 )
{
sql = " SELECT item_code FROM distorder_det WHERE dist_order = ? and line_no = ? ";
pstmt1 = conn.prepareStatement( sql );
pstmt1.setString(1,distOrder1.trim());
pstmt1.setString(2,lineNoOrder1.trim());
System.out.println("Line no Dist Order"+lineNoOrder1);
System.out.println("Dist Order is:"+distOrder1);
rs1 = pstmt1.executeQuery();
if( rs1.next() )
{
itemcode = rs1.getString("item_code");
System.out.println("Distribution Item code is:"+itemcode);
}
rs1.close();
rs1 = null;
pstmt1.close();
pstmt1 = null;
if(!itemcode.trim().equals(itemCode.trim() ))
{
System.out.println("@@@@@@@@@ENTER LOOP@@@@@@@");
errCode = "VTINDRQ1";
errString = getErrorString( "item_code", errCode, userId );
return errString;
}
}
}
// ADDED BY ABHIJIT FOR D15DSUN019 END
}//END FOR LOOP OF CASE2 }//END FOR LOOP OF CASE2
}//END SWITCH }//END SWITCH
}//END TRY }//END TRY
...@@ -488,8 +530,8 @@ public class DistOrderAmdIC extends ValidatorEJB implements DistOrderAmdICLocal ...@@ -488,8 +530,8 @@ public class DistOrderAmdIC extends ValidatorEJB implements DistOrderAmdICLocal
{ {
Connection conn = null; Connection conn = null;
ConnDriver connDriver = new ConnDriver(); ConnDriver connDriver = new ConnDriver();
PreparedStatement vPStmt = null; PreparedStatement vPStmt = null,pstmt = null;
ResultSet vRs = null; ResultSet vRs = null , rs= null;
String sql = null; String sql = null;
int currentFormNo = 0; int currentFormNo = 0;
StringBuffer valueXmlString = new StringBuffer(); StringBuffer valueXmlString = new StringBuffer();
...@@ -502,7 +544,11 @@ public class DistOrderAmdIC extends ValidatorEJB implements DistOrderAmdICLocal ...@@ -502,7 +544,11 @@ public class DistOrderAmdIC extends ValidatorEJB implements DistOrderAmdICLocal
int childNodeListLength = 0; int childNodeListLength = 0;
int ctr = 0; int ctr = 0;
String loginSite = null; String loginSite = null;
ArrayList List = null;
DistCommon discommon = new DistCommon();
double mrate= 0, mrateclg = 0;
String taxchap="", taxclass="", taxenv="", sitecodeship = "",sitecodedlv ="",stationfr ="",stationto ="",itemser = "" ;
String itemcode1 = null;
try try
{ {
conn = connDriver.getConnectDB("DriverITM"); conn = connDriver.getConnectDB("DriverITM");
...@@ -633,6 +679,7 @@ public class DistOrderAmdIC extends ValidatorEJB implements DistOrderAmdICLocal ...@@ -633,6 +679,7 @@ public class DistOrderAmdIC extends ValidatorEJB implements DistOrderAmdICLocal
String cPin = null; String cPin = null;
String tranMode = null; String tranMode = null;
String cStateCode = null; String cStateCode = null;
double exchRate=0;
Timestamp distDateTime = null; Timestamp distDateTime = null;
Timestamp shipDateTime = null; Timestamp shipDateTime = null;
Timestamp dueDateTime = null; Timestamp dueDateTime = null;
...@@ -654,7 +701,7 @@ public class DistOrderAmdIC extends ValidatorEJB implements DistOrderAmdICLocal ...@@ -654,7 +701,7 @@ public class DistOrderAmdIC extends ValidatorEJB implements DistOrderAmdICLocal
+" DIST.PURC_ORDER,DIST.TOT_AMT,DIST.TAX_AMT,DIST.NET_AMT,DIST.TRAN_SER,DIST.PARENT__TRAN_ID, " +" DIST.PURC_ORDER,DIST.TOT_AMT,DIST.TAX_AMT,DIST.NET_AMT,DIST.TRAN_SER,DIST.PARENT__TRAN_ID, "
+" DIST.REV__TRAN,DIST.PRICE_LIST__CLG,DIST.SORD_NO,DIST.POLICY_NO,DIST.LOC_CODE__DAMAGED, " +" DIST.REV__TRAN,DIST.PRICE_LIST__CLG,DIST.SORD_NO,DIST.POLICY_NO,DIST.LOC_CODE__DAMAGED, "
+" DIST.SITE_CODE__BIL, DIST. TRANS_MODE,S3.DESCR C_DESCR,S3.ADD1 C_ADD1,S3.ADD2 C_ADD2, " +" DIST.SITE_CODE__BIL, DIST. TRANS_MODE,S3.DESCR C_DESCR,S3.ADD1 C_ADD1,S3.ADD2 C_ADD2, "
+" DIST.TRANS_MODE,S3.CITY C_CITY,S3.PIN C_PIN,S3.STATE_CODE C_STATE_CODE " +" DIST.TRANS_MODE,S3.CITY C_CITY,S3.PIN C_PIN,S3.STATE_CODE C_STATE_CODE , DIST.exch_rate "
+" FROM DISTORDER DIST,SITE S1 ,SITE S2,SITE S3 " +" FROM DISTORDER DIST,SITE S1 ,SITE S2,SITE S3 "
+" WHERE DIST.DIST_ORDER = ? " +" WHERE DIST.DIST_ORDER = ? "
+" AND DIST.SITE_CODE__SHIP = S1.SITE_CODE(+) " +" AND DIST.SITE_CODE__SHIP = S1.SITE_CODE(+) "
...@@ -678,7 +725,7 @@ public class DistOrderAmdIC extends ValidatorEJB implements DistOrderAmdICLocal ...@@ -678,7 +725,7 @@ public class DistOrderAmdIC extends ValidatorEJB implements DistOrderAmdICLocal
+" DIST.PURC_ORDER,DIST.TOT_AMT,DIST.TAX_AMT,DIST.NET_AMT,DIST.TRAN_SER,DIST.PARENT__TRAN_ID, " +" DIST.PURC_ORDER,DIST.TOT_AMT,DIST.TAX_AMT,DIST.NET_AMT,DIST.TRAN_SER,DIST.PARENT__TRAN_ID, "
+" DIST.REV__TRAN,DIST.PRICE_LIST__CLG,DIST.SORD_NO,DIST.POLICY_NO,DIST.LOC_CODE__DAMAGED, " +" DIST.REV__TRAN,DIST.PRICE_LIST__CLG,DIST.SORD_NO,DIST.POLICY_NO,DIST.LOC_CODE__DAMAGED, "
+" DIST.SITE_CODE__BIL, DIST. TRANS_MODE,S3.DESCR C_DESCR,S3.ADD1 C_ADD1,S3.ADD2 C_ADD2, " +" DIST.SITE_CODE__BIL, DIST. TRANS_MODE,S3.DESCR C_DESCR,S3.ADD1 C_ADD1,S3.ADD2 C_ADD2, "
+" DIST.TRANS_MODE,S3.CITY C_CITY,S3.PIN C_PIN,S3.STATE_CODE C_STATE_CODE " +" DIST.TRANS_MODE,S3.CITY C_CITY,S3.PIN C_PIN,S3.STATE_CODE C_STATE_CODE, DIST.exch_rate "
+" FROM DISTORDER DIST left outer join SITE S3 on DIST.SITE_CODE__BIL = S3.SITE_CODE ,SITE S1 ,SITE S2 " +" FROM DISTORDER DIST left outer join SITE S3 on DIST.SITE_CODE__BIL = S3.SITE_CODE ,SITE S1 ,SITE S2 "
+" WHERE DIST.DIST_ORDER = ? AND DIST.SITE_CODE__SHIP = S1.SITE_CODE AND DIST.SITE_CODE__DLV = S2.SITE_CODE "; +" WHERE DIST.DIST_ORDER = ? AND DIST.SITE_CODE__SHIP = S1.SITE_CODE AND DIST.SITE_CODE__DLV = S2.SITE_CODE ";
} }
...@@ -771,6 +818,7 @@ public class DistOrderAmdIC extends ValidatorEJB implements DistOrderAmdICLocal ...@@ -771,6 +818,7 @@ public class DistOrderAmdIC extends ValidatorEJB implements DistOrderAmdICLocal
cStateCode = vRs.getString( "C_STATE_CODE" ); cStateCode = vRs.getString( "C_STATE_CODE" );
sundryCode = vRs.getString( "SUNDRY_CODE" ); sundryCode = vRs.getString( "SUNDRY_CODE" );
tranMode = vRs.getString( "TRANS_MODE" ); tranMode = vRs.getString( "TRANS_MODE" );
exchRate= vRs.getDouble("exch_rate"); // // ADDED BY ABHIJIT FOR D15DSUN019
} }
vRs.close(); vRs.close();
vRs = null; vRs = null;
...@@ -865,6 +913,7 @@ public class DistOrderAmdIC extends ValidatorEJB implements DistOrderAmdICLocal ...@@ -865,6 +913,7 @@ public class DistOrderAmdIC extends ValidatorEJB implements DistOrderAmdICLocal
valueXmlString.append("<bil_pin>").append("<![CDATA[" + ( cPin != null ? cPin.trim() : "" )+ "]]>").append("</bil_pin>"); valueXmlString.append("<bil_pin>").append("<![CDATA[" + ( cPin != null ? cPin.trim() : "" )+ "]]>").append("</bil_pin>");
valueXmlString.append("<bil_state_code>").append("<![CDATA[" + ( cStateCode != null ? cStateCode.trim() : "" )+ "]]>").append("</bil_state_code>"); valueXmlString.append("<bil_state_code>").append("<![CDATA[" + ( cStateCode != null ? cStateCode.trim() : "" )+ "]]>").append("</bil_state_code>");
valueXmlString.append("<bil_site_descr>").append("<![CDATA[" + ( cDescr != null ? cDescr.trim() : "" )+ "]]>").append("</bil_site_descr>"); valueXmlString.append("<bil_site_descr>").append("<![CDATA[" + ( cDescr != null ? cDescr.trim() : "" )+ "]]>").append("</bil_site_descr>");
valueXmlString.append("<exch_rate>").append("<![CDATA["+exchRate+"]]>").append("</exch_rate>"); // ADDED BY ABHIJIT FOR D15DSUN019
} }
} }
valueXmlString.append("</Detail1>"); valueXmlString.append("</Detail1>");
...@@ -973,6 +1022,8 @@ public class DistOrderAmdIC extends ValidatorEJB implements DistOrderAmdICLocal ...@@ -973,6 +1022,8 @@ public class DistOrderAmdIC extends ValidatorEJB implements DistOrderAmdICLocal
Timestamp shipDateTime = null; Timestamp shipDateTime = null;
Timestamp allocDateTime = null; Timestamp allocDateTime = null;
String status = ""; String status = "";
String lineno1 = null;
boolean isLine = false;
lineNoOrder = genericUtility.getColumnValue( "line_no_distord", dom ); lineNoOrder = genericUtility.getColumnValue( "line_no_distord", dom );
distOrder = genericUtility.getColumnValue( "dist_order", dom1 ); distOrder = genericUtility.getColumnValue( "dist_order", dom1 );
...@@ -1074,6 +1125,8 @@ public class DistOrderAmdIC extends ValidatorEJB implements DistOrderAmdICLocal ...@@ -1074,6 +1125,8 @@ public class DistOrderAmdIC extends ValidatorEJB implements DistOrderAmdICLocal
vPStmt.close(); vPStmt.close();
vPStmt = null; vPStmt = null;
valueXmlString.append("<cust_spec__no>").append("<![CDATA[" + ( custSpecNo != null ? custSpecNo.trim() : "" )+ "]]>").append("</cust_spec__no>"); valueXmlString.append("<cust_spec__no>").append("<![CDATA[" + ( custSpecNo != null ? custSpecNo.trim() : "" )+ "]]>").append("</cust_spec__no>");
valueXmlString.append("<cust_spec__no_o>").append("<![CDATA[" + ( custSpecNo != null ? custSpecNo.trim() : "" )+ "]]>").append("</cust_spec__no_o>"); valueXmlString.append("<cust_spec__no_o>").append("<![CDATA[" + ( custSpecNo != null ? custSpecNo.trim() : "" )+ "]]>").append("</cust_spec__no_o>");
valueXmlString.append("<sale_order>").append("<![CDATA[" + ( saleOrder != null ? saleOrder.trim() : "" )+ "]]>").append("</sale_order>"); valueXmlString.append("<sale_order>").append("<![CDATA[" + ( saleOrder != null ? saleOrder.trim() : "" )+ "]]>").append("</sale_order>");
...@@ -1203,11 +1256,279 @@ public class DistOrderAmdIC extends ValidatorEJB implements DistOrderAmdICLocal ...@@ -1203,11 +1256,279 @@ public class DistOrderAmdIC extends ValidatorEJB implements DistOrderAmdICLocal
} }
valueXmlString.append("<rate__clg>").append("<![CDATA[" + ( rateClg != null ? rateClg.trim() : "" )+ "]]>").append("</rate__clg>"); valueXmlString.append("<rate__clg>").append("<![CDATA[" + ( rateClg != null ? rateClg.trim() : "" )+ "]]>").append("</rate__clg>");
} }
// ADDED BY ABHIJIT FOR D15DSUN019
if (currentColumn.trim().equals( "item_code" ))
{
String mpricelist = null;
String mpricelistclg = null;
String morderdate = null;
String sitecode = null;
String exchrate1 = null;
String trantype = null;
String saleorder = null;
String itemDescr = null;
String unit = null;
String unitsal = null;
String custcode = null;
String descr = null;
String type = null;
String distOrder= null;
double exchrate = 0;
double rate = 0;
double rate1 = 0;
distOrder = genericUtility.getColumnValue( "dist_order", dom1 );
itemcode1 = genericUtility.getColumnValue("item_code", dom);
mpricelist =genericUtility.getColumnValue("price_list_o",dom1);
morderdate = genericUtility.getColumnValue("order_date",dom1);
sitecode = genericUtility.getColumnValue("site_code__ship",dom1);
exchrate1 = genericUtility.getColumnValue("exch_rate",dom1);
trantype = genericUtility.getColumnValue("tran_type_o",dom1);
// saleorder= genericUtility.getColumnValue("sale_order",dom1);
mpricelistclg = genericUtility.getColumnValue("price_list__clg_o",dom1);
System.out.println("Distribution Order is"+distOrder);
System.out.println("Item Code is "+itemcode1);
System.out.println("Price List is :"+mpricelist);
System.out.println("Order date is :"+morderdate);
System.out.println("Site code is :"+sitecode);
System.out.println("Exchange rate is :"+exchrate1);
System.out.println("Tran Type is :"+trantype);
System.out.println("Price List is :"+mpricelistclg);
sql = "select SALE_ORDER FROM DISTORDER WHERE DIST_ORDER = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,distOrder.trim());
rs = pstmt.executeQuery();
if(rs.next())
{
saleorder = rs.getString( "SALE_ORDER" );
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
System.out.println("Sale Order is :"+saleorder);
sql = " select descr, unit,unit__sal from item where item_code = ? ";
vPStmt = conn.prepareStatement(sql);
vPStmt.setString(1,itemcode1);
vRs = vPStmt.executeQuery();
if(vRs.next())
{
itemDescr = checkNull( vRs.getString("descr"));
unit = checkNull(vRs.getString("unit"));
unitsal = checkNull( vRs.getString("unit__sal"));
System.out.println("##### Item Code"+itemcode1);
System.out.println("##### Description"+itemDescr);
System.out.println("##### Unit"+unit);
System.out.println("#####Unit Sal"+unitsal);
}
vRs.close();
vRs = null;
vPStmt.close();
vPStmt = null;
if( unitsal == null || unitsal.trim().length()<= 0 )
{
unitsal=unit;
}
valueXmlString.append("<item_descr >").append("<![CDATA["+itemDescr+"]]>").append("</item_descr>");
valueXmlString.append("<unit_o >").append("<![CDATA["+unit+"]]>").append("</unit_o>");
valueXmlString.append("<unit__alt_o >").append("<![CDATA["+unitsal+"]]>").append("</unit__alt_o>");
valueXmlString.append("<dist_order >").append("<![CDATA["+distOrder+"]]>").append("</dist_order>");
if( saleorder != null && saleorder.trim().length() > 0 )
{
sql = " select cust_code from sorder where sale_order = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,itemcode1);
rs = pstmt.executeQuery();
if(rs.next())
{
custcode = checkNull( rs.getString("cust_code"));
System.out.println("#####cust code"+custcode);
System.out.println("itemcode"+itemcode1);
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
sql = "select descr from customeritem where cust_code =? and item_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,custcode);
pstmt.setString(2,itemcode1);
rs = pstmt.executeQuery();
if(rs.next())
{
descr = checkNull( rs.getString("descr"));
System.out.println("#####Description"+descr);
System.out.println("#####itemcode"+itemcode1);
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
//dw_detedit[ii_currformno].SetItem(1,"custom_descr", ls_cust_descr)
valueXmlString.append("<custom_descr_o >").append("<![CDATA["+descr+"]]>").append("</custom_descr_o>");
}
if( mpricelist == null || mpricelist.trim().length()<= 0 )
{
mrate = 0;
}
else
{
mrate = discommon.pickRate(mpricelist,morderdate, itemcode1,"","L",conn);
System.out.println("#####rate"+mrate);
}
type = discommon.getPriceListType(mpricelist, conn);
if(type != "L" && mrate < 0)
{
mrate = 0;
}
exchrate = Double.parseDouble(exchrate1);
System.out.println("@@@@@Exchange Rate"+exchrate);
rate = mrate * exchrate;
System.out.println("Rate is "+rate);
valueXmlString.append("<rate >").append("<![CDATA["+ rate +"]]>").append("</rate>");
valueXmlString.append("<rate_o >").append("<![CDATA["+ rate +"]]>").append("</rate_o>");
if( mpricelistclg == null || mpricelistclg.trim().length() == 0 )
{
mrateclg = 0;
}
else
{
mrateclg = discommon.pickRate(mpricelistclg,morderdate, itemcode1,"","L",conn);
System.out.println("#####rate"+mrateclg);
}
if(mrateclg == -1)
{
mrateclg = 0;
}
if(mrateclg == 0)
{
rate = mrate * exchrate;
System.out.println("Rate clg is "+rate);
valueXmlString.append("<rate__clg >").append("<![CDATA["+ rate +"]]>").append("</rate__clg>");
valueXmlString.append("<rate__clg_o >").append("<![CDATA["+ rate +"]]>").append("</rate__clg_o>");
}
else
{
rate1 = mrate * exchrate;
System.out.println("Rate clg is22222222222222 "+rate1);
valueXmlString.append("<rate__clg>").append("<![CDATA["+ rate +"]]>").append("</rate__clg>");
valueXmlString.append("<rate__clg_o >").append("<![CDATA["+ rate1 +"]]>").append("</rate__clg_o>");
}
sql=" select tax_class, tax_chap,tax_env from DISTORDER_DET WHERE DIST_ORDER = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,distOrder.trim());
rs = pstmt.executeQuery();
if(rs.next())
{
taxclass = checkNull(rs.getString("tax_class"));
taxchap = checkNull(rs.getString("tax_chap"));
taxenv = checkNull(rs.getString("tax_env"));
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
System.out.println("#####Tax Class"+taxclass);
System.out.println("#####Tax Chap"+taxchap);
System.out.println("#####Tax env"+taxenv);
valueXmlString.append("<tax_chap >").append("<![CDATA["+ taxchap +"]]>").append("</tax_chap>");
valueXmlString.append("<tax_chap_o >").append("<![CDATA["+ taxchap +"]]>").append("</tax_chap_o>");
valueXmlString.append("<tax_class >").append("<![CDATA["+ taxclass +"]]>").append("</tax_class>");
valueXmlString.append("<tax_class_o >").append("<![CDATA["+ taxclass +"]]>").append("</tax_class_o>");
valueXmlString.append("<tax_env >").append("<![CDATA["+ taxenv +"]]>").append("</tax_env>");
valueXmlString.append("<tax_env_o >").append("<![CDATA["+ taxenv +"]]>").append("</tax_env_o>");
sitecodeship =genericUtility.getColumnValue("site_code__ship_o",dom1);
sitecodedlv = genericUtility.getColumnValue("site_code__dlv_o",dom1);
System.out.println("#####sitecode ship"+sitecodeship);
System.out.println("#####sitecodedlv"+sitecodedlv);
sql=" select stan_code from site where site_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,sitecodeship);
rs = pstmt.executeQuery();
if(rs.next())
{
stationfr = checkNull( rs.getString("stan_code"));
System.out.println("#####Station From:"+stationfr);
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
sql=" select stan_code from site where site_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,sitecodedlv);
rs = pstmt.executeQuery();
if(rs.next())
{
stationto = checkNull( rs.getString("stan_code"));
System.out.println("#####Station to:"+stationto);
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
sql=" select item_ser from item where item_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,itemcode1);
rs = pstmt.executeQuery();
if(rs.next())
{
itemser = checkNull( rs.getString("item_ser"));
System.out.println("##### Item Series:"+itemser);
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
if ( taxchap == null || taxchap.trim().length()== 0 )
{
taxchap = discommon.getTaxChap(itemcode1, itemser,"S",sitecodedlv,sitecodeship, conn);
System.out.println("Tax Chap"+taxchap);
valueXmlString.append("<tax_chap >").append("<![CDATA["+ taxchap +"]]>").append("</tax_chap>");
valueXmlString.append("<tax_chap_o >").append("<![CDATA["+ taxchap +"]]>").append("</tax_chap_o>");
}
if ( taxclass == null || taxclass.trim().length()== 0 ) // isnull(ls_taxclass) or len(trim(ls_taxclass)) = 0 then
{
taxclass = discommon.getTaxClass("S", sitecodedlv, itemcode1, sitecodeship, conn);
System.out.println("Tax Classsss"+taxclass);
valueXmlString.append("<tax_class >").append("<![CDATA["+ taxclass +"]]>").append("</tax_class>");
valueXmlString.append("<tax_class_o >").append("<![CDATA["+ taxclass +"]]>").append("</tax_class_o>");
}
if ( taxenv == null || taxenv.trim().length()== 0 )
{
taxenv = discommon.getTaxEnv(stationfr, stationto, taxchap, taxclass, sitecodeship,conn);
System.out.println("Tax Env"+taxenv);
valueXmlString.append("<tax_env >").append("<![CDATA["+ taxclass +"]]>").append("</tax_env>");
valueXmlString.append("<tax_env_o >").append("<![CDATA["+ taxenv +"]]>").append("</tax_env_o>");
}
}
//ADDED BY ABHIJIT FOR D15DSUN019 END
valueXmlString.append("</Detail2>"); valueXmlString.append("</Detail2>");
valueXmlString.append("</Root>"); valueXmlString.append("</Root>");
break; break;
}//END OF SWITCH }
//END OF SWITCH
}//END OF TRY }//END OF TRY
catch(Exception e) catch(Exception e)
{ {
e.printStackTrace(); e.printStackTrace();
...@@ -1239,6 +1560,15 @@ public class DistOrderAmdIC extends ValidatorEJB implements DistOrderAmdICLocal ...@@ -1239,6 +1560,15 @@ public class DistOrderAmdIC extends ValidatorEJB implements DistOrderAmdICLocal
} }
return valueXmlString.toString(); return valueXmlString.toString();
}//END OF ITEMCHANGE }//END OF ITEMCHANGE
private String checkNull(String input)
{
if(input == null)
{
input = "";
}
return input;
}
private String getCurrdateAppFormat() private String getCurrdateAppFormat()
{ {
String s = ""; String s = "";
......
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