Commit 3a16852d authored by SABURI PATEKAR's avatar SABURI PATEKAR
parents e5b8c01a cf43bd17
Insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER,IS_CONFIRMATION_REQ,SEP_DUTY_OPT,RE_AUTH_OPT,SHOW_IN_PANEL,PAGE_CONTEXT,TYPE,ACTION_ARG,SWIPE_POSITION,MULTI_ROW_OPT,ACTION_ID,DEF_NODATA,IN_PROC_INTRUPT,ESTIMATED_TIME,ACTION_GROUP,DISPLAY_OPT,DISPLAY_MODE,SHOW_CONFIRM,REC_SPECIFIC) values ('salesquot',6,'ibase/resource/objaction/confirm.svg','Acknowledgement','pre_post_item_change','a','X','Acknowledge','1','2',null,'U',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'2','000',null);
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT,FIELD_NAME,FORM_NO) values
('salesquot','pre_post_item_change','1','sales_quot_status',null,'0',to_date('04-DEC-07','DD-MON-RR'),'Jiten','user3','2','JB','ibase.webitm.ejb.dis.SalesQuotationAcknowledge',null,null,null);
Insert into SYSTEM_EVENT_SERVICES (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM,SERVICE_NAMESPACE,RES_ELEM,SOAP_ACTION,SERVICE_TYPE,SERVICE_HANDLER,DESCR) values ('sales_quot_status','Action To update status','http://localhost:9090/axis/services/ActionHandlerService','Base','updateStatus','String','S',null,null,to_date('24-JAN-18','DD-MON-RR'),'base ','base',null,null,null,null,null,null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('sales_quot_status',1,'COMPONENT_TYPE','I','Component Type','S',null,to_date('01-JUN-12','DD-MON-RR'),'BASE ','BASE','JB');
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('sales_quot_status',2,'COMPONENT_NAME','I','Component Name','S',null,to_date('01-JUN-12','DD-MON-RR'),'BASE ','BASE','ibase.webitm.ejb.dis.SalesQuotationAcknowledge');
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('sales_quot_status',3,'<tran_id>','I','tranid','B.String',null,to_date('01-JUN-12','DD-MON-RR'),'BASE ','BASE',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('sales_quot_status',4,'XTRA_PARAMS','I','Extra Arguments','S',null,to_date('01-JUN-12','DD-MON-RR'),'BASE ','BASE',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('sales_quot_status',5,'FORCED_FLAG','I','Forced Flag','S',null,to_date('01-JUN-12','DD-MON-RR'),'BASE ','BASE',null);
Insert into MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION) values
('SALESACK','Acknowledgement completed successfully.','The transaction has been successfully acknowledged.','P','Y',null,null,null,to_date('25-DEC-13','DD-MON-RR'),'BASE','BASE',null,null);
Insert into MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION) values
('NOACKN','Transaction not acknowledged','Stockist details cannot be entered because the transaction has not been acknowledged.','E','Y',null,null,null,to_date('25-DEC-13','DD-MON-RR'),'BASE','BASE',null,null);
package ibase.webitm.ejb.dis;
import java.rmi.RemoteException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import ibase.utility.BaseLogger;
import ibase.webitm.ejb.ActionHandlerEJB;
import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.utility.ITMException;
public class SalesQuotationAcknowledge extends ActionHandlerEJB{
public String updateStatus(String tranID,String xtraParams, String forcedFlag) throws RemoteException,ITMException
{
Connection conn = null;
String errString = "";
ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB();
try
{
BaseLogger.log("3", getUserInfo(), null, "SalesQuotationAcknowledge --> tranID MArch 9 2026["+tranID+"]");
conn = getConnection();
//Added by Ajit on 06-MARCH to update the status to "A" on click of Acknowledged button [Start]
String updateStatusSql = "update sales_quot set status = 'A' where QUOT_NO = ?";
PreparedStatement updateStatusPs = conn.prepareStatement(updateStatusSql);
updateStatusPs.setString(1, tranID);
int updateStatusCnt = updateStatusPs.executeUpdate();
BaseLogger.log("3", getUserInfo(), null, "SalesQuotationAcknowledge --> updateStatusCnt ["+updateStatusCnt+"]");
if(updateStatusCnt>0) {
conn.commit();
return errString = itmDBAccessEJB.getErrorString("","SALESACK","","",conn);
}
}catch(Exception e) {
BaseLogger.log("3", getUserInfo(), null, "Exception from SalesQuotationAcknowledge updateStatus --["+e.getMessage()+"]");
e.printStackTrace();
}
return " ";
}
}
package ibase.webitm.ejb.dis;
/**
* AUTHOR : MANISH MHATRE 10-3-2021
* COMPONENT : VALIDATION AND ITEMCHANGE OF SALES QUOTATION
**/
import java.rmi.RemoteException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import javax.ejb.Stateless;
import org.w3c.dom.CDATASection;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import ibase.utility.BaseLogger;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.ejb.ValidatorEJB;
import ibase.webitm.ejb.ValidatorLocal;
import ibase.webitm.ejb.ValidatorRemote;
import ibase.webitm.ejb.fin.FinCommon;
import ibase.webitm.ejb.sys.UtilMethods;
import ibase.webitm.utility.ITMException;
@Stateless
public class SalesQuotationIC extends ValidatorEJB implements ValidatorLocal,ValidatorRemote
{
ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB();
E12GenericUtility genericUtility = new E12GenericUtility();
DistCommon distCommon = new DistCommon();
FinCommon finCommon = new FinCommon();
public String wfValData(String xmlString, String xmlString1,String xmlString2, String objContext, String editFlag,String xtraParams) throws RemoteException, ITMException
{
String retString = "";
Document dom = null;
Document dom1 = null;
Document dom2 = null;
BaseLogger.log("3", getUserInfo(), null, "xmlString............." + xmlString);
BaseLogger.log("3", getUserInfo(), null, "xmlString1............" + xmlString1);
BaseLogger.log("3", getUserInfo(), null, "xmlString2............" + xmlString2);
try
{
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 = wfValData(dom, dom1, dom2, objContext, editFlag,xtraParams);
BaseLogger.log("3", getUserInfo(), null, "ErrString :" + retString);
}
catch(Exception e)
{
BaseLogger.log("3", getUserInfo(), null, "Exception --["+e.getMessage()+"]");
e.printStackTrace();
throw new ITMException(e);
}
return retString;
}
public String wfValData(Document dom, Document dom1, Document dom2, String objContext, String editFlag, String xtraParams)throws RemoteException, ITMException
{
NodeList parentList = null;
Node parentNode = null;
NodeList childList = null;
Node childNode = null;
String childNodeName = "";
String userId = "";
Connection conn = null;
int currentFormNo = 0;
int ctr = 0;
int cnt = 0;
String siteCode = "" , modName = "";
String custCode="",currCode="",empCodeConf="",itemCode="",unit="",unitRate="",crTerm="",dlvTerm="",packCode="";
String taxClass="",taxChap="",taxEnv="";
Timestamp quotDate = null;
SimpleDateFormat dateFormat = null;
UtilMethods utilMethods = new UtilMethods();
DistCommon disCommon = new DistCommon();
FinCommon finCommon = new FinCommon();
String sql = "",salesPers = "",opprId = "";
PreparedStatement pstmt = null;
ResultSet rs = null;
String errCode = "" , errString = "" , errorType = "";
ArrayList<String> errList = new ArrayList<String>();
ArrayList<String> errFields = new ArrayList<String>();
StringBuffer errStringXml = new StringBuffer("<?xml version = \"1.0\"?> \r\n <Root> <Errors>");
try
{
BaseLogger.log("3", getUserInfo(), null, "Inside wfValdata ***********");
conn = getConnection();
dateFormat = new SimpleDateFormat(genericUtility.getApplDateFormat());
userId = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode"));
if (objContext != null && objContext.trim().length() > 0)
{
currentFormNo = Integer.parseInt(objContext);
}
switch (currentFormNo)
{
case 1:
{
parentList = dom.getElementsByTagName("Detail1");
parentNode = parentList.item(0);
childList = parentNode.getChildNodes();
for (ctr = 0; ctr < childList.getLength(); ctr++)
{
childNode = childList.item(ctr);
childNodeName = childNode.getNodeName();
if(childNodeName.equalsIgnoreCase("cust_code"))
{
custCode = genericUtility.getColumnValue("cust_code", dom);
BaseLogger.log("3", getUserInfo(), null, "custCode ["+custCode+"]");
if(custCode == null || custCode.trim().length() == 0)
{
errCode="VMCUSTCD1";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
else
{
sql="select count(*) from customer where cust_code=? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, custCode);
rs = pstmt.executeQuery();
if(rs.next())
{
cnt = rs.getInt(1);
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(cnt==0)
{
errCode="VTCUSTCD1";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
}
else if(childNodeName.equalsIgnoreCase("curr_code"))
{
currCode= genericUtility.getColumnValue("curr_code", dom);
if(currCode==null || currCode.trim().length()==0)
{
errCode="VECUR2";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
else
{
sql="select count(*) from currency where curr_code=? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, currCode);
rs = pstmt.executeQuery();
if(rs.next())
{
cnt = rs.getInt(1);
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(cnt==0)
{
errCode="VTCURRCD1";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
}
else if (childNodeName.equalsIgnoreCase("emp_code__conf")) {
empCodeConf = genericUtility.getColumnValue("em_code__conf", dom);
if (empCodeConf != null && empCodeConf.trim().length() > 0) {
sql = "select count(*) from employee where emp_code=? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, empCodeConf);
rs = pstmt.executeQuery();
if (rs.next()) {
cnt = rs.getInt(1);
}
if (rs != null) {
rs.close();
rs = null;
}
if (pstmt != null) {
pstmt.close();
pstmt = null;
}
if (cnt == 0) {
errCode = "VMEMP1";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
}
else if(childNodeName.equalsIgnoreCase("cr_term"))
{
crTerm= genericUtility.getColumnValue("cr_term", dom);
if(crTerm!=null && crTerm.trim().length()>0)
{
sql = "select count(*) from crterm where cr_term = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, crTerm);
rs = pstmt.executeQuery();
if(rs.next())
{
cnt = rs.getInt(1);
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(cnt == 0)
{
errCode = "VTCRTERM1";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
}
else if(childNodeName.equalsIgnoreCase("item_ser"))
{
String itemSer= genericUtility.getColumnValue("item_ser", dom);
if (itemSer == null || itemSer.trim().length() == 0) {
errCode = "VTITEMSER5";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
else
{
sql = "select count(*) from itemser where item_ser = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, itemSer);
rs = pstmt.executeQuery();
if(rs.next())
{
cnt = rs.getInt(1);
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(cnt == 0)
{
errCode = "VTITMSER1";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
}
else if(childNodeName.equalsIgnoreCase("dlv_term"))
{
dlvTerm= genericUtility.getColumnValue("dlv_term", dom);
if(dlvTerm!=null && dlvTerm.trim().length()>0)
{
sql = "select count(*) from delivery_term where dlv_term = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, dlvTerm);
rs = pstmt.executeQuery();
if(rs.next())
{
cnt = rs.getInt(1);
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(cnt == 0)
{
errCode = "VMDLVTERM1"; //new message defined
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
}
else if (childNodeName.equalsIgnoreCase("sales_pers")) {
salesPers = genericUtility.getColumnValue("sales_pers", dom);
if (salesPers != null && salesPers.trim().length() > 0) {
sql = "select count(*) from sales_pers where sales_pers= ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, salesPers);
rs = pstmt.executeQuery();
if (rs.next()) {
cnt = rs.getInt(1);
}
if (rs != null) {
rs.close();
rs = null;
}
if (pstmt != null) {
pstmt.close();
pstmt = null;
}
if (cnt == 0) {
errCode = "VTSALPRN";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
}
else if (childNodeName.equalsIgnoreCase("oppr_id")) {
opprId = genericUtility.getColumnValue("oppr_id", dom);
if (opprId != null && opprId.trim().length() > 0) {
sql = "select count(*) from opportunity where oppr_id= ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, opprId);
rs = pstmt.executeQuery();
if (rs.next()) {
cnt = rs.getInt(1);
}
if (rs != null) {
rs.close();
rs = null;
}
if (pstmt != null) {
pstmt.close();
pstmt = null;
}
if (cnt == 0) {
errCode = "VTOPPRID";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
}
//Added By Sakshi P on 29/Oct/2025
// tax_class
else if (childNodeName.equalsIgnoreCase("tax_class")) {
taxClass = checkNull(genericUtility.getColumnValue("tax_class", dom));
BaseLogger.log("3", getUserInfo(), null, "taxClass: " + taxClass);
if (taxClass.trim().length() != 0) {
if (!(isExist(conn, "taxclass", "tax_class", taxClass))) {
errCode = "VTTCLASS1";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
BaseLogger.log("3", getUserInfo(), null, "Tax class not define in tax class master.");
}
}
}
// tax_chap
else if (childNodeName.equalsIgnoreCase("tax_chap")) {
taxChap = checkNull(genericUtility.getColumnValue("tax_chap", dom));
BaseLogger.log("3", getUserInfo(), null, "taxChap: " + taxChap);
if (taxChap.trim().length() > 0) {
if (!(isExist(conn, "taxchap", "tax_chap", taxChap))) {
errCode = "VTTCHAP1";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
BaseLogger.log("3", getUserInfo(), null, "Tax chapter not define in tax chapter master");
}
}
}
// tax_env
else if (childNodeName.equalsIgnoreCase("tax_env")) {
taxEnv = checkNull(genericUtility.getColumnValue("tax_env", dom));
quotDate = Timestamp.valueOf(
genericUtility.getValidDateString(genericUtility.getColumnValue("quot_date", dom),
genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat())
+ " 00:00:00.0");
if (taxEnv.trim().length() != 0) {
if (!(isExist(conn, "taxenv", "tax_env", taxEnv))) {
errCode = "VTTENV1";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
BaseLogger.log("3", getUserInfo(), null, "TAX ENVIRONMENT NOT DEFINED");
} else {
errCode = distCommon.getCheckTaxEnvStatus(taxEnv, quotDate, "S", conn);
if (errCode != null && errCode.trim().length() > 0) {
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
BaseLogger.log("3", getUserInfo(), null, "TAX ENVIRONMENT NOT DEFINED");
}
}
}
}
} // end for
} // End of Case 1
break;
case 2 :
{
parentList = dom.getElementsByTagName("Detail" + currentFormNo);
parentNode = parentList.item(0);
childList = parentNode.getChildNodes();
for (ctr = 0; ctr < childList.getLength(); ctr++)
{
childNode = childList.item(ctr);
childNodeName = childNode.getNodeName();
if(childNodeName.equalsIgnoreCase("item_code"))
{
itemCode = genericUtility.getColumnValue("item_code", dom);
if(itemCode==null || itemCode.trim().length()==0)
{
errCode = "VITMCODE";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
else
{
sql = "select count(*) from item where item_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, itemCode);
rs = pstmt.executeQuery();
if(rs.next())
{
cnt = rs.getInt(1);
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(cnt == 0)
{
errCode = "VTITEM1";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
}
else if(childNodeName.equalsIgnoreCase("unit"))
{
unit= genericUtility.getColumnValue("unit", dom);
if(unit==null || unit.trim().length()==0)
{
errCode = "VMUNIT";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
else
{
sql = "select count(*) from uom where unit = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, unit);
rs = pstmt.executeQuery();
if(rs.next())
{
cnt = rs.getInt(1);
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(cnt == 0)
{
errCode = "VTUNIT1";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
}
else if(childNodeName.equalsIgnoreCase("unit__rate"))
{
unitRate= genericUtility.getColumnValue("unit__rate", dom);
if(unitRate==null || unitRate.trim().length()==0)
{
//errCode = "VMBUSUNI01";
errCode = "VMUNIT";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
else
{
sql = "select count(*) from uom where unit = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, unitRate);
rs = pstmt.executeQuery();
if(rs.next())
{
cnt = rs.getInt(1);
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(cnt == 0)
{
errCode = "VTUNIT1";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
}
else if(childNodeName.equalsIgnoreCase("cr_term"))
{
crTerm= genericUtility.getColumnValue("cr_term", dom);
if(crTerm!=null && crTerm.trim().length()>0)
{
sql = "select count(*) from crterm where cr_term = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, crTerm);
rs = pstmt.executeQuery();
if(rs.next())
{
cnt = rs.getInt(1);
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(cnt == 0)
{
errCode = "VTCRTERM1";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
}
else if(childNodeName.equalsIgnoreCase("dlv_term"))
{
dlvTerm= genericUtility.getColumnValue("dlv_term", dom);
if(dlvTerm!=null && dlvTerm.trim().length()>0)
{
sql = "select count(*) from delivery_term where dlv_term = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, dlvTerm);
rs = pstmt.executeQuery();
if(rs.next())
{
cnt = rs.getInt(1);
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(cnt == 0)
{
errCode = "VMDLVTERM1"; //new message defined
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
}
else if(childNodeName.equalsIgnoreCase("pack_code"))
{
packCode= genericUtility.getColumnValue("pack_code", dom);
if(packCode!=null && packCode.trim().length()>0)
{
sql = "select count(*) from packing where pack_code = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, packCode);
rs = pstmt.executeQuery();
if(rs.next())
{
cnt = rs.getInt(1);
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(cnt == 0)
{
errCode = "VTPKCD1";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
}
}//end for
} //end case 2
break;
// case 3 start
//Added by Ajit on 06-MARCH to add the validation if the transaction is not acknowedge [Start]
case 3 :
{
parentList = dom.getElementsByTagName("Detail" + currentFormNo);
parentNode = parentList.item(0);
childList = parentNode.getChildNodes();
for (ctr = 0; ctr < childList.getLength(); ctr++)
{
childNode = childList.item(ctr);
childNodeName = childNode.getNodeName();
BaseLogger.log("3", getUserInfo(), null, "Case 3 salesQuotationIC");
String quotNo = genericUtility.getColumnValue("quot_no", dom1);
BaseLogger.log("3", getUserInfo(), null, "Case 3 itm_default salesQuotationIC quotNo::"+quotNo);
String status = "";
String checkAcknowledgeStatusSql = "select status from sales_quot where quot_no = ?";
PreparedStatement checkAcknowledgeStatusPs = conn.prepareStatement(checkAcknowledgeStatusSql);
checkAcknowledgeStatusPs.setString(1, quotNo);
ResultSet checkAcknowledgeStatusRs = checkAcknowledgeStatusPs.executeQuery();
while(checkAcknowledgeStatusRs.next()) {
status = checkAcknowledgeStatusRs.getString("status");
BaseLogger.log("3", getUserInfo(), null, "Case 3 itm_default salesQuotationIC status::"+status);
}
if(!status.trim().equalsIgnoreCase("A")) {
BaseLogger.log("3", getUserInfo(), null, "Case 3 itm_default salesQuotationIC transaction is not acknowledged: status::"+status);
errCode = "NOACKN";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
if(checkAcknowledgeStatusRs != null)
{
checkAcknowledgeStatusRs.close();
checkAcknowledgeStatusRs = null;
}
if(checkAcknowledgeStatusPs != null)
{
checkAcknowledgeStatusPs.close();
checkAcknowledgeStatusPs = null;
}
}
}//end case 3
break;
//Added by Ajit on 06-MARCH to add the validation if the transaction is not acknowedge [End]
} //end switch
int errListSize = errList.size();
BaseLogger.log("3", getUserInfo(), null, "errListSize::::::::::"+errListSize);
int count = 0;
String errFldName = null;
if (errList != null && errListSize > 0)
{
for (count = 0; count < errListSize; count++)
{
errCode = errList.get(count);
errFldName = errFields.get(count);
BaseLogger.log("3", getUserInfo(), null, " testing :errCode .:" + errCode+"errString>>>>>>>>>"+errString);
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);
errString = "";
}
if (errorType.equalsIgnoreCase("E"))
{
break;
}
}
errList.clear();
errList = null;
errFields.clear();
errFields = null;
errStringXml.append("</Errors> </Root> \r\n");
}//end of if for errList
else
{
errStringXml = new StringBuffer("");
}
errString = errStringXml.toString();
}
catch(Exception e)
{
BaseLogger.log("3", getUserInfo(), null, "Exception --["+e.getMessage()+"]");
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try
{
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(conn != null)
{
conn.close();
conn = null;
}
}
catch(Exception e)
{
BaseLogger.log("3", getUserInfo(), null, "Exception --["+e.getMessage()+"]");
e.printStackTrace();
throw new ITMException(e);
}
}
errString = errStringXml.toString();
BaseLogger.log("3", getUserInfo(), null, "testing : final errString : " + errString);
return errString;
}
public String itemChanged(String xmString, String xmString1, String xmString2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException, ITMException
{
Document dom = null;
Document dom1 = null;
Document dom2 = null;
String errString = null;
BaseLogger.log("3", getUserInfo(), null, "currFrmXmlStr26Feb::"+xmString);
BaseLogger.log("3", getUserInfo(), null, "hdrFrmXmlStr::"+xmString1);
BaseLogger.log("3", getUserInfo(), null, "allFrmXmlStr::"+xmString2);
try
{
if (xmString != null && xmString.trim().length()!=0)
{
dom = genericUtility.parseString(xmString);
}
if (xmString1 != null && xmString1.trim().length()!=0)
{
dom1 = genericUtility.parseString(xmString1);
}
if (xmString2 != null && xmString2.trim().length()!=0)
{
dom2 = genericUtility.parseString(xmString2);
}
errString = itemChanged( dom, dom1, dom2, objContext, currentColumn, editFlag, xtraParams );
System.out.println ( "ErrString :" + errString);
}
catch (Exception e)
{
System.out.println ( "Exception : ItemChanged(String,String):" + e.getMessage() + ":" );
e.printStackTrace();
throw new ITMException(e);
}
return errString;
}
public String itemChanged( Document dom , Document dom1, Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams ) throws RemoteException,ITMException
{
NodeList parentNodeList = null,detailNodeList = null;
NodeList childNodeList = null;
Node parentNode = null;
Node childNode = null;
String childNodeName = null;
int ctr = 0;
int childNodeListLength = 0;
String columnValue="";
StringBuffer valueXmlString = new StringBuffer();
Connection conn = null;
PreparedStatement pstmt = null;
ResultSet rs = null;
String sql = "";
int cnt =0;
int currentFormNo = 0;
Timestamp todaysDate = null;
SimpleDateFormat sdf =null;
FinCommon finCommon = new FinCommon();
UtilMethods utilMethods = new UtilMethods();
DistCommon disCommon = new DistCommon();
String currentDateTime = "",loginSite="",loginCode="";
String custCode="",custDescr="",contPers="",contPrefix="",currCode="",currCodeFinEnt="",salesPers="",salesPersDescr="",actionTitle="";
String detCntStr="",quotNo="",unit="",itemCode="",itemDescr="",unitRate="",samplQty="",unitSampl="",schDate="",schDateUpto="",crTerm="",dlvAt="",dlvTerm="",packCode="",packInstr="",remarks="",itemSpec="",specDescr="",expectedResult="";
int linecnt=0;
double exchRate=0;
try
{
BaseLogger.log("3", getUserInfo(), null, "SalesQuotationIc --> editFlag ["+editFlag+"]");
BaseLogger.log("3", getUserInfo(), null, "SalesQuotationIc --> xtraParams ["+xtraParams.toString()+"]");
conn = getConnection();
loginSite = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode");
loginCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode");
actionTitle = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "actionTitle"));
BaseLogger.log("3", getUserInfo(), null, "SalesQuotationIc --> actionTitle ["+actionTitle+"]");
quotNo= checkNull(genericUtility.getColumnValue("quot_no", dom));
BaseLogger.log("3", getUserInfo(), null, "SalesQuotationIc --> quotNo ["+quotNo+"]");
sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
todaysDate = new java.sql.Timestamp(System.currentTimeMillis()) ;
currentDateTime = sdf.format(todaysDate);
//tranDate = sdf.format(todaysDate.toString());
//BaseLogger.log("3", getUserInfo(), null, "tranDate ---["+tranDate+"]");
if( objContext != null && objContext.trim().length() > 0 )
{
currentFormNo = Integer.parseInt( objContext );
}
valueXmlString.append( "<?xml version=\"1.0\"?>\r\n<Root>\r\n<Header>\r\n<editFlag>" );
valueXmlString.append( editFlag ).append( "</editFlag>\r\n</Header>\r\n" );
switch ( currentFormNo )
{
case 1:
{
valueXmlString.append("<Detail1>");
parentNodeList = dom.getElementsByTagName("Detail1");
parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes();
childNodeListLength = childNodeList.getLength();
do
{
childNode = childNodeList.item(ctr);
childNodeName = childNode.getNodeName();
if (childNodeName.equals(currentColumn))
{
childNode.getFirstChild();
}
ctr++;
}
while ((ctr < childNodeListLength) && (!childNodeName.equals(currentColumn)));
BaseLogger.log("3", getUserInfo(), null, "CURRENT COLUMN ["+currentColumn+"]");
if(currentColumn.equalsIgnoreCase("itm_default"))
{
valueXmlString.append("<quot_date>").append("<![CDATA["+currentDateTime+"]]>").append("</quot_date>");
valueXmlString.append("<inq_date>").append("<![CDATA["+currentDateTime+"]]>").append("</inq_date>");
valueXmlString.append("<valid_upto>").append("<![CDATA["+currentDateTime+"]]>").append("</valid_upto>");
valueXmlString.append("<status_date>").append("<![CDATA["+currentDateTime+"]]>").append("</status_date>");
}
else if(currentColumn.equalsIgnoreCase("cust_code"))
{
String lsItemser="",lsSiteCode="",taxChapHdr="",taxClassHdr="",taxEnvHdr="";
String custTaxOpt="",orderType="",stanCodeFr="",custCodeTax="",custCodeBill="",stanCodeTo="",lsCustCodeDlv="";
custCode=genericUtility.getColumnValue("cust_code", dom);
lsItemser = checkNull(genericUtility.getColumnValue("item_ser", dom));
lsSiteCode = checkNull(genericUtility.getColumnValue("site_code", dom));
BaseLogger.log("3", getUserInfo(), null, "custCode ::::::: "+custCode + "\t" + "lsItemser ::::::"+lsItemser);
sql= "select cust_name,cont_pers,cont_pfx,curr_code,sales_pers,cr_term,dlv_term from customer where cust_code= ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,custCode);
rs = pstmt.executeQuery();
if(rs.next())
{
custDescr=rs.getString("cust_name");
contPers=rs.getString("cont_pers");
contPrefix=rs.getString("cont_pfx");
currCode=rs.getString("curr_code");
salesPers=rs.getString("sales_pers");
crTerm=rs.getString("cr_term");
dlvTerm=rs.getString("dlv_term");
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
valueXmlString.append("<cust_name>").append("<![CDATA["+custDescr +"]]>").append("</cust_name>");
valueXmlString.append("<cont_pers>").append("<![CDATA["+contPers +"]]>").append("</cont_pers>");
valueXmlString.append("<sales_pers>").append("<![CDATA["+salesPers+"]]>").append("</sales_pers>");
valueXmlString.append("<cr_term>").append("<![CDATA["+crTerm+"]]>").append("</cr_term>");
valueXmlString.append("<dlv_term>").append("<![CDATA["+dlvTerm+"]]>").append("</dlv_term>");
sql= "select sp_name from sales_pers where sales_pers= ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,salesPers);
rs = pstmt.executeQuery();
if(rs.next())
{
salesPersDescr=rs.getString("sp_name");
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
valueXmlString.append("<sp_name>").append("<![CDATA["+salesPersDescr+"]]>").append("</sp_name>");
if(currCode!=null && currCode.trim().length()>0)
{
valueXmlString.append("<curr_code>").append("<![CDATA["+currCode+"]]>").append("</curr_code>");
}
sql= "select curr_code from finent f, site s "
+" where f.fin_entity=s.fin_entity and s.site_code =? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,loginSite);
rs = pstmt.executeQuery();
if(rs.next())
{
currCodeFinEnt=rs.getString("curr_code");
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(currCodeFinEnt.equalsIgnoreCase(currCode))
{
valueXmlString.append("<exch_rate protect = \"1\" >").append("<![CDATA[" + 1 + "]]>").append("</exch_rate>");
}
else
{
exchRate=finCommon.getDailyExchRateSellBuy(currCode, currCodeFinEnt, loginSite, currentDateTime, "S", conn);
BaseLogger.log("3", getUserInfo(), null, "exch rate by calling fincommon method>>"+exchRate);
valueXmlString.append("<exch_rate protect = \"0\" >").append("<![CDATA[" + exchRate + "]]>").append("</exch_rate>");
}
//Added by Sakshi.P on 15/Oct/2025
sql = "select stan_code from site where site_code = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, lsSiteCode);
rs = pstmt.executeQuery();
if (rs.next()) {
stanCodeFr = rs.getString("stan_code");
}
rs.close();rs = null;
pstmt.close();pstmt = null;
sql = "select stan_code from customer where cust_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, custCode);
rs = pstmt.executeQuery();
if (rs.next()) {
stanCodeTo = rs.getString("stan_code");
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
BaseLogger.log("3", getUserInfo(), null, "stanCodeFr======["+stanCodeFr+"]");
BaseLogger.log("3", getUserInfo(), null, "stanCodeTo====== ["+stanCodeTo+"]");
taxChapHdr = distCommon.getTaxChap("", lsItemser, "C", custCode, lsSiteCode, conn);
taxClassHdr = distCommon.getTaxClass("C", custCode, "", lsSiteCode, conn);
sql = " select tax_env from site_customer where site_code = ? and cust_code = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, lsSiteCode);
pstmt.setString(2, custCode);
rs = pstmt.executeQuery();
if(rs.next())
{
taxEnvHdr= rs.getString("tax_env");
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(taxEnvHdr==null || taxEnvHdr.trim().length()==0)
{
sql = " select tax_env from customer where cust_code = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, custCode);
rs = pstmt.executeQuery();
if(rs.next())
{
taxEnvHdr= rs.getString("tax_env");
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(taxEnvHdr==null || taxEnvHdr.trim().length()==0)
{
taxEnvHdr = distCommon.getTaxEnv(stanCodeFr, stanCodeTo, taxChapHdr, taxClassHdr, lsSiteCode, conn);
}
}
BaseLogger.log("3", getUserInfo(), null, "tax class======["+taxClassHdr+"]");
BaseLogger.log("3", getUserInfo(), null, "tax chap======["+taxChapHdr+"]");
BaseLogger.log("3", getUserInfo(), null, "tax env 11111::taxChapHdr["+taxEnvHdr+"]");
valueXmlString.append("<tax_class>").append("<![CDATA[" + taxClassHdr + "]]>").append("</tax_class>");
setNodeValue(dom, "tax_class", getAbsString(taxClassHdr));
valueXmlString.append("<tax_chap>").append("<![CDATA[" + taxChapHdr + "]]>").append("</tax_chap>");
setNodeValue(dom, "tax_chap", getAbsString(taxChapHdr));
valueXmlString.append("<tax_env>").append("<![CDATA[" + taxEnvHdr + "]]>").append("</tax_env>");
setNodeValue(dom, "tax_env", getAbsString(taxEnvHdr));
//end
}
else if(currentColumn.equalsIgnoreCase("sales_pers"))
{
salesPers=genericUtility.getColumnValue("sales_pers", dom);
sql= "select sp_name from sales_pers where sales_pers= ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,salesPers);
rs = pstmt.executeQuery();
if(rs.next())
{
salesPersDescr=rs.getString("sp_name");
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
valueXmlString.append("<sp_name>").append("<![CDATA["+salesPersDescr+"]]>").append("</sp_name>");
}
else if(currentColumn.equalsIgnoreCase("curr_code"))
{
currCode=genericUtility.getColumnValue("curr_code", dom);
sql= "select curr_code from finent f, site s "
+" where f.fin_entity=s.fin_entity and s.site_code =? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,loginSite);
rs = pstmt.executeQuery();
if(rs.next())
{
currCodeFinEnt=rs.getString("curr_code");
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(currCodeFinEnt.equalsIgnoreCase(currCode))
{
valueXmlString.append("<exch_rate protect = \"1\" >").append("<![CDATA[" + 1 + "]]>").append("</exch_rate>");
}
else
{
exchRate=finCommon.getDailyExchRateSellBuy(currCode, currCodeFinEnt, loginSite, currentDateTime, "S", conn);
BaseLogger.log("3", getUserInfo(), null, "exch rate by calling fincommon method>>"+exchRate);
valueXmlString.append("<exch_rate protect = \"0\" >").append("<![CDATA[" + exchRate + "]]>").append("</exch_rate>");
}
}
valueXmlString.append("</Detail1>");
}
break;
case 2:
{
parentNodeList = dom.getElementsByTagName("Detail2");
parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes();
valueXmlString.append("<Detail2>");
childNodeListLength = childNodeList.getLength();
do
{
childNode = childNodeList.item(ctr);
childNodeName = childNode.getNodeName();
if (childNodeName.equals(currentColumn))
{
if (childNode.getFirstChild() != null)
{
columnValue = childNode.getFirstChild().getNodeValue().trim();
}
}
ctr++;
}
while ((ctr < childNodeListLength) && (!childNodeName.equals(currentColumn)));
BaseLogger.log("3", getUserInfo(), null, "CURRENT COLUMN ["+currentColumn+"]");
if (currentColumn.trim().equalsIgnoreCase("itm_defaultedit"))
{
BaseLogger.log("3", getUserInfo(), null, "Item Default Edit+++++");
String lcrate1 = "", lcQty1 = "" , taxAmtStr= "" , discountStr= "";
double lcrate = 0 ,lcQty =0 , taxamt= 0 , discount = 0, netAmount = 0.0;
lcrate1 = checkNull(genericUtility.getColumnValue("rate", dom));
lcrate = (lcrate1 == null || lcrate1.trim().length() == 0) ? 0 : Double.parseDouble(lcrate1);
lcQty1 = checkNull(genericUtility.getColumnValue("quantity", dom));
lcQty = (lcQty1 == null || lcQty1.trim().length() == 0) ? 0 : Double.parseDouble(lcQty1);
taxAmtStr = checkNull(genericUtility.getColumnValue("tax_amt", dom,"2"));
BaseLogger.log("3", getUserInfo(), null, "taxAmtStr----)[" + taxAmtStr + "]");
taxamt = (taxAmtStr == null || taxAmtStr.trim().length() == 0) ? 0 : Double.parseDouble(taxAmtStr);
BaseLogger.log("3", getUserInfo(), null, "Quantity[" + lcQty+ "]");
BaseLogger.log("3", getUserInfo(), null, "Rate[" + lcrate+ "]");
netAmount = (lcQty*lcrate)+taxamt ;
netAmount = finCommon.getRequiredDecimal(netAmount,2);
BaseLogger.log("3", getUserInfo(), null, "Net Amount(lcQty*lcrate)+taxamt-discount)[" + netAmount+ "]");
valueXmlString.append("<net_amt>").append("<![CDATA["+netAmount+"]]>").append("</net_amt>");
}
else if(currentColumn.equalsIgnoreCase("itm_default"))
{
quotNo= genericUtility.getColumnValue("quot_no", dom);
detCntStr = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"detCnt");
BaseLogger.log("3", getUserInfo(), null, "Values of detCntStr ["+detCntStr+"]");
detailNodeList = dom2.getElementsByTagName("Detail2");
linecnt = detailNodeList.getLength();
valueXmlString.append("<quot_no>").append("<![CDATA[" + quotNo + "]]>").append("</quot_no>");
// above commented pb code migrated to the following
if (linecnt > 1 )
{
Node currDetail = detailNodeList.item(linecnt - 1);
unit= genericUtility.getColumnValueFromNode("unit", currDetail);
itemCode= genericUtility.getColumnValueFromNode("item_code", currDetail);
itemDescr= genericUtility.getColumnValueFromNode("item_descr", currDetail);
unitRate= genericUtility.getColumnValueFromNode("unit__rate", currDetail);
samplQty= genericUtility.getColumnValueFromNode("sampl_qty", currDetail);
unitSampl= genericUtility.getColumnValueFromNode("unit__sampl", currDetail);
BaseLogger.log("3", getUserInfo(), null, "before getting dom");
schDate = checkNull(genericUtility.getColumnValueFromNode("sch_date",currDetail));
schDateUpto = checkNull(genericUtility.getColumnValueFromNode("sch_date_upto",currDetail));
BaseLogger.log("3", getUserInfo(), null, "schdate>>>"+schDate+" "+"sch date upto>>>>"+schDateUpto);
crTerm= genericUtility.getColumnValueFromNode("cr_term", currDetail);
dlvAt= genericUtility.getColumnValueFromNode("dlv_at", currDetail);
dlvTerm= genericUtility.getColumnValueFromNode("dlv_term", currDetail);
packCode= genericUtility.getColumnValueFromNode("pack_code", currDetail);
packInstr= genericUtility.getColumnValueFromNode("pack_instr", currDetail);
remarks= genericUtility.getColumnValueFromNode("remarks", currDetail);
itemSpec= genericUtility.getColumnValueFromNode("item_spec", currDetail);
valueXmlString.append("<unit>").append("<![CDATA[" + unit + "]]>").append("</unit>");
valueXmlString.append("<item_code>").append("<![CDATA[" + itemCode + "]]>").append("</item_code>");
valueXmlString.append("<item_descr>").append("<![CDATA[" + itemDescr + "]]>").append("</item_descr>");
valueXmlString.append("<unit__rate>").append("<![CDATA[" + unitRate + "]]>").append("</unit__rate>");
valueXmlString.append("<sampl_qty>").append("<![CDATA[" + samplQty + "]]>").append("</sampl_qty>");
valueXmlString.append("<unit__sampl>").append("<![CDATA[" + unitSampl + "]]>").append("</unit__sampl>");
valueXmlString.append("<sch_date>").append("<![CDATA[" + schDate + "]]>").append("</sch_date>");
valueXmlString.append("<sch_date_upto>").append("<![CDATA[" + schDateUpto + "]]>").append("</sch_date_upto>");
valueXmlString.append("<dlv_at>").append("<![CDATA[" + dlvAt + "]]>").append("</dlv_at>");
valueXmlString.append("<pack_code>").append("<![CDATA[" + packCode + "]]>").append("</pack_code>");
valueXmlString.append("<pack_instr>").append("<![CDATA[" + packInstr + "]]>").append("</pack_instr>");
valueXmlString.append("<remarks>").append("<![CDATA[" + remarks + "]]>").append("</remarks>");
valueXmlString.append("<item_spec>").append("<![CDATA[" + itemSpec + "]]>").append("</item_spec>");
valueXmlString.append("<cr_term>").append("<![CDATA[" + crTerm + "]]>").append("</cr_term>");
valueXmlString.append("<dlv_term>").append("<![CDATA[" + dlvTerm + "]]>").append("</dlv_term>");
}
else
{
crTerm= genericUtility.getColumnValue("cr_term", dom1);
dlvTerm= genericUtility.getColumnValue("dlv_term", dom1);
valueXmlString.append("<cr_term>").append("<![CDATA[" + crTerm + "]]>").append("</cr_term>");
valueXmlString.append("<dlv_term>").append("<![CDATA[" + dlvTerm + "]]>").append("</dlv_term>");
}
}
else if(currentColumn.equalsIgnoreCase("item_code"))
{
itemCode=genericUtility.getColumnValue("item_code", dom);
sql= "select descr,unit from item where item_code = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,itemCode);
rs = pstmt.executeQuery();
if(rs.next())
{
itemDescr=rs.getString("descr");
unit=rs.getString("unit");
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
valueXmlString.append("<item_descr>").append("<![CDATA["+itemDescr+"]]>").append("</item_descr>");
valueXmlString.append("<unit>").append("<![CDATA["+unit+"]]>").append("</unit>");
valueXmlString.append("<unit__rate>").append("<![CDATA["+unit+"]]>").append("</unit__rate>");
valueXmlString.append("<unit__sampl>").append("<![CDATA["+unit+"]]>").append("</unit__sampl>");
sql= "Select a.spec_descr, b.expected_result "
+" from qc_tabledet b, "
+" qlty_specs a "
+" where a.spec_code = b.spec_code and "
+" b.qc_tableno = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,itemCode);
rs = pstmt.executeQuery();
if(rs.next())
{
specDescr=rs.getString("spec_descr");
expectedResult=rs.getString("expected_result");
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
itemSpec=itemSpec + specDescr + " " +expectedResult; //str1 = str1 + s1 + ' ' + s2 + space(101 - len(s1+s2))
valueXmlString.append("<item_spec>").append("<![CDATA["+itemSpec+"]]>").append("</item_spec>");
//Added by Sakshi.P on 27/Oct/2025
String lsTaxChapHdr="",lsTaxClassHdr="",lsTaxEnvHdr="",lsSiteCode="",stanCodeFr="",stanCodeTo="",lsItemser="";
String taxChapHdr="",taxClassHdr="",taxEnvHdr="",custCode1="";
lsTaxChapHdr = checkNull(genericUtility.getColumnValue("tax_chap", dom1));
lsTaxClassHdr = checkNull(genericUtility.getColumnValue("tax_class", dom1));
lsTaxEnvHdr = checkNull(genericUtility.getColumnValue("tax_env", dom1));
lsSiteCode= checkNull(genericUtility.getColumnValue("site_code", dom1));
lsItemser= checkNull(genericUtility.getColumnValue("item_ser", dom1));
custCode1=genericUtility.getColumnValue("cust_code", dom1);
BaseLogger.log("3", getUserInfo(), null, "lsTaxChapHdr dom1:["+lsTaxChapHdr+"] lsTaxClassHdr dom1 ["+lsTaxClassHdr+"]lsTaxEnvHdr dom1"+lsTaxEnvHdr);
sql = "select stan_code from site where site_code = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, lsSiteCode);
rs = pstmt.executeQuery();
if (rs.next()) {
stanCodeFr = rs.getString("stan_code");
}
rs.close();rs = null;
pstmt.close();pstmt = null;
sql = "select stan_code from customer where cust_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, custCode1);
rs = pstmt.executeQuery();
if (rs.next()) {
stanCodeTo = rs.getString("stan_code");
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
BaseLogger.log("3", getUserInfo(), null, "stanCodeFr======["+stanCodeFr+"]");
BaseLogger.log("3", getUserInfo(), null, "stanCodeTo====== ["+stanCodeTo+"]");
taxChapHdr = distCommon.getTaxChap(itemCode, lsItemser, "C", custCode1, lsSiteCode, conn);
taxClassHdr = distCommon.getTaxClass("C", custCode1, itemCode, lsSiteCode, conn);
BaseLogger.log("3", getUserInfo(), null, "lsTaxChap from method ["+taxChapHdr+"]lsTaxClass"+taxClassHdr);
if (lsTaxEnvHdr == null || lsTaxEnvHdr.trim().length() == 0) {
sql = " select tax_env from site_customer where site_code = ? and cust_code = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, lsSiteCode);
pstmt.setString(2, custCode1);
rs = pstmt.executeQuery();
if(rs.next())
{
taxEnvHdr= rs.getString("tax_env");
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(taxEnvHdr==null || taxEnvHdr.trim().length()==0)
{
sql = " select tax_env from customer where cust_code = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, custCode1);
rs = pstmt.executeQuery();
if(rs.next())
{
taxEnvHdr= rs.getString("tax_env");
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(taxEnvHdr==null || taxEnvHdr.trim().length()==0)
{
taxEnvHdr = distCommon.getTaxEnv(stanCodeFr, stanCodeTo, taxChapHdr, taxClassHdr, lsSiteCode, conn);
BaseLogger.log("3", getUserInfo(), null, "tax ENV From discommon["+taxEnvHdr+"]");
}
}
}
else
{
taxEnvHdr = lsTaxEnvHdr;
}
BaseLogger.log("3", getUserInfo(), null, "tax class222======["+taxClassHdr+"]");
BaseLogger.log("3", getUserInfo(), null, "tax chap222======["+taxChapHdr+"]");
BaseLogger.log("3", getUserInfo(), null, "tax env2222 taxChapHdr["+taxEnvHdr+"]");
valueXmlString.append("<tax_class>").append("<![CDATA[" + taxClassHdr + "]]>").append("</tax_class>");
setNodeValue(dom, "tax_class", getAbsString(taxClassHdr));
valueXmlString.append("<tax_chap>").append("<![CDATA[" + taxChapHdr + "]]>").append("</tax_chap>");
setNodeValue(dom, "tax_chap", getAbsString(taxChapHdr));
valueXmlString.append("<tax_env>").append("<![CDATA[" + taxEnvHdr + "]]>").append("</tax_env>");
setNodeValue(dom, "tax_env", getAbsString(taxEnvHdr));
}
else if(currentColumn.equalsIgnoreCase("pack_code"))
{
packCode=genericUtility.getColumnValue("pack_code", dom);
sql= "select descr from packing where pack_code = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,packCode);
rs = pstmt.executeQuery();
if(rs.next())
{
packInstr=rs.getString("descr");
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
valueXmlString.append("<pack_instr>").append("<![CDATA["+packInstr+"]]>").append("</pack_instr>");
}
else if(currentColumn.equalsIgnoreCase("rate"))
{
//Added by Sakshi p on 16/Oct/2025
valueXmlString = (gbfIcRate(valueXmlString, dom, dom1, dom2, editFlag, xtraParams, objContext,
conn));
}
valueXmlString.append("</Detail2>");
}
break;
// case 3 start
// Added by Mohammed on 06-MARCH: Populate cust_code__dist from cust_code__stk.
case 3:
{
parentNodeList = dom.getElementsByTagName("Detail3");
parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes();
valueXmlString.append("<Detail3>");
childNodeListLength = childNodeList.getLength();
do
{
childNode = childNodeList.item(ctr);
childNodeName = childNode.getNodeName();
if (childNodeName.equals(currentColumn))
{
if (childNode.getFirstChild() != null)
{
columnValue = childNode.getFirstChild().getNodeValue().trim();
}
}
ctr++;
}
while ((ctr < childNodeListLength) && (!childNodeName.equals(currentColumn)));
BaseLogger.log("3", getUserInfo(), null, "CURRENT COLUMN ["+currentColumn+"]");
if(currentColumn.equalsIgnoreCase("cust_code__stk"))
{
String custCodeStk = "";
String custCodeDist = "";
custCodeStk = checkNull(genericUtility.getColumnValue("cust_code__stk", dom));
custCode = checkNull(genericUtility.getColumnValue("cust_code", dom1));
BaseLogger.log("3", getUserInfo(), null, "cust_code from Detail1 [" + custCode + "]");
BaseLogger.log("3", getUserInfo(), null, "custCodeStk [" + custCodeStk + "]");
BaseLogger.log("3", getUserInfo(), null, "custCode [" + custCode + "]");
sql = "select cust_code__dist from customer_pref_dist "
+ "where cust_code__stk = ? and cust_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, custCodeStk);
pstmt.setString(2, custCode);
rs = pstmt.executeQuery();
if(rs.next())
{
custCodeDist = rs.getString("cust_code__dist");
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
custCodeDist = checkNull(custCodeDist);
valueXmlString.append("<cust_code__dist>")
.append("<![CDATA["+custCodeDist+"]]>")
.append("</cust_code__dist>");
}
valueXmlString.append("</Detail3>");
}
break;
//end case 3
} //end switch
valueXmlString.append("</Root>\r\n");
} //end try
catch(Exception e)
{
BaseLogger.log("3", getUserInfo(), null, "Exception from itemchanged method --["+e.getMessage()+"]");
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try
{
if(conn != null)
{
conn.close();
conn = null;
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
catch(Exception e)
{
BaseLogger.log("3", getUserInfo(), null, "Exception from itemchanged method --["+e.getMessage()+"]");
e.printStackTrace();
throw new ITMException(e);
}
}
return valueXmlString.toString();
}
public String checkNull(String inputStr) throws ITMException
{
try
{
if(inputStr != null && inputStr.trim().length() > 0)
{
return inputStr.trim();
}
else
{
return "";
}
}
catch(Exception e)
{
BaseLogger.log("3", getUserInfo(), null, "Exception in checknull--["+e.getMessage()+"]");
e.printStackTrace();
throw new ITMException(e);
}
}
private static void setNodeValue(Document dom, String nodeName, String nodeVal) throws Exception {
Node tempNode = dom.getElementsByTagName(nodeName).item(0);
if (tempNode != null) {
if (tempNode.getFirstChild() == null) {
CDATASection cDataSection = dom.createCDATASection(nodeVal);
tempNode.appendChild(cDataSection);
} else {
tempNode.getFirstChild().setNodeValue(nodeVal);
}
}
tempNode = null;
}
private static String getAbsString(String str) {
return (str == null || str.trim().length() == 0 || "null".equalsIgnoreCase(str.trim()) ? "" : str.trim());
}
private StringBuffer gbfIcRate(StringBuffer valueXmlString, Document dom, Document dom1, Document dom2,
String editFlag, String xtraParams, String objContext, Connection conn) throws ITMException {
// TODO Auto-generated method stub
PreparedStatement pstmt = null;
ResultSet rs = null;
double ldRate = 0.00, mQty = 0.00,lcOrdValue = 0.00;
try {
ldRate = Double.parseDouble(checkDouble(genericUtility.getColumnValue("rate", dom)));
BaseLogger.log("3", getUserInfo(), null, "@ Rate is:" + ldRate);
mQty = Double.parseDouble(checkDouble(genericUtility.getColumnValue("quantity", dom)));
BaseLogger.log("3", getUserInfo(), null, "mQty>>>>>" + mQty);
double netAmount = 0.0, discount = 0.0 , taxamt= 0.0;
String discountStr = "" , taxAmtStr= "";
taxAmtStr = checkNull(genericUtility.getColumnValue("tax_amt", dom));
BaseLogger.log("3", getUserInfo(), null, "taxAmtStr----)[" + taxAmtStr + "]");
taxamt = (taxAmtStr == null || taxAmtStr.trim().length() == 0) ? 0 : Double.parseDouble(taxAmtStr);
netAmount = (mQty*ldRate);
netAmount = finCommon.getRequiredDecimal(netAmount,2);
BaseLogger.log("3", getUserInfo(), null, "Net Amount(lcQty*lcrate)+taxamt-discount)[" + netAmount+ "]");
valueXmlString.append("<net_amt>").append("<![CDATA["+netAmount+"]]>").append("</net_amt>");
} catch (NumberFormatException e) {
// TODO Auto-generated catch block
e.printStackTrace();
throw e; //Added By Mukesh Chauhan on 06/08/19
} catch (ITMException e) {
// TODO Auto-generated catch block
e.printStackTrace();
throw e; //Added By Mukesh Chauhan on 05/08/19
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
throw new ITMException(e); //Added By Mukesh Chauhan on 05/08/19
}
return valueXmlString;
}
public double checkNullForDouble(String inputStr) throws ITMException
{
double retVal = 0.0;
try
{
if(inputStr == null || inputStr.trim().length() == 0)
{
retVal = 0.0;
}
else
{
retVal = Double.parseDouble(inputStr);
}
}
catch(Exception e)
{
BaseLogger.log("3", getUserInfo(), null, "Exception in checknull--["+e.getMessage()+"]");
e.printStackTrace();
retVal = 0.0;
throw new ITMException(e);
}
return retVal;
}
private String checkDouble(String input) {
if (input == null || input.trim().length() == 0) {
input = "0";
}
return input;
}
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,errorCode);
rs = pstmt.executeQuery();
while(rs.next())
{
msgType = rs.getString("MSG_TYPE");
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
}
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;
}
private boolean isExist(Connection conn, String tableName, String columnName, String value)
throws ITMException, RemoteException {
PreparedStatement pstmt = null;
ResultSet rs = null;
String sql = "";
boolean status = false;
try {
sql = "SELECT count(*) from " + tableName + " where " + columnName + " = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, value);
rs = pstmt.executeQuery();
if (rs.next()) {
if (rs.getBoolean(1)) {
status = true;
}
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
} catch (Exception e) {
BaseLogger.log("3", getUserInfo(), null, "Exception in isExist ");
e.printStackTrace();
throw new ITMException(e);
}
BaseLogger.log("3", getUserInfo(), null, "returning String from isExist ");
return status;
}
}
\ No newline at end of file
......@@ -252,14 +252,10 @@
<name>mgmnt_apprv</name>
<dbname>sales_quot_req.mgmnt_apprv</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;sales_quot_req&quot; ) COLUMN(NAME=&quot;sales_quot_req.tran_id&quot;) COLUMN(NAME=&quot;sales_quot_req.tran_date&quot;) COLUMN(NAME=&quot;sales_quot_req.quot_type&quot;) COLUMN(NAME=&quot;sales_quot_req.cust_code&quot;) COLUMN(NAME=&quot;sales_quot_req.contact_pers&quot;) COLUMN(NAME=&quot;sales_quot_req.item_ser&quot;) COLUMN(NAME=&quot;sales_quot_req.req_date&quot;) COLUMN(NAME=&quot;sales_quot_req.valid_upto&quot;) COLUMN(NAME=&quot;sales_quot_req.sales_pers&quot;) COLUMN(NAME=&quot;sales_quot_req.confirmed&quot;) COLUMN(NAME=&quot;sales_quot_req.confirm_date&quot;) COLUMN(NAME=&quot;sales_quot_req.emp_code_conf&quot;) COLUMN(NAME=&quot;sales_quot_req.status&quot;) COLUMN(NAME=&quot;sales_quot_req.status_date&quot;) COLUMN(NAME=&quot;sales_quot_req.wf_status&quot;) COLUMN(NAME=&quot;sales_quot_req.remarks&quot;) COLUMN(NAME=&quot;sales_quot_req.tran_id__ref&quot;) COLUMN(NAME=&quot;sales_quot_req.add_date&quot;) COLUMN(NAME=&quot;sales_quot_req.add_user&quot;) COLUMN(NAME=&quot;sales_quot_req.add_term&quot;) COLUMN(NAME=&quot;sales_quot_req.chg_date&quot;) COLUMN(NAME=&quot;sales_quot_req.chg_user&quot;) COLUMN(NAME=&quot;sales_quot_req.chg_term&quot;) COLUMN(NAME=&quot;sales_quot_req.cust_name&quot;) COLUMN(NAME=&quot;sales_quot_req.addr1&quot;) COLUMN(NAME=&quot;sales_quot_req.addr2&quot;) COLUMN(NAME=&quot;sales_quot_req.addr3&quot;) COLUMN(NAME=&quot;sales_quot_req.site_code&quot;) COLUMN(NAME=&quot;sales_quot_req.mgmnt_apprv&quot;)WHERE( EXP1 =&quot;sales_quot_req.tran_id&quot; OP =&quot;=&quot; EXP2 =&quot;:tran_id&quot; ) ) ARG(NAME = &quot;tran_id&quot; TYPE = number) </retrieve>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;sales_quot_req&quot; ) COLUMN(NAME=&quot;sales_quot_req.tran_id&quot;) COLUMN(NAME=&quot;sales_quot_req.tran_date&quot;) COLUMN(NAME=&quot;sales_quot_req.quot_type&quot;) COLUMN(NAME=&quot;sales_quot_req.cust_code&quot;) COLUMN(NAME=&quot;sales_quot_req.contact_pers&quot;) COLUMN(NAME=&quot;sales_quot_req.item_ser&quot;) COLUMN(NAME=&quot;sales_quot_req.req_date&quot;) COLUMN(NAME=&quot;sales_quot_req.valid_upto&quot;) COLUMN(NAME=&quot;sales_quot_req.sales_pers&quot;) COLUMN(NAME=&quot;sales_quot_req.confirmed&quot;) COLUMN(NAME=&quot;sales_quot_req.confirm_date&quot;) COLUMN(NAME=&quot;sales_quot_req.emp_code_conf&quot;) COLUMN(NAME=&quot;sales_quot_req.status&quot;) COLUMN(NAME=&quot;sales_quot_req.status_date&quot;) COLUMN(NAME=&quot;sales_quot_req.wf_status&quot;) COLUMN(NAME=&quot;sales_quot_req.remarks&quot;) COLUMN(NAME=&quot;sales_quot_req.tran_id__ref&quot;) COLUMN(NAME=&quot;sales_quot_req.add_date&quot;) COLUMN(NAME=&quot;sales_quot_req.add_user&quot;) COLUMN(NAME=&quot;sales_quot_req.add_term&quot;) COLUMN(NAME=&quot;sales_quot_req.chg_date&quot;) COLUMN(NAME=&quot;sales_quot_req.chg_user&quot;) COLUMN(NAME=&quot;sales_quot_req.chg_term&quot;) COLUMN(NAME=&quot;sales_quot_req.cust_name&quot;) COLUMN(NAME=&quot;sales_quot_req.addr1&quot;) COLUMN(NAME=&quot;sales_quot_req.addr2&quot;) COLUMN(NAME=&quot;sales_quot_req.addr3&quot;) COLUMN(NAME=&quot;sales_quot_req.site_code&quot;) COLUMN(NAME=&quot;sales_quot_req.mgmnt_apprv&quot;)) </retrieve>
<update>sales_quot_req</update>
<updatewhere>1</updatewhere>
<updatekeyinplace>no</updatekeyinplace>
<argument>
<name>tran_id</name>
<type>number</type>
</argument>
</TableDefinition>
<TextObject>
<band>Header</band>
......
......@@ -262,7 +262,13 @@
<name>mgmnt_apprv</name>
<dbname>sales_quot_req.mgmnt_apprv</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;sales_quot_req&quot; ) COLUMN(NAME=&quot;sales_quot_req.tran_id&quot;) COLUMN(NAME=&quot;sales_quot_req.tran_date&quot;) COLUMN(NAME=&quot;sales_quot_req.quot_type&quot;) COLUMN(NAME=&quot;sales_quot_req.cust_code&quot;) COLUMN(NAME=&quot;sales_quot_req.contact_pers&quot;) COLUMN(NAME=&quot;sales_quot_req.item_ser&quot;) COLUMN(NAME=&quot;sales_quot_req.req_date&quot;) COLUMN(NAME=&quot;sales_quot_req.valid_upto&quot;) COLUMN(NAME=&quot;sales_quot_req.sales_pers&quot;) COLUMN(NAME=&quot;sales_quot_req.confirmed&quot;) COLUMN(NAME=&quot;sales_quot_req.confirm_date&quot;) COLUMN(NAME=&quot;sales_quot_req.emp_code_conf&quot;) COLUMN(NAME=&quot;sales_quot_req.status&quot;) COLUMN(NAME=&quot;sales_quot_req.status_date&quot;) COLUMN(NAME=&quot;sales_quot_req.wf_status&quot;) COLUMN(NAME=&quot;sales_quot_req.remarks&quot;) COLUMN(NAME=&quot;sales_quot_req.tran_id__ref&quot;) COLUMN(NAME=&quot;sales_quot_req.add_date&quot;) COLUMN(NAME=&quot;sales_quot_req.add_user&quot;) COLUMN(NAME=&quot;sales_quot_req.add_term&quot;) COLUMN(NAME=&quot;sales_quot_req.chg_date&quot;) COLUMN(NAME=&quot;sales_quot_req.chg_user&quot;) COLUMN(NAME=&quot;sales_quot_req.chg_term&quot;) COLUMN(NAME=&quot;sales_quot_req.cust_name&quot;) COLUMN(NAME=&quot;sales_quot_req.addr1&quot;) COLUMN(NAME=&quot;sales_quot_req.addr2&quot;) COLUMN(NAME=&quot;sales_quot_req.addr3&quot;) COLUMN(NAME=&quot;sales_quot_req.site_code&quot;) COLUMN(NAME=&quot;sales_quot_req.mgmnt_apprv&quot;)WHERE( EXP1 =&quot;sales_quot_req.tran_id&quot; OP =&quot;=&quot; EXP2 =&quot;:tran_id&quot; ) ) ARG(NAME = &quot;tran_id&quot; TYPE = number) </retrieve>
<table_column>
<type size="40">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>descr</name>
<dbname>itemser.descr</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;sales_quot_req&quot; ) TABLE(NAME=&quot;itemser&quot; ) COLUMN(NAME=&quot;sales_quot_req.tran_id&quot;) COLUMN(NAME=&quot;sales_quot_req.tran_date&quot;) COLUMN(NAME=&quot;sales_quot_req.quot_type&quot;) COLUMN(NAME=&quot;sales_quot_req.cust_code&quot;) COLUMN(NAME=&quot;sales_quot_req.contact_pers&quot;) COLUMN(NAME=&quot;sales_quot_req.item_ser&quot;) COLUMN(NAME=&quot;sales_quot_req.req_date&quot;) COLUMN(NAME=&quot;sales_quot_req.valid_upto&quot;) COLUMN(NAME=&quot;sales_quot_req.sales_pers&quot;) COLUMN(NAME=&quot;sales_quot_req.confirmed&quot;) COLUMN(NAME=&quot;sales_quot_req.confirm_date&quot;) COLUMN(NAME=&quot;sales_quot_req.emp_code_conf&quot;) COLUMN(NAME=&quot;sales_quot_req.status&quot;) COLUMN(NAME=&quot;sales_quot_req.status_date&quot;) COLUMN(NAME=&quot;sales_quot_req.wf_status&quot;) COLUMN(NAME=&quot;sales_quot_req.remarks&quot;) COLUMN(NAME=&quot;sales_quot_req.tran_id__ref&quot;) COLUMN(NAME=&quot;sales_quot_req.add_date&quot;) COLUMN(NAME=&quot;sales_quot_req.add_user&quot;) COLUMN(NAME=&quot;sales_quot_req.add_term&quot;) COLUMN(NAME=&quot;sales_quot_req.chg_date&quot;) COLUMN(NAME=&quot;sales_quot_req.chg_user&quot;) COLUMN(NAME=&quot;sales_quot_req.chg_term&quot;) COLUMN(NAME=&quot;sales_quot_req.cust_name&quot;) COLUMN(NAME=&quot;sales_quot_req.addr1&quot;) COLUMN(NAME=&quot;sales_quot_req.addr2&quot;) COLUMN(NAME=&quot;sales_quot_req.addr3&quot;) COLUMN(NAME=&quot;sales_quot_req.site_code&quot;) COLUMN(NAME=&quot;sales_quot_req.mgmnt_apprv&quot;) COLUMN(NAME=&quot;itemser.descr&quot;) JOIN (LEFT=&quot;sales_quot_req.item_ser&quot; OP =&quot;=&quot;RIGHT=&quot;itemser.item_ser&quot; OUTER1 =&quot;sales_quot_req.item_ser&quot; )WHERE( EXP1 =&quot;sales_quot_req.tran_id&quot; OP =&quot;=&quot; EXP2 =&quot;:tran_id&quot; ) ) ARG(NAME = &quot;tran_id&quot; TYPE = number) </retrieve>
<update>sales_quot_req</update>
<updatewhere>1</updatewhere>
<updatekeyinplace>no</updatekeyinplace>
......@@ -1389,6 +1395,7 @@
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<required>yes</required>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
......@@ -1454,6 +1461,7 @@
<limit>0</limit>
<allowedit>no</allowedit>
<case>any</case>
<required>yes</required>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -1651,6 +1659,7 @@
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<required>yes</required>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
......@@ -2293,6 +2302,35 @@
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>30</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>0</color>
<x>130</x>
<y>181</y>
<height>16</height>
<width>69</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>descr</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>
</ColumnObject>
<HtmlTable>
<border>1</border>
</HtmlTable>
......
......@@ -816,6 +816,7 @@
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<required>yes</required>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
......@@ -1078,6 +1079,7 @@
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<required>yes</required>
<imemode>0</imemode>
</EditStyle>
<font>
......
......@@ -34,7 +34,7 @@ table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=tran_i
column=(type=char(40) update=yes updatewhereclause=yes name=addr3 dbname="addr3" )
column=(type=char(10) update=yes updatewhereclause=yes name=site_code dbname="sales_quot_req.site_code" )
column=(type=char(1) update=yes updatewhereclause=yes name=mgmnt_apprv dbname="sales_quot_req.mgmnt_apprv" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"sales_quot_req~" ) COLUMN(NAME=~"sales_quot_req.tran_id~") COLUMN(NAME=~"sales_quot_req.tran_date~") COLUMN(NAME=~"sales_quot_req.quot_type~") COLUMN(NAME=~"sales_quot_req.cust_code~") COLUMN(NAME=~"sales_quot_req.contact_pers~") COLUMN(NAME=~"sales_quot_req.item_ser~") COLUMN(NAME=~"sales_quot_req.req_date~") COLUMN(NAME=~"sales_quot_req.valid_upto~") COLUMN(NAME=~"sales_quot_req.sales_pers~") COLUMN(NAME=~"sales_quot_req.confirmed~") COLUMN(NAME=~"sales_quot_req.confirm_date~") COLUMN(NAME=~"sales_quot_req.emp_code_conf~") COLUMN(NAME=~"sales_quot_req.status~") COLUMN(NAME=~"sales_quot_req.status_date~") COLUMN(NAME=~"sales_quot_req.wf_status~") COLUMN(NAME=~"sales_quot_req.remarks~") COLUMN(NAME=~"sales_quot_req.tran_id__ref~") COLUMN(NAME=~"sales_quot_req.add_date~") COLUMN(NAME=~"sales_quot_req.add_user~") COLUMN(NAME=~"sales_quot_req.add_term~") COLUMN(NAME=~"sales_quot_req.chg_date~") COLUMN(NAME=~"sales_quot_req.chg_user~") COLUMN(NAME=~"sales_quot_req.chg_term~") COLUMN(NAME=~"sales_quot_req.cust_name~") COLUMN(NAME=~"sales_quot_req.addr1~") COLUMN(NAME=~"sales_quot_req.addr2~") COLUMN(NAME=~"sales_quot_req.addr3~") COLUMN(NAME=~"sales_quot_req.site_code~") COLUMN(NAME=~"sales_quot_req.mgmnt_apprv~")WHERE( EXP1 =~"sales_quot_req.tran_id~" OP =~"=~" EXP2 =~":tran_id~" ) ) ARG(NAME = ~"tran_id~" TYPE = number) " update="sales_quot_req" updatewhere=1 updatekeyinplace=no arguments=(("tran_id", number)) )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"sales_quot_req~" ) COLUMN(NAME=~"sales_quot_req.tran_id~") COLUMN(NAME=~"sales_quot_req.tran_date~") COLUMN(NAME=~"sales_quot_req.quot_type~") COLUMN(NAME=~"sales_quot_req.cust_code~") COLUMN(NAME=~"sales_quot_req.contact_pers~") COLUMN(NAME=~"sales_quot_req.item_ser~") COLUMN(NAME=~"sales_quot_req.req_date~") COLUMN(NAME=~"sales_quot_req.valid_upto~") COLUMN(NAME=~"sales_quot_req.sales_pers~") COLUMN(NAME=~"sales_quot_req.confirmed~") COLUMN(NAME=~"sales_quot_req.confirm_date~") COLUMN(NAME=~"sales_quot_req.emp_code_conf~") COLUMN(NAME=~"sales_quot_req.status~") COLUMN(NAME=~"sales_quot_req.status_date~") COLUMN(NAME=~"sales_quot_req.wf_status~") COLUMN(NAME=~"sales_quot_req.remarks~") COLUMN(NAME=~"sales_quot_req.tran_id__ref~") COLUMN(NAME=~"sales_quot_req.add_date~") COLUMN(NAME=~"sales_quot_req.add_user~") COLUMN(NAME=~"sales_quot_req.add_term~") COLUMN(NAME=~"sales_quot_req.chg_date~") COLUMN(NAME=~"sales_quot_req.chg_user~") COLUMN(NAME=~"sales_quot_req.chg_term~") COLUMN(NAME=~"sales_quot_req.cust_name~") COLUMN(NAME=~"sales_quot_req.addr1~") COLUMN(NAME=~"sales_quot_req.addr2~") COLUMN(NAME=~"sales_quot_req.addr3~") COLUMN(NAME=~"sales_quot_req.site_code~") COLUMN(NAME=~"sales_quot_req.mgmnt_apprv~")) " update="sales_quot_req" updatewhere=1 updatekeyinplace=no )
text(band=header alignment="2" text="Tran Id" border="2" color="33554432" x="2" y="2" height="16" width="66" 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=header alignment="2" text="Tran Date" border="2" color="33554432" x="70" y="2" height="16" width="132" 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="1" background.color="536870912" )
text(band=header alignment="2" text="Quot Type" border="2" color="33554432" x="204" y="2" height="16" width="60" html.valueishtml="0" name=quot_type_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" )
......
......@@ -43,7 +43,7 @@ column(band=detail id=12 alignment="0" tabsequence=100 border="2" color="3355443
text(band=detail alignment="1" text="Transaction Id:" border="2" color="0" x="484" y="103" height="16" width="105" html.valueishtml="0" name=tran_id_t visible="0" 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=32766 border="2" color="33554432" x="593" y="103" height="19" width="66" format="[general]" html.valueishtml="0" name=tran_id visible="0" edit.limit=10 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="1" background.color="536870912" )
text(band=detail alignment="1" text="Item Code:" border="2" color="0" x="202" y="222" height="16" width="105" 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" )
column(band=detail id=3 alignment="0" tabsequence=10 border="2" color="33554432" x="313" y="222" height="19" width="66" format="[general]" html.valueishtml="0" name=item_code visible="1" edit.limit=10 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="1" background.color="536870912" )
column(band=detail id=3 alignment="0" tabsequence=10 border="2" color="33554432" x="313" y="222" height="19" width="66" format="[general]" html.valueishtml="0" name=item_code visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.required=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="1" background.color="536870912" )
text(band=detail alignment="1" text="Near Expiry:" border="2" color="0" x="493" y="222" height="16" width="105" html.valueishtml="0" name=near_expiry_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="0" tabsequence=60 border="2" color="33554432" x="602" y="222" height="19" width="99" format="[general]" html.valueishtml="0" name=near_expiry 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="1" background.color="536870912" )
text(band=detail alignment="1" text="Quoted Quantity:" border="2" color="0" x="192" y="350" height="16" width="105" html.valueishtml="0" name=qty_quot_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" )
......@@ -51,7 +51,7 @@ column(band=detail id=4 alignment="1" tabsequence=20 border="2" color="33554432"
text(band=detail alignment="1" text="Pack Code:" border="2" color="0" x="480" y="350" height="16" width="105" html.valueishtml="0" name=pack_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=6 alignment="0" tabsequence=40 border="2" color="33554432" x="589" y="350" height="19" width="66" format="[general]" html.valueishtml="0" name=pack_code visible="1" edit.limit=10 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="1" background.color="536870912" )
text(band=detail alignment="1" text="Special Rate:" border="2" color="0" x="194" y="380" height="16" width="105" html.valueishtml="0" name=rate_quot_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=50 border="2" color="33554432" x="303" y="380" height="19" width="72" format="[general]" html.valueishtml="0" name=rate_quot 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="1" background.color="536870912" )
column(band=detail id=7 alignment="1" tabsequence=50 border="2" color="33554432" x="303" y="380" height="19" width="72" format="[general]" html.valueishtml="0" name=rate_quot visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.required=yes edit.imemode=0 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="Unit:" border="2" color="0" x="481" y="380" height="16" width="105" html.valueishtml="0" name=unit_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=5 alignment="0" tabsequence=30 border="2" color="33554432" x="590" y="380" height="19" width="66" format="[general]" html.valueishtml="0" name=unit visible="1" edit.limit=10 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="1" background.color="536870912" )
column(band=detail id=14 alignment="0" tabsequence=120 border="2" color="33554432" x="386" y="382" height="16" width="54" format="[Yes/No]" html.valueishtml="0" name=ptr_flag 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="1" background.color="536870912" )
......
......@@ -33,7 +33,8 @@ table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=tran_i
column=(type=char(40) update=yes updatewhereclause=yes name=addr3 dbname="addr3" )
column=(type=char(10) update=yes updatewhereclause=yes name=site_code dbname="sales_quot_req.site_code" )
column=(type=char(1) update=yes updatewhereclause=yes name=mgmnt_apprv dbname="sales_quot_req.mgmnt_apprv" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"sales_quot_req~" ) COLUMN(NAME=~"sales_quot_req.tran_id~") COLUMN(NAME=~"sales_quot_req.tran_date~") COLUMN(NAME=~"sales_quot_req.quot_type~") COLUMN(NAME=~"sales_quot_req.cust_code~") COLUMN(NAME=~"sales_quot_req.contact_pers~") COLUMN(NAME=~"sales_quot_req.item_ser~") COLUMN(NAME=~"sales_quot_req.req_date~") COLUMN(NAME=~"sales_quot_req.valid_upto~") COLUMN(NAME=~"sales_quot_req.sales_pers~") COLUMN(NAME=~"sales_quot_req.confirmed~") COLUMN(NAME=~"sales_quot_req.confirm_date~") COLUMN(NAME=~"sales_quot_req.emp_code_conf~") COLUMN(NAME=~"sales_quot_req.status~") COLUMN(NAME=~"sales_quot_req.status_date~") COLUMN(NAME=~"sales_quot_req.wf_status~") COLUMN(NAME=~"sales_quot_req.remarks~") COLUMN(NAME=~"sales_quot_req.tran_id__ref~") COLUMN(NAME=~"sales_quot_req.add_date~") COLUMN(NAME=~"sales_quot_req.add_user~") COLUMN(NAME=~"sales_quot_req.add_term~") COLUMN(NAME=~"sales_quot_req.chg_date~") COLUMN(NAME=~"sales_quot_req.chg_user~") COLUMN(NAME=~"sales_quot_req.chg_term~") COLUMN(NAME=~"sales_quot_req.cust_name~") COLUMN(NAME=~"sales_quot_req.addr1~") COLUMN(NAME=~"sales_quot_req.addr2~") COLUMN(NAME=~"sales_quot_req.addr3~") COLUMN(NAME=~"sales_quot_req.site_code~") COLUMN(NAME=~"sales_quot_req.mgmnt_apprv~")WHERE( EXP1 =~"sales_quot_req.tran_id~" OP =~"=~" EXP2 =~":tran_id~" ) ) ARG(NAME = ~"tran_id~" TYPE = number) " update="sales_quot_req" updatewhere=1 updatekeyinplace=no arguments=(("tran_id", number)) )
column=(type=char(40) updatewhereclause=yes name=descr dbname="itemser.descr" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"sales_quot_req~" ) TABLE(NAME=~"itemser~" ) COLUMN(NAME=~"sales_quot_req.tran_id~") COLUMN(NAME=~"sales_quot_req.tran_date~") COLUMN(NAME=~"sales_quot_req.quot_type~") COLUMN(NAME=~"sales_quot_req.cust_code~") COLUMN(NAME=~"sales_quot_req.contact_pers~") COLUMN(NAME=~"sales_quot_req.item_ser~") COLUMN(NAME=~"sales_quot_req.req_date~") COLUMN(NAME=~"sales_quot_req.valid_upto~") COLUMN(NAME=~"sales_quot_req.sales_pers~") COLUMN(NAME=~"sales_quot_req.confirmed~") COLUMN(NAME=~"sales_quot_req.confirm_date~") COLUMN(NAME=~"sales_quot_req.emp_code_conf~") COLUMN(NAME=~"sales_quot_req.status~") COLUMN(NAME=~"sales_quot_req.status_date~") COLUMN(NAME=~"sales_quot_req.wf_status~") COLUMN(NAME=~"sales_quot_req.remarks~") COLUMN(NAME=~"sales_quot_req.tran_id__ref~") COLUMN(NAME=~"sales_quot_req.add_date~") COLUMN(NAME=~"sales_quot_req.add_user~") COLUMN(NAME=~"sales_quot_req.add_term~") COLUMN(NAME=~"sales_quot_req.chg_date~") COLUMN(NAME=~"sales_quot_req.chg_user~") COLUMN(NAME=~"sales_quot_req.chg_term~") COLUMN(NAME=~"sales_quot_req.cust_name~") COLUMN(NAME=~"sales_quot_req.addr1~") COLUMN(NAME=~"sales_quot_req.addr2~") COLUMN(NAME=~"sales_quot_req.addr3~") COLUMN(NAME=~"sales_quot_req.site_code~") COLUMN(NAME=~"sales_quot_req.mgmnt_apprv~") COLUMN(NAME=~"itemser.descr~") JOIN (LEFT=~"sales_quot_req.item_ser~" OP =~"=~"RIGHT=~"itemser.item_ser~" OUTER1 =~"sales_quot_req.item_ser~" )WHERE( EXP1 =~"sales_quot_req.tran_id~" OP =~"=~" EXP2 =~":tran_id~" ) ) ARG(NAME = ~"tran_id~" TYPE = number) " update="sales_quot_req" updatewhere=1 updatekeyinplace=no arguments=(("tran_id", number)) )
groupbox(band=detail text="Customer"border="2" color="0" x="9" y="253" height="192" width="858" name=gb_2 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="1073741824" )
groupbox(band=detail text="Others"border="2" color="0" x="15" y="837" height="164" width="862" name=gb_6 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="1073741824" )
groupbox(band=detail text="Workflow"border="2" color="0" x="16" y="742" height="73" width="858" name=gb_5 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="1073741824" )
......@@ -69,15 +70,15 @@ column(band=detail id=8 alignment="0" tabsequence=70 border="2" color="0" x="419
text(band=detail alignment="1" text="Reference Transaction ID:" border="2" color="0" x="566" y="121" height="16" width="149" html.valueishtml="0" name=tran_id__ref_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=17 alignment="0" tabsequence=130 border="2" color="0" x="719" y="121" height="19" width="66" format="[general]" html.valueishtml="0" name=tran_id__ref visible="1" edit.limit=10 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="1" background.color="536870912" )
text(band=detail alignment="1" text="Item Series:" border="2" color="0" x="30" y="154" height="16" width="95" html.valueishtml="0" name=item_ser_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="0" tabsequence=50 border="2" color="0" x="129" y="154" height="19" width="112" format="[general]" html.valueishtml="0" name=item_ser visible="1" edit.limit=5 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="1" background.color="536870912" )
column(band=detail id=6 alignment="0" tabsequence=50 border="2" color="0" x="129" y="154" height="19" width="112" format="[general]" html.valueishtml="0" name=item_ser visible="1" edit.limit=5 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.required=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="1" background.color="536870912" )
text(band=detail alignment="1" text="Quotation Type:" border="2" color="0" x="22" y="285" height="16" width="95" html.valueishtml="0" name=quot_type_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=3 alignment="0" tabsequence=10 border="2" color="0" x="121" y="285" height="19" width="69" format="[general]" html.valueishtml="0" name=quot_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="1" background.color="536870912" )
column(band=detail id=3 alignment="0" tabsequence=10 border="2" color="0" x="121" y="285" height="19" width="69" format="[general]" html.valueishtml="0" name=quot_type visible="1" ddlb.limit=0 ddlb.allowedit=no ddlb.case=any ddlb.required=yes ddlb.imemode=0 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="Customer Name:" border="2" color="0" x="220" y="285" height="16" width="98" html.valueishtml="0" name=cust_name_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=24 alignment="0" tabsequence=32766 border="2" color="0" x="322" y="285" height="19" width="100" format="[general]" html.valueishtml="0" name=cust_name visible="1" edit.limit=50 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="1" background.color="536870912" )
text(band=detail alignment="1" text="Address 3:" border="2" color="0" x="477" y="285" height="16" width="95" html.valueishtml="0" name=addr3_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=27 alignment="0" tabsequence=32766 border="2" color="0" x="576" y="285" height="19" width="55" format="[general]" html.valueishtml="0" name=addr3 visible="1" edit.limit=40 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="1" background.color="536870912" )
text(band=detail alignment="1" text="Customer Code:" border="2" color="0" x="21" y="323" height="16" width="95" html.valueishtml="0" name=cust_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=4 alignment="0" tabsequence=20 border="2" color="0" x="122" y="323" height="19" width="66" format="[general]" html.valueishtml="0" name=cust_code visible="1" edit.limit=10 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="1" background.color="536870912" )
column(band=detail id=4 alignment="0" tabsequence=20 border="2" color="0" x="122" y="323" height="19" width="66" format="[general]" html.valueishtml="0" name=cust_code visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.required=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="1" background.color="536870912" )
text(band=detail alignment="1" text="Address 1:" border="2" color="0" x="222" y="323" height="16" width="95" html.valueishtml="0" name=addr1_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=25 alignment="0" tabsequence=32766 border="2" color="0" x="321" y="323" height="19" width="87" format="[general]" html.valueishtml="0" name=addr1 visible="1" edit.limit=40 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="1" background.color="536870912" )
text(band=detail alignment="1" text="Site Code:" border="2" color="0" x="477" y="323" height="16" width="95" html.valueishtml="0" name=site_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" )
......@@ -97,6 +98,7 @@ column(band=detail id=11 alignment="0" tabsequence=32766 border="2" color="0" x=
text(band=detail alignment="1" text="Status:" border="2" color="0" x="342" y="660" height="16" width="95" html.valueishtml="0" name=status_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=13 alignment="0" tabsequence=90 border="2" color="0" x="441" y="660" height="19" width="79" format="[general]" html.valueishtml="0" name=status 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="1" background.color="536870912" )
column(band=detail id=29 alignment="0" tabsequence=32766 border="0" color="0" x="359" y="506" height="16" width="145" format="[general]" html.valueishtml="0" name=mgmnt_apprv visible="0" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 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=30 alignment="0" tabsequence=32766 border="2" color="0" x="130" y="181" height="16" width="69" html.valueishtml="0" name=descr 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" )
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 )
......
......@@ -30,10 +30,6 @@
<overrideprintjob>no</overrideprintjob>
</print>
</BaseDefinition>
<Header>
<height>9</height>
<color>536870912</color>
</Header>
<Summary>
<height>0</height>
<color>536870912</color>
......@@ -43,7 +39,7 @@
<color>536870912</color>
</Footer>
<Detail>
<height>521</height>
<height>1073</height>
<color>536870912</color>
</Detail>
<TableDefinition>
......@@ -61,6 +57,19 @@
<updatewhereclause>yes</updatewhereclause>
<name>tran_date</name>
<dbname>sales_quot_req.tran_date</dbname>
<initial>today()</initial>
</table_column>
<table_column>
<type size="1">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>quot_type</name>
<dbname>sales_quot_req.quot_type</dbname>
<values>
<item display="Institution" data="I"/>
<item display="Group" data="G"/>
<item display="Customer" data="C"/>
</values>
</table_column>
<table_column>
<type size="10">char</type>
......@@ -69,6 +78,13 @@
<name>cust_code</name>
<dbname>sales_quot_req.cust_code</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>contact_pers</name>
<dbname>sales_quot_req.contact_pers</dbname>
</table_column>
<table_column>
<type size="5">char</type>
<update>yes</update>
......@@ -83,36 +99,168 @@
<name>req_date</name>
<dbname>sales_quot_req.req_date</dbname>
</table_column>
<table_column>
<type>datetime</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>valid_upto</name>
<dbname>sales_quot_req.valid_upto</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>sales_pers</name>
<dbname>sales_quot_req.sales_pers</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>quot_type</name>
<dbname>sales_quot_req.quot_type</dbname>
<initial> </initial>
<name>confirmed</name>
<dbname>sales_quot_req.confirmed</dbname>
<values>
<item display="/Institution" data="I"/>
<item display="Customer" data="C"/>
<item display="Group" data="G"/>
<item display="No" data="N"/>
<item display="Yes" data="Y"/>
</values>
</table_column>
<table_column>
<type>datetime</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>confirm_date</name>
<dbname>sales_quot_req.confirm_date</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>emp_code_conf</name>
<dbname>sales_quot_req.emp_code_conf</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>status</name>
<dbname>sales_quot_req.status</dbname>
<values>
<item display="Active" data="A"/>
<item display="Inactive" data="I"/>
<item display="Closed" data="C"/>
</values>
</table_column>
<table_column>
<type>datetime</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>status_date</name>
<dbname>sales_quot_req.status_date</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>wf_status</name>
<dbname>sales_quot_req.wf_status</dbname>
</table_column>
<table_column>
<type size="2500">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>remarks</name>
<dbname>sales_quot_req.remarks</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>tran_id__ref</name>
<dbname>sales_quot_req.tran_id__ref</dbname>
</table_column>
<table_column>
<type>datetime</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>add_date</name>
<dbname>sales_quot_req.add_date</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>add_user</name>
<dbname>sales_quot_req.add_user</dbname>
</table_column>
<table_column>
<type size="215">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>add_term</name>
<dbname>sales_quot_req.add_term</dbname>
</table_column>
<table_column>
<type>datetime</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>chg_date</name>
<dbname>sales_quot_req.chg_date</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>chg_user</name>
<dbname>sales_quot_req.chg_user</dbname>
</table_column>
<table_column>
<type size="215">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>chg_term</name>
<dbname>sales_quot_req.chg_term</dbname>
</table_column>
<table_column>
<type size="50">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>custname</name>
<dbname>custname</dbname>
<name>cust_name</name>
<dbname>sales_quot_req.cust_name</dbname>
</table_column>
<table_column>
<type size="40">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>itemserdescr</name>
<dbname>itemserdescr</dbname>
<name>addr1</name>
<dbname>addr1</dbname>
</table_column>
<table_column>
<type size="50">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>cust_name</name>
<dbname>customer.cust_name</dbname>
<name>addr2</name>
<dbname>addr2</dbname>
</table_column>
<table_column>
<type size="40">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>addr3</name>
<dbname>addr3</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>site_code</name>
<dbname>sales_quot_req.site_code</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>mgmnt_apprv</name>
<dbname>sales_quot_req.mgmnt_apprv</dbname>
</table_column>
<table_column>
<type size="40">char</type>
......@@ -120,25 +268,173 @@
<name>descr</name>
<dbname>itemser.descr</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;sales_quot_req&quot; ) TABLE(NAME=&quot;customer&quot; ) TABLE(NAME=&quot;itemser&quot; ) COLUMN(NAME=&quot;sales_quot_req.tran_id&quot;) COLUMN(NAME=&quot;sales_quot_req.tran_date&quot;) COLUMN(NAME=&quot;sales_quot_req.cust_code&quot;) COLUMN(NAME=&quot;sales_quot_req.item_ser&quot;) COLUMN(NAME=&quot;sales_quot_req.req_date&quot;) COLUMN(NAME=&quot;sales_quot_req.quot_type&quot;) COMPUTE(NAME=&quot;(select cust_name from customer where cust_code = sales_quot_req.cust_code) as custName&quot;) COMPUTE(NAME=&quot;(select descr from itemser where item_ser = sales_quot_req.item_ser) as itemSerDescr&quot;) COLUMN(NAME=&quot;customer.cust_name&quot;) COLUMN(NAME=&quot;itemser.descr&quot;) JOIN (LEFT=&quot;sales_quot_req.cust_code&quot; OP =&quot;=&quot;RIGHT=&quot;customer.cust_code&quot; OUTER1 =&quot;sales_quot_req.cust_code&quot; ) JOIN (LEFT=&quot;sales_quot_req.item_ser&quot; OP =&quot;=&quot;RIGHT=&quot;itemser.item_ser&quot; OUTER1 =&quot;sales_quot_req.item_ser&quot; )) </retrieve>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;sales_quot_req&quot; ) TABLE(NAME=&quot;itemser&quot; ) COLUMN(NAME=&quot;sales_quot_req.tran_id&quot;) COLUMN(NAME=&quot;sales_quot_req.tran_date&quot;) COLUMN(NAME=&quot;sales_quot_req.quot_type&quot;) COLUMN(NAME=&quot;sales_quot_req.cust_code&quot;) COLUMN(NAME=&quot;sales_quot_req.contact_pers&quot;) COLUMN(NAME=&quot;sales_quot_req.item_ser&quot;) COLUMN(NAME=&quot;sales_quot_req.req_date&quot;) COLUMN(NAME=&quot;sales_quot_req.valid_upto&quot;) COLUMN(NAME=&quot;sales_quot_req.sales_pers&quot;) COLUMN(NAME=&quot;sales_quot_req.confirmed&quot;) COLUMN(NAME=&quot;sales_quot_req.confirm_date&quot;) COLUMN(NAME=&quot;sales_quot_req.emp_code_conf&quot;) COLUMN(NAME=&quot;sales_quot_req.status&quot;) COLUMN(NAME=&quot;sales_quot_req.status_date&quot;) COLUMN(NAME=&quot;sales_quot_req.wf_status&quot;) COLUMN(NAME=&quot;sales_quot_req.remarks&quot;) COLUMN(NAME=&quot;sales_quot_req.tran_id__ref&quot;) COLUMN(NAME=&quot;sales_quot_req.add_date&quot;) COLUMN(NAME=&quot;sales_quot_req.add_user&quot;) COLUMN(NAME=&quot;sales_quot_req.add_term&quot;) COLUMN(NAME=&quot;sales_quot_req.chg_date&quot;) COLUMN(NAME=&quot;sales_quot_req.chg_user&quot;) COLUMN(NAME=&quot;sales_quot_req.chg_term&quot;) COLUMN(NAME=&quot;sales_quot_req.cust_name&quot;) COLUMN(NAME=&quot;sales_quot_req.addr1&quot;) COLUMN(NAME=&quot;sales_quot_req.addr2&quot;) COLUMN(NAME=&quot;sales_quot_req.addr3&quot;) COLUMN(NAME=&quot;sales_quot_req.site_code&quot;) COLUMN(NAME=&quot;sales_quot_req.mgmnt_apprv&quot;) COLUMN(NAME=&quot;itemser.descr&quot;) JOIN (LEFT=&quot;sales_quot_req.item_ser&quot; OP =&quot;=&quot;RIGHT=&quot;itemser.item_ser&quot; OUTER1 =&quot;sales_quot_req.item_ser&quot; )WHERE( EXP1 =&quot;sales_quot_req.tran_id&quot; OP =&quot;=&quot; EXP2 =&quot;:tran_id&quot; ) ) ARG(NAME = &quot;tran_id&quot; TYPE = number) </retrieve>
<update>sales_quot_req</update>
<updatewhere>0</updatewhere>
<updatewhere>1</updatewhere>
<updatekeyinplace>no</updatekeyinplace>
<argument>
<name>tran_id</name>
<type>number</type>
</argument>
</TableDefinition>
<GroupBox>
<band>Detail</band>
<text>Customer</text>
<border>2</border>
<color>0</color>
<x>9</x>
<y>253</y>
<height>192</height>
<width>858</width>
<name>gb_2</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>1073741824</color>
</background>
</GroupBox>
<GroupBox>
<band>Detail</band>
<text>Others</text>
<border>2</border>
<color>0</color>
<x>15</x>
<y>837</y>
<height>164</height>
<width>862</width>
<name>gb_6</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>1073741824</color>
</background>
</GroupBox>
<GroupBox>
<band>Detail</band>
<text>Workflow</text>
<border>2</border>
<color>0</color>
<x>16</x>
<y>742</y>
<height>73</height>
<width>858</width>
<name>gb_5</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>1073741824</color>
</background>
</GroupBox>
<GroupBox>
<band>Detail</band>
<text>Status</text>
<border>2</border>
<color>0</color>
<x>15</x>
<y>593</y>
<height>122</height>
<width>858</width>
<name>gb_4</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>1073741824</color>
</background>
</GroupBox>
<GroupBox>
<band>Detail</band>
<text>Sales</text>
<border>2</border>
<color>0</color>
<x>9</x>
<y>468</y>
<height>100</height>
<width>862</width>
<name>gb_3</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>1073741824</color>
</background>
</GroupBox>
<GroupBox>
<band>Detail</band>
<text>Basic</text>
<border>2</border>
<color>0</color>
<x>11</x>
<y>23</y>
<height>188</height>
<width>854</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>1073741824</color>
</background>
</GroupBox>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Transaction Id:</text>
<text>Sales Person:</text>
<border>2</border>
<color>0</color>
<x>266</x>
<y>97</y>
<x>65</x>
<y>498</y>
<height>16</height>
<width>85</width>
<width>95</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id_t</name>
<name>sales_pers_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
......@@ -155,20 +451,20 @@
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<id>9</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<tabsequence>30</tabsequence>
<border>2</border>
<color>0</color>
<x>355</x>
<y>97</y>
<x>174</x>
<y>497</y>
<height>19</height>
<width>66</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id</name>
<name>sales_pers</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
......@@ -194,17 +490,17 @@
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Transaction Date:</text>
<text>Add Date:</text>
<border>2</border>
<color>0</color>
<x>249</x>
<y>131</y>
<x>98</x>
<y>860</y>
<height>16</height>
<width>102</width>
<width>95</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_date_t</name>
<name>add_date_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
......@@ -221,20 +517,20 @@
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<id>18</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>0</color>
<x>355</x>
<y>131</y>
<x>198</x>
<y>861</y>
<height>19</height>
<width>132</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_date</name>
<name>add_date</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
......@@ -260,17 +556,17 @@
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Customer Code:</text>
<text>Add User:</text>
<border>2</border>
<color>0</color>
<x>257</x>
<y>165</y>
<x>99</x>
<y>895</y>
<height>16</height>
<width>94</width>
<width>95</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_code_t</name>
<name>add_user_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
......@@ -287,20 +583,20 @@
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<id>19</id>
<alignment>0</alignment>
<tabsequence>10</tabsequence>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>0</color>
<x>355</x>
<y>165</y>
<x>198</x>
<y>895</y>
<height>19</height>
<width>66</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_code</name>
<name>add_user</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
......@@ -326,17 +622,17 @@
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Quotation Type:</text>
<text>Add Term:</text>
<border>2</border>
<color>0</color>
<x>257</x>
<y>223</y>
<x>99</x>
<y>929</y>
<height>16</height>
<width>92</width>
<width>95</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>quot_type_t</name>
<name>add_term_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
......@@ -353,25 +649,27 @@
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>6</id>
<id>20</id>
<alignment>0</alignment>
<tabsequence>40</tabsequence>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>0</color>
<x>355</x>
<y>223</y>
<height>16</height>
<width>75</width>
<x>198</x>
<y>929</y>
<height>19</height>
<width>79</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>quot_type</name>
<name>add_term</name>
<visible>1</visible>
<EditStyle style="ddlb">
<limit>0</limit>
<allowedit>no</allowedit>
<EditStyle style="edit">
<limit>215</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -390,17 +688,17 @@
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Item Series:</text>
<text>Chg Date:</text>
<border>2</border>
<color>0</color>
<x>275</x>
<y>249</y>
<x>416</x>
<y>863</y>
<height>16</height>
<width>70</width>
<width>95</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_ser_t</name>
<name>chg_date_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
......@@ -417,23 +715,23 @@
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>4</id>
<id>21</id>
<alignment>0</alignment>
<tabsequence>20</tabsequence>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>0</color>
<x>350</x>
<y>250</y>
<x>515</x>
<y>863</y>
<height>19</height>
<width>75</width>
<format>[general]</format>
<width>132</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_ser</name>
<name>chg_date</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>5</limit>
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
......@@ -456,17 +754,17 @@
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Request Date:</text>
<text>Chg User:</text>
<border>2</border>
<color>0</color>
<x>262</x>
<y>299</y>
<x>416</x>
<y>897</y>
<height>16</height>
<width>83</width>
<width>95</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>req_date_t</name>
<name>chg_user_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
......@@ -483,23 +781,1276 @@
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>5</id>
<id>22</id>
<alignment>0</alignment>
<tabsequence>30</tabsequence>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>0</color>
<x>350</x>
<y>298</y>
<x>515</x>
<y>897</y>
<height>19</height>
<width>132</width>
<format>[shortdate] [time]</format>
<html>
<width>66</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_user</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Chg Term:</text>
<border>2</border>
<color>0</color>
<x>416</x>
<y>931</y>
<height>16</height>
<width>95</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>23</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>0</color>
<x>515</x>
<y>931</y>
<height>19</height>
<width>77</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_term</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>215</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>15</id>
<alignment>0</alignment>
<tabsequence>110</tabsequence>
<border>2</border>
<color>0</color>
<x>200</x>
<y>769</y>
<height>19</height>
<width>181</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wf_status</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>1</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Workflow Status:</text>
<border>2</border>
<color>0</color>
<x>97</x>
<y>769</y>
<height>16</height>
<width>99</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wf_status_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>Transaction ID:</text>
<border>2</border>
<color>0</color>
<x>30</x>
<y>87</y>
<height>16</height>
<width>95</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>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>0</color>
<x>129</x>
<y>87</y>
<height>19</height>
<width>66</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Required Date:</text>
<border>2</border>
<color>0</color>
<x>322</x>
<y>87</y>
<height>16</height>
<width>95</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>req_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>7</id>
<alignment>0</alignment>
<tabsequence>60</tabsequence>
<border>2</border>
<color>0</color>
<x>421</x>
<y>87</y>
<height>19</height>
<width>132</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>req_date</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Remarks:</text>
<border>2</border>
<color>0</color>
<x>620</x>
<y>87</y>
<height>16</height>
<width>95</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>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>16</id>
<alignment>0</alignment>
<tabsequence>120</tabsequence>
<border>2</border>
<color>0</color>
<x>719</x>
<y>87</y>
<height>19</height>
<width>54</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>remarks</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>2500</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Transaction Date:</text>
<border>2</border>
<color>0</color>
<x>23</x>
<y>121</y>
<height>16</height>
<width>102</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>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>0</color>
<x>129</x>
<y>121</y>
<height>19</height>
<width>132</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_date</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Valid Up To:</text>
<border>2</border>
<color>0</color>
<x>320</x>
<y>121</y>
<height>16</height>
<width>95</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>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>8</id>
<alignment>0</alignment>
<tabsequence>70</tabsequence>
<border>2</border>
<color>0</color>
<x>419</x>
<y>121</y>
<height>19</height>
<width>132</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>valid_upto</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Reference Transaction ID:</text>
<border>2</border>
<color>0</color>
<x>566</x>
<y>121</y>
<height>16</height>
<width>149</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id__ref_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>17</id>
<alignment>0</alignment>
<tabsequence>130</tabsequence>
<border>2</border>
<color>0</color>
<x>719</x>
<y>121</y>
<height>19</height>
<width>66</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id__ref</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Item Series:</text>
<border>2</border>
<color>0</color>
<x>30</x>
<y>154</y>
<height>16</height>
<width>95</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_ser_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>0</alignment>
<tabsequence>50</tabsequence>
<border>2</border>
<color>0</color>
<x>129</x>
<y>154</y>
<height>19</height>
<width>112</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_ser</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>5</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<required>yes</required>
<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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Quotation Type:</text>
<border>2</border>
<color>0</color>
<x>22</x>
<y>285</y>
<height>16</height>
<width>95</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>quot_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>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>0</alignment>
<tabsequence>10</tabsequence>
<border>2</border>
<color>0</color>
<x>121</x>
<y>285</y>
<height>19</height>
<width>69</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>quot_type</name>
<visible>1</visible>
<EditStyle style="ddlb">
<limit>0</limit>
<allowedit>no</allowedit>
<case>any</case>
<required>yes</required>
<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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Customer Name:</text>
<border>2</border>
<color>0</color>
<x>220</x>
<y>285</y>
<height>16</height>
<width>98</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_name_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>24</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>0</color>
<x>322</x>
<y>285</y>
<height>19</height>
<width>100</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_name</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>50</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Address 3:</text>
<border>2</border>
<color>0</color>
<x>477</x>
<y>285</y>
<height>16</height>
<width>95</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>addr3_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>27</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>0</color>
<x>576</x>
<y>285</y>
<height>19</height>
<width>55</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>addr3</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>40</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Customer Code:</text>
<border>2</border>
<color>0</color>
<x>21</x>
<y>323</y>
<height>16</height>
<width>95</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_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>4</id>
<alignment>0</alignment>
<tabsequence>20</tabsequence>
<border>2</border>
<color>0</color>
<x>122</x>
<y>323</y>
<height>19</height>
<width>66</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<required>yes</required>
<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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Address 1:</text>
<border>2</border>
<color>0</color>
<x>222</x>
<y>323</y>
<height>16</height>
<width>95</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>addr1_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>25</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>0</color>
<x>321</x>
<y>323</y>
<height>19</height>
<width>87</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>addr1</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>40</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Site Code:</text>
<border>2</border>
<color>0</color>
<x>477</x>
<y>323</y>
<height>16</height>
<width>95</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_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>28</id>
<alignment>0</alignment>
<tabsequence>140</tabsequence>
<border>2</border>
<color>0</color>
<x>576</x>
<y>323</y>
<height>19</height>
<width>66</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Address 2:</text>
<border>2</border>
<color>0</color>
<x>222</x>
<y>358</y>
<height>16</height>
<width>95</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>addr2_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>26</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>0</color>
<x>321</x>
<y>358</y>
<height>19</height>
<width>56</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>addr2</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>50</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Contact Person:</text>
<border>2</border>
<color>0</color>
<x>477</x>
<y>358</y>
<height>16</height>
<width>95</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>contact_pers_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>5</id>
<alignment>0</alignment>
<tabsequence>40</tabsequence>
<border>2</border>
<color>0</color>
<x>576</x>
<y>358</y>
<height>19</height>
<width>66</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>contact_pers</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Confirmed:</text>
<border>2</border>
<color>0</color>
<x>66</x>
<y>626</y>
<height>16</height>
<width>95</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>req_date</name>
<name>confirmed_t</name>
<visible>1</visible>
<EditStyle style="edit">
<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>80</tabsequence>
<border>2</border>
<color>0</color>
<x>165</x>
<y>626</y>
<height>19</height>
<width>72</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>confirmed</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Confirmed By:</text>
<border>2</border>
<color>0</color>
<x>342</x>
<y>626</y>
<height>16</height>
<width>95</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_code_conf_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>2</border>
<color>0</color>
<x>441</x>
<y>626</y>
<height>19</height>
<width>66</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_code_conf</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
......@@ -519,27 +2070,57 @@
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Status Date:</text>
<border>2</border>
<color>0</color>
<x>548</x>
<y>626</y>
<height>16</height>
<width>95</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>status_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>
<id>14</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<tabsequence>100</tabsequence>
<border>2</border>
<color>0</color>
<x>345</x>
<y>192</y>
<height>16</height>
<width>87</width>
<format>[general]</format>
<x>647</x>
<y>626</y>
<height>19</height>
<width>78</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_name</name>
<name>status_date</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>
......@@ -555,23 +2136,153 @@
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Confirmation Date:</text>
<border>2</border>
<color>0</color>
<x>54</x>
<y>660</y>
<height>16</height>
<width>107</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>confirm_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>10</id>
<id>11</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>0</color>
<x>349</x>
<y>275</y>
<x>165</x>
<y>660</y>
<height>19</height>
<width>132</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>confirm_date</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Status:</text>
<border>2</border>
<color>0</color>
<x>342</x>
<y>660</y>
<height>16</height>
<width>106</width>
<width>95</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>status_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>13</id>
<alignment>0</alignment>
<tabsequence>90</tabsequence>
<border>2</border>
<color>0</color>
<x>441</x>
<y>660</y>
<height>19</height>
<width>79</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>descr</name>
<name>status</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>29</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>0</color>
<x>359</x>
<y>506</y>
<height>16</height>
<width>145</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>mgmnt_apprv</name>
<visible>0</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
......@@ -591,6 +2302,35 @@
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>30</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>0</color>
<x>130</x>
<y>181</y>
<height>16</height>
<width>69</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>descr</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>
</ColumnObject>
<HtmlTable>
<border>1</border>
</HtmlTable>
......
......@@ -30,6 +30,10 @@
<overrideprintjob>no</overrideprintjob>
</print>
</BaseDefinition>
<Header>
<height>7</height>
<color>536870912</color>
</Header>
<Summary>
<height>0</height>
<color>536870912</color>
......@@ -39,7 +43,7 @@
<color>536870912</color>
</Footer>
<Detail>
<height>289</height>
<height>755</height>
<color>536870912</color>
</Detail>
<TableDefinition>
......@@ -66,7 +70,112 @@
<name>item_code</name>
<dbname>sales_quot_req_det.item_code</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;sales_quot_req_det&quot; ) COLUMN(NAME=&quot;sales_quot_req_det.tran_id&quot;) COLUMN(NAME=&quot;sales_quot_req_det.line_no&quot;) COLUMN(NAME=&quot;sales_quot_req_det.item_code&quot;)WHERE( EXP1 =&quot;sales_quot_req_det.tran_id&quot; OP =&quot;=&quot; EXP2 =&quot;:tran_id&quot; ) ) ARG(NAME = &quot;tran_id&quot; TYPE = number) </retrieve>
<table_column>
<type>number</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>qty_quot</name>
<dbname>sales_quot_req_det.qty_quot</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>unit</name>
<dbname>sales_quot_req_det.unit</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>pack_code</name>
<dbname>sales_quot_req_det.pack_code</dbname>
</table_column>
<table_column>
<type>number</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>rate_quot</name>
<dbname>sales_quot_req_det.rate_quot</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>near_expiry</name>
<dbname>sales_quot_req_det.near_expiry</dbname>
</table_column>
<table_column>
<type>number</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>competitor_rate</name>
<dbname>sales_quot_req_det.competitor_rate</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>competitor_item</name>
<dbname>sales_quot_req_det.competitor_item</dbname>
</table_column>
<table_column>
<type size="250">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>competitor_name</name>
<dbname>sales_quot_req_det.competitor_name</dbname>
</table_column>
<table_column>
<type>number</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>rate_apprv</name>
<dbname>sales_quot_req_det.rate_apprv</dbname>
</table_column>
<table_column>
<type size="2500">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>remarks</name>
<dbname>sales_quot_req_det.remarks</dbname>
</table_column>
<table_column>
<type size="2500">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>spec_instr</name>
<dbname>sales_quot_req_det.spec_instr</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>ptr_flag</name>
<dbname>sales_quot_req_det.ptr_flag</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>pts</name>
<dbname>sales_quot_req_det.pts</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>ptd</name>
<dbname>sales_quot_req_det.ptd</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>ptr</name>
<dbname>sales_quot_req_det.ptr</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;sales_quot_req_det&quot; ) COLUMN(NAME=&quot;sales_quot_req_det.tran_id&quot;) COLUMN(NAME=&quot;sales_quot_req_det.line_no&quot;) COLUMN(NAME=&quot;sales_quot_req_det.item_code&quot;) COLUMN(NAME=&quot;sales_quot_req_det.qty_quot&quot;) COLUMN(NAME=&quot;sales_quot_req_det.unit&quot;) COLUMN(NAME=&quot;sales_quot_req_det.pack_code&quot;) COLUMN(NAME=&quot;sales_quot_req_det.rate_quot&quot;) COLUMN(NAME=&quot;sales_quot_req_det.near_expiry&quot;) COLUMN(NAME=&quot;sales_quot_req_det.competitor_rate&quot;) COLUMN(NAME=&quot;sales_quot_req_det.competitor_item&quot;) COLUMN(NAME=&quot;sales_quot_req_det.competitor_name&quot;) COLUMN(NAME=&quot;sales_quot_req_det.rate_apprv&quot;) COLUMN(NAME=&quot;sales_quot_req_det.remarks&quot;) COLUMN(NAME=&quot;sales_quot_req_det.spec_instr&quot;) COLUMN(NAME=&quot;sales_quot_req_det.ptr_flag&quot;) COLUMN(NAME=&quot;sales_quot_req_det.pts&quot;) COLUMN(NAME=&quot;sales_quot_req_det.ptd&quot;) COLUMN(NAME=&quot;sales_quot_req_det.ptr&quot;)WHERE( EXP1 =&quot;sales_quot_req_det.tran_id&quot; OP =&quot;=&quot; EXP2 =&quot;:tran_id&quot; ) ) ARG(NAME = &quot;tran_id&quot; TYPE = number) </retrieve>
<update>sales_quot_req_det</update>
<updatewhere>0</updatewhere>
<updatekeyinplace>no</updatekeyinplace>
......@@ -75,21 +184,149 @@
<type>number</type>
</argument>
</TableDefinition>
<TextObject>
<GroupBox>
<band>Detail</band>
<alignment>1</alignment>
<text>Transaction Id:</text>
<text>Competitor</text>
<border>2</border>
<color>0</color>
<x>131</x>
<y>541</y>
<height>100</height>
<width>564</width>
<name>gb_5</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>1073741824</color>
</background>
</GroupBox>
<GroupBox>
<band>Detail</band>
<text>Price List</text>
<border>2</border>
<color>0</color>
<x>131</x>
<y>425</y>
<height>100</height>
<width>557</width>
<name>gb_4</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>1073741824</color>
</background>
</GroupBox>
<GroupBox>
<band>Detail</band>
<text>Quantity</text>
<border>2</border>
<color>0</color>
<x>153</x>
<y>306</y>
<height>93</height>
<width>532</width>
<name>gb_3</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>1073741824</color>
</background>
</GroupBox>
<GroupBox>
<band>Detail</band>
<text>Item</text>
<border>2</border>
<color>0</color>
<x>153</x>
<y>192</y>
<height>100</height>
<width>529</width>
<name>gb_2</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>1073741824</color>
</background>
</GroupBox>
<GroupBox>
<band>Detail</band>
<text>General</text>
<border>2</border>
<color>0</color>
<x>153</x>
<y>81</y>
<height>100</height>
<width>528</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>1073741824</color>
</background>
</GroupBox>
<ColumnObject>
<band>Detail</band>
<id>8</id>
<alignment>0</alignment>
<tabsequence>60</tabsequence>
<border>2</border>
<color>0</color>
<x>229</x>
<y>78</y>
<x>312</x>
<y>252</y>
<height>16</height>
<width>85</width>
<width>90</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id_t</name>
<name>near_expiry</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
......@@ -102,30 +339,28 @@
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<id>15</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<tabsequence>120</tabsequence>
<border>2</border>
<color>0</color>
<x>318</x>
<y>78</y>
<height>19</height>
<width>66</width>
<format>[general]</format>
<x>605</x>
<y>328</y>
<height>16</height>
<width>56</width>
<format>[Yes/No]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id</name>
<name>ptr_flag</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -210,17 +445,81 @@
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Item Code:</text>
<text>Remarks:</text>
<border>2</border>
<color>0</color>
<x>251</x>
<x>442</x>
<y>112</y>
<height>16</height>
<width>85</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>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>13</id>
<alignment>0</alignment>
<tabsequence>100</tabsequence>
<border>2</border>
<color>0</color>
<x>535</x>
<y>112</y>
<height>16</height>
<width>66</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>remarks</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Special Instruction:</text>
<border>2</border>
<color>0</color>
<x>201</x>
<y>146</y>
<height>16</height>
<width>63</width>
<width>111</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_code_t</name>
<name>spec_instr_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
......@@ -237,27 +536,892 @@
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<id>14</id>
<alignment>0</alignment>
<tabsequence>10</tabsequence>
<tabsequence>110</tabsequence>
<border>2</border>
<color>0</color>
<x>318</x>
<x>317</x>
<y>146</y>
<height>19</height>
<height>16</height>
<width>66</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_code</name>
<name>spec_instr</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<limit>0</limit>
<case>any</case>
<autoselect>yes</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Transaction Id:</text>
<border>2</border>
<color>0</color>
<x>450</x>
<y>146</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>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>0</color>
<x>539</x>
<y>146</y>
<height>19</height>
<width>66</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Item Code:</text>
<border>2</border>
<color>0</color>
<x>246</x>
<y>222</y>
<height>16</height>
<width>63</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>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>0</alignment>
<tabsequence>10</tabsequence>
<border>2</border>
<color>0</color>
<x>313</x>
<y>222</y>
<height>19</height>
<width>66</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<required>yes</required>
<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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Near Expiry:</text>
<border>2</border>
<color>0</color>
<x>236</x>
<y>253</y>
<height>16</height>
<width>72</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>near_expiry_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>Quoted Quantity:</text>
<border>2</border>
<color>0</color>
<x>211</x>
<y>328</y>
<height>16</height>
<width>99</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>qty_quot_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>0</alignment>
<tabsequence>20</tabsequence>
<border>2</border>
<color>0</color>
<x>314</x>
<y>328</y>
<height>16</height>
<width>63</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>qty_quot</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<required>yes</required>
<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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Special Rate:</text>
<border>2</border>
<color>0</color>
<x>431</x>
<y>328</y>
<height>16</height>
<width>99</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>rate_quot_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>0</alignment>
<tabsequence>50</tabsequence>
<border>2</border>
<color>0</color>
<x>535</x>
<y>328</y>
<height>16</height>
<width>64</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>rate_quot</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<required>yes</required>
<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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Pack Code:</text>
<border>2</border>
<color>0</color>
<x>208</x>
<y>352</y>
<height>16</height>
<width>99</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pack_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>6</id>
<alignment>0</alignment>
<tabsequence>40</tabsequence>
<border>2</border>
<color>0</color>
<x>312</x>
<y>352</y>
<height>16</height>
<width>60</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pack_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>12</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>0</color>
<x>312</x>
<y>486</y>
<height>16</height>
<width>65</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>rate_apprv</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>18</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>0</color>
<x>578</x>
<y>486</y>
<height>16</height>
<width>28</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>ptr</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Management Approval Rate:</text>
<border>2</border>
<color>0</color>
<x>141</x>
<y>487</y>
<height>16</height>
<width>163</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>rate_apprv_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 To Retailer (PTR):</text>
<border>2</border>
<color>0</color>
<x>418</x>
<y>487</y>
<height>16</height>
<width>152</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>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>11</id>
<alignment>0</alignment>
<tabsequence>90</tabsequence>
<border>2</border>
<color>0</color>
<x>292</x>
<y>599</y>
<height>16</height>
<width>128</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>competitor_name</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Competitor Name:</text>
<border>2</border>
<color>0</color>
<x>165</x>
<y>599</y>
<height>16</height>
<width>116</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>competitor_name_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>5</id>
<alignment>0</alignment>
<tabsequence>30</tabsequence>
<border>2</border>
<color>0</color>
<x>537</x>
<y>353</y>
<height>16</height>
<width>60</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>unit</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Unit:</text>
<border>2</border>
<color>0</color>
<x>430</x>
<y>353</y>
<height>16</height>
<width>99</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>unit_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 To Stockist (PTS):</text>
<border>2</border>
<color>0</color>
<x>164</x>
<y>450</y>
<height>16</height>
<width>141</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pts_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>16</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>0</color>
<x>312</x>
<y>450</y>
<height>16</height>
<width>37</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pts</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Price To Distributor (PTD):</text>
<border>2</border>
<color>0</color>
<x>416</x>
<y>450</y>
<height>16</height>
<width>152</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>ptd_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>17</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>0</color>
<x>577</x>
<y>450</y>
<height>16</height>
<width>29</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>ptd</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Competitor Rate:</text>
<border>2</border>
<color>0</color>
<x>161</x>
<y>570</y>
<height>16</height>
<width>116</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>competitor_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>9</id>
<alignment>0</alignment>
<tabsequence>70</tabsequence>
<border>2</border>
<color>0</color>
<x>292</x>
<y>570</y>
<height>16</height>
<width>104</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>competitor_rate</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Competitor Item:</text>
<border>2</border>
<color>0</color>
<x>453</x>
<y>570</y>
<height>16</height>
<width>116</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>competitor_item_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>80</tabsequence>
<border>2</border>
<color>0</color>
<x>574</x>
<y>570</y>
<height>16</height>
<width>98</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>competitor_item</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>
......
$PBExportHeader$rfq_wiz_det22.srd
release 9;
datawindow(units=1 timer_interval=0 color=1073741824 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 )
header(height=7 color="536870912" )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=289 color="536870912" )
detail(height=755 color="536870912" )
table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=tran_id dbname="sales_quot_req_det.tran_id" )
column=(type=number update=yes updatewhereclause=yes key=yes name=line_no dbname="sales_quot_req_det.line_no" )
column=(type=char(10) update=yes updatewhereclause=yes name=item_code dbname="sales_quot_req_det.item_code" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"sales_quot_req_det~" ) COLUMN(NAME=~"sales_quot_req_det.tran_id~") COLUMN(NAME=~"sales_quot_req_det.line_no~") COLUMN(NAME=~"sales_quot_req_det.item_code~")WHERE( EXP1 =~"sales_quot_req_det.tran_id~" OP =~"=~" EXP2 =~":tran_id~" ) ) ARG(NAME = ~"tran_id~" TYPE = number) " update="sales_quot_req_det" updatewhere=0 updatekeyinplace=no arguments=(("tran_id", number)) )
text(band=detail alignment="1" text="Transaction Id:" border="2" color="0" x="229" y="78" 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" )
column(band=detail id=1 alignment="0" tabsequence=32766 border="2" color="0" x="318" y="78" height="19" width="66" format="[general]" html.valueishtml="0" name=tran_id visible="1" edit.limit=10 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="1" background.color="536870912" )
column=(type=number update=yes updatewhereclause=yes name=qty_quot dbname="sales_quot_req_det.qty_quot" )
column=(type=char(10) update=yes updatewhereclause=yes name=unit dbname="sales_quot_req_det.unit" )
column=(type=char(10) update=yes updatewhereclause=yes name=pack_code dbname="sales_quot_req_det.pack_code" )
column=(type=number update=yes updatewhereclause=yes name=rate_quot dbname="sales_quot_req_det.rate_quot" )
column=(type=char(1) update=yes updatewhereclause=yes name=near_expiry dbname="sales_quot_req_det.near_expiry" )
column=(type=number update=yes updatewhereclause=yes name=competitor_rate dbname="sales_quot_req_det.competitor_rate" )
column=(type=char(10) update=yes updatewhereclause=yes name=competitor_item dbname="sales_quot_req_det.competitor_item" )
column=(type=char(250) update=yes updatewhereclause=yes name=competitor_name dbname="sales_quot_req_det.competitor_name" )
column=(type=number update=yes updatewhereclause=yes name=rate_apprv dbname="sales_quot_req_det.rate_apprv" )
column=(type=char(2500) update=yes updatewhereclause=yes name=remarks dbname="sales_quot_req_det.remarks" )
column=(type=char(2500) update=yes updatewhereclause=yes name=spec_instr dbname="sales_quot_req_det.spec_instr" )
column=(type=char(1) update=yes updatewhereclause=yes name=ptr_flag dbname="sales_quot_req_det.ptr_flag" )
column=(type=decimal(3) update=yes updatewhereclause=yes name=pts dbname="sales_quot_req_det.pts" )
column=(type=decimal(3) update=yes updatewhereclause=yes name=ptd dbname="sales_quot_req_det.ptd" )
column=(type=decimal(3) update=yes updatewhereclause=yes name=ptr dbname="sales_quot_req_det.ptr" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"sales_quot_req_det~" ) COLUMN(NAME=~"sales_quot_req_det.tran_id~") COLUMN(NAME=~"sales_quot_req_det.line_no~") COLUMN(NAME=~"sales_quot_req_det.item_code~") COLUMN(NAME=~"sales_quot_req_det.qty_quot~") COLUMN(NAME=~"sales_quot_req_det.unit~") COLUMN(NAME=~"sales_quot_req_det.pack_code~") COLUMN(NAME=~"sales_quot_req_det.rate_quot~") COLUMN(NAME=~"sales_quot_req_det.near_expiry~") COLUMN(NAME=~"sales_quot_req_det.competitor_rate~") COLUMN(NAME=~"sales_quot_req_det.competitor_item~") COLUMN(NAME=~"sales_quot_req_det.competitor_name~") COLUMN(NAME=~"sales_quot_req_det.rate_apprv~") COLUMN(NAME=~"sales_quot_req_det.remarks~") COLUMN(NAME=~"sales_quot_req_det.spec_instr~") COLUMN(NAME=~"sales_quot_req_det.ptr_flag~") COLUMN(NAME=~"sales_quot_req_det.pts~") COLUMN(NAME=~"sales_quot_req_det.ptd~") COLUMN(NAME=~"sales_quot_req_det.ptr~")WHERE( EXP1 =~"sales_quot_req_det.tran_id~" OP =~"=~" EXP2 =~":tran_id~" ) ) ARG(NAME = ~"tran_id~" TYPE = number) " update="sales_quot_req_det" updatewhere=0 updatekeyinplace=no arguments=(("tran_id", number)) )
groupbox(band=detail text="Competitor"border="2" color="0" x="131" y="541" height="100" width="564" name=gb_5 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="1073741824" )
groupbox(band=detail text="Price List"border="2" color="0" x="131" y="425" height="100" width="557" name=gb_4 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="1073741824" )
groupbox(band=detail text="Quantity"border="2" color="0" x="153" y="306" height="93" width="532" name=gb_3 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="1073741824" )
groupbox(band=detail text="Item"border="2" color="0" x="153" y="192" height="100" width="529" name=gb_2 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="1073741824" )
groupbox(band=detail text="General"border="2" color="0" x="153" y="81" height="100" width="528" 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="1073741824" )
column(band=detail id=8 alignment="0" tabsequence=60 border="2" color="0" x="312" y="252" height="16" width="90" format="[general]" html.valueishtml="0" name=near_expiry visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 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=15 alignment="0" tabsequence=120 border="2" color="0" x="605" y="328" height="16" width="56" format="[Yes/No]" html.valueishtml="0" name=ptr_flag visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 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="Line No:" border="2" color="0" x="251" y="112" height="16" width="63" 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" )
column(band=detail id=2 alignment="1" tabsequence=32766 border="2" color="0" x="318" y="112" height="19" width="72" 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="1" background.color="536870912" )
text(band=detail alignment="1" text="Item Code:" border="2" color="0" x="251" y="146" height="16" width="63" 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" )
column(band=detail id=3 alignment="0" tabsequence=10 border="2" color="0" x="318" y="146" height="19" width="66" format="[general]" html.valueishtml="0" name=item_code visible="1" edit.limit=10 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="1" background.color="536870912" )
text(band=detail alignment="1" text="Remarks:" border="2" color="0" x="442" y="112" height="16" width="85" 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="1" background.color="536870912" )
column(band=detail id=13 alignment="0" tabsequence=100 border="2" color="0" x="535" y="112" height="16" width="66" format="[general]" html.valueishtml="0" name=remarks visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 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="Special Instruction:" border="2" color="0" x="201" y="146" height="16" width="111" html.valueishtml="0" name=spec_instr_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=14 alignment="0" tabsequence=110 border="2" color="0" x="317" y="146" height="16" width="66" format="[general]" html.valueishtml="0" name=spec_instr visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 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="Transaction Id:" border="2" color="0" x="450" y="146" 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" )
column(band=detail id=1 alignment="0" tabsequence=32766 border="2" color="0" x="539" y="146" height="19" width="66" format="[general]" html.valueishtml="0" name=tran_id visible="1" edit.limit=10 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="1" background.color="536870912" )
text(band=detail alignment="1" text="Item Code:" border="2" color="0" x="246" y="222" height="16" width="63" 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" )
column(band=detail id=3 alignment="0" tabsequence=10 border="2" color="0" x="313" y="222" height="19" width="66" format="[general]" html.valueishtml="0" name=item_code visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.required=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="1" background.color="536870912" )
text(band=detail alignment="1" text="Near Expiry:" border="2" color="0" x="236" y="253" height="16" width="72" html.valueishtml="0" name=near_expiry_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="Quoted Quantity:" border="2" color="0" x="211" y="328" height="16" width="99" html.valueishtml="0" name=qty_quot_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="0" tabsequence=20 border="2" color="0" x="314" y="328" height="16" width="63" format="[general]" html.valueishtml="0" name=qty_quot visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.required=yes edit.imemode=0 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="Special Rate:" border="2" color="0" x="431" y="328" height="16" width="99" html.valueishtml="0" name=rate_quot_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="0" tabsequence=50 border="2" color="0" x="535" y="328" height="16" width="64" format="[general]" html.valueishtml="0" name=rate_quot visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.required=yes edit.imemode=0 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="Pack Code:" border="2" color="0" x="208" y="352" height="16" width="99" html.valueishtml="0" name=pack_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=6 alignment="0" tabsequence=40 border="2" color="0" x="312" y="352" height="16" width="60" format="[general]" html.valueishtml="0" name=pack_code visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 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="2" color="0" x="312" y="486" height="16" width="65" format="[general]" html.valueishtml="0" name=rate_apprv visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 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=18 alignment="0" tabsequence=32766 border="2" color="0" x="578" y="486" height="16" width="28" format="[general]" html.valueishtml="0" name=ptr visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 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="Management Approval Rate:" border="2" color="0" x="141" y="487" height="16" width="163" html.valueishtml="0" name=rate_apprv_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 To Retailer (PTR):" border="2" color="0" x="418" y="487" height="16" width="152" 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="1" background.color="536870912" )
column(band=detail id=11 alignment="0" tabsequence=90 border="2" color="0" x="292" y="599" height="16" width="128" format="[general]" html.valueishtml="0" name=competitor_name visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 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="Competitor Name:" border="2" color="0" x="165" y="599" height="16" width="116" html.valueishtml="0" name=competitor_name_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=5 alignment="0" tabsequence=30 border="2" color="0" x="537" y="353" height="16" width="60" format="[general]" html.valueishtml="0" name=unit visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 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="Unit:" border="2" color="0" x="430" y="353" height="16" width="99" html.valueishtml="0" name=unit_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 To Stockist (PTS):" border="2" color="0" x="164" y="450" height="16" width="141" html.valueishtml="0" name=pts_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=16 alignment="0" tabsequence=32766 border="2" color="0" x="312" y="450" height="16" width="37" format="[general]" html.valueishtml="0" name=pts visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 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 To Distributor (PTD):" border="2" color="0" x="416" y="450" height="16" width="152" html.valueishtml="0" name=ptd_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=17 alignment="0" tabsequence=32766 border="2" color="0" x="577" y="450" height="16" width="29" format="[general]" html.valueishtml="0" name=ptd visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 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="Competitor Rate:" border="2" color="0" x="161" y="570" height="16" width="116" html.valueishtml="0" name=competitor_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=9 alignment="0" tabsequence=70 border="2" color="0" x="292" y="570" height="16" width="104" format="[general]" html.valueishtml="0" name=competitor_rate visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 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="Competitor Item:" border="2" color="0" x="453" y="570" height="16" width="116" html.valueishtml="0" name=competitor_item_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=80 border="2" color="0" x="574" y="570" height="16" width="98" format="[general]" html.valueishtml="0" name=competitor_item visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
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 )
......
$PBExportHeader$rfq_wiz1.srd
$PBExportHeader$rfq_wiz2.srd
release 9;
datawindow(units=1 timer_interval=0 color=67108864 processing=1 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 grid.lines=0 )
header(height=20 color="536870912" )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=76 color="536870912" )
datawindow(units=1 timer_interval=0 color=1073741824 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=6 color="536870912" )
footer(height=5 color="536870912" )
detail(height=1151 color="536870912" )
table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=tran_id dbname="sales_quot_req.tran_id" )
column=(type=datetime update=yes updatewhereclause=yes name=tran_date dbname="sales_quot_req.tran_date" )
column=(type=char(10) update=yes updatewhereclause=yes name=cust_code dbname="sales_quot_req.cust_code" )
column=(type=char(5) update=yes updatewhereclause=yes name=item_ser dbname="sales_quot_req.item_ser" )
column=(type=datetime update=yes updatewhereclause=yes name=req_date dbname="sales_quot_req.req_date" )
column=(type=char(1) update=yes updatewhereclause=yes name=quot_type dbname="sales_quot_req.quot_type" values=" /Institution I/Customer C/Group G/" )
column=(type=char(50) updatewhereclause=yes name=cust_name dbname="customer.cust_name" )
column=(type=char(1) update=yes updatewhereclause=yes name=quot_type dbname="sales_quot_req.quot_type" initial=" " values=" /Institution I/Customer C/Group G/" )
column=(type=char(10) update=yes updatewhereclause=yes name=contact_pers dbname="sales_quot_req.contact_pers" )
column=(type=datetime update=yes updatewhereclause=yes name=valid_upto dbname="sales_quot_req.valid_upto" )
column=(type=char(10) update=yes updatewhereclause=yes name=sales_pers dbname="sales_quot_req.sales_pers" )
column=(type=datetime update=yes updatewhereclause=yes name=status_date dbname="sales_quot_req.status_date" )
column=(type=char(1) update=yes updatewhereclause=yes name=wf_status dbname="sales_quot_req.wf_status" )
column=(type=char(2500) update=yes updatewhereclause=yes name=remarks dbname="sales_quot_req.remarks" )
column=(type=char(10) update=yes updatewhereclause=yes name=tran_id__ref dbname="sales_quot_req.tran_id__ref" )
column=(type=datetime update=yes updatewhereclause=yes name=add_date dbname="sales_quot_req.add_date" )
column=(type=char(10) update=yes updatewhereclause=yes name=add_user dbname="sales_quot_req.add_user" )
column=(type=char(215) update=yes updatewhereclause=yes name=add_term dbname="sales_quot_req.add_term" )
column=(type=datetime update=yes updatewhereclause=yes name=chg_date dbname="sales_quot_req.chg_date" )
column=(type=char(10) update=yes updatewhereclause=yes name=chg_user dbname="sales_quot_req.chg_user" )
column=(type=char(215) update=yes updatewhereclause=yes name=chg_term dbname="sales_quot_req.chg_term" )
column=(type=char(50) update=yes updatewhereclause=yes name=sales_quot_req_cust_name dbname="sales_quot_req.cust_name" )
column=(type=char(40) update=yes updatewhereclause=yes name=addr1 dbname="addr1" )
column=(type=char(50) update=yes updatewhereclause=yes name=addr2 dbname="addr2" )
column=(type=char(40) update=yes updatewhereclause=yes name=addr3 dbname="addr3" )
column=(type=char(1) update=yes updatewhereclause=yes name=mgmnt_apprv dbname="sales_quot_req.mgmnt_apprv" )
column=(type=char(10) update=yes updatewhereclause=yes name=site_code dbname="sales_quot_req.site_code" )
column=(type=char(1) update=yes updatewhereclause=yes name=confirmed dbname="sales_quot_req.confirmed" values="No N/Yes Y/" )
column=(type=datetime update=yes updatewhereclause=yes name=confirm_date dbname="sales_quot_req.confirm_date" )
column=(type=char(10) update=yes updatewhereclause=yes name=emp_code_conf dbname="sales_quot_req.emp_code_conf" )
column=(type=char(1) update=yes updatewhereclause=yes name=status dbname="sales_quot_req.status" values="Active A/Inactive I/Closed C/" )
column=(type=char(40) updatewhereclause=yes name=descr dbname="itemser.descr" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"sales_quot_req~" ) TABLE(NAME=~"customer~" ) TABLE(NAME=~"itemser~" ) COLUMN(NAME=~"sales_quot_req.tran_id~") COLUMN(NAME=~"sales_quot_req.tran_date~") COLUMN(NAME=~"sales_quot_req.cust_code~") COLUMN(NAME=~"sales_quot_req.item_ser~") COLUMN(NAME=~"sales_quot_req.req_date~") COLUMN(NAME=~"sales_quot_req.quot_type~") COLUMN(NAME=~"customer.cust_name~") COLUMN(NAME=~"itemser.descr~") JOIN (LEFT=~"sales_quot_req.cust_code~" OP =~"=~"RIGHT=~"customer.cust_code~" OUTER1 =~"sales_quot_req.cust_code~" ) JOIN (LEFT=~"sales_quot_req.item_ser~" OP =~"=~"RIGHT=~"itemser.item_ser~" OUTER1 =~"sales_quot_req.item_ser~" )WHERE( EXP1 =~"sales_quot_req.tran_id~" OP =~"=~" EXP2 =~":tran_id~" ) ) ARG(NAME = ~"tran_id~" TYPE = number) " update="sales_quot_req" updatewhere=1 updatekeyinplace=no arguments=(("tran_id", number)) )
text(band=header alignment="2" text="Tran Id" border="2" color="0" x="2" y="2" height="16" width="66" 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=header alignment="2" text="Tran Date" border="2" color="0" x="70" y="2" height="16" width="132" 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="1" background.color="536870912" )
text(band=header alignment="2" text="Cust Code" border="2" color="0" x="204" y="2" height="16" width="66" html.valueishtml="0" name=cust_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=header alignment="2" text="Item Ser" border="2" color="0" x="272" y="2" height="16" width="49" html.valueishtml="0" name=item_ser_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=header alignment="2" text="Req Date" border="2" color="0" x="323" y="2" height="16" width="132" html.valueishtml="0" name=req_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" )
text(band=header alignment="0" text="Quot Type" border="0" color="33554432" x="457" y="1" height="19" width="70" html.valueishtml="0" name=quot_type_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=header alignment="0" text="Customer Name" border="0" color="33554432" x="529" y="1" height="19" width="298" html.valueishtml="0" name=cust_name_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=header alignment="0" text="Item Description" border="0" color="33554432" x="829" y="1" height="19" width="238" html.valueishtml="0" name=descr_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
column(band=detail id=1 alignment="0" tabsequence=10 border="2" color="33554432" x="2" y="2" height="19" width="66" format="[general]" html.valueishtml="0" name=tran_id visible="1" edit.limit=10 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="1" background.color="536870912" )
column(band=detail id=2 alignment="0" tabsequence=20 border="2" color="33554432" x="70" y="2" height="19" width="132" format="[shortdate] [time]" html.valueishtml="0" name=tran_date 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="1" background.color="536870912" )
column(band=detail id=3 alignment="0" tabsequence=30 border="2" color="33554432" x="204" y="2" height="19" width="66" format="[general]" html.valueishtml="0" name=cust_code visible="1" edit.limit=10 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="1" background.color="536870912" )
column(band=detail id=4 alignment="0" tabsequence=40 border="2" color="33554432" x="272" y="2" height="19" width="49" format="[general]" html.valueishtml="0" name=item_ser visible="1" edit.limit=5 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="1" background.color="536870912" )
column(band=detail id=5 alignment="0" tabsequence=50 border="2" color="33554432" x="323" y="2" height="19" width="132" format="[shortdate] [time]" html.valueishtml="0" name=req_date 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="1" background.color="536870912" )
column(band=detail id=6 alignment="0" tabsequence=60 border="2" color="33554432" x="457" y="1" height="22" width="70" format="[general]" html.valueishtml="0" name=quot_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="1" background.color="536870912" )
column(band=detail id=7 alignment="0" tabsequence=70 border="0" color="33554432" x="529" y="1" height="16" width="298" format="[general]" html.valueishtml="0" name=cust_name visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 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="0" tabsequence=80 border="0" color="33554432" x="829" y="1" height="16" width="238" format="[general]" html.valueishtml="0" name=descr visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 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=(type=char(50) updatewhereclause=yes name=cust_name dbname="customer.cust_name" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"sales_quot_req~" ) TABLE(NAME=~"customer~" ) TABLE(NAME=~"itemser~" ) COLUMN(NAME=~"sales_quot_req.tran_id~") COLUMN(NAME=~"sales_quot_req.tran_date~") COLUMN(NAME=~"sales_quot_req.cust_code~") COLUMN(NAME=~"sales_quot_req.item_ser~") COLUMN(NAME=~"sales_quot_req.req_date~") COLUMN(NAME=~"sales_quot_req.quot_type~") COLUMN(NAME=~"sales_quot_req.contact_pers~") COLUMN(NAME=~"sales_quot_req.valid_upto~") COLUMN(NAME=~"sales_quot_req.sales_pers~") COLUMN(NAME=~"sales_quot_req.status_date~") COLUMN(NAME=~"sales_quot_req.wf_status~") COLUMN(NAME=~"sales_quot_req.remarks~") COLUMN(NAME=~"sales_quot_req.tran_id__ref~") COLUMN(NAME=~"sales_quot_req.add_date~") COLUMN(NAME=~"sales_quot_req.add_user~") COLUMN(NAME=~"sales_quot_req.add_term~") COLUMN(NAME=~"sales_quot_req.chg_date~") COLUMN(NAME=~"sales_quot_req.chg_user~") COLUMN(NAME=~"sales_quot_req.chg_term~") COLUMN(NAME=~"sales_quot_req.cust_name~") COLUMN(NAME=~"sales_quot_req.addr1~") COLUMN(NAME=~"sales_quot_req.addr2~") COLUMN(NAME=~"sales_quot_req.addr3~") COLUMN(NAME=~"sales_quot_req.mgmnt_apprv~") COLUMN(NAME=~"sales_quot_req.site_code~") COLUMN(NAME=~"sales_quot_req.confirmed~") COLUMN(NAME=~"sales_quot_req.confirm_date~") COLUMN(NAME=~"sales_quot_req.emp_code_conf~") COLUMN(NAME=~"sales_quot_req.status~") COLUMN(NAME=~"itemser.descr~") COLUMN(NAME=~"customer.cust_name~") JOIN (LEFT=~"sales_quot_req.cust_code~" OP =~"=~"RIGHT=~"customer.cust_code~" OUTER1 =~"sales_quot_req.cust_code~" ) JOIN (LEFT=~"sales_quot_req.item_ser~" OP =~"=~"RIGHT=~"itemser.item_ser~" OUTER1 =~"sales_quot_req.item_ser~" )) " update="sales_quot_req" updatewhere=0 updatekeyinplace=no )
groupbox(band=detail text="Customer"border="2" color="0" x="172" y="202" height="159" width="718" name=gb_2 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="1073741824" )
groupbox(band=detail text="Basic"border="2" color="0" x="174" y="22" height="155" width="708" 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="1073741824" )
groupbox(band=detail text="Others"border="2" color="0" x="178" y="683" height="156" width="722" name=gb_5 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="1073741824" )
groupbox(band=detail text="Status"border="2" color="0" x="171" y="460" height="101" width="724" name=gb_6 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="1073741824" )
groupbox(band=detail text="Sales"border="2" color="0" x="172" y="373" height="72" width="717" name=gb_3 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="1073741824" )
groupbox(band=detail text="Workflow"border="2" color="0" x="175" y="572" height="86" width="721" name=gb_4 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="1073741824" )
text(band=detail alignment="1" text="Transaction Id:" border="2" color="0" x="190" y="50" 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" )
column(band=detail id=1 alignment="0" tabsequence=32766 border="2" color="0" x="279" y="50" height="19" width="66" format="[general]" html.valueishtml="0" name=tran_id visible="1" edit.limit=10 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="1" background.color="536870912" )
text(band=detail alignment="1" text="Transaction Date:" border="2" color="0" x="373" y="50" height="16" width="102" 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="1" background.color="536870912" )
column(band=detail id=2 alignment="0" tabsequence=32766 border="2" color="0" x="479" y="50" height="19" width="132" format="[shortdate] [time]" html.valueishtml="0" name=tran_date 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="1" background.color="536870912" )
text(band=detail alignment="1" text="Reference Transaction ID:" border="2" color="0" x="637" y="50" height="16" width="149" html.valueishtml="0" name=tran_id__ref_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=13 alignment="0" tabsequence=110 border="2" color="0" x="796" y="50" height="16" width="82" format="[general]" html.valueishtml="0" name=tran_id__ref visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 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="Request Date:" border="2" color="0" x="190" y="88" height="16" width="83" html.valueishtml="0" name=req_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=5 alignment="0" tabsequence=30 border="2" color="0" x="284" y="88" height="19" width="77" format="[shortdate] [time]" html.valueishtml="0" name=req_date 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="1" background.color="536870912" )
text(band=detail alignment="1" text="Valid Up To:" border="2" color="0" x="372" y="88" height="16" width="102" 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="1" background.color="536870912" )
column(band=detail id=8 alignment="0" tabsequence=60 border="2" color="0" x="481" y="88" height="16" width="66" format="[shortdate] [time]" html.valueishtml="0" name=valid_upto visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 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="Item Series:" border="2" color="0" x="636" y="88" height="16" width="70" html.valueishtml="0" name=item_ser_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="0" tabsequence=20 border="2" color="0" x="711" y="88" height="19" width="75" format="[general]" html.valueishtml="0" name=item_ser visible="1" edit.limit=5 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.required=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="1" background.color="536870912" )
text(band=detail alignment="1" text="Remarks:" border="2" color="0" x="193" y="147" height="16" width="85" 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="1" background.color="536870912" )
column(band=detail id=12 alignment="0" tabsequence=100 border="2" color="0" x="287" y="147" height="16" width="64" format="[general]" html.valueishtml="0" name=remarks visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 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="Sales Person:" border="2" color="0" x="192" y="404" height="16" width="98" html.valueishtml="0" name=sales_pers_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=70 border="2" color="0" x="294" y="404" height="16" width="98" format="[general]" html.valueishtml="0" name=sales_pers visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 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="Confirmed:" border="2" color="0" x="197" y="491" height="16" width="79" html.valueishtml="0" name=confirmed_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=26 alignment="0" tabsequence=130 border="2" color="0" x="282" y="491" height="16" width="87" format="[general]" html.valueishtml="0" name=confirmed 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="1" background.color="536870912" )
text(band=detail alignment="1" text="Status Data:" border="2" color="0" x="406" y="490" height="16" width="79" html.valueishtml="0" name=status_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=10 alignment="0" tabsequence=80 border="2" color="0" x="493" y="490" height="16" width="66" format="[shortdate] [time]" html.valueishtml="0" name=status_date visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 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="Status:" border="2" color="0" x="644" y="490" height="16" width="79" html.valueishtml="0" name=status_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=29 alignment="0" tabsequence=150 border="2" color="0" x="730" y="490" height="16" width="140" format="[general]" html.valueishtml="0" name=status 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="1" background.color="536870912" )
text(band=detail alignment="1" text="Confirmed By:" border="2" color="0" x="190" y="529" height="16" width="82" html.valueishtml="0" name=emp_code_conf_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=28 alignment="0" tabsequence=32766 border="2" color="0" x="281" y="529" height="16" width="97" format="[general]" html.valueishtml="0" name=emp_code_conf visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 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="Confirmation Date:" border="2" color="0" x="391" y="529" height="16" width="95" html.valueishtml="0" name=confirm_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=27 alignment="0" tabsequence=140 border="2" color="0" x="495" y="529" height="16" width="66" format="[shortdate] [time]" html.valueishtml="0" name=confirm_date visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 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="Workflow Status:" border="2" color="0" x="206" y="603" height="16" width="99" html.valueishtml="0" name=wf_status_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=90 border="2" color="0" x="313" y="603" height="16" width="133" format="[general]" html.valueishtml="0" name=wf_status visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 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="Add User:" border="2" color="0" x="271" y="727" height="16" width="99" html.valueishtml="0" name=add_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=15 alignment="0" tabsequence=32766 border="2" color="0" x="384" y="727" height="16" width="60" format="[general]" html.valueishtml="0" name=add_user visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 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="Change Date:" border="2" color="0" x="525" y="727" height="16" width="99" 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=17 alignment="0" tabsequence=32766 border="2" color="0" x="628" y="727" height="16" width="66" format="[shortdate] [time]" html.valueishtml="0" name=chg_date visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 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="Add Term:" border="2" color="0" x="272" y="756" height="16" width="99" html.valueishtml="0" name=add_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=16 alignment="0" tabsequence=32766 border="2" color="0" x="385" y="756" height="16" width="80" format="[general]" html.valueishtml="0" name=add_term visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 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="Change User:" border="2" color="0" x="528" y="756" height="16" width="99" 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=18 alignment="0" tabsequence=32766 border="2" color="0" x="631" y="756" height="16" width="60" format="[general]" html.valueishtml="0" name=chg_user visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 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="Add Date:" border="2" color="0" x="275" y="797" height="16" width="99" html.valueishtml="0" name=add_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=14 alignment="0" tabsequence=32766 border="2" color="0" x="386" y="797" height="16" width="66" format="[shortdate] [time]" html.valueishtml="0" name=add_date visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 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="Change Term:" border="2" color="0" x="525" y="797" height="16" width="99" 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=19 alignment="0" tabsequence=32766 border="2" color="0" x="630" y="797" height="16" width="68" format="[general]" html.valueishtml="0" name=chg_term visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 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=30 alignment="0" tabsequence=32766 border="2" color="0" x="710" y="118" height="16" width="92" format="[general]" html.valueishtml="0" name=descr visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 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="Quotation Type:" border="2" color="0" x="190" y="227" height="16" width="92" html.valueishtml="0" name=quot_type_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="0" tabsequence=40 border="2" color="0" x="288" y="227" height="16" width="75" format="[general]" html.valueishtml="0" name=quot_type visible="1" ddlb.limit=0 ddlb.allowedit=no ddlb.case=any ddlb.required=yes ddlb.imemode=0 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="Site Code:" border="2" color="0" x="654" y="227" height="16" width="94" html.valueishtml="0" name=site_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=25 alignment="0" tabsequence=120 border="2" color="0" x="757" y="227" height="16" width="60" format="[general]" html.valueishtml="0" name=site_code visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 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="Address 1:" border="2" color="0" x="416" y="283" height="16" width="98" html.valueishtml="0" name=addr1_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=21 alignment="0" tabsequence=32766 border="2" color="0" x="520" y="283" height="16" width="67" format="[general]" html.valueishtml="0" name=addr1 visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 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="Address 2:" border="2" color="0" x="658" y="283" height="16" width="98" html.valueishtml="0" name=addr2_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=22 alignment="0" tabsequence=32766 border="2" color="0" x="761" y="283" height="16" width="82" format="[general]" html.valueishtml="0" name=addr2 visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 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="Address 3:" border="2" color="0" x="181" y="325" height="16" width="98" html.valueishtml="0" name=addr3_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=23 alignment="0" tabsequence=32766 border="2" color="0" x="293" y="325" height="16" width="60" format="[general]" html.valueishtml="0" name=addr3 visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 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="Contact Person:" border="2" color="0" x="656" y="325" height="16" width="94" html.valueishtml="0" name=contact_pers_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="0" tabsequence=50 border="2" color="0" x="756" y="325" height="16" width="93" format="[general]" html.valueishtml="0" name=contact_pers visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 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="Customer Code:" border="2" color="0" x="192" y="262" height="16" width="94" html.valueishtml="0" name=cust_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=3 alignment="0" tabsequence=10 border="2" color="0" x="290" y="262" height="19" width="66" format="[general]" html.valueishtml="0" name=cust_code visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.required=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="1" background.color="536870912" )
column(band=detail id=31 alignment="0" tabsequence=32766 border="2" color="0" x="291" y="288" height="16" width="78" format="[general]" html.valueishtml="0" name=cust_name visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
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 )
......
alter table sales_quotdet add (PTD NUMBER(14,3));
-----------------CREATE TABLE QUERIES
CREATE TABLE SALES_QUOT_REQ
(
TRAN_ID CHAR(10 BYTE) NOT NULL
, TRAN_DATE DATE NOT NULL
, QUOT_TYPE CHAR(1 BYTE) NOT NULL
, CUST_CODE CHAR(10 BYTE) NOT NULL
, CONTACT_PERS CHAR(10 BYTE)
, ITEM_SER CHAR(100 BYTE)
, REQ_DATE DATE
, VALID_UPTO DATE
, SALES_PERS CHAR(10 BYTE)
, CONFIRMED CHAR(1 BYTE)
, CONFIRM_DATE DATE
, EMP_CODE_CONF CHAR(10 BYTE)
, STATUS CHAR(1 BYTE)
, STATUS_DATE DATE
, WF_STATUS CHAR(1 BYTE)
, REMARKS VARCHAR2(2500 BYTE)
, TRAN_ID__REF CHAR(10 BYTE)
, ADD_DATE DATE
, ADD_USER CHAR(10 BYTE)
, ADD_TERM VARCHAR2(215 BYTE)
, CHG_DATE DATE
, CHG_USER CHAR(10 BYTE)
, CHG_TERM VARCHAR2(215 BYTE)
, CUST_NAME VARCHAR2(50 BYTE)
, ADDR1 VARCHAR2(40 BYTE)
, ADDR2 VARCHAR2(50 BYTE)
, ADDR3 VARCHAR2(40 BYTE)
, SITE_CODE CHAR(10 BYTE)
, MGMNT_APPRV CHAR(1 BYTE)
, CONSTRAINT SALES_QUOT_REQ_PK PRIMARY KEY
(
TRAN_ID
)
USING INDEX
(
CREATE UNIQUE INDEX SALES_QUOT_REQ_PK ON SALES_QUOT_REQ (TRAN_ID ASC)
LOGGING
TABLESPACE USERS
PCTFREE 10
INITRANS 2
STORAGE
(
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS UNLIMITED
BUFFER_POOL DEFAULT
)
NOPARALLEL
)
ENABLE
)
LOGGING
TABLESPACE USERS
PCTFREE 10
INITRANS 1
STORAGE
(
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS UNLIMITED
BUFFER_POOL DEFAULT
)
NOCOMPRESS
NO INMEMORY
NOPARALLEL;
Insert into MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION) values ('COMPDETM ','Competitor details are mandatory','If Special Rate added, then competitor details is mandatory','E','Y',null,null,null,to_date('25-DEC-13','DD-MON-RR'),'BASE ','BASE',null,null);
alter table SALES_QUOT_REQ_DET add (PTR_FLAG CHAR(1));
CREATE TABLE SALES_QUOT_REQ_DET
(
TRAN_ID CHAR(10 BYTE) NOT NULL
, LINE_NO NUMBER NOT NULL
, ITEM_CODE CHAR(10 BYTE) NOT NULL
, QTY_QUOT NUMBER
, UNIT CHAR(10 BYTE)
, PACK_CODE CHAR(10 BYTE)
, RATE_QUOT NUMBER
, NEAR_EXPIRY CHAR(1 BYTE)
, COMPETITOR_RATE NUMBER
, COMPETITOR_ITEM CHAR(10 BYTE)
, COMPETITOR_NAME VARCHAR2(250 BYTE)
, RATE_APPRV NUMBER
, REMARKS VARCHAR2(2500 BYTE)
, SPEC_INSTR VARCHAR2(2500 BYTE)
, PTR_FLAG CHAR(1 BYTE)
, PTS NUMBER(14, 3)
, PTD NUMBER(14, 3)
, PTR NUMBER(14, 3)
)
LOGGING
TABLESPACE USERS
PCTFREE 10
INITRANS 1
STORAGE
(
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS UNLIMITED
BUFFER_POOL DEFAULT
)
NOCOMPRESS
NO INMEMORY
NOPARALLEL;
Insert into POPHELP (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION,POPUP_XSL_NAME,AUTO_FILL_LEN,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,AUTO_MIN_LENGTH,OBJ_NAME__DS,DATA_MODEL_NAME,VALIDATE_DATA,ITEM_CHANGE,MSG_NO,FILTER_EXPR,LAYOUT) values ('ITEM_SER','W_RFQ','SELECT ITEM_SER, DESCR FROM ITEMSER',null,'Item Series',0,0,to_date('03-FEB-26','DD-MON-RR'),'System ','System','1',null,null,1,'L',null,'0',null,null,1,'2',null,null,null,null,null,null,null,null,null,null,null,null,null);
Insert into POPHELP (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION,POPUP_XSL_NAME,AUTO_FILL_LEN,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,AUTO_MIN_LENGTH,OBJ_NAME__DS,DATA_MODEL_NAME,VALIDATE_DATA,ITEM_CHANGE,MSG_NO,FILTER_EXPR,LAYOUT) values ('SITE_CODE','W_RFQ','SELECT SITE_CODE , DESCR FROM SITE',null,null,0,0,to_date('03-FEB-26','DD-MON-RR'),'System ','System',null,null,null,2,null,null,null,null,null,0,'2',null,'2',null,null,null,'2 ',null,null,null,null,null,null,null);
Insert into POPHELP (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION,POPUP_XSL_NAME,AUTO_FILL_LEN,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,AUTO_MIN_LENGTH,OBJ_NAME__DS,DATA_MODEL_NAME,VALIDATE_DATA,ITEM_CHANGE,MSG_NO,FILTER_EXPR,LAYOUT) values ('EMP_CODE_CONF','W_RFQ','SELECT NAME, EMP_CODE_CONF FROM EMPLOYEE',null,null,0,0,to_date('03-FEB-26','DD-MON-RR'),'System ','System',null,null,null,2,null,null,null,null,null,0,'2',null,'2',null,null,null,'2 ',null,null,null,null,null,null,null);
Insert into POPHELP (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION,POPUP_XSL_NAME,AUTO_FILL_LEN,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,AUTO_MIN_LENGTH,OBJ_NAME__DS,DATA_MODEL_NAME,VALIDATE_DATA,ITEM_CHANGE,MSG_NO,FILTER_EXPR,LAYOUT) values ('UNIT','W_RFQ','SELECT DESCR, UNIT FROM UOM',null,null,0,0,to_date('03-FEB-26','DD-MON-RR'),'System ','System',null,null,null,2,null,null,null,null,null,0,'2',null,'2',null,null,null,'2 ',null,null,null,null,null,null,null);
Insert into POPHELP (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION,POPUP_XSL_NAME,AUTO_FILL_LEN,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,AUTO_MIN_LENGTH,OBJ_NAME__DS,DATA_MODEL_NAME,VALIDATE_DATA,ITEM_CHANGE,MSG_NO,FILTER_EXPR,LAYOUT) values ('PACK_CODE','W_RFQ','SELECT PACK_CODE FROM PACK',null,null,0,0,to_date('03-FEB-26','DD-MON-RR'),'System ','System',null,null,null,2,null,null,null,null,null,0,'2',null,'2',null,null,null,'2 ',null,null,null,null,null,null,null);
Insert into POPHELP (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION,POPUP_XSL_NAME,AUTO_FILL_LEN,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,AUTO_MIN_LENGTH,OBJ_NAME__DS,DATA_MODEL_NAME,VALIDATE_DATA,ITEM_CHANGE,MSG_NO,FILTER_EXPR,LAYOUT) values ('ITEM_SER','W_RFQ_WIZ','SELECT ITEM_SER, DESCR FROM ITEMSER',null,'Item Series',0,0,to_date('03-FEB-26','DD-MON-RR'),'System ','System','1',null,null,1,'L',null,'0',null,null,1,'2',null,null,null,null,null,null,null,null,null,null,null,null,null);
Insert into POPHELP (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION,POPUP_XSL_NAME,AUTO_FILL_LEN,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,AUTO_MIN_LENGTH,OBJ_NAME__DS,DATA_MODEL_NAME,VALIDATE_DATA,ITEM_CHANGE,MSG_NO,FILTER_EXPR,LAYOUT) values ('CUST_CODE','W_RFQ_WIZ','SELECT CUST_NAME, CUST_CODE FROM CUSTOMER WHERE CUST_TYPE = ''R''',null,'Hospital List',0,0,to_date('03-FEB-26','DD-MON-RR'),'System ','System',null,null,null,2,null,null,null,null,null,0,'2',null,'2',null,null,null,'2 ',null,null,null,null,null,null,null);
Insert into POPHELP (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION,POPUP_XSL_NAME,AUTO_FILL_LEN,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,AUTO_MIN_LENGTH,OBJ_NAME__DS,DATA_MODEL_NAME,VALIDATE_DATA,ITEM_CHANGE,MSG_NO,FILTER_EXPR,LAYOUT) values ('CUST_CODE','W_RFQ','SELECT CUST_NAME, CUST_CODE FROM CUSTOMER WHERE CUST_TYPE = ''R''',null,'Hospital List',0,0,to_date('03-FEB-26','DD-MON-RR'),'System ','System',null,null,null,2,null,null,null,null,null,0,'2',null,'2',null,null,null,'2 ',null,null,null,null,null,null,null);
Insert into POPHELP (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION,POPUP_XSL_NAME,AUTO_FILL_LEN,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,AUTO_MIN_LENGTH,OBJ_NAME__DS,DATA_MODEL_NAME,VALIDATE_DATA,ITEM_CHANGE,MSG_NO,FILTER_EXPR,LAYOUT) values ('SALES_PERS','W_RFQ','SELECT SALES_PERS FROM SALESPERSON',null,null,0,0,to_date('03-FEB-26','DD-MON-RR'),'System ','System',null,null,null,2,null,null,null,null,null,0,'2',null,'2',null,null,null,'2 ',null,null,null,null,null,null,null);
Insert into POPHELP (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION,POPUP_XSL_NAME,AUTO_FILL_LEN,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,AUTO_MIN_LENGTH,OBJ_NAME__DS,DATA_MODEL_NAME,VALIDATE_DATA,ITEM_CHANGE,MSG_NO,FILTER_EXPR,LAYOUT) values ('ITEM_CODE','W_RFQ','SELECT ITEM_CODE, DESCR
FROM ITEM
WHERE ITEM_SER IN (
SELECT REGEXP_SUBSTR(''?'', ''[^,]+'', 1, LEVEL)
FROM dual
CONNECT BY REGEXP_SUBSTR(''?'', ''[^,]+'', 1, LEVEL) IS NOT NULL
)
',null,null,0,0,to_date('03-FEB-26','DD-MON-RR'),'System ','System',null,null,':0.item_ser,:0.item_ser',1,null,null,null,null,null,0,'2',null,'3',null,null,null,'2 ',null,null,null,null,null,null,null);
----------SYSTEM_EVENTS-----------
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT,FIELD_NAME) values ('rfq','post_item_change','1','poic_rfq',null,'0',to_date('24-FEB-25','DD-MON-RR'),'base ','BASE','2','JB','ibase.webitm.ejb.dis.ReqForQuotationIC',null,null);
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT,FIELD_NAME) values ('rfq','post_sign','1','post_sign_rfq',null,'0',to_date('11-NOV-25','DD-MON-RR'),'BASE ','BASE','2','JB','ibase.webitm.ejb.dis.ReqForQuotationAprv',null,null);
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT,FIELD_NAME) values ('rfq','pre_validate','1','prv_rfq',null,'0',to_date('24-FEB-25','DD-MON-RR'),'base ','BASE','2','JB','ibase.webitm.ejb.dis.ReqForQuotationIC',null,null);
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT,FIELD_NAME) values ('rfq','wf_submit_auto','1','prcm_default_ejb',null,'0',to_date('23-JAN-26','DD-MON-RR'),'GAGANB ','000000000','2','JB','ibase.webitm.utility.GenericSubmit',null,null);
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT,FIELD_NAME) values ('rfq_wiz','post_item_change','1','poic_rfq_wiz',null,'0',to_date('04-DEC-07','DD-MON-RR'),'Hemant ','user11','2','JB','ibase.webitm.ejb.dis.ReqForQuotationWiz',null,null);
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT,FIELD_NAME) values ('rfq_wiz','default_data_wiz','1','poic_default_ejb',null,'0',to_date('20-FEB-26','DD-MON-RR'),'BASE ','192.168.0.155','2','JB','ibase.webitm.ejb.dis.ReqForQuotationWiz',null,null);
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT,FIELD_NAME,FORM_NO) values ('rfq','post_item_change','1','poic_rfq',null,'0',to_date('24-FEB-25','DD-MON-RR'),'base ','BASE','2','JB','ibase.webitm.ejb.dis.ReqForQuotationIC',null,null,null);
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT,FIELD_NAME,FORM_NO) values ('rfq','post_sign','1','post_sign_rfq',null,'0',to_date('11-NOV-25','DD-MON-RR'),'BASE ','BASE','2','JB','ibase.webitm.ejb.dis.ReqForQuotationAprv',null,null,null);
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT,FIELD_NAME,FORM_NO) values ('rfq','pre_validate','1','prv_rfq',null,'0',to_date('24-FEB-25','DD-MON-RR'),'base ','BASE','2','JB','ibase.webitm.ejb.dis.ReqForQuotationIC',null,null,null);
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT,FIELD_NAME,FORM_NO) values ('rfq','wf_submit_auto','1','prcm_default_ejb',null,'0',to_date('23-JAN-26','DD-MON-RR'),'GAGANB ','000000000','2','JB','ibase.webitm.utility.GenericSubmit',null,null,null);
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT,FIELD_NAME,FORM_NO) values ('rfq_wiz','default_data_wiz','1','poic_rfq_wiz',null,'0',to_date('20-FEB-26','DD-MON-RR'),'BASE ','192.168.0.155','2','JB','ibase.webitm.ejb.dis.ReqForQuotationWiz',null,null,null);
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT,FIELD_NAME,FORM_NO) values ('rfq_wiz','post_item_change','1','poic_default_ejb',null,'0',to_date('04-DEC-07','DD-MON-RR'),'Hemant ','user11','2','JB','ibase.webitm.ejb.dis.ReqForQuotationWiz',null,null,null);
----------SYSTEM_EVENT_SERIVES-----------
Insert into SYSTEM_EVENT_SERVICES (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM,SERVICE_NAMESPACE,RES_ELEM,SOAP_ACTION) values ('poic_default_ejb','Item Changed','http://localhost:9090/axis/services/ValidatorService',null,'itemChanged','String','S',null,null,to_date('28-AUG-19','DD-MON-RR'),'BASE ','BASE',null,null,null);
Insert into SYSTEM_EVENT_SERVICES (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM,SERVICE_NAMESPACE,RES_ELEM,SOAP_ACTION) values ('poic_rfq','post item chg checker','http://localhost:9090/axis/services/ValidatorService',null,'itemChanged','String','S',null,null,to_date('24-FEB-25','DD-MON-RR'),'base ','Base',null,null,null);
Insert into SYSTEM_EVENT_SERVICES (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM,SERVICE_NAMESPACE,RES_ELEM,SOAP_ACTION) values ('post_sign_rfq','method for process','http://localhost:9090/axis/services/ValidatorService','BASE','updateWFStatus',null,null,null,null,to_date('11-NOV-25','DD-MON-RR'),'BASE ','BASE',null,null,null);
Insert into SYSTEM_EVENT_SERVICES (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM,SERVICE_NAMESPACE,RES_ELEM,SOAP_ACTION) values ('prcm_default_ejb','Action To confirm indent requisition','http://localhost:9090/axis/services/ActionHandlerService','Base','confirm','String','S',null,null,to_date('24-JAN-18','DD-MON-RR'),'base ','base',null,null,null);
Insert into SYSTEM_EVENT_SERVICES (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM,SERVICE_NAMESPACE,RES_ELEM,SOAP_ACTION) values ('prv_rfq','val checker','http://localhost:9090/axis/services/ValidatorService',null,'wfValData','String','S',null,null,to_date('29-NOV-22','DD-MON-RR'),'base ','Base',null,null,null);
Insert into SYSTEM_EVENT_SERVICES (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM,SERVICE_NAMESPACE,RES_ELEM,SOAP_ACTION) values ('poic_rfq_wiz','post item chg checker','http://localhost:9090/axis/services/ValidatorService',null,'itemChanged','String','S',null,null,to_date('24-FEB-25','DD-MON-RR'),'base ','Base',null,null,null);
Insert into SYSTEM_EVENT_SERVICES (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM,SERVICE_NAMESPACE,RES_ELEM,SOAP_ACTION,SERVICE_TYPE,SERVICE_HANDLER,DESCR) values ('poic_default_ejb','Item Changed','http://localhost:9090/axis/services/ValidatorService',null,'itemChanged','String','S',null,null,to_date('28-AUG-19','DD-MON-RR'),'BASE ','BASE',null,null,null,null,null,null);
Insert into SYSTEM_EVENT_SERVICES (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM,SERVICE_NAMESPACE,RES_ELEM,SOAP_ACTION,SERVICE_TYPE,SERVICE_HANDLER,DESCR) values ('poic_rfq','post item chg checker','http://localhost:9090/axis/services/ValidatorService',null,'itemChanged','String','S',null,null,to_date('24-FEB-25','DD-MON-RR'),'base ','Base',null,null,null,null,null,null);
Insert into SYSTEM_EVENT_SERVICES (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM,SERVICE_NAMESPACE,RES_ELEM,SOAP_ACTION,SERVICE_TYPE,SERVICE_HANDLER,DESCR) values ('poic_rfq_wiz','post item chg checker','http://localhost:9090/axis/services/ValidatorService',null,'itemChanged','String','S',null,null,to_date('24-FEB-25','DD-MON-RR'),'base ','Base',null,null,null,null,null,null);
Insert into SYSTEM_EVENT_SERVICES (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM,SERVICE_NAMESPACE,RES_ELEM,SOAP_ACTION,SERVICE_TYPE,SERVICE_HANDLER,DESCR) values ('post_sign_rfq','method for process','http://localhost:9090/axis/services/ValidatorService','BASE','updateWFStatus',null,null,null,null,to_date('11-NOV-25','DD-MON-RR'),'BASE ','BASE',null,null,null,null,null,null);
Insert into SYSTEM_EVENT_SERVICES (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM,SERVICE_NAMESPACE,RES_ELEM,SOAP_ACTION,SERVICE_TYPE,SERVICE_HANDLER,DESCR) values ('prcm_default_ejb','Action To confirm indent requisition','http://localhost:9090/axis/services/ActionHandlerService','Base','confirm','String','S',null,null,to_date('24-JAN-18','DD-MON-RR'),'base ','base',null,null,null,null,null,null);
Insert into SYSTEM_EVENT_SERVICES (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM,SERVICE_NAMESPACE,RES_ELEM,SOAP_ACTION,SERVICE_TYPE,SERVICE_HANDLER,DESCR) values ('prv_rfq','val checker','http://localhost:9090/axis/services/ValidatorService',null,'wfValData','String','S',null,null,to_date('29-NOV-22','DD-MON-RR'),'base ','Base',null,null,null,null,null,null);
-----------SYSTEM_SERVICE_ARGS----------
REM INSERTING into SYSTEM_SERVICE_ARGS
SET DEFINE OFF;
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_default_ejb',1,'COMPONENT_TYPE','I',null,'S',null,null,null,null,'JB');
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_default_ejb',2,'COMPONENT_NAME','I',null,'S',null,null,null,null,null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_default_ejb',3,'XML_DATA','I',null,'S',null,null,null,null,null);
......@@ -44,26 +167,27 @@ Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,AR
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_rfq',7,'FOCUSED_COLUMN','I',null,'S',null,to_date('29-NOV-22','DD-MON-RR'),'BASE ','BASE',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_rfq',8,'EDIT_FLAG','I',null,'S',null,to_date('29-NOV-22','DD-MON-RR'),'BASE ','BASE',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_rfq',9,'XTRA_PARAMS','I',null,'S',null,to_date('29-NOV-22','DD-MON-RR'),'BASE ','BASE',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_rfq_wiz',4,'XML_DATA_1','I',null,'S',null,to_date('29-NOV-22','DD-MON-RR'),'BASE ','BASE',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_rfq_wiz',1,'COMPONENT_TYPE','I',null,'S',null,to_date('29-NOV-22','DD-MON-RR'),'BASE ','BASE','JB');
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_rfq_wiz',2,'COMPONENT_NAME','I',null,'S',null,to_date('29-NOV-22','DD-MON-RR'),'BASE ','BASE','ibase.webitm.ejb.dis.ReqForQuotationWiz');
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_rfq_wiz',2,'COMPONENT_NAME','I',null,'S',null,to_date('29-NOV-22','DD-MON-RR'),'BASE ','BASE',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_rfq_wiz',3,'XML_DATA','I',null,'S',null,to_date('29-NOV-22','DD-MON-RR'),'BASE ','BASE',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_rfq_wiz',4,'XML_DATA_1','I',null,'S',null,to_date('29-NOV-22','DD-MON-RR'),'BASE ','BASE',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_rfq_wiz',5,'XML_DATA_2','I',null,'S',null,to_date('29-NOV-22','DD-MON-RR'),'BASE ','BASE',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_rfq_wiz',6,'OBJ_CONTEXT','I',null,'S',null,to_date('29-NOV-22','DD-MON-RR'),'BASE ','BASE',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_rfq_wiz',7,'FOCUSED_COLUMN','I',null,'S',null,to_date('29-NOV-22','DD-MON-RR'),'BASE ','BASE',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_rfq_wiz',8,'EDIT_FLAG','I',null,'S',null,to_date('29-NOV-22','DD-MON-RR'),'BASE ','BASE',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_rfq_wiz',9,'XTRA_PARAMS','I',null,'S',null,to_date('29-NOV-22','DD-MON-RR'),'BASE ','BASE',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('post_sign_rfq',4,'DB_CONN','I',null,'S.Connection',null,to_date('11-NOV-25','DD-MON-RR'),'BASE ','BASE',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_rfq_wiz',10,'FORM_NAME','I',null,'S',null,to_date('04-MAY-22','DD-MON-RR'),'BHAGYASHRI','BHAGYASHRI',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('post_sign_rfq',1,'COMPONENT_TYPE ','I',null,'S',null,to_date('11-NOV-25','DD-MON-RR'),'BASE ','BASE','JB');
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('post_sign_rfq',2,'COMPONENT_NAME ','I',null,'S',null,to_date('11-NOV-25','DD-MON-RR'),'BASE ','BASE','ibase.webitm.ejb.dis.ReqForQuotationAprv');
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('post_sign_rfq',3,'XML_DATA_ALL','I',null,'S',null,to_date('11-NOV-25','DD-MON-RR'),'BASE ','BASE',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('post_sign_rfq',4,'DB_CONN','I',null,'S.Connection',null,to_date('11-NOV-25','DD-MON-RR'),'BASE ','BASE',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('post_sign_rfq',5,'XTRA_PARAMS','I',null,'S',null,to_date('19-NOV-08','DD-MON-RR'),'Gulzar ','BASE217',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prcm_default_ejb',1,'COMPONENT_TYPE','I','Component Type','S',null,to_date('01-JUN-12','DD-MON-RR'),'BASE ','BASE','JB');
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prcm_default_ejb',2,'COMPONENT_NAME','I','Component Name','S',null,to_date('01-JUN-12','DD-MON-RR'),'BASE ','BASE',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prcm_default_ejb',3,'<tran_id>','I','tranid','B.String',null,to_date('01-JUN-12','DD-MON-RR'),'BASE ','BASE',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prcm_default_ejb',4,'XTRA_PARAMS','I','Extra Arguments','S',null,to_date('01-JUN-12','DD-MON-RR'),'BASE ','BASE',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prcm_default_ejb',5,'FORCED_FLAG','I','Forced Flag','S',null,to_date('01-JUN-12','DD-MON-RR'),'BASE ','BASE',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_rfq',1,'COMPONENT_TYPE','I',null,'S',null,to_date('29-NOV-22','DD-MON-RR'),'BASE ','BASE','JB');
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('post_sign_rfq',5,'XTRA_PARAMS','I',null,'S',null,to_date('19-NOV-08','DD-MON-RR'),'Gulzar ','BASE217',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_rfq',2,'COMPONENT_NAME','I',null,'S',null,to_date('29-NOV-22','DD-MON-RR'),'BASE ','BASE','ibase.webitm.ejb.dis.ReqForQuotationIC');
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_rfq',3,'XML_DATA','I',null,'S',null,to_date('29-NOV-22','DD-MON-RR'),null,'BASE',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_rfq',4,'XML_DATA_1','I',null,'S',null,to_date('29-NOV-22','DD-MON-RR'),'BASE ','BASE',null);
......@@ -74,39 +198,58 @@ Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,AR
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY,EXEC_AT,JS_ARG) values ('rfq','1','cust_code',null,null,null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY,EXEC_AT,JS_ARG) values ('rfq','1','mgmnt_apprv',null,null,null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY,EXEC_AT,JS_ARG) values ('rfq','2','item_code',null,null,null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY,EXEC_AT,JS_ARG) values ('rfq','2','itm_default',null,null,null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY,EXEC_AT,JS_ARG) values ('rfq','2','ptr_flag','Y',null,null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY,EXEC_AT,JS_ARG) values ('rfq','2','rate_quot','Y',null,null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY,EXEC_AT,JS_ARG) values ('rfq_wiz','1','cust_code','Y',null,null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY,EXEC_AT,JS_ARG) values ('rfq_wiz','1','item_ser','Y',null,null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY,EXEC_AT,JS_ARG) values ('rfq_wiz','1','itm_default',null,null,null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY,EXEC_AT,JS_ARG) values ('rfq_wiz','2','item_code','Y',null,null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY,EXEC_AT,JS_ARG) values ('rfq_wiz','2','itm_default',null,null,null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY,EXEC_AT,JS_ARG) values ('rfq_wiz','2','ptr_flag','Y',null,null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY,EXEC_AT,JS_ARG) values ('rfq_wiz','2','rate_quot','Y',null,null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY,EXEC_AT,JS_ARG) values ('rfq','1','item_Ser',null,null,null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY,EXEC_AT,JS_ARG) values ('rfq','1','item_ser',null,null,null);
--------OBJ_ITEMCHANGE-------------
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY,EXEC_AT,JS_ARG) values ('rfq','1 ','cust_code',null,null,null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY,EXEC_AT,JS_ARG) values ('rfq','1 ','mgmnt_apprv',null,null,null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY,EXEC_AT,JS_ARG) values ('rfq','2 ','item_code',null,null,null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY,EXEC_AT,JS_ARG) values ('rfq','2 ','rate_quot','Y',null,null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY,EXEC_AT,JS_ARG) values ('rfq','2 ','itm_default',null,null,null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY,EXEC_AT,JS_ARG) values ('rfq','2 ','ptr_flag','Y',null,null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY,EXEC_AT,JS_ARG) values ('rfq_wiz','1 ','cust_code','Y',null,null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY,EXEC_AT,JS_ARG) values ('rfq_wiz','1 ','item_ser',null,null,null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY,EXEC_AT,JS_ARG) values ('rfq_wiz','1 ','itm_default',null,null,null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY,EXEC_AT,JS_ARG) values ('rfq_wiz','2 ','itm_default',null,null,null);
Insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER,IS_CONFIRMATION_REQ,SEP_DUTY_OPT,RE_AUTH_OPT,SHOW_IN_PANEL,PAGE_CONTEXT,TYPE,ACTION_ARG,SWIPE_POSITION,MULTI_ROW_OPT,ACTION_ID,DEF_NODATA,IN_PROC_INTRUPT,ESTIMATED_TIME,ACTION_GROUP,DISPLAY_OPT,DISPLAY_MODE,SHOW_CONFIRM,REC_SPECIFIC) values ('rfq',1,'ibase/resource/objaction/add.svg',null,'rfq_None','a','A','Add','1',null,null,'S',null,to_date('03-FEB-26','DD-MON-RR'),'System','System ',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'2',null,null);
Insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER,IS_CONFIRMATION_REQ,SEP_DUTY_OPT,RE_AUTH_OPT,SHOW_IN_PANEL,PAGE_CONTEXT,TYPE,ACTION_ARG,SWIPE_POSITION,MULTI_ROW_OPT,ACTION_ID,DEF_NODATA,IN_PROC_INTRUPT,ESTIMATED_TIME,ACTION_GROUP,DISPLAY_OPT,DISPLAY_MODE,SHOW_CONFIRM,REC_SPECIFIC) values ('rfq',2,'ibase/resource/objaction/edit.svg',null,'rfq_None','a','E','Edit','1',null,null,'S',null,to_date('03-FEB-26','DD-MON-RR'),'System','System ',null,null,null,null,null,null,null,'1 ',null,null,null,null,null,null,null,'2','000',null);
Insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER,IS_CONFIRMATION_REQ,SEP_DUTY_OPT,RE_AUTH_OPT,SHOW_IN_PANEL,PAGE_CONTEXT,TYPE,ACTION_ARG,SWIPE_POSITION,MULTI_ROW_OPT,ACTION_ID,DEF_NODATA,IN_PROC_INTRUPT,ESTIMATED_TIME,ACTION_GROUP,DISPLAY_OPT,DISPLAY_MODE,SHOW_CONFIRM,REC_SPECIFIC) values ('rfq',6,'ibase/resource/objaction/submit.svg','Workflow Submit','wf_submit_auto','a','S','Submit','1','2',null,'U',null,to_date('28-FEB-25','DD-MON-RR'),'GAGANB',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
Insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER,IS_CONFIRMATION_REQ,SEP_DUTY_OPT,RE_AUTH_OPT,SHOW_IN_PANEL,PAGE_CONTEXT,TYPE,ACTION_ARG,SWIPE_POSITION,MULTI_ROW_OPT,ACTION_ID,DEF_NODATA,IN_PROC_INTRUPT,ESTIMATED_TIME,ACTION_GROUP,DISPLAY_OPT,DISPLAY_MODE,SHOW_CONFIRM,REC_SPECIFIC) values ('rfq_wiz',1,null,'Saving',null,null,'S','Finish','2',null,null,'S',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'1',null,null);
Insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER,IS_CONFIRMATION_REQ,SEP_DUTY_OPT,RE_AUTH_OPT,SHOW_IN_PANEL,PAGE_CONTEXT,TYPE,ACTION_ARG,SWIPE_POSITION,MULTI_ROW_OPT,ACTION_ID,DEF_NODATA,IN_PROC_INTRUPT,ESTIMATED_TIME,ACTION_GROUP,DISPLAY_OPT,DISPLAY_MODE,SHOW_CONFIRM,REC_SPECIFIC) values ('rfq_wiz',2,null,'Navigate - Next',null,null,'N','Next','1',null,null,'S',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'2','0 ',null);
Insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER,IS_CONFIRMATION_REQ,SEP_DUTY_OPT,RE_AUTH_OPT,SHOW_IN_PANEL,PAGE_CONTEXT,TYPE,ACTION_ARG,SWIPE_POSITION,MULTI_ROW_OPT,ACTION_ID,DEF_NODATA,IN_PROC_INTRUPT,ESTIMATED_TIME,ACTION_GROUP,DISPLAY_OPT,DISPLAY_MODE,SHOW_CONFIRM,REC_SPECIFIC) values ('rfq_wiz',3,null,'Navigate - Prev',null,null,'P','Previous','2',null,null,'S',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'4','0 ',null);
---------POPHELP-------------
Insert into POPHELP (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION,POPUP_XSL_NAME,AUTO_FILL_LEN,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,AUTO_MIN_LENGTH,OBJ_NAME__DS,DATA_MODEL_NAME,VALIDATE_DATA,ITEM_CHANGE,MSG_NO,FILTER_EXPR,LAYOUT) values ('ITEM_SER','W_RFQ','SELECT ITEM_SER, DESCR FROM ITEMSER',null,'Item Series',0,0,to_date('03-FEB-26','DD-MON-RR'),'System ','System','1',null,null,1,'L',null,'0',null,null,1,'2',null,null,null,null,null,null,null,null,null,null,null,null,null);
Insert into POPHELP (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION,POPUP_XSL_NAME,AUTO_FILL_LEN,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,AUTO_MIN_LENGTH,OBJ_NAME__DS,DATA_MODEL_NAME,VALIDATE_DATA,ITEM_CHANGE,MSG_NO,FILTER_EXPR,LAYOUT) values ('SITE_CODE','W_RFQ','SELECT SITE_NAME, SITE_CODE FROM SITE',null,null,0,0,to_date('03-FEB-26','DD-MON-RR'),'System ','System',null,null,null,2,null,null,null,null,null,0,'2',null,'2',null,null,null,'2 ',null,null,null,null,null,null,null);
Insert into POPHELP (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION,POPUP_XSL_NAME,AUTO_FILL_LEN,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,AUTO_MIN_LENGTH,OBJ_NAME__DS,DATA_MODEL_NAME,VALIDATE_DATA,ITEM_CHANGE,MSG_NO,FILTER_EXPR,LAYOUT) values ('EMP_CODE_CONF','W_RFQ','SELECT NAME, EMP_CODE_CONF FROM EMPLOYEE',null,null,0,0,to_date('03-FEB-26','DD-MON-RR'),'System ','System',null,null,null,2,null,null,null,null,null,0,'2',null,'2',null,null,null,'2 ',null,null,null,null,null,null,null);
Insert into POPHELP (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION,POPUP_XSL_NAME,AUTO_FILL_LEN,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,AUTO_MIN_LENGTH,OBJ_NAME__DS,DATA_MODEL_NAME,VALIDATE_DATA,ITEM_CHANGE,MSG_NO,FILTER_EXPR,LAYOUT) values ('UNIT','W_RFQ','SELECT DESCR, UNIT FROM UOM',null,null,0,0,to_date('03-FEB-26','DD-MON-RR'),'System ','System',null,null,null,2,null,null,null,null,null,0,'2',null,'2',null,null,null,'2 ',null,null,null,null,null,null,null);
Insert into POPHELP (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION,POPUP_XSL_NAME,AUTO_FILL_LEN,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,AUTO_MIN_LENGTH,OBJ_NAME__DS,DATA_MODEL_NAME,VALIDATE_DATA,ITEM_CHANGE,MSG_NO,FILTER_EXPR,LAYOUT) values ('PACK_CODE','W_RFQ','SELECT DESCR, PACK_CODE FROM PACK',null,null,0,0,to_date('03-FEB-26','DD-MON-RR'),'System ','System',null,null,null,2,null,null,null,null,null,0,'2',null,'2',null,null,null,'2 ',null,null,null,null,null,null,null);
Insert into POPHELP (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION,POPUP_XSL_NAME,AUTO_FILL_LEN,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,AUTO_MIN_LENGTH,OBJ_NAME__DS,DATA_MODEL_NAME,VALIDATE_DATA,ITEM_CHANGE,MSG_NO,FILTER_EXPR,LAYOUT) values ('ITEM_SER','W_RFQ_WIZ','SELECT ITEM_SER, DESCR FROM ITEMSER',null,'Item Series',0,0,to_date('03-FEB-26','DD-MON-RR'),'System ','System','1',null,null,1,'L',null,'0',null,null,1,'2',null,null,null,null,null,null,null,null,null,null,null,null,null);
Insert into POPHELP (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION,POPUP_XSL_NAME,AUTO_FILL_LEN,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,AUTO_MIN_LENGTH,OBJ_NAME__DS,DATA_MODEL_NAME,VALIDATE_DATA,ITEM_CHANGE,MSG_NO,FILTER_EXPR,LAYOUT) values ('CUST_CODE','W_RFQ_WIZ','SELECT CUST_NAME, CUST_CODE FROM CUSTOMER WHERE CUST_TYPE = ''R''',null,'Hospital List',0,0,to_date('03-FEB-26','DD-MON-RR'),'System ','System',null,null,null,2,null,null,null,null,null,0,'2',null,'2',null,null,null,'2 ',null,null,null,null,null,null,null);
Insert into POPHELP (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION,POPUP_XSL_NAME,AUTO_FILL_LEN,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,AUTO_MIN_LENGTH,OBJ_NAME__DS,DATA_MODEL_NAME,VALIDATE_DATA,ITEM_CHANGE,MSG_NO,FILTER_EXPR,LAYOUT) values ('CUST_CODE','W_RFQ','SELECT CUST_NAME, CUST_CODE FROM CUSTOMER WHERE CUST_TYPE = ''R''',null,'Hospital List',0,0,to_date('03-FEB-26','DD-MON-RR'),'System ','System',null,null,null,2,null,null,null,null,null,0,'2',null,'2',null,null,null,'2 ',null,null,null,null,null,null,null);
Insert into POPHELP (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION,POPUP_XSL_NAME,AUTO_FILL_LEN,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,AUTO_MIN_LENGTH,OBJ_NAME__DS,DATA_MODEL_NAME,VALIDATE_DATA,ITEM_CHANGE,MSG_NO,FILTER_EXPR,LAYOUT) values ('SALES_PERS','W_RFQ','SELECT NAME, SALES_PERS FROM SALESPERSON',null,null,0,0,to_date('03-FEB-26','DD-MON-RR'),'System ','System',null,null,null,2,null,null,null,null,null,0,'2',null,'2',null,null,null,'2 ',null,null,null,null,null,null,null);
Insert into POPHELP (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION,POPUP_XSL_NAME,AUTO_FILL_LEN,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,AUTO_MIN_LENGTH,OBJ_NAME__DS,DATA_MODEL_NAME,VALIDATE_DATA,ITEM_CHANGE,MSG_NO,FILTER_EXPR,LAYOUT) values ('ITEM_CODE','W_RFQ','SELECT ITEM_CODE, DESCR
FROM ITEM
WHERE ITEM_SER IN (
SELECT REGEXP_SUBSTR(''?'', ''[^,]+'', 1, LEVEL)
FROM dual
CONNECT BY REGEXP_SUBSTR(''?'', ''[^,]+'', 1, LEVEL) IS NOT NULL
)
',null,null,0,0,to_date('03-FEB-26','DD-MON-RR'),'System ','System',null,null,':0.item_ser,:0.item_ser',1,null,null,null,null,null,0,'2',null,'3',null,null,null,'2 ',null,null,null,null,null,null,null);
Insert into OBJ_FORMS (WIN_NAME,TITLE,OBJ_BROW_NAME,OBJ_EDIT_NAME,CROSS_UPDATE_EXPR,EXPR_FLD_INFO,TARGET_FLD_INFO,EXPR_COMMENT,FORM_NO,SCR_FLAG,AUTO_ACCEPT_SCAN,SCAN_FLAG,SCAN_METADATA,PROPERTY_INFO,SCAN_DELIMITER,COLUMN_ON_SAVE,AFTER_SAVE,EXT_SETUP,EXT_METADATA,EXT_COM,AUTO_ACCEPT_WEIGHDATA,FORM_TYPE,DISP_METADATA,PARENT_KEY_COL,QTY_COL,RATE_COL,ASSISTED_MODE,STORAGE_KEY_METADATA,SELECTION_MODE,DEFAULT_VIEW,AUTO_ADDON_ENTRY,DUPLICATE_ADD,DEFAULT_ROW_CNT,FREEZE_COL_POS,IS_MANDATORY,TRAN_ID_COL,SELECTION_OPT,KEY_INFO,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,FORM_NAME,FORM_ICON,FORM_VIEW_OPTS,X_COLUMN,Y_COLUMN,ACTION_ARG,VALUE_COL,NO_ART_COL,CHG_DATE,CHG_USER,CHG_TERM) values ('w_rfq','RFQ Header',null,null,null,null,null,null,'1','F',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
Insert into OBJ_FORMS (WIN_NAME,TITLE,OBJ_BROW_NAME,OBJ_EDIT_NAME,CROSS_UPDATE_EXPR,EXPR_FLD_INFO,TARGET_FLD_INFO,EXPR_COMMENT,FORM_NO,SCR_FLAG,AUTO_ACCEPT_SCAN,SCAN_FLAG,SCAN_METADATA,PROPERTY_INFO,SCAN_DELIMITER,COLUMN_ON_SAVE,AFTER_SAVE,EXT_SETUP,EXT_METADATA,EXT_COM,AUTO_ACCEPT_WEIGHDATA,FORM_TYPE,DISP_METADATA,PARENT_KEY_COL,QTY_COL,RATE_COL,ASSISTED_MODE,STORAGE_KEY_METADATA,SELECTION_MODE,DEFAULT_VIEW,AUTO_ADDON_ENTRY,DUPLICATE_ADD,DEFAULT_ROW_CNT,FREEZE_COL_POS,IS_MANDATORY,TRAN_ID_COL,SELECTION_OPT,KEY_INFO,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,FORM_NAME,FORM_ICON,FORM_VIEW_OPTS,X_COLUMN,Y_COLUMN,ACTION_ARG,VALUE_COL,NO_ART_COL,CHG_DATE,CHG_USER,CHG_TERM) values ('w_rfq','RFQ Items',null,null,null,null,null,null,'2','T',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
Insert into OBJ_FORMS (WIN_NAME,TITLE,OBJ_BROW_NAME,OBJ_EDIT_NAME,CROSS_UPDATE_EXPR,EXPR_FLD_INFO,TARGET_FLD_INFO,EXPR_COMMENT,FORM_NO,SCR_FLAG,AUTO_ACCEPT_SCAN,SCAN_FLAG,SCAN_METADATA,PROPERTY_INFO,SCAN_DELIMITER,COLUMN_ON_SAVE,AFTER_SAVE,EXT_SETUP,EXT_METADATA,EXT_COM,AUTO_ACCEPT_WEIGHDATA,FORM_TYPE,DISP_METADATA,PARENT_KEY_COL,QTY_COL,RATE_COL,ASSISTED_MODE,STORAGE_KEY_METADATA,SELECTION_MODE,DEFAULT_VIEW,AUTO_ADDON_ENTRY,DUPLICATE_ADD,DEFAULT_ROW_CNT,FREEZE_COL_POS,IS_MANDATORY,TRAN_ID_COL,SELECTION_OPT,KEY_INFO,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,FORM_NAME,FORM_ICON,FORM_VIEW_OPTS,X_COLUMN,Y_COLUMN,ACTION_ARG,VALUE_COL,NO_ART_COL,CHG_DATE,CHG_USER,CHG_TERM) values ('w_rfq_wiz','RFQ Wizard Header',null,null,null,null,null,null,'1','F',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
Insert into OBJ_FORMS (WIN_NAME,TITLE,OBJ_BROW_NAME,OBJ_EDIT_NAME,CROSS_UPDATE_EXPR,EXPR_FLD_INFO,TARGET_FLD_INFO,EXPR_COMMENT,FORM_NO,SCR_FLAG,AUTO_ACCEPT_SCAN,SCAN_FLAG,SCAN_METADATA,PROPERTY_INFO,SCAN_DELIMITER,COLUMN_ON_SAVE,AFTER_SAVE,EXT_SETUP,EXT_METADATA,EXT_COM,AUTO_ACCEPT_WEIGHDATA,FORM_TYPE,DISP_METADATA,PARENT_KEY_COL,QTY_COL,RATE_COL,ASSISTED_MODE,STORAGE_KEY_METADATA,SELECTION_MODE,DEFAULT_VIEW,AUTO_ADDON_ENTRY,DUPLICATE_ADD,DEFAULT_ROW_CNT,FREEZE_COL_POS,IS_MANDATORY,TRAN_ID_COL,SELECTION_OPT,KEY_INFO,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,FORM_NAME,FORM_ICON,FORM_VIEW_OPTS,X_COLUMN,Y_COLUMN,ACTION_ARG,VALUE_COL,NO_ART_COL,CHG_DATE,CHG_USER,CHG_TERM) values ('w_rfq_wiz','RFQ Wizard Header',null,null,null,null,null,null,'2','T',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
Insert into TRANSETUP (TRAN_WINDOW,SAVE_FLAG,VAL_FLAG,KEY_FLAG,KEY_STRING,UDF_1,UDF_2,UDF_3,UDF_4,UDF_5,REPEATE_ADD,CHG_DATE,CHG_USER,CHG_TERM,EDI_OPTION,SITE_ACC_COL,CONFIRM_COL,CONFIRM_VAL,REPEAT_ADD_DET,REPEATADDDET,LOAD_MODE,AUTO_CONFIRM,LEDG_POST_CONF,CHG_DATE_ON_CONF,TRAN_ID_COL,MAIL_OPTION,CONFIRM_MODE,GARBAGE_OPT,VAL_FLAG_EDI,VERIFY_PASSWORD,CUST_ACC_COL,SALES_PERS_ACC_COL,SUPP_ACC_COL,ITEM_SER_ACC_CODE,EMP_ACC_COL,ITEM_SER_ACC_COL,WORKFLOW_OPT,TABLE_NAME,APPLICATION,TABLE_DESC,TRAN_DATE_COL,TRAN_ID__FROM,TRAN_ID__TO,TABLE_NAME_DET1,TABLE_NAME_DET2,TABLE_NAME_DET3,MULTITIRE_OPT,REF_SER,VIEW_MODE,TAX_FORMS,SIGN_STATUS,USER_TRAN_WINDOW,OBJ_NAME__PARENT,IGNOREERRLIST_ONLOAD,CHILDDATA_ARGOPT,EDIT_TMPLT,WRKFLW_INIT,EDITTAX,FORMAL_ARGS,AUDIT_TRAIL_OPT,EDIT_OPT,CACHE_OPT,OPTIMIZE_MODE,EDIT_EXPR,RATE_COL,QTY_COL,EDIT_EXPR_INP,RCP_CACHE_STATUS,PRINT_CONTROL,TRANSFER_MODE,PROFILE_ID__RES,TRAN_COMPL_MSG,PERIOD_OPTION,WRKFLW_PRIORITY,EXEC_TYPE,DISP_META_DATA,ALLOW_ATTACH,START_FORM,ISATTACHMENT,HEADER_FORM_NO,CONFIRM_DATE_COL,CONFIRM_BY_COL,MSG_ONSAVE,WF_STATUS,RESTART_FORM,CMS_PATH,BROW_DATA_DEF,DEF_VIEW,VIEW_OPTS,ISGWTINITIATED,DEFAULT_DATA_ROW,IN_WF_VAL,IN_WF_COL,CANCEL_VAL,CANCEL_COL,THUMB_ALT_COL,THUMB_IMAGE_COL,THUMB_OBJ,ATTACH_COUNT_MIN,FUNCTION_TYPE,COMPL_ACTION,DEFAULT_EDITOR,MSG_NO,OBJ_TYPE,STATUS_COL,ENABLE_EDITOR,OFFLINE_OPT,CLOSE_COL,CLOSE_VAL,THREAD_KEY_COL,LOAD_ORDER,SYNC_FROM_APP,TITLE,FORM_NO,OBJ_NAME) values ('w_rfq',null,null,'A','seq10',null,null,null,null,null,null,to_date('03-FEB-26','DD-MON-RR'),'System ','System',null,null,null,null,null,null,null,null,null,null,'TRAN_ID',null,null,null,null,null,null,null,null,null,null,null,'4','SALES_QUOT_REQ',null,null,null,null,null,null,null,null,null,'RFQ','F',null,null,null,null,null,null,null,'rfq',null,null,'2',null,null,null,null,null,null,null,null,'N',null,null,null,'M',null,null,null,null,null,null,null,null,null,null,null,null,null,'Y',null,null,null,null,null,null,null,null,null,null,null,null,null,null,'compact',null,null,null,null,null,null,null,null,null,null,null,null,null);
Insert into TRANSETUP (TRAN_WINDOW,SAVE_FLAG,VAL_FLAG,KEY_FLAG,KEY_STRING,UDF_1,UDF_2,UDF_3,UDF_4,UDF_5,REPEATE_ADD,CHG_DATE,CHG_USER,CHG_TERM,EDI_OPTION,SITE_ACC_COL,CONFIRM_COL,CONFIRM_VAL,REPEAT_ADD_DET,REPEATADDDET,LOAD_MODE,AUTO_CONFIRM,LEDG_POST_CONF,CHG_DATE_ON_CONF,TRAN_ID_COL,MAIL_OPTION,CONFIRM_MODE,GARBAGE_OPT,VAL_FLAG_EDI,VERIFY_PASSWORD,CUST_ACC_COL,SALES_PERS_ACC_COL,SUPP_ACC_COL,ITEM_SER_ACC_CODE,EMP_ACC_COL,ITEM_SER_ACC_COL,WORKFLOW_OPT,TABLE_NAME,APPLICATION,TABLE_DESC,TRAN_DATE_COL,TRAN_ID__FROM,TRAN_ID__TO,TABLE_NAME_DET1,TABLE_NAME_DET2,TABLE_NAME_DET3,MULTITIRE_OPT,REF_SER,VIEW_MODE,TAX_FORMS,SIGN_STATUS,USER_TRAN_WINDOW,OBJ_NAME__PARENT,IGNOREERRLIST_ONLOAD,CHILDDATA_ARGOPT,EDIT_TMPLT,WRKFLW_INIT,EDITTAX,FORMAL_ARGS,AUDIT_TRAIL_OPT,EDIT_OPT,CACHE_OPT,OPTIMIZE_MODE,EDIT_EXPR,RATE_COL,QTY_COL,EDIT_EXPR_INP,RCP_CACHE_STATUS,PRINT_CONTROL,TRANSFER_MODE,PROFILE_ID__RES,TRAN_COMPL_MSG,PERIOD_OPTION,WRKFLW_PRIORITY,EXEC_TYPE,DISP_META_DATA,ALLOW_ATTACH,START_FORM,ISATTACHMENT,HEADER_FORM_NO,CONFIRM_DATE_COL,CONFIRM_BY_COL,MSG_ONSAVE,WF_STATUS,RESTART_FORM,CMS_PATH,BROW_DATA_DEF,DEF_VIEW,VIEW_OPTS,ISGWTINITIATED,DEFAULT_DATA_ROW,IN_WF_VAL,IN_WF_COL,CANCEL_VAL,CANCEL_COL,THUMB_ALT_COL,THUMB_IMAGE_COL,THUMB_OBJ,ATTACH_COUNT_MIN,FUNCTION_TYPE,COMPL_ACTION,DEFAULT_EDITOR,MSG_NO,OBJ_TYPE,STATUS_COL,ENABLE_EDITOR,OFFLINE_OPT,CLOSE_COL,CLOSE_VAL,THREAD_KEY_COL,LOAD_ORDER,SYNC_FROM_APP,TITLE,FORM_NO,OBJ_NAME) values ('w_rfq_wiz',null,null,'A','seq10',null,null,null,null,null,null,to_date('03-FEB-26','DD-MON-RR'),'System ','System',null,null,null,null,null,null,null,null,null,null,'TRAN_ID',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'RFQ','F',null,null,null,null,null,null,null,null,null,null,'2',null,null,null,null,null,null,null,null,'N',null,null,null,'M',null,null,null,null,null,null,null,null,null,null,null,null,null,'Y',null,null,null,null,null,null,null,null,null,null,null,null,null,null,'compact',null,null,null,null,null,null,null,null,null,null,null,null,null);
Insert into ITM2MENU (APPLICATION,LEVEL_1,LEVEL_2,LEVEL_3,LEVEL_4,LEVEL_5,WIN_NAME,DESCR,COMMENTS,MENU_PATH,ICON_PATH,CLOSE_ICON,OPEN_ICON,OBJ_TYPE,CHG_DATE,CHG_TERM,CHG_USER,MOB_DEPLOY,DEFAULT_STATE,DEF_ACTION,MOB_DEPLY,ENT_TYPES) values ('SCS',4,11,0,0,0,'-','Request For Quotation','Request For Quotation','SCS.4.11.0.0.0','proposal.png','add_shopping_cart',null,'T',null,null,null,'B',null,null,null,'0 ');
Insert into ITM2MENU (APPLICATION,LEVEL_1,LEVEL_2,LEVEL_3,LEVEL_4,LEVEL_5,WIN_NAME,DESCR,COMMENTS,MENU_PATH,ICON_PATH,CLOSE_ICON,OPEN_ICON,OBJ_TYPE,CHG_DATE,CHG_TERM,CHG_USER,MOB_DEPLOY,DEFAULT_STATE,DEF_ACTION,MOB_DEPLY,ENT_TYPES) values ('SCS',4,11,2,0,0,'w_rfq_wiz','RFQ Wizard Screen','RFQ Wizard Screen','SCS.4.11.2.0.0','e12_logo.gif',null,null,'W',null,null,null,'B',null,null,null,'0 ');
Insert into ITM2MENU (APPLICATION,LEVEL_1,LEVEL_2,LEVEL_3,LEVEL_4,LEVEL_5,WIN_NAME,DESCR,COMMENTS,MENU_PATH,ICON_PATH,CLOSE_ICON,OPEN_ICON,OBJ_TYPE,CHG_DATE,CHG_TERM,CHG_USER,MOB_DEPLOY,DEFAULT_STATE,DEF_ACTION,MOB_DEPLY,ENT_TYPES) values ('SCS',4,11,1,0,0,'w_rfq','Create RFQ','Create a new Request for Quotation.','SCS.4.11.1.0.0','add_circle','add_circle',null,'T',to_date('22-JAN-26','DD-MON-RR'),'System','System ',null,null,null,null,'0 ');
Insert into MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION) values ('COMPDETM ','Competitor details are mandatory','If Special Rate added, then competitor details is mandatory','E','Y',null,null,null,to_date('25-DEC-13','DD-MON-RR'),'BASE ','BASE',null,null);
alter table sales_quotdet add (PTD NUMBER(14,3));
......@@ -115,3 +258,73 @@ Insert into WF_ROLE (ROLE_CODE,ROLE_TYPE,EVENT_CARR,DESCR,USER_ID,SUBJECT_STR,IN
Insert into WF_ROLE (ROLE_CODE,ROLE_TYPE,EVENT_CARR,DESCR,USER_ID,SUBJECT_STR,INCLUDE_DATA,EMAIL_ADDR,CHG_DATE,CHG_USER,CHG_TERM,ROLE_ENTITY,ROLE_ENTITY_SQL,DYN_ROLE_REF,ROLE_SQL_INPUT,ROLE_PURPOSE) values ('VHB_MNGMNT ','S','A','VHB MANAGEMENT TEAM','BP9299 ',null,null,null,to_date('27-JAN-26','DD-MON-RR'),'GAGANB ','000000000073403','E',null,null,null,'1');
-----------WIZARD SCREEN WFVALDATA ENTRIES
Insert into MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION) values ('STKVALITNE','Invalid Item Code','Entered Item Code not exist in item master','E',null,null,null,null,to_date('07-APR-14','DD-MON-RR'),'BASE ','BASE',null,null);
Insert into MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION) values ('VTCUST1 ','Invalid Customer!','Customer not exist in customer master!','E','Y',null,null,null,to_date('04-SEP-17','DD-MON-RR'),'BASE ','BASE',null,null);
Insert into MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION) values ('VTINUPTO ','Invalid Valid Up To Date !','Please enter the Valid Up To Date .','E',null,null,null,null,null,null,null,null,null);
Insert into MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION) values ('VTITEMSER1','Item Series Not Found!','Item series you have entered is not found in the item series master.','E','Y',null,null,null,to_date('22-OCT-00','DD-MON-RR'),'SUN ','HDP',null,null);
Insert into MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION) values ('VTSITCD1 ','Site Not Found!','Site code you have entered is not found in the site master. ','E','Y',null,null,null,to_date('24-JUL-14','DD-MON-RR'),'BASE ','BASE',null,null);
update pophelp set SQL_STR = 'SELECT SITE_CODE FROM SITE' where mod_name like 'W_RFQ' and field_name = 'SITE_CODE';
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT,FIELD_NAME,FORM_NO) values
('rfq_wiz','pre_validate','1','prv_rfq_wiz',null,'0',to_date('24-FEB-25','DD-MON-RR'),'base ','BASE','2','JB','ibase.webitm.ejb.dis.ReqForQuotationWiz',null,null,null);
Insert into SYSTEM_EVENT_SERVICES (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM,SERVICE_NAMESPACE,RES_ELEM,SOAP_ACTION,SERVICE_TYPE,SERVICE_HANDLER,DESCR) values
('prv_rfq_wiz','val checker','http://localhost:9090/axis/services/ValidatorService',null,'wfValData','String','S',null,null,to_date('29-NOV-22','DD-MON-RR'),'base ','Base',null,null,null,null,null,null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_rfq_wiz',1,'COMPONENT_TYPE','I',null,'S',null,to_date('29-NOV-22','DD-MON-RR'),'BASE ','BASE','JB');
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_rfq_wiz',2,'COMPONENT_NAME','I',null,'S',null,to_date('29-NOV-22','DD-MON-RR'),'BASE ','BASE','ibase.webitm.ejb.dis.ReqForQuotationWiz');
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_rfq_wiz',3,'XML_DATA','I',null,'S',null,to_date('29-NOV-22','DD-MON-RR'),null,'BASE',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_rfq_wiz',4,'XML_DATA_1','I',null,'S',null,to_date('29-NOV-22','DD-MON-RR'),'BASE ','BASE',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_rfq_wiz',5,'XML_DATA_2','I',null,'S',null,to_date('29-NOV-22','DD-MON-RR'),'BASE ','BASE',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_rfq_wiz',6,'OBJ_CONTEXT','I',null,'S',null,to_date('29-NOV-22','DD-MON-RR'),'BASE ','BASE',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_rfq_wiz',7,'EDIT_FLAG','I',null,'S',null,to_date('29-NOV-22','DD-MON-RR'),'BASE ','BASE',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_rfq_wiz',8,'XTRA_PARAMS','I',null,'S',null,to_date('29-NOV-22','DD-MON-RR'),'BASE ','BASE',null);
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT,FIELD_NAME,FORM_NO) values ('rfq_wiz','pre_navigate_finish','1','ppv_rfq_wiz',null,'0',to_date('01-JUL-16','DD-MON-RR'),'AJIT','AJIT','2','JB','ibase.webitm.ejb.dis.ReqForQuotationWiz',null,null,null);
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT,FIELD_NAME,FORM_NO) values ('rfq_wiz','pre_navigate_next','1','pnn_rfq_wiz',null,'0',to_date('28-APR-22','DD-MON-RR'),'AJIT','AJIT','2','JB','ibase.webitm.ejb.dis.ReqForQuotationWiz',null,null,null);
Insert into SYSTEM_EVENT_SERVICES (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM,SERVICE_NAMESPACE,RES_ELEM,SOAP_ACTION,SERVICE_TYPE,SERVICE_HANDLER,DESCR) values ('pnn_rfq_wiz','Validate','http://localhost:9090/axis/services/ValidatorService',null,'wfValData','String','S',null,null,to_date('28-JUL-20','DD-MON-RR'),'AJIT','AJIT',null,null,null,null,null,null);
Insert into SYSTEM_EVENT_SERVICES (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM,SERVICE_NAMESPACE,RES_ELEM,SOAP_ACTION,SERVICE_TYPE,SERVICE_HANDLER,DESCR) values ('ppv_rfq_wiz','Navigate','http://localhost:9090/axis/services/ValidatorService',null,'wfValOnFinish','String','S',null,null,to_date('28-JUL-20','DD-MON-RR'),'AJIT','AJIT',null,null,null,null,null,null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('pnn_rfq_wiz',1,'COMPONENT_TYPE','I',null,'S',null,to_date('08-JAN-10','DD-MON-RR'),'AJIT','AJIT','JB');
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('pnn_rfq_wiz',2,'COMPONENT_NAME','I',null,'S',null,to_date('08-JAN-10','DD-MON-RR'),'AJIT','AJIT','ibase.webitm.ejb.dis.ReqForQuotationWiz');
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('pnn_rfq_wiz',3,'XML_DATA__ALL','I',null,'S',null,to_date('08-JAN-10','DD-MON-RR'),'AJIT','AJIT',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('pnn_rfq_wiz',4,'XML_DATA_1','I',null,'S',null,to_date('08-JAN-10','DD-MON-RR'),'AJIT','AJIT',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('pnn_rfq_wiz',5,'XML_DATA_ALL','I',null,'S',null,to_date('08-JAN-10','DD-MON-RR'),'AJIT','AJIT',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('pnn_rfq_wiz',6,'OBJ_CONTEXT','I',null,'S',null,to_date('08-JAN-10','DD-MON-RR'),'AJIT','AJIT',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('pnn_rfq_wiz',7,'EDIT_FLAG','I',null,'S',null,to_date('08-JAN-10','DD-MON-RR'),'AJIT','AJIT',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('pnn_rfq_wiz',8,'XTRA_PARAMS','I',null,'S',null,to_date('08-JAN-10','DD-MON-RR'),'AJIT','AJIT',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('pnn_rfq_wiz',9,'FORM_NAME','I',null,'S',null,to_date('04-MAY-22','DD-MON-RR'),'AJIT','AJIT',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('ppv_rfq_wiz',1,'COMPONENT_TYPE','I',null,'S',null,to_date('14-OCT-11','DD-MON-RR'),'AJIT','AJIT','EJB');
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('ppv_rfq_wiz',2,'COMPONENT_NAME','I',null,'S',null,to_date('14-OCT-11','DD-MON-RR'),'AJIT','AJIT','ibase.webitm.ejb.dis.ReqForQuotationWiz');
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('ppv_rfq_wiz',3,'XML_DATA__ALL','I',null,'S',null,to_date('14-OCT-11','DD-MON-RR'),'AJIT','AJIT',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('ppv_rfq_wiz',4,'XML_DATA_1','I',null,'S',null,to_date('14-OCT-11','DD-MON-RR'),'AJIT','AJIT',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('ppv_rfq_wiz',5,'XML_DATA_ALL','I',null,'S',null,to_date('14-OCT-11','DD-MON-RR'),'AJIT','AJIT',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('ppv_rfq_wiz',6,'OBJ_CONTEXT','I',null,'S',null,to_date('14-OCT-11','DD-MON-RR'),'AJIT','AJIT',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('ppv_rfq_wiz',7,'EDIT_FLAG','I',null,'S',null,to_date('14-OCT-11','DD-MON-RR'),'AJIT','AJIT',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('ppv_rfq_wiz',8,'XTRA_PARAMS','I',null,'S',null,to_date('14-OCT-11','DD-MON-RR'),'AJIT','AJIT',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('ppv_rfq_wiz',9,'FORM_NAME','I',null,'S',null,to_date('01-JUL-16','DD-MON-RR'),'AJIT','AJIT',null);
......@@ -7,6 +7,11 @@ import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.text.SimpleDateFormat;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import java.util.List;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
......@@ -105,6 +110,149 @@ public class ReqForQuotationIC extends ValidatorEJB {
}
switch ( currentFormNo )
{
case 1:
{
parentList = dom.getElementsByTagName("Detail"+ currentFormNo);
int parentNodeListLength = parentList.getLength();
System.out.println("parentNodeListLength["+parentNodeListLength+"]");
for (int prntCtr = 0; prntCtr < parentNodeListLength; prntCtr++ )
{
parentNode = parentList.item(prntCtr);
System.out.println("value of parentNode"+parentNode);
childList = parentNode.getChildNodes();
noOfChilds = childList.getLength();
System.out.println("value of noOfChilds"+noOfChilds);
for (int ctr = 0; ctr < noOfChilds; ctr++)
{
childNode = childList.item(ctr);
System.out.println("childNode"+childNode);
if( childNode.getNodeType() != Node.ELEMENT_NODE )
{
continue;
}
childNodeName = childNode.getNodeName();
if( childNodeName.equalsIgnoreCase("cust_code") )
{
String custCode = checkNull(genericUtility.getColumnValue("cust_code", dom));
BaseLogger.log("3", null, null, "ReqForQuotationIC custCode wfValData case 1 [" + custCode + "]");
String checkCustCodeSql = "select count(cust_code) as custCodeCount from customer where cust_code = ?";
PreparedStatement checkCustCodePs = connection.prepareStatement(checkCustCodeSql);
checkCustCodePs.setString(1, custCode);
ResultSet checkCustCodeRs = checkCustCodePs.executeQuery();
while(checkCustCodeRs.next()) {
int custCodeCont = checkCustCodeRs.getInt("custCodeCount");
BaseLogger.log("3", null, null, "ReqForQuotationIC custCode wfValData case 1 custCodeCont::[" + custCodeCont + "]");
if(custCodeCont<=0) {
errString = getErrorString("cust_code", "VTCUST1", userId);
break;
}
}
if(checkCustCodeRs != null)
{
checkCustCodeRs.close();
checkCustCodeRs = null;
}
if(checkCustCodePs != null)
{
checkCustCodePs.close();
checkCustCodePs = null;
}
}
if( childNodeName.equalsIgnoreCase("valid_upto") )
{
String validUptoStr = checkNull(genericUtility.getColumnValue("valid_upto", dom));
BaseLogger.log("3", null, null, "ReqForQuotationIC validUptoStr wfValData case 1 [" + validUptoStr + "]");
if(isDateInvalid(validUptoStr))
{
errString = getErrorString("valid_upto", "VTINUPTO", userId);
break;
}
}
if( childNodeName.equalsIgnoreCase("site_code") )
{
String siteCode = checkNull(genericUtility.getColumnValue("site_code", dom));
BaseLogger.log("3", null, null, "ReqForQuotationIC siteCode wfValData case 1 [" + siteCode + "]");
String checkSiteCodeSql = "select count(site_code) as siteCodeCount from site where site_code = ?";
PreparedStatement checkSiteCodePs = connection.prepareStatement(checkSiteCodeSql);
checkSiteCodePs.setString(1, siteCode);
ResultSet checkSiteCodeRs = checkSiteCodePs.executeQuery();
while(checkSiteCodeRs.next()) {
int siteCodeCont = checkSiteCodeRs.getInt("siteCodeCount");
BaseLogger.log("3", null, null, "ReqForQuotationIC siteCode wfValData case 1 siteCodeCont::[" + siteCodeCont + "]");
if(siteCodeCont<=0) {
errString = getErrorString("site_code", "VTSITCD1", userId);
break;
}
}
if(checkSiteCodeRs != null)
{
checkSiteCodeRs.close();
checkSiteCodeRs = null;
}
if(checkSiteCodePs != null)
{
checkSiteCodePs.close();
checkSiteCodePs = null;
}
}
if( childNodeName.equalsIgnoreCase("item_ser") )
{
String itemSerStr = checkNull(genericUtility.getColumnValue("item_ser", dom));
BaseLogger.log("3", null, null, "ReqForQuotationIC itemSerStr wfValData case 1 [" + itemSerStr + "]");
if (itemSerStr != null && itemSerStr.length() > 0) {
String[] itemSerArr = itemSerStr.split(",");
for (String itemSer : itemSerArr) {
BaseLogger.log("3", null, null, "ReqForQuotationIC item_ser wfValData case 1 itemSer [" + itemSer + "]");
sql = "SELECT count(1) FROM itemser WHERE item_ser = ?";
pstmt = connection.prepareStatement(sql);
pstmt.setString(1, itemSer.trim());
rs = pstmt.executeQuery();
long count = 0;
if (rs.next()) {
count = rs.getLong(1);
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
if (count == 0) {
errString = getErrorString("item_ser", "VTITEMSER1", userId);
break;
}
}
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(rs != null)
{
rs.close();
rs = null;
}
}
}
}
break;
}
case 2:
{
parentList = dom.getElementsByTagName("Detail"+ currentFormNo);
......@@ -128,7 +276,34 @@ public class ReqForQuotationIC extends ValidatorEJB {
}
childNodeName = childNode.getNodeName();
if( childNodeName.equalsIgnoreCase("item_code") )
{
String itemCode = checkNull(genericUtility.getColumnValue("item_code", dom));
BaseLogger.log("3", null, null, "ReqForQuotationWiz itemCode wfValData case 1 [" + itemCode + "]");
String checkItemCodeSql = "select count(item_code) as itemCodeCount from item where item_code = ?";
PreparedStatement checkItemCodePs = connection.prepareStatement(checkItemCodeSql);
checkItemCodePs.setString(1, itemCode);
ResultSet checkItemCodeRs = checkItemCodePs.executeQuery();
while(checkItemCodeRs.next()) {
int itemCodeCont = checkItemCodeRs.getInt("itemCodeCount");
BaseLogger.log("3", null, null, "ReqForQuotationWiz itemCode wfValData case 1 itemCodeCont::[" + itemCodeCont + "]");
if(itemCodeCont<=0) {
errString = getErrorString("item_code", "STKVALITNE", userId);
break;
}
}
if(checkItemCodeRs != null)
{
checkItemCodeRs.close();
checkItemCodeRs = null;
}
if(checkItemCodePs != null)
{
checkItemCodePs.close();
checkItemCodePs = null;
}
}
if( childNodeName.equalsIgnoreCase("ptr_flag") )
{
......@@ -154,6 +329,28 @@ public class ReqForQuotationIC extends ValidatorEJB {
BaseLogger.log("3", null, null, "ReqForQuotationIC in competitor details null errString:: [" + errString + "]");
break;
}
}
}
if( childNodeName.equalsIgnoreCase("rate_quot") )
{
String phyAttrVal = "";
String itemCode = checkNull(genericUtility.getColumnValue("item_code", dom));
BaseLogger.log("3", null, null, "ReqForQuotationIC in condition itemCode wfValData itemCode::: [" + itemCode + "]");
String phyAttrValSql = "select PHY_ATTRIB_19 from item where item_code = ?";
PreparedStatement phyAttrValPs = connection.prepareStatement(phyAttrValSql);
phyAttrValPs.setString(1, itemCode);
ResultSet phyAttrValRs = phyAttrValPs.executeQuery();
while(phyAttrValRs.next()) {
phyAttrVal = checkNull(phyAttrValRs.getString("PHY_ATTRIB_19"));
}
BaseLogger.log("3", null, null, "ReqForQuotationIC in condition itemCode wfValData phyAttrVal::: [" + phyAttrVal + "]");
if(phyAttrVal.equalsIgnoreCase("SRNA")) {
errString = getErrorString("rate_quot", "INVALRC", userId);
BaseLogger.log("3", null, null, "ReqForQuotationIC in PHY_ATTRIB_19 details null errString:: [" + errString + "]");
break;
}
}
......@@ -253,6 +450,8 @@ public class ReqForQuotationIC extends ValidatorEJB {
String priceList = "";
int rate= 0;
String finEntity = "";
List<String> itemCodeList = new ArrayList<>();
try {
UserInfoBean userInfo = getUserInfo();
String siteCode = checkNull(userInfo.getSiteCode());
......@@ -279,9 +478,76 @@ public class ReqForQuotationIC extends ValidatorEJB {
switch (currentFormNo) {
case 1:
{
valueXmlString.append("<Detail1>");
if ("cust_code".equalsIgnoreCase(currentColumn.trim())) {
BaseLogger.log("3", null, null, "ReqForQuotationIC in item change case 1 cust_code condition");
case 2:
String custName = "", addr1 = "", addr2="", addr3="";
String custCode = checkNull(genericUtility.getColumnValue("cust_code", dom));
BaseLogger.log("3", null, null, "ReqForQuotationIC in case 1 cust_code:: "+custCode);
String custDetilsSql = "select cust_name, addr1 , addr2 , addr3 from customer where cust_code = ?";
PreparedStatement custDetailsPs = con.prepareStatement(custDetilsSql);
custDetailsPs.setString(1, custCode);
ResultSet custDetailsRs = custDetailsPs.executeQuery();
while(custDetailsRs.next()) {
custName = custDetailsRs.getString("cust_name");
addr1 = custDetailsRs.getString("addr1");
addr2 = custDetailsRs.getString("addr2");
addr3 = custDetailsRs.getString("addr3");
}
BaseLogger.log("3", null, null, "ReqForQuotationIC in case 1 custName:: "+custName);
valueXmlString.append("<cust_name>").append("<![CDATA["+custName+"]]>").append("</cust_name>\r\n");
valueXmlString.append("<addr1>").append("<![CDATA["+addr1+"]]>").append("</addr1>\r\n");
valueXmlString.append("<addr2>").append("<![CDATA["+addr2+"]]>").append("</addr2>\r\n");
valueXmlString.append("<addr3>").append("<![CDATA["+addr3+"]]>").append("</addr3>\r\n");
}
if ("item_ser".equalsIgnoreCase(currentColumn.trim()))
{
String itemSerDescr = "";
String itemSerForIC = checkNull(genericUtility.getColumnValue("item_ser", dom, "1"));
BaseLogger.log("0", null, userId, "case 1::: item_ser");
System.out.println("case 1---------itemSerForIC05M------[" + itemSerForIC + "]");
if(itemSerForIC != null && itemSerForIC.trim().length() > 0)
{
String[] itemSerArr = itemSerForIC.split(",");
String itemSerSql = "select descr from itemser where item_ser = ?";
try (PreparedStatement itemSerPs = con.prepareStatement(itemSerSql))
{
for(String itemSer : itemSerArr)
{
itemSerPs.setString(1, itemSer.trim());
try (ResultSet itemSerRs = itemSerPs.executeQuery())
{
if(itemSerRs.next())
{
if(itemSerDescr.length() > 0)
{
itemSerDescr += ", ";
}
itemSerDescr += checkNull(itemSerRs.getString("descr"));
}
}
}
}
}
valueXmlString.append("<descr><![CDATA[" + itemSerDescr + "]]></descr>\n");
}
valueXmlString.append("</Detail1>");
break;
}
case 2:
{
valueXmlString.append("<Detail2>");
if ("itm_default".equalsIgnoreCase(currentColumn.trim())) {
String custCode = checkNull(genericUtility.getColumnValue("cust_code", dom1));
......@@ -360,6 +626,148 @@ public class ReqForQuotationIC extends ValidatorEJB {
}
//PTR calculation start
String siteCustomerQuery =
"SELECT PRICE_LIST FROM SITE_CUSTOMER " +
"WHERE SITE_CODE = ? AND CUST_CODE = ?";
psSiteCustomer = con.prepareStatement(siteCustomerQuery);
psSiteCustomer.setString(1, siteCode);
psSiteCustomer.setString(2, custCode);
rs = psSiteCustomer.executeQuery();
if (rs.next()) {
priceList = rs.getString("PRICE_LIST");
}
rs.close();
psSiteCustomer.close();
// Step 2: If not found in SITE_CUSTOMER, fetch from CUSTOMER
if (priceList == null || priceList.trim().isEmpty()) {
String customerQuery =
"SELECT PRICE_LIST FROM CUSTOMER WHERE CUST_CODE = ?";
psCustomer = con.prepareStatement(customerQuery);
psCustomer.setString(1, custCode);
rs = psCustomer.executeQuery();
if (rs.next()) {
priceList = rs.getString("PRICE_LIST");
}
rs.close();
psCustomer.close();
}
// Step 3: Fetch RATE from PRICELIST table
if (priceList != null && !priceList.trim().isEmpty()) {
String priceListQuery =
"SELECT RATE FROM PRICELIST WHERE PRICE_LIST = ?";
psPriceList = con.prepareStatement(priceListQuery);
psPriceList.setString(1, priceList);
rs = psPriceList.executeQuery();
if (rs.next()) {
rate = rs.getInt("RATE");
}
rs.close();
psPriceList.close();
}
//PTR calculation end
valueXmlString.append("<rate_apprv>").append("<![CDATA["+MngmntAprvRate+"]]>").append("</rate_apprv>\r\n");
valueXmlString.append("<ptd>").append("<![CDATA["+ptd+"]]>").append("</ptd>\r\n");
valueXmlString.append("<pts>").append("<![CDATA["+pts+"]]>").append("</pts>\r\n");
valueXmlString.append("<ptr>").append("<![CDATA["+rate+"]]>").append("</ptr>\r\n");
//Management rate block[End]
}
if ("itm_defaultedit".equalsIgnoreCase(currentColumn.trim())) {
String custCode = checkNull(genericUtility.getColumnValue("cust_code", dom1));
BaseLogger.log("3", null, null, "ReqForQuotationIC in itm default ");
//Management rate block[Start]
String finEntityQuery = "select fin_entity from site where site_code = ?";
psFinEntity = con.prepareStatement(finEntityQuery);
psFinEntity.setString(1, siteCode);
rs = psFinEntity.executeQuery();
if(rs.next()) {
finEntity = checkNull(rs.getString("fin_entity"));
}
BaseLogger.log("3", null, null, "ReqForQuotationIC in itm default finEntity:: "+finEntity);
rs.close();
psFinEntity.close();
// Now, use finEntity to fetch VAR_VALUE from finparm
String varValueQuery = "select VAR_VALUE from finparm where ADDL_VALUE = ?";
PreparedStatement psVarValue = con.prepareStatement(varValueQuery);
psVarValue.setString(1, finEntity);
ResultSet rsVarValue = psVarValue.executeQuery();
String varValue = null;
if (rsVarValue.next()) {
varValue = checkNull(rsVarValue.getString("VAR_VALUE"));
}
BaseLogger.log("3", null, null, "ReqForQuotationIC in itm default varValue:: " + varValue);
// Clean up the result set and prepared statement for the varValue query
rsVarValue.close();
psVarValue.close();
// Finally, use varValue to fetch the rate from pricelist
String rateQuery = "select rate from pricelist where price_list = ?";
PreparedStatement psRate = con.prepareStatement(rateQuery);
psRate.setString(1, varValue);
ResultSet rsRate = psRate.executeQuery();
int MngmntAprvRate = 0;
if (rsRate.next()) {
MngmntAprvRate = rsRate.getInt("rate");
}
BaseLogger.log("3", null, null, "ReqForQuotationIC in itm default rate:: " + rate);
// Clean up the result set and prepared statement for the rate query
rsRate.close();
psRate.close();
String priceSql =
"SELECT fp.VAR_NAME, pl.rate " +
"FROM finparm fp " +
"JOIN site s ON s.fin_entity = fp.ADDL_VALUE " +
"JOIN pricelist pl ON pl.price_list = fp.VAR_VALUE " +
"WHERE s.site_code = ? " +
"AND fp.VAR_NAME IN ('RFQ_PTS','RFQ_PTD')";
PreparedStatement psPrice = con.prepareStatement(priceSql);
psPrice.setString(1, siteCode);
ResultSet rsPrice = psPrice.executeQuery();
BigDecimal pts = null;
BigDecimal ptd = null;
BigDecimal PriceRate = null;
while (rsPrice.next()) {
String varName = checkNull(rsPrice.getString("VAR_NAME"));
PriceRate = rsPrice.getBigDecimal("rate");
if ("RFQ_PTS".equals(varName)) {
pts = PriceRate;
} else if ("RFQ_PTD".equals(varName)) {
ptd = PriceRate;
}
}
//PTR calculation start
String siteCustomerQuery =
"SELECT PRICE_LIST FROM SITE_CUSTOMER " +
......@@ -428,15 +836,17 @@ public class ReqForQuotationIC extends ValidatorEJB {
if ("ptr_flag".equalsIgnoreCase(currentColumn.trim())) {
BaseLogger.log("3", null, null, "ReqForQuotationIC in ptr_flag ");
String custCode = checkNull(genericUtility.getColumnValue("cust_code", dom1));
String rateStr = checkNull(genericUtility.getColumnValue("ptr", dom));
BaseLogger.log("3", null, null, "ReqForQuotationIC in ptr_flat condition:: "+ptrFlag);
BaseLogger.log("3", null, null, "ReqForQuotationIC in ptr_flat condition siteCode:: "+siteCode);
BaseLogger.log("3", null, null, "ReqForQuotationIC in ptr_flat condition custCode:: "+custCode);
BaseLogger.log("3", null, null, "ReqForQuotationIC in ptr_flat condition ptr:: "+rateStr);
if(ptrFlag.equalsIgnoreCase("Y")) {
BaseLogger.log("3", getUserInfo(), null, "Final RATE : " + rate);
valueXmlString.append("<rate_quot protect='1'>").append("<![CDATA["+rate+"]]>").append("</rate_quot>\r\n");
valueXmlString.append("<rate_quot protect='1'>").append("<![CDATA["+rateStr+"]]>").append("</rate_quot>\r\n");
}else if(ptrFlag.equalsIgnoreCase("N")) {
......@@ -457,7 +867,7 @@ public class ReqForQuotationIC extends ValidatorEJB {
BigDecimal rateQuotVal = new BigDecimal(rateQuot);
BigDecimal ratePtrVal = new BigDecimal(ratePtr);
BaseLogger.log("3", null, null, "ReqForQuotationIC after conversion rateQuotVal:: "+rateQuotVal+" rateApprvVal::"+rateApprvVal);
BaseLogger.log("3", null, null, "ReqForQuotationIC after conversion rateQuotVal:: "+rateQuotVal+" rateApprvVal::"+rateApprvVal+ " ratePtrVal::"+ratePtrVal);
......@@ -479,12 +889,12 @@ public class ReqForQuotationIC extends ValidatorEJB {
if (rateApprvVal.compareTo(rateQuotVal) > 0) {
BaseLogger.log("3", null, null, "in rateApprvVal greater condition");
String detail1Xml = "<Detail1><mgmnt_apprv><![CDATA[Y]]></mgmnt_apprv><wf_status><![CDATA[P]]></wf_status></Detail1>";
String detail1Xml = "<mgmnt_apprv><![CDATA[Y]]></mgmnt_apprv><wf_status><![CDATA[P]]></wf_status>";
int pos = valueXmlString.indexOf("</header>");
int pos = valueXmlString.indexOf("<Detail1>");
if (pos != -1) {
pos += "</header>".length(); // move after </header>
pos += "<Detail1>".length(); // move after </header>
valueXmlString.insert(pos, detail1Xml);
}
......@@ -492,13 +902,28 @@ public class ReqForQuotationIC extends ValidatorEJB {
}
//Added condition if ptr and special rate is same direct create the sales quotation
/*
* if (rateQuotVal.compareTo(ratePtrVal) == 0) { BaseLogger.log("3", null, null,
* "In PTR and Special rate equal condition"); ReqForQuotationAprv
* reqForQuotationAprv = new ReqForQuotationAprv(); String domString =
* genericUtility.serializeDom(dom).toString(); BaseLogger.log("3", null, null,
* "domString>>>>> "+domString); String result =
* reqForQuotationAprv.updateWFStatus(domString, con, xtraParams);
* BaseLogger.log("3", null, null, "ReqForQuotationAprv result>>>>> "+result);
*
* }
*/
}
}
valueXmlString.append("</Detail2>\r\n");
break;
}
}
BaseLogger.log("3", null, null, "in rateApprvVal greater condition reStr>>>>> "+reStr);
valueXmlString.append("</Root>\r\n");
} catch (Exception e) {
......@@ -547,4 +972,26 @@ public class ReqForQuotationIC extends ValidatorEJB {
}
return input;
}
public static boolean isDateInvalid(String validUptoStr)
{
try
{
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd/MM/yy");
LocalDate validDate = LocalDate.parse(validUptoStr, formatter);
LocalDate currentDate = LocalDate.now();
if(validDate.isBefore(currentDate))
{
return true;
}
}
catch(Exception e)
{
BaseLogger.log("3", null, null, "Exception in date validation [" + e + "]");
}
return false;
}
}
package ibase.webitm.ejb.dis;
import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.ejb.ValidatorEJB;
import ibase.system.config.AppConnectParm;
import ibase.system.config.ConnDriver;
import ibase.utility.BaseLogger;
import ibase.utility.CommonConstants;
import ibase.webitm.ejb.fin.*;
import ibase.webitm.ejb.mfg.MfgCommon;
import ibase.utility.E12GenericUtility;
import ibase.utility.UserInfoBean;
import ibase.webitm.utility.ITMException;
import java.math.BigDecimal;
import java.net.InetAddress;
import java.rmi.RemoteException;
import java.sql.*;
import java.text.DateFormat;
import java.text.Format;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;
import javax.naming.InitialContext;
import org.w3c.dom.*;
......@@ -20,6 +39,7 @@ import org.w3c.dom.*;
public class ReqForQuotationWiz extends ValidatorEJB{
static int domID = 1;
@Override
public String itemChanged() throws RemoteException, ITMException
......@@ -31,8 +51,424 @@ public class ReqForQuotationWiz extends ValidatorEJB{
}
public String wfValData(String xmlString, String xmlString1,String xmlString2, String objContext, String editFlag, String xtraParams, String formName) throws RemoteException,ITMException
{
Document dom = null;
Document dom1 = null;
Document dom2 = null;
String errString = "";
try
{
System.out.println("wfValData DOM1:StrgBrandActWiz ["+xmlString+"]");
System.out.println("wfValData DOM2:StrgBrandActWiz ["+xmlString1+"]");
System.out.println("wfValData DOM3:StrgBrandActWiz ["+xmlString2+"]");
if(xmlString != null && xmlString.trim().length()!=0)
{
dom = parseString(xmlString);
}
else
{
System.out.println("xmlstring is null StrgBrandActWiz Validation");
}
if(xmlString1 != null && xmlString1.trim().length()!=0)
{
dom1 = parseString(xmlString1);
}
else
{
System.out.println("xmlstring1 is null StrgBrandActWiz Validation");
}
if(xmlString2 != null && xmlString2.trim().length()!=0)
{
dom2 = parseString(xmlString2);
}
else
{
System.out.println("xmlstring2 is null StrgBrandActWiz Validation");
}
System.out.println("Before call valdata StrgBrandActWiz");
errString = wfValData(dom,dom1,dom2,objContext,editFlag,xtraParams,formName);
}
catch(Exception e)
{
System.out.println("Exception : [StrgBrandActWiz Validation][wfValData(String xmlString)] : ==>\n"+e.getMessage());
}
return (errString);
}
public String wfValData(Document dom, Document dom1,Document dom2, String objContext, String editFlag, String xtraParams, String formName) throws RemoteException,ITMException
{
E12GenericUtility genericUtility = new ibase.utility.E12GenericUtility();
String userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginCode");
String logincode = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginCode");
String errString = "";
int currentFormNo = 0;
NodeList parentList = null;
NodeList childList = null;
Node parentNode = null;
Node childNode = null;
String childNodeName = "";
String columnValue = "";
Connection connectionObject = null;
PreparedStatement pstmt = null;
ResultSet rSet = null ;
ResultSet rs = null ;
String propDateValue = "";
int firstMonth = 01;
int lastMonth = 12;
ITMDBAccessEJB itmDBAccessLocal = null;
int noOfChilds = 0;
ArrayList prdList = new ArrayList();
String paramValue="";
try
{
connectionObject = getConnection();
AppConnectParm appConnect = new AppConnectParm();
Properties p = appConnect.getProperty();
itmDBAccessLocal = new ITMDBAccessEJB();
String sql="";
System.out.println("wfValData objContext StrgBrandActWiz:: ["+objContext+"]");
if(objContext != null && objContext.trim().length()>0)
{
currentFormNo = Integer.parseInt(objContext);
}
switch ( currentFormNo )
{
case 1:
{
if( errString.indexOf( "<Errors>" ) == -1 )
{
parentList = dom.getElementsByTagName("Detail"+ currentFormNo);
int parentNodeListLength = parentList.getLength();
for (int prntCtr = 0; prntCtr < parentNodeListLength; prntCtr++ )
{
parentNode = parentList.item(prntCtr);
childList = parentNode.getChildNodes();
noOfChilds = childList.getLength();
for (int ctr = 0; ctr < noOfChilds; ctr++)
{
childNode = childList.item(ctr);
if( childNode.getNodeType() != Node.ELEMENT_NODE )
{
continue;
}
if ( childNode != null && childNode.getFirstChild() != null )
{
columnValue = childNode.getFirstChild().getNodeValue();
}
childNodeName = childNode.getNodeName();
BaseLogger.log("3", null, null, "ReqForQuotationWiz childNodeName [" + childNodeName + "]");
if( childNodeName.equalsIgnoreCase("cust_code") )
{
String custCode = checkNull(genericUtility.getColumnValue("cust_code", dom));
BaseLogger.log("3", null, null, "ReqForQuotationWiz custCode wfValData case 1 [" + custCode + "]");
String checkCustCodeSql = "select count(cust_code) as custCodeCount from customer where cust_code = ?";
PreparedStatement checkCustCodePs = connectionObject.prepareStatement(checkCustCodeSql);
checkCustCodePs.setString(1, custCode);
ResultSet checkCustCodeRs = checkCustCodePs.executeQuery();
while(checkCustCodeRs.next()) {
int custCodeCont = checkCustCodeRs.getInt("custCodeCount");
BaseLogger.log("3", null, null, "ReqForQuotationWiz custCode wfValData case 1 custCodeCont::[" + custCodeCont + "]");
if(custCodeCont<=0) {
errString = getErrorString("cust_code", "VTCUST1", userId);
break;
}
}
if(checkCustCodeRs != null)
{
checkCustCodeRs.close();
checkCustCodeRs = null;
}
if(checkCustCodePs != null)
{
checkCustCodePs.close();
checkCustCodePs = null;
}
}
if( childNodeName.equalsIgnoreCase("site_code") )
{
String siteCode = checkNull(genericUtility.getColumnValue("site_code", dom));
BaseLogger.log("3", null, null, "ReqForQuotationWiz siteCode wfValData case 1 [" + siteCode + "]");
String checkSiteCodeSql = "select count(site_code) as siteCodeCount from site where site_code = ?";
PreparedStatement checkSiteCodePs = connectionObject.prepareStatement(checkSiteCodeSql);
checkSiteCodePs.setString(1, siteCode);
ResultSet checkSiteCodeRs = checkSiteCodePs.executeQuery();
while(checkSiteCodeRs.next()) {
int siteCodeCont = checkSiteCodeRs.getInt("siteCodeCount");
BaseLogger.log("3", null, null, "ReqForQuotationWiz siteCode wfValData case 1 siteCodeCont::[" + siteCodeCont + "]");
if(siteCodeCont<=0) {
errString = getErrorString("site_code", "VTSITCD1", userId);
break;
}
}
if(checkSiteCodeRs != null)
{
checkSiteCodeRs.close();
checkSiteCodeRs = null;
}
if(checkSiteCodePs != null)
{
checkSiteCodePs.close();
checkSiteCodePs = null;
}
}
if( childNodeName.equalsIgnoreCase("item_ser") )
{
String itemSerStr = checkNull(genericUtility.getColumnValue("item_ser", dom));
BaseLogger.log("3", null, null, "ReqForQuotationWiz itemSerStr wfValData case 1 [" + itemSerStr + "]");
if (itemSerStr != null && itemSerStr.length() > 0) {
String[] itemSerArr = itemSerStr.split(",");
for (String itemSer : itemSerArr) {
BaseLogger.log("3", null, null, "ReqForQuotationWiz item_ser wfValData case 1 itemSer [" + itemSer + "]");
sql = "SELECT count(1) FROM itemser WHERE item_ser = ?";
pstmt = connectionObject.prepareStatement(sql);
pstmt.setString(1, itemSer.trim());
rs = pstmt.executeQuery();
long count = 0;
if (rs.next()) {
count = rs.getLong(1);
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
if (count == 0) {
errString = getErrorString("item_ser", "VTITEMSER1", userId);
break;
}
}
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(rs != null)
{
rs.close();
rs = null;
}
}
}//end of inner for loop
}//end of first for loop
}
break;
}
case 2:
{
if( errString.indexOf( "<Errors>" ) == -1 )
{
parentList = dom.getElementsByTagName("Detail"+ currentFormNo);
int parentNodeListLength = parentList.getLength();
for (int prntCtr = 0; prntCtr < parentNodeListLength; prntCtr++ )
{
parentNode = parentList.item(prntCtr);
childList = parentNode.getChildNodes();
noOfChilds = childList.getLength();
for (int ctr = 0; ctr < noOfChilds; ctr++)
{
childNode = childList.item(ctr);
if( childNode.getNodeType() != Node.ELEMENT_NODE )
{
continue;
}
if ( childNode != null && childNode.getFirstChild() != null )
{
columnValue = childNode.getFirstChild().getNodeValue();
}
childNodeName = childNode.getNodeName();
BaseLogger.log("3", null, null, "ReqForQuotationWiz childNodeName [" + childNodeName + "]");
if( childNodeName.equalsIgnoreCase("item_code") )
{
String itemCode = checkNull(genericUtility.getColumnValue("item_code", dom));
BaseLogger.log("3", null, null, "ReqForQuotationWiz itemCode wfValData case 1 [" + itemCode + "]");
String checkItemCodeSql = "select count(item_code) as itemCodeCount from item where cust_code = ?";
PreparedStatement checkItemCodePs = connectionObject.prepareStatement(checkItemCodeSql);
checkItemCodePs.setString(1, itemCode);
ResultSet checkItemCodeRs = checkItemCodePs.executeQuery();
while(checkItemCodeRs.next()) {
int itemCodeCont = checkItemCodeRs.getInt("itemCodeCount");
BaseLogger.log("3", null, null, "ReqForQuotationWiz itemCode wfValData case 1 itemCodeCont::[" + itemCodeCont + "]");
if(itemCodeCont<=0) {
errString = getErrorString("item_code", "STKVALITNE", userId);
break;
}
}
if(checkItemCodeRs != null)
{
checkItemCodeRs.close();
checkItemCodeRs = null;
}
if(checkItemCodePs != null)
{
checkItemCodePs.close();
checkItemCodePs = null;
}
}
if( childNodeName.equalsIgnoreCase("ptr_flag") )
{
String ptrFlag = checkNull(genericUtility.getColumnValue("ptr_flag", dom));
String competitorRate = checkNull(genericUtility.getColumnValue("competitor_rate", dom));
String competitorItem = checkNull(genericUtility.getColumnValue("competitor_item", dom));
String competitorName = checkNull(genericUtility.getColumnValue("competitor_name", dom));
BaseLogger.log("3", null, null, "ReqForQuotationWiz ptrFlag wfValData [" + ptrFlag + "]");
BaseLogger.log("3", null, null, "ReqForQuotationWiz competitorRate wfValData [" + competitorRate + "]");
BaseLogger.log("3", null, null, "ReqForQuotationWiz competitorItem wfValData [" + competitorItem + "]");
BaseLogger.log("3", null, null, "ReqForQuotationWiz competitorNane wfValData [" + competitorName + "]");
if (ptrFlag.equalsIgnoreCase("N") || ptrFlag.trim().isEmpty()) {
BaseLogger.log("3", null, null, "ReqForQuotationWiz in condition ptrFlag wfValData::: [" + ptrFlag + "]");
// Check if any of the competitor fields are null or blank
if ((competitorRate == null || competitorRate.trim().isEmpty())
|| (competitorItem == null || competitorItem.trim().isEmpty())
|| (competitorName == null || competitorName.trim().isEmpty())) {
BaseLogger.log("3", null, null, "ReqForQuotationWiz in competitor details null [" + ptrFlag + "]");
errString = getErrorString("ptr_flag", "COMPDETM", userId);
BaseLogger.log("3", null, null, "ReqForQuotationWiz in competitor details null errString:: [" + errString + "]");
break;
}
}
}//end of Sales_pers Validation
}//end of inner for loop
}//end of first for loop
}//end of errorstring
break;
}
}//end of validation of first form
}//end of Try block wfvalData
catch(Exception e)
{
e.printStackTrace();
errString = "";
errString = genericUtility.createErrorString( e ) ;
String messageValue="",message = "";
if( errString.indexOf("<Errors>")!=-1 )
{
if( errString.length() > 0 )
{
String msgDescr = errString.substring(errString.indexOf("<description>")+("<description>").length(),errString.indexOf("</description>"));
messageValue = msgDescr.substring(msgDescr.indexOf("<![CDATA[")+("<![CDATA[").length(),msgDescr.indexOf("]"));
String messageDescr = errString.substring(errString.indexOf("<message>")+("<message>").length(),errString.indexOf("</message>"));
message = messageDescr.substring(messageDescr.indexOf("<![CDATA[")+("<![CDATA[").length(),messageDescr.indexOf("]"));
System.out.println("errorMessage==>"+messageValue);
StringBuffer valueXmlErrorString = new StringBuffer( "<?xmlversion=\"1.0\"?>\r\n<Root>\r\n<Header>\r\n<Errors>\r\n" );
valueXmlErrorString.append("<error id=\"INVDATA\" type=\"E\" column_name=\"\">");
valueXmlErrorString.append("<message><![CDATA[").append(message).append("]]></message>\r\n");
valueXmlErrorString.append("<description><![CDATA[").append(messageValue).append("]]></description>\r\n");
valueXmlErrorString.append("<type>E</type>\r\n");
valueXmlErrorString.append("<option></option>\r\n");
valueXmlErrorString.append("<time></time>\r\n");
valueXmlErrorString.append("<alarm></alarm>\r\n");
valueXmlErrorString.append("<source></source>\r\n");
valueXmlErrorString.append("<trace>Error : NO DATA</trace>\r\n");
valueXmlErrorString.append("<redirect>1</redirect>\r\n");
valueXmlErrorString.append("</error>\r\n");
valueXmlErrorString.append("</Errors>\r\n");
valueXmlErrorString.append("</Header>\r\n");
valueXmlErrorString.append( "</Root>\r\n" );
System.out.println( "\n****valueXmlErrorString :" + valueXmlErrorString.toString() + ":********" );
errString =valueXmlErrorString.toString();
}
}
}//end of catch after try in wfvaldata
finally
{
try
{
if(rSet !=null)
{
rSet.close();
rSet = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
if( connectionObject != null && ! connectionObject.isClosed() )
{
connectionObject.close();
connectionObject = null;
}
}
catch(Exception e)
{
System.out.println( "Exception :StrgBrandActWiz wfvalData :==>\n"+e.getMessage());
errString = "";
errString = genericUtility.createErrorString( e ) ;
System.out.println( "errString ::" +errString + ":" );
String messageValue="",message = "";
if( errString.indexOf("<Errors>")!=-1 )
{
if( errString.length() > 0 )
{
String msgDescr = errString.substring(errString.indexOf("<description>")+("<description>").length(),errString.indexOf("</description>"));
messageValue = msgDescr.substring(msgDescr.indexOf("<![CDATA[")+("<![CDATA[").length(),msgDescr.indexOf("]"));
String messageDescr = errString.substring(errString.indexOf("<message>")+("<message>").length(),errString.indexOf("</message>"));
message = messageDescr.substring(messageDescr.indexOf("<![CDATA[")+("<![CDATA[").length(),messageDescr.indexOf("]"));
System.out.println("errorMessage==>"+messageValue);
StringBuffer valueXmlErrorString = new StringBuffer( "<?xmlversion=\"1.0\"?>\r\n<Root>\r\n<Header>\r\n<Errors>\r\n" );
valueXmlErrorString.append("<error id=\"INVDATA\" type=\"E\" column_name=\"\">");
valueXmlErrorString.append("<message><![CDATA[").append(message).append("]]></message>\r\n");
valueXmlErrorString.append("<description><![CDATA[").append(messageValue).append("]]></description>\r\n");
valueXmlErrorString.append("<type>E</type>\r\n");
valueXmlErrorString.append("<option></option>\r\n");
valueXmlErrorString.append("<time></time>\r\n");
valueXmlErrorString.append("<alarm></alarm>\r\n");
valueXmlErrorString.append("<source></source>\r\n");
valueXmlErrorString.append("<trace>Error : NO DATA</trace>\r\n");
valueXmlErrorString.append("<redirect>1</redirect>\r\n");
valueXmlErrorString.append("</error>\r\n");
valueXmlErrorString.append("</Errors>\r\n");
valueXmlErrorString.append("</Header>\r\n");
valueXmlErrorString.append( "</Root>\r\n" );
System.out.println( "\n****valueXmlErrorString :" + valueXmlErrorString.toString() + ":********" );
errString =valueXmlErrorString.toString();
}
}
}
}//end of finally block of wfvalData
System.out.println("errString wfvalData ["+errString+"]");
return errString;
}//End WfValData
@Override
public String itemChanged(String xmlCurrFrmString, String xmlHdrFrmString, String xmlAllFrmString, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException, ITMException
public String itemChanged(String xmlCurrFrmString, String xmlHdrFrmString, String xmlAllFrmString, String objContext, String currentColumn, String editFlag, String xtraParams, String formName) throws RemoteException, ITMException
{
BaseLogger.log("3", getUserInfo(), null,"In ReqForQuotationWiz itemChanged2");
BaseLogger.log("3", getUserInfo(), null,"DEBUG currentColumn RAW = [" + currentColumn + "]");
......@@ -65,7 +501,7 @@ public class ReqForQuotationWiz extends ValidatorEJB{
System.out.println("xmlCurrFrmString--------"+xmlCurrFrmString);
System.out.println("xmlHdrFrmString--------"+xmlHdrFrmString);
System.out.println("xmlAllFrmString--------"+xmlAllFrmString);
errString = itemChanged( currDom, hdrDom, allDom, objContext, currentColumn, editFlag, xtraParams );
errString = itemChanged( currDom, hdrDom, allDom, objContext, currentColumn, editFlag, xtraParams, formName );
System.out.println ( "ErrString :" + errString);
}
catch (Exception e)
......@@ -81,193 +517,185 @@ public class ReqForQuotationWiz extends ValidatorEJB{
@Override
public String itemChanged( Document currDom, Document hdrDom, Document allDom, String objContext, String currentColumn, String editFlag, String xtraParams ) throws RemoteException,ITMException
// public String itemChanged( Document currDom, Document hdrDom, Document allDom, String objContext, String currentColumn, String editFlag, String xtraParams ) throws RemoteException,ITMException
// {
// BaseLogger.log("3", getUserInfo(), null,"In ReqForQuotationWiz itemChanged3");
// BaseLogger.log("3", getUserInfo(), null,"DEBUG currentColumn RAW = [" + currentColumn + "]");
// BaseLogger.log("3", getUserInfo(), null,"DEBUG currentColumn trimmed = [" +
// (currentColumn == null ? "null" : currentColumn.trim()) + "]");
// BaseLogger.log("3", getUserInfo(), null,"DEBUG currentColumn length = " +
// (currentColumn == null ? 0 : currentColumn.length()));
// String retValue = "";
// try
// {
// retValue = default_ItemChanged( currDom, hdrDom, allDom, objContext, currentColumn, editFlag, xtraParams );
// }
// catch (Exception e)
// {
// e.printStackTrace();
// throw new ITMException(e);
// }
// return retValue;
//
// }
public String itemChanged(Document dom, Document dom1, Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams, String formName) throws RemoteException,ITMException
{
BaseLogger.log("3", getUserInfo(), null,"In ReqForQuotationWiz itemChanged3");
BaseLogger.log("3", getUserInfo(), null,"DEBUG currentColumn RAW = [" + currentColumn + "]");
BaseLogger.log("3", getUserInfo(), null,"DEBUG currentColumn trimmed = [" +
(currentColumn == null ? "null" : currentColumn.trim()) + "]");
BaseLogger.log("3", getUserInfo(), null,"DEBUG currentColumn length = " +
(currentColumn == null ? 0 : currentColumn.length()));
String retValue = "";
String returnStr="";
try
{
retValue = default_ItemChanged( currDom, hdrDom, allDom, objContext, currentColumn, editFlag, xtraParams );
returnStr = defaultDataWiz(dom, dom1, dom2, objContext, currentColumn, editFlag, xtraParams, formName);
}
catch (Exception e)
{
catch(Exception e){
e.printStackTrace();
throw new ITMException(e);
}
return retValue;
return returnStr;
}
public String default_ItemChanged( Document currDom, Document hdrDom, Document allDom, String objContext, String currentColumn, String editFlag, String xtraParams ) throws RemoteException,ITMException
{
BaseLogger.log("3", getUserInfo(), null,"In ReqForQuotationWiz default_ItemChangeddddddddd2612");
BaseLogger.log("3", getUserInfo(), null,"DEBUG currentColumn RAW = [" + currentColumn + "]");
BaseLogger.log("3", getUserInfo(), null,"DEBUG currentColumn trimmed = [" +
(currentColumn == null ? "null" : currentColumn.trim()) + "]");
BaseLogger.log("3", getUserInfo(), null,"DEBUG currentColumn length = " +
(currentColumn == null ? 0 : currentColumn.length()));
String columnValue = "";
private String defaultDataWiz( Document dom, Document dom1, Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams, String formName ) throws RemoteException,ITMException
{
int cnt = 0;
int domID = 0;
ResultSet rs1 = null,rs2=null;
ResultSet rs = null;
Connection conn = null;
PreparedStatement pstmt1 = null;
int line =0,domId=0,curdomID=0;
E12GenericUtility genericUtility = new E12GenericUtility();
FinCommon finCommon = new FinCommon();
MfgCommon mfgCommon = new MfgCommon();
DistCommon distComm = new DistCommon();
NodeList parentNodeList = null;
Node parentNode = null;
Node childNode = null;
NodeList childNodeList = null;
int childNodeLength = 0,childNodeListLength;
String childNodeName = "";
int ctr = 0;
String loginEmpCode="";
String operationStr="",specRemarks="",status="",jobId="",jobCardFrom="",jobCardTo="",specCode="",jobCard="",specCodeDescr="";
String itemDescr="",procCode="",routeCode="",workCtr="",operStatus="",chgUser="",chgTerm="",operStatushdr="";
Timestamp chgDate=null,todayT=null;
int operation=0, lineNo=0,operationT=0;
String mfgLine="", mfgLayout="", mfgLayoutDescr="",remarks="",today="",mcCode="",empNameQc="";
int seqNumber=0,setTime=0,runTime=0;
String machinCode="",operationStatus="",parentTranId="",revTranId="",confirmed="",empCodeAprv="";
String custCode="",empNameAprv="",empCodeQc="";
double quantity=0.0;
double quantityPassed=0.0;
double quantityRejected=0.0;
String actualResult="";
String qcResult="";
String exceptedResult="";
String specRepresent="";
String qcResultDescr="";
String domIDStr="";
PreparedStatement pstmt = null;
PreparedStatement psSiteCustomer = null;
PreparedStatement psCustomer = null;
PreparedStatement psPriceList = null;
PreparedStatement psFinEntity = null;
String sql = "";
String userId = "";
String currDate = "";
String chgTerm ="";
String priceList = "";
int rate= 0;
String finEntity = "";
String propDateValue = "";
String [] temp = new String [10];
StringBuffer valueXmlString = new StringBuffer();
int currentFormNo = 0;
List<String> itemCodeList = new ArrayList<>();
String custName = "";
String itemSerDescr= "";
int pos = 0;
//Chnages start
E12GenericUtility genericUtility = new ibase.utility.E12GenericUtility();
try
{
StringBuffer valueXmlString = null;
int currentFormNo = 0;
String userId = "";
String sql = "";
try {
InetAddress ownIP=InetAddress.getLocalHost();
chgTerm = ownIP.getHostAddress();
conn = getConnection();
//changes end
UserInfoBean userInfo = getUserInfo();
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
loginEmpCode = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginEmpCode"));
String loginSite = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode"));
userId = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode"));
chgTerm = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "chgTerm"));
String itemSer = checkNull(genericUtility.getColumnValue("item_ser",hdrDom,"1"));
todayT = new Timestamp(System.currentTimeMillis());
today = sdf.format(todayT);
String siteCode = checkNull(userInfo.getSiteCode());
userId = genericUtility.getValueFromXTRA_PARAMS( xtraParams, "loginCode" );
BaseLogger.log("0", null,userId,"case 1---------itemDefault------gsb start");
BaseLogger.log("0", null,userId,"defaultDataWiz siteCode: "+siteCode);
System.out.println( "todayT[" + todayT + "]" );
System.out.println( "today[" + today + "]" );
DateFormat dtFormat = new SimpleDateFormat(getApplDateFormat());
java.util.Date date = Calendar.getInstance().getTime();
currDate = dtFormat.format( date );
if (chgTerm.trim().length() == 0)
{
chgTerm = "SYSTEM";
}
if (userId.trim().length() == 0)
{
userId = "BASE";
}
Calendar cal = Calendar.getInstance();
cal.add(Calendar.MONTH, -1);
Date result = cal.getTime();
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
columnValue = genericUtility.getColumnValue( currentColumn, currDom );
conn = getConnection();
String prevPrd = String.valueOf(sdf.format(result));
String curPrd = String.valueOf(sdf.format(date));
String curDate = curPrd.substring(curPrd.length()-2,curPrd.length());
prevPrd = prevPrd.substring(0,prevPrd.length()-2);
curPrd = curPrd.substring(0,curPrd.length()-2);
System.out.println("previous Period....::"+prevPrd+"....current Prd code....::"+curPrd+"...current Date...::"+curDate);
if( objContext != null && objContext.trim().length() > 0 )
{
currentFormNo = Integer.parseInt( objContext );
}
valueXmlString = new StringBuffer( "<?xml version=\"1.0\"?>\r\n<Root>\r\n<Header>\r\n<editFlag>" );
valueXmlString.append( editFlag ).append( "</editFlag>\r\n</Header>\r\n<Errors>\r\n</Errors>\r\n" );
switch(currentFormNo){
case 1:
if( currentColumn.equalsIgnoreCase( "itm_default" ))
{
BaseLogger.log("0", null,userId,"case 1---------itemDefault------gsb-----");
userId = getValueFromXTRA_PARAMS(xtraParams, "loginEmpCode"); // To get user details after login
if (objContext != null && objContext.trim().length() > 0) {
currentFormNo = Integer.parseInt(objContext);
}
// start creating xml
valueXmlString = new StringBuffer("<?xml version=\"1.0\"?><Root><header><editFlag>");
valueXmlString.append(editFlag).append("</editFlag></header>");
switch (currentFormNo) {
case 1:
valueXmlString.append("<Detail1>");
if ("itm_default".equalsIgnoreCase(currentColumn.trim())) {
BaseLogger.log("0", null,userId,"case 1---------itemDefault------");
valueXmlString.append( "<Detail"+ objContext+" domID='"+ 1 +"' objContext = '"+currentFormNo+"' objName=\"qc_resentry_wiz\" selected=\"N\">\r\n" );
valueXmlString.append( "<attribute selected=\"N\" updateFlag=\"A\" status=\"N\" pkNames=\"tran_id\"/>\r\n" );
valueXmlString.append( "<tran_id/>" );
valueXmlString.append("<tran_date protect = '1'>").append("<![CDATA[" + today + "]]>").append("</tran_date>");
valueXmlString.append("<tran_date protect = '1'>").append("<![CDATA[" + currDate + "]]>").append("</tran_date>");
valueXmlString.append("</Detail"+objContext+">");
}
}//end of itmdefault case1
if (currentColumn.equalsIgnoreCase( "item_ser" ))
{
String itemSerDescr = "";
String itemSerForIC = checkNull(genericUtility.getColumnValue("item_ser", dom, "1"));
if ("item_ser".equalsIgnoreCase(currentColumn.trim())) {
BaseLogger.log("0", null, userId, "case 1::: item_ser");
System.out.println("case 1---------itemSerForIC05M------[" + itemSerForIC + "]");
String itemSerForIC = checkNull(genericUtility.getColumnValue("item_ser",currDom,"1"));
System.out.println("case 1---------itemSerForIC------[" +itemSerForIC + "]");
if(itemSerForIC != null && itemSerForIC.trim().length() > 0)
{
String[] itemSerArr = itemSerForIC.split(",");
String itemSerSql = "select descr from itemser where item_ser = ?";
PreparedStatement itemSerPs = conn.prepareStatement(itemSerSql);
itemSerPs.setString(1, itemSerForIC);
ResultSet itemSerRs = itemSerPs.executeQuery();
while(itemSerRs.next()) {
itemSerDescr = itemSerRs.getString("descr");
}
valueXmlString.append("<descr>").append("<![CDATA[" + itemSerDescr + "]]>").append("</descr>");
try (PreparedStatement itemSerPs = conn.prepareStatement(itemSerSql))
{
for(String itemSer : itemSerArr)
{
itemSerPs.setString(1, itemSer.trim());
if (itemSerRs != null)
try (ResultSet itemSerRs = itemSerPs.executeQuery())
{
itemSerRs.close();
itemSerRs = null;
}
if (itemSerPs != null)
if(itemSerRs.next())
{
if(itemSerDescr.length() > 0)
{
itemSerPs.close();
itemSerPs = null;
itemSerDescr += ", ";
}
itemSerDescr += checkNull(itemSerRs.getString("descr"));
}
}
}
}
}
valueXmlString.append("<descr><![CDATA[" + itemSerDescr + "]]></descr>\n");
}
if ("cust_code".equalsIgnoreCase(currentColumn.trim())) {
if (currentColumn.equalsIgnoreCase( "cust_code" )) {
BaseLogger.log("0", null,userId,"case 1---------custCodeForIC::------]");
String custCodeForIC = checkNull(genericUtility.getColumnValue("cust_code",currDom,"1"));
String custCodeForIC = checkNull(genericUtility.getColumnValue("cust_code",dom,"1"));
String custName = "",addr1="", addr2="", addr3="";
BaseLogger.log("0", null,userId,"case 1---------custCodeForIC------[" +custCodeForIC + "]");
String custNameSql = "select cust_name from customer where cust_code = ?";
String custNameSql = "select cust_name, addr1 , addr2 , addr3 from customer where cust_code = ?";
PreparedStatement custNamePs = conn.prepareStatement(custNameSql);
custNamePs.setString(1, custCodeForIC);
ResultSet custNameRs = custNamePs.executeQuery();
while(custNameRs.next()) {
custName = custNameRs.getString("cust_name");
addr1 = custNameRs.getString("addr1");
addr2 = custNameRs.getString("addr2");
addr3 = custNameRs.getString("addr3");
}
valueXmlString.append( "<Detail"+ objContext+" domID='"+ 1 +"' objContext = '"+currentFormNo+"' objName=\"qc_resentry_wiz\" selected=\"N\">\r\n" );
valueXmlString.append( "<attribute selected=\"N\" updateFlag=\"A\" status=\"N\" pkNames=\"tran_id\"/>\r\n" );
valueXmlString.append("<cust_name>").append("<![CDATA[" + custName + "]]>").append("</cust_name>");
valueXmlString.append("<addr1>").append("<![CDATA[" + addr1 + "]]>").append("</addr1>");
valueXmlString.append("<addr2>").append("<![CDATA[" + addr2 + "]]>").append("</addr2>");
valueXmlString.append("<addr3>").append("<![CDATA[" + addr3 + "]]>").append("</addr3>");
valueXmlString.append("</Detail"+objContext+">");
if (custNameRs != null)
{
......@@ -281,18 +709,378 @@ public class ReqForQuotationWiz extends ValidatorEJB{
}
}
break;
case 2:
if ("itm_default".equalsIgnoreCase(currentColumn.trim())) {
int domId = 0;
int lineNo = 0;
String custCode = checkNull(genericUtility.getColumnValue("cust_code", dom1));
String itemSer = checkNull(genericUtility.getColumnValue("item_ser",dom1,"1"));
BaseLogger.log("3", null, null, "ReqForQuotationWiz in itm default ");
//Management rate block[Start]
String finEntityQuery = "select fin_entity from site where site_code = ?";
psFinEntity = conn.prepareStatement(finEntityQuery);
psFinEntity.setString(1, siteCode);
rs = psFinEntity.executeQuery();
if(rs.next()) {
finEntity = checkNull(rs.getString("fin_entity"));
}
BaseLogger.log("3", null, null, "ReqForQuotationWiz in itm default finEntity:: "+finEntity);
rs.close();
psFinEntity.close();
// Now, use finEntity to fetch VAR_VALUE from finparm
String varValueQuery = "select VAR_VALUE from finparm where ADDL_VALUE = ?";
PreparedStatement psVarValue = conn.prepareStatement(varValueQuery);
psVarValue.setString(1, finEntity);
ResultSet rsVarValue = psVarValue.executeQuery();
String varValue = null;
if (rsVarValue.next()) {
varValue = checkNull(rsVarValue.getString("VAR_VALUE"));
}
BaseLogger.log("3", null, null, "ReqForQuotationWiz in itm default varValue:: " + varValue);
// Clean up the result set and prepared statement for the varValue query
rsVarValue.close();
psVarValue.close();
// Finally, use varValue to fetch the rate from pricelist
String rateQuery = "select rate from pricelist where price_list = ?";
PreparedStatement psRate = conn.prepareStatement(rateQuery);
psRate.setString(1, varValue);
ResultSet rsRate = psRate.executeQuery();
int MngmntAprvRate = 0;
if (rsRate.next()) {
MngmntAprvRate = rsRate.getInt("rate");
}
BaseLogger.log("3", null, null, "ReqForQuotationWiz in itm default MngmntAprvRate:: " + MngmntAprvRate);
// Clean up the result set and prepared statement for the rate query
rsRate.close();
psRate.close();
int pts = 0;
int ptd = 0;
/* Fetch PTS */
String ptsSql =
"SELECT pl.rate " +
"FROM pricelist pl " +
"WHERE pl.price_list = ( " +
" SELECT fp.var_value " +
" FROM finparm fp " +
" WHERE fp.var_name = 'RFQ_PTS' " +
" AND fp.addl_value = (SELECT fin_entity FROM site WHERE site_code = ?) " +
")";
PreparedStatement psPts = conn.prepareStatement(ptsSql);
psPts.setString(1, siteCode);
ResultSet rsPts = psPts.executeQuery();
if (rsPts.next()) {
BigDecimal ptsRate = rsPts.getBigDecimal("rate");
pts = (ptsRate != null) ? ptsRate.intValue() : 0;
}
/* Fetch PTD */
String ptdSql =
"SELECT pl.rate " +
"FROM pricelist pl " +
"WHERE pl.price_list = ( " +
" SELECT fp.var_value " +
" FROM finparm fp " +
" WHERE fp.var_name = 'RFQ_PTD' " +
" AND fp.addl_value = (SELECT fin_entity FROM site WHERE site_code = ?) " +
")";
PreparedStatement psPtd = conn.prepareStatement(ptdSql);
psPtd.setString(1, siteCode);
ResultSet rsPtd = psPtd.executeQuery();
if (rsPtd.next()) {
BigDecimal ptdRate = rsPtd.getBigDecimal("rate");
ptd = (ptdRate != null) ? ptdRate.intValue() : 0;
}
BaseLogger.log("3", null, null,
"ReqForQuotationWiz in itm default pts:: " + pts + " ptd:: " + ptd);
//PTR calculation start
String siteCustomerQuery =
"SELECT PRICE_LIST FROM SITE_CUSTOMER " +
"WHERE SITE_CODE = ? AND CUST_CODE = ?";
psSiteCustomer = conn.prepareStatement(siteCustomerQuery);
psSiteCustomer.setString(1, siteCode);
psSiteCustomer.setString(2, custCode);
rs = psSiteCustomer.executeQuery();
if (rs.next()) {
priceList = rs.getString("PRICE_LIST");
}
rs.close();
psSiteCustomer.close();
// Step 2: If not found in SITE_CUSTOMER, fetch from CUSTOMER
if (priceList == null || priceList.trim().isEmpty()) {
String customerQuery =
"SELECT PRICE_LIST FROM CUSTOMER WHERE CUST_CODE = ?";
psCustomer = conn.prepareStatement(customerQuery);
psCustomer.setString(1, custCode);
rs = psCustomer.executeQuery();
if (rs.next()) {
priceList = rs.getString("PRICE_LIST");
}
rs.close();
psCustomer.close();
}
// Step 3: Fetch RATE from PRICELIST table
if (priceList != null && !priceList.trim().isEmpty()) {
String priceListQuery =
"SELECT RATE FROM PRICELIST WHERE PRICE_LIST = ?";
psPriceList = conn.prepareStatement(priceListQuery);
psPriceList.setString(1, priceList);
rs = psPriceList.executeQuery();
if (rs.next()) {
rate = rs.getInt("RATE");
}
rs.close();
psPriceList.close();
}
BaseLogger.log("3", null, null, "ReqForQuotationWiz in itm default ptr:: " + rate);
if(itemSer != null && itemSer.trim().length() > 0)
{
String[] itemSerArr = itemSer.split(",");
// Build dynamic IN clause
StringBuilder sqlForItemCode = new StringBuilder();
sqlForItemCode.append("SELECT item_code FROM item WHERE item_ser IN (");
valueXmlString.append("</Detail1>\r\n");
for(int i = 0; i < itemSerArr.length; i++)
{
sqlForItemCode.append("?");
if(i < itemSerArr.length - 1)
{
sqlForItemCode.append(",");
}
}
sqlForItemCode.append(")");
PreparedStatement ItemCodesPs = conn.prepareStatement(sqlForItemCode.toString());
// Bind values
for(int i = 0; i < itemSerArr.length; i++)
{
ItemCodesPs.setString(i + 1, itemSerArr[i].trim());
}
rs = ItemCodesPs.executeQuery();
while(rs.next())
{
itemCodeList.add(rs.getString("item_code"));
}
rs.close();
ItemCodesPs.close();
}
for (String itemCode : itemCodeList)
{
domId++;
lineNo++;
System.out.println("Item Code: " + itemCode);
valueXmlString.append( "<Detail"+ objContext+" domID='"+domId +"' objContext = '"+currentFormNo+"' objName=\"rfq_wiz\" selected=\"N\">\r\n" );
valueXmlString.append( "<attribute selected=\"Y\" updateFlag=\"A\" pkNames=\"tran_id:line_no\"/>\r\n" );
valueXmlString.append( "<tran_id/>" );
valueXmlString.append("<line_no><![CDATA[").append(lineNo).append("]]></line_no>");
valueXmlString.append("<item_code><![CDATA[").append(itemCode).append("]]></item_code>");
valueXmlString.append("<rate_apprv>").append("<![CDATA["+MngmntAprvRate+"]]>").append("</rate_apprv>\r\n");
valueXmlString.append("<ptd>").append("<![CDATA["+ptd+"]]>").append("</ptd>\r\n");
valueXmlString.append("<pts>").append("<![CDATA["+pts+"]]>").append("</pts>\r\n");
valueXmlString.append("<ptr>").append("<![CDATA["+rate+"]]>").append("</ptr>\r\n");
valueXmlString.append("</Detail"+objContext+">");
}
//PTR calculation end
//Management rate block[End]
}
if ("ptr_flag".equalsIgnoreCase(currentColumn.trim())) {
String ptrFlag = checkNull(genericUtility.getColumnValue("ptr_flag", dom));
BaseLogger.log("3", null, null, "ReqForQuotationIC in ptr_flag ");
String custCode = checkNull(genericUtility.getColumnValue("cust_code", dom1));
BaseLogger.log("3", null, null, "ReqForQuotationWiz in ptr_flat condition:: "+ptrFlag);
BaseLogger.log("3", null, null, "ReqForQuotationWiz in ptr_flat condition siteCode:: "+siteCode);
BaseLogger.log("3", null, null, "ReqForQuotationWiz in ptr_flat condition custCode:: "+custCode);
if(ptrFlag.equalsIgnoreCase("Y")) {
String rateStr = checkNull(genericUtility.getColumnValue("ptr", dom));
BaseLogger.log("3", getUserInfo(), null, "Final RATE : " + rate);
valueXmlString.append( "<Detail"+ objContext+" domID='"+ 1 +"' objContext = '"+currentFormNo+"' objName=\"qc_resentry_wiz\" selected=\"N\">\r\n" );
valueXmlString.append( "<attribute selected=\"Y\" updateFlag=\"A\" pkNames=\"tran_id:line_no\"/>\r\n" );
valueXmlString.append("<rate_quot protect='1'>").append("<![CDATA["+rateStr+"]]>").append("</rate_quot>\r\n");
valueXmlString.append("</Detail"+objContext+">");
}else if(ptrFlag.equalsIgnoreCase("N")) {
valueXmlString.append( "<Detail"+ objContext+" domID='"+ 1 +"' objContext = '"+currentFormNo+"' objName=\"rfq_wiz\" selected=\"N\">\r\n" );
valueXmlString.append( "<attribute selected=\"Y\" updateFlag=\"A\" pkNames=\"tran_id:line_no\"/>\r\n" );
valueXmlString.append("<rate_quot protect='0'>").append("<![CDATA[]]>").append("</rate_quot>\r\n");
valueXmlString.append("</Detail"+objContext+">");
}
}
if ("rate_quot".equalsIgnoreCase(currentColumn.trim())) {
BaseLogger.log("3", null, null, "ReqForQuotationWiz in rate_quot ::");
String rateQuot = genericUtility.getColumnValue("rate_quot", dom);
String rateApprv = checkNull(genericUtility.getColumnValue("rate_apprv", dom));
String ratePtr = checkNull(genericUtility.getColumnValue("ptr", dom));
BaseLogger.log("3", null, null, "ReqForQuotationWiz in rate_quot:: "+rateQuot+" rateApprv::"+rateApprv+ " ratePtr::"+ratePtr);
if (!rateQuot.isEmpty() && !rateApprv.isEmpty()) {
BigDecimal rateApprvVal = new BigDecimal(rateApprv);
BigDecimal rateQuotVal = new BigDecimal(rateQuot);
BigDecimal ratePtrVal = new BigDecimal(ratePtr);
BaseLogger.log("3", null, null, "ReqForQuotationIC after conversion rateQuotVal:: "+rateQuotVal+" rateApprvVal::"+rateApprvVal);
//added condition when ptr and rate_quot is same direct approval without management
if (ratePtrVal.compareTo(rateQuotVal) == 0) {
BaseLogger.log("3", null, null,
"in ratePtrVal == rateQuotVal condition");
String detail1Xml =
"<Detail1><mgmnt_apprv><![CDATA[N]]></mgmnt_apprv><wf_status><![CDATA[A]]></wf_status></Detail1>";
int pos = valueXmlString.indexOf("</header>");
if (pos != -1) { pos += "</header>".length(); // move after </header>
valueXmlString.insert(pos, detail1Xml); }
BaseLogger.log("3", null, null,
"in rateApprvVal greater condition updatedXml ::"+valueXmlString); }
if (rateApprvVal.compareTo(rateQuotVal) > 0) {
BaseLogger.log("3", null, null, "in rateApprvVal greater condition");
String detail1Xml = "<Detail1><mgmnt_apprv><![CDATA[Y]]></mgmnt_apprv><wf_status><![CDATA[P]]></wf_status></Detail1>";
int pos = valueXmlString.indexOf("</header>");
if (pos != -1) {
pos += "</header>".length(); // move after </header>
valueXmlString.insert(pos, detail1Xml);
}
BaseLogger.log("3", null, null, "in rateApprvVal greater condition updatedXml ::"+valueXmlString);
}
}
}
break;
}
valueXmlString.append("</Root>\r\n");
} catch (Exception e) {
System.out.println("Exception :AssetAssign :itemChanged(Document,String):" + e.getMessage() + ":");
e.printStackTrace();
//end sales_pers
}//end try itemchange
catch(Exception e)
{
System.out.println("Exception :StrgBrandactwiz :defaultDataWiz(Document,String):" + e.getMessage() + ":" );
valueXmlString = valueXmlString.append( genericUtility.createErrorString( e ) );
}//end catch itemchange
finally
{
try
{
if(rs !=null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
if( conn != null && ! conn.isClosed() )
{
conn.close();
conn = null;
}
}
catch(Exception e)
{
System.out.println("Exception :StrgBrandactwiz :defaultDataWiz :==>\n"+e.getMessage());
throw new ITMException(e);
}
BaseLogger.log("3", getUserInfo(), null, "asset_assign valueXmlString::"+valueXmlString.toString());
return valueXmlString.toString().trim();
}
valueXmlString.append( "</Root>\r\n" );
System.out.println(" ReqForQuotationWiz valueXmlString :==>\n"+valueXmlString.toString());
return valueXmlString.toString();
}
private String getDomID(Document dom2,String objContext)
{
Node elementName = null, parentNode = null;
NodeList elementList = null;
Element elementAttr = null;
String objName = "";
elementList = dom2.getElementsByTagName("Detail"+objContext);
elementName = elementList.item(0);
if (elementName!=null && ("Detail"+objContext).equalsIgnoreCase(elementName.getNodeName()))
{
NamedNodeMap etlAttributes = elementName.getAttributes();
if (etlAttributes!=null)
{
if (etlAttributes.getNamedItem("domID")!=null)
{
objName = etlAttributes.getNamedItem("domID").getNodeValue();
}
}
}
return objName;
}
private String checkNull( String inputVal )
......
/*Migrated by Khushal A 2025
* component : nvo_bo_inv_allocate.sru
*/
package ibase.webitm.ejb.dis;
import java.rmi.RemoteException;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.w3c.dom.Document;
import org.w3c.dom.NodeList;
import ibase.utility.BaseLogger;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.ejb.ValidatorEJB;
import ibase.webitm.ejb.fin.FinCommon;
import ibase.webitm.utility.ITMException;
public class ReserveInventoryIC extends ValidatorEJB{
E12GenericUtility genericUtility = new E12GenericUtility();
public String wfValData(Document dom, Document dom1, Document dom2, String objContext, String editFlag, String xtraParams) throws RemoteException, ITMException {
String errString = "", sql = "", itemGrp = "", expDate = "", effDate = "", tranType = "", siteCode = "", itemCode = "", workOrder = "";
ResultSet rs = null;
PreparedStatement pstmt = null;
int cnt = 0;
int ctr=0;
int childNodeListLength;
Timestamp tranDate1=null;
String childNodeName = null;
ITMDBAccessEJB itmDbAccess = null;
Timestamp expDatePS = null, effDatePS = null;
String tranDate = "";
NodeList parentNodeList = null;
NodeList childNodeList = null;
org.w3c.dom.Node parentNode = null;
org.w3c.dom.Node childNode = null;
FinCommon finCommon = null;
boolean isError = false;
java.sql.Connection conn = null;
int currentFormNo = 0;
String errcode="",tranId="";
String ls_itemcode="";
String ls_status="";
String ls_crit_item="",ls_work_order="";
Double lc_qty=0.0;
String lotNo="";
String lotSl="";
String locCode="";
double lc_quantity=0.0;
String ls_qcreqd = "",lc_quantitystr="";
String ls_iss_criteria = "";
Double lc_stock = 0.0;
Double lc_stk_qty = 0.0;
String ls_track_shelf_life ="";
String ls_auto_reqc="";
Timestamp ldtoday=null;
String ls_bomcode="" , ls_workorder="";
String ls_bom_code="";
try
{
itmDbAccess = new ITMDBAccessEJB();
conn = getConnection();
if(objContext != null && objContext.trim().length() > 0)
{
currentFormNo = Integer.parseInt(objContext);
}
switch(currentFormNo)
{
case 1:
parentNodeList = dom.getElementsByTagName("Detail1");
parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes();
childNodeListLength = childNodeList.getLength();
for(ctr = 0; ctr < childNodeListLength; ctr++)
{
isError = false;
childNode = childNodeList.item(ctr);
childNodeName = childNode.getNodeName();
if (childNodeName == null)
{
continue;
}
childNodeName = childNodeName.trim();
switch(childNodeName)
{
case "tran_date":
{
tranDate=whenNull(getItemString(dom, 1,"tran_date"));
if(tranDate != null && tranDate.trim().length()>0)
{
tranDate1 =Timestamp.valueOf(genericUtility.getValidDateString(tranDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00");
}
if (tranDate1 == null) {
if ("E".equalsIgnoreCase(whenNull(insertError("VEDAT2", childNodeName)))) {
isError = true;
break;
}
}
break;
}
case "tran_type":
{
tranType = whenNull(getItemString(dom, 1, "tran_type"));
if (tranType.equals("AUT")) {
if ("E".equalsIgnoreCase(whenNull(insertError("VTAUTOG1", childNodeName)))) {
isError = true;
break;
}
}
break;
}
case "site_code":
{
siteCode = whenNull(getItemString(dom, 1, "site_code"));
sql = "SELECT COUNT(*) FROM site WHERE site_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, siteCode);
rs = pstmt.executeQuery();
if (rs.next())
{
cnt = rs.getInt(1);
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
if (cnt == 0) {
if ("E".equalsIgnoreCase(whenNull(insertError("VTSITECD1", childNodeName)))) {
isError = true;
break;
}
}
break;
}
case "item_code":
{
itemCode = whenNull(getItemString(dom, 1, "item_code"));
workOrder = whenNull(getItemString(dom, 1, "work_order"));
tranId = whenNull(getItemString(dom, 1, "tran_id"));
sql = "SELECT COUNT(*) FROM item WHERE item_code = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, itemCode);
rs = pstmt.executeQuery();
if (rs.next()) {
cnt = rs.getInt(1);
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
if (cnt == 0) {
if ("E".equalsIgnoreCase(whenNull(insertError("VTITEM1", childNodeName)))) {
isError = true;
break;
}
}
BaseLogger.log("3", getUserInfo(), null,"tranId*********" +tranId);
BaseLogger.log("3", getUserInfo(), null,"itemCode*********" +itemCode);
BaseLogger.log("3", getUserInfo(), null,"workOrder*********" +itemCode);
if (workOrder == null || workOrder.trim().length() == 0) {
if (tranId == null) {
tranId = " ";
}
sql = "SELECT COUNT(*) FROM inv_allocate WHERE item_code = ? AND tran_id <> ? AND confirmed = 'N' AND work_order IS NULL";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, itemCode);
pstmt.setString(2, tranId);
rs = pstmt.executeQuery();
if (rs.next()) {
cnt = rs.getInt(1);
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
if (cnt > 0) {
if ("E".equalsIgnoreCase(whenNull(insertError("VTITEMCO", childNodeName)))) {
isError = true;
break;
}
}
}
break;
}
case "work_order":
{
workOrder = whenNull(getItemString(dom, 1, "work_order"));
if (workOrder.trim().length() > 0) {
sql = "SELECT status FROM workorder WHERE work_order = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, workOrder);
rs = pstmt.executeQuery();
ls_status = null;
if (rs.next()) {
ls_status = rs.getString(1);
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
if ("X".equals(ls_status))
{
if ("E".equalsIgnoreCase(whenNull(insertError("VTWOCANCEL", childNodeName)))) {
isError = true;
break;
}
} else if ("C".equals(ls_status))
{
if ("E".equalsIgnoreCase(whenNull(insertError("VTWOCLOSE", childNodeName)))) {
isError = true;
break;
}
}
else if (ls_status==null || ls_status.trim().length() == 0) {
siteCode = whenNull(getItemString(dom, 1, "site_code"));
sql = "SELECT site_code FROM workorder WHERE work_order = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, workOrder);
rs = pstmt.executeQuery();
String ls_wosite = null;
if (rs.next()) {
ls_wosite = rs.getString(1);
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
if (!siteCode.equals(ls_wosite)) {
if ("E".equalsIgnoreCase(whenNull(insertError("VTWOSITE1", childNodeName)))) {
isError = true;
break;
}
}
}
}
tranId = whenNull(getItemString(dom, 1, "tran_id"));
if (tranId== null) {
sql = "SELECT COUNT(*) FROM inv_allocate WHERE work_order = ? AND tran_id <> ? AND confirmed = 'N'";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, workOrder);
pstmt.setString(2, tranId);
rs = pstmt.executeQuery();
if (rs.next()) {
cnt = rs.getInt(1);
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
if (cnt > 0) {
if ("E".equalsIgnoreCase(whenNull(insertError("VTWOCON", childNodeName)))) {
isError = true;
break;
}
}
}
break;
}
}
}
break;
case 2:
{
parentNodeList = dom.getElementsByTagName("Detail2");
parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes();
childNodeListLength = childNodeList.getLength();
for(ctr = 0; ctr < childNodeListLength; ctr++)
{
isError = false;
childNode = childNodeList.item(ctr);
childNodeName = childNode.getNodeName();
if (childNodeName == null)
{
continue;
}
childNodeName = childNodeName.trim();
switch(childNodeName)
{
case "item_code":
{
itemCode = whenNull(getItemString(dom, 1,"item_code"));
ls_workorder = whenNull(getItemString(dom1, 1,"work_order"));
ls_itemcode = whenNull(genericUtility.getColumnValue("item_code", dom1));
if (itemCode.trim() != null && itemCode.trim().length() > 0 &&
ls_itemcode.trim() != null && ls_itemcode.trim().length() > 0)
{
if (itemCode.trim().equals(ls_itemcode.trim()))
{
System.out.println("Case10++itemcode " + itemCode);
System.out.println("Case21 " + ls_itemcode);
errString = "VTITMSAME";
if ("E".equalsIgnoreCase(whenNull(insertError(errString, childNodeName))))
{
isError = true;
break;
}
}
}
ls_work_order= whenNull(getItemString(dom1, 1,"work_order"));
System.out.println("caseval+++++++++"+ls_work_order);
if(ls_work_order != null && ls_work_order.trim().length() > 0)
{
sql="select bom_code from workorder where work_order = ?";
pstmt=conn.prepareStatement(sql);
pstmt.setString(1, ls_work_order);
rs=pstmt.executeQuery();
if(rs.next())
{
ls_bom_code = rs.getString("bom_code");
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
sql = "select count(*) from bomdet where bom_code = ? and item_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, ls_bom_code);
pstmt.setString(2, itemCode);
rs = pstmt.executeQuery();
if (rs.next())
{
cnt = rs.getInt(1);
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
if (cnt <= 0)
{
if("E".equalsIgnoreCase(whenNull(insertError("VTNOBOMITM", childNodeName))))
{
isError = true;
break;
}
}
}
sql = "select count(*) from stock where item_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, itemCode);
rs = pstmt.executeQuery();
if (rs.next())
{
cnt = rs.getInt(1);
}
rs.close();rs = null;
pstmt.close();pstmt = null;
if (cnt == 0)
{
if("E".equalsIgnoreCase(whenNull(insertError("VXSTKITM", childNodeName))))
{
isError = true;
break;
}
}
System.out.println("Khushal8888888888888880" + ls_workorder );
if ((ls_workorder != null && ls_workorder.trim().length() > 0))
{
System.out.println("Inside Case 2 Work Order ");
sql = "select bom_code, status from workorder where work_order = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, ls_workorder);
rs = pstmt.executeQuery();
if (rs.next())
{
ls_bom_code = rs.getString("bom_code");
ls_status = rs.getString("status");
}
rs.close();rs = null;
pstmt.close();pstmt = null;
if (ls_status != null && (ls_status.equalsIgnoreCase("R") || ls_status.equalsIgnoreCase("F")))
{
sql = "select crit_item, exp_lev from workorder_bill where work_order = ? and item_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, ls_workorder);
pstmt.setString(2, itemCode);
rs = pstmt.executeQuery();
while(rs.next())
{
ls_crit_item = rs.getString("crit_item");
String ls_explevstr=rs.getString("exp_lev");
if (ls_crit_item == null)
{
ls_crit_item = "N";
}
if (ls_status.equalsIgnoreCase("R"))
{
if (ls_crit_item.equalsIgnoreCase("Y"))
{
if("E".equalsIgnoreCase(whenNull(insertError("VTWOCRIT1", childNodeName))))
{
isError = true;
break;
}
}
else
{
sql = "select Sum(b.quantity) from workorder_iss a,workorder_issdet b where a.work_order = ? and a.tran_id = b.tran_id and b.item_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, ls_workorder);
pstmt.setString(2, itemCode);
ResultSet rs1 = pstmt.executeQuery();
if (rs1.next())
{
lc_qty = rs1.getDouble(1);
}
rs1.close();rs1 = null;
pstmt.close();pstmt = null;
if (lc_qty > 0)
{
if("E".equalsIgnoreCase(whenNull(insertError("VTALISS", childNodeName))))
{
isError = true;
break;
}
}
}
}
else if (ls_status.equalsIgnoreCase("F"))
{
if (ls_crit_item.equalsIgnoreCase("Y"))
{
if("E".equalsIgnoreCase(whenNull(insertError("VTWOCRIT2", childNodeName))))
{
isError = true;
break;
}
}
}
}
}
}
break;
}
case "site_code":
{
siteCode = whenNull(getItemString(dom, 1,"site_code"));
sql = "Select Count(*) from stock where site_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, siteCode);
rs = pstmt.executeQuery();
if (rs.next())
{
cnt = rs.getInt(1);
}
rs.close();rs = null;
pstmt.close();pstmt = null;
if (cnt == 0)
{
if("E".equalsIgnoreCase(whenNull(insertError("VXSTKSITE", childNodeName))))
{
isError = true;
break;
}
}
break;
}
case "loc_code":
{
locCode = whenNull(getItemString(dom, 1,"loc_code"));
sql = "select count(*) from stock where loc_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, locCode);
rs = pstmt.executeQuery();
if (rs.next())
{
cnt = rs.getInt(1);
}
rs.close();rs = null;
pstmt.close();pstmt = null;
if (cnt == 0)
{
if("E".equalsIgnoreCase(whenNull(insertError("VXSTKLOC", childNodeName))))
{
isError = true;
break;
}
}
break;
}
case "lot_no":
{
lotNo = whenNull(getItemString(dom, 1,"lot_no"));
itemCode = whenNull(getItemString(dom, 1,"item_code"));
siteCode = whenNull(getItemString(dom, 1,"site_code"));
locCode = whenNull(getItemString(dom, 1,"loc_code"));
sql = "select count(*) from stock where item_code = ? and site_code = ? and loc_code = ? and lot_no = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, itemCode);
pstmt.setString(2, siteCode);
pstmt.setString(3, locCode);
pstmt.setString(4, lotNo);
rs = pstmt.executeQuery();
if (rs.next())
{
cnt = rs.getInt(1);
}
rs.close();rs = null;
pstmt.close();pstmt = null;
if (cnt == 0)
{
if("E".equalsIgnoreCase(whenNull(insertError("VMLOTNO1", childNodeName))))
{
isError = true;
break;
}
}
break;
}
case "lot_sl":
{
lotSl = whenNull(getItemString(dom, 1,childNodeName));
itemCode = whenNull(getItemString(dom, 1,"item_code"));
siteCode = whenNull(getItemString(dom, 1,"site_code"));
locCode = whenNull(getItemString(dom, 1,"loc_code"));
lotNo = whenNull(getItemString(dom, 1,"lot_no"));
sql = "select count(*) from stock where item_code = ? and site_code = ? and loc_code = ? and lot_no = ? and lot_sl = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, itemCode);
pstmt.setString(2, siteCode);
pstmt.setString(3, locCode);
pstmt.setString(4, lotNo);
pstmt.setString(5, lotSl);
rs = pstmt.executeQuery();
if (rs.next())
{
cnt = rs.getInt(1);
}
rs.close();rs = null;
pstmt.close();pstmt = null;
if (cnt == 0)
{
if("E".equalsIgnoreCase(whenNull(insertError("VMLOTSL1", childNodeName))))
{
isError = true;
break;
}
}
break;
}
case "quantity":
{
lc_quantitystr = (getItemString(dom, 1,"quantity"));
if(lc_quantitystr != null && lc_quantitystr.trim().length()>0)
{
lc_quantity=Double.parseDouble(lc_quantitystr);
}
itemCode = whenNull(getItemString(dom, 1,"item_code"));
siteCode = whenNull(getItemString(dom, 1,"site_code"));
locCode = whenNull(getItemString(dom, 1,"loc_code"));
lotNo = whenNull(getItemString(dom, 1,"lot_no"));
lotSl = whenNull(getItemString(dom, 1,"lot_sl"));
if (lc_quantity <= 0)
{
if("E".equalsIgnoreCase(whenNull(insertError("VTQTY", childNodeName))))
{
isError = true;
break;
}
}
else
{
sql = "SELECT (CASE WHEN qc_reqd IS NULL THEN 'N' ELSE qc_reqd END) AS qc_reqd," +
"(CASE WHEN iss_criteria IS NULL THEN 'I' ELSE iss_criteria END) AS iss_criteria," +
"(CASE WHEN track_shelf_life IS NULL THEN 'N' ELSE track_shelf_life END) AS track_shelf_life FROM item WHERE item_code =?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, itemCode);
rs = pstmt.executeQuery();
if(rs.next())
{
ls_qcreqd = rs.getString("qc_reqd");
ls_iss_criteria = rs.getString("iss_criteria");
ls_track_shelf_life = rs.getString("track_shelf_life");
}
rs.close();rs = null;
pstmt.close();pstmt = null;
if (ls_qcreqd.equalsIgnoreCase("N"))
{
sql = "select quantity - (case when alloc_qty is null then 0 else alloc_qty end) - (case when hold_qty is null then 0 else hold_qty end) , quantity from stock,location,invstat where stock.loc_code = location.loc_code and location.inv_stat = invstat.inv_stat and stock.item_code = ? and stock.site_code = ? and stock.loc_code = ? and stock.lot_no = ? and stock.lot_sl = ? and invstat.available = 'Y'";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, itemCode);
pstmt.setString(2, siteCode);
pstmt.setString(3, locCode);
pstmt.setString(4, lotNo);
pstmt.setString(5, lotSl);
rs = pstmt.executeQuery();
if (rs.next())
{
lc_stock = rs.getDouble(1);
lc_stk_qty = rs.getDouble(2);
}
rs.close();rs = null;
pstmt.close();pstmt = null;
if (ls_iss_criteria.equalsIgnoreCase("W") && lc_quantity != lc_stk_qty)
{
if("E".equalsIgnoreCase(whenNull(insertError("VTALOCQTY", childNodeName))))
{
isError = true;
break;
}
}
}
else
{
ldtoday = new Timestamp(System.currentTimeMillis());
sql = "select auto_reqc from siteitem where item_code = ? and site_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, itemCode);
pstmt.setString(2, siteCode);
rs = pstmt.executeQuery();
if(rs.next())
{
ls_auto_reqc = rs.getString("auto_reqc");
}
rs.close();rs = null;
pstmt.close();pstmt = null;
if (ls_auto_reqc == null) ls_auto_reqc = "N";
sql = "select quantity - (case when alloc_qty is null then 0 else alloc_qty end) - (case when hold_qty is null then 0 else hold_qty end) from stock, location, invstat where stock.loc_code = location.loc_code and location.inv_stat = invstat.inv_stat and stock.item_code = ? and stock.site_code = ? and stock.loc_code = ? and stock.lot_no = ? and stock.lot_sl = ? and invstat.available = 'Y'";
if (ls_track_shelf_life.equalsIgnoreCase("Y"))
{
sql = sql + "and (stock.exp_date > ? or stock.exp_date is null) ";
}
if (ls_auto_reqc.equalsIgnoreCase("Y"))
{
sql = sql + "and stock.retest_date > ? ";
}
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, itemCode);
pstmt.setString(2, siteCode);
pstmt.setString(3, locCode);
pstmt.setString(4, lotNo);
pstmt.setString(5, lotSl);
int paramIndex = 6;
if (ls_track_shelf_life.equalsIgnoreCase("Y"))
{
pstmt.setTimestamp(paramIndex, ldtoday);
paramIndex++;
}
if (ls_auto_reqc.equalsIgnoreCase("Y"))
{
pstmt.setTimestamp(paramIndex, ldtoday);
}
rs = pstmt.executeQuery();
if (rs.next())
{
lc_stock = rs.getDouble(1);
}
rs.close();rs = null;
pstmt.close();pstmt = null;
}
if (lc_stock < lc_quantity)
{
if("E".equalsIgnoreCase(whenNull(insertError("VTQTYA2", childNodeName))))
{
isError = true;
break;
}
}
}
break;
}
}
if(isError)
{
break;
}
}
}
}
}
catch (Exception e)
{
e.printStackTrace();
errString = e.getMessage();
throw new ITMException(e);
}
finally
{
try {
if (conn != null)
{
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
} catch (Exception d) {
d.printStackTrace();
throw new ITMException(d);
}
}
return "";
}
public String itemChanged(Document dom, Document dom1, Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException, ITMException
{
BaseLogger.log("3", getUserInfo(), null,"Inside itemchanged method 111111");
String ls_site_code="", ls_site_desc="", ls_aloc_cd="", ls_loc_descr="", colname ="" ,ls_item_descr="" ;
String ls_asset_code="", ls_asset_descr="", ls_emp_code="", ls_fname="", ls_lname="",ls_item_code ="" ;
double ld_curr_code=0, ld_exch_rate=0, ld_exch_rate__inst=0, ld_chgs__bc=0, ld_original_value__bc=0 ;
int li_install_chgs=0, li_original_value=0;
String ls_work_order = "";
String ls_item_desc="", ls_aloc_code="" ;
String ls_lot_no="", ls_lot_sl="", ls_item_ser="", ls_tran_id="", ls_loc_code="";
String ls_descr="", ls_tran_id__rcp="", ls_grp_code="", ls_grp_desc="", ls_supp_code="", ls_supp_name="" ;
String modstr="", ls_var_value="", ld_excise_amt="" ;
double ld_quantity=0, ld_rate=0, ld_tax_amt=0, ld_net_amt=0;
int li_line_no_rcp=0, li_quantity=0, li_line_no=0;
long li_line=0;
Timestamp mtoday;
String msite="",ls_login_site ="";
String ls_workorder = "";
mtoday = new Timestamp(System.currentTimeMillis());
colname = currentColumn.toLowerCase();
PreparedStatement pstmt = null;
ResultSet rs = null;
String sql = null;
int currFormNo = 0;
Timestamp ldDate = null;
try
{
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
ldDate = new Timestamp(sdf.parse(sdf.format(new Date())).getTime());
if(objContext != null && objContext.trim().length() > 0)
{
currFormNo = Integer.parseInt(objContext);
}
switch(currFormNo)
{
case 1:
{
switch(colname)
{
case "itm_defaultedit":
{
ls_workorder = getItemString(dom, 1, "work_order");
if(ls_workorder != null && ls_workorder.trim().length() > 0)
{
gbfItemchgModifierDs(dom, "item_code", "protect", "1");
}
else
{
gbfItemchgModifierDs(dom, "item_code", "protect", "0");
}
break;
}
case "itm_default":
{
ls_login_site = getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode");
System.out.println("Khushal77777" +ls_login_site );
setItem(dom, 1, "site_code", ls_login_site);
sql = " SELECT descr FROM site WHERE site_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, ls_login_site);
rs = pstmt.executeQuery();
if (rs.next()) {
msite = rs.getString("descr");
}
if (pstmt != null) {
pstmt.close();
pstmt = null;
}
if (rs != null) {
rs.close();
rs = null;
}
setItem(dom, 1, "site_descr", msite);
setItem(dom, 1, "tran_date",ldDate);
break;
}
case "site_code":
{
ls_site_code = getItemString(dom, 1, "site_code");
sql = " SELECT site.descr FROM site WHERE site.site_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, ls_site_code);
rs = pstmt.executeQuery();
if (rs.next()) {
ls_site_desc = rs.getString("descr");
}
if (pstmt != null) {
pstmt.close();
pstmt = null;
}
if (rs != null) {
rs.close();
rs = null;
}
setItem(dom, 1, "site_descr", ls_site_desc);
break;
}
case "item_code":
{
ls_item_code = getItemString(dom, 1, "item_code");
sql = " SELECT item.descr FROM item WHERE item.item_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, ls_item_code);
rs = pstmt.executeQuery();
if (rs.next()) {
ls_item_descr = rs.getString("descr");
}
if (pstmt != null) {
pstmt.close();
pstmt = null;
}
if (rs != null) {
rs.close();
rs = null;
}
setItem(dom, 1, "item_descr", ls_item_descr);
break;
}
case "work_order":
{
ls_work_order = getItemString(dom, 1, "work_order");
if (ls_work_order != null && ls_work_order.trim().length() > 0)
{
sql = " SELECT item_code FROM workorder WHERE work_order = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, ls_work_order);
rs = pstmt.executeQuery();
if (rs.next()) {
ls_item_code = rs.getString("item_code");
}
if (pstmt != null) {
pstmt.close();
pstmt = null;
}
if (rs != null) {
rs.close();
rs = null;
}
setItem(dom, 1, "item_code", ls_item_code);
gbfItemchgModifierDs(dom, "item_code", "protect", "1");
}
else
{
gbfItemchgModifierDs(dom, "item_code", "protect", "0");
}
break;
}
}
break;
}
case 2:
{
switch(colname)
{
case "itm_default":
{
String li_lineStr = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"line_no");
if(li_lineStr != null && li_lineStr.trim().length() > 0)
{
li_line = Long.parseLong(li_lineStr);
}
else
{
li_line=0;
}
BaseLogger.log("3", getUserInfo(), null,"Line No:::" +li_line);
if(li_line > 0)
{
setItem(dom, 1, "line_no", String.valueOf(li_line));
}
setItem(dom, 1, "tran_id", getItemString(dom1, 1, "tran_id"));
setItem(dom, 1, "site_code", getItemString(dom1, 1, "site_code"));
setItem(dom, 1, "site_descr", getItemString(dom1, 1, "site_descr"));
gbfItemchgModifierDs(dom, "line_no", "protect", "1");
break;
}
case "item_code":
{
ls_item_code = getItemString(dom, 1, "item_code");
sql = " SELECT item.descr FROM item WHERE item.item_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, ls_item_code);
rs = pstmt.executeQuery();
if (rs.next()) {
ls_item_desc = rs.getString("descr");
}
if (pstmt != null) {
pstmt.close();
pstmt = null;
}
if (rs != null) {
rs.close();
rs = null;
}
setItem(dom, 1, "item_descr", ls_item_desc);
break;
}
case "site_code":
{
ls_site_code = getItemString(dom, 1, "site_code");
sql = " SELECT site.descr FROM site WHERE site.site_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, ls_site_code);
rs = pstmt.executeQuery();
if (rs.next()) {
ls_site_desc = rs.getString("descr");
}
if (pstmt != null) {
pstmt.close();
pstmt = null;
}
if (rs != null) {
rs.close();
rs = null;
}
setItem(dom, 1, "site_descr", ls_site_desc);
break;
}
case "loc_code":
{
ls_loc_code = getItemString(dom1, 1, "loc_code");
sql = " SELECT location.descr FROM location WHERE location.loc_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, ls_loc_code);
rs = pstmt.executeQuery();
if (rs.next()) {
ls_loc_descr = rs.getString("descr");
}
if (pstmt != null) {
pstmt.close();
pstmt = null;
}
if (rs != null) {
rs.close();
rs = null;
}
setItem(dom, 1, "location_descr", ls_loc_descr);
break;
}
}
break;
}
}
}
catch (Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try
{
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
catch (Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
}
return "";
}
}
\ No newline at end of file
-- Register follow-up action "Confirm" for Sales Quotation to trigger Sales Contract creation
Insert into obj_followup_act (OBJ_NAME,LINE_NO,ACTION_ID,ACTION_TYPE,ACTION_INFO,CONDITIONAL_EXPRESSION,CONDITIONAL_INPUT,CHG_DATE,CHG_USER,CHG_TERM,MAX_RETRY_COUNT)
values ('salesquot',1,'Confirm','T','sales_contract',null,null,null,null,null,5);
-- Define system event that links the sales quotation "sales_contract" event to service "sales_cont"
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT,FIELD_NAME,FORM_NO)
values ('salesquot','sales_contract','1','sales_cont',null,'0',to_date('09-MAR-26','DD-MON-RR'),'MD ','MD','2','JB','ibase.webitm.ejb.dis.SalesContractFromSalesQuot',null,null,null);
-- Register the service definition "sales_cont" that calls confirmCreateSalesContract web service
Insert into SYSTEM_EVENT_SERVICES (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM,SERVICE_NAMESPACE,RES_ELEM,SOAP_ACTION,SERVICE_TYPE,SERVICE_HANDLER,DESCR)
values ('sales_cont','confirm','http://localhost:9090/axis/services/ActionHandlerService',null,'confirmCreateSalesContract','String','S',null,null,to_date('09-MAR-26','DD-MON-RR'),'MD ','MD',null,null,null,null,null,null);
-- Insert input argument COMPONENT_TYPE specifying component category (JB)
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE)
values ('sales_cont',1,'COMPONENT_TYPE','I',null,'S',null,to_date('09-MAR-26','DD-MON-RR'),'MD ','MD','JB');
-- Insert input argument COMPONENT_NAME specifying the Java component handling the service
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE)
values ('sales_cont',2,'COMPONENT_NAME','I',null,'S',null,to_date('09-MAR-26','DD-MON-RR'),'MD ','MD','ibase.webitm.ejb.dis.SalesContractFromSalesQuot');
-- Insert input argument <tran_id> to pass the transaction ID from Sales Quotation
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE)
values ('sales_cont',3,'<tran_id>','I',null,'B.String',null,to_date('09-MAR-26','DD-MON-RR'),'MD ','MD',null);
-- Insert input argument XTRA_PARAMS for optional extra parameters
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE)
values ('sales_cont',4,'XTRA_PARAMS','I',null,'S',null,to_date('09-MAR-26','DD-MON-RR'),'MD ','MD',null);
-- Insert input argument DB_CONN to pass database connection to the service
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE)
values ('sales_cont',5,'DB_CONN','I',null,'S.Connection',null,to_date('09-MAR-26','DD-MON-RR'),'MD ','MD',null);
package ibase.webitm.ejb.dis;
import java.sql.Connection;
import ibase.utility.BaseLogger;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.ActionHandlerEJB;
import ibase.webitm.utility.ITMException;
/*
* Author : Mohammed D
* Date : 09-03-2026
* Purpose : Follow Up Action on Sales Quote
*/
public class SalesContractFromSalesQuot extends ActionHandlerEJB
{
public String confirmCreateSalesContract(String tranID, String xtraParam, Connection conn) throws ITMException
{
String result = "";
E12GenericUtility genericUtility = new E12GenericUtility();
String objName = genericUtility.getValueFromXTRA_PARAMS(xtraParam, "objName");
BaseLogger.log("3", null, null, "SalesContractFromSalesQuot class called");
BaseLogger.log("3", null, null, "Method confirmCreateSalesContract executed");
BaseLogger.log("3", null, null, "TranID: " + tranID);
BaseLogger.log("3", null, null, "Object Name: " + objName);
return result;
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment