Commit 64ae01f8 authored by Ajit Deshmukh's avatar Ajit Deshmukh

Resolved the issue reported by the QC regarding wrong validation message on...

Resolved the issue reported by the QC regarding wrong validation message on click of Release To Pilot button
parent 3d30d5af
......@@ -129,18 +129,54 @@ public class ManageSqlReleaseFromQC extends ActionHandlerEJB {
String qcConfirmed = "";
String tranIdReference = "";
String getAprvLvlSql = "select confirmed,tran_id__ref from sql_changes where tran_id = ? and exec_rights = 'Q'";
String getAprvLvlSql = "select confirmed from sql_changes where tran_id = ? and exec_rights = 'Q'";
PreparedStatement getAprvLvlPs = conn.prepareStatement(getAprvLvlSql);
getAprvLvlPs.setString(1, tranID);
ResultSet getAprvLvlRs = getAprvLvlPs.executeQuery();
while (getAprvLvlRs.next()) {
qcConfirmed = checkNull(getAprvLvlRs.getString("confirmed"));
tranIdReference = checkNull(getAprvLvlRs.getString("tran_id__ref"));
}
String getTranIdRef = "select tran_id__ref, exec_rights from sql_changes where tran_id = ?";
PreparedStatement getTranIdRefPs = conn.prepareStatement(getTranIdRef);
getTranIdRefPs.setString(1, tranID);
ResultSet getTranIdRefPsRs = getTranIdRefPs.executeQuery();
while (getTranIdRefPsRs.next()) {
tranIdReference = checkNull(getTranIdRefPsRs.getString("tran_id__ref"));
execRights = checkNull(getTranIdRefPsRs.getString("exec_rights"));
}
BaseLogger.log("3", null, null, "tranID::: " + tranID);
String tranIdRedForAll = "";
int countOfAllTran = 0;
String checkTranIdRefSqlForAll = "select exec_rights from sql_changes where tran_id = ?";
PreparedStatement checkTranIdRefForAllPs = conn.prepareStatement(checkTranIdRefSqlForAll);
checkTranIdRefForAllPs.setString(1, tranID);
ResultSet checkTranIdRefForAllRs = checkTranIdRefForAllPs.executeQuery();
while (checkTranIdRefForAllRs.next()) {
executionRights = checkNull(checkTranIdRefForAllRs.getString("exec_rights"));
}
BaseLogger.log("3", null, null, " :: executionRights:: " + executionRights);
if (checkTranIdRefForAllPs != null) {
checkTranIdRefForAllPs.close();
}
if (checkTranIdRefForAllRs != null) {
checkTranIdRefForAllRs.close();
}
if (!executionRights.trim().equalsIgnoreCase("Q")) {
return itmDBAccessEJB.getErrorString("", "MSQLARRS", "", "", conn);
}
tranID = tranIdReference;
if (!qcConfirmed.trim().equalsIgnoreCase("Y")) {
return itmDBAccessEJB.getErrorString("", "QCNOTC", "", "", conn);
}
String msqlDetSql = "SELECT TRAN_ID, TRAN_DATE, REQ_ID, REQ_DATE, CUST_CODE, EMP_CODE__GIVEN, EMP_CODE__MERGE, "
......
......@@ -325,3 +325,7 @@ update system_service_args set ARG_VALUE = 'ibase.webitm.ejb.sys.ManageSqlConf'
update system_service_args set ARG_VALUE = 'ibase.webitm.ejb.sys.ManageSqlConf' where service_code in ('pre_cancel_exec_log','prcm_sql_exec_log','prcm_headerdetail') and line_no = 2;
update system_events set COMP_NAME = 'ibase.webitm.ejb.sys.ManageSqlConf' where service_code in ('pre_cancel_exec_log','prcm_sql_exec_log');
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
('MSQLARRS','Transaction already released on the respective server.','The transaction has already been released on the respective server.','E','Y',null,null,null,to_date('25-DEC-13','DD-MON-RR'),'BASE ','BASE',null,null);
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