Commit bc1e06ea authored by kshinde's avatar kshinde

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@176387 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 6ce9aef1
package ibase.webitm.ejb.dis;
import ibase.system.config.AppConnectParm;
import ibase.utility.CommonConstants;
import ibase.utility.E12GenericUtility;
//import ibase.webitm.ejb.wms.WavegenWizPosRemote;
import ibase.webitm.utility.ITMException;
import java.io.File;
import javax.naming.InitialContext;
public class PlistgenWizBean {
E12GenericUtility genericUtility = new E12GenericUtility();
private String objName = "";
private String user_lang ="en";
private String user_country = "US";
public PlistgenWizBean(String objName) throws ITMException
{
try
{
this.objName = objName;
}
catch (Exception e)
{
throw new ITMException(e);
}
}
public PlistgenWizBean() {
}
public String previousForm( String formNo, String xmlData ) throws ITMException
{
String retHtmlData = null;
try
{
System.out.println("In Method : [previousForm]");
System.out.println("xmlString : ["+ xmlData +"]");
String xslFileName = getXSLFileName( this.objName + formNo + "_wiz_" + this.user_lang + "_" + this.user_country + "_" + "A" + ".xsl" );
retHtmlData = (genericUtility).transformToString( xslFileName, xmlData, CommonConstants.APPLICATION_CONTEXT + File.separator + "temp", "Output", ".html" );
}
catch (Exception e)
{
throw new ITMException(e);
}
return retHtmlData;
}
private String getXSLFileName( String xslFileName )throws ITMException
{
String retFileName = null;
try
{
String defaultPath = null;
if( CommonConstants.APPLICATION_CONTEXT != null )
{
defaultPath = CommonConstants.APPLICATION_CONTEXT + CommonConstants.ITM_CONTEXT + File.separator;
}
else
{
defaultPath = ".." + File.separator + "webapps" + File.separator + "ibase" + File.separator + CommonConstants.ITM_CONTEXT + File.separator;
}
File xslPath = new File( defaultPath + File.separator + "xsl" + File.separator + CommonConstants.THEME + File.separator + "WIZARD"+ File.separator + "Galaxy");
if ( !xslPath.exists() )
{
xslPath.mkdir();
}
System.out.println( " xslPath [" + xslPath +"] xslFileName ["+xslFileName +"]");
File xslFile = new File(xslPath , xslFileName);
if( xslFile.exists() )
{
retFileName = xslFile.getAbsolutePath();
}
else
{
throw new ITMException( new Exception( retFileName + " Wizard XSL file Not Found") );
}
}
catch (Exception e)
{
throw new ITMException(e);
}
return retFileName;
}
}
This diff is collapsed.
This diff is collapsed.
package ibase.webitm.ejb.dis;
import ibase.webitm.ejb.ValidatorLocal;
import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException;
import java.util.HashMap;
import org.w3c.dom.Document;
@javax.ejb.Local
public interface PricelistGenWizEJBLocal extends ValidatorLocal
{
public String itemChanged(String xmlString, String xmlString1, String xmlString2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException, ITMException;
public String itemChanged(Document dom, Document dom1, Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String wfValData(String xmlString, String xmlString1, String xmlString2, String objContext,String editFlag, String xtraParams) throws RemoteException, ITMException;
public String wfValData(Document currFormDataDom, Document hdrDataDom, Document allFormDataDom, String objContext, String editFlag, String xtraParams) throws RemoteException, ITMException;
public String handleRequest(HashMap<String, String> reqParamMap);
}
package ibase.webitm.ejb.dis;
import java.rmi.RemoteException;
import java.util.HashMap;
import org.w3c.dom.Document;
import ibase.webitm.ejb.ValidatorRemote;
import ibase.webitm.utility.ITMException;
@javax.ejb.Remote
public interface PricelistGenWizEJBRemote extends ValidatorRemote
{
public String itemChanged(String xmlString, String xmlString1, String xmlString2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException, ITMException;
public String itemChanged(Document dom, Document dom1, Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String wfValData(String xmlString, String xmlString1, String xmlString2, String objContext,String editFlag, String xtraParams) throws RemoteException, ITMException;
public String wfValData(Document currFormDataDom, Document hdrDataDom, Document allFormDataDom, String objContext,String editFlag, String xtraParams) throws RemoteException, ITMException;
public String handleRequest(HashMap<String,String> reqParamMap);
}
package ibase.webitm.ejb.dis;
import java.rmi.RemoteException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.HashMap;
import javax.ejb.Stateless;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.ejb.ValidatorEJB;
//import ibase.webitm.utility.GenericUtility;
import ibase.webitm.utility.ITMException;
@Stateless
public class PricelistGenWizPos extends ValidatorEJB implements PricelistGenWizPosLocal,PricelistGenWizPosRemote {
E12GenericUtility genericUtility = new E12GenericUtility();
public String postSave(String xmlString,String tranId,String editFlag, String xtraParams,Connection conn) throws RemoteException,ITMException
{
System.out.println("------------ postSave method called-----------------PricelistGenWizPos : ");
System.out.println("tranId111--->>["+tranId+"]");
System.out.println("xml String--->>["+xmlString+"]");
Document dom = null;
String errString="";
try
{
if (xmlString != null && xmlString.trim().length() > 0)
{
dom = parseString(xmlString);
errString = postSave(dom,tranId,xtraParams,conn);
}
System.out.println("errString["+errString+"]");
}
catch(Exception e)
{
System.out.println("Exception : PricelistGenWizPos.java : postSave : ==>\n"+e.getMessage());
throw new ITMException(e);
}
return errString;
}
public String postSave(Document dom,String tranId,String xtraParams,Connection conn) throws ITMException
{
String retString = "";
String nodeName = "", productCode = "", effFrom = "", validUpto = "", mstPricelist = "", priceListTar = "", priceListParent = "", calcMethod = "",
freeQty = "", freeOnQty = "", discPerc = "", listType = "", loginUser = "";
ArrayList<HashMap<String, String>> inserPlist = new ArrayList<>();
boolean isError = false;
DistCommon distCommon = new DistCommon();
ITMDBAccessEJB ITMDBAccessEJB=new ITMDBAccessEJB();
PreparedStatement pstmt = null, pstmt1 = null;
ResultSet rs = null;
int hdelcnt = 0, detdelcnt = 0;
try
{
loginUser = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode");
mstPricelist = distCommon.getDisparams("999999", "MRP", conn);
NodeList detail1NodeList = dom.getElementsByTagName("Detail1");
int detail1NodeListLen = detail1NodeList.getLength();
for(int i=0; i<detail1NodeListLen; i++)
{
NodeList eachDetail1NodeList = detail1NodeList.item(0).getChildNodes();
for(int j=0; j<eachDetail1NodeList.getLength();j++)
{
Node eachDetail1Element = eachDetail1NodeList.item(j);
nodeName = eachDetail1Element.getNodeName();
if(!"#text".equalsIgnoreCase(nodeName) && !"attribute".equals(nodeName))
{
switch(nodeName)
{
case "product_code" :
{
if( eachDetail1Element.getFirstChild() != null)
{
productCode = eachDetail1Element.getFirstChild().getNodeValue();
}
break;
}
case "eff_from" :
{
if( eachDetail1Element.getFirstChild() != null)
{
effFrom = eachDetail1Element.getFirstChild().getNodeValue();
}
break;
}
case "valid_upto" :
{
if( eachDetail1Element.getFirstChild() != null)
{
validUpto = eachDetail1Element.getFirstChild().getNodeValue();
}
break;
}
}
}
}
}
System.out.println("productCode["+productCode+"]effFrom["+effFrom+"]validUpto["+validUpto+"]");
NodeList detail2NodeList = dom.getElementsByTagName("Detail2");
int detail2NodeListLen = detail2NodeList.getLength();
System.out.println("560101.detail2NodeListLen["+detail2NodeListLen+"]");
for(int i=0; i<detail2NodeListLen; i++)
{
Node eachDetail2 = detail2NodeList.item(i);
NodeList eachDetail2NodeList = eachDetail2.getChildNodes();
for(int j=0; j<eachDetail2NodeList.getLength();j++)
{
Node eachDetail2Element = eachDetail2NodeList.item(j);
nodeName = eachDetail2Element.getNodeName();
if(!"#text".equalsIgnoreCase(nodeName) && !"attribute".equals(nodeName))
{
switch(nodeName)
{
case "offer_free_qty" :
{
if (eachDetail2Element.getFirstChild() != null)
{
freeQty = eachDetail2Element.getFirstChild().getNodeValue();
}
break;
}
case "offer_free_on" :
{
if (eachDetail2Element.getFirstChild() != null)
{
freeOnQty = eachDetail2Element.getFirstChild().getNodeValue();
}
break;
}
case "disc_perc" :
{
if (eachDetail2Element.getFirstChild() != null)
{
discPerc = eachDetail2Element.getFirstChild().getNodeValue();
}
break;
}
case "price_list" :
{
if (eachDetail2Element.getFirstChild() != null)
{
priceListTar = eachDetail2Element.getFirstChild().getNodeValue();
}
break;
}
case "price_list__parent" :
{
if (eachDetail2Element.getFirstChild() != null)
{
priceListParent = eachDetail2Element.getFirstChild().getNodeValue();
}
break;
}
case "list_type" :
{
if (eachDetail2Element.getFirstChild() != null)
{
listType = eachDetail2Element.getFirstChild().getNodeValue();
}
break;
}
case "calc_method" :
{
if (eachDetail2Element.getFirstChild() != null)
{
calcMethod = eachDetail2Element.getFirstChild().getNodeValue();
}
break;
}
}
}
}
HashMap<String,String> eachPlist=new HashMap<>();
eachPlist.put("price_list_mrp", mstPricelist);
eachPlist.put("price_list_tar", priceListTar);
eachPlist.put("price_list_parent", priceListParent);
eachPlist.put("calc_method", calcMethod);
eachPlist.put("free_qty", freeQty);
eachPlist.put("free_on_qty", freeOnQty);
eachPlist.put("disc_perc", discPerc);
eachPlist.put("list_type", listType);
inserPlist.add(eachPlist);
}
System.out.println("final insert plist in pos save["+inserPlist+"]");
PricelistGenEJB ins = new PricelistGenEJB();
Object retObj = ins.generateAndInsertPriceList(productCode, inserPlist, effFrom, validUpto, xtraParams, false, conn);
if(retObj instanceof String)
{
System.out.println("retObj["+(String) retObj+"]");
retString = (String) retObj;
if("SUCCESS".equalsIgnoreCase(retString))
{
String sql = "SELECT TRAN_ID FROM PRICING_MANAGE WHERE CHG_USER = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, loginUser);
rs = pstmt.executeQuery();
if(rs.next())
{
String tranIdDel = rs.getString("TRAN_ID");
String sqldel = "DELETE FROM PRICING_MANAGE WHERE TRAN_ID = ? ";
pstmt1=conn.prepareStatement(sqldel);
pstmt1.setString(1,tranIdDel);
hdelcnt=pstmt1.executeUpdate();
pstmt1.close();
pstmt1=null;
String sqldeldet = "DELETE FROM PRICING_MANAGE_LIST WHERE TRAN_ID = ? ";
pstmt1=conn.prepareStatement(sqldeldet);
pstmt1.setString(1,tranIdDel);
detdelcnt=pstmt1.executeUpdate();
pstmt1.close();
pstmt1=null;
}
System.out.println("hdelcnt["+hdelcnt+"]detdelcnt["+detdelcnt+"]");
retString = "";
}
else
{
retString = ITMDBAccessEJB.getErrorString("", "PLISTWIZER", "", "", conn);
}
}
}
catch(Exception e)
{
System.out.println("Exception : PricelistGenWizPos -->["+e.getMessage()+"]");
throw new ITMException(e);
}
return retString;
}
}
\ No newline at end of file
package ibase.webitm.ejb.dis;
import java.rmi.RemoteException;
import ibase.webitm.ejb.ValidatorLocal;
import ibase.webitm.utility.ITMException;
import java.sql.Connection;
import javax.ejb.Local;
@Local
public interface PricelistGenWizPosLocal extends ValidatorLocal {
public String postSave(String xmlString,String tranId,String editFlag, String xtraParams,Connection conn) throws RemoteException,ITMException;
}
package ibase.webitm.ejb.dis;
import java.rmi.RemoteException;
import ibase.webitm.ejb.ValidatorRemote;
import ibase.webitm.utility.ITMException;
import java.sql.Connection;
import javax.ejb.Remote;
@Remote
public interface PricelistGenWizPosRemote extends ValidatorRemote {
public String postSave(String xmlString,String tranId,String editFlag, String xtraParams,Connection conn) throws RemoteException,ITMException;
}
package ibase.webitm.servlet.dis;
import java.io.IOException;
import java.io.OutputStream;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.zip.GZIPOutputStream;
import javax.naming.InitialContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import ibase.bi.utility.Messages;
import ibase.system.config.AppConnectParm;
import ibase.utility.CommonConstants;
import ibase.webitm.ejb.dis.PricelistGenWizEJBRemote;
import ibase.webitm.utility.ITMException;
public class PlistgenWizServlet extends HttpServlet
{
private static final long serialVersionUID = 1L;
InitialContext ctx = null;
public PlistgenWizServlet() {
super();
}
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
{
doPost( request, response );
}
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
{
System.out.println("XXXXXXXXXXXXXXXXXXXXXX[ PlistgenWizServlet START]XXXXXXXXXXXXXXXXXXXX");
request.setCharacterEncoding(CommonConstants.ENCODING);
String action = "", responseXML = "", htmlData = "";
PricelistGenWizEJBRemote pricelistGenWizRemote = null;
try
{
action = request.getParameter("action");
System.out.println("PlistgenWizServlet ACTION ["+action+"]");
if("previous".equalsIgnoreCase(action))
{
ibase.utility.UserInfoBean userInfo = ( ibase.utility.UserInfoBean )request.getSession().getAttribute( "USER_INFO" );
if(userInfo != null)
{
String objName = request.getParameter("OBJ_NAME");
String formNo = request.getParameter("FORM_NO");
String PRE_FORM_VAL = request.getParameter("PRE_FORM_VAL");
System.out.println("OBJ_NAME["+objName+"]");
System.out.println("FORMNO["+formNo+"]");
System.out.println("PRE_FORM_VAL["+PRE_FORM_VAL+"]");
String editorId = (String) request.getSession().getAttribute( "WIZARD_BEAN_ID_" + objName );
System.out.println( " PlistgenWizServlet :: editorId["+editorId+"]" );
if ( request.getSession().getAttribute( "WIZARD_BEAN_" + editorId ) != null )
{
System.out.println(" wizard object found....");
request.getSession().removeAttribute( "WIZARD_BEAN_" + objName );
//Added by Santosh on 31/03/2017 to remove editorID from session
request.getSession().removeAttribute( "WIZARD_BEAN_ID_" + objName );
System.out.println("WIZARD_BEAN_ and WIZARD_BEAN_ID_ removed from session");
request.getRequestDispatcher("/webitm/jsp/WavegenWiz.jsp").forward(request, response);
}
}
else
{
htmlData = Messages.getString("ITMWizardHandlerServlet_notLoggedIn")+"\n"+Messages.getString("ITMWizardHandlerServlet_pleaseReLogin");
System.out.println("htmlData ["+htmlData+"]");
}
}
else if("SAVE_DETAIL_DATA".equalsIgnoreCase(action))
{
String prevHTMLData = request.getParameter("HTML_DATA");
request.getSession().setAttribute( "WAVEGEN_WIZ_DETAIL",prevHTMLData);
}
else if("DISPLAY_DETAIL_DATA".equalsIgnoreCase(action))
{
String htmlDataErr = (String) request.getSession().getAttribute( "WAVEGEN_WIZ_DETAIL");
request.getSession().removeAttribute( "WAVEGEN_WIZ_DETAIL");
response.setContentType("text/html");
if(CommonConstants.CONTENT_ENCODING != null && CommonConstants.CONTENT_ENCODING.equalsIgnoreCase("gzip"))
{
response.setHeader("Content-Encoding", "gzip");
GZIPOutputStream gzOutStream = new GZIPOutputStream(response.getOutputStream());
gzOutStream.write(htmlDataErr.getBytes());
gzOutStream.flush();
gzOutStream.close();
}
else
{
response.setHeader("Content-Encoding", CommonConstants.CONTENT_ENCODING);
OutputStream outStream = response.getOutputStream();
outStream.write(htmlDataErr.getBytes());
outStream.flush();
outStream.close();
}
}
else
{
HashMap<String,String> requestParamMap = new HashMap<String,String>();
String paramName = "", paramValue = "";
@SuppressWarnings("unchecked")
Enumeration<String> reqParams = request.getParameterNames();
while(reqParams.hasMoreElements())
{
Object paramObj = reqParams.nextElement();
paramName = (String) paramObj;
paramValue = (String)request.getParameter(paramName);
if(!paramValue.equalsIgnoreCase(""))
requestParamMap.put(paramName,paramValue);
}
System.out.println("Request Parameter map :"+requestParamMap);
ctx=getInitialContext();
pricelistGenWizRemote = (ibase.webitm.ejb.dis.PricelistGenWizEJBRemote) ctx.lookup("ibase/PricelistGenWizEJB/remote");
responseXML = pricelistGenWizRemote.handleRequest(requestParamMap);
response.setContentType("text/xml");
if(CommonConstants.CONTENT_ENCODING != null && CommonConstants.CONTENT_ENCODING.equalsIgnoreCase("gzip"))
{
response.setHeader("Content-Encoding", "gzip");
GZIPOutputStream gzOutStream = new GZIPOutputStream(response.getOutputStream());
gzOutStream.write(responseXML.getBytes());
gzOutStream.flush();
gzOutStream.close();
}
else
{
response.setHeader("Content-Encoding", "");
OutputStream outStream = response.getOutputStream();
outStream.write(responseXML.getBytes());
outStream.flush();
outStream.close();
}
}
}
catch (Exception e)
{
System.out.println("PlistgenWizServlet.doPost():doPost"+e.getMessage());
e.printStackTrace();
}
System.out.println("XXXXXXXXXXXXXXXXXXXXXX[ PlistgenWizServlet END]XXXXXXXXXXXXXXXXXXXX");
}
protected InitialContext getInitialContext()throws ITMException
{
InitialContext ctx = null;
try
{
AppConnectParm appConnect = new AppConnectParm();
ctx = new InitialContext(appConnect.getProperty());
}
catch(ITMException itme)
{
System.out.println("PlistgenWizServlet.getInitialContext()");
throw itme;
}
catch(Exception e)
{
System.out.println("PlistgenWizServlet.getInitialContext()"+e.getMessage());
throw new ITMException(e);
}
return ctx;
}
}
\ No newline at end of file
#mainPage-input-Container{
height : calc(100% - 200px);
width : 95%;
border : 1px solid lightgray !important;
border-top: 2px solid #7bc6ff !important;
-moz-border : 1px solid lightgray !important;
-moz-border-top: 2px solid #7bc6ff !important;
padding-top: 35px;
padding-bottom: 10px;
padding-left: 60px;
overflow:auto;
background-color: white;
}
#btnDiv{
padding-top:5px;
float : left;
}
#activityTable tr td{
height:30px;
font-size: 14px;
}
#activityTable tr td input{
width:60%;
}
#activityTable tr td a{
float:none;
text-decoration: none;
visibility:visible;
margin-left: 2px;
visibility : hidden;
}
#activityTable tr td a img{
vertical-align:middle;
}
#inputDiv input{
float: left;
}
#shipmentTable tr td{
height:30px;
font-size: 14px;
}
#shipmentTable tr td a{
float:right;
text-decoration: none;
visibility : hidden;
}
#shipmentTable tr td a img{
vertical-align:middle;
margin-left: 2px;
}
div.pop {
width: 17px;
margin: auto;
}
.editDisplayClass{
background-color:rgba(160, 160, 160, 0.3);
font-size: 14px;
border:none;
line-height: 20px;
}
#buttonreplacement{
width: 150px;
height: 80px;
background-color: #fff;
margin:0px auto;
text-align: center;
/* Changed by Santosh on 31/03/2017 */
/* z-index:2; */
z-index:1005;
display:none;
position: fixed;
top: 200px;
left: 450px;
}
#buttonreplacement>img{
margin-top:15px;
margin-left:50px;
display: table-cell;
}
#detailPage-input-Container{
/* Changed by Santosh on 31/03/2017 */
/* height : calc(100% - 150px); */
height : calc(100% - 90px);
width : 98%;
border : 1px solid lightgray !important;
border-top: 2px solid #7bc6ff !important;
padding: 10px;
overflow:auto;
background-color: white;
}
#summaryContainer{
/* Changed by Santosh on 31/03/2017 */
/* height : calc(100% - 150px); */
height : calc(100% - 90px);
width : 98%;
border : 1px solid lightgray !important;
border-top: 2px solid #7bc6ff !important;
padding: 10px;
/*Commented by Santosh on 31/03/17 to remove extra scroll bar*/
/* overflow:auto; */
background-color: white;
}
#summaryContainer table tr:hover td{
background-color: #efefef;
}
.selectedTrClass>td{
background-color: #fdf5ce !important;
}
button.accordion {
background-color: white;
border:1px solid #ddd !important;
color: #000;
cursor: pointer;
padding: 6px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 13px !important;
transition: 0.4s;
height: 40px;
line-height: 20px;
display: inline-block;
border-bottom: none !important;
}
button.accordion:last-child{
border-bottom:1px solid #ddd !important;
}
/*button.accordion.active, button.accordion:hover {
/*border : 1px solid #ddd !important;
/*border-bottom: none !important;
}*/
button.accordion.activeAccor{
background-color: #fdf5ce;
}
button.accordion.active{
border-bottom : 1px solid #ddd !important;
}
button.accordionSO.accordion {
background-color: white;
border:0px solid #ddd !important;
border-top:1px solid #ddd !important;
border-bottom:0px solid #ddd !important;
border-radius:0px;
padding: 4px;
color: #000;
cursor: pointer;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 13px !important;
transition: 0.4s;
line-height: 20px;
}
button.accordionSO.active, button.accordionSO:hover {
border-top:1px solid #ccc !important;
}
button.accordionSO.active{
border-bottom : 0px solid #fbd850 !important;
background-color: #eee;
}
div.panel {
padding:0px;
border:0px solid #ccc !important;
background-color: white;
max-height: 0;
overflow: hidden;
transition: 0.4s ease-in-out;
opacity: 0;
}
.panel.panelSO {
border: none !important;
}
div.panel.show {
border:1px solid #ddd !important;
border-top:none !important;
border-bottom:none !important;
opacity: 1;
max-height: 2000px;
}
.show{
border-bottom:0px solid lightgray;
padding-top:2px;
}
div.panelSO.show{
padding : 0px;
border:0px solid lightgray !important;
border-bottom:0px solid lightgray !important;
overflow-x:scroll;
}
.headerText{
font-size: 16px;
display: inline-block;
}
.subText{
font-size: 13px;
color: #444;
}
.dataSummry{
width: auto;
float: left;
}
.selectSummry{
width: auto;
float: right;
padding-right:5px;
text-align:right;
}
.selectSummry>p{
margin: 0px !important;
}
.percText{
font-size: 14px !important;
left: 3px !important;
top: -15px !important;
width:35px !important;
height:35px !important;
color:#111 !important;
}
.bar{
border-color: #00bcd4 !important;
}
.fill{
border-color: #00bcd4 !important;
}
.greenSelcted{
border-color: #00b300 !important;
}
.small{
font-size: 40px !important;
}
.c100{
margin: 0px !important;
z-index:0 !important;
}
.custImg{
z-index: 25 !important;
width: 32px;
height: 32px;
top: 4px;
left: 4px;
border-radius:50%;
position: absolute;
}
.itemImg{
width: 24px;
height: 24px;
border-radius:50%;
margin-top:4px;
margin-right:3px;
float: left;
}
.qtyHighlight{
width: 5px;
height: 5px;
float: right;
margin-top:10px;
}
.imagePanel
{
display:none;
float:right;
right:0;
margin-top:2px;
margin-right:8px;
width:200px;
height:250px;
border:1px solid lightgray;
position: absolute;
z-index: 30;
background: white;
}
.closeDiv{
position: absolute;
float: left;
margin:-8px;
text-align:center;
line-height:22px;
background-color: #777;
color:white;
width:22px;
height:22px;
border-radius:50%;
cursor: pointer;
}
img.imagePanelSrc
{
user-drag: none;
user-select: none;
-moz-user-select: none;
-webkit-user-drag: none;
-webkit-user-select: none;
-ms-user-select: none;
}
/* Added by Santosh on 10/03/2017 Start*/
.sortOrderContainer
{
border: 1px solid #dadada;
width: 250px;
height: auto;
margin:0px auto;
border-bottom:none;
z-index: 1004;
position: absolute;
float: right;
color: #555;
display:none;
background: #fff;
}
.sortOrderRow
{
padding: 10px;
display: inline-block;
width: calc(100% - 20px);
border-bottom: 1px solid #dadada;
}
.sortOrderRow div {
display: inline-block;
}
.sortOrdChkB
{
width:20%;
}
.leftAlign
{
width:60%;
}
.rightAlign
{
width:20%;
text-align:center;
}
/* Added by Santosh on 10/03/2017 End*/
div.panelSO::-webkit-scrollbar {
width: 6px;
height: 6px;
}
div.panelSO::-webkit-scrollbar-thumb {
background: #bbb;
}
div.panelSO::-webkit-scrollbar-thumb:window-inactive {
background: #bbb;
}
/* Added by Santosh on 31/03/2017 Start*/
/* Added by Santosh on 31/03/2017 End*/
.qtyTextBox
{
width: 50px !important;
text-align: right;
}
.req{
color:red;
}
i {
border: solid #666;
border-width: 0 2px 2px 0;
display: inline-block;
padding: 3px;
margin-top: 7px;
margin-right: 20px;
}
.up {
transform: rotate(-135deg);
-webkit-transform: rotate(-135deg);
}
.down {
transform: rotate(45deg);
-webkit-transform: rotate(45deg);
}
.editBtn{
float: right;
margin-right: 5px;
font-size : 14px;
color: #666;
padding : 2px 8px;
text-decoration: underline;
cursor: pointer;
}
.offerDiscDiv{
margin: 0px auto;
float: right;
height: 20px;
ont-size: 13px;
}
.plistTextDiv{
display: inline-block;
width: 92%;
font-size: 13px;
}
.svBtn{
margin-top: -1px;
}
.childPlistDiv{
padding: 6px;
height: 25px;
line-height: 25px;
padding-left : 15px;
border-bottom:1px solid #ddd ;
}
div.show > div.childPlistDiv:last-child{
border-bottom: none !important;
}
.table-body > tr > td, .table-body > tr > td:first-child{
line-height: 26px !important;
}
.table-head>tr>th{
border-bottom: 1px solid #ddd !important;
}
This diff is collapsed.
<%@ page import="java.io.*" %>
<%@ page import="java.util.HashMap" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="java.net.*" %>
<%@ page import="ibase.webitm.bean.wiz.*" %>
<%@ page import="ibase.utility.*" %>
<%@ page import="ibase.webitm.servlet.ITMWizardHandlerServlet" %>
<%@page import = "java.lang.*,java.util.*, ibase.webitm.ejb.dis.PlistgenWizBean"%>
<%
System.out.println("***********In PlistgenWiz JSP********************");
String htmlData = "";
try
{
ibase.utility.UserInfoBean userInfo = ( ibase.utility.UserInfoBean )session.getAttribute( "USER_INFO" );
if( userInfo == null )
{
out.println("Your session has been expired. Please re-login.");
}
String objName = request.getParameter("OBJ_NAME");
String PRE_FORM_VAL = ( request.getParameter( "PRE_FORM_VAL" ) != null ) ? request.getParameter( "PRE_FORM_VAL" ) : "";
String editorId = request.getParameter("EDITOR_ID");
String directAcc = ( request.getParameter( "DIRECT_ACC" ) != null ) ? request.getParameter( "DIRECT_ACC" ) : "Y";
System.out.println("objName : " + objName);
ITMWizardBean itmWizardBean;
String transDB = userInfo.getTransDB();
System.out.println("TransDB E12 name is : " + transDB);
if(transDB != null && !"null".equalsIgnoreCase(transDB.trim()) && transDB.trim().length() > 0)
{
itmWizardBean = new ITMWizardBean( objName, request.getSession(), userInfo );
}
else
{
itmWizardBean = new ITMWizardBean( objName, request.getSession() );
}
request.getSession().setAttribute( "WIZARD_BEAN_" + objName, itmWizardBean );
PlistgenWizBean beanObj = new PlistgenWizBean(objName);
htmlData = beanObj.previousForm("1", PRE_FORM_VAL);
}
catch(Exception e)
{
e.printStackTrace();
}
%>
<div id="detailData" style="display: ">
<%=htmlData%>
</div>
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
$PBExportHeader$d_plistgen_wiz23.srd
release 9;
datawindow(units=1 timer_interval=0 color=67108864 processing=0 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=138 color="536870912" )
table(column=(type=char(5) updatewhereclause=yes name=price_list dbname="price_list" )
column=(type=char(10) updatewhereclause=yes name=product_code dbname="product_code" )
column=(type=char(10) updatewhereclause=yes name=item_code dbname="item_code" )
column=(type=number updatewhereclause=yes name=rate dbname="rate" )
)
groupbox(band=detail text="Basic"border="2" color="0" x="23" y="9" height="100" width="358" name=gb_1 visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Price List:" border="0" color="0" x="47" y="29" height="16" width="86" html.valueishtml="0" name=price_list_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=1 alignment="0" tabsequence=10 border="5" color="0" x="141" y="29" height="19" width="50" format="[general]" html.valueishtml="0" name=price_list visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
text(band=detail alignment="1" text="Product Code:" border="0" color="0" x="203" y="31" height="16" width="86" html.valueishtml="0" name=product_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=2 alignment="0" tabsequence=20 border="5" color="0" x="297" y="31" height="19" width="60" format="[general]" html.valueishtml="0" name=product_code visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=3 alignment="0" tabsequence=30 border="5" color="0" x="138" y="67" height="19" width="60" format="[general]" html.valueishtml="0" name=item_code visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
text(band=detail alignment="1" text="Item Code:" border="0" color="0" x="44" y="67" height="16" width="86" html.valueishtml="0" name=item_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Rate:" border="0" color="0" x="211" y="69" height="16" width="86" html.valueishtml="0" name=rate_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=4 alignment="1" tabsequence=40 border="5" color="0" x="305" y="69" height="19" width="48" format="[general]" html.valueishtml="0" name=rate visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
import.xml()
export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )
\ No newline at end of file
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