Commit d9666d65 authored by agaikwad's avatar agaikwad

Request_id -M14BSUN003, Added Validation code for column event_no and remarks


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98292 ce508802-f39f-4f6c-b175-0d175dae99d5
parent be531d70
......@@ -141,7 +141,7 @@ public class GenWOTrackStatusPrc extends ProcessEJB implements GenWOTrackStatusP
workOrder=genericUtility.getColumnValue("work_order", dom);
eventNo=checkNull(genericUtility.getColumnValue("event_no", dom));
eventNo=genericUtility.getColumnValue("event_no", dom);
activitySet=genericUtility.getColumnValue("activity_set", dom);
remarks=genericUtility.getColumnValue("remarks", dom);
System.out.println("workOrder!!! :"+workOrder);
......@@ -209,14 +209,30 @@ public class GenWOTrackStatusPrc extends ProcessEJB implements GenWOTrackStatusP
}
}
/*----------------added by Abhijit dated 15-JULY-2015 ------------------------------*/
if(eventNo == null)
{
System.out.println("Event No Column are mandatory !!");
errString = itmDBAccessEJB.getErrorString("","VMEMTEVTNO","","",conn);
return errString;
}
if(remarks == null )
{
System.out.println("Remarkcolumn are mandatory !!");
errString = itmDBAccessEJB.getErrorString("","VMNULREMRK","","",conn);
return errString;
}
/*-----------------added by mahendra dated 29-DEC-2014 ------------------------------*/
System.out.println("eventNo :"+eventNo);
System.out.println("workOrder :"+workOrder);
System.out.println("Trackset :"+activitySet);
sql = "select count(*) from wo_track_status where event_no= ? and REF_ID=?";
sql = "select count(*) from wo_track_status where event_no= ? and REF_ID=? and track_set =?"; // / Add activity set for Duplicate Error Message Abhijit Gaikwad 15/JULY/15
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,eventNo);
pstmt.setString(2,workOrder);
pstmt.setString(3,activitySet);
rs = pstmt.executeQuery();
if(rs.next())
{
......
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