Added by Arunkumar for dropdown

parent b413a7bd
<%@page import="ibase.scheduler.servlet.ScheduleInfoServlet"%>
<%@page import="ibase.scheduler.ejb.ScheduleInfoEJB"%>
<%@ taglib uri = "http://java.sun.com/jsp/jstl/core" prefix = "c" %>
<% BaseLogger.log("3",null,null,"\t\tXXXXXXXXXXXX RegisterNewSchedule.jsp XXXXXXXXXXXXXXXX");%>
<%@page import="java.util.Date,java.io.*,ibase.utility.CommonConstants,java.util.*,java.net.*,java.lang.*,ibase.scheduler.ejb.ScheduleInfoEJB,java.net.NetworkInterface,java.net.InterfaceAddress.*"%>
<%@page import="ibase.scheduler.bean.*,ibase.utility.UserInfoBean,ibase.utility.*,ibase.scheduler.ejb.SchedulerEJB"%>
<%@page errorPage="Err.jsp"%>
<%@page import="org.w3c.dom.Document,javax.xml.parsers.DocumentBuilder,javax.xml.parsers.DocumentBuilderFactory" %>
<%
ibase.utility.UserInfoBean userInfo = (ibase.utility.UserInfoBean)session.getAttribute("USER_INFO");
ScheduleInfoEJB scheduleInfoEJB=new ScheduleInfoEJB();
//Changed by Monif on 12/8/2008.[ WS89NOV392|| For Supporting RIA ]Start
String referer = request.getRequestURL().toString();
referer = referer.substring( referer.indexOf( "ibase" ) - 1 );
referer = referer +"?"+(String)request.getQueryString();
//Changed by Monif on 12/8/2008.[ WS89NOV392 ||For Supporting RIA ]End
BaseLogger.log("3",null,null,"referer-->["+userInfo+"]");
if( userInfo == null )
{
%>
<jsp:forward page="/jsp/DirectAccess.jsp">
<jsp:param name="REFERER" value="<%=referer%>"/>
</jsp:forward>
<%
}
%>
<HTML><HEAD><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="/ibase/webitm/js/jquery-1.10.2.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery-ui-1.10.4.custom.min.js"></script>
<SCRIPT language="Javascript" src="../js/ScheduleRegister.js"></SCRIPT>
<SCRIPT language="Javascript" src="../js/date-picker.js"></SCRIPT>
<SCRIPT language="Javascript" src="../js/ActivityListing.js"></SCRIPT>
<SCRIPT language="Javascript" src="../js/JavaScriptUtil.js"></SCRIPT>
<SCRIPT language="Javascript" src="../js/Parsers.js"></SCRIPT>
<SCRIPT language="Javascript" src="../js/InputMask.js"></SCRIPT>
<SCRIPT>
user = '<%= userInfo.getPropValue("loginCode") %>';
pageContx ='<%= request.hashCode()%>';
userInfo = '<%= userInfo.toString()%>';
</SCRIPT>
<link href="/ibase/webitm/css/theme/galaxy-theme.css" type="text/css" rel="stylesheet"></link>
<link type="text/css" rel="stylesheet" href="/ibase/webitm/css/jquery-ui-1.10.4.custom.min.css"/>
<link type="text/css" rel="stylesheet" href="../css/ScheduleRegister.css"/>
<style type="text/css">
</style>
<%
String schId = ( String ) request.getParameter("DB_ID");
String ownerType = ( String ) request.getParameter("OWNER_TYPE");
String owner = ( String ) request.getParameter("OWNER");
String loginCode = userInfo.getLoginCode();
String editFlag = ( String ) request.getParameter("EDIT_FLAG");
BaseLogger.log("3",null,null,"schId....... :: === > "+schId);
BaseLogger.log("3",null,null,"owner....... :: === > "+owner);
BaseLogger.log("3",null,null,"ownerType....... :: === > "+ownerType);
BaseLogger.log("3",null,null,"loginCode....... :: === > "+loginCode);
%>
<body onload="buildMask();loadAdvOption()" class="">
<SPAN name="calender" id="calender" class="calender-Span" style="z-index:2;visibility:hidden;width:30;height:30;border:none;">
<div id = "calDiv" title="Click to see calender" onclick="show_calendar();" class="calender-Btn" border="0" z-index="1"></div>
</SPAN>
<div id='actListContainer'></div>
<div id="overlay"></div>
<DIV name="scheduleDiv" id="scheduleDiv" align="left" class="scheduleDiv" style = "floating : left;">
<TABLE width="97%" border ="0">
<TR><!-- <TD>&nbsp;</TD> -->
<td id="statusTD" style = "display:none;"><table><tr>
<td class="" style="font-size: 15px;">Status :
<div name="SCHEDULE_NAME_STATUS" id="SCHEDULE_NAME_STATUS" style="margin-left: 0px;border:0px;font-size: 14px;display: inline-block;"></div> was
<input type="text" class="" name="STATUS" id="STATUS" readonly="true" style="margin-left: 0px;border:0px;color:red;font-size: 14px;"/> </td>
</tr>
</table>
</td>
<TD class="td_rightAlign">
<input type="button" id="abort" name="abort" class="buttonSize1; button" value="Abort" onClick="self.close();">
<input type="button" id="register" name="action" class="buttonSize1; button" value="Register" onClick="if(validateMandatoryFields())verifyDate('register');">
<INPUT TYPE="button" id="modify" name="action" class="buttonSize2; button" VALUE ="Save" onClick="if(validateMandatoryFields())modifySchdl('<%= schId %>');"></td>
</TR>
</TABLE>
</DIV>
<DIV id="ContainerDiv"align="center" style = "margin-top:5px; border-top: #6cf 3px solid;border-left: #E7E1E1 1px solid;border-right: #E7E1E1 1px solid;border-bottom: #E7E1E1 1px solid;padding-bottom: 70px;">
<DIV id="displayDiv" class="displayDiv" style="width: 92%;">
<span STYLE="position:relative;">
<table border="0" style = "">
<tbody>
<tr>
<td class="signText" align="left">
<script type="text/javascript" language="JavaScript"></script>
<link href="" rel="stylesheet" type="text/css" id="userThemeLink">
<style type="text/css">
.tableClass{margin-left:0px;margin-top:0px}
.header_td{border:inset 0;background:#FFCCCC;font-family:verdana;font-size:9pt}
.input_editable{border:inset 2;color:#102132;background:#D7E5F9;text-align:left;font-family:verdana;font-size:9pt}
.input_num_editable{border:inset 2;color:#102132;background:#D7E5F9;text-align:right;font-family:verdana;font-size:9pt}
.td_leftAlign{text-align:left;font-family:verdana;font-size:9pt}
.td_rightAlign{text-align:right;font-family:verdana;font-size:9pt}
</style>
<form name="Schedule_Details" style="margin-bottom: 0px;"><div id="ContainerDiv"><div class="displayDiv" id="displayDiv" style="margin-top: 12;"><span style="position:relative;">
<table border="0" class="" style = "">
<tbody>
<tr style="height: 45px;">
<td class="td_leftAlign">
<div class="column1">
<input type="text" required class="gwtTextField" name="SCHEDULE_NAME" id="SCHEDULE_NAME"/>
<label class="gwtLabelflicker">Schedule Name</label>
</div>
<div class="column1">
<input type="text" required class="gwtTextField" name="OBJECT_NAME" id="OBJECT_NAME"/>
<label class="gwtLabelflicker">Schedule Description</label>
</div>
</td>
</tr>
<!-- >Changed by Arunkumar on 08-02-2023 [Added Host Ip Address filed in this jsp page] -->
<tr style="height: 45px;>
<td class="td_leftAlign">
<div class="column1">
<%-- Dropdown Added by Arunkumar Yadav on [13/02/23] --%>
<label style="margin-top: -35px;" color: #15A9F3;margin-left: -14px;" class="gwtLabelflicker">Choose a start time:</label>
<select name="schedule" id="sch" class="gwtTextField">
<option value="add_server_start_time" tabindex="1" class="gwtTextField" style=" color:black;" name="ownerType" id="ownerType">Add a server start time</option>
<option value="add_specific" tabindex="1" class="gwtTextField" style=" color:black;" name="ownerType" id="ownerType">Add specific </option>
</select>
</td>
</tr>
<tr style="height: 45px;">
<td class="td_leftAlign">
<div class="column1">
<input type="text" required class="gwtTextField date" name="START_DATE" id="START_DATE" placeholder="" onfocus="showPlaceHolder(this);showCalendarIcon(this);" onfocusout="hidePlaceHolder(this);hideCalendarIcon(this);"/>
<label class="gwtLabelflicker">Start Date</label>
</div>
<div class="column1">
<input type="text" required style="" class="gwtTextField" name="START_TIME" id="START_TIME" placeholder="" onfocus="showPlaceHolder(this);" onfocusout="hidePlaceHolder(this);"/>
<label class="gwtLabelflicker">Start Time</label>
</div>
</td>
<!-- <td class="td_leftAlign">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="100%" colspan="">
<div class="column1">
<table border = "0">
<td border = "0" width = "90%">
<input type="text" required class="gwtTextField date" name="START_DATE" id="START_DATE"/>
<label class="gwtLabelflicker">Start Date(DD-MM-YYYY)</label>
</td>
<td>
</div>
<div class="column2" style="width:120px;">
<img src="../images/calender.png" width="" height="21" onClick="show_calendar()">
<span style="font-size:11px;width:140px;">(DD-MM-YYYY)</span>
</td>
</table>
</div>
<div class="column1">
<input type="text" required style="" class="gwtTextField" name="START_TIME" id="START_TIME"/>
<label class="gwtLabelflicker">Start Time (HH:mm)</label>
</div>
</td>
</tr>
</tbody>
</table>
</td> -->
</tr>
<!-- Added By Ravindra C on 17-03-21 for Scheduler List related implementation Start -->
<tr style="height: 45px;">
<td class="td_leftAlign">
<div class="column1">
<%
if ( "E".equals( editFlag ) && ! loginCode.equals( owner ) )
{
%>
<select tabindex="1" class="gwtTextField" style="color:black; pointer-events: none; opacity: 0.5;" name="ownerType" id="ownerType" >
<%
}
else
{
%>
<select tabindex="1" class="gwtTextField" style=" color:black;" name="ownerType" id="ownerType" >
<%
}
%>
<%
if ( "P".equals( ownerType ) )
{
%>
<option value="P" selected>Private</option>
<option value="U">Public</option>
<%
}
else
{
%>
<option value="U" selected>Public</option>
<option value="P">Private</option>
<%
}
%>
</select>
<label style="margin-top:-20px; color:#15A9F3;" class="gwtLabelflicker">Owner Type</label>
</div>
</td>
</tr>
<!-- Added By Ravindra C on 17-03-21 for Scheduler List related implementation End -->
<tr style="height: 45px;">
<td class="td_leftAlign">
<div class="column1">
<select tabindex="1" class="gwtTextField" style=" color:black;" onChange="selectIntervalID()" name="intervalID" id="intervalID">
<OPTION VALUE ="V" Selected ></OPTION>
<OPTION VALUE ="H">Hourly</OPTION>
<OPTION VALUE ="D">Daily</OPTION>
<OPTION VALUE ="W">Weekly</OPTION>
<OPTION VALUE ="M">Monthly</OPTION>
<OPTION VALUE ="F">Fortnight</OPTION>
<OPTION VALUE ="E">Every so many Hours</OPTION>
<OPTION VALUE ="Once">Once</OPTION>
<OPTION VALUE ="L">Last_Day_Of_Month</OPTION>
<option value="S" >First_Day_Of_Month</option>
<option value="O" >On_Day_Of_Month</option>
<!-- Added By Shubham on 04/04/2021 ['Fixed Time of Day' related implementation] -->
<option value="FH" >Fixed Time of Day </option>
</select>
<label style="margin-top:-20px; color:#15A9F3;" class="gwtLabelflicker">Interval*</label>
</div>
<div class="column1">
<DIV id="IntervalDiv" >
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="44%">
<input type="text" required style="" class="gwtTextField" name="INTERVAL" id="INTERVAL" /> <!-- onBlur="isNumeric(this);" -->
<label class="gwtLabelflicker" id = "intervalLabel">N= (Hours)</label></td>
</tr>
</table>
</DIV>
</div>
</td>
</tr>
<!-- <tr>
<td class="td_leftAlign"><div class="column1">
<input type="text" required class="textReadOnly gwtTextField" name="STATUS" id="STATUS" readonly="true" style="margin-left: 15px;"/>
<label class="labelflickerFixPosition">Status</label></div></td>
</tr> -->
</tbody>
</table>
</span>
</div>
</div>
</form>
</td>
</tr>
</tbody>
</table>
</div>
<DIV id="ContainerDiv" align = "left" style = "width: 92%;">
<SPAN style="font:12;position:relative;cursor:hand;" onClick="advOptTabSelected()"><B style="top:20;color: #383232;margin-left: 17;font-size:14px;"><img id="genImage" src="../images/down.gif" height="8">Schedule Exception</B></SPAN>
<DIV id="displayAdvDiv" class="displayAdvDiv" style="display:none;margin-left: 0px;">
<SPAN STYLE="position:relative;top:3">
<TABLE border="0" style = "margin-top: 13;">
<tr style="height: 45px;">
<td class="td_leftAlign">
<div class="column1">
<select tabindex="1" class="gwtTextField" style="color: black;" name="EXCLUDE_START_DAY" id="EXCLUDE_START_DAY">
<OPTION VALUE=" " Selected></OPTION>
<OPTION VALUE="Sunday">Sunday</OPTION>
<OPTION VALUE="Monday">Monday</OPTION>
<OPTION VALUE="Tuesday">Tuesday</OPTION>
<OPTION VALUE="Wednesday">Wednesday</OPTION>
<OPTION VALUE="Thursday">Thursday</OPTION>
<OPTION VALUE="Friday">Friday</OPTION>
<OPTION VALUE="Saturday">Saturday</OPTION>
</SELECT>
<label style="margin-top: -22px; color: #15A9F3;" class="gwtLabelflicker">Exclude Start Day</label></div>
<div class="column1">
<!-- <table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="56%"> -->
<input type="text" required class="gwtTextField" style="" name="EXCLUDE_START_TIME" id="EXCLUDE_START_TIME" placeholder="" onfocus="showPlaceHolder(this);" onfocusout="hidePlaceHolder(this);"/>
<label class="gwtLabelflicker">Exclude Start Time</label>
<!-- </td>
</tr>
</table> --></div></td>
</tr>
<tr style="height: 45px;">
<td class="td_leftAlign">
<div class="column1">
<select tabindex="1" class="gwtTextField" style="color: black;" name="EXCLUDE_END_DAY" id="EXCLUDE_END_DAY">
<OPTION VALUE=" " Selected></OPTION>
<OPTION VALUE="Sunday">Sunday</OPTION>
<OPTION VALUE="Monday">Monday</OPTION>
<OPTION VALUE="Tuesday">Tuesday</OPTION>
<OPTION VALUE="Wednesday">Wednesday</OPTION>
<OPTION VALUE="Thursday">Thursday</OPTION>
<OPTION VALUE="Friday">Friday</OPTION>
<OPTION VALUE="Saturday">Saturday</OPTION>
</SELECT>
<label style="margin-top: -22px; color: #15A9F3;" class="gwtLabelflicker">Exclude End Day</label></div>
<div class="column1">
<input type="text" required class="gwtTextField" style="" name="EXCLUDE_END_TIME" id="EXCLUDE_END_TIME" placeholder="" onfocus="showPlaceHolder(this);" onfocusout="hidePlaceHolder(this);"/>
<label class="gwtLabelflicker">Exclude End Time</label></div></td>
</tr>
</TABLE>
</SPAN>
</DIV>
</DIV>
<TABLE STYLE= "position:relative;top:30;left: 14;width: 92%;" id="actionActivity">
<TR>
<TD class="td_leftAlign" colspan="2">
<div class="column1">
<!-- <SELECT tabindex="1" name="schdlActivities" id="schdlActivities" class="gwtTextField Parameter" style="top: 0px;left:-17;color: black;" onChange='OpenActivityPopup(this.value)'> -->
<SELECT tabindex="1" name="schdlActivities" id="schdlActivities" class="gwtTextField Parameter" style="top: -15px;left:-17;color: black;" onChange = "checkActivityParam(this);">
<OPTION VALUE=" " Selected></OPTION>
<%
ibase.utility.ApplicationMetadata appMetaData = new ibase.utility.ApplicationMetadata();
ArrayList appParamsList = appMetaData.getSchedulableActivities();
int appLen = appParamsList.size();
BaseLogger.log("3",null,null,"appLen :: === > "+appLen);
for ( int propCtr = 0 ; propCtr <appLen; propCtr++)
{
ApplicationParams appParams = (ApplicationParams)appParamsList.get(propCtr);
BaseLogger.log("3",null,null,"getApplnName :: === > "+(String)appParams.getApplnName());
%>
<OPTION VALUE = "<%=(String)appParams.getApplnName()%>"><%=(String)appParams.getApplnName()%></OPTION>
<%
BaseLogger.log("3",null,null,"----------------"+(ArrayList)appParams.getParamList());
}
for ( int propCtr = 0 ;propCtr <appLen;propCtr++)
{
ApplicationParams appParams = (ApplicationParams)appParamsList.get(propCtr);
%>
<script>
var activityProperty = new Array();
activityProperty[0]= '<%=(String)appParams.getApplnName()%>'
activityProperty[1]= '<%=(String)appParams.getCompName()%>'
activityProperty[2]= '<%=(String)appParams.getMethodName()%>'
activityProperty[3]= '<%=(String)appParams.isSchedulable()%>'
activityProperty[4]= '<%=(String)appParams.getInputEditor()%>'
activityProperty[5]= '<%=(String)appParams.getApplnType()%>'
activityProperty[6]= '<%=(String)appParams.getLookupName()%>'
//alert("--------activityProperty--------"+activityProperty);
window.opener.allSchdlActivities[parseInt('<%=propCtr%>')] = new schdlObj(activityProperty)
</script>
<%
}
%>
</SELECT>
<label style="margin-top: -35px; color: #15A9F3;margin-left: -14px; " class="gwtLabelflicker">Select Activity</label>
</div>
<!-- Added By Pankaj T. on 14-11-19 [If BUSINESS EVENT execution result true then execute scheduler else not. Suppose if BUSINESS EVENT not define then execute like currently] start -->
<div class="column1">
<SELECT tabindex="1" name="BUSI_EVENT" id="BUSI_EVENT" class="gwtTextField Parameter" style="top: -15px;left:-17;color: black;" onChange = "">
<OPTION VALUE=" " Selected></OPTION>
<%
SchedulerBean schedulerBean = new SchedulerBean();
ArrayList<String> busiEventList = schedulerBean.getBusinessEventList( userInfo );
System.out.println("RegisterNewSchedule.jsp busiEventList:["+busiEventList+"]");
if( busiEventList != null )
{
for( int i = 0; i < busiEventList.size(); i++ )
{
%>
<OPTION VALUE = "<%=(String)busiEventList.get(i)%>"><%=(String)busiEventList.get(i)%></OPTION>
<%
}
}
%>
</SELECT>
<label style="margin-top: -35px; color: #15A9F3;margin-left: -14px; " class="gwtLabelflicker">Select Business Event</label>
</div>
<!-- Added By Pankaj T. on 14-11-19 [If BUSINESS EVENT execution result true then execute scheduler else not. Suppose if BUSINESS EVENT not define then execute like currently] end -->
</TD>
</TR>
<TR>
<TD class="td_leftAlign" colspan="2">
<div class="" style="width:26%">
<span id= "actparamspan" class = "" onclick="addActivityParam(this);" style="">
<img id = "actparamimg" src="/ibase/scheduler/images/plus_icon.png" style="margin-top: 7px; "/>
<label id = "activityparmlbl" style="color: #15A9F3;margin-top: -16px;margin-left: 6px;white-space: nowrap;" class="gwtLabelflicker" >
Add Activity Param
</label>
</span>
</div>
</TD>
</TR>
<!-- <TR style = "display:none;"> -->
<TR style = "display:none;">
<TD class="td_leftAlign" colspan="2">
<div id="ParameterDiv" class=""">
<!-- <input type="text" required="" class="textReadOnly gwtTextField Parameter" readonly="true" style="width:95%;position:relative;left:-14;top:10" name="actArg" id="actArg"></input> -->
<textarea name="actArg" id="actArg" readonly="true" required="" class="" style="border: 1px solid #ccc;width:95%;height:50px;position:relative;left:-2;top:17;color: #999;" name="actArg" id="actArg"></textarea>
<label class="gwtLabelflicker" style="color: #15A9F3;margin-left: -16px;margin-top:-50">Parameter</label></div>
</TD>
</TR>
<tr><TD></TD><TD></TD></tr>
</TABLE>
</SPAN>
</DIV>
</DIV>
</body>
</head>
<%
String objName = ( String ) request.getParameter("OBJ_NAME");
String formNo = ( String ) request.getParameter("FORM_NO");
String scheduleId = ( String ) request.getParameter("DB_ID");
BaseLogger.log("3",null,null,"objName== "+objName+", formNo== "+formNo+", scheduleId== "+scheduleId+", editFlag == "+editFlag);
HashMap scheduleDetailMap = new HashMap();
//String scheduleDetailMap = "";
String addScheduleDetail = "";
String scheduleName = null;
String scheduleType = null;
String startDate = null;
String startTime = null;
String scheduleObjId = null;
String scheduleObjName = null;
String scheduleObjType = null;
String serverIP = null;
String interval = null;
String excludeStartTime = null;
String excludeEndTime = null;
String excludeStartDay = null;
String excludeEndDay = null;
String status = null;
SchedulerBean schedulerbean=new SchedulerBean();
if ("E".equalsIgnoreCase(editFlag))
{
//scheduleDetailMap = schedulerbean.getAllScheduleDetails(scheduleId);
scheduleDetailMap = schedulerbean.getAllScheduleDetails(scheduleId,userInfo);// Changed by Sachin Satre on [08-Feb-19]
BaseLogger.log("3",null,null,"scheduleDetailMap == "+scheduleDetailMap);
Iterator itr = scheduleDetailMap.keySet().iterator();
while(itr.hasNext())
{
Object key = itr.next();
String value = "";//Added By Pankaj T. on 14-11-19 [If BUSINESS EVENT execution result true then execute scheduler else not. Suppose if BUSINESS EVENT not define then execute like currently] - start
BaseLogger.log("3",null,null,"key =["+key+"]");
if( scheduleDetailMap.get(key) != null)
{
// String scheduleDetailList =(String)scheduleDetailMap.get(key);
//Added By Pankaj T. on 14-11-19 [If BUSINESS EVENT execution result true then execute scheduler else not. Suppose if BUSINESS EVENT not define then execute like currently] - start
BaseLogger.log("3",null,null,"value =["+scheduleDetailMap.get(key)+"]");
value = (String) scheduleDetailMap.get(key);
if( "actArg".equals(key) )
{
if( value != null && value.indexOf("<application_context>") != -1)
{
String str1 = value.substring(0, value.indexOf("<application_context>")+21);
StringBuffer appCtxBuff = new StringBuffer(value.substring(value.indexOf("<application_context>")+21, value.indexOf("</application_context>")));
String str3 = value.substring(value.indexOf("</application_context>"));
int indx = appCtxBuff.indexOf("\\");
while (indx!=-1)
{
appCtxBuff = appCtxBuff.replace(indx,indx+1,"/");
indx = appCtxBuff.indexOf("\\");
}
indx = appCtxBuff.indexOf("/");
while (indx!=-1)
{
appCtxBuff = appCtxBuff.replace(indx,indx+1,"\\\\");
indx = appCtxBuff.indexOf("/");
}
value = str1+appCtxBuff.toString()+str3;
BaseLogger.log("3",null,null,"value after=["+value+"]");
}
}
//Added By Pankaj T. on 14-11-19 [If BUSINESS EVENT execution result true then execute scheduler else not. Suppose if BUSINESS EVENT not define then execute like currently] - end
%>
<script>
document.getElementById("modify").style.display = "none";
document.getElementById("IntervalDiv").style.visibility="hidden";
</script>
<script>
var key = '<%=key%>';
var value = '<%=value%>';
//alert ("key :: ["+key +"] value :: ["+ value+"]");
console.log("key :: ["+key +"] value :: ["+ value+"]");
if(document.getElementById(key) != null && document.getElementById(""+key) != undefined )
{
//alert ("scheduleDetailMap.get(key) :: ");
//document.getElementById(key).value = value;
if(key == "intervalID")
{
//Changed By Shubham on 04/04/2021 ['Fixed Time of Day' related implementation]
//if(!isNaN(value)&& value.length > 0 )
if( value.length > 0 )
{
if( value.indexOf( "," ) != -1 )
{
document.getElementById(key).value = "FH";
document.getElementById("INTERVAL").value = value;
document.getElementById("IntervalDiv").style.visibility="visible";
}
else if( ! isNaN(value) )
{
document.getElementById(key).value = "E";
document.getElementById("INTERVAL").value = value;
document.getElementById("IntervalDiv").style.visibility="visible";
}
else
{
document.getElementById(key).value = value;
document.getElementById("IntervalDiv").style.visibility="hidden";
}
}
else
{
document.getElementById(key).value = value;
document.getElementById("IntervalDiv").style.visibility="hidden";
}
}
else if(key == "SCHEDULE_NAME")
{
document.getElementById(key).value = value;
document.getElementById("SCHEDULE_NAME_STATUS").innerHTML = value;
}
else
{
document.getElementById(key).value = value;
}
}
document.getElementById("register").style.display = "none";
document.getElementById("statusTD").style.display = "block";
</script>
<%
}
}
}
else
{
%>
<script>
document.getElementById("modify").style.display = "none";
document.getElementById("IntervalDiv").style.visibility="hidden";
</script>
<%} %>
</HEAD>
</HTML>
\ No newline at end of file
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