Commit d83a2399 authored by kdabholkar's avatar kdabholkar

commit changes for group scheme of sorder wizard

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@177375 ce508802-f39f-4f6c-b175-0d175dae99d5
parent c9f02fd6
......@@ -27,7 +27,7 @@ public class SorderWizBean
private String objName = "";
private String user_lang ="en";
private String user_country = "US";
public SorderWizBean(String objName, HttpSession sessionCtx) throws ITMException
{
try
......@@ -41,36 +41,36 @@ public class SorderWizBean
throw new ITMException(e);
}
}
public SorderWizBean() {
// TODO Auto-generated constructor stub
}
//public String getList( String param, String field, String[] values) throws ITMException
public String getList( String param, String field, String[] values,String details) throws ITMException
{
String List = "";
SorderWizardEJBRemote sorderWizRemote = null;
String xslFileName = "";
try
{
InitialContext ctx = new InitialContext( new AppConnectParm().getProperty() );
sorderWizRemote = (ibase.webitm.ejb.wms.SorderWizardEJBRemote) ctx.lookup("ibase/SorderWizardEJB/remote");
//List = sorderWizRemote.getList(param,field,values);
List = sorderWizRemote.getList(param,field,values,details);
if("cust_code".equalsIgnoreCase(field) || "cust_code__bil".equalsIgnoreCase(field) || "cust_code__dlv".equalsIgnoreCase(field))
{
xslFileName = getXSLFileName( "sorderWizCust_List_wiz_" + this.user_lang + "_" + this.user_country + ".xsl" );
xslFileName = getXSLFileName( "sorderWizCust_List_wiz_" + this.user_lang + "_" + this.user_country + ".xsl" );
}
else
{
xslFileName = getXSLFileName( "sorderWiz_List_wiz_" + this.user_lang + "_" + this.user_country + ".xsl" );
xslFileName = getXSLFileName( "sorderWiz_List_wiz_" + this.user_lang + "_" + this.user_country + ".xsl" );
}
List = (genericUtility).transformToString( xslFileName, List, CommonConstants.APPLICATION_CONTEXT + File.separator + "temp", "Output", ".html" );
}
catch (Exception e)
......@@ -86,8 +86,8 @@ public class SorderWizBean
}
return List;
}
private String getXSLFileName( String xslFileName )throws ITMException
{
String retFileName = null;
......@@ -136,7 +136,7 @@ public class SorderWizBean
public String previousForm( String formNo, String xmlData ) throws ITMException
{
String retHtmlData = null;
try
{
System.out.println("In Method : [previousForm]"+xmlData);
......@@ -151,11 +151,11 @@ public class SorderWizBean
}
finally
{
}
return retHtmlData;
}
/**
* get Summary Page Detail
* @param objName and random
......@@ -188,7 +188,7 @@ public class SorderWizBean
}
return details;
}
/*public String SaveSorderHeader(String str) throws ITMException
{
String details = null;
......@@ -212,7 +212,7 @@ public class SorderWizBean
}
return details;
}*/
public String SaveSorderDetail(String str) throws ITMException
{
String details = null;
......@@ -236,7 +236,7 @@ public class SorderWizBean
}
return details;
}
public String getSorderHeader(String saleOrder,String flag) throws ITMException
{
String details = null;
......@@ -260,7 +260,7 @@ public class SorderWizBean
}
return details;
}
public String getSorderDetail(String saleOrder,String flag) throws ITMException
{
String details = null;
......@@ -284,7 +284,7 @@ public class SorderWizBean
}
return details;
}
public String ResetHeader(String data) throws ITMException
{
String details = null;
......@@ -308,7 +308,7 @@ public class SorderWizBean
}
return details;
}
public String getSorderDetail2(String siteCode,String empCode,String saleOrder,String status) throws ITMException
{
String details = null;
......@@ -332,7 +332,7 @@ public class SorderWizBean
}
return details;
}
public String getSKUDetail(String itemParent,String itemDLVDate,String paraData,String otherDetails) throws ITMException
{
String details = null;
......@@ -356,28 +356,28 @@ public class SorderWizBean
}
return details;
}
//Added by Kaustubh on 4 Dec 2017 start
public String getTaxData( String xmlData, String formNo, String domID, UserInfoBean userInfo,String objName) throws ITMException
{
String taxData = "";
SorderWizardEJBRemote sorderWizRemote = null;
try
{
System.out.println("In Method : [getTaxData]"+xmlData);
System.out.println("FormNo::"+formNo+"dbid::"+domID);
System.out.println("userInfo::"+userInfo);
System.out.println("ObjName ::"+objName);
InitialContext ctx = new InitialContext( new AppConnectParm().getProperty() );
sorderWizRemote = (ibase.webitm.ejb.wms.SorderWizardEJBRemote) ctx.lookup("ibase/SorderWizardEJB/remote");
//List = sorderWizRemote.getList(param,field,values);
taxData = sorderWizRemote.getTaxData(xmlData,formNo,domID,userInfo,objName);
}
catch (Exception e)
{
......@@ -392,7 +392,47 @@ public class SorderWizBean
}
return taxData;
}
//Added by Kaustubh on 4 Dec 2017 end
//Added by Kaustubh on 22 Dec 2017 start
public String getSchemeDetail( String xmlData, String formNo, UserInfoBean userInfo,String objName) throws ITMException
{
String taxData = "";
SorderWizardEJBRemote sorderWizRemote = null;
try
{
System.out.println("In Method : [getTaxData]"+xmlData);
System.out.println("userInfo::"+userInfo);
System.out.println("ObjName ::"+objName);
InitialContext ctx = new InitialContext( new AppConnectParm().getProperty() );
sorderWizRemote = (ibase.webitm.ejb.wms.SorderWizardEJBRemote) ctx.lookup("ibase/SorderWizardEJB/remote");
//List = sorderWizRemote.getList(param,field,values);
taxData = sorderWizRemote.getSchemeDetail(xmlData,formNo,userInfo,objName);
String xslFileName = getXSLFileName( "sorderWiz_Scheme_wiz_" + this.user_lang + "_" + this.user_country + ".xsl" );
taxData = (genericUtility).transformToString( xslFileName, taxData, CommonConstants.APPLICATION_CONTEXT + File.separator + "temp", "Output", ".html" );
System.out.println("SchemeDetails ::"+taxData);
}
catch (Exception e)
{
throw new ITMException(e);
}
finally
{
if ( sorderWizRemote != null )
{
sorderWizRemote = null;
}
}
return taxData;
}
//Added by Kaustubh on 22 Dec 2017 end
}
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