Commit eb810cd7 authored by sghate's avatar sghate

Updated component for Relieve Date and status change changes.

ReportToChangeIC.java
ReportToChangePrc.java




git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@215205 ce508802-f39f-4f6c-b175-0d175dae99d5
parent dfe0e7f8
......@@ -128,7 +128,10 @@ public class ReportToChangePrc extends ProcessEJB //implements ReportToChangePrc
sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
ldTranDateStr = sdf.format(new java.util.Date());
if(ldTranDateStr != null && ldTranDateStr.trim().length() > 0) //Added by Shital on 08/01/2020
{
ldTranDate = Timestamp.valueOf(genericUtility.getValidDateString(ldTranDateStr,genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0");
}
System.out.println("ldToday ["+ldToday+"] \t ldTranDate ["+ldTranDate+"]");
userId = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode"));
......@@ -148,6 +151,7 @@ public class ReportToChangePrc extends ProcessEJB //implements ReportToChangePrc
{
mkeyStr = checkNull(rs.getString("mkeystr"));
}
System.out.println("mkeystr:::::::::::"+mkeyStr); //Added by Shital on 08/01/2020
if(rs != null)
{
rs.close();
......@@ -161,7 +165,6 @@ public class ReportToChangePrc extends ProcessEJB //implements ReportToChangePrc
}
System.out.println("mkeyStr:["+mkeyStr+"]");
lsReportingType = genericUtility.getColumnValue("reporting_type", headerDom);
lsSiteCodeFr = genericUtility.getColumnValue("site_code__fr", headerDom);
lsSiteCodeTo = genericUtility.getColumnValue("site_code__to", headerDom);
......@@ -191,8 +194,6 @@ public class ReportToChangePrc extends ProcessEJB //implements ReportToChangePrc
System.out.println("emp_code__fr ["+lsEmpCode+"] \t emp_code__to ["+lsReportTo+"] "
+ "\t emp_code__admin_fr ["+lsEmpCode+"] \t emp_code__admin_to ["+lsReportTo+"]");
sql= "SELECT EMPLOYEE.EMP_CODE, "
+ "EMPLOYEE.REPORT_TO, "
+ "EMPLOYEE.REPORT_TO__ADMIN "
......@@ -353,7 +354,8 @@ public class ReportToChangePrc extends ProcessEJB //implements ReportToChangePrc
public String gbfPostLogic(String tranId, int aiCommit , String xtraParams,Connection conn) throws ITMException
{
String lsTranid = "" , lsConfirm = "" , lsTranType = "" , lsReportToN = "", lsReportToAdminN = "" ,lsEmpCode = "";
Timestamp ldToday = null;
//Timestamp ldToday = null;
java.sql.Timestamp ldToday = null;
String sql = "" , sql1 = "";
String userId = "" , chgTerm = "" , loginEmpCode = "", errString = "";
PreparedStatement pstmt = null , pstmt1 = null;
......@@ -361,7 +363,7 @@ public class ReportToChangePrc extends ProcessEJB //implements ReportToChangePrc
try
{
System.out.println(" ************** Inside Post Logic Method ****************");
System.out.println("************** Inside Post Logic Method ****************");
userId = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode"));
chgTerm = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "termId"));
......
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