Commit 58f93b93 authored by ysawant's avatar ysawant

*Updated shift pattern component

w_shift_pattern.sql
ShiftPattern.java


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@206136 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 89cc07ed
......@@ -89,3 +89,15 @@ update obj_actions set image = 'ibase/resource/objaction/exprtExl.svg' where obj
update itm2menu set icon_path = 'shift-pattern.png', CLOSE_ICON = 'shift-patternwht.png' where win_name = 'w_shift_pattern';
--------------------------------------------------Added on Yashwant 22-08-2019[End]
--------------------------------------------------Added on Yashwant 27-08-2019[Start]
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 ('VTPCCANT ','Pattern Code Cant null','Pattern Code can not insert null.','E','Y',null,null,null,to_date('24-03-06','DD-MM-RR'),'BASE ','01BASE215',null,null);
delete from SHIFT_PATTERN WHERE SITE_CODE = 'S0001' and PATTERN_CODE='P0002 ';
--------------------------------------------------Added on Yashwant 27-08-2019[End]
......@@ -192,7 +192,7 @@ public class ShiftPattern extends ValidatorEJB implements ShiftPatternLocal,Shif
+"where shift = '"+dayslist2+"' "
+"And site_code = '"+site_code+"' " ;*/
sql="select count(*) from workshft where shift = ? And site_code =? ";
sql="select count(*) as count from workshft where shift = ? And site_code =? ";
pstmt=conn.prepareStatement(sql);
pstmt.setString(1, dayslist2);
pstmt.setString(2, site_code);
......@@ -204,7 +204,7 @@ public class ShiftPattern extends ValidatorEJB implements ShiftPatternLocal,Shif
if(rs.next())
{
count = rs.getInt(1);
count = rs.getInt("count");
}
//Modified by Yashwant to close the PreparedStatements/resultsets in finally block on 09/07/2019[Start]
if (rs != 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