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;
}
}
package ibase.webitm.ejb.dis;
import java.rmi.RemoteException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.Set;
import javax.ejb.Stateless;
import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.ValidatorEJB;
import ibase.webitm.utility.ITMException;
@Stateless
public class PricelistGenEJB extends ValidatorEJB
{
E12GenericUtility genericUtility= new E12GenericUtility();
DistCommon distCommon = new DistCommon();
public Object generateAndInsertPriceList(String productCode, ArrayList<HashMap<String, String>> targetPlist, String effFrom, String validUpto, String xtraParams, boolean isPreview, Connection conn) throws RemoteException,ITMException
{
String trDate = "";
boolean isError = false;
String sql = "";
PreparedStatement pstmt = null;
ResultSet rs = null;
ArrayList<HashMap<String,String>> itemCodeList = new ArrayList<HashMap<String,String>>();
HashMap<String, ArrayList<HashMap<String, String>>> itemWiseInsPlistHMap = new HashMap<String, ArrayList<HashMap<String, String>>>();
try
{
System.out.println("PriceListGenEJB.generateAndInsertPriceList() : productCode["+productCode+"] effFrom["+effFrom+"] validUpto["+validUpto+"] isPreview["+isPreview+"]");
trDate = genericUtility.getValidDateString(new Date(), genericUtility.getApplDateFormat());
sql = "SELECT ITEM_CODE, UNIT FROM ITEM WHERE PRODUCT_CODE = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, productCode);
rs = pstmt.executeQuery();
while (rs.next())
{
String itemCode = "", unit = "";
HashMap<String, String> tempMap = new HashMap<String, String>();
itemCode = E12GenericUtility.checkNull(rs.getString("ITEM_CODE"));
unit = E12GenericUtility.checkNull(rs.getString("UNIT"));
tempMap.put("item_code", itemCode);
tempMap.put("unit", unit);
itemCodeList.add(tempMap);
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(rs!=null)
{
rs.close();
rs=null;
}
if(itemCodeList != null && itemCodeList.size() > 0)
{
for(HashMap<String, String> eachItemHMap : itemCodeList)
{
ArrayList<HashMap<String, String>> itemWisePlist = new ArrayList<HashMap<String,String>>();
String itemCode = eachItemHMap.get("item_code");
String unit = eachItemHMap.get("unit");
if(targetPlist != null && targetPlist.size() > 0)
{
double masterRate = 0.0;
String finalRate = "0.0";
String priceListMRP1=targetPlist.get(0).get("price_list_mrp");
masterRate = distCommon.pickRate(priceListMRP1, trDate, itemCode, "", conn);
System.out.println("priceListMRP1["+priceListMRP1+"masterRate["+masterRate+"]");
for(HashMap<String, String> eachPlistHMap : targetPlist)
{
ScriptEngineManager manager = new ScriptEngineManager();
ScriptEngine exprsEngine = manager.getEngineByName("js");
String priceListMRP = eachPlistHMap.get("price_list_mrp");
String priceListTar = eachPlistHMap.get("price_list_tar");
String priceListParnt = eachPlistHMap.get("price_list_parent");
String calcMethod = eachPlistHMap.get("calc_method");
String freeQty = eachPlistHMap.get("free_qty");
String freeOn = eachPlistHMap.get("free_on_qty");
String discPerc = eachPlistHMap.get("disc_perc");
String listType = eachPlistHMap.get("list_type");
exprsEngine.put("FREE_QTY", freeQty);
exprsEngine.put("FREE_ON_QTY", freeOn);
exprsEngine.put("DISC_PERC", discPerc);
exprsEngine.put("LOT_NO__FROM", "00");
exprsEngine.put("LOT_NO__TO", "ZZ");
exprsEngine.put("RATE", masterRate);
sql = "SELECT CALC_METHOD, LINE_NO, CALC_SEQ, VAR_NAME, VAR_EXPR, VAR_SOURCE, VAR_INPUT FROM CALC_METHOD_VAR WHERE CALC_METHOD = ? ORDER BY CALC_SEQ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, calcMethod);
rs = pstmt.executeQuery();
while (rs.next())
{
PreparedStatement exprPsmt = null;
ResultSet exprRs = null;
String[] exprsSqlInputArry = null;
HashMap<String,String> sqlInputDataMap = new HashMap<String, String>();
sqlInputDataMap.put("ITEM_CODE", itemCode);
sqlInputDataMap.put("EFF_FROM", effFrom);
sqlInputDataMap.put("VALID_UPTO", validUpto);
sqlInputDataMap.put("LOT_NO__FROM", "00");
sqlInputDataMap.put("LOT_NO__TO", "ZZ");
sqlInputDataMap.put("FREE_QTY", freeQty);
sqlInputDataMap.put("FREE_ON_QTY", freeOn);
sqlInputDataMap.put("DISC_PERC", discPerc);
String varName = E12GenericUtility.checkNull(rs.getString("VAR_NAME"));
String varExpr = E12GenericUtility.checkNull(rs.getString("VAR_EXPR"));
String varSrc = E12GenericUtility.checkNull(rs.getString("VAR_SOURCE"));
String varInput = E12GenericUtility.checkNull(rs.getString("VAR_INPUT"));
System.out.println("varName["+varName+"]varSrc["+varSrc+"]varInput["+varInput+"]");
if("S".equalsIgnoreCase(varSrc))
{
if( varExpr.length() > 0)
{
exprPsmt = conn.prepareStatement(varExpr);
if(varInput.length()>0)
{
int index = 1;
exprsSqlInputArry = varInput.split(",");
for(String eachSqlInput : exprsSqlInputArry)
{
String var=eachSqlInput.toUpperCase().trim();
System.out.println("eachSqlInput.toUpperCase()["+var+"]");
if(sqlInputDataMap.containsKey(var))
{
exprPsmt.setString(index++, sqlInputDataMap.get(var));
}
else
{
exprPsmt.setString(index++, "");
}
}
}
exprRs = exprPsmt.executeQuery();
if(exprRs.next())
{
finalRate = E12GenericUtility.checkNull(exprRs.getString(1));
exprsEngine.put(varName, finalRate);
}
else
{
exprsEngine.put(varName, 0);
}
if(exprPsmt != null)
{
exprPsmt.close();
exprPsmt = null;
}
if(exprRs!=null)
{
exprRs.close();
exprRs=null;
}
}
}
else if("E".equalsIgnoreCase(varSrc))
{
finalRate = String.valueOf(exprsEngine.eval(varExpr));
if("NaN".equalsIgnoreCase(finalRate))
{
exprsEngine.put(varName, 0);
}
else
{
exprsEngine.put(varName, finalRate);
}
}
System.out.println("varName["+varName+"]finalRate["+finalRate+"]");
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(rs!=null)
{
rs.close();
rs=null;
}
System.out.println("itemCode ["+itemCode+"] priceList["+priceListTar+"] finalRate["+finalRate+"]");
HashMap<String, String> eachPlistInsHMap = new HashMap<String, String>();
eachPlistInsHMap.put("price_list", priceListTar);
eachPlistInsHMap.put("price_list_parent", priceListParnt);
eachPlistInsHMap.put("item_code", itemCode);
eachPlistInsHMap.put("unit", unit);
eachPlistInsHMap.put("list_type", listType);
eachPlistInsHMap.put("eff_from", effFrom);
eachPlistInsHMap.put("valid_upto", validUpto);
eachPlistInsHMap.put("rate", finalRate);
itemWisePlist.add(eachPlistInsHMap);
}
itemWiseInsPlistHMap.put(itemCode, itemWisePlist);
}
}
}
if(!isPreview)
{
return insertPriceList(itemWiseInsPlistHMap, xtraParams, conn);
}
else
{
return itemWiseInsPlistHMap;
}
}
catch(Exception e)
{
isError = true;
System.out.println("PriceListGenEJB.generateAndInsertPriceList()["+e.getMessage()+"]");
throw new ITMException(e);
}
finally
{
try
{
if(isError)
{
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(rs!=null)
{
rs.close();
rs=null;
}
}
}
catch(SQLException se)
{
System.out.println("PriceListGenEJB.generateAndInsertPriceList()["+se.getMessage()+"]");
throw new ITMException(se);
}
}
}
public String insertPriceList(HashMap<String, ArrayList<HashMap<String, String>>> insertListHMap, String xtraParams, Connection conn) throws ITMException
{
String insertSql = "", sql = "", loginCode = "", chgTerm = "", retString = "";
PreparedStatement insertPstmt = null, pstmt = null;
ResultSet rs = null;
int insertCnt[] = null;
boolean isError = false;
try
{
loginCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode");
chgTerm = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "chgTerm");
if(insertListHMap != null && insertListHMap.size() > 0)
{
Set<String> keySet = insertListHMap.keySet();
insertSql = " INSERT INTO PRICELIST (PRICE_LIST, ITEM_CODE, UNIT, LIST_TYPE, SLAB_NO, EFF_FROM, VALID_UPTO, LOT_NO__FROM, LOT_NO__TO, MIN_QTY, MAX_QTY, RATE, RATE_TYPE, MIN_RATE, CHG_DATE, CHG_USER, CHG_TERM, MAX_RATE, ORDER_TYPE, CHG_REF_NO, PRICE_LIST__PARENT, CALC_BASIS, REF_NO, REF_NO_OLD) "
+ " VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
insertPstmt = conn.prepareStatement(insertSql);
for(String itemCode : keySet)
{
ArrayList<HashMap<String, String>> eachInsPlist = insertListHMap.get(itemCode);
for( HashMap<String, String> eachInsHMap : eachInsPlist )
{
int slabNo = 1;
sql="SELECT MAX(SLAB_NO) FROM PRICELIST WHERE PRICE_LIST = ? AND ITEM_CODE = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, eachInsHMap.get("price_list"));
pstmt.setString(2, itemCode);
rs = pstmt.executeQuery();
if ( rs.next() )
{
slabNo = rs.getInt(1)+1;
}
System.out.println("slabNo@@@@@@@"+slabNo);
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(rs != null)
{
rs.close();
rs = null;
}
insertPstmt.setString(1, eachInsHMap.get("price_list"));
insertPstmt.setString(2, eachInsHMap.get("item_code"));
insertPstmt.setString(3, eachInsHMap.get("unit"));
insertPstmt.setString(4, eachInsHMap.get("list_type"));
insertPstmt.setInt(5, slabNo);
insertPstmt.setTimestamp(6, getTimeStamp(eachInsHMap.get("eff_from")));
insertPstmt.setTimestamp(7, getTimeStamp(eachInsHMap.get("valid_upto")));
insertPstmt.setString(8, "00");
insertPstmt.setString(9, "ZZ");
insertPstmt.setDouble(10, 0);
insertPstmt.setDouble(11, 999999999);
insertPstmt.setDouble(12, getDoubleValue(eachInsHMap.get("rate")));
insertPstmt.setString(13, "F");
insertPstmt.setDouble(14, getDoubleValue(eachInsHMap.get("rate")));
insertPstmt.setTimestamp(15, java.sql.Timestamp.valueOf(genericUtility.getValidDateString(new Date(), genericUtility.getDBDateTimeFormat())));
insertPstmt.setString(16, loginCode);
insertPstmt.setString(17, chgTerm);
insertPstmt.setDouble(18, getDoubleValue(eachInsHMap.get("rate")));
insertPstmt.setString(19, null);
insertPstmt.setString(20, null);
insertPstmt.setString(21, eachInsHMap.get("price_list_parent"));
insertPstmt.setString(22, null);
insertPstmt.setString(23, null);
insertPstmt.setString(24, null);
insertPstmt.addBatch();
insertPstmt.clearParameters();
}
}
insertCnt = insertPstmt.executeBatch();
if(insertCnt!=null)
{
for(int eachRowCnt : insertCnt)
{
System.out.println("PriceList insert cnt ["+eachRowCnt+"]");
}
}
retString = "SUCCESS";
}
}
catch(SQLException se)
{
isError = true;
System.out.println("PriceListGenEJB.insertPriceList().sqlException["+se.getMessage()+"]");
throw new ITMException(se);
}
catch(Exception e)
{
isError = true;
System.out.println("PriceListGenEJB.insertPriceList()["+e.getMessage()+"]");
throw new ITMException(e);
}
finally
{
try
{
if(isError)
{
retString = "FAILURE";
if(insertPstmt != null)
{
insertPstmt.close();
insertPstmt = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(rs != null)
{
rs.close();
rs = null;
}
}
}
catch(SQLException se)
{
System.out.println("PriceListGenEJB.insertPriceList().finally["+se.getMessage()+"]");
throw new ITMException(se);
}
}
System.out.println("FINAL MESSAGE["+retString+"]");
return retString;
}
private java.sql.Timestamp getTimeStamp(String dateStr) throws ITMException, Exception
{
String dbDateStr = "";
if(dateStr != null && !dateStr.equals(""))
{
if(dateStr.indexOf(":") != -1)
{
System.out.println("inside logic"+dateStr);
return java.sql.Timestamp.valueOf(dateStr);
}
else
{
System.out.println("inside ");
dbDateStr = genericUtility.getValidDateTimeString(dateStr, genericUtility.getApplDateFormat(), genericUtility.getDBDateTimeFormat());
return java.sql.Timestamp.valueOf(dbDateStr);
}
}
else
{
return null;
}
}
private double getDoubleValue(String input) throws Exception
{
double value = 0.0;
try
{
if(input == null)
{
value = 0.0;
}
else
{
if(input.trim().length() > 0)
{
value = Double.valueOf(E12GenericUtility.checkNull(input));
}
}
System.out.println("retutn value["+value+"]");
}
catch(Exception e)
{
System.out.println("PriceListGenEJB.getDoubleValue()["+e.getMessage()+"]");
throw e;
}
return value;
}
}
\ No newline at end of file
package ibase.webitm.ejb.dis;
import java.io.StringWriter;
import java.rmi.RemoteException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.naming.InitialContext;
import javax.xml.transform.OutputKeys;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import ibase.system.config.AppConnectParm;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.ValidatorEJB;
import ibase.webitm.utility.ITMException;
import ibase.webitm.utility.TransIDGenerator;
@javax.ejb.Stateless
public class PricelistGenWizEJB extends ValidatorEJB implements PricelistGenWizEJBLocal, PricelistGenWizEJBRemote
{
public String globalXtraParams = "";
@Override
public String itemChanged(String xmlString, String xmlString1, String xmlString2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException, ITMException
{
Document dom = null;
Document dom1 = null;
Document dom2 = null;
String retString = null;
E12GenericUtility genericUtility = new E12GenericUtility();
try
{
globalXtraParams = xtraParams;
if (xmlString != null && xmlString.trim().length()!=0)
{
dom = genericUtility.parseString(xmlString);
}
if (xmlString1 != null && xmlString1.trim().length()!=0)
{
dom1 = genericUtility.parseString(xmlString1);
}
if (xmlString2 != null && xmlString2.trim().length()!=0)
{
dom2 = genericUtility.parseString(xmlString2);
}
retString = itemChanged( dom, dom1, dom2, objContext, currentColumn, editFlag, xtraParams );
}
catch (Exception e)
{
System.out.println ( "Exception :PricelistGenEJB :itemChanged(String,String):" + e.getMessage() + ":" );
retString = genericUtility.createErrorString(e);
}
System.out.println ( "Return String from PricelistGenEJB ["+retString+"]" );
return retString;
}
@Override
public String itemChanged(Document dom, Document dom1, Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException
{
E12GenericUtility e12genericUtility = new E12GenericUtility();
StringBuffer valueXmlString = new StringBuffer();
String productCode="",descr="",loginUser="";
int currentFormNo = 0;
String siteCode = "", currDate = "", retString ="", dateFormat = "",
priceList="",plistParent,orderType="",manageType="",methodType="",freeQty="",freeOn="",discount="",remarks1="", tranType = "A";
boolean selectFlag=false,offerSelect=false;
DistCommon distCommon = new DistCommon();
InitialContext ctx = null;
ResultSet rs=null;
PreparedStatement pstmt=null;
Connection conn = null;
try
{
System.out.println("itemChanged called for PricelistGen");
conn = getConnection();
siteCode = e12genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode");
loginUser=e12genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode");
dateFormat = e12genericUtility.getApplDateFormat();
if( objContext != null && objContext.trim().length() > 0 )
{
currentFormNo = Integer.parseInt( objContext );
}
SimpleDateFormat sdf = new SimpleDateFormat(e12genericUtility.getApplDateFormat());
SimpleDateFormat adf = new SimpleDateFormat(e12genericUtility.getApplDateFormat());
currDate = sdf.format(new java.util.Date());
System.out.println("currDate"+currDate);
System.out.println("currentColumn["+currentColumn+"] currentFormNo["+currentFormNo+"]" );
valueXmlString = new StringBuffer( "<?xml version=\"1.0\"?><Root><Header><editFlag>" );
valueXmlString.append( editFlag ).append( "</editFlag></Header>" );
switch(currentFormNo)
{
case 1:
{
System.out.println(" -------- Inside itemchange case 1111111 ------------ ");
int existCnt=0;
Timestamp effFrom=null,validUpto=null;
if( currentColumn.trim().equalsIgnoreCase( "itm_default" ))
{
System.out.println("loginUser"+loginUser);
String sql = "select count(1) from PRICING_MANAGE where chg_user= ? ";
pstmt=conn.prepareStatement(sql);
pstmt.setString(1,loginUser );
rs=pstmt.executeQuery();
if(rs.next())
{
existCnt=rs.getInt(1);
}
pstmt.close();
pstmt=null;
rs.close();
rs=null;
if(existCnt>0)
{
String getPrvData="Select b.descr,a.product_code,a.eff_from,a.valid_upto,a.remarks,a.offer_free_qty,a.offer_free_on,a.disc_perc,A.tran_type "
+ "from PRICING_MANAGE a,PRODUCT b "
+ "where a.product_code=b.product_code "
+ " and a.chg_user=?";
pstmt=conn.prepareStatement(getPrvData);
pstmt.setString(1, loginUser);
rs=pstmt.executeQuery();
if(rs.next())
{
productCode=E12GenericUtility.checkNull(rs.getString("product_code"));
remarks1=E12GenericUtility.checkNull(rs.getString("remarks"));
freeQty=E12GenericUtility.checkNull(rs.getString("offer_free_qty"));
freeOn=E12GenericUtility.checkNull(rs.getString("offer_free_on"));
discount=E12GenericUtility.checkNull(rs.getString("disc_perc"));
effFrom=rs.getTimestamp("eff_from");
validUpto=rs.getTimestamp("valid_upto");
descr=E12GenericUtility.checkNull(rs.getString("descr"));
tranType = E12GenericUtility.checkNull(rs.getString("tran_type"));
}
pstmt.close();
pstmt=null;
rs.close();
rs=null;
if(discount==null || discount.length()==0 )
{
offerSelect=true;
}
}
valueXmlString.append("<Detail1 domID='1'>");
valueXmlString.append("<tran_date><![CDATA[").append(currDate).append( "]]></tran_date>");
valueXmlString.append("<product_code><![CDATA[" ).append(productCode).append( "]]></product_code>");
valueXmlString.append("<descr><![CDATA[").append(descr).append( "]]></descr>");
if(effFrom!=null)
{
valueXmlString.append("<eff_from><![CDATA[").append(adf.format(effFrom)).append( "]]></eff_from>");
}
else
{
valueXmlString.append("<eff_from><![CDATA[]]></eff_from>");
}
if(validUpto!=null)
{
valueXmlString.append("<valid_upto><![CDATA[").append(adf.format(validUpto)).append( "]]></valid_upto>");
}
else
{
valueXmlString.append("<valid_upto><![CDATA[]]></valid_upto>");
}
valueXmlString.append("<tran_type><![CDATA[").append(tranType).append( "]]></tran_type>");
valueXmlString.append("<remarks><![CDATA[").append(remarks1).append( "]]></remarks>");
valueXmlString.append("<offer_free_qty><![CDATA[").append(freeQty).append( "]]></offer_free_qty>");
valueXmlString.append("<offer_free_on><![CDATA[").append(freeOn).append( "]]></offer_free_on>");
valueXmlString.append("<disc_perc><![CDATA[").append(discount).append( "]]></disc_perc>");
valueXmlString.append("<chg_date><![CDATA[").append("").append( "]]></chg_date>");
valueXmlString.append("<chg_user><![CDATA[").append(loginUser).append( "]]></chg_user>");
valueXmlString.append("<chg_term><![CDATA[").append("").append( "]]></chg_term>");
valueXmlString.append("</Detail1>" );
}
else if("product_code".equalsIgnoreCase(currentColumn))
{
productCode=e12genericUtility.getColumnValue("product_code",dom );
System.out.println("productCode"+productCode);
String sql="Select descr from product where product_code= ?";
pstmt=conn.prepareStatement(sql);
pstmt.setString(1, productCode);
rs=pstmt.executeQuery();
if(rs.next())
{
descr=rs.getString(1);
}
pstmt.close();
pstmt=null;
rs.close();
rs=null;
valueXmlString.append("<Detail1 domID='1'>");
valueXmlString.append("<descr><![CDATA[").append(descr).append( "]]></descr>");
valueXmlString.append("</Detail1>" );
}
break;
}
case 2:
{
System.out.println(" -------- Inside itemchange case 222222 ------------ ");
if( currentColumn.trim().equalsIgnoreCase( "itm_default" ))
{
String nodeName = "";
String custCode = "", custName = "", saleOrder = "", custPO = "", pordDate = "", dlvCity = "", errCode ="", plistType = "",mstprice="",priceListTar="",calcMethod="",listType="";
String effFrom1=null,validUpto1=null,remarks=null,prdCode=null;
Map<String,HashMap<String,String>> detailDataMap = new LinkedHashMap<String,HashMap<String,String>>();
HashMap<String,String> saleOrderDataMap = null;
Set<String> detailDataMapKeySet = new LinkedHashSet<String>();
HashMap<String,ArrayList<HashMap<String, String>>> plistMst=new HashMap<String,ArrayList<HashMap<String, String>>>();
int domID = 0, detDomId = 0,previousCnt=0;
boolean isoffer=false,isdiscount=false;
ArrayList<String> prvPlist=new ArrayList<String>();
String prvdet="Select price_list from PRICING_MANAGE_LIST where chg_user= ?";
pstmt=conn.prepareStatement(prvdet);
pstmt.setString(1, loginUser);
rs=pstmt.executeQuery();
while(rs.next())
{
prvPlist.add(rs.getString("price_list"));
}
System.out.println("Previous pricelist"+prvPlist+"Size"+prvPlist.size());
freeQty=E12GenericUtility.checkNull(e12genericUtility.getColumnValue( "offer_free_qty",dom1));
freeOn=E12GenericUtility.checkNull(e12genericUtility.getColumnValue( "offer_free_on",dom1));
discount=E12GenericUtility.checkNull(e12genericUtility.getColumnValue( "disc_perc",dom1));
System.out.println("freeQty ["+freeQty+"] freeOn ["+freeOn+"] discount["+discount+"]");
effFrom1=e12genericUtility.getColumnValue("eff_from",dom1);
validUpto1=e12genericUtility.getColumnValue("valid_upto",dom1);
tranType=e12genericUtility.getColumnValue("tran_type",dom1);
remarks=e12genericUtility.getColumnValue("remarks",dom1);
prdCode=e12genericUtility.getColumnValue("product_code",dom1);
descr=e12genericUtility.getColumnValue("descr",dom1);
valueXmlString.append("<Detail2 domID='0'>");
valueXmlString.append("<tran_date><![CDATA[").append(currDate).append( "]]></tran_date>");
valueXmlString.append("<product_code><![CDATA[" ).append(prdCode).append( "]]></product_code>");
valueXmlString.append("<eff_from><![CDATA[").append(effFrom1).append( "]]></eff_from>");
valueXmlString.append("<valid_upto><![CDATA[").append(validUpto1).append( "]]></valid_upto>");
valueXmlString.append("<tran_type><![CDATA[").append(tranType).append( "]]></tran_type>");
valueXmlString.append("<remarks><![CDATA[").append(remarks).append( "]]></remarks>");
valueXmlString.append("<offer_free_qty><![CDATA[").append(freeQty).append( "]]></offer_free_qty>");
valueXmlString.append("<offer_free_on><![CDATA[").append(freeOn).append( "]]></offer_free_on>");
valueXmlString.append("<disc_perc><![CDATA[").append(discount).append( "]]></disc_perc>");
valueXmlString.append("<descr><![CDATA[").append(descr).append( "]]></descr>");
valueXmlString.append("</Detail2>" );
if( discount.trim().length() > 0 )
{
plistType="D";
}
else
{
plistType="O";
}
mstprice=distCommon.getDisparams("999999", "MRP", conn);
System.out.println("mstprice"+mstprice);
String sql="select a.descr,a.list_type,b.price_list__tar, b.price_list__parent, b.calc_method"
+ " from tarodev.pricelist_mst a, tarodev.pricelist_mst_det b"
+ " where a.price_list=b.price_list and b.price_list = ?";
pstmt=conn.prepareStatement(sql);
pstmt.setString(1, mstprice);
rs=pstmt.executeQuery();
while(rs.next())
{
priceListTar=checkNull(rs.getString("price_list__tar"));
plistParent=rs.getString("price_list__parent");
calcMethod=rs.getString("calc_method");
listType=rs.getString("list_type");
//descr=checkNull(rs.getString("descr"));
HashMap<String, String> eachPlist=new HashMap<String, String>();
eachPlist.put("descr", getDescription(priceListTar, conn));
eachPlist.put("calc_method",calcMethod);
eachPlist.put("list_type",getListType(priceListTar, conn));
eachPlist.put("isSelected","false");
if(plistParent!=null )
{
eachPlist.put("plist", priceListTar);
if(plistMst.containsKey(plistParent))
{
ArrayList<HashMap<String, String>> temp=new ArrayList<HashMap<String, String>>();
temp=plistMst.get(plistParent);
if(prvPlist.contains(priceListTar))
{
eachPlist.put("isSelected","true");
}
temp.add(eachPlist);
System.out.println("parent key found"+temp);
plistMst.replace(plistParent,temp);
}
else
{
HashMap<String, String> eachPlistparent=new HashMap<String, String>();
eachPlistparent.put("plist", plistParent);
eachPlistparent.put("descr", getDescription(plistParent, conn));
eachPlistparent.put("calc_method",calcMethod);
eachPlistparent.put("list_type",getListType(plistParent, conn));
if(prvPlist.contains(priceListTar))
{
eachPlist.put("isSelected","true");
}
else
{
eachPlist.put("isSelected","false");
}
ArrayList<HashMap<String, String>> n1=new ArrayList<HashMap<String, String>>();
n1.add(eachPlist);
n1.add(eachPlistparent);
plistMst.put(plistParent, n1);
}
}
else
{
eachPlist.put("plist",priceListTar);
if(prvPlist.contains(priceListTar))
{
System.out.println("inside true");
eachPlist.put("isSelected","true");
}
ArrayList<HashMap<String,String>> n1=new ArrayList<HashMap<String,String>>();
n1.add(eachPlist);
plistMst.put(priceListTar, n1);
}
priceList=null;
plistParent=null;
descr=null;
}
pstmt.close();
pstmt=null;
rs.close();
rs=null;
System.out.println("hasmap final"+plistMst);
Set <String> plistmstkeys = plistMst.keySet();
for(String eachplistkey : plistmstkeys)
{
ArrayList<HashMap<String,String>> getplist = plistMst.get(eachplistkey);
int listLength = getplist.size();
/*for(HashMap<String,String> itr: getplist)
{*/
HashMap<String, String> itr=getplist.get(0);
if(listLength==1 )
{
domID++;
valueXmlString.append("<Detail2 domID='"+(++detDomId)+"'>");
valueXmlString.append("<price_list><![CDATA[").append(itr.get("plist")).append( "]]></price_list>");
valueXmlString.append("<descr><![CDATA[").append(itr.get("descr")).append( "]]></descr>");
valueXmlString.append("<is_expandable><![CDATA[").append("false").append( "]]></is_expandable>");
valueXmlString.append("<is_selected><![CDATA[").append(itr.get("isSelected")).append( "]]></is_selected>");
valueXmlString.append("<plist_type><![CDATA[").append(plistType).append( "]]></plist_type>");
valueXmlString.append("<list_type><![CDATA[").append(itr.get("list_type")).append( "]]></list_type>");
valueXmlString.append("<dom_id><![CDATA[").append(domID).append( "]]></dom_id>");
valueXmlString.append("<offer_free_qty><![CDATA[").append(freeQty).append( "]]></offer_free_qty>");
valueXmlString.append("<offer_free_on><![CDATA[").append(freeOn).append( "]]></offer_free_on>");
valueXmlString.append("<calc_method><![CDATA[").append(itr.get("calc_method")).append( "]]></calc_method>");
valueXmlString.append("<disc_perc><![CDATA[").append(discount).append( "]]></disc_perc>");
}
else
{
String firstplist = "";
for(HashMap<String,String> itr1: getplist)
{
firstplist = itr1.get("plist");
String firstDescr = itr1.get("descr");
if( firstplist.equalsIgnoreCase(eachplistkey) )
{ valueXmlString.append("<Detail2 domID='"+(++detDomId)+"'>");
valueXmlString.append("<price_list><![CDATA[").append(firstplist).append( "]]></price_list>");
valueXmlString.append("<descr><![CDATA[").append(firstDescr).append( "]]></descr>");
valueXmlString.append("<is_expandable><![CDATA[").append("true").append( "]]></is_expandable>");
break;
}
}
valueXmlString.append("<plist_childs>");
int i=0;
for(HashMap<String, String> eachHMap : getplist)
{
firstplist = eachHMap.get("plist");
if( ! firstplist.equalsIgnoreCase(eachplistkey) )
{ i++;
domID++;
valueXmlString.append("<plist>");
valueXmlString.append("<price_list><![CDATA[").append(eachHMap.get("plist")).append( "]]></price_list>");
valueXmlString.append("<descr><![CDATA[").append(eachHMap.get("descr")).append( "]]></descr>");
valueXmlString.append("<is_selected><![CDATA[").append(eachHMap.get("isSelected")).append( "]]></is_selected>");
valueXmlString.append("<plist_type><![CDATA[").append(plistType).append( "]]></plist_type>");
valueXmlString.append("<list_type><![CDATA[").append(eachHMap.get("list_type")).append( "]]></list_type>");
valueXmlString.append("<offer_free_qty><![CDATA[").append(freeQty).append( "]]></offer_free_qty>");
valueXmlString.append("<offer_free_on><![CDATA[").append(freeOn).append( "]]></offer_free_on>");
valueXmlString.append("<calc_method><![CDATA[").append(eachHMap.get("calc_method")).append( "]]></calc_method>");
valueXmlString.append("<disc_perc><![CDATA[").append(discount).append( "]]></disc_perc>");
valueXmlString.append("<dom_id><![CDATA[").append(domID).append( "]]></dom_id>");
valueXmlString.append("</plist>");
System.out.println("Inside loop before increment"+domID);
System.out.println("after increment"+domID);
}
}
valueXmlString.append("</plist_childs>");
}
valueXmlString.append("</Detail2>");
}
}
break;
}
case 3:
{
HashMap<String,ArrayList<HashMap<String, String>>> plistmstrate;
List<String> itemCodeList = new ArrayList<String>();
LinkedHashMap<String, ArrayList<HashMap<String,String>>> plistWiseHMap = new LinkedHashMap<>();
System.out.println(" -------- Inside itemchange case 33333 ------------ ");
if( currentColumn.trim().equalsIgnoreCase( "itm_default" ))
{
plistmstrate=insertDB(dom, dom1, dom2,loginUser,xtraParams,conn);
Set <String> itemcodekey = plistmstrate.keySet();
valueXmlString.append("<Detail3 domID='1'><price_list><![CDATA[]]></price_list>");
int index=1;
for(String eachplistkey : itemcodekey)
{
valueXmlString.append("<item_det"+index+"><![CDATA["+eachplistkey+"]]></item_det"+index+">");
index++;
itemCodeList.add(eachplistkey);
}
valueXmlString.append("</Detail3>");
for(String eachItemCode : itemCodeList)
{
ArrayList<HashMap<String, String>> tempList = plistmstrate.get(eachItemCode);
for(HashMap<String,String> tempHMap : tempList)
{
String priceListKey = tempHMap.get("price_list");
if(plistWiseHMap.containsKey(priceListKey))
{
ArrayList<HashMap<String, String>> oldList = plistWiseHMap.get(priceListKey);
oldList.add(tempHMap);
plistWiseHMap.put(priceListKey, oldList);
}
else
{
ArrayList<HashMap<String, String>> tempList1 = new ArrayList<>();
tempList1.add(tempHMap);
plistWiseHMap.put(priceListKey, tempList1);
}
}
}
Set<String> plistKeySet = plistWiseHMap.keySet();
int domID = 1;
for(String eachPriceList : plistKeySet)
{
ArrayList<HashMap<String, String>> plistWiseList = plistWiseHMap.get(eachPriceList);
valueXmlString.append("<Detail3 domID='"+(++domID)+"'><price_list><![CDATA["+eachPriceList+"]]></price_list>");
index = 1;
for(HashMap<String, String> eachPlistWiseHMap : plistWiseList)
{
valueXmlString.append("<item_rate"+index+"><![CDATA["+eachPlistWiseHMap.get("rate")+"]]></item_rate"+index+">");
index++;
}
valueXmlString.append("</Detail3>");
}
}
}
}
valueXmlString.append( "</Root>" );
}
catch(Exception e)
{
System.out.println("PricelistGenEJB.itemChanged():catchBlock"+e.getMessage());
e.printStackTrace();
}
finally
{
try
{
if(!conn.isClosed() && conn != null)
{
conn.close();
conn = null;
}
}
catch(Exception e)
{
System.out.println("PricelistGenEJB.itemChanged():finally block");
e.printStackTrace();
}
}
return valueXmlString.toString();
}
@Override
public String wfValData(String xmlString, String xmlString1, String xmlString2, String objContext,String editFlag, String xtraParams) throws RemoteException, ITMException
{
String errString = "";
Document dom = null;
Document dom1 = null;
Document dom2 = null;
System.out.println("PricelistGenEJB.wfValData()");
System.out.println("xmlString :"+xmlString);
System.out.println("xmlString1 :"+xmlString1);
System.out.println("xmlString2 :"+xmlString2);
System.out.println("objContext :"+objContext);
System.out.println("editFlag :"+editFlag);
System.out.println("xtraParams :"+xtraParams);
try
{
if (xmlString != null && xmlString.trim().length() > 0)
{
dom = parseString(xmlString);
}
if (xmlString1 != null && xmlString1.trim().length() > 0)
{
dom1 = parseString(xmlString1);
}
if (xmlString2 != null && xmlString2.trim().length() > 0)
{
dom2 = parseString(xmlString2);
}
System.out.println("Before calling function wfvalData****");
errString = wfValData(dom, dom1, dom2, objContext, editFlag, xtraParams);
System.out.println("After calling method wfVAlData Error String===="+errString);
}
catch (Exception e)
{
System.out.println("Exception : [PricelistGenEJB][wfValData( String, String )] :==>\n" + e.getMessage());
throw new ITMException(e);
}
return (errString);
}
@Override
public String wfValData(Document currFormDataDom, Document hdrDataDom, Document allFormDataDom, String objContext, String editFlag, String xtraParams)throws RemoteException, ITMException
{
String errString = "";
int currentFormNo = 0;
NodeList parentNodeList = null;
NodeList childNodeList = null;
String childNodeName = null;
Node parentNode = null;
int childNodeListLength;
Node childNode = null;
String errCode=null,errorType=null,productCode=null,userId=null;
int ctr=0,count=0,cnt=0;
E12GenericUtility e12genericUtility = new E12GenericUtility();
ArrayList <String> errList = new ArrayList<String>();
ArrayList <String>errFields = new ArrayList <String> ();
ResultSet rs=null;
PreparedStatement pstmt=null;
StringBuffer errStringXml = new StringBuffer("<?xml version=\"1.0\"?>\r\n<Root><Errors>");
Connection conn = null;
try
{
conn=getConnection();
userId = e12genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginCode");
if (objContext != null && objContext.trim().length() > 0)
{
currentFormNo = Integer.parseInt(objContext);
System.out.println("currentFormNo ["+currentFormNo+"]");
}
switch (currentFormNo)
{
case 1:
{
parentNodeList = currFormDataDom.getElementsByTagName("Detail1");
parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes();
childNodeListLength = childNodeList.getLength();
for(ctr = 0; ctr < childNodeListLength; ctr++)
{
childNode = childNodeList.item(ctr);
childNodeName = childNode.getNodeName();
System.out.println("Child name --->> "+childNodeName);
if(childNodeName.equalsIgnoreCase("product_code"))
{
productCode=e12genericUtility.getColumnValue("product_code", currFormDataDom);
String sql="Select count(*) from product where product_code= ?";
pstmt=conn.prepareStatement(sql);
pstmt.setString(1, productCode);
rs=pstmt.executeQuery();
if(rs.next())
{
count=rs.getInt(1);
}
pstmt.close();
pstmt=null;
rs.close();
rs=null;
if(count==0)
{
errCode="VTNFBYPROD";
errList.add( errCode );
errFields.add( childNodeName.toLowerCase() );
}
}
}
System.out.println("errString["+errString+"]");
break;
}
case 2:
{
System.out.println("errString["+errString+"]");
break;
}
}
int errListSize = errList.size();
cnt =0;
String errFldName = null;
if ( errList != null && errListSize > 0 )
{
for (cnt = 0; cnt < errListSize; cnt++ )
{
errCode = errList.get(cnt);
errFldName = errFields.get(cnt);
System.out.println("errCode .........."+errCode);
errString = getErrorString( errFldName, errCode, userId );
errorType = errorType( conn, errCode );
if ( errString.length() > 0)
{
String bifurErrString = errString.substring( errString.indexOf("<Errors>") + 8,errString.indexOf("<trace>"));
bifurErrString =bifurErrString+errString.substring( errString.indexOf("</trace>") + 8,errString.indexOf("</Errors>"));
errStringXml.append(bifurErrString);
System.out.println("errStringXml .........."+errStringXml);
errString = "";
}
if ( errorType.equalsIgnoreCase("E"))
{
break;
}
}
errList.clear();
errList = null;
errFields.clear();
errFields = null;
errStringXml.append("</Errors></Root>\r\n");
}
else
{
errStringXml = new StringBuffer( "" );
}
}
catch(Exception e)
{
System.out.println("PricelistGenEJB.wfValData()");
e.printStackTrace();
}
return errStringXml.toString();
}
@Override
public String handleRequest(HashMap<String, String> reqParamMap)
{
String action = "", retXMLStr = "";
try
{
action = (String)reqParamMap.get("action");
if("ITEM_CHANGE".equalsIgnoreCase(action))
{
String currXmlDataStr = "", hdrXmlDataStr = "", allXmlDataStr = "", currentColumn = "", objContext = "", editFlag = "";
currXmlDataStr = (String)reqParamMap.get("CUR_XML_STR");
hdrXmlDataStr = (String)reqParamMap.get("HDR_XML_STR");
allXmlDataStr = (String)reqParamMap.get("ALL_XML_STR");
currentColumn = (String)reqParamMap.get("CUR_COLUMN");
objContext = (String)reqParamMap.get("OBJ_CONTEXT");
editFlag = (String)reqParamMap.get("EDIT_FLAG");
retXMLStr = itemChanged(currXmlDataStr, hdrXmlDataStr, allXmlDataStr, objContext, currentColumn, editFlag, globalXtraParams);
System.out.println("retXMLStr["+retXMLStr+"] for action ["+action+"]");
}
}
catch(Exception e)
{
System.out.println("PricelistGenEJB.handleRequest()"+e.getMessage());
e.printStackTrace();
}
return retXMLStr;
}
private static String checkNull(String input)
{
if (input==null)
{
input="";
}
return input;
}
public InitialContext getInitialContext()throws ITMException
{
InitialContext ctx = null;
try
{
AppConnectParm appConnect = new AppConnectParm();
ctx = new InitialContext(appConnect.getProperty());
}
catch(ITMException itme)
{
System.out.println("PricelistGenEJB.getInitialContext()");
throw itme;
}
catch(Exception e)
{
System.out.println("PricelistGenEJB.getInitialContext()"+e.getMessage());
throw new ITMException(e);
}
return ctx;
}
public String getValue(String lineItemStr, String column) throws ITMException
{
String retValue = "";
Document lineDom = null;
try
{
lineDom =new E12GenericUtility().parseString("<detail>"+lineItemStr+"</detail>");
retValue = lineDom.getElementsByTagName(column).item(0).getTextContent();
}
catch(Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
return retValue;
}
private static String checkNullAndTrim(String input)
{
if (input==null)
{
input="";
}
return input.trim();
}
private String errorType( Connection conn , String errorCode )
{
String msgType = "";
PreparedStatement pstmt = null ;
ResultSet rs = null;
try
{
String sql = " SELECT MSG_TYPE FROM MESSAGES WHERE MSG_NO = ? ";
pstmt = conn.prepareStatement( sql );
pstmt.setString(1, checkNull(errorCode));
rs = pstmt.executeQuery();
while( rs.next() )
{
msgType = rs.getString("MSG_TYPE");
}
}
catch (Exception ex)
{
ex.printStackTrace();
}
finally
{
try
{
if ( rs != null )
{
rs.close();
rs = null;
}
if ( pstmt != null )
{
pstmt.close();
pstmt = null;
}
}
catch ( Exception e )
{
e.printStackTrace();
}
}
return msgType;
}
@SuppressWarnings("unchecked")
public HashMap<String,ArrayList<HashMap<String,String>>> insertDB(Document dom,Document dom1,Document dom2,String loginUser,String xtraParams,Connection conn) throws SQLException
{
String tranId="",qty="",qtyFreeOn="",tranType=null,discPerc=null,productCode=null,remarks=null,priceList=null,plistParent=null,listType=null,calcMethod=null,mstprice=null;
int lineNo=0,headcnt=0,hdelcnt=0,detdelcnt=0;
int [] batchCount;
ArrayList<HashMap<String, String>> targetPlist =new ArrayList();
HashMap<String, ArrayList<HashMap<String, String>>> generateAndInsertPriceList=new HashMap();
String xmlValues=null,uniqueKey = null;
Timestamp effFrom=null,validUpto=null,tranDate=null,currDate=null,currAppdate=null;
E12GenericUtility genericUtility=new E12GenericUtility();
PreparedStatement pstmt=null,pstmt1=null;
Statement stmt=null;
ResultSet rs=null,rs1=null;
DistCommon distCommon = new DistCommon();
boolean isError = false;
try
{
mstprice=distCommon.getDisparams("999999", "MRP", conn);
StringWriter sw = new StringWriter();
TransformerFactory tf = TransformerFactory.newInstance();
Transformer transformer = tf.newTransformer();
transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "no");
transformer.setOutputProperty(OutputKeys.METHOD, "xml");
transformer.setOutputProperty(OutputKeys.INDENT, "yes");
transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8");
transformer.transform(new DOMSource(dom2), new StreamResult(sw));
System.out.println("All DOM"+sw.toString());
SimpleDateFormat sdf1 = new SimpleDateFormat(genericUtility.getDBDateFormat());
qty=genericUtility.getColumnValue("offer_free_qty", dom1);
productCode=genericUtility.getColumnValue("product_code", dom1);
qtyFreeOn=genericUtility.getColumnValue("offer_free_on", dom1);
remarks=genericUtility.getColumnValue("remarks", dom1);
currDate = new java.sql.Timestamp(System.currentTimeMillis()) ;
currAppdate=java.sql.Timestamp.valueOf(sdf1.format(currDate) + " 00:00:00.000");
System.out.println("currAppdate"+currAppdate);
//Deleting previous Data
String sqldel = "DELETE FROM PRICING_MANAGE WHERE chg_user = ? ";
pstmt=conn.prepareStatement(sqldel);
pstmt.setString(1,loginUser);
hdelcnt=pstmt.executeUpdate();
pstmt.close();
pstmt=null;
String sqldeldet = "DELETE FROM PRICING_MANAGE_LIST WHERE chg_user = ? ";
pstmt=conn.prepareStatement(sqldeldet);
pstmt.setString(1,loginUser);
detdelcnt=pstmt.executeUpdate();
pstmt.close();
pstmt=null;
System.out.println("hdelcnt["+hdelcnt+"] detdelcnt["+detdelcnt+"]");
effFrom = Timestamp.valueOf(genericUtility.getValidDateString(genericUtility.getColumnValue("eff_from", dom1), genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()) + " 00:00:00.0");
validUpto = Timestamp.valueOf(genericUtility.getValidDateString(genericUtility.getColumnValue("valid_upto", dom1), genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()) + " 00:00:00.0");
System.out.println("Eff_From"+effFrom);
System.out.println("valid_upto"+validUpto);
tranType=genericUtility.getColumnValue("tran_type", dom1);
discPerc=genericUtility.getColumnValue("disc_perc", dom1);
String keyStringQuery = "SELECT KEY_STRING, TRAN_ID_COL, REF_SER FROM TRANSETUP WHERE UPPER(TRAN_WINDOW) = 'W_PLISTGEN_WIZ'";
pstmt = conn.prepareStatement(keyStringQuery);
rs = pstmt.executeQuery();
String tranSer1 = "";
String keyString = "";
String keyCol = "";
//String uniqueKey = null;
String insertSql = "";
String updateSql = "";
int insertCnt = 0;
int updateCnt = 0;
if (rs.next()) {
keyString = rs.getString(1);
keyCol = rs.getString(2);
tranSer1 = rs.getString(3);
}
xmlValues = "<?xml version=\"1.0\" encoding=\"utf-8\"?><Root>";
xmlValues = xmlValues + "<Header></Header>";
xmlValues = xmlValues + "<Detail1>";
xmlValues = xmlValues + "</Detail1></Root>";
System.out.println("xmlValues :[" + xmlValues + "]");
TransIDGenerator tg = new TransIDGenerator(xmlValues, "BASE",
"");
uniqueKey = tg.generateTranSeqID("P-WIZ", keyCol, keyString,
conn);
System.out.println("uniqueKey :" + uniqueKey);
String sql="Insert into pricing_manage(tran_id,tran_date,product_code,eff_from,valid_upto,remarks,tran_type,offer_free_qty,offer_free_on,disc_perc,chg_user) values(?,?,?,?,?,?,?,?,?,?,?)";
pstmt=conn.prepareStatement(sql);
pstmt.setString(1, uniqueKey);
pstmt.setTimestamp(2, currAppdate);
pstmt.setString(3, productCode);
pstmt.setTimestamp(4, effFrom);
pstmt.setTimestamp(5, validUpto);
pstmt.setString(6, checkNull(remarks));
pstmt.setString(7, checkNull(tranType));
pstmt.setString(8, checkNull(qty));
pstmt.setString(9, checkNull(qtyFreeOn));
pstmt.setString(10, checkNull(discPerc));
pstmt.setString(11, checkNull(loginUser));
System.out.println("uniqueKey["+uniqueKey+"] currAppdate["+currAppdate+"] productCode["+productCode+"] effFrom["+effFrom+"] "
+ "validUpto["+validUpto+"]remarks["+remarks+"]tranType"+tranType+"] qty["+qty+"]qtyFreeOn["+qtyFreeOn+"]discPerc["+discPerc+"]");
headcnt=pstmt.executeUpdate();
pstmt.close();
pstmt=null;
rs.close();
rs=null;
Node currDetail=null;
NodeList detailList = dom2.getElementsByTagName("Detail2");
int noOfDetails = detailList.getLength();
String sql2="Insert into PRICING_MANAGE_LIST(tran_id,line_no,price_list,price_list__parent,offer_free_qty,offer_free_on,disc_perc,chg_user) "
+ "values(?,?,?,?,?,?,?,?)";
pstmt=conn.prepareStatement(sql2);
for(int ctr = 0; ctr < noOfDetails; ctr++)
{
lineNo++;
currDetail = detailList.item(ctr);
HashMap<String,String> eachPlist=new HashMap();
qty=genericUtility.getColumnValueFromNode("offer_free_qty", currDetail);
qtyFreeOn=genericUtility.getColumnValueFromNode("offer_free_on", currDetail);
discPerc=genericUtility.getColumnValueFromNode("disc_perc", currDetail);
priceList=genericUtility.getColumnValueFromNode("price_list", currDetail);
plistParent=genericUtility.getColumnValueFromNode("price_list__parent", currDetail);
listType=genericUtility.getColumnValueFromNode("list_type", currDetail);
calcMethod=genericUtility.getColumnValueFromNode("calc_method", currDetail);
eachPlist.put("price_list_mrp", mstprice);
eachPlist.put("price_list_tar", priceList);
eachPlist.put("price_list_parent", plistParent);
eachPlist.put("calc_method", calcMethod);
eachPlist.put("free_qty", checkNull(qty));
eachPlist.put("free_on_qty", checkNull(qtyFreeOn));
eachPlist.put("disc_perc", checkNull(discPerc));
eachPlist.put("list_type", checkNull(listType));
targetPlist.add(eachPlist);
System.out.println("ctr"+lineNo+"]qty["+qty+"] qtyFreeOn["+qtyFreeOn+"] discPerc["+discPerc+"] priceList["+priceList+"] plistParent["+plistParent+"]");
/*String sql2="Insert into PRICING_MANAGE_LIST(tran_id,line_no,price_list,price_list_parent,offer_free_qty,offer_free_on,disc_perc) "
+ "values(?,?,?,?,?,?,?)";*/
pstmt.setString(1,uniqueKey);
pstmt.setInt(2,lineNo);
pstmt.setString(3,checkNull(priceList));
pstmt.setString(4,checkNull(plistParent));
pstmt.setString(5,checkNull(qty));
pstmt.setString(6,checkNull(qtyFreeOn));
pstmt.setString(7,checkNull(discPerc));
pstmt.setString(8,checkNull(loginUser));
pstmt.addBatch();
qty=null;
qtyFreeOn=null;
discPerc=null;
priceList=null;
plistParent=null;
}
System.out.println("sending ArrayList"+targetPlist);
PricelistGenEJB ins = new PricelistGenEJB();
Object retObj = ins.generateAndInsertPriceList(productCode, targetPlist, genericUtility.getColumnValue("eff_from", dom1), genericUtility.getColumnValue("valid_upto", dom1), xtraParams, true, conn);
if(retObj instanceof HashMap<?, ?>)
{
generateAndInsertPriceList = (HashMap<String, ArrayList<HashMap<String, String>>>) retObj;
}
System.out.println("generateAndInsertPriceList"+generateAndInsertPriceList);
batchCount=pstmt.executeBatch();
if(batchCount.length==lineNo && headcnt==1 && hdelcnt>0 && detdelcnt>0)
{
System.out.println("Returning true");
return generateAndInsertPriceList;
}
pstmt.close();
pstmt=null;
}
catch(Exception e)
{
isError = true;
System.out.println(e.getMessage());
}
finally
{
try
{
if(!isError)
{
if(conn != null)
{
conn.commit();
}
}
else
{
if(conn!=null)
{
conn.rollback();
}
}
}
catch(SQLException se)
{
System.out.println("PricelistGenWizEJB.insertDB()["+se.getMessage()+"]");
throw se;
}
}
return generateAndInsertPriceList;
}
public String getDescription(String pricelist,Connection conn)
{
String result="";
PreparedStatement pstmt=null;
ResultSet rs=null;
try
{
String sql="Select descr from pricelist_mst where price_list= ?";
pstmt=conn.prepareStatement(sql);
pstmt.setString(1,pricelist );
rs=pstmt.executeQuery();
if(rs.next())
{
result=E12GenericUtility.checkNull(rs.getString(1));
}
pstmt.close();
pstmt=null;
rs.close();
rs=null;
}
catch(Exception e)
{
System.out.println(e.getMessage());
}
return result;
}
public String getListType(String pricelist,Connection conn)
{
String result="";
PreparedStatement pstmt=null;
ResultSet rs=null;
try
{
String sql="Select list_type from pricelist_mst where price_list = ?";
pstmt=conn.prepareStatement(sql);
pstmt.setString(1,pricelist );
rs=pstmt.executeQuery();
if(rs.next())
{
result= E12GenericUtility.checkNull(rs.getString(1));
}
pstmt.close();
pstmt=null;
rs.close();
rs=null;
}
catch(Exception e)
{
System.out.println(e.getMessage());
}
return result;
}
}
\ No newline at end of file
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;
}
var userTheme='galaxy-theme';
var popHelpId = '',curFieldVal='';
var isServerBusy = false;
var httpRequest;
var xmlHTTPResponse;
var global_date_type = "date";
var global_date_format = "dd/MM/yyyy";
var preErrData = "";
var sorttable = "";
var divArray = new Array();
var lastSerachSuggestionMap = {};
var prevRemoveEnable = "";
var servletUrl = "/ibase/PlistgenWizServlet?";
var preFieldVal = "";
if (window.ActiveXObject) /*code for IE6, IE5*/
{
httpRequest = new ActiveXObject("Microsoft.XMLHTTP");
}
else if (window.XMLHttpRequest) /*code for IE7+, Firefox, Chrome, Opera, Safari*/
{
httpRequest = new XMLHttpRequest();
}
function getListOfValues(fieldName,fieldId,siteCode)
{
var url = "";
popHelpId = fieldId;
if(document.getElementById(popHelpId).value.trim() != "" || document.getElementById(popHelpId).value != null)
{
curFieldVal = document.getElementById(popHelpId).value;
}
var addObjName = "&OBJ_NAME=plistgen_wiz";
url = "/ibase/webitm/jsp/PopUp.jsp?FIELDNAME="+escape(fieldName)+"&KEYSTRING=NULL"+addObjName;
var fullwidth = eval(screen.width)/2-130;
var iFrame = '<iframe id="popHelpIframe" name ="popHelpIframe" src="'+url+'" style = "width:'+fullwidth+'; height: 100%; border: 0px; bottom:0%;"></iframe>';
var popHlpCntnr = document.getElementById( "popHelpContainer" );
popHlpCntnr.innerHTML = iFrame;
popHlpCntnr.setAttribute( "style", "position: absolute; z-index: 1004; visibility:visible;width:"+fullwidth+";height: 98%; float: right; right: 0%; bottom:1%");
var overlay = document.getElementById( "overlay" );
overlay.setAttribute( "style", "position: fixed; top: 0; right: 0; bottom: 0; left: 0; background-color:#000; opacity: .45; z-index:1003; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;");
if(prevRemoveEnable!= "")
{
prevRemoveEnable.style.visibility = "hidden";
}
}
function assignValue(value)
{
document.getElementById(popHelpId).value = value;
document.getElementById(popHelpId).focus();
document.getElementById(popHelpId).blur();
}
function closeMe()
{
document.getElementById("popHelpContainer").style.display='none';
document.getElementById("popHelpContainer").innerHTML = '';
var overlay = document.getElementById( "overlay" );
overlay.removeAttribute('style');
}
function getAutoPopupData(curObj)
{
if(curObj != undefined)
{
if(curObj.value.length == 4 )
{
var curFieldName = curObj.attributes.popupFldName.value;
var addObjName = "&OBJ_NAME=plistgen_wiz";
var urlParamString = "";
var searchListURL = "/ibase/PopupDataServlet?FIELDNAME="+escape(curFieldName)+"&KEYSTRING=NULL"+addObjName;
var searchKey = curFieldName+"~~SEP~~"+urlParamString;
if ( searchKey in lastSerachSuggestionMap )
{
console.log("From lastSerachSuggestionMap");
console.log("searchKey - ["+ searchKey +"], lastSerachSuggestionMap - ["+ lastSerachSuggestionMap[searchKey] +"]");
parseJsonData(lastSerachSuggestionMap[searchKey]);
showAutoSerach(curObj);
}
else
{
console.log("From server");
$.ajax({
async : false,
url : searchListURL,
dataType : 'xml',
type : 'POST',
success : function(result) {
lastSerachSuggestionMap[searchKey] = result;
parseJsonData( result );
showAutoSerach( curObj);
console.log("searchKey in else - ["+ searchKey +"], lastSerachSuggestionMap - ["+ lastSerachSuggestionMap[searchKey] +"]");
},
error : function(result) {
}
});
}
}
}
}
function parseJsonData(result)
{
searchList = [];
var default_col = 0;
if ( result.getElementsByTagName('DEFAULT_COL')[0].childNodes != undefined )
{
default_col = (result.getElementsByTagName('DEFAULT_COL')[0].childNodes[0].nodeValue) - 1;
}
var detail = result.getElementsByTagName('DETAIL');
if (detail != undefined)
{
for ( var i = 0; i < detail.length; i++)
{
var nodes = detail[i].childNodes;
var id = "", value = "";
var searchData = {};
var detailData = "";
if (nodes != undefined)
{
for ( var j = 0; j < nodes.length; j++ )
{
id = nodes[default_col].childNodes[0].nodeValue;
if ( nodes[j].childNodes[0].nodeValue != "" )
{
value = value + nodes[j].childNodes[0].nodeValue + " | ";
}
if ( nodes[j].childNodes[0].nodeValue != "" )
{
detailData = nodes[j].childNodes[0].nodeValue;
}
else
{
detailData = "-";
}
searchData['imgPth'] = detail[i].attributes.imagePath.value.trim();
searchData['id'] = id.trim();
searchData['label'] = value.trim();
searchData['value'] = id.trim();
searchData[nodes[j].nodeName] = detailData;
}
searchList.push(searchData);
}
}
}
}
function showAutoSerach(element)
{
try
{
$.widget('custom.mcautocomplete', $.ui.autocomplete, {
_create: function() {
this._super();
this.widget().menu( "option", "items", "> :not(.ui-widget-header)" );
},
_renderMenu: function(ul, items) {
var self = this, thead;
if (this.options.showHeader) {
table=$('<div class="ui-widget-header" style="width:100%"></div>');
$.each(this.options.columns, function(index, item) {
table.append('<span style="padding:0 4px;float:left;width:' + item.width + ';">' + item.name + '</span>');
});
table.append('<div style="clear: both;"></div>');
ul.append(table);
}
$.each(items, function(index, item) {
self._renderItem(ul, item);
self._renderItem1(ul, item);
});
},
_renderItem: function(ul, item) {
var data = '',
result = '';
var iconData = '';
for ( var i in item)
{
if( i == 'imgPth')
{
if(item[i].trim() != '')
{
iconData += '<span><img class="feedImgPnl" src='+item[i].trim()+'></img></span>';
}
}
if (item[i] != undefined && i != 'value' && i != 'label' && i != 'id' && i != 'imgPth')
{
if(divArray[i] != null && divArray[i]!= undefined && divArray[i] < item[i].length)
{
divArray[i] = item[i].length;
}
else
{
if(divArray[i] == null)
{
divArray[i] = item[i].length;
}
}
var divLen = 0;
divLen = divArray[i];
divLen = divLen * 10;
data += '<span class="myClass'+i+'">' + item[i] + '</span>';
$('.myClass'+i).css('padding', '0 4px');
$('.myClass'+i).css('float', 'left');
$('.myClass'+i).css('width', divLen+"px");
$('.myClass'+i).css('position', 'relative');
$('.myClass'+i).css('display', 'inline-block');
}
}
result = $('<li></li>')
.data('ui-autocomplete-item', item)
.append('<a class="mcacAnchor" style="width:700px;"><div style="float:left;padding-right:4px;">'+iconData+'</div><div style="width:700px;height:32px;line-height:32px">' + data + '<div style="clear: both;"></div></div></a>')
.appendTo(ul);
return result;
},
_renderItem1: function(ul, item) {
var data = '',
result = '';
for ( var i in item)
{
if (item[i] != undefined && i != 'value' && i != 'label' && i != 'id')
{
if(divArray[i] != null && divArray[i]!= undefined && divArray[i] < item[i].length)
{
divArray[i] = item[i].length;
}
else
{
if(divArray[i] == null)
{
divArray[i] = item[i].length;
}
}
var divLen = 0;
divLen = divArray[i];
divLen = divLen * 10;
data += '<span class="myClass'+i+'">' + item[i] + '</span>';
$('.myClass'+i).css('padding', '0 4px');
$('.myClass'+i).css('float', 'left');
$('.myClass'+i).css('width', divLen+"px");
$('.myClass'+i).css('position', 'relative');
$('.myClass'+i).css('display', 'inline-block');
}
}
}
});
$( element )
.mcautocomplete({
autoFocus: true,
showHeader: false,
source : searchList,
minLength :3,
select : function(event, ui) {
document.getElementById(element.id).value = ui.item.id;
},
});
if(!$( element ).mcautocomplete( "widget" ).is( ":visible" ))
{
$( element ).mcautocomplete("search", "");
}
}
catch (e)
{
console.log("ERROR\n: " + e);
}
}
function validateSubmit()
{
var isDetailRowSelected = false;
var element = $( "input[type=checkbox]:checked" );
var DOMeles = element.get();
if(DOMeles.length > 0)
{
isDetailRowSelected = true;
}
if(!isDetailRowSelected)
{
alert("Please select atleast one row to process.")
return isDetailRowSelected;
}
else
{
var qty=document.getElementById("offer_free_qty").value;
var qtyOn=document.getElementById("offer_free_on").value;
var disc1=document.getElementById("disc_perc").value;
if( disc1 != null && disc1 != undefined && disc1.trim().length > 0)
{
for( var i=0; i<DOMeles.length; i++)
{
if(DOMeles[i].getAttribute("id").indexOf("parentCheckbox") == -1)
{
var textBoxId = DOMeles[i].getAttribute("textBoxID");
var percVal = document.getElementById("Detail2."+textBoxId+".disc_perc").value;
if(percVal > 100)
{
document.getElementById("offrOrQty"+textBoxId).style.display = "block";
alert("Discount percentage cannot be greater than 100.");
return false;
break;
}
}
}
}
document.getElementById("buttonreplacement").style.display = "block";
var overlay = document.getElementById( "overlay" );
overlay.setAttribute( "style", "position: fixed; top: 0; right: 0; bottom: 0; left: 0; background-color:#000; opacity: .45; z-index:1003; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;");
var htmlBody = document.getElementsByTagName("body")[0];
var htmlData = htmlBody.innerHTML;
var url = servletUrl+"action=SAVE_DETAIL_DATA&HTML_DATA="+encodeURIComponent(htmlData)+"";
makeRequest(url, dataSavedInSess);
return isDetailRowSelected;
}
}
function dataSavedInSess(retVal)
{
console.log("Data saved in Session!");
}
function callItemChange(currentColumn, curObj)
{
var currXmlDataStr = '', hdrXmlDataStr = '', allXmlDataStr = '', objContext = '', editFlag = 'A';
var element = $( "[name^='Detail1.1.']" );
var DOMeles = element.get();
if(preFieldVal != curObj.value)
{
preFieldVal = curObj.value;
objContext = document.getElementById("FORM_NO").value;
currXmlDataStr = "<Detail1 domID='1' id='1' objContext='1'>";
currXmlDataStr = currXmlDataStr + "<OBJ_NAME><![CDATA[plistgen_wiz]]></OBJ_NAME>";
currXmlDataStr = currXmlDataStr + "<PAGE_CONTEXT><![CDATA["+objContext+"]]></PAGE_CONTEXT>";
currXmlDataStr = currXmlDataStr + "<OBJ_CONTEXT><![CDATA["+objContext+"]]></OBJ_CONTEXT>";
currXmlDataStr = currXmlDataStr + "<EDIT_FLAG><![CDATA["+editFlag+"]]></EDIT_FLAG>";
currXmlDataStr = currXmlDataStr + "<EDIT_TMPLT><![CDATA[-1]]></EDIT_TMPLT>";
for (var i = 0; i < DOMeles.length; i++)
{
if ( DOMeles[i] != null )
{
var nodeValue = '', nodeId = '';
var nodeName = DOMeles[i].getAttribute('name');
nodeName = nodeName.substr(nodeName.lastIndexOf('.')+1);
nodeId = DOMeles[i].getAttribute('id');
nodeValue = document.getElementById(nodeId).value;
if(nodeValue.trim().length > 0 && nodeValue.trim() != '')
{
currXmlDataStr = currXmlDataStr + "<" + nodeName + ">" +
"<![CDATA[" + nodeValue + "]]>" +
"</" + nodeName + ">";
}
else
{
currXmlDataStr += "<"+ nodeName +"/>";
}
}
}
currXmlDataStr = currXmlDataStr + "</Detail1>";
hdrXmlDataStr = "<DocumentRoot>";
hdrXmlDataStr += "<description>Datawindow Root</description>";
hdrXmlDataStr += "<group0><description>Group0 description</description>";
hdrXmlDataStr += "<Header0><description>Header0 members</description>";
hdrXmlDataStr += currXmlDataStr;
hdrXmlDataStr += "</Header0></group0></DocumentRoot>";
allXmlDataStr = "<DocumentRoot>";
allXmlDataStr += "<description>Datawindow Root</description>";
allXmlDataStr += "<group0><description>Group0 description</description>";
allXmlDataStr += "<Header0><description>Header0 members</description>";
allXmlDataStr += "<DocumentRoot>";
allXmlDataStr += "<description>Datawindow Root</description>";
allXmlDataStr += "<group0><description>Group0 description</description>";
allXmlDataStr += "<Header0><description>Header0 members</description>";
allXmlDataStr += currXmlDataStr;
allXmlDataStr += "</Header0></group0></DocumentRoot>";
allXmlDataStr += "</Header0></group0></DocumentRoot>";
var url = servletUrl+"action=ITEM_CHANGE&CUR_XML_STR="+escape(currXmlDataStr)+"&HDR_XML_STR="+escape(hdrXmlDataStr)+"&ALL_XML_STR="+escape(allXmlDataStr)+"&CUR_COLUMN="+currentColumn+"&OBJ_CONTEXT="+objContext+"&EDIT_FLAG="+editFlag+"";
makeRequest( url, setItemChangeValues);
}
}
function makeRequest(url,setItemChangeValues)
{
var sURL = unescape(window.location);
if( ! isServerBusy )
{
isServerBusy = true;
httpRequest.open("POST", url, false);
httpRequest.onreadystatechange = function()
{
receiveResponse(setItemChangeValues);
};
httpRequest.setRequestHeader( "Content-Type", "application/x-www-form-urlencoded; charset=UTF-8" );
httpRequest.send( null );
}
}
function receiveResponse(setItemChangeValues)
{
if (httpRequest.readyState == 4)
{
if(httpRequest.status == 200)
{
processResponse(setItemChangeValues);
}
else
{
alert("Error loading page\n"+ httpRequest.status +":"+ httpRequest.statusText);
}
}
}
function processResponse(setItemChangeValues)
{
var returnStr = null;
isProcessOn = false;
if ( window.ActiveXObject )
{
xmldoc = httpRequest.responseText;
xmlHTTPResponse = xmldoc;
}
else
{
try
{
var parser = new DOMParser();
xmldoc = httpRequest.responseText;
}
catch(e)
{
alert("inside catch:"+e.message);
}
}
setItemChangeValues(xmldoc);
isServerBusy = false;
}
function loadXMLString(txt)
{
if (window.DOMParser)
{
parser=new DOMParser();
xmlDoc=parser.parseFromString(txt,"text/xml");
}
else /* code for IE*/
{
xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async=false;
xmlDoc.loadXML(txt);
}
return xmlDoc;
}
function setItemChangeValues(retVal)
{
var xmlDoc = loadXMLString(retVal);
var rootNodeList = xmlDoc.getElementsByTagName( "Root" );
if( rootNodeList.length == 1 )
{
var rootNode = rootNodeList.item(0);
var childNodeList = rootNode.childNodes;
var noOfTopLevelChilds = childNodeList.length;
for(var i = 0; i < noOfTopLevelChilds; i++)
{
if(childNodeList.item(i).nodeName == 'Detail1')
{
var detailNode = childNodeList.item(i);
var colNodeList = detailNode.childNodes;
var colCount = colNodeList.length;
var colProtect = "";
for(var fieldCtr = 0; fieldCtr < colCount; fieldCtr++)
{
var colNode = colNodeList.item(fieldCtr);
var nodeName = colNode.nodeName;
var newNodeValue = '';
if (colNode.firstChild != null || colNode.firstChild != undefined)
{
newNodeValue = colNode.firstChild.nodeValue;
if(nodeName == 'due_date__from' || nodeName == 'due_date__to')
{
document.getElementById(nodeName).value = newNodeValue;
}
else
{
document.getElementById("Detail1.1."+nodeName).value = newNodeValue;
}
}
if( colNode.attributes != null && colNode.attributes != undefined )
{
colProtect = colNode.attributes.getNamedItem("protect");
if (colProtect != null && colProtect != undefined)
{
if ( colProtect.value == 1)
{
if(document.getElementById("Detail1.1."+nodeName).tagName == 'SELECT')
{
document.getElementById("Detail1.1."+nodeName).disabled=true;
}
else
{
document.getElementById("Detail1.1."+nodeName).disabled=true;
document.getElementById("Detail1.1."+nodeName).value = "";
document.getElementById("Detail1.1."+nodeName).readOnly = true;
document.getElementById("Detail1.1."+nodeName).className = "editDisplayClass";
}
}
else
{
if(document.getElementById("Detail1.1."+nodeName).tagName == 'SELECT')
{
document.getElementById("Detail1.1."+nodeName).disabled=false;
document.getElementById("Detail1.1."+nodeName).style.visibility = "visible";
}
else
{
document.getElementById("Detail1.1."+nodeName).style.visibility = "visible";
document.getElementById("Detail1.1."+nodeName).disabled=false;
document.getElementById("Detail1.1."+nodeName).readOnly = false;
document.getElementById("Detail1.1."+nodeName).focus();
document.getElementById("Detail1.1."+nodeName).value = "";
document.getElementById("Detail1.1."+nodeName).className = "editInputClass";
}
}
}
}
}
}
}
}
}
function setDate(fieldId)
{
var dateFormat = "";
if (document.getElementById('date_format') != null)
{
global_date_format = document.getElementById("date_format").value;
}
if ( global_date_format == "dd/MM/yy" )
{
dateFormat = "d/m/y";
}
else if ( global_date_format == "dd-MMM-yyyy" )
{
dateFormat = "d/M/y";
}
else if ( global_date_format == "MM/dd/yy" )
{
dateFormat = "m/d/y";
}
else
{
dateFormat = "d/m/y";
}
$("#"+fieldId).datetimepicker({
timepicker:false,
//minDate : 0,
format: dateFormat
});
if(!$("#filter_date").datetimepicker( "widget" ).is(":visible"))
{
$( "#"+fieldId ).datetimepicker("show");
}
if(prevRemoveEnable!= "")
{
prevRemoveEnable.style.visibility = "hidden";
}
}
function formatDate()
{
var dateFormat = "";
if (document.getElementById('date_format') != null)
{
global_date_format = document.getElementById("date_format").value;
}
if ( global_date_format == "dd/MM/yy" )
{
dateFormat = "d/m/y";
}
else if ( global_date_format == "dd-MMM-yyyy" )
{
dateFormat = "d/M/y";
}
else if ( global_date_format == "MM/dd/yy" )
{
dateFormat = "m/d/y";
}
else
{
dateFormat = "d/m/y";
}
$('#eff_from').datetimepicker({
format: dateFormat,
timepicker:false,
});
$('#valid_upto').datetimepicker({
format: dateFormat,
timepicker:false,
});
}
function displayWaitImg()
{
document.getElementById("buttonreplacement").style.display = "block";
var overlay = document.getElementById( "overlay" );
overlay.setAttribute( "style", "position: fixed; top: 0; right: 0; bottom: 0; left: 0; background-color:#000; opacity: .45; z-index:1003; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;");
return true;
}
function form2Previous()
{
document.getElementById("errorActivityTable").style.display = "none";
document.getElementById("action").value="previous";
var element = $( "input[name^='Detail2.0.']" );
var DOMeles = element.get();
var xmlString = "<?xml version = \"1.0\"?><Root><header><editFlag></editFlag></header>" +
"<Detail1 domID='1' selected = 'N'>";
for (var i = 0; i < DOMeles.length; i++)
{
if ( DOMeles[i] != null )
{
xmlString = xmlString + "<" + DOMeles[i].getAttribute('id') + ">" +
"<![CDATA[" + DOMeles[i].getAttribute('value') + "]]>" +
"</" + DOMeles[i].getAttribute('id') + ">";
}
}
xmlString = xmlString + "</Detail1></Root>";
document.getElementById("PRE_FORM_VAL").value = xmlString;
document.getElementById("buttonreplacement").style.display = "block";
var overlay = document.getElementById( "overlay" );
overlay.setAttribute( "style", "position: fixed; top: 0; right: 0; bottom: 0; left: 0; background-color:#000; opacity: .45; z-index:1003; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;");
document.getElementById("plistgenWizForm2").action = "/ibase/PlistgenWizServlet";
document.getElementById("plistgenWizForm2").submit();
}
function doHideMsg(erroTable)
{
document.getElementById(erroTable).style.display = "none";
}
function displayPopUpIcon(popUpID)
{
if(prevRemoveEnable!= "")
{
prevRemoveEnable.style.visibility = "hidden";
}
prevRemoveEnable = document.getElementById(popUpID);
document.getElementById(popUpID).style.visibility = "visible";
}
function isNumberKey(evt)
{
var charCode = (evt.which) ? evt.which : evt.keyCode;
if (charCode != 46 && charCode > 31 && (charCode < 48 || charCode > 57))
return false;
return true;
}
function goToHomePage(objName)
{
var url = "E12WizardPage.jsp?OBJ_NAME="+objName;
window.location.href = url;
}
function setSelected(obj)
{
var selectVal = obj.value;
for (var i = 0; i < obj.length; i++)
{
if(selectVal == obj.options[i].getAttribute("value"))
{
obj.options[i].setAttribute('selected', 'selected');
}
else
{
obj.options[i].removeAttribute('selected');
}
}
}
function formatDetailWithErr()
{
preErrData = document.getElementById("innerDiv").innerHTML;
var url = servletUrl+"action=DISPLAY_DETAIL_DATA";
makeRequest(url,displayDataFromSession);
}
function displayDataFromSession(retHtmlData)
{
var htmlBody = document.getElementsByTagName("body")[0];
htmlBody.innerHTML = retHtmlData;
if(document.getElementById("innerDiv") != null)
{
document.getElementById("innerDiv").innerHTML = preErrData;
}
var overlay = document.getElementById( "overlay" );
overlay.removeAttribute('style');
document.getElementById("buttonreplacement").style.display = "none";
}
function setActionVal(action)
{
document.getElementById("action").value = action;
}
function validateHeaderForm(){
var qty=document.getElementById("Detail1.1.offer_free_qty").value;
var qtyOn=document.getElementById("Detail1.1.offer_free_on").value;
var prdCode=document.getElementById("Detail1.1.product_code").value;
var effFrom=document.getElementById("eff_from").value;
var validUpto=document.getElementById("valid_upto").value;
//var effFromDate= new Date(effFrom);
//var validUptoDate= new Date(validUpto);
var disc1=document.getElementById("Detail1.1.disc_perc").value;
var offerRBtn= document.getElementById("Detail1.1.offer").checked;
var discountRBtn=document.getElementById("Detail1.1.discount").checked;
if(prdCode == null || prdCode == "")
{
alert("Please enter Product Code.");
return false;
}
if(effFrom == null || effFrom == "")
{
alert("Please enter effective date.");
return false;
}
if(validUpto == null || validUpto == "")
{
alert("Please enter Valid Upto date.");
return false;
}
if(effFrom != null && validUpto != null )
{
var value1=effFrom.split('/');
var effFrom1=value1[1]+"/"+value1[0]+"/"+value1[2];
var value2=validUpto.split('/');
var validUpto1=value2[1]+"/"+value2[0]+"/"+value2[2];
var d1=new Date(effFrom1).getTime();
var d2=new Date(validUpto1).getTime();
if(d1>d2)
{
alert("Effective from cannot be greater than valid upto");
return false;
}
}
if( !offerRBtn && !discountRBtn)
{
alert("Please select Offer/Discount");
return false;
}
if(offerRBtn)
{
if(qty == null || qty == "")
{
alert("Please enter Free Quantity.");
return false;
}
if(qtyOn == null || qtyOn == "")
{
alert("Please enter Free On.");
return false;
}
}
if(discountRBtn)
{
if(disc1 == null || disc1 == "")
{
alert("Please enter Discount percent.");
return false;
}
else if (parseInt(disc1) > 100)
{
alert("Discount percentage can not be greater than 100.");
return false;
}
}
return true;
}
function enableTextBox(fieldName)
{
if("offer" == fieldName)
{
document.getElementById("Detail1.1.offer_free_qty").removeAttribute("readonly");
document.getElementById("Detail1.1.offer_free_on").removeAttribute("readonly");
document.getElementById("Detail1.1.offer_free_qty").classList.remove("editDisplayClass");
document.getElementById("Detail1.1.offer_free_on").classList.remove("editDisplayClass");
document.getElementById("Detail1.1.offer_free_qty").focus();
document.getElementById("Detail1.1.offer_free_qty").classList.remove("input_editable");
document.getElementById("Detail1.1.offer_free_on").classList.remove("input_editable");
document.getElementById("Detail1.1.disc_perc").classList.add("editDisplayClass");
document.getElementById("Detail1.1.disc_perc").setAttribute("readonly","true");
document.getElementById("Detail1.1.disc_perc").value = "";
}
else if( "discount" == fieldName)
{
document.getElementById("Detail1.1.disc_perc").removeAttribute("readonly");
document.getElementById("Detail1.1.disc_perc").classList.remove("editDisplayClass");
document.getElementById("Detail1.1.disc_perc").classList.add("input_editable");
document.getElementById("Detail1.1.disc_perc").focus();
document.getElementById("Detail1.1.offer_free_qty").value = "";
document.getElementById("Detail1.1.offer_free_on").value = "";
document.getElementById("Detail1.1.offer_free_on").classList.add("editDisplayClass");
document.getElementById("Detail1.1.offer_free_qty").classList.add("editDisplayClass");
document.getElementById("Detail1.1.offer_free_qty").setAttribute("readonly","true");
document.getElementById("Detail1.1.offer_free_on").setAttribute("readonly","true");
}
}
function displayOfferDiv(domId)
{
document.getElementById("offrOrQty"+domId).style.display = "block";
}
function hideOfferDiv(domId)
{
var hideDiv = true;
var qty=document.getElementById("offer_free_qty").value;
var qtyOn=document.getElementById("offer_free_on").value;
var disc1=document.getElementById("disc_perc").value;
if( disc1 != null && disc1 != undefined && disc1.trim().length > 0)
{
var percVal = document.getElementById("Detail2."+domId+".disc_perc").value;
if(percVal > 100)
{
document.getElementById("offrOrQty"+domId).style.display = "block";
alert("Discount percentage cannot be greater than 100.");
hideDiv = false;
}
}
if(hideDiv)
{
document.getElementById("offrOrQty"+domId).style.display = "none";
}
}
function checkChildChkBox(curAccorObj, event)
{
var nextPanelDiv = curAccorObj.parentElement.nextElementSibling;
var inputElems = nextPanelDiv.getElementsByTagName("input");
if(curAccorObj.checked)
{
if(nextPanelDiv.classList.contains("show"))
{
event.stopPropagation();
}
for(var i=0; i < inputElems.length; i++)
{
if("checkbox" == inputElems[i].type)
{
inputElems[i].checked = true;
}
}
}
else
{
event.stopPropagation();
for(var i=0; i < inputElems.length; i++)
{
if("checkbox" == inputElems[i].type)
{
inputElems[i].checked = false;
}
}
}
}
function selectAllRows()
{
var selectAllElems = $("input[type='checkbox']");
if(document.getElementById("selectAllRow").value == "Select All")
{
document.getElementById("selectAllRow").value = "Deselect All";
for(var i=0; i<selectAllElems.length; i++)
{
if(!selectAllElems[i].checked)
{
selectAllElems[i].click();
}
}
}
else
{
document.getElementById("selectAllRow").value = "Select All";
for(var i=0; i<selectAllElems.length; i++)
{
if(selectAllElems[i].checked)
{
selectAllElems[i].click();
}
}
}
}
function changeParentChkBox( checkBoxName )
{
var chkBoxElemes = $( "input[childName='childChkBox"+checkBoxName+"']" );
var chkBoxCnt = 0;
for(var i=0; i < chkBoxElemes.length; i++)
{
if(chkBoxElemes[i].checked)
{
chkBoxCnt++;
}
}
if(chkBoxElemes.length == chkBoxCnt)
{
document.getElementById("parentCheckbox"+checkBoxName).checked = true;
}
else
{
document.getElementById("parentCheckbox"+checkBoxName).checked = false;
}
}
function setActionVal(action)
{
document.getElementById("action").value = action;
}
function checkType()
{
var qty=document.getElementById("Detail1.1.offer_free_qty").value;
var qtyOn=document.getElementById("Detail1.1.offer_free_on").value;
var disc1=document.getElementById("Detail1.1.disc_perc").value;
if( disc1 != null && disc1 != undefined && disc1.trim().length > 0)
{
document.getElementById("Detail1.1.discount").click();
}
else
{
document.getElementById("Detail1.1.offer").click();
}
}
function alingNumberTD()
{
var tableObj = document.getElementById("plistTable");
var rows = tableObj.rows;
for(var i=0; i<rows.length; i++)
{
var eachRowCells = rows[i].cells;
for(var j=1; j<eachRowCells.length;j++)
{
var eachCell = eachRowCells[j];
eachCell.align = "right";
}
}
}
<%@ 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>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Sybase_eDataWindow>
<Sybase_eDataWindow>
<Release>9</Release>
<BaseDefinition>
<units>0</units>
<timer_interval>0</timer_interval>
<color>67108864</color>
<processing>0</processing>
<HTMLDW>no</HTMLDW>
<print>
<documentname></documentname>
<printername></printername>
<orientation>0</orientation>
<margin>
<left>110</left>
<right>110</right>
<top>96</top>
<bottom>96</bottom>
</margin>
<paper>
<source>0</source>
<size>0</size>
</paper>
<prompt>no</prompt>
<canusedefaultprinter>yes</canusedefaultprinter>
<buttons>no</buttons>
<preview.buttons>no</preview.buttons>
<cliptext>no</cliptext>
<overrideprintjob>no</overrideprintjob>
</print>
</BaseDefinition>
<Summary>
<height>0</height>
<color>536870912</color>
</Summary>
<Footer>
<height>0</height>
<color>536870912</color>
</Footer>
<Detail>
<height>2132</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="10">char</type>
<updatewhereclause>no</updatewhereclause>
<name>tran_id</name>
<dbname>tran_id</dbname>
</table_column>
<table_column>
<type>date</type>
<updatewhereclause>no</updatewhereclause>
<name>tran_date</name>
<dbname>tran_date</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>no</updatewhereclause>
<name>product_code</name>
<dbname>product_code</dbname>
</table_column>
<table_column>
<type>date</type>
<updatewhereclause>no</updatewhereclause>
<name>eff_from</name>
<dbname>eff_from</dbname>
</table_column>
<table_column>
<type>date</type>
<updatewhereclause>no</updatewhereclause>
<name>valid_upto</name>
<dbname>valid_upto</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<updatewhereclause>no</updatewhereclause>
<name>tran_type</name>
<dbname>tran_type</dbname>
</table_column>
<table_column>
<type size="60">char</type>
<updatewhereclause>no</updatewhereclause>
<name>remarks</name>
<dbname>remarks</dbname>
</table_column>
<table_column>
<type>number</type>
<updatewhereclause>no</updatewhereclause>
<name>offer_free_qty</name>
<dbname>offer_free_qty</dbname>
</table_column>
<table_column>
<type>number</type>
<updatewhereclause>no</updatewhereclause>
<name>offer_free_on</name>
<dbname>offer_free_on</dbname>
</table_column>
<table_column>
<type>number</type>
<updatewhereclause>no</updatewhereclause>
<name>disc_perc</name>
<dbname>disc_perc</dbname>
</table_column>
<table_column>
<type>date</type>
<updatewhereclause>no</updatewhereclause>
<name>chg_date</name>
<dbname>chg_date</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>no</updatewhereclause>
<name>chg_user</name>
<dbname>chg_user</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>no</updatewhereclause>
<name>descr</name>
<dbname>name_1</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<updatewhereclause>no</updatewhereclause>
<name>chg_term</name>
<dbname>chg_term</dbname>
</table_column>
</TableDefinition>
<GroupBox>
<band>Detail</band>
<text>Basic</text>
<border>2</border>
<color>134217735</color>
<x>50</x>
<y>48</y>
<height>1136</height>
<width>2231</width>
<name>gb_1</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</GroupBox>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Tran Id:</text>
<border>0</border>
<color>134217735</color>
<x>137</x>
<y>120</y>
<height>64</height>
<width>393</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Tran Date:</text>
<border>0</border>
<color>134217735</color>
<x>1431</x>
<y>120</y>
<height>64</height>
<width>393</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_date_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Tran Type:</text>
<border>0</border>
<color>134217735</color>
<x>142</x>
<y>240</y>
<height>64</height>
<width>393</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_type_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Product Code:</text>
<border>0</border>
<color>134217735</color>
<x>1426</x>
<y>244</y>
<height>64</height>
<width>393</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>product_code_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Eff From:</text>
<border>0</border>
<color>134217735</color>
<x>137</x>
<y>384</y>
<height>64</height>
<width>393</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>eff_from_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Valid Upto:</text>
<border>0</border>
<color>134217735</color>
<x>1422</x>
<y>384</y>
<height>64</height>
<width>393</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>valid_upto_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>553</x>
<y>120</y>
<height>76</height>
<width>274</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>33554431</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>6</id>
<alignment>0</alignment>
<tabsequence>50</tabsequence>
<border>5</border>
<color>0</color>
<x>553</x>
<y>240</y>
<height>76</height>
<width>274</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_type</name>
<visible>1</visible>
<EditStyle style="ddlb">
<limit>0</limit>
<allowedit>no</allowedit>
<case>any</case>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>33554431</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>4</id>
<alignment>0</alignment>
<tabsequence>30</tabsequence>
<border>5</border>
<color>0</color>
<x>553</x>
<y>384</y>
<height>76</height>
<width>270</width>
<format>[Shortdate][time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>eff_from</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>dd/mm/yy</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>33554431</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>0</alignment>
<tabsequence>10</tabsequence>
<border>5</border>
<color>0</color>
<x>1842</x>
<y>116</y>
<height>76</height>
<width>274</width>
<format>[Shortdate][time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_date</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>dd/mm/yy</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>33554431</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>0</alignment>
<tabsequence>20</tabsequence>
<border>5</border>
<color>0</color>
<x>1842</x>
<y>240</y>
<height>76</height>
<width>274</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>product_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>33554431</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>5</id>
<alignment>0</alignment>
<tabsequence>40</tabsequence>
<border>5</border>
<color>0</color>
<x>1842</x>
<y>384</y>
<height>76</height>
<width>274</width>
<format>[shortdate][time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>valid_upto</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>dd/mm/yy</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>33554431</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>12</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>475</x>
<y>980</y>
<height>76</height>
<width>274</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_user</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>33554431</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Chg User:</text>
<border>0</border>
<color>134217735</color>
<x>151</x>
<y>980</y>
<height>64</height>
<width>302</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_user_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>11</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>1106</x>
<y>984</y>
<height>76</height>
<width>256</width>
<format>[Shortdate][time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_date</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>dd/mm/yy</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>33554431</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Chg Date:</text>
<border>0</border>
<color>134217735</color>
<x>782</x>
<y>984</y>
<height>64</height>
<width>288</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_date_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Chg Term:</text>
<border>0</border>
<color>134217735</color>
<x>1472</x>
<y>992</y>
<height>64</height>
<width>297</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_term_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>14</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>1806</x>
<y>992</y>
<height>76</height>
<width>306</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_term</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>33554431</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Offer Free Qty:</text>
<border>0</border>
<color>134217735</color>
<x>137</x>
<y>756</y>
<height>64</height>
<width>393</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>offer_free_qty_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>8</id>
<alignment>0</alignment>
<tabsequence>70</tabsequence>
<border>5</border>
<color>0</color>
<x>553</x>
<y>756</y>
<height>76</height>
<width>256</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>offer_free_qty</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>33554431</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>9</id>
<alignment>0</alignment>
<tabsequence>80</tabsequence>
<border>5</border>
<color>0</color>
<x>1275</x>
<y>760</y>
<height>76</height>
<width>270</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>offer_free_on</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>33554431</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Offer Free On:</text>
<border>0</border>
<color>134217735</color>
<x>855</x>
<y>760</y>
<height>64</height>
<width>393</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>offer_free_on_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Disc Perc:</text>
<border>0</border>
<color>134217735</color>
<x>1586</x>
<y>764</y>
<height>64</height>
<width>288</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>disc_perc_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>10</id>
<alignment>1</alignment>
<tabsequence>90</tabsequence>
<border>5</border>
<color>0</color>
<x>1897</x>
<y>764</y>
<height>76</height>
<width>219</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>disc_perc</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>33554431</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Remarks:</text>
<border>0</border>
<color>134217735</color>
<x>137</x>
<y>508</y>
<height>64</height>
<width>393</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>remarks_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Description:</text>
<border>0</border>
<color>134217735</color>
<x>137</x>
<y>624</y>
<height>64</height>
<width>393</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>descr_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>7</id>
<alignment>0</alignment>
<tabsequence>60</tabsequence>
<border>5</border>
<color>0</color>
<x>553</x>
<y>508</y>
<height>76</height>
<width>1563</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>remarks</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>33554431</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>13</id>
<alignment>0</alignment>
<tabsequence>100</tabsequence>
<border>5</border>
<color>0</color>
<x>553</x>
<y>624</y>
<height>76</height>
<width>1563</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>descr</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>33554431</color>
</background>
</ColumnObject>
<HtmlTable>
<border>1</border>
</HtmlTable>
<HtmlGen>
<clientevents>1</clientevents>
<clientvalidation>1</clientvalidation>
<clientcomputedfields>1</clientcomputedfields>
<clientformatting>0</clientformatting>
<clientscriptable>0</clientscriptable>
<generatejavascript>1</generatejavascript>
<encodeselflinkargs>1</encodeselflinkargs>
<netscapelayers>0</netscapelayers>
</HtmlGen>
<Export.XML>
<headgroups>1</headgroups>
<includewhitespace>0</includewhitespace>
<metadatatype>0</metadatatype>
<savemetadata>0</savemetadata>
</Export.XML>
<Import.XML>
</Import.XML>
<Export.PDF>
<method>0</method>
<distill.custompostscript>0</distill.custompostscript>
<xslfop.print>0</xslfop.print>
</Export.PDF>
</Sybase_eDataWindow>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Sybase_eDataWindow>
<Sybase_eDataWindow>
<Release>9</Release>
<BaseDefinition>
<units>1</units>
<timer_interval>0</timer_interval>
<color>67108864</color>
<processing>0</processing>
<HTMLDW>no</HTMLDW>
<print>
<documentname></documentname>
<printername></printername>
<orientation>0</orientation>
<margin>
<left>24</left>
<right>24</right>
<top>24</top>
<bottom>24</bottom>
</margin>
<paper>
<source>0</source>
<size>0</size>
</paper>
<prompt>no</prompt>
<canusedefaultprinter>yes</canusedefaultprinter>
<buttons>no</buttons>
<preview.buttons>no</preview.buttons>
<cliptext>no</cliptext>
<overrideprintjob>no</overrideprintjob>
</print>
</BaseDefinition>
<Summary>
<height>0</height>
<color>536870912</color>
</Summary>
<Footer>
<height>0</height>
<color>536870912</color>
</Footer>
<Detail>
<height>308</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="10">char</type>
<updatewhereclause>no</updatewhereclause>
<name>calc_method</name>
<dbname>name_2</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>no</updatewhereclause>
<name>tran_id</name>
<dbname>tran_id</dbname>
</table_column>
<table_column>
<type size="3">char</type>
<updatewhereclause>no</updatewhereclause>
<name>line_no</name>
<dbname>line_no</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<updatewhereclause>no</updatewhereclause>
<name>list_type</name>
<dbname>name_3</dbname>
</table_column>
<table_column>
<type size="5">char</type>
<updatewhereclause>no</updatewhereclause>
<name>price_list</name>
<dbname>price_list</dbname>
</table_column>
<table_column>
<type>number</type>
<updatewhereclause>no</updatewhereclause>
<name>offer_free_qty</name>
<dbname>offer_free_qty</dbname>
</table_column>
<table_column>
<type>number</type>
<updatewhereclause>no</updatewhereclause>
<name>offer_free_on</name>
<dbname>offer_free_on</dbname>
</table_column>
<table_column>
<type>number</type>
<updatewhereclause>no</updatewhereclause>
<name>disc_perc</name>
<dbname>disc_perc</dbname>
</table_column>
<table_column>
<type>date</type>
<updatewhereclause>no</updatewhereclause>
<name>chg_date</name>
<dbname>chg_date</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>no</updatewhereclause>
<name>chg_user</name>
<dbname>chg_user</dbname>
</table_column>
<table_column>
<type size="5">char</type>
<updatewhereclause>no</updatewhereclause>
<name>price_list__parent</name>
<dbname>name_1</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<updatewhereclause>no</updatewhereclause>
<name>chg_term</name>
<dbname>chg_term</dbname>
</table_column>
</TableDefinition>
<GroupBox>
<band>Detail</band>
<text>Basic</text>
<border>2</border>
<color>33554432</color>
<x>19</x>
<y>6</y>
<height>301</height>
<width>562</width>
<name>gb_1</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</GroupBox>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Line No:</text>
<border>0</border>
<color>0</color>
<x>329</x>
<y>27</y>
<height>16</height>
<width>85</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>line_no_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Disc Perc:</text>
<border>0</border>
<color>0</color>
<x>325</x>
<y>60</y>
<height>15</height>
<width>62</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>disc_perc_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>8</id>
<alignment>1</alignment>
<tabsequence>40</tabsequence>
<border>5</border>
<color>0</color>
<x>393</x>
<y>59</y>
<height>19</height>
<width>48</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>disc_perc</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>0</alignment>
<tabsequence>10</tabsequence>
<border>5</border>
<color>0</color>
<x>422</x>
<y>27</y>
<height>19</height>
<width>18</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>line_no</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>154</x>
<y>25</y>
<height>19</height>
<width>60</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>5</id>
<alignment>0</alignment>
<tabsequence>20</tabsequence>
<border>5</border>
<color>0</color>
<x>154</x>
<y>61</y>
<height>19</height>
<width>59</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>price_list</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Tran Id:</text>
<border>0</border>
<color>0</color>
<x>63</x>
<y>25</y>
<height>16</height>
<width>85</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Price List:</text>
<border>0</border>
<color>0</color>
<x>63</x>
<y>61</y>
<height>16</height>
<width>85</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>price_list_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Offer Free Qty:</text>
<border>0</border>
<color>0</color>
<x>63</x>
<y>100</y>
<height>16</height>
<width>85</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>offer_free_qty_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>6</id>
<alignment>1</alignment>
<tabsequence>50</tabsequence>
<border>5</border>
<color>0</color>
<x>154</x>
<y>100</y>
<height>19</height>
<width>63</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>offer_free_qty</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Parent Price List:</text>
<border>0</border>
<color>0</color>
<x>47</x>
<y>131</y>
<height>16</height>
<width>101</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>price_list__parent_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>11</id>
<alignment>0</alignment>
<tabsequence>70</tabsequence>
<border>5</border>
<color>33554432</color>
<x>154</x>
<y>130</y>
<height>16</height>
<width>64</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>price_list__parent</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-11</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1073741824</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Offer Free On:</text>
<border>0</border>
<color>0</color>
<x>302</x>
<y>96</y>
<height>16</height>
<width>85</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>offer_free_on_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>7</id>
<alignment>1</alignment>
<tabsequence>60</tabsequence>
<border>5</border>
<color>0</color>
<x>393</x>
<y>93</y>
<height>19</height>
<width>48</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>offer_free_on</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Calculation Method:</text>
<border>0</border>
<color>33554432</color>
<x>260</x>
<y>129</y>
<height>16</height>
<width>115</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>t_1</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<alignment>0</alignment>
<tabsequence>80</tabsequence>
<border>5</border>
<color>33554432</color>
<x>381</x>
<y>127</y>
<height>16</height>
<width>60</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>calc_method</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1073741824</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Chg Date:</text>
<border>0</border>
<color>0</color>
<x>30</x>
<y>177</y>
<height>16</height>
<width>85</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_date_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>9</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>123</x>
<y>177</y>
<height>19</height>
<width>48</width>
<format>[shortdate][time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_date</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>mm/dd/yy</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Chg User:</text>
<border>0</border>
<color>0</color>
<x>184</x>
<y>177</y>
<height>16</height>
<width>85</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_user_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>10</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>277</x>
<y>177</y>
<height>19</height>
<width>60</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_user</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Chg Term:</text>
<border>0</border>
<color>0</color>
<x>346</x>
<y>178</y>
<height>16</height>
<width>85</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_term_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>12</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>439</x>
<y>178</y>
<height>19</height>
<width>90</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_term</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>0</alignment>
<text>List type:</text>
<border>0</border>
<color>33554432</color>
<x>216</x>
<y>62</y>
<height>16</height>
<width>54</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>list_type_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>4</id>
<alignment>0</alignment>
<tabsequence>30</tabsequence>
<border>0</border>
<color>33554432</color>
<x>275</x>
<y>62</y>
<height>16</height>
<width>33</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>list_type</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1073741824</color>
</background>
</ColumnObject>
<HtmlTable>
<border>1</border>
</HtmlTable>
<HtmlGen>
<clientevents>1</clientevents>
<clientvalidation>1</clientvalidation>
<clientcomputedfields>1</clientcomputedfields>
<clientformatting>0</clientformatting>
<clientscriptable>0</clientscriptable>
<generatejavascript>1</generatejavascript>
<encodeselflinkargs>1</encodeselflinkargs>
<netscapelayers>0</netscapelayers>
</HtmlGen>
<Export.XML>
<headgroups>1</headgroups>
<includewhitespace>0</includewhitespace>
<metadatatype>0</metadatatype>
<savemetadata>0</savemetadata>
</Export.XML>
<Import.XML>
</Import.XML>
<Export.PDF>
<method>0</method>
<distill.custompostscript>0</distill.custompostscript>
<xslfop.print>0</xslfop.print>
</Export.PDF>
</Sybase_eDataWindow>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Sybase_eDataWindow>
<Sybase_eDataWindow>
<Release>9</Release>
<BaseDefinition>
<units>1</units>
<timer_interval>0</timer_interval>
<color>67108864</color>
<processing>0</processing>
<HTMLDW>no</HTMLDW>
<print>
<documentname></documentname>
<printername></printername>
<orientation>0</orientation>
<margin>
<left>24</left>
<right>24</right>
<top>24</top>
<bottom>24</bottom>
</margin>
<paper>
<source>0</source>
<size>0</size>
</paper>
<prompt>no</prompt>
<canusedefaultprinter>yes</canusedefaultprinter>
<buttons>no</buttons>
<preview.buttons>no</preview.buttons>
<cliptext>no</cliptext>
<overrideprintjob>no</overrideprintjob>
</print>
</BaseDefinition>
<Summary>
<height>0</height>
<color>536870912</color>
</Summary>
<Footer>
<height>0</height>
<color>536870912</color>
</Footer>
<Detail>
<height>138</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="5">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>price_list</name>
<dbname>price_list</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>product_code</name>
<dbname>product_code</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>item_code</name>
<dbname>item_code</dbname>
</table_column>
<table_column>
<type>number</type>
<updatewhereclause>yes</updatewhereclause>
<name>rate</name>
<dbname>rate</dbname>
</table_column>
</TableDefinition>
<GroupBox>
<band>Detail</band>
<text>Basic</text>
<border>2</border>
<color>0</color>
<x>23</x>
<y>9</y>
<height>100</height>
<width>358</width>
<name>gb_1</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</GroupBox>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Price List:</text>
<border>0</border>
<color>0</color>
<x>47</x>
<y>29</y>
<height>16</height>
<width>86</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>price_list_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<alignment>0</alignment>
<tabsequence>10</tabsequence>
<border>5</border>
<color>0</color>
<x>141</x>
<y>29</y>
<height>19</height>
<width>50</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>price_list</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Product Code:</text>
<border>0</border>
<color>0</color>
<x>203</x>
<y>31</y>
<height>16</height>
<width>86</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>product_code_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>0</alignment>
<tabsequence>20</tabsequence>
<border>5</border>
<color>0</color>
<x>297</x>
<y>31</y>
<height>19</height>
<width>60</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>product_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>0</alignment>
<tabsequence>30</tabsequence>
<border>5</border>
<color>0</color>
<x>138</x>
<y>67</y>
<height>19</height>
<width>60</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Item Code:</text>
<border>0</border>
<color>0</color>
<x>44</x>
<y>67</y>
<height>16</height>
<width>86</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_code_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Rate:</text>
<border>0</border>
<color>0</color>
<x>211</x>
<y>69</y>
<height>16</height>
<width>86</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>rate_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>4</id>
<alignment>1</alignment>
<tabsequence>40</tabsequence>
<border>5</border>
<color>0</color>
<x>305</x>
<y>69</y>
<height>19</height>
<width>48</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>rate</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<HtmlTable>
<border>1</border>
</HtmlTable>
<HtmlGen>
<clientevents>1</clientevents>
<clientvalidation>1</clientvalidation>
<clientcomputedfields>1</clientcomputedfields>
<clientformatting>0</clientformatting>
<clientscriptable>0</clientscriptable>
<generatejavascript>1</generatejavascript>
<encodeselflinkargs>1</encodeselflinkargs>
<netscapelayers>0</netscapelayers>
</HtmlGen>
<Export.XML>
<headgroups>1</headgroups>
<includewhitespace>0</includewhitespace>
<metadatatype>0</metadatatype>
<savemetadata>0</savemetadata>
</Export.XML>
<Import.XML>
</Import.XML>
<Export.PDF>
<method>0</method>
<distill.custompostscript>0</distill.custompostscript>
<xslfop.print>0</xslfop.print>
</Export.PDF>
</Sybase_eDataWindow>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Sybase_eDataWindow>
<Sybase_eDataWindow>
<Release>9</Release>
<BaseDefinition>
<units>0</units>
<timer_interval>0</timer_interval>
<color>67108864</color>
<processing>0</processing>
<HTMLDW>no</HTMLDW>
<print>
<documentname></documentname>
<printername></printername>
<orientation>0</orientation>
<margin>
<left>110</left>
<right>110</right>
<top>96</top>
<bottom>96</bottom>
</margin>
<paper>
<source>0</source>
<size>0</size>
</paper>
<prompt>no</prompt>
<canusedefaultprinter>yes</canusedefaultprinter>
<buttons>no</buttons>
<preview.buttons>no</preview.buttons>
<cliptext>no</cliptext>
<overrideprintjob>no</overrideprintjob>
</print>
</BaseDefinition>
<Summary>
<height>0</height>
<color>536870912</color>
</Summary>
<Footer>
<height>0</height>
<color>536870912</color>
</Footer>
<Detail>
<height>2132</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="10">char</type>
<updatewhereclause>no</updatewhereclause>
<name>tran_id</name>
<dbname>tran_id</dbname>
</table_column>
<table_column>
<type>date</type>
<updatewhereclause>no</updatewhereclause>
<name>tran_date</name>
<dbname>tran_date</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>no</updatewhereclause>
<name>product_code</name>
<dbname>product_code</dbname>
</table_column>
<table_column>
<type>date</type>
<updatewhereclause>no</updatewhereclause>
<name>eff_from</name>
<dbname>eff_from</dbname>
</table_column>
<table_column>
<type>date</type>
<updatewhereclause>no</updatewhereclause>
<name>valid_upto</name>
<dbname>valid_upto</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<updatewhereclause>no</updatewhereclause>
<name>tran_type</name>
<dbname>tran_type</dbname>
</table_column>
<table_column>
<type size="60">char</type>
<updatewhereclause>no</updatewhereclause>
<name>remarks</name>
<dbname>remarks</dbname>
</table_column>
<table_column>
<type>number</type>
<updatewhereclause>no</updatewhereclause>
<name>offer_free_qty</name>
<dbname>offer_free_qty</dbname>
</table_column>
<table_column>
<type>number</type>
<updatewhereclause>no</updatewhereclause>
<name>offer_free_on</name>
<dbname>offer_free_on</dbname>
</table_column>
<table_column>
<type>number</type>
<updatewhereclause>no</updatewhereclause>
<name>disc_perc</name>
<dbname>disc_perc</dbname>
</table_column>
<table_column>
<type>date</type>
<updatewhereclause>no</updatewhereclause>
<name>chg_date</name>
<dbname>chg_date</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>no</updatewhereclause>
<name>chg_user</name>
<dbname>chg_user</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>no</updatewhereclause>
<name>descr</name>
<dbname>name_1</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<updatewhereclause>no</updatewhereclause>
<name>chg_term</name>
<dbname>chg_term</dbname>
</table_column>
</TableDefinition>
<GroupBox>
<band>Detail</band>
<text>Basic</text>
<border>2</border>
<color>134217735</color>
<x>50</x>
<y>48</y>
<height>1136</height>
<width>2231</width>
<name>gb_1</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</GroupBox>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Tran Id:</text>
<border>0</border>
<color>134217735</color>
<x>137</x>
<y>120</y>
<height>64</height>
<width>393</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Tran Date:</text>
<border>0</border>
<color>134217735</color>
<x>1431</x>
<y>120</y>
<height>64</height>
<width>393</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_date_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Tran Type:</text>
<border>0</border>
<color>134217735</color>
<x>142</x>
<y>240</y>
<height>64</height>
<width>393</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_type_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Product Code:</text>
<border>0</border>
<color>134217735</color>
<x>1426</x>
<y>244</y>
<height>64</height>
<width>393</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>product_code_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Eff From:</text>
<border>0</border>
<color>134217735</color>
<x>137</x>
<y>384</y>
<height>64</height>
<width>393</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>eff_from_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Valid Upto:</text>
<border>0</border>
<color>134217735</color>
<x>1422</x>
<y>384</y>
<height>64</height>
<width>393</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>valid_upto_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>553</x>
<y>120</y>
<height>76</height>
<width>274</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>33554431</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>6</id>
<alignment>0</alignment>
<tabsequence>50</tabsequence>
<border>5</border>
<color>0</color>
<x>553</x>
<y>240</y>
<height>76</height>
<width>274</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_type</name>
<visible>1</visible>
<EditStyle style="ddlb">
<limit>0</limit>
<allowedit>no</allowedit>
<case>any</case>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>33554431</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>4</id>
<alignment>0</alignment>
<tabsequence>30</tabsequence>
<border>5</border>
<color>0</color>
<x>553</x>
<y>384</y>
<height>76</height>
<width>270</width>
<format>[Shortdate][time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>eff_from</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>dd/mm/yy</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>33554431</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>0</alignment>
<tabsequence>10</tabsequence>
<border>5</border>
<color>0</color>
<x>1842</x>
<y>116</y>
<height>76</height>
<width>274</width>
<format>[Shortdate][time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_date</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>dd/mm/yy</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>33554431</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>0</alignment>
<tabsequence>20</tabsequence>
<border>5</border>
<color>0</color>
<x>1842</x>
<y>240</y>
<height>76</height>
<width>274</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>product_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>33554431</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>5</id>
<alignment>0</alignment>
<tabsequence>40</tabsequence>
<border>5</border>
<color>0</color>
<x>1842</x>
<y>384</y>
<height>76</height>
<width>274</width>
<format>[shortdate][time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>valid_upto</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>dd/mm/yy</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>33554431</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>12</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>475</x>
<y>980</y>
<height>76</height>
<width>274</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_user</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>33554431</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Chg User:</text>
<border>0</border>
<color>134217735</color>
<x>151</x>
<y>980</y>
<height>64</height>
<width>302</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_user_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>11</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>1106</x>
<y>984</y>
<height>76</height>
<width>256</width>
<format>[Shortdate][time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_date</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>dd/mm/yy</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>33554431</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Chg Date:</text>
<border>0</border>
<color>134217735</color>
<x>782</x>
<y>984</y>
<height>64</height>
<width>288</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_date_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Chg Term:</text>
<border>0</border>
<color>134217735</color>
<x>1472</x>
<y>992</y>
<height>64</height>
<width>297</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_term_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>14</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>1806</x>
<y>992</y>
<height>76</height>
<width>306</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_term</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>33554431</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Offer Free Qty:</text>
<border>0</border>
<color>134217735</color>
<x>137</x>
<y>756</y>
<height>64</height>
<width>393</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>offer_free_qty_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>8</id>
<alignment>0</alignment>
<tabsequence>70</tabsequence>
<border>5</border>
<color>0</color>
<x>553</x>
<y>756</y>
<height>76</height>
<width>256</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>offer_free_qty</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>33554431</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>9</id>
<alignment>0</alignment>
<tabsequence>80</tabsequence>
<border>5</border>
<color>0</color>
<x>1275</x>
<y>760</y>
<height>76</height>
<width>270</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>offer_free_on</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>33554431</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Offer Free On:</text>
<border>0</border>
<color>134217735</color>
<x>855</x>
<y>760</y>
<height>64</height>
<width>393</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>offer_free_on_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Disc Perc:</text>
<border>0</border>
<color>134217735</color>
<x>1586</x>
<y>764</y>
<height>64</height>
<width>288</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>disc_perc_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>10</id>
<alignment>1</alignment>
<tabsequence>90</tabsequence>
<border>5</border>
<color>0</color>
<x>1897</x>
<y>764</y>
<height>76</height>
<width>219</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>disc_perc</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>33554431</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Remarks:</text>
<border>0</border>
<color>134217735</color>
<x>137</x>
<y>508</y>
<height>64</height>
<width>393</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>remarks_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Description:</text>
<border>0</border>
<color>134217735</color>
<x>137</x>
<y>624</y>
<height>64</height>
<width>393</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>descr_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>7</id>
<alignment>0</alignment>
<tabsequence>60</tabsequence>
<border>5</border>
<color>0</color>
<x>553</x>
<y>508</y>
<height>76</height>
<width>1563</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>remarks</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>33554431</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>13</id>
<alignment>0</alignment>
<tabsequence>100</tabsequence>
<border>5</border>
<color>0</color>
<x>553</x>
<y>624</y>
<height>76</height>
<width>1563</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>descr</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>33554431</color>
</background>
</ColumnObject>
<HtmlTable>
<border>1</border>
</HtmlTable>
<HtmlGen>
<clientevents>1</clientevents>
<clientvalidation>1</clientvalidation>
<clientcomputedfields>1</clientcomputedfields>
<clientformatting>0</clientformatting>
<clientscriptable>0</clientscriptable>
<generatejavascript>1</generatejavascript>
<encodeselflinkargs>1</encodeselflinkargs>
<netscapelayers>0</netscapelayers>
</HtmlGen>
<Export.XML>
<headgroups>1</headgroups>
<includewhitespace>0</includewhitespace>
<metadatatype>0</metadatatype>
<savemetadata>0</savemetadata>
</Export.XML>
<Import.XML>
</Import.XML>
<Export.PDF>
<method>0</method>
<distill.custompostscript>0</distill.custompostscript>
<xslfop.print>0</xslfop.print>
</Export.PDF>
</Sybase_eDataWindow>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Sybase_eDataWindow>
<Sybase_eDataWindow>
<Release>9</Release>
<BaseDefinition>
<units>1</units>
<timer_interval>0</timer_interval>
<color>67108864</color>
<processing>0</processing>
<HTMLDW>no</HTMLDW>
<print>
<documentname></documentname>
<printername></printername>
<orientation>0</orientation>
<margin>
<left>24</left>
<right>24</right>
<top>24</top>
<bottom>24</bottom>
</margin>
<paper>
<source>0</source>
<size>0</size>
</paper>
<prompt>no</prompt>
<canusedefaultprinter>yes</canusedefaultprinter>
<buttons>no</buttons>
<preview.buttons>no</preview.buttons>
<cliptext>no</cliptext>
<overrideprintjob>no</overrideprintjob>
</print>
</BaseDefinition>
<Summary>
<height>0</height>
<color>536870912</color>
</Summary>
<Footer>
<height>0</height>
<color>536870912</color>
</Footer>
<Detail>
<height>308</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="10">char</type>
<updatewhereclause>no</updatewhereclause>
<name>calc_method</name>
<dbname>name_2</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>no</updatewhereclause>
<name>tran_id</name>
<dbname>tran_id</dbname>
</table_column>
<table_column>
<type size="3">char</type>
<updatewhereclause>no</updatewhereclause>
<name>line_no</name>
<dbname>line_no</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<updatewhereclause>no</updatewhereclause>
<name>list_type</name>
<dbname>name_3</dbname>
</table_column>
<table_column>
<type size="5">char</type>
<updatewhereclause>no</updatewhereclause>
<name>price_list</name>
<dbname>price_list</dbname>
</table_column>
<table_column>
<type>number</type>
<updatewhereclause>no</updatewhereclause>
<name>offer_free_qty</name>
<dbname>offer_free_qty</dbname>
</table_column>
<table_column>
<type>number</type>
<updatewhereclause>no</updatewhereclause>
<name>offer_free_on</name>
<dbname>offer_free_on</dbname>
</table_column>
<table_column>
<type>number</type>
<updatewhereclause>no</updatewhereclause>
<name>disc_perc</name>
<dbname>disc_perc</dbname>
</table_column>
<table_column>
<type>date</type>
<updatewhereclause>no</updatewhereclause>
<name>chg_date</name>
<dbname>chg_date</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>no</updatewhereclause>
<name>chg_user</name>
<dbname>chg_user</dbname>
</table_column>
<table_column>
<type size="5">char</type>
<updatewhereclause>no</updatewhereclause>
<name>price_list__parent</name>
<dbname>name_1</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<updatewhereclause>no</updatewhereclause>
<name>chg_term</name>
<dbname>chg_term</dbname>
</table_column>
</TableDefinition>
<GroupBox>
<band>Detail</band>
<text>Basic</text>
<border>2</border>
<color>33554432</color>
<x>19</x>
<y>6</y>
<height>301</height>
<width>562</width>
<name>gb_1</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</GroupBox>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Line No:</text>
<border>0</border>
<color>0</color>
<x>329</x>
<y>27</y>
<height>16</height>
<width>85</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>line_no_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Disc Perc:</text>
<border>0</border>
<color>0</color>
<x>325</x>
<y>60</y>
<height>15</height>
<width>62</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>disc_perc_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>8</id>
<alignment>1</alignment>
<tabsequence>40</tabsequence>
<border>5</border>
<color>0</color>
<x>393</x>
<y>59</y>
<height>19</height>
<width>48</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>disc_perc</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>0</alignment>
<tabsequence>10</tabsequence>
<border>5</border>
<color>0</color>
<x>422</x>
<y>27</y>
<height>19</height>
<width>18</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>line_no</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>154</x>
<y>25</y>
<height>19</height>
<width>60</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>5</id>
<alignment>0</alignment>
<tabsequence>20</tabsequence>
<border>5</border>
<color>0</color>
<x>154</x>
<y>61</y>
<height>19</height>
<width>59</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>price_list</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Tran Id:</text>
<border>0</border>
<color>0</color>
<x>63</x>
<y>25</y>
<height>16</height>
<width>85</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Price List:</text>
<border>0</border>
<color>0</color>
<x>63</x>
<y>61</y>
<height>16</height>
<width>85</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>price_list_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Offer Free Qty:</text>
<border>0</border>
<color>0</color>
<x>63</x>
<y>100</y>
<height>16</height>
<width>85</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>offer_free_qty_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>6</id>
<alignment>1</alignment>
<tabsequence>50</tabsequence>
<border>5</border>
<color>0</color>
<x>154</x>
<y>100</y>
<height>19</height>
<width>63</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>offer_free_qty</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Parent Price List:</text>
<border>0</border>
<color>0</color>
<x>47</x>
<y>131</y>
<height>16</height>
<width>101</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>price_list__parent_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>11</id>
<alignment>0</alignment>
<tabsequence>70</tabsequence>
<border>5</border>
<color>33554432</color>
<x>154</x>
<y>130</y>
<height>16</height>
<width>64</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>price_list__parent</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-11</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1073741824</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Offer Free On:</text>
<border>0</border>
<color>0</color>
<x>302</x>
<y>96</y>
<height>16</height>
<width>85</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>offer_free_on_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>7</id>
<alignment>1</alignment>
<tabsequence>60</tabsequence>
<border>5</border>
<color>0</color>
<x>393</x>
<y>93</y>
<height>19</height>
<width>48</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>offer_free_on</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Calculation Method:</text>
<border>0</border>
<color>33554432</color>
<x>260</x>
<y>129</y>
<height>16</height>
<width>115</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>t_1</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<alignment>0</alignment>
<tabsequence>80</tabsequence>
<border>5</border>
<color>33554432</color>
<x>381</x>
<y>127</y>
<height>16</height>
<width>60</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>calc_method</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1073741824</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Chg Date:</text>
<border>0</border>
<color>0</color>
<x>30</x>
<y>177</y>
<height>16</height>
<width>85</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_date_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>9</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>123</x>
<y>177</y>
<height>19</height>
<width>48</width>
<format>[shortdate][time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_date</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>mm/dd/yy</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Chg User:</text>
<border>0</border>
<color>0</color>
<x>184</x>
<y>177</y>
<height>16</height>
<width>85</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_user_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>10</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>277</x>
<y>177</y>
<height>19</height>
<width>60</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_user</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Chg Term:</text>
<border>0</border>
<color>0</color>
<x>346</x>
<y>178</y>
<height>16</height>
<width>85</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_term_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>12</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>439</x>
<y>178</y>
<height>19</height>
<width>90</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_term</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>0</alignment>
<text>List type:</text>
<border>0</border>
<color>33554432</color>
<x>216</x>
<y>62</y>
<height>16</height>
<width>54</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>list_type_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>4</id>
<alignment>0</alignment>
<tabsequence>30</tabsequence>
<border>0</border>
<color>33554432</color>
<x>275</x>
<y>62</y>
<height>16</height>
<width>33</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>list_type</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1073741824</color>
</background>
</ColumnObject>
<HtmlTable>
<border>1</border>
</HtmlTable>
<HtmlGen>
<clientevents>1</clientevents>
<clientvalidation>1</clientvalidation>
<clientcomputedfields>1</clientcomputedfields>
<clientformatting>0</clientformatting>
<clientscriptable>0</clientscriptable>
<generatejavascript>1</generatejavascript>
<encodeselflinkargs>1</encodeselflinkargs>
<netscapelayers>0</netscapelayers>
</HtmlGen>
<Export.XML>
<headgroups>1</headgroups>
<includewhitespace>0</includewhitespace>
<metadatatype>0</metadatatype>
<savemetadata>0</savemetadata>
</Export.XML>
<Import.XML>
</Import.XML>
<Export.PDF>
<method>0</method>
<distill.custompostscript>0</distill.custompostscript>
<xslfop.print>0</xslfop.print>
</Export.PDF>
</Sybase_eDataWindow>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Sybase_eDataWindow>
<Sybase_eDataWindow>
<Release>9</Release>
<BaseDefinition>
<units>1</units>
<timer_interval>0</timer_interval>
<color>67108864</color>
<processing>0</processing>
<HTMLDW>no</HTMLDW>
<print>
<documentname></documentname>
<printername></printername>
<orientation>0</orientation>
<margin>
<left>24</left>
<right>24</right>
<top>24</top>
<bottom>24</bottom>
</margin>
<paper>
<source>0</source>
<size>0</size>
</paper>
<prompt>no</prompt>
<canusedefaultprinter>yes</canusedefaultprinter>
<buttons>no</buttons>
<preview.buttons>no</preview.buttons>
<cliptext>no</cliptext>
<overrideprintjob>no</overrideprintjob>
</print>
</BaseDefinition>
<Summary>
<height>0</height>
<color>536870912</color>
</Summary>
<Footer>
<height>0</height>
<color>536870912</color>
</Footer>
<Detail>
<height>138</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="5">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>price_list</name>
<dbname>price_list</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>product_code</name>
<dbname>product_code</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>item_code</name>
<dbname>item_code</dbname>
</table_column>
<table_column>
<type>number</type>
<updatewhereclause>yes</updatewhereclause>
<name>rate</name>
<dbname>rate</dbname>
</table_column>
</TableDefinition>
<GroupBox>
<band>Detail</band>
<text>Basic</text>
<border>2</border>
<color>0</color>
<x>23</x>
<y>9</y>
<height>100</height>
<width>358</width>
<name>gb_1</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</GroupBox>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Price List:</text>
<border>0</border>
<color>0</color>
<x>47</x>
<y>29</y>
<height>16</height>
<width>86</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>price_list_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<alignment>0</alignment>
<tabsequence>10</tabsequence>
<border>5</border>
<color>0</color>
<x>141</x>
<y>29</y>
<height>19</height>
<width>50</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>price_list</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Product Code:</text>
<border>0</border>
<color>0</color>
<x>203</x>
<y>31</y>
<height>16</height>
<width>86</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>product_code_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>0</alignment>
<tabsequence>20</tabsequence>
<border>5</border>
<color>0</color>
<x>297</x>
<y>31</y>
<height>19</height>
<width>60</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>product_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>0</alignment>
<tabsequence>30</tabsequence>
<border>5</border>
<color>0</color>
<x>138</x>
<y>67</y>
<height>19</height>
<width>60</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Item Code:</text>
<border>0</border>
<color>0</color>
<x>44</x>
<y>67</y>
<height>16</height>
<width>86</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_code_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Rate:</text>
<border>0</border>
<color>0</color>
<x>211</x>
<y>69</y>
<height>16</height>
<width>86</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>rate_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>4</id>
<alignment>1</alignment>
<tabsequence>40</tabsequence>
<border>5</border>
<color>0</color>
<x>305</x>
<y>69</y>
<height>19</height>
<width>48</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>rate</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<HtmlTable>
<border>1</border>
</HtmlTable>
<HtmlGen>
<clientevents>1</clientevents>
<clientvalidation>1</clientvalidation>
<clientcomputedfields>1</clientcomputedfields>
<clientformatting>0</clientformatting>
<clientscriptable>0</clientscriptable>
<generatejavascript>1</generatejavascript>
<encodeselflinkargs>1</encodeselflinkargs>
<netscapelayers>0</netscapelayers>
</HtmlGen>
<Export.XML>
<headgroups>1</headgroups>
<includewhitespace>0</includewhitespace>
<metadatatype>0</metadatatype>
<savemetadata>0</savemetadata>
</Export.XML>
<Import.XML>
</Import.XML>
<Export.PDF>
<method>0</method>
<distill.custompostscript>0</distill.custompostscript>
<xslfop.print>0</xslfop.print>
</Export.PDF>
</Sybase_eDataWindow>
$PBExportHeader$d_plistgen_wiz21.srd
release 9;
datawindow(units=0 timer_interval=0 color=67108864 processing=0 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 110 print.margin.right = 110 print.margin.top = 96 print.margin.bottom = 96 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=2132 color="536870912" )
table(column=(type=char(10) updatewhereclause=no name=tran_id dbname="tran_id" )
column=(type=date updatewhereclause=no name=tran_date dbname="tran_date" )
column=(type=char(10) updatewhereclause=no name=product_code dbname="product_code" )
column=(type=date updatewhereclause=no name=eff_from dbname="eff_from" )
column=(type=date updatewhereclause=no name=valid_upto dbname="valid_upto" )
column=(type=char(1) updatewhereclause=no name=tran_type dbname="tran_type" )
column=(type=char(60) updatewhereclause=no name=remarks dbname="remarks" )
column=(type=number updatewhereclause=no name=offer_free_qty dbname="offer_free_qty" )
column=(type=number updatewhereclause=no name=offer_free_on dbname="offer_free_on" )
column=(type=number updatewhereclause=no name=disc_perc dbname="disc_perc" )
column=(type=date updatewhereclause=no name=chg_date dbname="chg_date" )
column=(type=char(10) updatewhereclause=no name=chg_user dbname="chg_user" )
column=(type=char(10) updatewhereclause=no name=descr dbname="name_1" )
column=(type=char(15) updatewhereclause=no name=chg_term dbname="chg_term" )
)
groupbox(band=detail text="Basic"border="2" color="134217735" x="50" y="48" height="1136" width="2231" 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="Tran Id:" border="0" color="134217735" x="137" y="120" height="64" width="393" html.valueishtml="0" name=tran_id_t 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="Tran Date:" border="0" color="134217735" x="1431" y="120" height="64" width="393" html.valueishtml="0" name=tran_date_t 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="Tran Type:" border="0" color="134217735" x="142" y="240" height="64" width="393" html.valueishtml="0" name=tran_type_t 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="Product Code:" border="0" color="134217735" x="1426" y="244" height="64" width="393" 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="2" background.color="67108864" )
text(band=detail alignment="1" text="Eff From:" border="0" color="134217735" x="137" y="384" height="64" width="393" html.valueishtml="0" name=eff_from_t 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="Valid Upto:" border="0" color="134217735" x="1422" y="384" height="64" width="393" html.valueishtml="0" name=valid_upto_t 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" )
column(band=detail id=1 alignment="0" tabsequence=32766 border="5" color="0" x="553" y="120" height="76" width="274" format="[general]" html.valueishtml="0" name=tran_id 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="33554431" )
column(band=detail id=6 alignment="0" tabsequence=50 border="5" color="0" x="553" y="240" height="76" width="274" format="[general]" html.valueishtml="0" name=tran_type visible="1" ddlb.limit=0 ddlb.allowedit=no ddlb.case=any ddlb.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="33554431" )
column(band=detail id=4 alignment="0" tabsequence=30 border="5" color="0" x="553" y="384" height="76" width="270" format="[Shortdate][time]" html.valueishtml="0" name=eff_from visible="1" editmask.mask="dd/mm/yy" editmask.imemode=0 editmask.focusrectangle=no font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="33554431" )
column(band=detail id=2 alignment="0" tabsequence=10 border="5" color="0" x="1842" y="116" height="76" width="274" format="[Shortdate][time]" html.valueishtml="0" name=tran_date visible="1" editmask.mask="dd/mm/yy" editmask.imemode=0 editmask.focusrectangle=no font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="33554431" )
column(band=detail id=3 alignment="0" tabsequence=20 border="5" color="0" x="1842" y="240" height="76" width="274" 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="33554431" )
column(band=detail id=5 alignment="0" tabsequence=40 border="5" color="0" x="1842" y="384" height="76" width="274" format="[shortdate][time]" html.valueishtml="0" name=valid_upto visible="1" editmask.mask="dd/mm/yy" editmask.imemode=0 editmask.focusrectangle=no font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="33554431" )
column(band=detail id=12 alignment="0" tabsequence=32766 border="5" color="0" x="475" y="980" height="76" width="274" format="[general]" html.valueishtml="0" name=chg_user 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="33554431" )
text(band=detail alignment="1" text="Chg User:" border="0" color="134217735" x="151" y="980" height="64" width="302" html.valueishtml="0" name=chg_user_t 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" )
column(band=detail id=11 alignment="0" tabsequence=32766 border="5" color="0" x="1106" y="984" height="76" width="256" format="[Shortdate][time]" html.valueishtml="0" name=chg_date visible="1" editmask.mask="dd/mm/yy" editmask.imemode=0 editmask.focusrectangle=no font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="33554431" )
text(band=detail alignment="1" text="Chg Date:" border="0" color="134217735" x="782" y="984" height="64" width="288" html.valueishtml="0" name=chg_date_t 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="Chg Term:" border="0" color="134217735" x="1472" y="992" height="64" width="297" html.valueishtml="0" name=chg_term_t 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" )
column(band=detail id=14 alignment="0" tabsequence=32766 border="5" color="0" x="1806" y="992" height="76" width="306" format="[general]" html.valueishtml="0" name=chg_term 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="33554431" )
text(band=detail alignment="1" text="Offer Free Qty:" border="0" color="134217735" x="137" y="756" height="64" width="393" html.valueishtml="0" name=offer_free_qty_t 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" )
column(band=detail id=8 alignment="0" tabsequence=70 border="5" color="0" x="553" y="756" height="76" width="256" format="[general]" html.valueishtml="0" name=offer_free_qty 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="33554431" )
column(band=detail id=9 alignment="0" tabsequence=80 border="5" color="0" x="1275" y="760" height="76" width="270" format="[general]" html.valueishtml="0" name=offer_free_on 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="33554431" )
text(band=detail alignment="1" text="Offer Free On:" border="0" color="134217735" x="855" y="760" height="64" width="393" html.valueishtml="0" name=offer_free_on_t 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="Disc Perc:" border="0" color="134217735" x="1586" y="764" height="64" width="288" html.valueishtml="0" name=disc_perc_t 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" )
column(band=detail id=10 alignment="1" tabsequence=90 border="5" color="0" x="1897" y="764" height="76" width="219" format="[general]" html.valueishtml="0" name=disc_perc 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="33554431" )
text(band=detail alignment="1" text="Remarks:" border="0" color="134217735" x="137" y="508" height="64" width="393" html.valueishtml="0" name=remarks_t 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="Description:" border="0" color="134217735" x="137" y="624" height="64" width="393" html.valueishtml="0" name=descr_t 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" )
column(band=detail id=7 alignment="0" tabsequence=60 border="5" color="0" x="553" y="508" height="76" width="1563" format="[general]" html.valueishtml="0" name=remarks 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="33554431" )
column(band=detail id=13 alignment="0" tabsequence=100 border="5" color="0" x="553" y="624" height="76" width="1563" html.valueishtml="0" name=descr visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no 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="33554431" )
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
$PBExportHeader$d_plistgen_wizdet_edit.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=308 color="536870912" )
table(column=(type=char(10) updatewhereclause=no name=calc_method dbname="name_2" )
column=(type=char(10) updatewhereclause=no name=tran_id dbname="tran_id" )
column=(type=char(3) updatewhereclause=no name=line_no dbname="line_no" )
column=(type=char(1) updatewhereclause=no name=list_type dbname="name_3" )
column=(type=char(5) updatewhereclause=no name=price_list dbname="price_list" )
column=(type=number updatewhereclause=no name=offer_free_qty dbname="offer_free_qty" )
column=(type=number updatewhereclause=no name=offer_free_on dbname="offer_free_on" )
column=(type=number updatewhereclause=no name=disc_perc dbname="disc_perc" )
column=(type=date updatewhereclause=no name=chg_date dbname="chg_date" )
column=(type=char(10) updatewhereclause=no name=chg_user dbname="chg_user" )
column=(type=char(5) updatewhereclause=no name=price_list__parent dbname="name_1" )
column=(type=char(15) updatewhereclause=no name=chg_term dbname="chg_term" )
)
groupbox(band=detail text="Basic"border="2" color="33554432" x="19" y="6" height="301" width="562" 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="Line No:" border="0" color="0" x="329" y="27" height="16" width="85" html.valueishtml="0" name=line_no_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="Disc Perc:" border="0" color="0" x="325" y="60" height="15" width="62" html.valueishtml="0" name=disc_perc_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=8 alignment="1" tabsequence=40 border="5" color="0" x="393" y="59" height="19" width="48" format="[general]" html.valueishtml="0" name=disc_perc 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=10 border="5" color="0" x="422" y="27" height="19" width="18" format="[general]" html.valueishtml="0" name=line_no 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=2 alignment="0" tabsequence=32766 border="5" color="0" x="154" y="25" height="19" width="60" format="[general]" html.valueishtml="0" name=tran_id 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=5 alignment="0" tabsequence=20 border="5" color="0" x="154" y="61" height="19" width="59" 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="Tran Id:" border="0" color="0" x="63" y="25" height="16" width="85" html.valueishtml="0" name=tran_id_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="Price List:" border="0" color="0" x="63" y="61" height="16" width="85" 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" )
text(band=detail alignment="1" text="Offer Free Qty:" border="0" color="0" x="63" y="100" height="16" width="85" html.valueishtml="0" name=offer_free_qty_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=6 alignment="1" tabsequence=50 border="5" color="0" x="154" y="100" height="19" width="63" format="[general]" html.valueishtml="0" name=offer_free_qty 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="Parent Price List:" border="0" color="0" x="47" y="131" height="16" width="101" html.valueishtml="0" name=price_list__parent_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=11 alignment="0" tabsequence=70 border="5" color="33554432" x="154" y="130" height="16" width="64" format="[general]" html.valueishtml="0" name=price_list__parent visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.imemode=0 font.face="Arial" font.height="-11" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=detail alignment="1" text="Offer Free On:" border="0" color="0" x="302" y="96" height="16" width="85" html.valueishtml="0" name=offer_free_on_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=7 alignment="1" tabsequence=60 border="5" color="0" x="393" y="93" height="19" width="48" format="[general]" html.valueishtml="0" name=offer_free_on 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="Calculation Method:" border="0" color="33554432" x="260" y="129" height="16" width="115" html.valueishtml="0" name=t_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" )
column(band=detail id=1 alignment="0" tabsequence=80 border="5" color="33554432" x="381" y="127" height="16" width="60" format="[general]" html.valueishtml="0" name=calc_method visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no 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="1073741824" )
text(band=detail alignment="1" text="Chg Date:" border="0" color="0" x="30" y="177" height="16" width="85" html.valueishtml="0" name=chg_date_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=9 alignment="0" tabsequence=32766 border="5" color="0" x="123" y="177" height="19" width="48" format="[shortdate][time]" html.valueishtml="0" name=chg_date visible="1" editmask.mask="mm/dd/yy" editmask.imemode=0 editmask.focusrectangle=no 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="Chg User:" border="0" color="0" x="184" y="177" height="16" width="85" html.valueishtml="0" name=chg_user_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=10 alignment="0" tabsequence=32766 border="5" color="0" x="277" y="177" height="19" width="60" format="[general]" html.valueishtml="0" name=chg_user 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="67108864" )
text(band=detail alignment="1" text="Chg Term:" border="0" color="0" x="346" y="178" height="16" width="85" html.valueishtml="0" name=chg_term_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=12 alignment="0" tabsequence=32766 border="5" color="0" x="439" y="178" height="19" width="90" format="[general]" html.valueishtml="0" name=chg_term 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="67108864" )
text(band=detail alignment="0" text="List type:" border="0" color="33554432" x="216" y="62" height="16" width="54" html.valueishtml="0" name=list_type_t 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" )
column(band=detail id=4 alignment="0" tabsequence=30 border="0" color="33554432" x="275" y="62" height="16" width="33" format="[general]" html.valueishtml="0" name=list_type visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no 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="1073741824" )
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
$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
<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:decimal-format NaN="0"/>
<xsl:template match="/">
<html>
<body onload="formatDate(); checkType();">
<script type="text/javascript" src="/ibase/webitm/js/PlistgenWiz.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery-1.10.2.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery-ui-1.10.4.custom.min.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/FixedTableHeader.js"></script>
<script language="Javascript" src="/ibase/webitm/js/jquery.datetimepicker.full.js"></script>
<script language="Javascript" src="/ibase/webitm/js/date.js"></script>
<link href="/ibase/webitm/css/jquery-ui-1.10.4.custom.min.css" rel="stylesheet"/>
<script type="text/javascript" src="/ibase/webitm/js/jquery.ui.core.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery.ui.widget.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery.ui.position.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery.ui.menu.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery.ui.autocomplete.js"></script>
<link href="/ibase/webitm/css/htmlWizard.css" rel="stylesheet"/>
<link href="/ibase/webitm/css/PlistgenWiz.css" rel="stylesheet"/>
<link href="/ibase/webitm/css/jquery.datetimepicker.css" rel="stylesheet"/>
<script>
<![CDATA[
$(document).on("keydown", function (e) {
if (e.which === 8 && !$(e.target).is("input, textarea, form")) {
e.preventDefault();
}
else if(e.which ===13){
e.preventDefault();
}
});
]]>
</script>
<form name="plistgenWizForm1" id="plistgenWizForm1" METHOD="post" ACTION="/ibase/ITMWizardHandlerServlet" >
<div class="contentHeaderLbl" style="position:fixed;overflow:hidden;width:100%;padding:12px; background-color:white;top:0px;">
&#160;&#160;<img src="/ibase/images/menuImages/web/plistgen_wiz.png" onerror=" this.src= '/ibase/images/menuImages/errMenu.png' " style="position: absolute; margin-left: -20px; height: 20px; width: 20px;"/>
&#160;Manage Pricing
</div><br></br><br></br>
<div id="innerDiv" style="overflow-y:hidden;overflow-x:auto;max-height:80%;width:99%;position:absolute;">
<table id="errorActivityTable" height="10%" class="tableClass" style="margin: 12px 0px 0px 0px;position: relative;width: calc(literal('100% - 15px'));width: -moz-calc(literal('100% - 15px'));padding-right:0px; padding-left:5xp; width: -webkit-calc(literal('100% - 15px'));box-shadow: 3px 3px 3px gray;-moz-box-shadow:3px 3px 3px gray;-webkit-box-shadow: 3px 3px 3px gray;-o-box-shadow: 3px 3px 3px gray;background: rgba(255, 204, 0, 0.66);min-height: 50px;bottom:10px" border="0" cellspacing="0" cellpadding="0">
<xsl:for-each select="//error">
<xsl:if test="position() = 1">
<tr>
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true" valign="bottom">
Message :
</td>
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true" valign="bottom">
Description :
</td>
<td class="tdss_rightAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true" valign="bottom" colspan="2">
<a href="#" style="text-decoration:none;" onclick="doHideMsg('errorActivityTable')"><font style="color:#000;text-decoration:none;padding-right:5px;" ><b>X</b></font></a>
</td>
</tr>
</xsl:if>
<xsl:variable name="message"><xsl:value-of select="message"/></xsl:variable>
<xsl:variable name="description"><xsl:value-of select="description"/></xsl:variable>
<xsl:variable name="type"><xsl:value-of select="type"/></xsl:variable>
<xsl:variable name="dbID"><xsl:value-of select="@domId"/></xsl:variable>
<xsl:variable name="column_name"><xsl:value-of select="@column_name"/></xsl:variable>
<tr style="background: rgba(255, 204, 0, 0.66);">
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true">
<xsl:value-of select="message"/>
</td>
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true">
<xsl:value-of select="description"/>
</td>
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true">
</td>
</tr>
</xsl:for-each>
<xsl:for-each select="//error">
<xsl:variable name="type"><xsl:value-of select="type"/></xsl:variable>
<xsl:if test="position() = 1">
<xsl:if test="$type = 'W'">
<tr style="background: rgba(255, 204, 0, 0.66);">
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true" valign="bottom">
<input type="checkbox" name="forceSave" value="true" checked="checked" onClick="setChecked(this)"/>
</td>
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true"></td>
</tr>
</xsl:if>
</xsl:if>
</xsl:for-each>
</table>
</div>
<div id="popHelpContainer"></div>
<div id="overlay"></div>
<div id="mainPageHeaderContatiner">
<div id="mainPage-input-Container">
<xsl:for-each select="//Detail1">
<xsl:variable name="dbID"><xsl:value-of select="@domID"/></xsl:variable>
<xsl:variable name="tran_id"><xsl:value-of select="tran_id"/></xsl:variable>
<xsl:variable name="tran_date"><xsl:value-of select="tran_date"/></xsl:variable>
<xsl:variable name="tran_type"><xsl:value-of select="tran_type"/></xsl:variable>
<xsl:variable name="descr"><xsl:value-of select="descr"/></xsl:variable>
<xsl:variable name="product_code"><xsl:value-of select="product_code"/></xsl:variable>
<xsl:variable name="eff_from"><xsl:value-of select="eff_from"/></xsl:variable>
<xsl:variable name="valid_upto"><xsl:value-of select="valid_upto"/></xsl:variable>
<xsl:variable name="remarks"><xsl:value-of select="remarks"/></xsl:variable>
<xsl:variable name="offer_free_qty"><xsl:value-of select="offer_free_qty"/></xsl:variable>
<xsl:variable name="offer_free_on"><xsl:value-of select="offer_free_on"/></xsl:variable>
<xsl:variable name="disc_perc"><xsl:value-of select="disc_perc"/></xsl:variable>
<table id="activityTable" border="0" cellSpacing="1" cellPadding="0" style="margin-bottom:25px;">
<tr style="display:none;">
<td class="td_rightAlign" nowrap="true" valign="middle" >
Tran ID :
</td>
<td class="td_leftAlign" >
<input type="text" class="input_editable" value="{$tran_id}" name="Detail1.{normalize-space($dbID)}.tran_id" id="Detail1.{normalize-space($dbID)}.tran_id" tabIndex="10"/>
</td>
<td class="td_rightAlign" nowrap="true" valign="middle">Tran date :</td>
<td class="td_leftAlign">
<input type="text" class="input_editable" value="{$tran_date}" name="Detail1.{normalize-space($dbID)}.tran_date" id="tran_date" tabIndex="20" onfocus="displayPopUpIcon('popUpIcon11');" />
<a href="javascript:setDate('tran_date');" id="popUpIcon11" tabIndex="-1"><img src="/ibase/webitm/images/calender.png" /></a>
</td>
</tr>
<tr>
<td class="td_rightAlign" nowrap="true" valign="middle" >
Product Code<span class="req">*</span>:
</td>
<td class="td_leftAlign" colspan="3">
<div id="inputDiv">
<input type="text" class="input_editable" popupFldName="PRODUCT_CODE" value="{$product_code}" name="Detail1.{normalize-space($dbID)}.product_code" id="Detail1.{normalize-space($dbID)}.product_code" onBlur="callItemChange('product_code', this);" tabIndex="30" style="width:21%;" onfocus="displayPopUpIcon('popUpIcon1');" onkeyup="getAutoPopupData(this);" />
<a href="javascript:getListOfValues('PRODUCT_CODE','Detail1.{normalize-space($dbID)}.product_code','');" id="popUpIcon1" tabIndex="-1" style="float:left;"><img src="/ibase/webitm/images/pophelp.png"/></a>
<input type="text" class="editDisplayClass" name="Detail1.{normalize-space($dbID)}.descr" id="Detail1.{normalize-space($dbID)}.descr" tabIndex="-1" style="width:60%;" readOnly="true" value="{$descr}"/>
</div>
</td>
</tr>
<tr>
<td class="td_rightAlign" nowrap="true" valign="middle" >
Effective From <span class="req">*</span>:
</td>
<td class="td_leftAlign" >
<input type="text" style="width:51.5%" class="input_editable" value="{$eff_from}" name="Detail1.{normalize-space($dbID)}.eff_from" id="eff_from" tabIndex="40" onfocus="displayPopUpIcon('popUpIcon12');" />
<a href="javascript:setDate('eff_from');" id="popUpIcon12" tabIndex="-1"><img src="/ibase/webitm/images/calender.png" /></a>
</td>
<td class="td_rightAlign" nowrap="true" valign="middle" >
Valid Upto<span class="req">*</span>:
</td>
<td class="td_leftAlign" >
<input type="text" style="width:63.5%" class="input_editable" value="{$valid_upto}" name="Detail1.{normalize-space($dbID)}.valid_upto" id="valid_upto" tabIndex="50" onfocus="displayPopUpIcon('popUpIcon13');" />
<a href="javascript:setDate('valid_upto');" id="popUpIcon13" tabIndex="-1"><img src="/ibase/webitm/images/calender.png" /></a>
</td>
</tr>
<tr>
<td class="td_rightAlign" nowrap="true" valign="middle">
Remarks:
</td>
<td class="td_leftAlign" colspan="3">
<input type="text" class="input_editable" value="{$remarks}" name="Detail1.{normalize-space($dbID)}.remarks" id="Detail1.{normalize-space($dbID)}.remarks" tabIndex="60" style="width:85%;" />
</td>
</tr>
<tr>
<td class="td_rightAlign" nowrap="true" valign="middle" >
Charge Type :
</td>
<td class="td_leftAlign" >
<SELECT id='Detail1.{normalize-space($dbID)}.tran_type' NAME="Detail1.{normalize-space($dbID)}.tran_type" align="LEFT" TABINDEX="70" class="input_editable">
<OPTION value="A"><xsl:choose><xsl:when test="$tran_type='A'"><xsl:attribute name="selected"/></xsl:when></xsl:choose><![CDATA[Apply Discount]]></OPTION>
</SELECT>
</td>
</tr>
<tr>
<td class="td_rightAlign" nowrap="true" valign="middle" >
Offer/Discount<span class="req">*</span>:
</td>
</tr>
<tr>
<td class="td_rightAlign" nowrap="true" valign="middle" >
<input type="radio" name="offer" value="true" onClick="enableTextBox('offer');" id="Detail1.{normalize-space($dbID)}.offer" TABINDEX="80"/>
</td>
<td class="td_leftAlign" colspan="3">
Quantity :
<input type="text" class="editDisplayClass qtyTextBox" onload="checkType();" value="{$offer_free_qty}" name="Detail1.{normalize-space($dbID)}.offer_free_qty" id="Detail1.{normalize-space($dbID)}.offer_free_qty" onkeypress="return isNumberKey(event);" readonly="true" tabIndex="90" />
Free On :
<input type="text" class="editDisplayClass qtyTextBox" value="{$offer_free_on}" name="Detail1.{normalize-space($dbID)}.offer_free_on" id="Detail1.{normalize-space($dbID)}.offer_free_on" onkeypress="return isNumberKey(event);" readonly="true" tabIndex="100" />
</td>
</tr>
<tr>
<td class="td_rightAlign" nowrap="true" valign="middle" >
<input type="radio" name="offer" onClick="enableTextBox('discount');" id="Detail1.{normalize-space($dbID)}.discount" />
</td>
<td class="td_leftAlign" >
Discount :
<input type="text" class="editDisplayClass qtyTextBox" value="{$disc_perc}" name="Detail1.{normalize-space($dbID)}.disc_perc" id="Detail1.{normalize-space($dbID)}.disc_perc" onkeypress="return isNumberKey(event);" readonly="true" tabIndex="110" /> %
</td>
</tr>
</table>
</xsl:for-each>
</div>
<div id="btnDiv">
<input type="hidden" value="1" name="FORM_NO" ID="FORM_NO" />
<input type="hidden" value="plistgen_wiz" name="OBJ_NAME" />
<input type="hidden" value="next" name="action" id="action" />
<input type="submit" style="cursor:hand;margin-left:2px;" value="Next" onclick="setActionVal('next');return validateHeaderForm();" class="button" title='Next' id="next"/>
</div>
</div>
<div id="buttonreplacement">
<img src="/ibase/images/preload.gif" alt="Please wait work in progress" ></img>
<span>Please wait......</span>
</div>
</form>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:decimal-format NaN="0"/>
<xsl:template match="/">
<html>
<body>
<script type="text/javascript" src="/ibase/webitm/js/PlistgenWiz.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery-1.10.2.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery-ui-1.10.4.custom.min.js"></script>
<link href="/ibase/webitm/css/Galaxy/galaxy-theme.css" rel="stylesheet"/>
<link href="/ibase/webitm/css/Standard/default.css" rel="stylesheet"/>
<link href="/ibase/webitm/css/htmlWizard.css" rel="stylesheet"/>
<link href="/ibase/webitm/css/PlistgenWiz.css" rel="stylesheet"/>
<link href="/ibase/webitm/css/jquery.datetimepicker.css" rel="stylesheet"/>
<link href="/ibase/webitm/css/jquery-ui-1.10.4.custom.min.css" rel="stylesheet"/>
<script>
<![CDATA[
$(function()
{
var acc = document.getElementsByClassName("accordion");
var i;
for (i = 0; i < acc.length; i++)
{
acc[i].onclick = function()
{
if(this.attributes.is_expandable.value != "false")
{
if(this.attributes.expanded.value == "false")
{
this.attributes.expanded.value = "true";
this.getElementsByTagName("i")[0].className = "up";
}
else
{
this.attributes.expanded.value = "false";
this.getElementsByTagName("i")[0].className = "down";
}
this.classList.toggle("activeAccor");
this.classList.toggle("active");
this.nextElementSibling.classList.toggle("show");
}
}
}
});
$(document).on("keydown", function (e) {
if (e.which === 8 && !$(e.target).is("input, textarea, form")) {
e.preventDefault();
}
else if(e.which === 13){
e.preventDefault();
}
});
]]>
</script>
<form name="plistgenWizForm2" id="plistgenWizForm2" METHOD="post" ACTION="/ibase/ITMWizardHandlerServlet">
<div class="contentHeaderLbl" style="position:fixed;overflow:hidden;width:97%;">
&#160;&#160;<img src="/ibase/images/menuImages/web/plistgen_wiz.png" onerror="this.src='/ibase/images/menuImages/errMenu.png'" style="position: absolute; margin-left: -20px; height: 20px; width: 20px;"/>
&#160;Manage Pricing
<input type="button" Value="Select All" class="button" id="selectAllRow" onclick="selectAllRows();" style="float: right;margin-right:2px;"/>
</div><br/><br/>
<div id="innerDiv" style="overflow-y:hidden;overflow-x:auto;max-height:80%;width:98%;position:absolute;z-index:5;">
<table id="errorActivityTable" height="10%" class="tableClass" style="margin: 12px 0px 0px 0px;position: relative;width: calc(literal('100% - 15px'));width: -moz-calc(literal('100% - 15px'));padding-right:0px; padding-left:5xp; width: -webkit-calc(literal('100% - 15px'));box-shadow: 3px 3px 3px gray;-moz-box-shadow:3px 3px 3px gray;-webkit-box-shadow: 3px 3px 3px gray;-o-box-shadow: 3px 3px 3px gray;background: rgba(255, 204, 0, 0.66);min-height: 50px;bottom:10px" border="0" cellspacing="0" cellpadding="0">
<xsl:for-each select="//error">
<xsl:if test="position() = 1">
<tr>
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true" valign="bottom">
Message :
</td>
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true" valign="bottom">
Description :
</td>
<td class="tdss_rightAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true" valign="bottom" colspan="2">
<a href="#" style="text-decoration:none;" onclick="doHideMsg('errorActivityTable')"><font style="color:#000;text-decoration:none;padding-right:5px;" ><b>X</b></font></a>
</td>
</tr>
</xsl:if>
<xsl:variable name="message"><xsl:value-of select="message"/></xsl:variable>
<xsl:variable name="description"><xsl:value-of select="description"/></xsl:variable>
<xsl:variable name="type"><xsl:value-of select="type"/></xsl:variable>
<xsl:variable name="dbID"><xsl:value-of select="@domId"/></xsl:variable>
<xsl:variable name="column_name"><xsl:value-of select="@column_name"/></xsl:variable>
<tr style="background: rgba(255, 204, 0, 0.66);">
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true">
<xsl:value-of select="message"/>
</td>
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true">
<xsl:value-of select="description"/>
</td>
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true">
</td>
</tr>
<script><![CDATA[]]>formatDetailWithErr();</script>
</xsl:for-each>
<xsl:for-each select="//error">
<xsl:variable name="type"><xsl:value-of select="type"/></xsl:variable>
<xsl:if test="position() = 1">
<xsl:if test="$type = 'W'">
<tr style="background: rgba(255, 204, 0, 0.66);">
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true" valign="bottom">
<input type="checkbox" name="forceSave" value="true" checked="checked" onClick="setChecked(this)"/>
</td>
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true"></td>
</tr>
</xsl:if>
</xsl:if>
</xsl:for-each>
</table>
</div>
<div id="sideImagePanel" class="imagePanel"></div>
<div id="popHelpContainer"></div>
<div id="overlay"></div>
<div id="mainPageHeaderContatiner">
<div id="detailPage-input-Container">
<xsl:for-each select="//Detail2">
<xsl:variable name="dbID"><xsl:value-of select="@domID"/></xsl:variable>
<xsl:variable name="price_list"><xsl:value-of select="price_list"/></xsl:variable>
<xsl:if test="$dbID = '0'">
<xsl:variable name="product_code"><xsl:value-of select="product_code"/></xsl:variable>
<xsl:variable name="eff_from"><xsl:value-of select="eff_from"/></xsl:variable>
<xsl:variable name="valid_upto"><xsl:value-of select="valid_upto"/></xsl:variable>
<xsl:variable name="offer_free_qty"><xsl:value-of select="offer_free_qty"/></xsl:variable>
<xsl:variable name="offer_free_on"><xsl:value-of select="offer_free_on"/></xsl:variable>
<xsl:variable name="disc_perc"><xsl:value-of select="disc_perc"/></xsl:variable>
<xsl:variable name="remarks"><xsl:value-of select="remarks"/></xsl:variable>
<xsl:variable name="descr"><xsl:value-of select="descr"/></xsl:variable>
<input type="hidden" value="{$product_code}" name="Detail2.{normalize-space($dbID)}.product_code" id="product_code" />
<input type="hidden" value="{$eff_from}" name="Detail2.{normalize-space($dbID)}.eff_from" id="eff_from" />
<input type="hidden" value="{$valid_upto}" name="Detail2.{normalize-space($dbID)}.valid_upto" id="valid_upto" />
<input type="hidden" value="{$offer_free_qty}" name="Detail2.{normalize-space($dbID)}.offer_free_qty" id="offer_free_qty" />
<input type="hidden" value="{$offer_free_on}" name="Detail2.{normalize-space($dbID)}.offer_free_on" id="offer_free_on" />
<input type="hidden" value="{$disc_perc}" name="Detail2.{normalize-space($dbID)}.product_style__to" id="disc_perc" />
<input type="hidden" value="{$remarks}" name="Detail2.{normalize-space($dbID)}.remarks" id="remarks" />
<input type="hidden" value="{$descr}" name="Detail2.{normalize-space($dbID)}.descr" id="descr" />
</xsl:if>
<xsl:if test ="$dbID != '0'">
<xsl:variable name="is_expandable"><xsl:value-of select="is_expandable"/></xsl:variable>
<xsl:variable name="plist_type"><xsl:value-of select="plist_type"/></xsl:variable>
<xsl:variable name="is_selected"><xsl:value-of select="is_selected"/></xsl:variable>
<button class="accordion" type="button" expanded="false" is_expandable="{$is_expandable}">
<xsl:choose>
<xsl:when test="dom_id">
<xsl:variable name="dom_id"><xsl:value-of select="dom_id"/></xsl:variable>
<xsl:choose>
<xsl:when test="$is_selected='true'">
<input type="checkbox" checked="true" textBoxID="{$dom_id}" value="true" name="Detail2.{normalize-space($dom_id)}.selectbox" id="Detail2.{normalize-space($dom_id)}.selectbox"/>
</xsl:when>
<xsl:otherwise>
<input type="checkbox" value="true" textBoxID="{$dom_id}" name="Detail2.{normalize-space($dom_id)}.selectbox" id="Detail2.{normalize-space($dom_id)}.selectbox"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<input type="checkbox" value="true" name="parentCheckbox{$dbID}" id="parentCheckbox{$dbID}" onclick="checkChildChkBox(this, event);"/>
</xsl:otherwise>
</xsl:choose>
<xsl:variable name="dom_id"><xsl:value-of select="dom_id"/></xsl:variable>
<div class="plistTextDiv">
<div class="headerText"><xsl:value-of select="price_list"/> - Description - <xsl:value-of select="descr"/> </div>
<xsl:if test="$is_expandable = 'false'">
<xsl:variable name="dom_id"><xsl:value-of select="dom_id"/></xsl:variable>
<input type="hidden" name="Detail2.{normalize-space($dom_id)}.price_list" id='Detail2.{normalize-space($dom_id)}.price_list' value="{$price_list}" />
<xsl:variable name="calc_method"><xsl:value-of select="calc_method"/></xsl:variable>
<xsl:variable name="list_type"><xsl:value-of select="list_type"/></xsl:variable>
<input type="hidden" name="Detail2.{normalize-space($dom_id)}.calc_method" id='Detail2.{normalize-space($dom_id)}.calc_method' value="{$calc_method}" />
<input type="hidden" name="Detail2.{normalize-space($dom_id)}.list_type" id='Detail2.{normalize-space($dom_id)}.list_type' value="{$list_type}" />
<xsl:choose>
<xsl:when test="$plist_type = 'O'">
<xsl:variable name="offer_free_qty"><xsl:value-of select="offer_free_qty"/> </xsl:variable>
<xsl:variable name="offer_free_on"><xsl:value-of select="offer_free_on"/> </xsl:variable>
<div id="offrOrQty{$dom_id}" class="offerDiscDiv" style="display:none;">Quantity :<input type="text" name="Detail2.{normalize-space($dom_id)}.offer_free_qty" id='Detail2.{normalize-space($dom_id)}.offer_free_qty' class="qtyTextBox" onKeyPress="return isNumberKey(event);" value="{$offer_free_qty}" /> Free on : <input type="text" name="Detail2.{normalize-space($dom_id)}.offer_free_on" id='Detail2.{normalize-space($dom_id)}.offer_free_on' class="qtyTextBox" onKeyPress="return isNumberKey(event);" value="{$offer_free_on}" /> <input type="button" class="button svBtn" value="Save" onclick="hideOfferDiv('{$dom_id}');" /></div>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="disc_perc"><xsl:value-of select="disc_perc"/> </xsl:variable>
<div id="offrOrQty{$dom_id}" class="offerDiscDiv" style="display:none;">Discount :<input type="text" name="Detail2.{normalize-space($dom_id)}.disc_perc" id='Detail2.{normalize-space($dom_id)}.disc_perc' class="qtyTextBox" onKeyPress="return isNumberKey(event);" value="{$disc_perc}" /> % <input type="button" class="button svBtn" value="Save" onclick="hideOfferDiv('{$dom_id}');"/></div>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</div>
<xsl:choose>
<xsl:when test="$is_expandable = 'false'">
<xsl:variable name="dom_id"><xsl:value-of select="dom_id"/></xsl:variable>
<div class="editBtn" onclick="displayOfferDiv('{$dom_id}');">Edit</div>
</xsl:when>
<xsl:otherwise>
<div style="float:right"><i class="down"></i></div>
</xsl:otherwise>
</xsl:choose>
</button>
<xsl:if test="$is_expandable != 'false'">
<div class="panel">
<xsl:for-each select = "plist_childs/plist">
<xsl:variable name="dom_id"><xsl:value-of select="dom_id"/> </xsl:variable>
<xsl:variable name="plist_type"><xsl:value-of select="plist_type"/> </xsl:variable>
<xsl:variable name="plist_child"><xsl:value-of select="price_list"/> </xsl:variable>
<xsl:variable name="is_selected"><xsl:value-of select="is_selected"/></xsl:variable>
<input type="hidden" name="Detail2.{normalize-space($dom_id)}.price_list__parent" id='Detail2.{normalize-space($dom_id)}.price_list__parent' value="{$price_list}" />
<div class="childPlistDiv">
<xsl:choose>
<xsl:when test="$is_selected='true'">
<input type="checkbox" value="true" checked="true" textBoxID="{$dom_id}" childName="childChkBox{$dbID}" onclick="changeParentChkBox('{$dbID}');" name="Detail2.{normalize-space($dom_id)}.selectbox" id="Detail2.{normalize-space($dom_id)}.selectbox"/>
</xsl:when>
<xsl:otherwise>
<input type="checkbox" value="true" childName="childChkBox{$dbID}" onclick="changeParentChkBox('{$dbID}');" name="Detail2.{normalize-space($dom_id)}.selectbox" id="Detail2.{normalize-space($dom_id)}.selectbox"/>
</xsl:otherwise>
</xsl:choose>
<div class="plistTextDiv">
<span class="headerText"><xsl:value-of select="price_list"/> <input type="hidden" name="Detail2.{normalize-space($dom_id)}.price_list" id='Detail2.{normalize-space($dom_id)}.price_list' value="{$plist_child}" />- Description: - <xsl:value-of select="descr"/> </span>
<xsl:variable name="calc_method"><xsl:value-of select="calc_method"/></xsl:variable>
<xsl:variable name="list_type"><xsl:value-of select="list_type"/></xsl:variable>
<input type="hidden" name="Detail2.{normalize-space($dom_id)}.calc_method" id='Detail2.{normalize-space($dom_id)}.calc_method' value="{$calc_method}" />
<input type="hidden" name="Detail2.{normalize-space($dom_id)}.list_type" id='Detail2.{normalize-space($dom_id)}.list_type' value="{$list_type}" />
<xsl:choose>
<xsl:when test="$plist_type = 'O'">
<xsl:variable name="offer_free_qty"><xsl:value-of select="offer_free_qty"/> </xsl:variable>
<xsl:variable name="offer_free_on"><xsl:value-of select="offer_free_on"/> </xsl:variable>
<div id="offrOrQty{$dom_id}" class="offerDiscDiv" style="display:none;">Quantity :<input type="text" name="Detail2.{normalize-space($dom_id)}.offer_free_qty" id='Detail2.{normalize-space($dom_id)}.offer_free_qty' class="qtyTextBox" onKeyPress="return isNumberKey(event);" value="{$offer_free_qty}" /> Free on : <input type="text" name="Detail2.{normalize-space($dom_id)}.offer_free_on" id='Detail2.{normalize-space($dom_id)}.offer_free_on' class="qtyTextBox" onKeyPress="return isNumberKey(event);" value="{$offer_free_on}" /> <input type="button" class="button svBtn" value="Save" onclick="hideOfferDiv('{$dom_id}');" /></div>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="disc_perc"><xsl:value-of select="disc_perc"/> </xsl:variable>
<div id="offrOrQty{$dom_id}" class="offerDiscDiv" style="display:none;">Discount :<input type="text" name="Detail2.{normalize-space($dom_id)}.disc_perc" id='Detail2.{normalize-space($dom_id)}.disc_perc' class="qtyTextBox" onKeyPress="return isNumberKey(event);" value="{$disc_perc}" /> % <input type="button" class="button svBtn" value="Save" onclick="hideOfferDiv('{$dom_id}');"/></div>
</xsl:otherwise>
</xsl:choose>
</div>
<div class="editBtn" onclick="displayOfferDiv('{$dom_id}');">Edit</div>
</div>
</xsl:for-each>
</div>
</xsl:if>
</xsl:if>
</xsl:for-each>
</div>
<div id="btnDiv" style="width:100%;">
<input type="hidden" value="2" name="FORM_NO" ID="FORM_NO" />
<input type="hidden" value="plistgen_wiz" name="OBJ_NAME" />
<input type="hidden" name="PRE_FORM_VAL" ID="PRE_FORM_VAL" />
<input type="hidden" value="1:MP" name="formType" id="formType" />
<input type="hidden" value="" name="action" id="action" />
<input type="button" style="margin-left:2px;" value="Previous" class="button" title="back" id="back" onclick="form2Previous();"/>
<input type="submit" style="margin-left:2px;" value="Next" class="button" title="Next" id="next" onclick="setActionVal('next');return validateSubmit();" />
</div>
</div>
<div id="buttonreplacement">
<img src="/ibase/images/preload.gif" alt="Please wait work in progress" ></img>
<span>Please wait......</span>
</div>
</form>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:decimal-format NaN="0"/>
<xsl:template match="/">
<html>
<body onload="alingNumberTD();">
<script type="text/javascript" src="/ibase/webitm/js/PlistgenWiz.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery-1.10.2.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery-ui-1.10.4.custom.min.js"></script>
<link href="/ibase/webitm/css/Galaxy/galaxy-theme.css" rel="stylesheet"/>
<link href="/ibase/webitm/css/Standard/default.css" rel="stylesheet"/>
<link href="/ibase/webitm/css/htmlWizard.css" rel="stylesheet"/>
<link href="/ibase/webitm/css/PlistgenWiz.css" rel="stylesheet"/>
<link href="/ibase/webitm/css/jquery.datetimepicker.css" rel="stylesheet"/>
<link href="/ibase/webitm/css/jquery-ui-1.10.4.custom.min.css" rel="stylesheet"/>
<script>
<![CDATA[
$(document).on("keydown", function (e) {
if (e.which === 8 && !$(e.target).is("input, textarea, form")) {
e.preventDefault();
}
else if(e.which === 13){
e.preventDefault();
}
});
]]>
</script>
<form name="plistgenWizForm3" id="plistgenWizForm3" METHOD="post" ACTION="/ibase/ITMWizardHandlerServlet">
<div class="contentHeaderLbl" style="position:fixed;overflow:hidden;width:97%;">
&#160;&#160;<img src="/ibase/images/menuImages/web/plistgen_wiz.png" onerror="this.src='/ibase/images/menuImages/errMenu.png'" style="position: absolute; margin-left: -20px; height: 20px; width: 20px;"/>
&#160;Manage Pricing
</div><br/><br/>
<div id="innerDiv" style="overflow-y:hidden;overflow-x:auto;max-height:80%;width:98%;position:absolute;z-index:5;">
<table id="errorActivityTable" height="10%" class="tableClass" style="margin: 12px 0px 0px 0px;position: relative;width: calc(literal('100% - 15px'));width: -moz-calc(literal('100% - 15px'));padding-right:0px; padding-left:5xp; width: -webkit-calc(literal('100% - 15px'));box-shadow: 3px 3px 3px gray;-moz-box-shadow:3px 3px 3px gray;-webkit-box-shadow: 3px 3px 3px gray;-o-box-shadow: 3px 3px 3px gray;background: rgba(255, 204, 0, 0.66);min-height: 50px;bottom:10px" border="0" cellspacing="0" cellpadding="0">
<xsl:for-each select="//error">
<xsl:if test="position() = 1">
<tr>
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true" valign="bottom">
Message :
</td>
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true" valign="bottom">
Description :
</td>
<td class="tdss_rightAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true" valign="bottom" colspan="2">
<a href="#" style="text-decoration:none;" onclick="doHideMsg('errorActivityTable')"><font style="color:#000;text-decoration:none;padding-right:5px;" ><b>X</b></font></a>
</td>
</tr>
</xsl:if>
<xsl:variable name="message"><xsl:value-of select="message"/></xsl:variable>
<xsl:variable name="description"><xsl:value-of select="description"/></xsl:variable>
<xsl:variable name="type"><xsl:value-of select="type"/></xsl:variable>
<xsl:variable name="dbID"><xsl:value-of select="@domId"/></xsl:variable>
<xsl:variable name="column_name"><xsl:value-of select="@column_name"/></xsl:variable>
<tr style="background: rgba(255, 204, 0, 0.66);">
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true">
<xsl:value-of select="message"/>
</td>
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true">
<xsl:value-of select="description"/>
</td>
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true">
</td>
</tr>
<script><![CDATA[]]>formatDetailWithErr();</script>
</xsl:for-each>
<xsl:for-each select="//error">
<xsl:variable name="type"><xsl:value-of select="type"/></xsl:variable>
<xsl:if test="position() = 1">
<xsl:if test="$type = 'W'">
<tr style="background: rgba(255, 204, 0, 0.66);">
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true" valign="bottom">
<input type="checkbox" name="forceSave" value="true" checked="checked" onClick="setChecked(this)"/>
</td>
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true"></td>
</tr>
</xsl:if>
</xsl:if>
</xsl:for-each>
</table>
</div>
<div id="sideImagePanel" class="imagePanel"></div>
<div id="popHelpContainer"></div>
<div id="overlay"></div>
<div id="mainPageHeaderContatiner">
<div id="detailPage-input-Container">
<table class = "tableClass" id="plistTable">
<thead class="table-head">
<tr class = "trClass">
<xsl:for-each select="//Detail3[1]/*">
<th nowrap="true" CLASS='thClass'>
<b><xsl:value-of select="."/></b>
</th>
</xsl:for-each>
</tr>
</thead>
<xsl:for-each select="//Detail3">
<tbody class="table-body">
<xsl:if test="position() != 1">
<tr>
<xsl:for-each select="*">
<td nowrap="true">
<xsl:value-of select="."/>
</td>
</xsl:for-each>
</tr>
</xsl:if>
</tbody>
</xsl:for-each>
</table>
</div>
<div id="btnDiv" style="width:100%;">
<input type="hidden" value="3" name="FORM_NO" ID="FORM_NO" />
<input type="hidden" value="plistgen_wiz" name="OBJ_NAME" id="OBJ_NAME" />
<input type="hidden" name="PRE_FORM_VAL" ID="PRE_FORM_VAL" />
<input type="hidden" value="2:MP" name="formType" id="formType" />
<input type="hidden" value="" name="action" id="action" />
<input type="submit" style="margin-left:2px;" value="Previous" class="button" title="back" id="back" onclick="setActionVal('previous');"/>
<input type="submit" style="margin-left:2px;" value="Finish" class="button" title="Finish" id="finish" onclick="setActionVal('finish');" />
</div>
</div>
<div id="buttonreplacement">
<img src="/ibase/images/preload.gif" alt="Please wait work in progress" ></img>
<span>Please wait......</span>
</div>
</form>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
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