Commit e8d0dc33 authored by Ajit Deshmukh's avatar Ajit Deshmukh

Added the components for the Manage SQL Changes - April26

parent abb07375
/*
* Author: Gagan B.
* Date: 08-JAN-2026
* Purpose: This class will be called when ManageSQL Transaction is submitted.
* It will be used to update Submitted by's value (EMP_CODE__GIVEN) with login code of whoever will submit the Manage SQL transaction.
* */
package ibase.webitm.ejb.sys;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import ibase.system.config.ConnDriver;
import ibase.utility.BaseLogger;
import ibase.utility.E12GenericUtility;
import ibase.utility.UserInfoBean;
import ibase.webitm.ejb.ActionHandlerEJB;
import ibase.webitm.ejb.ITMDBAccessEJB;
public class ManageSQLSubmit extends ActionHandlerEJB {
@Override
public String confirm(String tranID, String xtraParams, String forcedFlag) {
BaseLogger.log("3", null, null, "ManageSQLSubmit confirm called"
+ "tranID + [" + tranID + "]"
+ "xtraParams + [" + xtraParams + "]"
+ "forcedFlag + [" + forcedFlag + "]");
String responseStr = "";
UserInfoBean userInfo = getUserInfo();
Connection conn = null;
BaseLogger.log("3", null, null, "ManageSQLSubmit userInfo" + userInfo);
try {
ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB();
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB(userInfo.getTransDB());
String ExecutiveApproval = "";
String ExecutionRights = "";
String checkExecAprvVal = "select exec_aprv, exec_rights from sql_changes where tran_id = ?";
PreparedStatement checkExecAprvValPs = conn.prepareStatement(checkExecAprvVal);
checkExecAprvValPs.setString(1, tranID);
ResultSet checkExecAprvValRs = checkExecAprvValPs.executeQuery();
while (checkExecAprvValRs.next()) {
ExecutiveApproval = checkNull(checkExecAprvValRs.getString("exec_aprv"));
ExecutionRights = checkNull(checkExecAprvValRs.getString("exec_rights"));
}
BaseLogger.log("3", null, null, "ManageSQLSubmit exec_aprv:: " + ExecutiveApproval);
BaseLogger.log("3", null, null, "ManageSQLSubmit exec_rights:: " + ExecutionRights);
if (checkExecAprvValPs != null) {
checkExecAprvValPs.close();
checkExecAprvValPs = null;
}
if (checkExecAprvValRs != null) {
checkExecAprvValRs.close();
checkExecAprvValRs = null;
}
if(ExecutionRights.trim().equalsIgnoreCase("A") || ExecutionRights.trim().equalsIgnoreCase("P") || ExecutionRights.trim().equalsIgnoreCase("C") || ExecutionRights.trim().equalsIgnoreCase("Q")){
BaseLogger.log("3", null, null, "For Execution Rights A, P, C and Q can not be submit....");
return itmDBAccessEJB.getErrorString("", "MSQLNS", "", "", conn);
}
if (ExecutiveApproval.trim().equalsIgnoreCase("Y")) {
String updateAprvLevelSql = "update sql_changes set aprv_level = '2' where tran_id = ?";
PreparedStatement updateAprvLevelPs = conn.prepareStatement(updateAprvLevelSql);
updateAprvLevelPs.setString(1, tranID);
int updateAprvLevelCount = updateAprvLevelPs.executeUpdate();
BaseLogger.log("3", null, null, "ManageSQLSubmit updateAprvLevelCount::: " + updateAprvLevelCount);
if (updateAprvLevelPs != null) {
updateAprvLevelPs.close();
updateAprvLevelPs = null;
}
}
if (updateSubmittedBy(userInfo, tranID, conn)) {
conn.commit();
responseStr = (new ITMDBAccessEJB()).getErrorString("", "VTSUBMTSUC", "", "", userInfo.getTransDB());
} else {
responseStr = (new ITMDBAccessEJB()).getErrorString("", "VTSUBMTREJ", "", "", userInfo.getTransDB());
}
} catch (Exception e) {
BaseLogger.log("3", null, null, "ManageSQLSubmit Exception. [" + E12GenericUtility.getStackTrace(e) + "]");
} finally {
if (conn != null) {
try {
conn.close();
conn = null;
} catch (Exception e) {
BaseLogger.log("3", null, null, "ManageSQLSubmit Exception for closing connection. ["
+ E12GenericUtility.getStackTrace(e) + "]");
}
}
}
return responseStr;
}
public boolean updateSubmittedBy(UserInfoBean userInfo, String tranID, Connection conn) {
String updateSQL = "UPDATE SQL_CHANGES SET EMP_CODE__GIVEN = ? WHERE TRAN_ID = ?";
try (
PreparedStatement psmt = conn.prepareStatement(updateSQL);) {
psmt.setString(1, userInfo.getLoginCode().trim());
psmt.setString(2, tranID);
int updateRowCount = psmt.executeUpdate();
if (updateRowCount > 0) {
return true;
} else {
return false;
}
} catch (Exception e) {
BaseLogger.log("3", null, null,
"updateSubmittedBy Exception. [" + E12GenericUtility.getStackTrace(e) + "]");
return false;
}
}
private String checkNull(String input) {
if (input == null) {
input = "";
}
return input;
}
}
This diff is collapsed.
package ibase.webitm.ejb.sys;
import java.rmi.RemoteException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import ibase.utility.BaseLogger;
import ibase.utility.UserInfoBean;
import ibase.webitm.ejb.ActionHandlerEJB;
import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.ejb.ValidatorEJB;
import ibase.webitm.utility.ITMException;
public class ManageSqlProceed extends ActionHandlerEJB {
public String updateStatus(String tranID, String xtraParams, String forcedFlag)
throws RemoteException, ITMException {
Connection conn = null;
ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB();
String quotType = "", custCode = "";
StringBuffer processDynXmlString = new StringBuffer();
int domId = 0;
int lineNo = 0;
UserInfoBean userInfo = null;
ResultSet fetchHospitalMappingRs = null;
PreparedStatement insertPs = null;
ValidatorEJB validatorEJB;
String errString = "";
try {
userInfo = getUserInfo();
validatorEJB = new ValidatorEJB();
BaseLogger.log("3", getUserInfo(), null, "ManageSqlProceed --> tranID [" + tranID + "]");
conn = getConnection();
String userId = validatorEJB.getValueFromXTRA_PARAMS(xtraParams, "loginEmpCode");
String tranIdRef = "";
int existingAprvLvl = 0;
String getAprvLvlSql = "select APRV_LEVEL, TRAN_ID__REF from sql_changes where tran_id = ?";
PreparedStatement getAprvLvlPs = conn.prepareStatement(getAprvLvlSql);
getAprvLvlPs.setString(1, tranID);
ResultSet getAprvLvlRs = getAprvLvlPs.executeQuery();
while(getAprvLvlRs.next()) {
existingAprvLvl = getAprvLvlRs.getInt("APRV_LEVEL");
tranIdRef = checkNull(getAprvLvlRs.getString("TRAN_ID__REF"));
}
if(tranIdRef.trim().length()!=0){
BaseLogger.log("3", getUserInfo(), null, "MSQLPAE Proceed already completed.");
return itmDBAccessEJB.getErrorString("", "MSQLPAE", "", "", conn);
}
if(existingAprvLvl<1) {
int updatedAprvLvl = existingAprvLvl+1;
BaseLogger.log("3", getUserInfo(), null, "ManageSqlProceed.updateStatus: updatedAprvLvl[" +updatedAprvLvl + "]");
// 🔹 Update APRV_LEVEL
String updateAprvLvlSql = "update sql_changes set APRV_LEVEL = ?, TXN_STATUS = 'T' where tran_id = ?";
PreparedStatement updateAprvLvlPs = conn.prepareStatement(updateAprvLvlSql);
updateAprvLvlPs.setInt(1, updatedAprvLvl);
updateAprvLvlPs.setString(2, tranID);
int updateAprvLvlCnt = updateAprvLvlPs.executeUpdate();
if (updateAprvLvlCnt > 0 && updatedAprvLvl == 1) {
conn.commit();
return itmDBAccessEJB.getErrorString("", "MSQLPROC", "", "", conn);
}
if (updateAprvLvlPs != null) {
updateAprvLvlPs.close();
updateAprvLvlPs = null;
}
}
else if(existingAprvLvl >= 1) {
return itmDBAccessEJB.getErrorString("", "MSQLAPROC", "", "", conn);
}
} catch (Exception e) {
if (conn != null) {
try {
conn.rollback();
} catch (Exception ex) {
ex.printStackTrace();
}
}
BaseLogger.log("3", getUserInfo(), null, "Exception in ManageSqlProceed.updateStatus: [" + e.getMessage() + "]");
}
finally {
try {
if (insertPs != null) insertPs.close();
if (conn != null) conn.close();
if (fetchHospitalMappingRs != null) fetchHospitalMappingRs.close();
} catch (Exception e) {
}
}
return " ";
}
private String checkNull(String input) {
if (input == null) {
input = "";
}
return input;
}
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Sybase_eDataWindow>
<Sybase_eDataWindow>
<Release>9</Release>
<BaseDefinition>
<units>1</units>
<timer_interval>0</timer_interval>
<color>67108864</color>
<processing>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_det.tran_id</dbname>
</table_column>
<table_column>
<type precision="0">decimal</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<key>yes</key>
<name>line_no</name>
<dbname>sql_changes_det.line_no</dbname>
</table_column>
<table_column>
<type size="4000">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>ora_stmnt</name>
<dbname>sql_changes_det.ora_stmnt</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;sql_changes_det&quot; ) COLUMN(NAME=&quot;sql_changes_det.tran_id&quot;) COLUMN(NAME=&quot;sql_changes_det.line_no&quot;) COLUMN(NAME=&quot;sql_changes_det.ora_stmnt&quot;)WHERE( EXP1 =&quot;sql_changes_det.tran_id&quot; OP =&quot;=&quot; EXP2 =&quot;:tran_id&quot; ) ) ARG(NAME = &quot;tran_id&quot; TYPE = number) </retrieve>
<update>sql_changes_det</update>
<updatewhere>1</updatewhere>
<updatekeyinplace>no</updatekeyinplace>
<argument>
<name>tran_id</name>
<type>number</type>
</argument>
</TableDefinition>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Transaction ID</text>
<border>2</border>
<color>0</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>Line No</text>
<border>2</border>
<color>0</color>
<x>70</x>
<y>2</y>
<height>16</height>
<width>72</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>line_no_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>SQL To Execute</text>
<border>2</border>
<color>0</color>
<x>144</x>
<y>2</y>
<height>16</height>
<width>118</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>ora_stmnt_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<alignment>0</alignment>
<tabsequence>10</tabsequence>
<border>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>1</alignment>
<tabsequence>20</tabsequence>
<border>2</border>
<color>33554432</color>
<x>70</x>
<y>2</y>
<height>19</height>
<width>72</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>line_no</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>0</alignment>
<tabsequence>30</tabsequence>
<border>2</border>
<color>33554432</color>
<x>144</x>
<y>2</y>
<height>19</height>
<width>118</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>ora_stmnt</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>4000</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>
<HtmlTable>
<border>1</border>
</HtmlTable>
<HtmlGen>
<clientevents>1</clientevents>
<clientvalidation>1</clientvalidation>
<clientcomputedfields>1</clientcomputedfields>
<clientformatting>0</clientformatting>
<clientscriptable>0</clientscriptable>
<generatejavascript>1</generatejavascript>
<encodeselflinkargs>1</encodeselflinkargs>
<netscapelayers>0</netscapelayers>
</HtmlGen>
<Export.XML>
<headgroups>1</headgroups>
<includewhitespace>0</includewhitespace>
<metadatatype>0</metadatatype>
<savemetadata>0</savemetadata>
</Export.XML>
<Import.XML>
</Import.XML>
<Export.PDF>
<method>0</method>
<distill.custompostscript>0</distill.custompostscript>
<xslfop.print>0</xslfop.print>
</Export.PDF>
</Sybase_eDataWindow>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Sybase_eDataWindow>
<Sybase_eDataWindow>
<Release>9</Release>
<BaseDefinition>
<units>1</units>
<timer_interval>0</timer_interval>
<color>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>
<Summary>
<height>0</height>
<color>536870912</color>
</Summary>
<Footer>
<height>0</height>
<color>536870912</color>
</Footer>
<Detail>
<height>349</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_det.tran_id</dbname>
</table_column>
<table_column>
<type precision="0">decimal</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<key>yes</key>
<name>line_no</name>
<dbname>sql_changes_det.line_no</dbname>
</table_column>
<table_column>
<type size="4000">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>ora_stmnt</name>
<dbname>sql_changes_det.ora_stmnt</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;sql_changes_det&quot; ) COLUMN(NAME=&quot;sql_changes_det.tran_id&quot;) COLUMN(NAME=&quot;sql_changes_det.line_no&quot;) COLUMN(NAME=&quot;sql_changes_det.ora_stmnt&quot;)WHERE( EXP1 =&quot;sql_changes_det.tran_id&quot; OP =&quot;=&quot; EXP2 =&quot;:tran_id&quot; LOGIC =&quot;and&quot; ) WHERE( EXP1 =&quot;sql_changes_det.line_no&quot; OP =&quot;=&quot; EXP2 =&quot;:line_no&quot; ) ) ARG(NAME = &quot;tran_id&quot; TYPE = string) ARG(NAME = &quot;line_no&quot; TYPE = number) </retrieve>
<update>sql_changes_det</update>
<updatewhere>1</updatewhere>
<updatekeyinplace>no</updatekeyinplace>
<argument>
<name>tran_id</name>
<type>string</type>
</argument>
<argument>
<name>line_no</name>
<type>number</type>
</argument>
</TableDefinition>
<GroupBox>
<band>Detail</band>
<text>Others</text>
<border>2</border>
<color>0</color>
<x>83</x>
<y>233</y>
<height>123</height>
<width>421</width>
<name>gb_2</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1073741824</color>
</background>
</GroupBox>
<GroupBox>
<band>Detail</band>
<text>Basic</text>
<border>2</border>
<color>0</color>
<x>80</x>
<y>44</y>
<height>138</height>
<width>561</width>
<name>gb_1</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1073741824</color>
</background>
</GroupBox>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Transaction ID:</text>
<border>2</border>
<color>0</color>
<x>128</x>
<y>275</y>
<height>16</height>
<width>87</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>0</color>
<x>219</x>
<y>275</y>
<height>19</height>
<width>66</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Line No:</text>
<border>2</border>
<color>0</color>
<x>151</x>
<y>309</y>
<height>16</height>
<width>64</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>line_no_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>0</color>
<x>219</x>
<y>309</y>
<height>19</height>
<width>72</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>line_no</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>SQL To Execute:</text>
<border>2</border>
<color>0</color>
<x>153</x>
<y>81</y>
<height>16</height>
<width>100</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>ora_stmnt_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>0</alignment>
<tabsequence>10</tabsequence>
<border>2</border>
<color>0</color>
<x>257</x>
<y>79</y>
<height>86</height>
<width>191</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>ora_stmnt</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>4000</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>
<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$sql_changes_det_brow.srd
release 9;
datawindow(units=1 timer_interval=0 color=67108864 processing=1 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no grid.lines=0 )
header(height=20 color="536870912" )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=23 color="536870912" )
table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=tran_id dbname="sql_changes_det.tran_id" )
column=(type=decimal(0) update=yes updatewhereclause=yes key=yes name=line_no dbname="sql_changes_det.line_no" )
column=(type=char(4000) update=yes updatewhereclause=yes name=ora_stmnt dbname="sql_changes_det.ora_stmnt" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"sql_changes_det~" ) COLUMN(NAME=~"sql_changes_det.tran_id~") COLUMN(NAME=~"sql_changes_det.line_no~") COLUMN(NAME=~"sql_changes_det.ora_stmnt~")WHERE( EXP1 =~"sql_changes_det.tran_id~" OP =~"=~" EXP2 =~":tran_id~" ) ) ARG(NAME = ~"tran_id~" TYPE = number) " update="sql_changes_det" updatewhere=1 updatekeyinplace=no arguments=(("tran_id", number)) )
text(band=header alignment="2" text="Transaction ID" border="2" color="0" x="2" y="2" height="16" width="66" html.valueishtml="0" name=tran_id_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Line No" border="2" color="0" x="70" y="2" height="16" width="72" html.valueishtml="0" name=line_no_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="SQL To Execute" border="2" color="0" x="144" y="2" height="16" width="118" html.valueishtml="0" name=ora_stmnt_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=1 alignment="0" tabsequence=10 border="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="1" tabsequence=20 border="2" color="33554432" x="70" y="2" height="19" width="72" format="[general]" html.valueishtml="0" name=line_no visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=3 alignment="0" tabsequence=30 border="2" color="33554432" x="144" y="2" height="19" width="118" format="[general]" html.valueishtml="0" name=ora_stmnt visible="1" edit.limit=4000 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" )
htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
import.xml()
export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )
\ No newline at end of file
$PBExportHeader$sql_changes_det_edit.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 )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=349 color="536870912" )
table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=tran_id dbname="sql_changes_det.tran_id" )
column=(type=decimal(0) update=yes updatewhereclause=yes key=yes name=line_no dbname="sql_changes_det.line_no" )
column=(type=char(4000) update=yes updatewhereclause=yes name=ora_stmnt dbname="sql_changes_det.ora_stmnt" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"sql_changes_det~" ) COLUMN(NAME=~"sql_changes_det.tran_id~") COLUMN(NAME=~"sql_changes_det.line_no~") COLUMN(NAME=~"sql_changes_det.ora_stmnt~")WHERE( EXP1 =~"sql_changes_det.tran_id~" OP =~"=~" EXP2 =~":tran_id~" LOGIC =~"and~" ) WHERE( EXP1 =~"sql_changes_det.line_no~" OP =~"=~" EXP2 =~":line_no~" ) ) ARG(NAME = ~"tran_id~" TYPE = string) ARG(NAME = ~"line_no~" TYPE = number) " update="sql_changes_det" updatewhere=1 updatekeyinplace=no arguments=(("tran_id", string),("line_no", number)) )
groupbox(band=detail text="Others"border="2" color="0" x="83" y="233" height="123" width="421" name=gb_2 visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
groupbox(band=detail text="Basic"border="2" color="0" x="80" y="44" height="138" width="561" 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" )
text(band=detail alignment="1" text="Transaction ID:" border="2" color="0" x="128" y="275" height="16" width="87" html.valueishtml="0" name=tran_id_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=1 alignment="0" tabsequence=32766 border="2" color="0" x="219" y="275" height="19" width="66" format="[general]" html.valueishtml="0" name=tran_id visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Line No:" border="2" color="0" x="151" y="309" height="16" width="64" html.valueishtml="0" name=line_no_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=2 alignment="1" tabsequence=32766 border="2" color="0" x="219" y="309" height="19" width="72" format="[general]" html.valueishtml="0" name=line_no visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="SQL To Execute:" border="2" color="0" x="153" y="81" height="16" width="100" html.valueishtml="0" name=ora_stmnt_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=3 alignment="0" tabsequence=10 border="2" color="0" x="257" y="79" height="86" width="191" format="[general]" html.valueishtml="0" name=ora_stmnt visible="1" edit.limit=4000 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" )
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
This diff is collapsed.
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