Commit e1b63c04 authored by Ajit Deshmukh's avatar Ajit Deshmukh

Source Code for Manage SQL

parents
/*
* Author: Gagan B., Ajit D.
* Date: 11-NOV-2025
* Purpose: Logic for activities to be done Post Manage SQL Transaction
* */
package ibase.webitm.ejb.sys;
import java.rmi.RemoteException;
import java.sql.Connection;
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.LocalTime;
import java.time.format.DateTimeFormatter;
import java.util.Date;
import javax.naming.InitialContext;
import org.w3c.dom.Document;
import ibase.ejb.CommonDBAccessEJB;
import ibase.system.config.AppConnectParm;
import ibase.system.config.ConnDriver;
import ibase.utility.BaseLogger;
import ibase.utility.E12GenericUtility;
import ibase.utility.UserInfoBean;
import ibase.webitm.ejb.MasterStatefulLocal;
import ibase.webitm.ejb.ValidatorEJB;
import ibase.webitm.utility.ITMException;
public class ManageSQLAprv extends ValidatorEJB{
E12GenericUtility genericUtility = new E12GenericUtility();
public String updateWFStatus()throws RemoteException,ITMException
{
return "";
}
public String updateWFStatus(String domString, Connection conn) throws RemoteException,ITMException
{
String retVal = "";
String refSer = "";
String tranID = "";
String signStatus = "";
String enterprises1 = "";
boolean isLocalConn = false;
PreparedStatement mSqlPstmt = null;
ResultSet mSqlRs = null;
PreparedStatement mSqlDetPstmt = null;
ResultSet mSqlDetRs = null;
String empCode = "";
String entityCode = "",reportTo="",allocatedTo;
LocalDate tranDate = LocalDate.now();// for tranDate
LocalTime tranTime = LocalTime.now();
String tranDateStr = formatDateTime(tranDate, tranTime);
String tranId = "";
String reqId = "";
String custCode = "";
String empCodeGiven = "";
String empCodeMerge = "";
String executed = "";
String tranIdOrg = "";
String activeYn = "";
String itmVer = "";
String chgUser = "";
String chgTerm = "";
String confirmed = "";
String empCodeAprv = "";
String enterprises = "";
String applDb = "";
String execRights = "";
String tranIdRef = "";
String db2Statement = "";
String lineNo = "";
String oracleStatement = "";
String statementType = "";
//InitialContext ctx = null;
String retString = null;
String executionRights = "";
// MasterStatefulLocal masterStateful = null; // for ejb3
try
{
UserInfoBean userInfo = new UserInfoBean();
CommonDBAccessEJB commonDBAccessEJB = new CommonDBAccessEJB();
//AppConnectParm appConnect = new AppConnectParm();
//ctx = new InitialContext(appConnect.getProperty());
// masterStateful = (MasterStatefulLocal)ctx.lookup("ibase/MasterStatefulEJB/local");
AppConnectParm appConnect = new AppConnectParm();
InitialContext initialContext = new InitialContext(appConnect.getProperty());
System.out.println("ManageSQLAprv.updateWFStatus() domString testtttttttt["+domString+"]");
if (conn == null)
{
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB(userInfo.getTransDB());
}
Document dom = genericUtility.parseString(domString);
refSer = genericUtility.getColumnValue("ref_ser",dom,"1");
tranID = genericUtility.getColumnValue("ref_id",dom,"1");
signStatus = genericUtility.getColumnValue("sign_status",dom,"1");
empCode = genericUtility.getColumnValue("emp_code",dom,"1");
allocatedTo = genericUtility.getColumnValue("allocated_to",dom,"1");
System.out.println("enterprises::::: =[" + enterprises1 + "]"+" tran_id::"+tranID);
userInfo = commonDBAccessEJB.createUserInfo(empCode);
System.out.println("enterprises::::: =[" + enterprises1 + "]"+" tran_id::"+tranID+" empCode::"+empCode);
String msqlDetSql = "SELECT TRAN_ID, TRAN_DATE, REQ_ID, REQ_DATE, CUST_CODE, EMP_CODE__GIVEN, EMP_CODE__MERGE, "
+ "EXECUTED, TRAN_ID__ORG, ACTIVE_YN, ITM_VER, CHG_USER, CHG_TERM, CHG_DATE, CONFIRMED, CONF_DATE, "
+ "EMP_CODE_APRV, ENTERPRISES, APPL_DB, EXEC_RIGHTS, TRAN_ID__REF "
+ "FROM sql_changes where tran_id = ?";
mSqlPstmt = conn.prepareStatement(msqlDetSql);
mSqlPstmt.setString(1, tranID);
mSqlRs = mSqlPstmt.executeQuery();
while (mSqlRs.next()) {
// Directly fetching and using values from result set without declaring variables
tranId = mSqlRs.getString("TRAN_ID");
reqId = mSqlRs.getString("REQ_ID");
custCode = mSqlRs.getString("CUST_CODE");
empCodeGiven = mSqlRs.getString("EMP_CODE__GIVEN");
empCodeMerge = mSqlRs.getString("EMP_CODE__MERGE");
executed = mSqlRs.getString("EXECUTED");
tranIdOrg = mSqlRs.getString("TRAN_ID__ORG");
activeYn = mSqlRs.getString("ACTIVE_YN");
itmVer = mSqlRs.getString("ITM_VER");
chgUser = mSqlRs.getString("CHG_USER");
chgTerm = mSqlRs.getString("CHG_TERM");
confirmed = mSqlRs.getString("CONFIRMED");
empCodeAprv = mSqlRs.getString("EMP_CODE_APRV");
enterprises = mSqlRs.getString("ENTERPRISES");
applDb = mSqlRs.getString("APPL_DB");
execRights = mSqlRs.getString("EXEC_RIGHTS");
tranIdRef = mSqlRs.getString("TRAN_ID__REF");
// Do something with these values directly (e.g., use them in logic, or store in a collection)
System.out.println("TRAN_ID: " + tranId + ", " +
"TRAN_DATE: " + tranDate + ", " +
"REQ_ID: " + reqId + ", " +
"CUST_CODE: " + custCode + ", " +
"EMP_CODE__GIVEN: " + empCodeGiven + ", " +
"EMP_CODE__MERGE: " + empCodeMerge + ", " +
"EXECUTED: " + executed + ", " +
"TRAN_ID__ORG: " + tranIdOrg + ", " +
"ACTIVE_YN: " + activeYn + ", " +
"ITM_VER: " + itmVer + ", " +
"CHG_USER: " + chgUser + ", " +
"CHG_TERM: " + chgTerm + ", " +
"CONFIRMED: " + confirmed + ", " +
"EMP_CODE_APRV: " + empCodeAprv + ", " +
"ENTERPRISES: " + enterprises + ", " +
"APPL_DB: " + applDb + ", " +
"EXEC_RIGHTS: " + execRights + ", " +
"TRAN_ID__REF: " + tranIdRef);
}
StringBuffer processDynXmlString = new StringBuffer();
// Start building the XML string
processDynXmlString.append("<DocumentRoot><description>Datawindow Root</description><group0>");
processDynXmlString.append(
"<description>Group0 description</description><Header0><description>Header0 members</description>");
processDynXmlString.append("<objName><![CDATA[sql_changes]]></objName>");
processDynXmlString.append("<pageContext><![CDATA[1]]></pageContext>");
processDynXmlString.append("<objContext><![CDATA[1]]></objContext>");
processDynXmlString.append("<editFlag><![CDATA[A]]></editFlag>");
processDynXmlString.append("<focusedColumn><![CDATA[]]></focusedColumn>");
processDynXmlString.append("<action><![CDATA[SAVE]]></action>");
processDynXmlString.append("<elementName><![CDATA[]]></elementName>");
processDynXmlString.append("<keyValue><![CDATA[1]]></keyValue>");
processDynXmlString.append("<saveLevel><![CDATA[1]]></saveLevel>");
processDynXmlString.append("<forcedSave><![CDATA[false]]></forcedSave>");
processDynXmlString.append("<Detail1 dbID='' domID='1' objContext='1' objName='sql_changes'>");
processDynXmlString
.append("<attribute IS_CHANGE='Y' pkNames='TRAN_ID' selected='N' status='N' updateFlag='A'/>");
//processDynXmlString.append("<tran_id/>");
processDynXmlString.append("<tran_date><![CDATA[" + dateFormatter(tranDateStr) + "]]></tran_date>");
processDynXmlString.append("<req_id><![CDATA[]]></req_id>");
processDynXmlString.append("<req_date><![CDATA[" + dateFormatter(tranDateStr) + "]]></req_date>");
processDynXmlString.append("<emp_code__given><![CDATA[" + empCodeGiven + "]]></emp_code__given>");
processDynXmlString.append("<emp_code__merge><![CDATA[" + empCodeMerge + "]]></emp_code__merge>");
processDynXmlString.append("<executed><![CDATA[N]]></executed>");
processDynXmlString.append("<tran_id__org><![CDATA[" + tranIdOrg + "]]></tran_id__org>");
processDynXmlString.append("<active_yn><![CDATA[" + activeYn + "]]></active_yn>");
processDynXmlString.append("<chg_user><![CDATA[" + chgUser + "]]></chg_user>");
processDynXmlString.append("<chg_term><![CDATA[" + chgTerm + "]]></chg_term>");
processDynXmlString.append("<confirmed><![CDATA[N]]></confirmed>");
processDynXmlString.append("<conf_date><![CDATA[]]></conf_date>");
processDynXmlString.append("<itm_ver><![CDATA[]]></itm_ver>");
processDynXmlString.append("<enterprises><![CDATA[{{enterprises}}]]></enterprises>");
processDynXmlString.append("<emp_code_aprv><![CDATA[]]></emp_code_aprv>");
processDynXmlString.append("<chg_date><![CDATA[" + dateFormatter(tranDateStr) + "]]></chg_date>");
processDynXmlString.append("<appl_db><![CDATA[" + applDb + "]]></appl_db>");
processDynXmlString.append("<exec_rights><![CDATA[{{executionRights}}]]></exec_rights>");
processDynXmlString.append("<tran_id__ref><![CDATA[" + tranId + "]]></tran_id__ref>");
processDynXmlString.append("</Detail1>");
String msqlDet1Sql = "SELECT LINE_NO, ORA_STMNT, DB2_STMNT, STMNT_TYPE FROM sql_changes_det WHERE tran_id = ?";
mSqlDetPstmt = conn.prepareStatement(msqlDet1Sql);
mSqlDetPstmt.setString(1, tranID);
mSqlDetRs = mSqlDetPstmt.executeQuery();
while (mSqlDetRs.next()) {
lineNo = checkNull(mSqlDetRs.getString("LINE_NO"));
oracleStatement = checkNull(mSqlDetRs.getString("ORA_STMNT"));
db2Statement = checkNull(mSqlDetRs.getString("DB2_STMNT"));
statementType = checkNull(mSqlDetRs.getString("STMNT_TYPE"));
processDynXmlString.append("<Detail2 dbID=':' domID='2' objName=\"sql_changes\" objContext=\"2\">");
processDynXmlString.append("<attribute pkNames=\"\" selected=\"N\" updateFlag=\"A\" status=\"N\" />");
processDynXmlString.append("<line_no><![CDATA[").append(lineNo).append("]]></line_no>");
processDynXmlString.append("<ora_stmnt><![CDATA[").append(oracleStatement).append("]]></ora_stmnt>");
processDynXmlString.append("<db2_stmnt><![CDATA[").append(db2Statement).append("]]></db2_stmnt>");
processDynXmlString.append("<stmnt_type><![CDATA[").append(statementType).append("]]></stmnt_type>");
processDynXmlString.append("</Detail2>");
}
if (mSqlDetRs != null) {
mSqlDetRs.close();
mSqlDetRs = null;
}
if (mSqlDetPstmt != null) {
mSqlDetPstmt.close();
mSqlDetPstmt = null;
}
processDynXmlString.append("</Header0></group0></DocumentRoot>");
// Now, processDynXmlString contains the dynamically generated XML with the values from your query
System.out.println(processDynXmlString.toString());
// String tranIDNew = commonDBAccessEJB.generateSeq("asset_assign_seq", 10, userInfo.getTransDB());
// BaseLogger.log("3", null, null, " generated tranID :: " + tranIDNew); // tran_id
// processDynXmlString.toString().replace("{{tranId}}", tranIdNew);
String xmlWithQ = processDynXmlString.toString().replace("{{executionRights}}", "Q");
xmlWithQ = xmlWithQ.toString().replace("{{enterprises}}", "APPVISQC");
BaseLogger.log("3", null, null, "xmlWithQ XML:::" + xmlWithQ + "]");
String xmlWithD = processDynXmlString.toString().replace("{{executionRights}}", "D");
xmlWithD = xmlWithD.toString().replace("{{enterprises}}", "APPVISDEV");
BaseLogger.log("3", null, null, "userInfo::" + userInfo.toString() + "]");
MasterStatefulLocal masterStateful = (MasterStatefulLocal) initialContext
.lookup("ibase/MasterStatefulEJB/local");
String processRequestResultDev = masterStateful.processRequest(userInfo, xmlWithD, false, conn);
BaseLogger.log("3", null, null, "processRequest processRequestResultD" + processRequestResultDev + "]");
masterStateful = null;
appConnect = null;
initialContext = null;
appConnect = new AppConnectParm();
initialContext = new InitialContext(appConnect.getProperty());
masterStateful = (MasterStatefulLocal) initialContext
.lookup("ibase/MasterStatefulEJB/local");
String processRequestResultQC = masterStateful.processRequest(userInfo, xmlWithQ, false, conn);
BaseLogger.log("3", null, null, "processRequest gsbnice processRequestResultQ" + processRequestResultQC + "]");
retString = processRequestResultQC;
}
catch(Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try
{
if ( conn != null )
{
if ( isLocalConn )
{
conn.close();
conn = null;
}
}
}
catch(Exception e)
{
}
}
return retString;
}
public static String formatDateTime(LocalDate tranDate, LocalTime tranTime) {
LocalDateTime tranDateTime = LocalDateTime.of(tranDate, tranTime);
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
String formattedDateTime = tranDateTime.format(formatter);
return formattedDateTime;
}
public static String dateFormatter(String inputDateString ) {
String result = "";
String inputFormat = "yyyy-MM-dd HH:mm:ss";
String outputFormat = "dd/MM/yy HH:mm:ss";
try {
// Parse input date string
SimpleDateFormat inputFormatter = new SimpleDateFormat(inputFormat);
Date date = inputFormatter.parse(inputDateString);
// Format the date in the desired output format
SimpleDateFormat outputFormatter = new SimpleDateFormat(outputFormat);
String outputDateString = outputFormatter.format(date);
System.out.println("Input Date: " + inputDateString);
System.out.println("Formatted Date: " + outputDateString);
result = outputDateString;
} catch (Exception e) {
BaseLogger.log("3", null, null, "Exception in dateFormatter. [" + E12GenericUtility.getStackTrace(e) + "]");
}
return result;
}
private void closeResources(ResultSet rs, PreparedStatement pstmt, Connection conn) {
if (rs != null) {
try {
rs.close();
} catch (SQLException e) {
e.printStackTrace();
}
}
if (pstmt != null) {
try {
pstmt.close();
} catch (SQLException e) {
e.printStackTrace();
}
}
if (conn != null) {
try {
conn.close();
} catch (SQLException e) {
e.printStackTrace();
}
}
}
private String checkNull(String input)
{
if(input == null)
{
input = "";
}
return input;
}
}
\ No newline at end of file
package ibase.webitm.ejb.wsfa.masters;
import java.rmi.RemoteException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.Date;
import ibase.system.config.ConnDriver;
import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.ejb.ITMDBAccessLocal;
import ibase.webitm.ejb.ValidatorEJB;
import ibase.utility.BaseException;
import ibase.utility.BaseLogger;
import ibase.utility.E12GenericUtility;
import ibase.utility.GenericUtility;
import ibase.webitm.utility.ITMException;
import javax.ejb.Stateless;
//import org.apache.poi.util.SystemOutLogger;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
@Stateless
public class ManageSql extends ValidatorEJB {
public String wfValData() throws RemoteException, ITMException
{
return "";
}
public String wfValData(String xmlString, String xmlString1, String xmlString2, String objContext, String editFlag, String xtraParams) throws RemoteException, ITMException
{
System.out.println("Inside wfValData updated method 20/07/22 ::: Ajit");
Document dom = null;
Document dom1 = null;
Document dom2 = null;
String errString = null;
GenericUtility genericUtility = GenericUtility.getInstance();
try
{
System.out.println("wfValData value of xmlString ["+xmlString+"]");
System.out.println("wfValData value of xmlString ["+xmlString1+"]");
System.out.println("wfValData value of xmlString ["+xmlString2+"]");
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);
}
errString = wfValData(dom, dom1, dom2, objContext, editFlag, xtraParams);
System.out.println ("ErrString: " + errString);
}
catch (Exception e)
{
System.out.println ("Exception: wfValData(String xmlString): " + e.getMessage() + ":");
errString = genericUtility.createErrorString(e);
e.printStackTrace();
}
System.out.println ("Returning from wfValData");
return (errString);
}
public String wfValData(Document dom, Document dom1, Document dom2, String objContext, String editFlag, String xtraParams) throws RemoteException, ITMException
{
GenericUtility genericUtility = GenericUtility.getInstance();
System.out.println("20/07/22 ::: jay");
try {
BaseLogger.log("3", getUserInfo(), null, "dom case2*>>>> Elements>>["+genericUtility.serializeDom(dom).toString()+"]");//added for testing
BaseLogger.log("3", getUserInfo(), null, "dom2 case2*>>>> Elements>>["+genericUtility.serializeDom(dom2).toString()+"]");//added for testing
BaseLogger.log("3", getUserInfo(), null, "dom1 case2*>>>> Elements>>["+genericUtility.serializeDom(dom1).toString()+"]");
} catch (BaseException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}//added for testing
String userId = "";
String requestId = "";//changed by Ashish.J
String sql="";
String errString = "";
Connection connection = null;
ResultSet rs = null;
PreparedStatement pstmt = null;
NodeList parentList = null;
NodeList childList = null;
Node parentNode = null;
Node childNode = null;
String childNodeName = null;
ITMDBAccessEJB itmDBAccess = null;
String reqid="";//changed by Ashish.J
int noOfChilds = 0;
int currentFormNo = 0;
try
{
SimpleDateFormat DOB = new SimpleDateFormat(getApplDateFormat());
itmDBAccess = new ITMDBAccessEJB();
connection = getConnection();
userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginCode");
if(objContext != null && objContext.trim().length()>0)
{
currentFormNo = Integer.parseInt(objContext);
}
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("enterprises") )
{
String appldb = checkNull(genericUtility.getColumnValue("appl_db", dom));
if (childNode.getFirstChild() == null )
{
if(appldb.equalsIgnoreCase("S"))
{
errString = getErrorString("enterprises","NULENTRPRS",userId);
break;
}
}
else
{
String enterprise = checkNull(getColumnValue("enterprises",dom,"1"));
String [] temp = enterprise.split(",");
for(int i = 0 ;i < temp.length;i++)
{
String ent = temp[i];
int count=0;
sql = "SELECT COUNT(*) AS COUNT FROM ENTERPRISE WHERE ENTERPRISE=?";
System.out.println("pophelp query for enterprise " + sql);
pstmt = connection.prepareStatement(sql);
pstmt.setString(1, ent);
rs = pstmt.executeQuery();
if( rs.next() )
{
count = rs.getInt("COUNT");
}
if ( rs != null )
{
rs.close();
rs = null;
}
if ( pstmt != null )
{
pstmt.close();
pstmt = null;
}
if(count == 0)
{
errString = getErrorString("enterprises","INVENTRPRS",userId);
break;
}
}
}
}
if( childNodeName.equalsIgnoreCase("req_id") )
{
reqid = genericUtility.getColumnValue("req_id", dom);//changed by Ashish.J
if (reqid!=null && reqid.trim().length()>0 )
{
sql = "SELECT COUNT(*) AS COUNT FROM SER_REQUEST WHERE REQ_ID =?";
pstmt = connection.prepareStatement(sql);
pstmt.setString(1,reqid);
rs = pstmt.executeQuery();
int count = 0;
if( rs.next() )
{
count = rs.getInt("COUNT");
}
if ( rs != null )
{
rs.close();
rs = null;
}
if ( pstmt != null )
{
pstmt.close();
pstmt = null;
}
if(count == 0)
{
System.out.println("not a Valid Field name"+reqid);
errString = getErrorString("req_id","INVLDREQID",userId);
break;
}
}
}
if( childNodeName.equalsIgnoreCase("itm_ver") )
{
if (childNode.getFirstChild() == null )
{
}
else
{
String div = checkNull(getColumnValue("itm_ver",dom,"1"));
sql = "SELECT COUNT(*) AS COUNT FROM ITEMSER WHERE ITEM_SER =?";
pstmt = connection.prepareStatement(sql);
pstmt.setString(1,div);
rs = pstmt.executeQuery();
int count = 0;
if( rs.next() )
{
count = rs.getInt("COUNT");
}
if ( rs != null )
{
rs.close();
rs = null;
}
if ( pstmt != null )
{
pstmt.close();
pstmt = null;
}
if(count == 0)
{
System.out.println("not a Valid Field name"+div);
errString = getErrorString("itm_ver","INVLDDIV",userId);
break;
}
}
}
if( childNodeName.equalsIgnoreCase("emp_code__given") )
{
if (childNode.getFirstChild() == null )
{
}
else
{
String empcg = checkNull(getColumnValue("emp_code__given",dom,"1"));
sql = "SELECT COUNT(1) NAME FROM USERS WHERE CODE =?";
pstmt = connection.prepareStatement(sql);
pstmt.setString(1,empcg);
rs = pstmt.executeQuery();
int count = 0;
if( rs.next() )
{
count = rs.getInt(1);
}
if ( rs != null )
{
rs.close();
rs = null;
}
if ( pstmt != null )
{
pstmt.close();
pstmt = null;
}
if(count == 0)
{
errString = getErrorString("emp_code__given","INVLDSUB",userId);
break;
}
}
}
if( childNodeName.equalsIgnoreCase("emp_code__merge") )
{
if (childNode.getFirstChild() == null )
{
}
else
{
String empcm = checkNull(getColumnValue("emp_code__merge",dom,"1"));
sql = "SELECT COUNT(1) NAME FROM USERS WHERE CODE =?";
System.out.println("pophelp query for enterprise " + sql);
pstmt = connection.prepareStatement(sql);
pstmt.setString(1,empcm);
rs = pstmt.executeQuery();
int count = 0;
if( rs.next() )
{
count = rs.getInt(1);
}
if ( rs != null )
{
rs.close();
rs = null;
}
if ( pstmt != null )
{
pstmt.close();
pstmt = null;
}
if(count == 0)
{
System.out.println("not a Valid Field name"+empcm);
errString = getErrorString("emp_code__merge","INVLDMER",userId);
break;
}
}
}
//End elseif
}//End for loop
}//End for loop
break;
}//case1
}//switch
}//try
catch (Exception e)
{
System.out.println ("Exception: wfValData(Document dom): " + e.getMessage() + ":");
errString = genericUtility.createErrorString(e);
throw new ITMException(e);
}
finally
{
try
{
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(connection != null)
{
connection.close();
connection = null;
}
}
catch(Exception e)
{
errString = genericUtility.createErrorString(e);
}
}
return (errString);
}
public String itemChanged(String xmlString, String xmlString1, String xmlString2, String objContext,
String currentColumn, String editFlag, String xtraParams) throws RemoteException, ITMException
{
Document dom1 = null;
Document dom = null;
Document dom2 = null;
String valueXmlString = "";
try {
E12GenericUtility genericUtility = new ibase.utility.E12GenericUtility();
if (xmlString != null && xmlString.trim().length() != 0) {
BaseLogger.log("3", null, null, "itemchange header xmlString>>>>" + xmlString);
dom = genericUtility.parseString(xmlString);
}
if (xmlString1 != null && xmlString1.trim().length() != 0) {
BaseLogger.log("3", null, null, "xmlString1>>>>" + xmlString1);
dom1 = genericUtility.parseString(xmlString1);
}
if (xmlString2 != null && xmlString2.trim().length() != 0) {
BaseLogger.log("3", null, null, "xmlString2>>>>" + xmlString2);
dom2 = genericUtility.parseString(xmlString2);
BaseLogger.log("3", null, null, "dom2:::-" + genericUtility.serializeDom(dom2));
}
valueXmlString = itemChanged(dom, dom1, dom2, objContext, currentColumn, editFlag, xtraParams);
} catch (Exception e) {
BaseLogger.log("3", null, null, "Exception itemChanged::::" + e.getMessage() + ":");
e.printStackTrace();
}
BaseLogger.log("3", null, null, "returning from itemChanged method");
return valueXmlString;
}
public String itemChanged(Document dom, Document dom1, Document dom2, String objContext, String currentColumn,String editFlag, String xtraParams) throws RemoteException, ITMException
{
System.out.println(" itemchange method called...");
BaseLogger.log("3", null, null, "Itemchanged Called");
StringBuffer valueXmlString = new StringBuffer();
int currentFormNo = 0;
String userId = "",sql="",empmcode="";//changed by Ashish.J
PreparedStatement pstmt = null;
ResultSet rs = null;
Connection conn=null;
try
{
E12GenericUtility genericUtility = new ibase.utility.E12GenericUtility();
conn = getConnection();
userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginCode");//changed by Ashish.J
if (objContext != null && objContext.trim().length() > 0)
currentFormNo = Integer.parseInt(objContext);
currentColumn = currentColumn == null ? "" : currentColumn.trim();
SimpleDateFormat formatter = new SimpleDateFormat(genericUtility.getApplDateFormat());
valueXmlString = new StringBuffer("<?xml version=\"1.0\"?><Root><header><editFlag>");
valueXmlString.append(editFlag).append("</editFlag></header>");
switch (currentFormNo)
{
case 1:// first From //this code for auto date generates
valueXmlString.append("<Detail1>");
if ("itm_default".equalsIgnoreCase(currentColumn))
{
Date dte = new Date();
String currentDate = "";
currentDate = formatter.format(dte);
valueXmlString.append("<tran_date>").append("<![CDATA[" + currentDate + "]]>").append("</tran_date>");
valueXmlString.append("<emp_code__given>").append("<![CDATA[" + userId + "]]>").append("</emp_code__given>");//changed by Ashish.J
valueXmlString.append("<emp_code__merge>").append("<![CDATA[" + userId + "]]>").append("</emp_code__merge>");
valueXmlString.append("<exec_rights>").append("<![CDATA[A]]>").append("</exec_rights>");
sql = "SELECT NAME FROM USERS WHERE CODE='" + userId + "'";
pstmt = conn.prepareStatement(sql);
rs = pstmt.executeQuery();
String empgName = "";
if (rs.next())
{
empgName = rs.getString("NAME") != null ? rs.getString("NAME").trim() : "";
}
if (rs!= null)
{
rs.close();
rs = null;
}
if(pstmt!=null)
{
pstmt.close();
pstmt = null;
}
valueXmlString.append("<name><![CDATA[").append(empgName).append("]]></name>\r\n");
valueXmlString.append("<users_name><![CDATA[").append(empgName).append("]]></users_name>\r\n");
//changed by Ashish.J
}
else if ("itm_defaultedit".equalsIgnoreCase(currentColumn))
{
String applDB = checkNull(genericUtility.getColumnValue("appl_db", dom));
String selEnterprises = checkNull(genericUtility.getColumnValue("enterprises", dom));
if (applDB.equalsIgnoreCase("E"))
{
valueXmlString.append("<enterprises protect='1'>").append("<![CDATA[" + selEnterprises + "]]>").append("</enterprises>");
}
else
{
valueXmlString.append("<enterprises protect='0'>").append("<![CDATA[" + selEnterprises + "]]>").append("</enterprises>");
}
//changed by Ashish.J
valueXmlString.append("<emp_code__given>").append("<![CDATA[" + userId + "]]>").append("</emp_code__given>");
sql = "SELECT NAME FROM USERS WHERE CODE='" + userId + "'";
pstmt = conn.prepareStatement(sql);
rs = pstmt.executeQuery();
String empgName = "";
if (rs.next())
{
empgName = rs.getString("NAME") != null ? rs.getString("NAME").trim() : "";
}
if (rs!= null)
{
rs.close();
rs = null;
}
if(pstmt!=null)
{
pstmt.close();
pstmt = null;
}
valueXmlString.append("<name><![CDATA[").append(empgName).append("]]></name>\r\n");
//changed by Ashish.J
}
else if (currentColumn.trim().equalsIgnoreCase("req_id"))
{
Timestamp requestDate = null;//changed by Ashish.J
String reqID = checkNull(genericUtility.getColumnValue("req_id", dom));
sql = "select req_date from ser_request where req_id= '" + reqID + "'";
pstmt = conn.prepareStatement(sql);
rs = pstmt.executeQuery();
if (rs.next())
{
requestDate = rs.getTimestamp("req_date");
}
if (rs!= null)
{
rs.close();
rs = null;
}
if(pstmt!=null)
{
pstmt.close();
pstmt = null;
}
//changed by Ashish.J
//formatter = new SimpleDateFormat(genericUtility.getApplDateFormat());
//String reqDate = formatter.format(requestDate);
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
if(requestDate !=null)
{
//valueXmlString.append("<req_date>").append("<![CDATA[" + requestDate + "]]>").append("</req_date>");
valueXmlString.append("<req_date>").append("<![CDATA["+ sdf.format(requestDate).toString() +"]]>").append("</req_date>");
}
else
{
//valueXmlString.append("<req_date>").append("<![CDATA[" + "" + "]]>").append("</req_date>");
valueXmlString.append("<req_date>").append("<![CDATA["+ "" +"]]>").append("</req_date>");
}//changed by Ashish.J
}
else if ("appl_db".equalsIgnoreCase(currentColumn)) {
String appldb = checkNull(genericUtility.getColumnValue("appl_db", dom));
if (appldb.equalsIgnoreCase("E"))
{
valueXmlString.append("<enterprises protect='1'>").append("</enterprises>");
}
else
{
valueXmlString.append("<enterprises protect='0'>").append("</enterprises>");
}
}
else if ("emp_code__given".equalsIgnoreCase(currentColumn))
{
String empgcode = checkNull(genericUtility.getColumnValue("emp_code__given", dom));
sql = "SELECT NAME FROM USERS WHERE CODE='" + empgcode + "'";
pstmt = conn.prepareStatement(sql);
rs = pstmt.executeQuery();
String empgName = "";
if (rs.next())
{
empgName = rs.getString("NAME") != null ? rs.getString("NAME").trim() : "";
}
if (rs!= null)
{
rs.close();
rs = null;
}
if(pstmt!=null)
{
pstmt.close();
pstmt = null;
}
valueXmlString.append("<name><![CDATA[").append(empgName).append("]]></name>\r\n");
}
else if ("emp_code__merge".equalsIgnoreCase(currentColumn))
{
empmcode = checkNull(genericUtility.getColumnValue("emp_code__merge", dom));
sql = "SELECT NAME FROM USERS WHERE CODE='" + empmcode + "'";
pstmt = conn.prepareStatement(sql);
rs = pstmt.executeQuery();
String empmName = "";
if (rs.next())
{
empmName = rs.getString("NAME") != null ? rs.getString("NAME").trim() : "";
}
if (rs!= null)
{
rs.close();
rs = null;
}
if(pstmt!=null)
{
pstmt.close();
pstmt = null;
}
valueXmlString.append("<users_name><![CDATA[").append(empmName).append("]]></users_name>\r\n");
}
/* else if ("enterprises".equalsIgnoreCase(currentColumn))
{
String entrpcode = genericUtility.getColumnValue("enterprises", dom1);
String sql = "SELECT ENTERPRISE_DESCR FROM ENTERPRISE WHERE ENTERPRISE in('"+ entrpcode.replaceAll(",", "','") + "')";
pstmt = conn.prepareStatement(sql);
rs = pstmt.executeQuery();
String entrpname = "";
while (rs.next())
{
String enterpriseDescr = rs.getString("ENTERPRISE_DESCR");
if (entrpname.length() == 0)
{
entrpname = enterpriseDescr;
}
else
{
entrpname = entrpname + " , " + enterpriseDescr;
}
}
if (rs!= null)
{
rs.close();
rs = null;
}
if(pstmt!=null)
{
pstmt.close();
pstmt = null;
}
valueXmlString.append("<enterprise_descr><![CDATA[").append(entrpname).append("]]></enterprise_descr>\r\n");
} */
else if ("itm_ver".equalsIgnoreCase(currentColumn))
{
String itmver = checkNull(genericUtility.getColumnValue("itm_ver", dom));
sql = "SELECT DESCR FROM ITEMSER WHERE ITEM_SER='" + itmver + "'";
pstmt = conn.prepareStatement(sql);
rs = pstmt.executeQuery();
String itmvername = "";
if (rs.next())
{
System.out.println("enter in customer");
itmvername = rs.getString("DESCR") != null ? rs.getString("DESCR").trim() : "";
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
valueXmlString.append("<descr><![CDATA[").append(itmvername).append("]]></descr>\r\n");
}
valueXmlString.append("</Detail1>");
break;
}// End Switch
valueXmlString.append("</Root>");
} // End Try
catch (Exception e) {
e.printStackTrace();
BaseLogger.log("3", null, null, "Exception ::" + e.getMessage());
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 d)
{
d.printStackTrace();
}
}
BaseLogger.log("3", null, null, "\n HealthProfile:ValueXmlString :" + valueXmlString + ":*******");
return valueXmlString.toString();
}
public String checkNull(String input)
{
if (input == null || "null".equalsIgnoreCase(input))
{
input= "";
}
return input.trim();
}
}
\ No newline at end of file
/**
* PURPOSE : Home screen confirm comp
* AUTHOR : Mrunalini Sinkar
*/
package ibase.webitm.ejb.wsfa.masters;
import ibase.system.config.ConnDriver;
import ibase.utility.BaseLogger;
import ibase.webitm.ejb.ActionHandlerEJB;
import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.utility.GenericUtility;
import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException;
import java.sql.*;
import java.util.HashMap;
import java.util.Iterator;
import ibase.webitm.utility.TransIDGenerator;
import ibase.utility.CommonConstants;
import ibase.utility.E12GenericUtility;
public class ManageSqlConf extends ActionHandlerEJB
{
int reUpdateCnt = 0;
String sqlError = "";
public String confirm( String tranId, String xtraParams, String forcedFlag ) throws RemoteException,ITMException
{
System.out.println("HeaderDetailConf Called!!!!!........["+tranId+"]");
boolean isError = false;
String applDB = "",enterprises="";
String sql = "";
String requestID = "";
ResultSet rs = null;
PreparedStatement pstmt = null;
Connection con = null;
String errString = "";
String schemaName = "";
String enterpriseSQL="";
ITMDBAccessEJB itmdbAccessLocal = null ;
boolean isThisObject=false;
try
{
itmdbAccessLocal = new ITMDBAccessEJB();
GenericUtility genericUtility = GenericUtility.getInstance();
con = getConnection();
con.setAutoCommit(false);
String userId = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginCode"));
String chgTerm = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams,"termId"));
//Changes Start -- 13 Nov AJIT
// After fetching applDB, enterprises, requestID
System.out.println("Checking exec_rights dependency for tran_id: " + tranId);
String execRights = "";
String tranIdRef = "";
String checkSql = "SELECT tran_id__ref,EXEC_RIGHTS FROM SQL_CHANGES WHERE TRAN_ID = ?";
pstmt = con.prepareStatement(checkSql);
pstmt.setString(1, tranId);
rs = pstmt.executeQuery();
if (rs.next()) {
tranIdRef = checkNull(rs.getString("tran_id__ref"));
execRights = checkNull(rs.getString("EXEC_RIGHTS"));
}
if (rs != null) {
rs.close();
rs = null;
}
if (pstmt != null) {
pstmt.close();
pstmt = null;
}
if ("Q".equalsIgnoreCase(execRights)) {
System.out.println("This transaction has exec_rights = 'Q', checking for dependent 'D' confirmation...");
String qCheckSql = "SELECT CONFIRMED FROM SQL_CHANGES WHERE EXEC_RIGHTS = 'D' and tran_id__ref = "+tranIdRef;
pstmt = con.prepareStatement(qCheckSql);
rs = pstmt.executeQuery();
boolean qConfirmed = false;
if (rs.next()) {
String confirmedFlag = checkNull(rs.getString("CONFIRMED"));
if ("Y".equalsIgnoreCase(confirmedFlag)) {
qConfirmed = true;
}
}
if (rs != null) {
rs.close();
rs = null;
}
if (pstmt != null) {
pstmt.close();
pstmt = null;
}
if (!qConfirmed) {
System.out.println("Cannot confirm this transaction. The dependent record with exec_rights = 'Q' is not yet confirmed.");
errString = itmdbAccessLocal.getErrorString("confirmed", "MSDNCONF", "","",con);
return errString; // Stop execution here
}
}
//Changes Start -- 13 Nov AJIT (Condition for exec_rights = 'A')
if ("A".equalsIgnoreCase(execRights)) {
System.out.println("This transaction has exec_rights = 'A', checking if dependent transactions are confirmed...");
String depCheckSql = "SELECT TRAN_ID, CONFIRMED FROM SQL_CHANGES WHERE EXEC_RIGHTS = 'D' and TRAN_ID__REF = ?";
pstmt = con.prepareStatement(depCheckSql);
pstmt.setString(1, tranId);
rs = pstmt.executeQuery();
boolean recordFound = false;
boolean unconfirmedFound = false;
String pendingTranId = "";
while (rs.next()) {
recordFound = true;
String confirmedFlag = checkNull(rs.getString("CONFIRMED"));
String depTranId = checkNull(rs.getString("TRAN_ID"));
if (!"Y".equalsIgnoreCase(confirmedFlag)) {
unconfirmedFound = true;
pendingTranId = depTranId;
}
}
if (rs != null) {
rs.close();
rs = null;
}
if (pstmt != null) {
pstmt.close();
pstmt = null;
}
// 🔸 If no dependent records found for this tran_id
if (!recordFound) {
System.out.println("Cannot confirm this transaction. Admin has not approved the workflow yet for tran_id: " + tranId);
errString = itmdbAccessLocal.getErrorString("confirmed", "WRKFNA", "", "", con);
return errString; // Stop execution here
}
// 🔸 If dependent records found but not yet confirmed
if (unconfirmedFound) {
System.out.println("Cannot confirm this transaction. Dependent transaction [" + pendingTranId + "] is not yet confirmed.");
errString = itmdbAccessLocal.getErrorString("confirmed", "MSDNCONF", "", "", con);
return errString; // Stop execution here
}
System.out.println("All dependent transactions for exec_rights = 'A' are confirmed. Proceeding...");
}
//Changes End -- 13 Nov AJIT (Condition for exec_rights = 'A')
//Changes End -- 13 Nov AJIT (Condition for exec_rights = 'A')
//Changes End -- 13 Nov AJIT
HashMap<String,String> schemaListMap= new HashMap<String,String>();
sql = "SELECT APPL_DB,ENTERPRISES,REQ_ID FROM SQL_CHANGES WHERE TRAN_ID=?";
pstmt = con.prepareStatement(sql);
pstmt.setString(1, tranId);
rs = pstmt.executeQuery();
if( rs.next() )
{
applDB = checkNull( rs.getString("APPL_DB") );
enterprises = checkNull( rs.getString("ENTERPRISES") );
requestID = checkNull( rs.getString("REQ_ID") );
}
if( pstmt != null )
{
pstmt.close();
pstmt = null;
}
if ( rs != null )
{
rs.close();
rs = null;
}
if(applDB.equalsIgnoreCase("E"))
{
// Added by Gagan B. on 13-NOV-25 [make connection with Driver for ENTERPRISE] -- START
Connection entCon = null;
ConnDriver connDriver = new ConnDriver();
entCon = connDriver.getConnectDB("Driver");
// Added by Gagan B. on 13-NOV-25 [make connection with Driver for ENTERPRISE] -- END
sql = "SELECT SCHEMA_NAME,ENTERPRISE FROM ENTERPRISE WHERE SCHEMA_NAME IS NOT NULL";
pstmt = entCon.prepareStatement(sql);
rs = pstmt.executeQuery();
while( rs.next() )
{
schemaName = checkNull( rs.getString("SCHEMA_NAME") );
enterpriseSQL = checkNull( rs.getString("ENTERPRISE") );
schemaListMap.put(schemaName,enterpriseSQL);
}
if( pstmt != null )
{
pstmt.close();
pstmt = null;
}
if ( rs != null )
{
rs.close();
rs = null;
}
// Added by Gagan B. on 13-NOV-25 [make connection with Driver for ENTERPRISE] -- START
if( entCon != null && !entCon.isClosed() )
{
System.out.println( "Closing entCon " );
entCon.close();
entCon = null;
connDriver = null;
}
// Added by Gagan B. on 13-NOV-25 [make connection with Driver for ENTERPRISE] -- END
}
if(applDB.equalsIgnoreCase("S"))
{
// Added by Gagan B. on 13-NOV-25 [make connection with Driver for ENTERPRISE] -- START
Connection entCon = null;
ConnDriver connDriver = new ConnDriver();
entCon = connDriver.getConnectDB("Driver");
// Added by Gagan B. on 13-NOV-25 [make connection with Driver for ENTERPRISE] -- END
String EnterPriseInFormat=getFormattedStringBuff(enterprises);
sql = "SELECT SCHEMA_NAME,ENTERPRISE FROM ENTERPRISE WHERE ENTERPRISE IN("+EnterPriseInFormat+") " ;
pstmt = entCon.prepareStatement(sql);
rs = pstmt.executeQuery();
while( rs.next() )
{
schemaName = checkNull( rs.getString("SCHEMA_NAME") );
enterpriseSQL = checkNull( rs.getString("ENTERPRISE") );
schemaListMap.put(schemaName,enterpriseSQL);
}
if( pstmt != null )
{
pstmt.close();
pstmt = null;
}
if ( rs != null )
{
rs.close();
rs = null;
}
// Added by Gagan B. on 13-NOV-25 [make connection with Driver for ENTERPRISE] -- START
if( entCon != null && !entCon.isClosed() )
{
System.out.println( "Closing entCon " );
entCon.close();
entCon = null;
connDriver = null;
}
// Added by Gagan B. on 13-NOV-25 [make connection with Driver for ENTERPRISE] -- END
}
sql = "SELECT ORA_STMNT,LINE_NO FROM SQL_CHANGES_DET WHERE TRAN_ID=?";
pstmt = con.prepareStatement(sql);
pstmt.setString(1, tranId);
rs = pstmt.executeQuery();
while( rs.next() )
{
String oracleStatment = checkNull( rs.getString("ORA_STMNT") );
String linNo = checkNull( rs.getString("LINE_NO") );
System.out.println("oracle execute statment["+oracleStatment+"]");
if( oracleStatment.lastIndexOf(";") != -1 )
{
if(!oracleStatment.toUpperCase().startsWith("CREATE"))
{
BaseLogger.log("3", null, null, "Inside if oracleStatment [" + oracleStatment + "]");//Added by Ashish.J
int endIndex=oracleStatment.lastIndexOf(";");
oracleStatment=oracleStatment.substring(0, endIndex);
}
else if(oracleStatment.toUpperCase().startsWith("CREATE TABLE"))
{
BaseLogger.log("3", null, null, "Inside else oracleStatment [" + oracleStatment + "]");//Added by Ashish.J
int endIndex=oracleStatment.lastIndexOf(";");
oracleStatment=oracleStatment.substring(0, endIndex);
}
}
if(oracleStatment.toUpperCase().startsWith("CREATE") && !oracleStatment.toUpperCase().startsWith("CREATE TABLE"))
{
BaseLogger.log("3", null, null, "Inside is the object oracleStatment [" + oracleStatment + "]");//Added by Ashish.J
isThisObject=true;
}
//if( oracleStatment.toUpperCase().startsWith("ALTER") || oracleStatment.toUpperCase().startsWith("INSERT INTO") || oracleStatment.toUpperCase().startsWith("UPDATE") || oracleStatment.toUpperCase().startsWith("DELETE"))
//{
executeQueries(con,schemaListMap, oracleStatment,tranId,linNo,requestID,userId,chgTerm,isThisObject) ;
//}
}
if( pstmt != null )
{
pstmt.close();
pstmt = null;
}
if ( rs != null )
{
rs.close();
rs = null;
}
String upSql="UPDATE SQL_CHANGES SET CONFIRMED='Y',CONF_DATE=SYSDATE,EMP_CODE_APRV=?,EXECUTED='Y' WHERE TRAN_ID=?";
pstmt = con.prepareStatement(upSql);
pstmt.setString(1, userId);
pstmt.setString(2, tranId);
int updCnt = pstmt.executeUpdate();
if( pstmt != null )
{
pstmt.close();
pstmt = null;
}
System.out.println("update count is["+updCnt+"]");
if(updCnt>0)
{
errString = itmdbAccessLocal.getErrorString("confirmed", "VTCONFIRM", "","",con);
System.out.println("errString is "+ errString);
}
}
catch(Exception e)
{
isError = true;
try
{
con.rollback();
}
catch(Exception e1)
{
e1.printStackTrace();
}
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try
{
System.out.println("Commiting and Closing Connection..........");
if ( !(isError) )
{
System.out.println( "inside finally if" );
con.commit();
//errString = itmdbAccessLocal.getErrorString("","TEMCONFIRM",loginEmpCode);
//errString = itmdbAccessLocal.getErrorString("confirmed", "TEMCONFIRM", "","",con);
}
else
{
System.out.println( "inside finally rollback else" );
con.rollback();
}
if( pstmt != null )
{
System.out.println( "inside finally if pstmt " );
pstmt.close();
pstmt = null;
}
if( con != null && !con.isClosed() )
{
System.out.println( "inside finally if con " );
con.close();
con = null;
}
}
catch( Exception e)
{
e.printStackTrace();
}
}
System.out.println("errString is +++:"+errString);
return errString;
}
private String checkNull(String input)
{
if(input == null)
{
input = "";
}
return input;
}
private String getFormattedStringBuff( String data )
{
StringBuffer dataString = new StringBuffer();
try
{
String[] dataArr = null;
if ( data.indexOf(",") == -1 )
{
dataString.append( "'"+data+"'" );
}
else
{
dataArr = data.split(",");
for (int i=0; i < dataArr.length; i++ )
{
if ( i == 0 )
{
dataString.append( "'"+dataArr[i]+"'" );
}
else
{
dataString.append( "," );
dataString.append( "'"+dataArr[i]+"'" );
}
}
}
}
catch (Exception ex)
{
ex.printStackTrace();
}
return dataString.toString();
}
// Commented by Gagan B. on 13-NOV-25 -- START
/*
private int executeQueries(Connection connection,HashMap<String,String> schemaListMap, String Sql,String tranID,String lineNo,String requestID,String userId,String chgTerm,boolean isThisObjectType)
{
BaseLogger.log("3", null, null, "Inside executeQueries gsb1 [" + Sql + "]");
BaseLogger.log("3", null, null, "Inside executeQueries schemaListMap [" + schemaListMap + "]");
ConnDriver connDriver = new ConnDriver();
Connection conn = null;
Statement stmnt = null;
int updateCount=0;
CallableStatement callableStmt = null;
String error = "";//Added by Ashish.J
try
{
System.out.println("isThisObjectType gsb----:::::["+isThisObjectType+"]");
if(!schemaListMap.isEmpty())
{
Iterator<String> itr = schemaListMap.keySet().iterator();
while (itr.hasNext())
{
String schema = itr.next();
String enterprise = schemaListMap.get(schema);
int updCount = 0;
try {
conn = connDriver.getConnectDB(schema);
} catch (Exception e) {
error=e.getMessage();
BaseLogger.log("3", null, null, "Inside catch of error..["+error+"]");
insertIntoSqlExectionLog(connection,tranID,enterprise,lineNo,requestID,Sql,updCount, "E" , userId,chgTerm,error);
}
if( conn == null )
{
BaseLogger.log("3", null, null, "Unable to get connection for gsb"
+ " [" + schema + "]");
//throw new Exception("Unable to get connection for [" + schema + "]");
}
if(checkNull(Sql).trim().length() > 0)
{
BaseLogger.log("3", null, null, "is the object---[" + isThisObjectType + "]");
if(isThisObjectType)
{
BaseLogger.log("3", null, null, "is the object if [" + isThisObjectType + "]");
String plsql = " begin " +
" dbms_metadata.set_transform_param ( DBMS_METADATA.SESSION_TRANSFORM, 'SQLTERMINATOR', false ); " +
" end; ";
callableStmt = conn.prepareCall(plsql);
callableStmt.execute();
}
try
{
BaseLogger.log("3", null, null, "Inside try....");//Added by Ashish.J
stmnt = conn.createStatement();
updCount = stmnt.executeUpdate(Sql);
error="";
BaseLogger.log("3", null, null, "Inside try of error..["+error+"]");//Added by Ashish.J
BaseLogger.log("3", null, null, "schema...["+schema+"]updateCnt to get Sql [" + updCount + "]");
insertIntoSqlExectionLog(connection,tranID,enterprise,lineNo,requestID,Sql,updCount, "C" , userId,chgTerm,error);
}
catch(SQLException ise)
{
error=ise.getMessage();//Added by Ashish.J
BaseLogger.log("3", null, null, "Inside catch of error..["+error+"]");
//insertIntoSqlExectionLog(connection,tranID,enterprise,lineNo,requestID,Sql, userId,chgTerm);
BaseLogger.log("3", null, null, "Inside catch....");
insertIntoSqlExectionLog(connection,tranID,enterprise,lineNo,requestID,Sql,updCount, "E" , userId,chgTerm,error);
}//Added by Ashish.J
finally
{
if (stmnt != null)
{
stmnt.close();
stmnt = null;
}
}
}
Thread.sleep(100);
conn.commit();
}
}
}
catch (Exception e)
{
try
{
BaseLogger.log("3", null, null, "Excepotion in executeAlterQueries occured while executing Alter Queries>>>>" +
E12GenericUtility.checkNull(e.getMessage()));
//conn.rollback();
}
// catch (SQLException sqle)
catch (Exception sqle)
{
BaseLogger.log("3", null, null, "SQLException executeAlterQueries occured during rollback:: " + sqle.getMessage());
sqle.printStackTrace();
}
e.printStackTrace();
}
finally
{
try
{
if (callableStmt != null)
{
callableStmt.close();
callableStmt = null;
}
if (conn != null)
{
conn.close();
conn = null;
}
}
catch (SQLException sqle)
{
BaseLogger.log("3", null, null, "SQLException executeAlterQueries inside finally:: "+ sqle.getMessage());
sqle.printStackTrace();
}
}
return updateCount;
}
*/
// Commented by Gagan B. on 13-NOV-25 -- END
/*
Added by Gagan B. on 13-NOV-25 [modifications in method to optimize and properly handle cases when
connection could not be made with any schema in case of All Enterprise] -- START
*/
private int executeQueries(Connection connection, HashMap<String, String> schemaListMap, String Sql, String tranID, String lineNo, String requestID, String userId, String chgTerm, boolean isThisObjectType)
{
ConnDriver connDriver = new ConnDriver();
int updateCount = 0;
if (schemaListMap == null || schemaListMap.isEmpty())
{
BaseLogger.log("3", null, null, "Schema list is empty, skipping execution.");
return 0;
}
BaseLogger.log("3", null, null, "Inside executeQueries. SQL to run: [" + Sql + "]");
BaseLogger.log("3", null, null, "Total schemas to process: [" + schemaListMap.size() + "]");
// Iterate through each schema provided in the map.
Iterator<String> itr = schemaListMap.keySet().iterator();
while (itr.hasNext())
{
String schema = itr.next();
String enterprise = schemaListMap.get(schema);
Connection conn = null;
Statement stmnt = null;
CallableStatement callableStmt = null;
String error = "";
int updCount = 0;
try
{
BaseLogger.log("3", null, null, "Attempting to connect to schema: [" + schema + "]");
conn = connDriver.getConnectDB(schema);
if (conn == null)
{
throw new Exception("Unable to get a valid connection for schema [" + schema + "]");
}
if (checkNull(Sql).trim().length() > 0)
{
if (isThisObjectType)
{
BaseLogger.log("3", null, null, "Executing as object type for schema [" + schema + "]");
String plsql = " begin " +
" dbms_metadata.set_transform_param ( DBMS_METADATA.SESSION_TRANSFORM, 'SQLTERMINATOR', false ); " +
" end; ";
callableStmt = conn.prepareCall(plsql);
callableStmt.execute();
}
try
{
stmnt = conn.createStatement();
updCount = stmnt.executeUpdate(Sql);
updateCount = updCount; // Set the return value to the latest count.
error = ""; // Clear any previous error string
BaseLogger.log("3", null, null, "SUCCESS for schema [" + schema + "]. Rows affected: [" + updCount + "]");
insertIntoSqlExectionLog(connection, tranID, enterprise, lineNo, requestID, Sql, updCount, "C", userId, chgTerm, error);
}
catch (SQLException ise)
{
error = ise.getMessage();
BaseLogger.log("3", null, null, "FAILURE (SQLException) for schema [" + schema + "]. Error: [" + error + "]");
insertIntoSqlExectionLog(connection, tranID, enterprise, lineNo, requestID, Sql, updCount, "E", userId, chgTerm, error);
}
}
if (conn != null) {
conn.commit();
}
}
catch (Exception e)
{
error = e.getMessage();
BaseLogger.log("3", null, null, "FAILURE (General Exception) for schema [" + schema + "]. Error: [" + error + "]");
e.printStackTrace(); // Good for server logs to see the full trace.
try
{
insertIntoSqlExectionLog(connection, tranID, enterprise, lineNo, requestID, Sql, 0, "E", userId, chgTerm, error);
}
catch (Exception logEx)
{
BaseLogger.log("3", null, null, "CRITICAL: Failed to log error for schema [" + schema + "]");
logEx.printStackTrace();
}
}
finally
{
BaseLogger.log("3", null, null, "Cleaning up resources for schema [" + schema + "]");
try
{
if (callableStmt != null)
{
callableStmt.close();
}
if (stmnt != null)
{
stmnt.close();
}
if (conn != null)
{
conn.close();
}
}
catch (SQLException sqle)
{
BaseLogger.log("3", null, null, "SQLException during resource cleanup for schema ["+ schema +"]: " + sqle.getMessage());
sqle.printStackTrace();
}
}
try {
Thread.sleep(100);
} catch (InterruptedException e) {
Thread.currentThread().interrupt(); // Restore the interrupted status
}
}
return updateCount;
}
/*
Added by Gagan B. on 13-NOV-25 [modifications in method to optimize and properly handle cases when
connection could not be made with any schema in case of All Enterprise] -- END
*/
//Added by Ashish.J one more parameter has added sql_exception
private String insertIntoSqlExectionLog( Connection conn, String refTranID, String enterprise, String lineNo,String requestID,String Sql,int updateCnt, String status, String userId,String chgTerm,String error) throws ITMException, RemoteException
{
System.out.println("inside insertIntoSqlExectionLog method");
String errorString="";
int insCount=0;
PreparedStatement pstmtIns=null;
ITMDBAccessEJB itmdbAccessLocal = new ITMDBAccessEJB();
try
{
System.out.println("inside try of method");
GenericUtility genericUtility = GenericUtility.getInstance();
String Aformat= genericUtility.getApplDateFormat();
java.text.SimpleDateFormat dtf= new java.text.SimpleDateFormat(Aformat);
String currDate = dtf.format(new java.util.Date());
System.out.println("currDate --> ["+currDate+"]");
System.out.println("insertIntoSqlExectionLog in --> ["+error+"]");
String tranID=generateTranID(conn);
String insSql="INSERT INTO SQL_EXEC_LOG(TRAN_ID,REF_TRAN_ID,ENTERPRISE,LINE_NO,REQ_ID,ORA_STMNT,CHG_DATE,CHG_USER,CHG_TERM,RESULT,STATUS,SQL_EXCEPTION) "
+ "VALUES (?,?,?,?,?,?,?,?,?,?,?,?)";
pstmtIns = conn.prepareStatement(insSql);
pstmtIns.setString(1, tranID);
pstmtIns.setString(2, refTranID);
pstmtIns.setString(3,enterprise);
pstmtIns.setString(4, lineNo);
pstmtIns.setString(5, requestID);
pstmtIns.setString(6, Sql);
pstmtIns.setTimestamp( 7,java.sql.Timestamp.valueOf(genericUtility.getValidDateTimeString(checkNull(currDate),genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()))); //Added by kailash on 24-04-18.
pstmtIns.setString( 8,userId);
pstmtIns.setString( 9,chgTerm);
pstmtIns.setInt( 10,updateCnt);
pstmtIns.setString( 11,status);
pstmtIns.setString( 12,error);
insCount = pstmtIns.executeUpdate();//Added by Ashish.J one more parameter has added sql_exception
System.out.println("insCount into strg_meet_items["+lineNo+"] insCount= ["+insCount+"]");
pstmtIns.clearParameters();
if (pstmtIns != null)
{
pstmtIns.close();
pstmtIns = null;
}
}
catch (Exception e)
{
errorString= itmdbAccessLocal.getErrorString("confirmed", "CONFFAILED", "","",conn);
return errorString;
}
finally
{
{
try
{
if (pstmtIns != null)
{
pstmtIns.close();
pstmtIns = null;
}
} catch (SQLException e)
{
e.printStackTrace();
}
}
}
return errorString;
}
public String CancelLogTransaction( String tranId, String xtraParams, String forcedFlag ) throws RemoteException,ITMException
{
boolean isError = false;
ResultSet rs = null;
PreparedStatement pstmt = null;
Connection con = null;
ITMDBAccessEJB itmdbAccessLocal = null ;
String errString="";
String status="";
try
{
itmdbAccessLocal = new ITMDBAccessEJB();
GenericUtility genericUtility = GenericUtility.getInstance();
con = getConnection();
con.setAutoCommit(false);
String sql = "SELECT STATUS FROM SQL_EXEC_LOG WHERE TRAN_ID=?";
pstmt = con.prepareStatement(sql);
pstmt.setString(1, tranId);
rs = pstmt.executeQuery();
if( rs.next() )
{
status = checkNull( rs.getString("STATUS") );
}
if( pstmt != null )
{
pstmt.close();
pstmt = null;
}
if ( rs != null )
{
rs.close();
rs = null;
}
if("C".equalsIgnoreCase(status))
{
errString = itmdbAccessLocal.getErrorString("confirmed", "VTECLNCANC", "","",con);
System.out.println("errString is "+ errString);
}
else if("X".equalsIgnoreCase(status))
{
errString = itmdbAccessLocal.getErrorString("confirmed", "VTMCANL1", "","",con);
System.out.println("errString is "+ errString);
}
else
{
String userId = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginCode"));
String upSql="UPDATE SQL_EXEC_LOG SET STATUS='X' WHERE TRAN_ID=?";
pstmt = con.prepareStatement(upSql);
pstmt.setString(1, tranId);
int updCnt = pstmt.executeUpdate();
if( pstmt != null )
{
pstmt.close();
pstmt = null;
}
System.out.println("update count is["+updCnt+"]");
if(updCnt>0)
{
errString = itmdbAccessLocal.getErrorString("confirmed", "VTLVECAR01", "","",con);
System.out.println("errString is "+ errString);
}
}
}
catch(Exception e)
{
isError = true;
try
{
con.rollback();
}
catch(Exception e1)
{
e1.printStackTrace();
}
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try
{
if ( !(isError) )
{
con.commit();
//errString = itmdbAccessLocal.getErrorString("","TEMCONFIRM",loginEmpCode);
//errString = itmdbAccessLocal.getErrorString("confirmed", "TEMCONFIRM", "","",con);
}
else
{
con.rollback();
}
if( pstmt != null )
{
pstmt.close();
pstmt = null;
}
if( con != null && !con.isClosed() )
{
con.close();
con = null;
}
}
catch( Exception e)
{
e.printStackTrace();
}
}
System.out.println("errString is +++:"+errString);
return errString;
}
public String ConfirmLog( String tranId, String xtraParams, String forcedFlag ) throws RemoteException,ITMException
{
System.out.println("managelogsql ConfirmLog........["+tranId+"]");
boolean isError = false;
String enterprises="";
String sql = "";
ResultSet rs = null;
PreparedStatement pstmt = null;
Connection con = null;
String errString = "";
String schemaName = "";
ITMDBAccessEJB itmdbAccessLocal = null ;
boolean isThisObject=false;
String sqlExecute="";
try
{
itmdbAccessLocal = new ITMDBAccessEJB();
GenericUtility genericUtility = GenericUtility.getInstance();
con = getConnection();
con.setAutoCommit(false);
String userId = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginCode"));
sql = "SELECT ENTERPRISE FROM SQL_EXEC_LOG WHERE TRAN_ID=?";
pstmt = con.prepareStatement(sql);
pstmt.setString(1, tranId);
rs = pstmt.executeQuery();
if( rs.next() )
{
enterprises = checkNull( rs.getString("ENTERPRISE") );
}
if( pstmt != null )
{
pstmt.close();
pstmt = null;
}
if ( rs != null )
{
rs.close();
rs = null;
}
String EnterPriseInFormat=getFormattedStringBuff(enterprises);
sql = "SELECT SCHEMA_NAME,ENTERPRISE FROM ENTERPRISE WHERE ENTERPRISE IN("+EnterPriseInFormat+") " ;
pstmt = con.prepareStatement(sql);
rs = pstmt.executeQuery();
if( rs.next() )
{
schemaName = checkNull( rs.getString("SCHEMA_NAME") );
}
if( pstmt != null )
{
pstmt.close();
pstmt = null;
}
if ( rs != null )
{
rs.close();
rs = null;
}
sql = "SELECT ORA_STMNT FROM SQL_EXEC_LOG WHERE TRAN_ID=?";
pstmt = con.prepareStatement(sql);
pstmt.setString(1, tranId);
rs = pstmt.executeQuery();
if( rs.next() )
{
String oracleStatment = checkNull( rs.getString("ORA_STMNT") );
System.out.println("oracle execute statment["+oracleStatment+"]");
if( oracleStatment.lastIndexOf(";") != -1 )
{
if(!oracleStatment.toUpperCase().startsWith("CREATE"))
{
int endIndex=oracleStatment.lastIndexOf(";");
oracleStatment=oracleStatment.substring(0, endIndex);
}
else if(oracleStatment.toUpperCase().startsWith("CREATE TABLE"))
{
int endIndex=oracleStatment.lastIndexOf(";");
oracleStatment=oracleStatment.substring(0, endIndex);
}
}
if(oracleStatment.toUpperCase().startsWith("CREATE") && !oracleStatment.toUpperCase().startsWith("CREATE TABLE"))
{
isThisObject=true;
}
//if( oracleStatment.toUpperCase().startsWith("ALTER") || oracleStatment.toUpperCase().startsWith("INSERT INTO") || oracleStatment.toUpperCase().startsWith("UPDATE") || oracleStatment.toUpperCase().startsWith("DELETE"))
//{
sqlExecute=executeLogQueries(con,schemaName, oracleStatment,isThisObject) ;
//}
}
if( pstmt != null )
{
pstmt.close();
pstmt = null;
}
if ( rs != null )
{
rs.close();
rs = null;
}//changed by Ashish.J
if("SUCCESS".equalsIgnoreCase(sqlExecute))
{
//String upSql="UPDATE SQL_EXEC_LOG SET STATUS='C' WHERE TRAN_ID=?";
String upSql="UPDATE SQL_EXEC_LOG SET STATUS='C', RESULT = ?, SQL_EXCEPTION = ? WHERE TRAN_ID=?";
pstmt = con.prepareStatement(upSql);
pstmt.setInt(1, reUpdateCnt);
pstmt.setString(2, sqlError);
pstmt.setString(3, tranId);
int updCnt = pstmt.executeUpdate();
if( pstmt != null )
{
pstmt.close();
pstmt = null;
}
System.out.println("inside if update count is["+updCnt+"]");
if(updCnt>0)
{
errString = itmdbAccessLocal.getErrorString("confirmed", "VTCONFIRM", "","",con);
System.out.println("errString is "+ errString);
}
}
else
{
String upSql="UPDATE SQL_EXEC_LOG SET STATUS='E', RESULT = ?, SQL_EXCEPTION = ? WHERE TRAN_ID=?";
pstmt = con.prepareStatement(upSql);
pstmt.setInt(1, reUpdateCnt);
pstmt.setString(2, sqlError);
pstmt.setString(3, tranId);
int updCnt = pstmt.executeUpdate();
if( pstmt != null )
{
pstmt.close();
pstmt = null;
}
System.out.println("inside else update count is["+updCnt+"]");
errString = itmdbAccessLocal.getErrorString("confirmed", "CONFFAILED", "","",con);
}
}//Changed by Ashish.J
catch(Exception e)
{
isError = true;
try
{
con.rollback();
}
catch(Exception e1)
{
e1.printStackTrace();
}
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try
{
System.out.println("Commiting and Closing Connection..........");
if ( !(isError) )
{
System.out.println( "inside finally if" );
con.commit();
//errString = itmdbAccessLocal.getErrorString("","TEMCONFIRM",loginEmpCode);
//errString = itmdbAccessLocal.getErrorString("confirmed", "TEMCONFIRM", "","",con);
}
else
{
System.out.println( "inside finally rollback else" );
con.rollback();
}
if( pstmt != null )
{
System.out.println( "inside finally if pstmt " );
pstmt.close();
pstmt = null;
}
if( con != null && !con.isClosed() )
{
System.out.println( "inside finally if con " );
con.close();
con = null;
}
}
catch( Exception e)
{
e.printStackTrace();
}
}
System.out.println("errString is +++:"+errString);
return errString;
}
private String executeLogQueries(Connection connection,String schemaName, String Sql,boolean isThisObjectType)
{
BaseLogger.log("3", null, null, "Inside executeQueries1 [" + Sql + "]");
ConnDriver connDriver = new ConnDriver();
Connection conn = null;
Statement stmnt = null;
int updateCount=0;
CallableStatement callableStmt = null;
String ExecuteSql="SUCCESS";
try
{
System.out.println("isThisObjectType1:::::["+isThisObjectType+"]");
conn = connDriver.getConnectDB(schemaName);
if( conn == null )
{
BaseLogger.log("3", null, null, "Unable to get connection for [" + schemaName + "]");
throw new Exception("Unable to get connection for [" + schemaName + "]");
}
if(checkNull(Sql).trim().length() > 0)
{
if(isThisObjectType)
{
String plsql = " begin " +
" dbms_metadata.set_transform_param ( DBMS_METADATA.SESSION_TRANSFORM, 'SQLTERMINATOR', false ); " +
" end; ";
callableStmt = conn.prepareCall(plsql);
callableStmt.execute();
}
try
{
BaseLogger.log("3", null, null, "Inside manageconf try");
stmnt = conn.createStatement();
//int updateCnt = stmnt.executeUpdate(Sql);
reUpdateCnt = stmnt.executeUpdate(Sql);
BaseLogger.log("3", null, null, "schema["+schemaName+"]updateCnt to get Sql [" + updateCount + "]");
}
catch(SQLException ise)
{
sqlError = ise.getMessage();
BaseLogger.log("3", null, null, "Inside manageconf catch::"+ise.getMessage());
ExecuteSql="NOT EXECUTE";
throw new ITMException(ise);
}
finally
{
if (stmnt != null)
{
stmnt.close();
stmnt = null;
}
}
}
Thread.sleep(100);
conn.commit();
}
catch (Exception e)
{
try
{
BaseLogger.log("3", null, null, "Excepotion in executeAlterQueries occured while executing Alter Queries>>>>::" + e.getMessage());
ExecuteSql="NOT EXECUTE";
conn.rollback();
//sqlError = e.getMessage();
}
catch (SQLException sqle)
{
BaseLogger.log("3", null, null, "SQLException executeAlterQueries occured during rollback:: " + sqle.getMessage());
sqle.printStackTrace();
}
e.printStackTrace();
}
finally
{
try
{
if (callableStmt != null)
{
callableStmt.close();
callableStmt = null;
}
if (conn != null)
{
conn.close();
conn = null;
}
}
catch (SQLException sqle)
{
BaseLogger.log("3", null, null, "SQLException executeAlterQueries inside finally:: "+ sqle.getMessage());
sqle.printStackTrace();
}
}
return ExecuteSql;
}
private String generateTranID( Connection conn ) throws ITMException
{
String uniqueKey = null;
PreparedStatement pstmt = null;
ResultSet rs = null;
try
{
//System.out.println("RealTimeReportPos : Generating Primary Key ...........");
String keyStringQuery = "SELECT KEY_STRING, TRAN_ID_COL, REF_SER FROM TRANSETUP WHERE TRAN_WINDOW = 'w_sql_exec_log' ";
pstmt = conn.prepareStatement(keyStringQuery);
rs = pstmt.executeQuery();
if(rs.next())
{
String keyString = rs.getString("KEY_STRING");
String keyCol = rs.getString("TRAN_ID_COL");
String tranSer = rs.getString("REF_SER");
String xmlValues ="<?xml version=\"1.0\" encoding=\"utf-8\"?><Root>";
xmlValues = xmlValues + "<Header></Header>";
xmlValues = xmlValues + "<Detail1>";
xmlValues = xmlValues + "<tran_id></tran_id>";
xmlValues = xmlValues + "</Detail1></Root>";
TransIDGenerator tg = new TransIDGenerator(xmlValues, "BASE", CommonConstants.DB_NAME);
uniqueKey = tg.generateTranSeqID(tranSer, keyCol, keyString, conn);
}
rs.close(); rs = null;
pstmt.close();
pstmt = null;
}
catch(Exception exp)
{
System.out.println("Exception : RealTimeReportPos :generateTransID :==>\n");
throw new ITMException(exp);
}
finally
{
try
{
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
catch (Exception e)
{
System.out.println("Exception : RealTimeReportPos :getUniqueKey :finally==>");
throw new ITMException(e);
}
}
System.out.println("Generated Primary Key :"+uniqueKey);
return uniqueKey;
}
}
\ No newline at end of file
$PBExportHeader$headerdetail11.srd
release 9;
datawindow(units=1 timer_interval=0 color=1073741824 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=23 color="536870912" )
table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=tran_id dbname="sql_changes.tran_id" )
column=(type=datetime update=yes updatewhereclause=yes name=tran_date dbname="sql_changes.tran_date" )
column=(type=char(10) update=yes updatewhereclause=yes name=req_id dbname="sql_changes.req_id" )
column=(type=datetime update=yes updatewhereclause=yes name=req_date dbname="sql_changes.req_date" )
column=(type=char(10) update=yes updatewhereclause=yes name=emp_code__given dbname="sql_changes.emp_code__given" )
column=(type=char(10) update=yes updatewhereclause=yes name=emp_code__merge dbname="sql_changes.emp_code__merge" )
column=(type=char(10) update=yes updatewhereclause=yes name=tran_id__org dbname="sql_changes.tran_id__org" )
column=(type=char(15) update=yes updatewhereclause=yes name=itm_ver dbname="sql_changes.itm_ver" )
column=(type=char(10) update=yes updatewhereclause=yes name=chg_user dbname="sql_changes.chg_user" )
column=(type=char(15) update=yes updatewhereclause=yes name=chg_term dbname="sql_changes.chg_term" )
column=(type=datetime update=yes updatewhereclause=yes name=conf_date dbname="sql_changes.conf_date" )
column=(type=char(100) update=yes updatewhereclause=yes name=enterprises dbname="sql_changes.enterprises" )
column=(type=char(40) updatewhereclause=yes name=name dbname="users.name" )
column=(type=char(40) updatewhereclause=yes name=descr dbname="itemser.descr" )
column=(type=char(40) updatewhereclause=yes name=users_name dbname="users.name" )
column=(type=char(3) update=yes updatewhereclause=yes name=executed dbname="executed" )
column=(type=datetime updatewhereclause=yes name=chg_date dbname="sql_changes.chg_date" )
column=(type=char(3) updatewhereclause=yes name=confirm dbname="confirm" )
column=(type=char(1) update=yes updatewhereclause=yes name=confirmed dbname="sql_changes.confirmed" )
column=(type=char(40) updatewhereclause=yes name=users_name_conf dbname="users.name" )
column=(type=char(52) updatewhereclause=yes name=confirmed_by dbname="confirmed_by" )
column=(type=char(1) update=yes updatewhereclause=yes name=exec_rights dbname="sql_changes.exec_rights" )
column=(type=char(10) update=yes updatewhereclause=yes name=tran_id__ref dbname="sql_changes.tran_id__ref" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"sql_changes~" ) TABLE(NAME=~"users~" ALIAS=~"users_a~" ) TABLE(NAME=~"users~" ALIAS=~"users_b~" ) TABLE(NAME=~"itemser~" ) TABLE(NAME=~"employee~" ) TABLE(NAME=~"users~" ALIAS=~"users_c~" ) COLUMN(NAME=~"sql_changes.tran_id~") COLUMN(NAME=~"sql_changes.tran_date~") COLUMN(NAME=~"sql_changes.req_id~") COLUMN(NAME=~"sql_changes.req_date~") COLUMN(NAME=~"sql_changes.emp_code__given~") COLUMN(NAME=~"sql_changes.emp_code__merge~") COLUMN(NAME=~"sql_changes.tran_id__org~") COLUMN(NAME=~"sql_changes.itm_ver~") COLUMN(NAME=~"sql_changes.chg_user~") COLUMN(NAME=~"sql_changes.chg_term~") COLUMN(NAME=~"sql_changes.conf_date~") COLUMN(NAME=~"sql_changes.enterprises~") COLUMN(NAME=~"users_a.name~") COLUMN(NAME=~"itemser.descr~") COLUMN(NAME=~"users_b.name~") COMPUTE(NAME=~"(CASE WHEN sql_changes.executed='Y' then 'YES' else 'No' END) AS Executed~") COLUMN(NAME=~"sql_changes.chg_date~") COMPUTE(NAME=~"(CASE WHEN sql_changes.confirmed='Y' then 'YES' else 'No' END) AS Confirm~") COLUMN(NAME=~"sql_changes.confirmed~") COLUMN(NAME=~"users_c.name~") COMPUTE(NAME=~" (users_c.name ||'('||trim(sql_changes.emp_code_aprv)||')') as confirmed_by
~") COLUMN(NAME=~"sql_changes.exec_rights~") COLUMN(NAME=~"sql_changes.tran_id__ref~") JOIN (LEFT=~"sql_changes.emp_code__given~" OP =~"=~"RIGHT=~"users_a.code~" OUTER1 =~"sql_changes.emp_code__given~" ) JOIN (LEFT=~"sql_changes.itm_ver~" OP =~"=~"RIGHT=~"itemser.item_ser~" OUTER1 =~"sql_changes.itm_ver~" ) JOIN (LEFT=~"sql_changes.emp_code_aprv~" OP =~"=~"RIGHT=~"employee.emp_code~" OUTER1 =~"sql_changes.emp_code_aprv~" ) JOIN (LEFT=~"sql_changes.emp_code__merge~" OP =~"=~"RIGHT=~"users_b.code~" OUTER1 =~"sql_changes.emp_code__merge~" ) JOIN (LEFT=~"sql_changes.emp_code_aprv~" OP =~"=~"RIGHT=~"users_c.code~" OUTER1 =~"sql_changes.emp_code_aprv~" )) " update="sql_changes" updatewhere=0 updatekeyinplace=no )
text(band=header alignment="2" text="Transaction 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="Transaction 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="Request ID" border="2" color="33554432" x="204" y="2" height="16" width="66" html.valueishtml="0" name=req_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="Request Date" border="2" color="33554432" x="272" 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="2" text="Submitted By" border="2" color="33554432" x="406" y="2" height="16" width="101" html.valueishtml="0" name=emp_code__given_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="Merged By" border="2" color="33554432" x="749" y="2" height="16" width="105" html.valueishtml="0" name=emp_code__merge_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="Executed" border="2" color="33554432" x="1096" y="2" height="16" width="55" html.valueishtml="0" name=executed_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="Reference ID" border="2" color="33554432" x="1153" y="2" height="16" width="68" html.valueishtml="0" name=tran_id__org_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="Division" border="2" color="33554432" x="1223" y="2" height="16" width="96" html.valueishtml="0" name=itm_ver_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="Chg User" border="2" color="33554432" x="2535" y="2" height="16" width="66" 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" )
text(band=header alignment="2" text="Chg Term" border="2" color="33554432" x="2603" y="2" height="16" width="96" 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" )
text(band=header alignment="2" text="Confirm" border="2" color="33554432" x="2767" y="2" height="16" width="58" html.valueishtml="0" name=confirmed_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" )
text(band=header alignment="2" text="Confirmed On" border="2" color="33554432" x="2143" y="2" height="16" width="132" html.valueishtml="0" name=conf_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="Enterprises" border="2" color="33554432" x="1561" y="2" height="16" width="454" html.valueishtml="0" name=enterprises_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="Submitted By Name" border="0" color="33554432" x="509" y="1" height="19" width="238" html.valueishtml="0" name=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="Merged By Name" border="0" color="33554432" x="856" y="1" height="16" width="238" html.valueishtml="0" name=users_name_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=header alignment="0" text="Division Description" border="0" color="33554432" x="1321" 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="1" background.color="536870912" )
text(band=header alignment="0" text="Chg Date" border="2" color="33554432" x="2701" y="1" height="16" width="64" html.valueishtml="0" name=sql_changes_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" )
text(band=header alignment="0" text="Confirmed By" border="0" color="33554432" x="2277" y="1" height="16" width="256" html.valueishtml="0" name=confirmed_by_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=header alignment="0" text="Confirmed" border="2" color="33554432" x="2017" y="1" height="16" width="124" html.valueishtml="0" name=confirm_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="Users Name" border="2" color="33554432" x="2827" y="1" height="16" width="93" html.valueishtml="0" name=users_name_conf_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="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=32766 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=32766 border="2" color="33554432" x="204" y="2" height="19" width="66" format="[general]" html.valueishtml="0" name=req_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=4 alignment="0" tabsequence=32766 border="2" color="33554432" x="272" 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=5 alignment="0" tabsequence=32766 border="2" color="33554432" x="406" y="2" height="19" width="101" format="[general]" html.valueishtml="0" name=emp_code__given 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=6 alignment="0" tabsequence=32766 border="2" color="33554432" x="749" y="2" height="19" width="105" format="[general]" html.valueishtml="0" name=emp_code__merge 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=16 alignment="0" tabsequence=32766 border="2" color="33554432" x="1096" y="3" height="19" width="55" format="[general]" html.valueishtml="0" name=executed visible="1" edit.limit=1 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=7 alignment="0" tabsequence=32766 border="2" color="33554432" x="1153" y="2" height="19" width="68" format="[general]" html.valueishtml="0" name=tran_id__org 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=8 alignment="0" tabsequence=32766 border="2" color="33554432" x="1223" y="2" height="19" width="96" format="[general]" html.valueishtml="0" name=itm_ver visible="1" edit.limit=15 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=9 alignment="0" tabsequence=32766 border="2" color="33554432" x="2535" y="2" height="19" width="66" format="[general]" html.valueishtml="0" name=chg_user 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=10 alignment="0" tabsequence=32766 border="2" color="33554432" x="2603" y="2" height="19" width="96" format="[general]" html.valueishtml="0" name=chg_term visible="1" edit.limit=15 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=19 alignment="0" tabsequence=32766 border="2" color="33554432" x="2767" y="2" height="19" width="58" format="[general]" html.valueishtml="0" name=confirmed visible="0" edit.limit=1 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=11 alignment="0" tabsequence=32766 border="2" color="33554432" x="2143" y="2" height="19" width="132" format="[shortdate] [time]" html.valueishtml="0" name=conf_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=12 alignment="0" tabsequence=32766 border="2" color="33554432" x="1561" y="2" height="19" width="454" format="[general]" html.valueishtml="0" name=enterprises visible="1" edit.limit=100 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=13 alignment="0" tabsequence=32766 border="0" color="33554432" x="509" y="1" height="16" width="238" format="[general]" html.valueishtml="0" name=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=15 alignment="0" tabsequence=32766 border="0" color="33554432" x="856" y="1" height="16" width="238" format="[general]" html.valueishtml="0" name=users_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=14 alignment="0" tabsequence=32766 border="0" color="33554432" x="1321" 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(band=detail id=17 alignment="0" tabsequence=32766 border="2" color="33554432" x="2701" y="1" height="16" width="64" 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" )
column(band=detail id=21 alignment="0" tabsequence=32766 border="0" color="33554432" x="2277" y="3" height="16" width="256" format="[general]" html.valueishtml="0" name=confirmed_by 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="33554432" x="2017" y="1" height="16" width="124" format="[general]" html.valueishtml="0" name=confirm 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=20 alignment="0" tabsequence=32766 border="2" color="33554432" x="2827" y="1" height="16" width="93" format="[general]" html.valueishtml="0" name=users_name_conf 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=22 alignment="0" tabsequence=32766 border="0" color="33554432" x="2923" y="1" height="16" width="217" html.valueishtml="0" name=exec_rights 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="Execution Rights" border="0" color="33554432" x="2922" y="1" height="19" width="218" html.valueishtml="0" name=exec_rights_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=23 alignment="0" tabsequence=32766 border="0" color="33554432" x="3143" y="1" height="16" width="201" html.valueishtml="0" name=tran_id__ref 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="Transaction ID Reference" border="0" color="33554432" x="3142" y="1" height="19" width="202" html.valueishtml="0" name=tran_id__ref_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" )
htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
import.xml()
export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Sybase_eDataWindow>
<Sybase_eDataWindow>
<Release>9</Release>
<BaseDefinition>
<units>1</units>
<timer_interval>0</timer_interval>
<color>1073741824</color>
<processing>1</processing>
<HTMLDW>no</HTMLDW>
<print>
<documentname></documentname>
<printername></printername>
<orientation>0</orientation>
<margin>
<left>24</left>
<right>24</right>
<top>24</top>
<bottom>24</bottom>
</margin>
<paper>
<source>0</source>
<size>0</size>
</paper>
<prompt>no</prompt>
<canusedefaultprinter>yes</canusedefaultprinter>
<buttons>no</buttons>
<preview.buttons>no</preview.buttons>
<cliptext>no</cliptext>
<overrideprintjob>no</overrideprintjob>
</print>
<grid.lines>0</grid.lines>
</BaseDefinition>
<Header>
<height>20</height>
<color>536870912</color>
</Header>
<Summary>
<height>0</height>
<color>536870912</color>
</Summary>
<Footer>
<height>0</height>
<color>536870912</color>
</Footer>
<Detail>
<height>23</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<key>yes</key>
<name>tran_id</name>
<dbname>sql_changes.tran_id</dbname>
</table_column>
<table_column>
<type>datetime</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>tran_date</name>
<dbname>sql_changes.tran_date</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>req_id</name>
<dbname>sql_changes.req_id</dbname>
</table_column>
<table_column>
<type>datetime</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>req_date</name>
<dbname>sql_changes.req_date</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>emp_code__given</name>
<dbname>sql_changes.emp_code__given</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>emp_code__merge</name>
<dbname>sql_changes.emp_code__merge</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>tran_id__org</name>
<dbname>sql_changes.tran_id__org</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>itm_ver</name>
<dbname>sql_changes.itm_ver</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>chg_user</name>
<dbname>sql_changes.chg_user</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>chg_term</name>
<dbname>sql_changes.chg_term</dbname>
</table_column>
<table_column>
<type>datetime</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>conf_date</name>
<dbname>sql_changes.conf_date</dbname>
</table_column>
<table_column>
<type size="100">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>enterprises</name>
<dbname>sql_changes.enterprises</dbname>
</table_column>
<table_column>
<type size="40">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>name</name>
<dbname>users.name</dbname>
</table_column>
<table_column>
<type size="40">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>descr</name>
<dbname>itemser.descr</dbname>
</table_column>
<table_column>
<type size="40">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>users_name</name>
<dbname>users.name</dbname>
</table_column>
<table_column>
<type size="3">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>executed</name>
<dbname>executed</dbname>
</table_column>
<table_column>
<type>datetime</type>
<updatewhereclause>yes</updatewhereclause>
<name>chg_date</name>
<dbname>sql_changes.chg_date</dbname>
</table_column>
<table_column>
<type size="3">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>confirm</name>
<dbname>confirm</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>confirmed</name>
<dbname>sql_changes.confirmed</dbname>
</table_column>
<table_column>
<type size="40">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>users_name_conf</name>
<dbname>users.name</dbname>
</table_column>
<table_column>
<type size="52">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>confirmed_by</name>
<dbname>confirmed_by</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>exec_rights</name>
<dbname>sql_changes.exec_rights</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>tran_id__ref</name>
<dbname>sql_changes.tran_id__ref</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;sql_changes&quot; ) TABLE(NAME=&quot;users&quot; ALIAS=&quot;users_a&quot; ) TABLE(NAME=&quot;users&quot; ALIAS=&quot;users_b&quot; ) TABLE(NAME=&quot;itemser&quot; ) TABLE(NAME=&quot;employee&quot; ) TABLE(NAME=&quot;users&quot; ALIAS=&quot;users_c&quot; ) COLUMN(NAME=&quot;sql_changes.tran_id&quot;) COLUMN(NAME=&quot;sql_changes.tran_date&quot;) COLUMN(NAME=&quot;sql_changes.req_id&quot;) COLUMN(NAME=&quot;sql_changes.req_date&quot;) COLUMN(NAME=&quot;sql_changes.emp_code__given&quot;) COLUMN(NAME=&quot;sql_changes.emp_code__merge&quot;) COLUMN(NAME=&quot;sql_changes.tran_id__org&quot;) COLUMN(NAME=&quot;sql_changes.itm_ver&quot;) COLUMN(NAME=&quot;sql_changes.chg_user&quot;) COLUMN(NAME=&quot;sql_changes.chg_term&quot;) COLUMN(NAME=&quot;sql_changes.conf_date&quot;) COLUMN(NAME=&quot;sql_changes.enterprises&quot;) COLUMN(NAME=&quot;users_a.name&quot;) COLUMN(NAME=&quot;itemser.descr&quot;) COLUMN(NAME=&quot;users_b.name&quot;) COMPUTE(NAME=&quot;(CASE WHEN sql_changes.executed=&apos;Y&apos; then &apos;YES&apos; else &apos;No&apos; END) AS Executed&quot;) COLUMN(NAME=&quot;sql_changes.chg_date&quot;) COMPUTE(NAME=&quot;(CASE WHEN sql_changes.confirmed=&apos;Y&apos; then &apos;YES&apos; else &apos;No&apos; END) AS Confirm&quot;) COLUMN(NAME=&quot;sql_changes.confirmed&quot;) COLUMN(NAME=&quot;users_c.name&quot;) COMPUTE(NAME=&quot; (users_c.name ||&apos;(&apos;||trim(sql_changes.emp_code_aprv)||&apos;)&apos;) as confirmed_by
&quot;) COLUMN(NAME=&quot;sql_changes.exec_rights&quot;) COLUMN(NAME=&quot;sql_changes.tran_id__ref&quot;) JOIN (LEFT=&quot;sql_changes.emp_code__given&quot; OP =&quot;=&quot;RIGHT=&quot;users_a.code&quot; OUTER1 =&quot;sql_changes.emp_code__given&quot; ) JOIN (LEFT=&quot;sql_changes.itm_ver&quot; OP =&quot;=&quot;RIGHT=&quot;itemser.item_ser&quot; OUTER1 =&quot;sql_changes.itm_ver&quot; ) JOIN (LEFT=&quot;sql_changes.emp_code_aprv&quot; OP =&quot;=&quot;RIGHT=&quot;employee.emp_code&quot; OUTER1 =&quot;sql_changes.emp_code_aprv&quot; ) JOIN (LEFT=&quot;sql_changes.emp_code__merge&quot; OP =&quot;=&quot;RIGHT=&quot;users_b.code&quot; OUTER1 =&quot;sql_changes.emp_code__merge&quot; ) JOIN (LEFT=&quot;sql_changes.emp_code_aprv&quot; OP =&quot;=&quot;RIGHT=&quot;users_c.code&quot; OUTER1 =&quot;sql_changes.emp_code_aprv&quot; )) </retrieve>
<update>sql_changes</update>
<updatewhere>0</updatewhere>
<updatekeyinplace>no</updatekeyinplace>
</TableDefinition>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Transaction ID</text>
<border>2</border>
<color>33554432</color>
<x>2</x>
<y>2</y>
<height>16</height>
<width>66</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Transaction Date</text>
<border>2</border>
<color>33554432</color>
<x>70</x>
<y>2</y>
<height>16</height>
<width>132</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>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Request ID</text>
<border>2</border>
<color>33554432</color>
<x>204</x>
<y>2</y>
<height>16</height>
<width>66</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>req_id_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Request Date</text>
<border>2</border>
<color>33554432</color>
<x>272</x>
<y>2</y>
<height>16</height>
<width>132</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>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Submitted By</text>
<border>2</border>
<color>33554432</color>
<x>406</x>
<y>2</y>
<height>16</height>
<width>101</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_code__given_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>Header</band>
<alignment>2</alignment>
<text>Merged By</text>
<border>2</border>
<color>33554432</color>
<x>749</x>
<y>2</y>
<height>16</height>
<width>105</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_code__merge_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>Header</band>
<alignment>2</alignment>
<text>Executed</text>
<border>2</border>
<color>33554432</color>
<x>1096</x>
<y>2</y>
<height>16</height>
<width>55</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>executed_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>Header</band>
<alignment>2</alignment>
<text>Reference ID</text>
<border>2</border>
<color>33554432</color>
<x>1153</x>
<y>2</y>
<height>16</height>
<width>68</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id__org_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>Header</band>
<alignment>2</alignment>
<text>Division</text>
<border>2</border>
<color>33554432</color>
<x>1223</x>
<y>2</y>
<height>16</height>
<width>96</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>itm_ver_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>Header</band>
<alignment>2</alignment>
<text>Chg User</text>
<border>2</border>
<color>33554432</color>
<x>2535</x>
<y>2</y>
<height>16</height>
<width>66</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_user_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Chg Term</text>
<border>2</border>
<color>33554432</color>
<x>2603</x>
<y>2</y>
<height>16</height>
<width>96</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>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Confirm</text>
<border>2</border>
<color>33554432</color>
<x>2767</x>
<y>2</y>
<height>16</height>
<width>58</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>confirmed_t</name>
<visible>0</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>Header</band>
<alignment>2</alignment>
<text>Confirmed On</text>
<border>2</border>
<color>33554432</color>
<x>2143</x>
<y>2</y>
<height>16</height>
<width>132</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>conf_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>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Enterprises</text>
<border>2</border>
<color>33554432</color>
<x>1561</x>
<y>2</y>
<height>16</height>
<width>454</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>enterprises_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>Header</band>
<alignment>0</alignment>
<text>Submitted By Name</text>
<border>0</border>
<color>33554432</color>
<x>509</x>
<y>1</y>
<height>19</height>
<width>238</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>name_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-12</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1073741824</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Merged By Name</text>
<border>0</border>
<color>33554432</color>
<x>856</x>
<y>1</y>
<height>16</height>
<width>238</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>users_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>2</mode>
<color>1073741824</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Division Description</text>
<border>0</border>
<color>33554432</color>
<x>1321</x>
<y>1</y>
<height>19</height>
<width>238</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>descr_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-12</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>Header</band>
<alignment>0</alignment>
<text>Chg Date</text>
<border>2</border>
<color>33554432</color>
<x>2701</x>
<y>1</y>
<height>16</height>
<width>64</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>sql_changes_chg_date_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Confirmed By</text>
<border>0</border>
<color>33554432</color>
<x>2277</x>
<y>1</y>
<height>16</height>
<width>256</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>confirmed_by_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1073741824</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Confirmed</text>
<border>2</border>
<color>33554432</color>
<x>2017</x>
<y>1</y>
<height>16</height>
<width>124</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>confirm_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>Header</band>
<alignment>0</alignment>
<text>Users Name</text>
<border>2</border>
<color>33554432</color>
<x>2827</x>
<y>1</y>
<height>16</height>
<width>93</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>users_name_conf_t</name>
<visible>0</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>33554432</color>
<x>2</x>
<y>2</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>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>70</x>
<y>2</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>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>204</x>
<y>2</y>
<height>19</height>
<width>66</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>req_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>
<ColumnObject>
<band>Detail</band>
<id>4</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>272</x>
<y>2</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>
<ColumnObject>
<band>Detail</band>
<id>5</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>406</x>
<y>2</y>
<height>19</height>
<width>101</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_code__given</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>
<ColumnObject>
<band>Detail</band>
<id>6</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>749</x>
<y>2</y>
<height>19</height>
<width>105</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_code__merge</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>
<ColumnObject>
<band>Detail</band>
<id>16</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>1096</x>
<y>3</y>
<height>19</height>
<width>55</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>executed</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>
<ColumnObject>
<band>Detail</band>
<id>7</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>1153</x>
<y>2</y>
<height>19</height>
<width>68</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id__org</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>
<ColumnObject>
<band>Detail</band>
<id>8</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>1223</x>
<y>2</y>
<height>19</height>
<width>96</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>itm_ver</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>15</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>9</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>2535</x>
<y>2</y>
<height>19</height>
<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>
<ColumnObject>
<band>Detail</band>
<id>10</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>2603</x>
<y>2</y>
<height>19</height>
<width>96</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_term</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>15</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>19</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>2767</x>
<y>2</y>
<height>19</height>
<width>58</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>confirmed</name>
<visible>0</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>
<ColumnObject>
<band>Detail</band>
<id>11</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>2143</x>
<y>2</y>
<height>19</height>
<width>132</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>conf_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>
<ColumnObject>
<band>Detail</band>
<id>12</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>1561</x>
<y>2</y>
<height>19</height>
<width>454</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>enterprises</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>100</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>13</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>509</x>
<y>1</y>
<height>16</height>
<width>238</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>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>
<ColumnObject>
<band>Detail</band>
<id>15</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>856</x>
<y>1</y>
<height>16</height>
<width>238</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>users_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>
<ColumnObject>
<band>Detail</band>
<id>14</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>1321</x>
<y>1</y>
<height>16</height>
<width>238</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>descr</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>17</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>2701</x>
<y>1</y>
<height>16</height>
<width>64</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_date</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>21</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>2277</x>
<y>3</y>
<height>16</height>
<width>256</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>confirmed_by</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>33554432</color>
<x>2017</x>
<y>1</y>
<height>16</height>
<width>124</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>confirm</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>20</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>2827</x>
<y>1</y>
<height>16</height>
<width>93</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>users_name_conf</name>
<visible>0</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>22</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>2923</x>
<y>1</y>
<height>16</height>
<width>217</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>exec_rights</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>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Execution Rights</text>
<border>0</border>
<color>33554432</color>
<x>2922</x>
<y>1</y>
<height>19</height>
<width>218</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>exec_rights_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-12</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1073741824</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>23</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>3143</x>
<y>1</y>
<height>16</height>
<width>201</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id__ref</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>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Transaction ID Reference</text>
<border>0</border>
<color>33554432</color>
<x>3142</x>
<y>1</y>
<height>19</height>
<width>202</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id__ref_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-12</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1073741824</color>
</background>
</TextObject>
<HtmlTable>
<border>1</border>
</HtmlTable>
<HtmlGen>
<clientevents>1</clientevents>
<clientvalidation>1</clientvalidation>
<clientcomputedfields>1</clientcomputedfields>
<clientformatting>0</clientformatting>
<clientscriptable>0</clientscriptable>
<generatejavascript>1</generatejavascript>
<encodeselflinkargs>1</encodeselflinkargs>
<netscapelayers>0</netscapelayers>
</HtmlGen>
<Export.XML>
<headgroups>1</headgroups>
<includewhitespace>0</includewhitespace>
<metadatatype>0</metadatatype>
<savemetadata>0</savemetadata>
</Export.XML>
<Import.XML>
</Import.XML>
<Export.PDF>
<method>0</method>
<distill.custompostscript>0</distill.custompostscript>
<xslfop.print>0</xslfop.print>
</Export.PDF>
</Sybase_eDataWindow>
$PBExportHeader$headerdetail.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=2 color="536870912" )
summary(height=114 color="536870912" )
footer(height=0 color="536870912" )
detail(height=1119 color="536870912" )
table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=tran_id dbname="sql_changes.tran_id" )
column=(type=datetime update=yes updatewhereclause=yes name=tran_date dbname="sql_changes.tran_date" )
column=(type=char(10) update=yes updatewhereclause=yes name=req_id dbname="sql_changes.req_id" )
column=(type=datetime update=yes updatewhereclause=yes name=req_date dbname="sql_changes.req_date" )
column=(type=char(10) update=yes updatewhereclause=yes name=emp_code__given dbname="sql_changes.emp_code__given" )
column=(type=char(10) update=yes updatewhereclause=yes name=emp_code__merge dbname="sql_changes.emp_code__merge" )
column=(type=char(1) update=yes updatewhereclause=yes name=executed dbname="sql_changes.executed" initial="N" values="YES Y/NO N/" )
column=(type=char(10) update=yes updatewhereclause=yes name=tran_id__org dbname="sql_changes.tran_id__org" )
column=(type=char(1) update=yes updatewhereclause=yes name=active_yn dbname="sql_changes.active_yn" initial="Y" values="YES Y/NO N/" )
column=(type=char(10) update=yes updatewhereclause=yes name=chg_user dbname="sql_changes.chg_user" )
column=(type=char(15) update=yes updatewhereclause=yes name=chg_term dbname="sql_changes.chg_term" )
column=(type=char(1) update=yes updatewhereclause=yes name=confirmed dbname="sql_changes.confirmed" initial="N" values="YES Y/NO N/" )
column=(type=datetime update=yes updatewhereclause=yes name=conf_date dbname="sql_changes.conf_date" )
column=(type=char(15) update=yes updatewhereclause=yes name=itm_ver dbname="sql_changes.itm_ver" )
column=(type=char(100) update=yes updatewhereclause=yes name=enterprises dbname="sql_changes.enterprises" )
column=(type=char(10) update=yes updatewhereclause=yes name=emp_code_aprv dbname="sql_changes.emp_code_aprv" )
column=(type=datetime update=yes updatewhereclause=yes name=chg_date dbname="sql_changes.chg_date" )
column=(type=char(1) update=yes updatewhereclause=yes name=appl_db dbname="sql_changes.appl_db" initial="S" values="Selected Enterprise S/All enterprise E/" )
column=(type=char(40) updatewhereclause=yes name=name dbname="users.name" )
column=(type=char(40) updatewhereclause=yes name=users_name dbname="users.name" )
column=(type=char(40) updatewhereclause=yes name=descr dbname="itemser.descr" )
column=(type=char(15) updatewhereclause=yes name=emp_fname dbname="employee.emp_fname" )
column=(type=char(15) updatewhereclause=yes name=emp_mname dbname="employee.emp_mname" )
column=(type=char(15) updatewhereclause=yes name=emp_lname dbname="employee.emp_lname" )
column=(type=char(40) updatewhereclause=yes name=users_name_aprv dbname="users.name" )
column=(type=char(1) update=yes updatewhereclause=yes name=exec_rights dbname="sql_changes.exec_rights" )
column=(type=char(10) update=yes updatewhereclause=yes name=tran_id__ref dbname="sql_changes.tran_id__ref" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"sql_changes~" ) TABLE(NAME=~"users~" ALIAS=~"users_a~" ) TABLE(NAME=~"users~" ALIAS=~"users_b~" ) TABLE(NAME=~"itemser~" ) TABLE(NAME=~"employee~" ) TABLE(NAME=~"users~" ALIAS=~"users_c~" ) COLUMN(NAME=~"sql_changes.tran_id~") COLUMN(NAME=~"sql_changes.tran_date~") COLUMN(NAME=~"sql_changes.req_id~") COLUMN(NAME=~"sql_changes.req_date~") COLUMN(NAME=~"sql_changes.emp_code__given~") COLUMN(NAME=~"sql_changes.emp_code__merge~") COLUMN(NAME=~"sql_changes.executed~") COLUMN(NAME=~"sql_changes.tran_id__org~") COLUMN(NAME=~"sql_changes.active_yn~") COLUMN(NAME=~"sql_changes.chg_user~") COLUMN(NAME=~"sql_changes.chg_term~") COLUMN(NAME=~"sql_changes.confirmed~") COLUMN(NAME=~"sql_changes.conf_date~") COLUMN(NAME=~"sql_changes.itm_ver~") COLUMN(NAME=~"sql_changes.enterprises~") COLUMN(NAME=~"sql_changes.emp_code_aprv~") COLUMN(NAME=~"sql_changes.chg_date~") COLUMN(NAME=~"sql_changes.appl_db~") COLUMN(NAME=~"users_a.name~") COLUMN(NAME=~"users_b.name~") COLUMN(NAME=~"itemser.descr~") COLUMN(NAME=~"employee.emp_fname~") COLUMN(NAME=~"employee.emp_mname~") COLUMN(NAME=~"employee.emp_lname~") COLUMN(NAME=~"users_c.name~") COLUMN(NAME=~"sql_changes.exec_rights~") COLUMN(NAME=~"sql_changes.tran_id__ref~") JOIN (LEFT=~"sql_changes.emp_code__given~" OP =~"=~"RIGHT=~"users_a.code~" OUTER1 =~"sql_changes.emp_code__given~" ) JOIN (LEFT=~"sql_changes.emp_code__merge~" OP =~"=~"RIGHT=~"users_b.code~" OUTER1 =~"sql_changes.emp_code__merge~" ) JOIN (LEFT=~"sql_changes.emp_code_aprv~" OP =~"=~"RIGHT=~"employee.emp_code~" OUTER1 =~"sql_changes.emp_code_aprv~" ) JOIN (LEFT=~"sql_changes.itm_ver~" OP =~"=~"RIGHT=~"itemser.item_ser~" OUTER1 =~"sql_changes.itm_ver~" ) JOIN (LEFT=~"sql_changes.emp_code_aprv~" OP =~"=~"RIGHT=~"users_c.code~" OUTER1 =~"sql_changes.emp_code_aprv~" )WHERE( EXP1 =~"sql_changes.tran_id~" OP =~"=~" EXP2 =~":tran_id~" ) ) ARG(NAME = ~"TRAN_ID~" TYPE = string) " update="sql_changes" updatewhere=0 updatekeyinplace=no arguments=(("TRAN_ID", string)) )
groupbox(band=detail text="Others"border="2" color="33554432" x="132" y="576" height="262" width="529" 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="Basic"border="2" color="33554432" x="132" y="2" height="523" width="539" 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" )
text(band=detail alignment="1" text="Transaction Date:" border="2" color="33554432" x="176" y="52" height="16" width="109" 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="33554432" x="292" y="52" height="19" width="109" 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="Request ID:" border="2" color="33554432" x="176" y="85" height="16" width="109" html.valueishtml="0" name=req_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=3 alignment="0" tabsequence=10 border="2" color="33554432" x="289" y="85" height="19" width="109" format="[general]" html.valueishtml="0" name=req_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="Request Date:" border="2" color="33554432" x="176" y="119" height="16" width="109" 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=4 alignment="0" tabsequence=32766 border="2" color="33554432" x="289" y="119" height="19" width="109" 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=20 border="2" color="33554432" x="289" y="221" height="19" width="109" format="[general]" html.valueishtml="0" name=emp_code__merge 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="Executed:" border="2" color="33554432" x="176" y="255" height="16" width="109" html.valueishtml="0" name=executed_t visible="1" font.face="Arial CE" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="238" background.mode="1" background.color="536870912" )
column(band=detail id=7 alignment="0" tabsequence=32766 border="2" color="33554432" x="289" y="255" height="19" width="109" format="[YES/NO]" html.valueishtml="0" name=executed visible="1" ddlb.limit=0 ddlb.allowedit=no ddlb.case=any ddlb.imemode=0 font.face="BatangChe" font.height="-10" font.weight="400" font.family="1" font.pitch="1" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Reference ID:" border="2" color="33554432" x="176" y="289" height="16" width="109" html.valueishtml="0" name=tran_id__org_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=30 border="2" color="33554432" x="289" y="289" height="19" width="109" format="[general]" html.valueishtml="0" name=tran_id__org 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="Active:" border="2" color="33554432" x="176" y="322" height="16" width="109" html.valueishtml="0" name=active_yn_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=9 alignment="0" tabsequence=32766 border="2" color="33554432" x="289" y="322" height="19" width="109" format="[YES/NO]" html.valueishtml="0" name=active_yn visible="0" 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="Division:" border="2" color="33554432" x="176" y="357" height="16" width="109" html.valueishtml="0" name=itm_ver_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="Merged By:" border="2" color="33554432" x="176" y="221" height="16" width="109" html.valueishtml="0" name=emp_code__merge_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=40 border="2" color="33554432" x="294" y="357" height="16" width="124" format="[general]" html.valueishtml="0" name=itm_ver 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=50 border="2" color="33554432" x="296" y="398" height="16" width="56" format="[general]" html.valueishtml="0" name=appl_db 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="Enterprise:" border="2" color="33554432" x="178" y="437" height="16" width="109" html.valueishtml="0" name=enterprises_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=60 border="2" color="33554432" x="296" y="437" height="16" width="150" format="[general]" html.valueishtml="0" name=enterprises 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="Applicable For :" border="2" color="33554432" x="177" y="398" height="16" width="109" html.valueishtml="0" name=appl_db_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=20 alignment="0" tabsequence=32766 border="2" color="33554432" x="404" y="221" height="16" width="94" format="[general]" html.valueishtml="0" name=users_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=21 alignment="0" tabsequence=32766 border="2" color="33554432" x="427" y="357" height="16" width="155" 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="Transaction ID:" border="2" color="33554432" x="166" y="600" height="16" width="109" 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="33554432" x="281" y="600" height="19" width="109" 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 criteria.required=yes 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="Chg Date:" border="2" color="33554432" x="167" y="725" height="16" width="73" 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="33554432" x="246" y="725" height="16" width="66" format="[shortdate] " 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="Chg User:" border="2" color="33554432" x="318" y="725" height="16" width="74" html.valueishtml="0" name=chg_user_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=10 alignment="0" tabsequence=32766 border="2" color="33554432" x="398" y="725" height="16" width="74" format="[general]" html.valueishtml="0" name=chg_user 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="Chg Term:" border="2" color="33554432" x="480" y="725" height="16" width="80" html.valueishtml="0" name=sql_changes_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=11 alignment="0" tabsequence=32766 border="2" color="33554432" x="565" y="725" height="16" width="80" format="[general]" html.valueishtml="0" name=chg_term visible="1" edit.limit=15 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="Submitted By:" border="2" color="33554432" x="166" y="627" height="16" width="109" html.valueishtml="0" name=emp_code__given_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=32766 border="2" color="33554432" x="279" y="627" height="19" width="109" format="[general]" html.valueishtml="0" name=emp_code__given 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=19 alignment="0" tabsequence=32766 border="2" color="33554432" x="395" y="627" height="16" width="87" format="[general]" html.valueishtml="0" name=name 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="Confirmed On:" border="2" color="33554432" x="166" y="676" height="16" width="109" html.valueishtml="0" name=conf_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=13 alignment="0" tabsequence=32766 border="2" color="33554432" x="282" y="676" height="19" width="109" format="[General]" html.valueishtml="0" name=conf_date 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" )
text(band=detail alignment="1" text="Confirmed:" border="2" color="33554432" x="166" y="650" height="16" width="109" 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=12 alignment="0" tabsequence=32766 border="2" color="33554432" x="280" y="650" height="19" width="109" format="[YES/NO]" 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="Confirmed By:" border="2" color="33554432" x="166" y="701" height="16" width="109" html.valueishtml="0" name=emp_code_aprv_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="33554432" x="282" y="701" height="16" width="60" format="[general]" html.valueishtml="0" name=emp_code_aprv 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=25 alignment="0" tabsequence=32766 border="2" color="33554432" x="347" y="701" height="16" width="104" format="[general]" html.valueishtml="0" name=users_name_aprv 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=22 alignment="0" tabsequence=32766 border="2" color="33554432" x="457" y="701" height="16" width="60" format="[general]" html.valueishtml="0" name=emp_fname 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=23 alignment="0" tabsequence=32766 border="2" color="33554432" x="521" y="701" height="16" width="60" format="[general]" html.valueishtml="0" name=emp_mname 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=24 alignment="0" tabsequence=32766 border="2" color="33554432" x="586" y="701" height="16" width="60" format="[general]" html.valueishtml="0" name=emp_lname 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=26 alignment="0" tabsequence=32766 border="0" color="33554432" x="294" y="750" height="16" width="76" html.valueishtml="0" name=exec_rights 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="0" color="33554432" x="291" y="772" height="16" width="85" html.valueishtml="0" name=tran_id__ref 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="Execution Rights:" border="2" color="33554432" x="185" y="751" height="16" width="103" html.valueishtml="0" name=exec_rights_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="Transaction ID reference:" border="2" color="33554432" x="142" y="774" height="16" width="144" 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" )
htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
import.xml()
export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Sybase_eDataWindow>
<Sybase_eDataWindow>
<Release>9</Release>
<BaseDefinition>
<units>1</units>
<timer_interval>0</timer_interval>
<color>1073741824</color>
<processing>0</processing>
<HTMLDW>no</HTMLDW>
<print>
<documentname></documentname>
<printername></printername>
<orientation>0</orientation>
<margin>
<left>24</left>
<right>24</right>
<top>24</top>
<bottom>24</bottom>
</margin>
<paper>
<source>0</source>
<size>0</size>
</paper>
<prompt>no</prompt>
<canusedefaultprinter>yes</canusedefaultprinter>
<buttons>no</buttons>
<preview.buttons>no</preview.buttons>
<cliptext>no</cliptext>
<overrideprintjob>no</overrideprintjob>
</print>
</BaseDefinition>
<Header>
<height>2</height>
<color>536870912</color>
</Header>
<Summary>
<height>114</height>
<color>536870912</color>
</Summary>
<Footer>
<height>0</height>
<color>536870912</color>
</Footer>
<Detail>
<height>1119</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<key>yes</key>
<name>tran_id</name>
<dbname>sql_changes.tran_id</dbname>
</table_column>
<table_column>
<type>datetime</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>tran_date</name>
<dbname>sql_changes.tran_date</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>req_id</name>
<dbname>sql_changes.req_id</dbname>
</table_column>
<table_column>
<type>datetime</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>req_date</name>
<dbname>sql_changes.req_date</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>emp_code__given</name>
<dbname>sql_changes.emp_code__given</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>emp_code__merge</name>
<dbname>sql_changes.emp_code__merge</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>executed</name>
<dbname>sql_changes.executed</dbname>
<initial>N</initial>
<values>
<item display="YES" data="Y"/>
<item display="NO" data="N"/>
</values>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>tran_id__org</name>
<dbname>sql_changes.tran_id__org</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>active_yn</name>
<dbname>sql_changes.active_yn</dbname>
<initial>Y</initial>
<values>
<item display="YES" data="Y"/>
<item display="NO" data="N"/>
</values>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>chg_user</name>
<dbname>sql_changes.chg_user</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>chg_term</name>
<dbname>sql_changes.chg_term</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>confirmed</name>
<dbname>sql_changes.confirmed</dbname>
<initial>N</initial>
<values>
<item display="YES" data="Y"/>
<item display="NO" data="N"/>
</values>
</table_column>
<table_column>
<type>datetime</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>conf_date</name>
<dbname>sql_changes.conf_date</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>itm_ver</name>
<dbname>sql_changes.itm_ver</dbname>
</table_column>
<table_column>
<type size="100">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>enterprises</name>
<dbname>sql_changes.enterprises</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>emp_code_aprv</name>
<dbname>sql_changes.emp_code_aprv</dbname>
</table_column>
<table_column>
<type>datetime</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>chg_date</name>
<dbname>sql_changes.chg_date</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>appl_db</name>
<dbname>sql_changes.appl_db</dbname>
<initial>S</initial>
<values>
<item display="Selected Enterprise" data="S"/>
<item display="All enterprise" data="E"/>
</values>
</table_column>
<table_column>
<type size="40">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>name</name>
<dbname>users.name</dbname>
</table_column>
<table_column>
<type size="40">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>users_name</name>
<dbname>users.name</dbname>
</table_column>
<table_column>
<type size="40">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>descr</name>
<dbname>itemser.descr</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>emp_fname</name>
<dbname>employee.emp_fname</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>emp_mname</name>
<dbname>employee.emp_mname</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>emp_lname</name>
<dbname>employee.emp_lname</dbname>
</table_column>
<table_column>
<type size="40">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>users_name_aprv</name>
<dbname>users.name</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>exec_rights</name>
<dbname>sql_changes.exec_rights</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>tran_id__ref</name>
<dbname>sql_changes.tran_id__ref</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;sql_changes&quot; ) TABLE(NAME=&quot;users&quot; ALIAS=&quot;users_a&quot; ) TABLE(NAME=&quot;users&quot; ALIAS=&quot;users_b&quot; ) TABLE(NAME=&quot;itemser&quot; ) TABLE(NAME=&quot;employee&quot; ) TABLE(NAME=&quot;users&quot; ALIAS=&quot;users_c&quot; ) COLUMN(NAME=&quot;sql_changes.tran_id&quot;) COLUMN(NAME=&quot;sql_changes.tran_date&quot;) COLUMN(NAME=&quot;sql_changes.req_id&quot;) COLUMN(NAME=&quot;sql_changes.req_date&quot;) COLUMN(NAME=&quot;sql_changes.emp_code__given&quot;) COLUMN(NAME=&quot;sql_changes.emp_code__merge&quot;) COLUMN(NAME=&quot;sql_changes.executed&quot;) COLUMN(NAME=&quot;sql_changes.tran_id__org&quot;) COLUMN(NAME=&quot;sql_changes.active_yn&quot;) COLUMN(NAME=&quot;sql_changes.chg_user&quot;) COLUMN(NAME=&quot;sql_changes.chg_term&quot;) COLUMN(NAME=&quot;sql_changes.confirmed&quot;) COLUMN(NAME=&quot;sql_changes.conf_date&quot;) COLUMN(NAME=&quot;sql_changes.itm_ver&quot;) COLUMN(NAME=&quot;sql_changes.enterprises&quot;) COLUMN(NAME=&quot;sql_changes.emp_code_aprv&quot;) COLUMN(NAME=&quot;sql_changes.chg_date&quot;) COLUMN(NAME=&quot;sql_changes.appl_db&quot;) COLUMN(NAME=&quot;users_a.name&quot;) COLUMN(NAME=&quot;users_b.name&quot;) COLUMN(NAME=&quot;itemser.descr&quot;) COLUMN(NAME=&quot;employee.emp_fname&quot;) COLUMN(NAME=&quot;employee.emp_mname&quot;) COLUMN(NAME=&quot;employee.emp_lname&quot;) COLUMN(NAME=&quot;users_c.name&quot;) COLUMN(NAME=&quot;sql_changes.exec_rights&quot;) COLUMN(NAME=&quot;sql_changes.tran_id__ref&quot;) JOIN (LEFT=&quot;sql_changes.emp_code__given&quot; OP =&quot;=&quot;RIGHT=&quot;users_a.code&quot; OUTER1 =&quot;sql_changes.emp_code__given&quot; ) JOIN (LEFT=&quot;sql_changes.emp_code__merge&quot; OP =&quot;=&quot;RIGHT=&quot;users_b.code&quot; OUTER1 =&quot;sql_changes.emp_code__merge&quot; ) JOIN (LEFT=&quot;sql_changes.emp_code_aprv&quot; OP =&quot;=&quot;RIGHT=&quot;employee.emp_code&quot; OUTER1 =&quot;sql_changes.emp_code_aprv&quot; ) JOIN (LEFT=&quot;sql_changes.itm_ver&quot; OP =&quot;=&quot;RIGHT=&quot;itemser.item_ser&quot; OUTER1 =&quot;sql_changes.itm_ver&quot; ) JOIN (LEFT=&quot;sql_changes.emp_code_aprv&quot; OP =&quot;=&quot;RIGHT=&quot;users_c.code&quot; OUTER1 =&quot;sql_changes.emp_code_aprv&quot; )WHERE( EXP1 =&quot;sql_changes.tran_id&quot; OP =&quot;=&quot; EXP2 =&quot;:tran_id&quot; ) ) ARG(NAME = &quot;TRAN_ID&quot; TYPE = string) </retrieve>
<update>sql_changes</update>
<updatewhere>0</updatewhere>
<updatekeyinplace>no</updatekeyinplace>
<argument>
<name>TRAN_ID</name>
<type>string</type>
</argument>
</TableDefinition>
<GroupBox>
<band>Detail</band>
<text>Others</text>
<border>2</border>
<color>33554432</color>
<x>132</x>
<y>576</y>
<height>262</height>
<width>529</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>
<GroupBox>
<band>Detail</band>
<text>Basic</text>
<border>2</border>
<color>33554432</color>
<x>132</x>
<y>2</y>
<height>523</height>
<width>539</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>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Transaction Date:</text>
<border>2</border>
<color>33554432</color>
<x>176</x>
<y>52</y>
<height>16</height>
<width>109</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>33554432</color>
<x>292</x>
<y>52</y>
<height>19</height>
<width>109</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>Request ID:</text>
<border>2</border>
<color>33554432</color>
<x>176</x>
<y>85</y>
<height>16</height>
<width>109</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>req_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>3</id>
<alignment>0</alignment>
<tabsequence>10</tabsequence>
<border>2</border>
<color>33554432</color>
<x>289</x>
<y>85</y>
<height>19</height>
<width>109</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>req_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>Request Date:</text>
<border>2</border>
<color>33554432</color>
<x>176</x>
<y>119</y>
<height>16</height>
<width>109</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>4</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>289</x>
<y>119</y>
<height>19</height>
<width>109</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>
<ColumnObject>
<band>Detail</band>
<id>6</id>
<alignment>0</alignment>
<tabsequence>20</tabsequence>
<border>2</border>
<color>33554432</color>
<x>289</x>
<y>221</y>
<height>19</height>
<width>109</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_code__merge</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>Executed:</text>
<border>2</border>
<color>33554432</color>
<x>176</x>
<y>255</y>
<height>16</height>
<width>109</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>executed_t</name>
<visible>1</visible>
<font>
<face>Arial CE</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>238</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>7</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>289</x>
<y>255</y>
<height>19</height>
<width>109</width>
<format>[YES/NO]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>executed</name>
<visible>1</visible>
<EditStyle style="ddlb">
<limit>0</limit>
<allowedit>no</allowedit>
<case>any</case>
<imemode>0</imemode>
</EditStyle>
<font>
<face>BatangChe</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>1</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Reference ID:</text>
<border>2</border>
<color>33554432</color>
<x>176</x>
<y>289</y>
<height>16</height>
<width>109</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id__org_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>30</tabsequence>
<border>2</border>
<color>33554432</color>
<x>289</x>
<y>289</y>
<height>19</height>
<width>109</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id__org</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>Active:</text>
<border>2</border>
<color>33554432</color>
<x>176</x>
<y>322</y>
<height>16</height>
<width>109</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>active_yn_t</name>
<visible>0</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>9</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>289</x>
<y>322</y>
<height>19</height>
<width>109</width>
<format>[YES/NO]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>active_yn</name>
<visible>0</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>Division:</text>
<border>2</border>
<color>33554432</color>
<x>176</x>
<y>357</y>
<height>16</height>
<width>109</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>itm_ver_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>Merged By:</text>
<border>2</border>
<color>33554432</color>
<x>176</x>
<y>221</y>
<height>16</height>
<width>109</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_code__merge_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>14</id>
<alignment>0</alignment>
<tabsequence>40</tabsequence>
<border>2</border>
<color>33554432</color>
<x>294</x>
<y>357</y>
<height>16</height>
<width>124</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>itm_ver</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>50</tabsequence>
<border>2</border>
<color>33554432</color>
<x>296</x>
<y>398</y>
<height>16</height>
<width>56</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>appl_db</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>Enterprise:</text>
<border>2</border>
<color>33554432</color>
<x>178</x>
<y>437</y>
<height>16</height>
<width>109</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>enterprises_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>15</id>
<alignment>0</alignment>
<tabsequence>60</tabsequence>
<border>2</border>
<color>33554432</color>
<x>296</x>
<y>437</y>
<height>16</height>
<width>150</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>enterprises</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>Applicable For :</text>
<border>2</border>
<color>33554432</color>
<x>177</x>
<y>398</y>
<height>16</height>
<width>109</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>appl_db_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>20</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>404</x>
<y>221</y>
<height>16</height>
<width>94</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>users_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>
<ColumnObject>
<band>Detail</band>
<id>21</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>427</x>
<y>357</y>
<height>16</height>
<width>155</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>descr</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>Transaction ID:</text>
<border>2</border>
<color>33554432</color>
<x>166</x>
<y>600</y>
<height>16</height>
<width>109</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>33554432</color>
<x>281</x>
<y>600</y>
<height>19</height>
<width>109</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>
<criteria.required>yes</criteria.required>
<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 Date:</text>
<border>2</border>
<color>33554432</color>
<x>167</x>
<y>725</y>
<height>16</height>
<width>73</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_date_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>17</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>246</x>
<y>725</y>
<height>16</height>
<width>66</width>
<format>[shortdate] </format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_date</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>Chg User:</text>
<border>2</border>
<color>33554432</color>
<x>318</x>
<y>725</y>
<height>16</height>
<width>74</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_user_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>10</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>398</x>
<y>725</y>
<height>16</height>
<width>74</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>33554432</color>
<x>480</x>
<y>725</y>
<height>16</height>
<width>80</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>sql_changes_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>11</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>565</x>
<y>725</y>
<height>16</height>
<width>80</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_term</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>15</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>Submitted By:</text>
<border>2</border>
<color>33554432</color>
<x>166</x>
<y>627</y>
<height>16</height>
<width>109</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_code__given_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>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>279</x>
<y>627</y>
<height>19</height>
<width>109</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_code__given</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>
<ColumnObject>
<band>Detail</band>
<id>19</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>395</x>
<y>627</y>
<height>16</height>
<width>87</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>name</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>Confirmed On:</text>
<border>2</border>
<color>33554432</color>
<x>166</x>
<y>676</y>
<height>16</height>
<width>109</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>conf_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>13</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>282</x>
<y>676</y>
<height>19</height>
<width>109</width>
<format>[General]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>conf_date</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Confirmed:</text>
<border>2</border>
<color>33554432</color>
<x>166</x>
<y>650</y>
<height>16</height>
<width>109</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>confirmed_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>33554432</color>
<x>280</x>
<y>650</y>
<height>19</height>
<width>109</width>
<format>[YES/NO]</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>33554432</color>
<x>166</x>
<y>701</y>
<height>16</height>
<width>109</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_code_aprv_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>33554432</color>
<x>282</x>
<y>701</y>
<height>16</height>
<width>60</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_code_aprv</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>25</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>347</x>
<y>701</y>
<height>16</height>
<width>104</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>users_name_aprv</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>22</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>457</x>
<y>701</y>
<height>16</height>
<width>60</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_fname</name>
<visible>0</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>23</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>521</x>
<y>701</y>
<height>16</height>
<width>60</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_mname</name>
<visible>0</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>24</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>586</x>
<y>701</y>
<height>16</height>
<width>60</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_lname</name>
<visible>0</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>26</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>294</x>
<y>750</y>
<height>16</height>
<width>76</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>exec_rights</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>
<ColumnObject>
<band>Detail</band>
<id>27</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>291</x>
<y>772</y>
<height>16</height>
<width>85</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id__ref</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>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Execution Rights:</text>
<border>2</border>
<color>33554432</color>
<x>185</x>
<y>751</y>
<height>16</height>
<width>103</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>exec_rights_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 reference:</text>
<border>2</border>
<color>33554432</color>
<x>142</x>
<y>774</y>
<height>16</height>
<width>144</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>
<HtmlTable>
<border>1</border>
</HtmlTable>
<HtmlGen>
<clientevents>1</clientevents>
<clientvalidation>1</clientvalidation>
<clientcomputedfields>1</clientcomputedfields>
<clientformatting>0</clientformatting>
<clientscriptable>0</clientscriptable>
<generatejavascript>1</generatejavascript>
<encodeselflinkargs>1</encodeselflinkargs>
<netscapelayers>0</netscapelayers>
</HtmlGen>
<Export.XML>
<headgroups>1</headgroups>
<includewhitespace>0</includewhitespace>
<metadatatype>0</metadatatype>
<savemetadata>0</savemetadata>
</Export.XML>
<Import.XML>
</Import.XML>
<Export.PDF>
<method>0</method>
<distill.custompostscript>0</distill.custompostscript>
<xslfop.print>0</xslfop.print>
</Export.PDF>
</Sybase_eDataWindow>
----------Insert For Messages
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
('MSDNCONF ','Cannot confirm this transaction','The dependent record with exec_rights = ''D'' is not yet confirmed.','E','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
('MSDANCONF ','Cannot confirm this transaction','The dependent record with exec_rights = ''D and Q'' is not yet confirmed.','E','Y',null,null,null,to_date('25-DEC-13','DD-MON-RR'),'BASE ','BASE',null,null);
--------Create Sequence query
CREATE SEQUENCE "SQL_CHG_SEQ" MINVALUE 1 MAXVALUE 9999999999 INCREMENT BY 1 START WITH 9009 NOCACHE NOORDER NOCYCLE NOKEEP
NOSCALE GLOBAL;
Insert into REFSEQ (REF_SER,REF_PREFIX,SEQ_NO,CHG_DATE,CHG_USER,CHG_TERM) values
('SQLCHG',' ','00009001',to_date('10-JAN-18 05:53:37','DD-MON-RR HH24:MI:SS'),'GAGANB','<basenvl> ');
update transetup set ref_ser = 'SQLCHG' where tran_window = 'w_sql_changes';
Insert into REFSER (REF_SER,DESCR,TYPE,SYS_SER,PREFIX,CHG_DATE,CHG_USER,CHG_TERM,SEQ_NAME,TAX_FORM_REQD,TRANS_TYPE,SKILL_CODE) values ('SQLCHG','Manage SQL ','S','SQLCHG',null,to_date('10-SEP-25','DD-MON-RR'),'BASE ','BASE','SQL_CHG_SEQ',null,null,null);
--------System Entries
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 ('sql_changes','post_sign','1','post_sign_sql_changes',null,'0',to_date('11-NOV-25 00:00:00','DD-MON-RR HH24:MI:SS'),'BASE ','BASE','2','JB','ibase.webitm.ejb.sys.ManageSQLAprv',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_sql_changes','method for process','http://localhost:9090/axis/services/ValidatorService','BASE','updateWFStatus',null,null,null,null,to_date('11-NOV-25 00:00:00','DD-MON-RR HH24:MI:SS'),'BASE ','BASE',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 ('post_sign_sql_changes',1,'COMPONENT_TYPE ','I',null,'S',null,to_date('11-NOV-25 00:00:00','DD-MON-RR HH24:MI:SS'),'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_sql_changes',2,'COMPONENT_NAME ','I',null,'S',null,to_date('11-NOV-25 00:00:00','DD-MON-RR HH24:MI:SS'),'BASE ','BASE','ibase.webitm.ejb.sys.ManageSQLAprv');
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_sql_changes',3,'XML_DATA_ALL','I',null,'S',null,to_date('11-NOV-25 00:00:00','DD-MON-RR HH24:MI:SS'),'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_sql_changes',4,'DB_CONN','I',null,'S.Connection',null,to_date('11-NOV-25 00:00:00','DD-MON-RR HH24:MI:SS'),'BASE ','BASE',null);
-------Workflow Entries
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 ('MSQL-APRV ','S','A','Manage SQL Approver','GAGANB ',null,null,'ajit.deshmukh@proteustech.in',to_date('13-NOV-25','DD-MON-RR'),'GAGANB ','000000000073403','E','select code from users where code = ''GAGANB''',null,null,'1');
Insert into WF_DESIGN (WF_DESIGN_ID,DESCR,DET_DESCR,WF_TYPE,OBJ_NAME__INVOKE,INVOKE_METHOD,XPDL_FILE,CHG_DATE,CHG_USER,CHG_TERM,ADD_DATE,ADD_USER,ADD_TERM) values ('0000000117','Manage SQL','Manage SQL workflow
On finish of Manage SQL transaction the workflow goes to the inbox of ADMIN','0','sql_changes','0','sql_changes',to_date('13-NOV-25','DD-MON-RR'),'GAGANB ','000000000073403',to_date('11-NOV-25','DD-MON-RR'),'GAGANB ','000000000073403');
Insert into WF_DESIGN_ROLE (WF_DESIGN_ID,LINE_NO,ROLE_CODE,ROLE_TYPE,EVENT_CARR,DESCR,USER_ID,SUBJECT_STR,INCLUDE_DATA,EMAIL_ADDR,ROLE_ENTITY,ROLE_ENTITY_SQL,DYN_ROLE_REF,ROLE_SQL_INPUT) values ('0000000117',1,'INITIATOR ','D','A','INITIATOR',null,null,null,null,'E','SELECT EMP_CODE FROM EMPLOYEE WHERE EMP_CODE = (SELECT EMP_CODE FROM USERS WHERE CODE = ?)',null,'Detail1.chg_user:String');
Insert into WF_DESIGN_ROLE (WF_DESIGN_ID,LINE_NO,ROLE_CODE,ROLE_TYPE,EVENT_CARR,DESCR,USER_ID,SUBJECT_STR,INCLUDE_DATA,EMAIL_ADDR,ROLE_ENTITY,ROLE_ENTITY_SQL,DYN_ROLE_REF,ROLE_SQL_INPUT) values ('0000000117',7,'MSQL-APRV ','S','A','Manage SQL Approver','GAGANB ',null,null,'ajit.deshmukh@proteustech.in','E','select code from users where code = ''GAGANB''',null,null);
Insert into WF_DESIGN_ROUTE (WF_DESIGN_ID,LINE_NO,ROUTE_NAME,ROUTE_BLOCK,RULE_CODE,RULE_INPUT,ACTIVITY_CODE,ACTIVITY_INPUT,ROLE_CODE__PERFORM,ACTIVITY_CODE__PREV,DESCR) values ('0000000117',1,'STEP-1','A','NO-CONDN ',null,'APPROVAL-1','{"prc_id":"$PRC_ID", "prfmr_role_code":"$PRFMR_ROLE_CODE", "prfmr_code":"$PRFMR_CODE", "mail_format_code":"POAMD_APR5", "xsl_file_name":"waive_off", "sign_for":"ADMIN", "context1":"sql_changes", "context2":"<Detail1.chg_date>", "context3":"<Detail1.chg_user>"}','MSQL-APRV','SUBMIT ','WF submitted for approval');
Insert into WF_DESIGN_ROUTE (WF_DESIGN_ID,LINE_NO,ROUTE_NAME,ROUTE_BLOCK,RULE_CODE,RULE_INPUT,ACTIVITY_CODE,ACTIVITY_INPUT,ROLE_CODE__PERFORM,ACTIVITY_CODE__PREV,DESCR) values ('0000000117',2,'STEP-2','A','REJECTED ',null,'CANCEL ','{"tran_id":"$REF_ID", "xtra_param":"loginCode=$PRFMR_CODE~tloginEmpCode=$PRFMR_CODE~tobjName=$OBJ_NAME~ttermId=SYSTEM", "forced_flag":"true", "user_info":"$USER_INFO"}','MSQL-APRV','APPROVAL-1','Rejected');
Insert into WF_DESIGN_ROUTE (WF_DESIGN_ID,LINE_NO,ROUTE_NAME,ROUTE_BLOCK,RULE_CODE,RULE_INPUT,ACTIVITY_CODE,ACTIVITY_INPUT,ROLE_CODE__PERFORM,ACTIVITY_CODE__PREV,DESCR) values ('0000000117',3,'STEP-3','A','APPROVED ',null,'SAVE ',null,'MSQL-APRV','APPROVAL-1','Confirm');
Insert into WF_DESIGN_RULE (WF_DESIGN_ID,LINE_NO,RULE_CODE,DESCR,RULE_TYPE,RULE_EXPRESSION,EXPRESSION_INPUT) values ('0000000117',6,'WF_STATUS ','Workflow Status','0','status == "S"','status.char');
Insert into WF_DESIGN_RULE (WF_DESIGN_ID,LINE_NO,RULE_CODE,DESCR,RULE_TYPE,RULE_EXPRESSION,EXPRESSION_INPUT) values ('0000000117',7,'APPROVED ','Approver approved the workflow','0','$APP_RESULT == "S"','$APP_RESULT');
Insert into WF_DESIGN_RULE (WF_DESIGN_ID,LINE_NO,RULE_CODE,DESCR,RULE_TYPE,RULE_EXPRESSION,EXPRESSION_INPUT) values ('0000000117',8,'REJECTED ','Approver rejected the workflow','0','$APP_RESULT == "R"','$APP_RESULT');
Insert into WF_DESIGN_RULE (WF_DESIGN_ID,LINE_NO,RULE_CODE,DESCR,RULE_TYPE,RULE_EXPRESSION,EXPRESSION_INPUT) values ('0000000117',9,'NO-CONDN ','No Condition','0','NA','NA');
---MAIL_FORMAT
Insert into MAIL_FORMAT (FORMAT_CODE,FORMAT_TYPE,SEND_TO,COPY_TO,BLIND_COPY,SUBJECT,BODY_COMP,PRIORITY,DELIVERY_REPORT,RETURN_RECEIPT,MAIL_APPLICATION,MAIL_SERVER,MAIL_BOX,MAIL_ID,ATTACH_TYPE,ATTACH_TEXT,WINNAME,WIN_NAME,MAIL_GENERATION,MAIL_DESCR,FN_NAME,COND_METHOD,EMAIL_EXPR,ATTACH_OBJECT,TEMPLATE_PURPOSE,STATUS,USER_ID__OWN,BODY_TEXT,MSG_TYPE,TEMPLATE_NAME) values ('SQL_CHG ','T','[(E)ROLE_CODE]','gagandeep.bhatia@proteustech.in',null,'Request for Approval: SQL Execution [<Detail1.tran_id>]',1,1,1,1,'M',null,null,null,null,null,'w_sql_changes','w_sql_changes',null,null,null,null,null,null,null,null,null,'<div><span style="font-size: 13.3333px;">Dear KB Sir,</span></div><div><span style="font-size: 13.3333px;"><br></span></div><div><span style="font-size: 13.3333px;">Your approval is requested for a set of SQL changes to be executed on the application database.</span></div><div><span style="font-size: 13.3333px;">Please review the transaction details below. This transaction will apply modifications to the database schema or data as described.</span></div><div><span style="font-size: 13.3333px;"><br></span></div><div><span style="font-size: 13.3333px;"><b>Transaction Summary:</b></span></div>
<div><span style="font-size: 13.3333px;">Transaction ID: <Detail1.tran_id></span></div>
<div><span style="font-size: 13.3333px;">Request ID: <Detail1.req_id></span></div>
<div><span style="font-size: 13.3333px;">Initiated By: <Detail1.emp_code__merge></span></div>
<div><span style="font-size: 13.3333px;">Initiation Date: <Detail1.tran_date></span></div>
<div><span style="font-size: 13.3333px;"><br></span></div>
<div><span style="font-size: 13.3333px;">Please use the button below to view the transaction Details and approve or reject this request.</span></div>
',null,null);
<?xml version="1.0" encoding="UTF-8"?>
<Package Id="sql_changes" Name="sql_changes" xmlns="http://www.wfmc.org/2002/XPDL1.0" xmlns:xpdl="http://www.wfmc.org/2002/XPDL1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wfmc.org/2002/XPDL1.0 http://wfmc.org/standards/docs/TC-1025_schema_10_xpdl.xsd">
<PackageHeader>
<XPDLVersion>1.0</XPDLVersion>
<Vendor>Together</Vendor>
<Created>2025-11-11 17:25:01</Created>
</PackageHeader>
<RedefinableHeader PublicationStatus="UNDER_TEST"/>
<ConformanceClass GraphConformance="NON_BLOCKED"/>
<WorkflowProcesses>
<WorkflowProcess AccessLevel="PUBLIC" Id="sql_changes" Name="sql_changes">
<ProcessHeader DurationUnit="D">
<Created>2025-11-11 17:25:01</Created>
</ProcessHeader>
<RedefinableHeader PublicationStatus="UNDER_TEST"/>
<Participants>
<Participant Id="INITIATOR" Name="INITIATOR">
<ParticipantType1 Type="ROLE"/>
<ExtendedAttributes>
<ExtendedAttribute Name="PRFMR_ROLE_CODE" Value="INITIATOR"/>
<ExtendedAttribute Name="SIGN_FOR" Value="INITIATOR"/>
<ExtendedAttribute Name="PRFMR_ROLE_EXPR" Value="Detail1.chg_user:"/>
<ExtendedAttribute Name="PRFMR_ROLE_EXPR_TYPE" Value="String:"/>
</ExtendedAttributes>
</Participant>
<Participant Id="MSQL-APRV" Name="MSQL-APRV">
<ParticipantType1 Type="ROLE"/>
<ExtendedAttributes>
<ExtendedAttribute Name="PRFMR_ROLE_CODE" Value="MSQL-APRV"/>
<ExtendedAttribute Name="SIGN_FOR" Value="Manage SQL Approver"/>
</ExtendedAttributes>
</Participant>
</Participants>
<Applications>
<Application Id="APPROVAL-1" Name="First level approval">
<FormalParameters>
<FormalParameter Id="ProcessInstanceId" Index="1" Mode="IN">
<DataType>
<BasicType Type="STRING"/>
</DataType>
</FormalParameter>
<FormalParameter Id="roleCodeSign" Index="2" Mode="IN">
<DataType>
<BasicType Type="STRING"/>
</DataType>
</FormalParameter>
<FormalParameter Id="entityCode" Index="3" Mode="IN">
<DataType>
<BasicType Type="STRING"/>
</DataType>
</FormalParameter>
<FormalParameter Id="formatCode" Index="4" Mode="IN">
<DataType>
<BasicType Type="STRING"/>
</DataType>
</FormalParameter>
<FormalParameter Id="xslFileName" Index="5" Mode="IN">
<DataType>
<BasicType Type="STRING"/>
</DataType>
</FormalParameter>
<FormalParameter Id="signFor" Index="6" Mode="IN">
<DataType>
<BasicType Type="STRING"/>
</DataType>
</FormalParameter>
<FormalParameter Id="context1" Index="7" Mode="IN">
<DataType>
<BasicType Type="STRING"/>
</DataType>
</FormalParameter>
<FormalParameter Id="context2" Index="8" Mode="IN">
<DataType>
<BasicType Type="STRING"/>
</DataType>
</FormalParameter>
<FormalParameter Id="context3" Index="9" Mode="IN">
<DataType>
<BasicType Type="STRING"/>
</DataType>
</FormalParameter>
</FormalParameters>
<ExtendedAttributes>
<ExtendedAttribute Name="APPLN_TYPE" Value="JB"/>
<ExtendedAttribute Name="COMP_NAME" Value="ibase.wrkflw.utility.SignTrans"/>
<ExtendedAttribute Name="METHOD_NAME" Value="insertSignCtx"/>
<ExtendedAttribute Name="EXEC_MODE" Value="ASYNC"/>
</ExtendedAttributes>
</Application>
<Application Id="SAVE" Name="SAVE">
<FormalParameters>
</FormalParameters>
<ExtendedAttributes>
<ExtendedAttribute Name="APPLN_TYPE" Value="JB"/>
<ExtendedAttribute Name="COMP_NAME" Value="ibase.wrkflw.utility.TransSave"/>
<ExtendedAttribute Name="METHOD_NAME" Value="saveChangeInTrans"/>
<ExtendedAttribute Name="EXEC_MODE" Value="SYNC"/>
</ExtendedAttributes>
</Application>
<Application Id="CANCEL" Name="Cancel workflow">
<FormalParameters>
<FormalParameter Id="tranID" Index="1" Mode="IN">
<DataType>
<BasicType Type="STRING"/>
</DataType>
</FormalParameter>
<FormalParameter Id="xtraParams" Index="2" Mode="IN">
<DataType>
<BasicType Type="STRING"/>
</DataType>
</FormalParameter>
<FormalParameter Id="forcedFlag" Index="3" Mode="IN">
<DataType>
<BasicType Type="STRING"/>
</DataType>
</FormalParameter>
<FormalParameter Id="userInfoStr" Index="4" Mode="IN">
<DataType>
<BasicType Type="STRING"/>
</DataType>
</FormalParameter>
</FormalParameters>
<ExtendedAttributes>
<ExtendedAttribute Name="APPLN_TYPE" Value="JB"/>
<ExtendedAttribute Name="COMP_NAME" Value="ibase.webitm.utility.GenericCancel"/>
<ExtendedAttribute Name="METHOD_NAME" Value="confirm"/>
<ExtendedAttribute Name="EXEC_MODE" Value="SYNC"/>
</ExtendedAttributes>
</Application>
</Applications>
<Activities>
<Activity Id="sql_changes" Name="sql_changes">
<Implementation><No/></Implementation>
<Performer>INITIATOR</Performer>
<StartMode><Automatic/></StartMode>
<FinishMode><Automatic/></FinishMode>
<ExtendedAttributes>
<ExtendedAttribute Name="ParticipantID" Value="INITIATOR" />
<ExtendedAttribute Name="XOffset" Value="0"/>
<ExtendedAttribute Name="YOffset" Value="0"/>
</ExtendedAttributes>
</Activity>
<Activity Id="APPROVAL-1" Name="APPROVAL-1">
<Implementation>
<Tool Id="APPROVAL-1" Type="APPLICATION">
<ActualParameters>
<ActualParameter>$PRC_ID</ActualParameter>
<ActualParameter>$PRFMR_ROLE_CODE</ActualParameter>
<ActualParameter>$PRFMR_CODE</ActualParameter>
<ActualParameter>SQL_CHG</ActualParameter>
<ActualParameter>sql_changes</ActualParameter>
<ActualParameter>ADMIN</ActualParameter>
<ActualParameter>sql_changes</ActualParameter>
<ActualParameter>&lt;Detail1.chg_date&gt;</ActualParameter>
<ActualParameter>&lt;Detail1.chg_user&gt;</ActualParameter>
</ActualParameters>
</Tool>
</Implementation>
<Performer>MSQL-APRV</Performer>
<StartMode><Automatic/></StartMode>
<FinishMode><Automatic/></FinishMode>
<TransitionRestrictions>
<TransitionRestriction>
<Split Type="XOR">
<TransitionRefs>
<TransitionRef Id="REJECTED" />
<TransitionRef Id="APPROVED" />
</TransitionRefs>
</Split>
</TransitionRestriction>
</TransitionRestrictions>
<ExtendedAttributes>
<ExtendedAttribute Name="ParticipantID" Value="MSQL-APRV"/>
<ExtendedAttribute Name="XOffset" Value="0"/>
<ExtendedAttribute Name="YOffset" Value="0"/>
</ExtendedAttributes>
</Activity>
<Activity Id="CANCEL" Name="CANCEL">
<Implementation>
<Tool Id="CANCEL" Type="APPLICATION">
<ActualParameters>
<ActualParameter>$REF_ID</ActualParameter>
<ActualParameter>loginCode=$PRFMR_CODE~tloginEmpCode=$PRFMR_CODE~tobjName=$OBJ_NAME~ttermId=SYSTEM</ActualParameter>
<ActualParameter>true</ActualParameter>
<ActualParameter>$USER_INFO</ActualParameter>
</ActualParameters>
</Tool>
</Implementation>
<Performer>MSQL-APRV</Performer>
<StartMode><Automatic/></StartMode>
<FinishMode><Automatic/></FinishMode>
<ExtendedAttributes>
<ExtendedAttribute Name="ParticipantID" Value="MSQL-APRV"/>
<ExtendedAttribute Name="XOffset" Value="0"/>
<ExtendedAttribute Name="YOffset" Value="0"/>
</ExtendedAttributes>
</Activity>
<Activity Id="SAVE" Name="SAVE">
<Implementation>
<Tool Id="SAVE" Type="APPLICATION">
<ActualParameters>
</ActualParameters>
</Tool>
</Implementation>
<Performer>MSQL-APRV</Performer>
<StartMode><Automatic/></StartMode>
<FinishMode><Automatic/></FinishMode>
<ExtendedAttributes>
<ExtendedAttribute Name="ParticipantID" Value="MSQL-APRV"/>
<ExtendedAttribute Name="XOffset" Value="0"/>
<ExtendedAttribute Name="YOffset" Value="0"/>
</ExtendedAttributes>
</Activity>
</Activities>
<Transitions>
<Transition From="sql_changes" Id="NO-CONDN" To="APPROVAL-1">
<ExtendedAttributes>
<ExtendedAttribute Name="RoutingType" Value="NOROUTING"/>
</ExtendedAttributes>
</Transition>
<Transition From="APPROVAL-1" Id="REJECTED" To="CANCEL">
<Condition Type="0">$APP_RESULT == "R"</Condition>
<ExtendedAttributes>
<ExtendedAttribute Name="RoutingType" Value="NOROUTING"/>
<ExtendedAttribute Name="VAR_NAMES" Value="$APP_RESULT"/>
</ExtendedAttributes>
</Transition>
<Transition From="APPROVAL-1" Id="APPROVED" To="SAVE">
<Condition Type="0">$APP_RESULT == "S"</Condition>
<ExtendedAttributes>
<ExtendedAttribute Name="RoutingType" Value="NOROUTING"/>
<ExtendedAttribute Name="VAR_NAMES" Value="$APP_RESULT"/>
</ExtendedAttributes>
</Transition>
</Transitions>
<ExtendedAttributes>
<ExtendedAttribute Name="StartOfWorkflow" Value="INITIATOR;sql_changes;0;0;NOROUTING"/>
<ExtendedAttribute Name="EndOfWorkflow" Value="INITIATOR;CANCEL;0;0;NOROUTING"/>
<ExtendedAttribute Name="EndOfWorkflow" Value="INITIATOR;SAVE;0;0;NOROUTING"/>
<ExtendedAttribute Name="ParticipantVisualOrder" Value="INITIATOR;MSQL-APRV;"/>
</ExtendedAttributes>
</WorkflowProcess>
</WorkflowProcesses>
<ExtendedAttributes>
<ExtendedAttribute Name="MadeBy" Value="JaWE" />
<ExtendedAttribute Name="Version" Value="1.4.2" />
</ExtendedAttributes>
</Package>
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<head>
<link rel="stylesheet" type="text/css" href="/ibase/webitm/css/summary.css" />
<title>Manage SQL</title>
<style>
/* keep entire page fixed (no page scrollbar) */
html, body {
margin: 0;
padding: 0;
height: 100%;
}
/* container fills available area but won't create a page scrollbar */
.sum_Container {
height: 100%;
box-sizing: border-box;
overflow: visible;
}
/* content area — allow internal layout but not page scroll */
.sum_Content {
height: 100%;
overflow: visible; /* allow children to manage overflow */
padding: 10px 12px;
box-sizing: border-box;
}
/* general data cell style */
.content_Row .txtData {
overflow: visible;
white-space: normal;
}
/* ✅ SQL box: independent scrolling area only for SQL statements */
.txtData.sqlBox {
height: 150px !important;
width:600px !important;
overflow-y: auto !important;
overflow-x: auto !important;
border: 1px solid #ccc;
padding: 8px;
background: #f9f9f9;
box-sizing: border-box;
white-space: pre-wrap;
word-wrap: break-word;
font-family: monospace;
scrollbar-gutter: stable;
}
</style>
</head>
<body>
<div class="sum_Container">
<div class="sum_Content">
<form id="detail" method="POST" style="margin-bottom:0;">
<div class="sum_Header">
<img src="/ibase/webitm/images/Summary/Header.png" class="sum_Icon pdLeft_16" alt="Header Icon" />
Manage SQL
</div>
<xsl:for-each select="//Detail1">
<div class="content_BG colomn_View">
<div class="content_Row">
<div class="txtlbl txtdark">Add User:</div>
<div class="txtData" contentEditable="false">
<xsl:value-of select="concat(users_name, ' (', emp_code__merge, ')')" />
</div>
</div>
<div class="content_Row">
<div class="txtlbl txtdark">Enterprise:</div>
<div class="txtData" contentEditable="false">
<xsl:choose>
<!-- if enterprises is not empty -->
<xsl:when test="normalize-space(enterprises) != ''">
<xsl:value-of select="enterprises"/>
</xsl:when>
<!-- if enterprises is empty or null, use appl_db -->
<xsl:otherwise>
All Enterprise
</xsl:otherwise>
</xsl:choose>
</div>
</div>
<!-- Scrollable SQL box (only this box scrolls) -->
<div class="content_Row">
<div class="txtlbl txtdark">SQL Statement:</div>
<div class="txtData sqlBox">
<xsl:for-each select="//Detail2">
<div style="margin-bottom:8px;">
<xsl:number format="1. " />
<xsl:value-of select="ora_stmnt" />
</div>
</xsl:for-each>
</div>
</div>
</div>
</xsl:for-each>
</form>
</div>
</div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment