<!--#include file="../../include/jschedule/schedule.asp"-->
<%
 'jschedule/schedule/propTmpUpd.asp (Last Update 2001.05.08)
'-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
'   ESMPRO/JMSS WebClient (JSchedule) Version 6.0
'   Copyright (C) NEC Corporation/NEC Soft, Ltd. 2001
'   All rights reserved
'-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
'**Start Encode**
    Dim obj

    '*** p[^̎擾(from propRepeat.asp) ***
    Dim nHour
    Dim nMinute
    Dim nSecond
    Dim nEndType
    Dim nEndHour
    Dim nEndMinute
    Dim nEndSecond
    Dim nEndCount
    Dim nWatchFlag
    If UCase(Request.QueryString("szRet")) = "OK" Then
        Set obj = Session("jsch").SchFreq.FreqTimePage
        obj.Hour      = Request.QueryString("nHour")
        obj.Minute    = Request.QueryString("nMinute")
        obj.Second    = Request.QueryString("nSecond")
        obj.EndType   = Request.QueryString("nEndType")
        obj.EndHour   = Request.QueryString("nEndHour")
        obj.EndMinute = Request.QueryString("nEndMinute")
        obj.EndSecond = Request.QueryString("nEndSecond")
        obj.EndCount  = Request.QueryString("nEndCount")
        obj.WatchFlag = Request.QueryString("nWatchFlag")
    End If

    If Len(Request.QueryString("nSchID")) > 0 Then
        'ďo
        nSchID = Request.QueryString("nSchID")
        nFreqID= Request.QueryString("nFreqID")
        szExcDate = Request.QueryString("szExcDate")
        nDispMode = Request.QueryString("nDispMode")
        nEditMode = Request.QueryString("nEditMode")
        Session("nSchID") = nSchID  'ێ
        Session("nFreqID")= nFreqID
        Session("szExcDate")= szExcDate
        Session("nDispMode")= nDispMode
        Session("nEditMode")= nEditMode
        '*** IuWFNgďo ***
         Session("jsch").JSchFreqData Session("jserver"), CLng(nSchID), CLng(nFreqID), CDate(szExcDate), Null
    Else
        nSchID = Session("nSchID")
        nFreqID= Session("nFreqID")
        szExcDate = Session("szExcDate")
        nDispMode = Session("nDispMode")
        nEditMode = Request.QueryString("nEditMode")
    End If

    '*** JMSST[ot̎擾(\p) ***
     datSrvDate = CDate(Session("jsch").JSchServerDate(Session("jserver")))
    datSrvDate = DateAdd("n",10,datSrvDate)'10s

    '*** IuWFNgďo ***
 '   Session("jsch").JSchFreqData Session("jserver"), CLng(nSchID), CLng(nFreqID), CDate(szExcDate), Null
%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=shift_jis">

<title>JMSS - XPW[ꎞύX</title>
<link rel="stylesheet" type="text/css" href="../../include/jmss.css">
<script src="../../include/functions.js"></script>
<script src="../../include/jschedule/datefunc.js"></script>
<script language="javascript">
<!--
var repeatPropWin = null;
window.onerror = null;
function onUnload_Body(){
    if (repeatPropWin != null){
        repeatPropWin.close();
        repeatPropWin = null;
    }
}

function popUpRepeatProp(){
    // I[v
    var x=(screen.width -320)/2;
    var y=(screen.height-160)/2;
    repeatPropWin = window.open("propRepeat.asp", 'repeatPropWin', "resizable=0,width=320,height=160,left=" + x + ",top=" + y);
    if (repeatPropWin != null){
        repeatPropWin.opener = self;
    }
}

function onClick_Ok(){
    var varHref;
    varHref = "main.asp?nSchID=<%=nSchID%>&nFreqID=<%=nFreqID%>"
    varHref = varHref + "&szRet="
    with(document.f){
        if (type[0].checked){
            varHref = varHref + type[0].value
        }else if(type[1].checked){
            varHref = varHref + type[1].value
        }else if(type[2].checked){
            varHref = varHref + type[2].value
            varHref = varHref + "&nFreqYear="  + nYear[nYear.selectedIndex].value;
            varHref = varHref + "&nFreqMonth=" + nMonth[nMonth.selectedIndex].value;
            varHref = varHref + "&nFreqDay="   + nDay[nDay.selectedIndex].value;
            varHref = varHref + "&nFreqHour="  + nHour[nHour.selectedIndex].value;
            varHref = varHref + "&nFreqMinute="+ nMinute[nMinute.selectedIndex].value;
        }
    }
    top.opener.document.location.href = varHref;
    top.close();
}

function DateDisabled(bFlag){
var obj;
    if (!!document.all){
        obj = document.f;
        obj.nYear.disabled=bFlag;
        obj.nMonth.disabled=bFlag;
        obj.nDay.disabled=bFlag;
        obj.nHour.disabled=bFlag;
        obj.nMinute.disabled=bFlag;
        return;
    }
}

function initFirst(){
    with (document.f){
        ReMakeDays(nYear,nMonth,nDay);
        initYMD(nYear,nMonth,nDay,'<%=Year(datSrvDate)%>','<%=Month(datSrvDate)%>','<%=Day(datSrvDate)%>');
        initHM(nHour,nMinute,'<%=Hour(datSrvDate)%>','<%=Minute(datSrvDate)%>');
    }
    DateDisabled(true);
}
//-->
</script>
</head>

<!-- main -->
<body class="dialog" OnLoad="javascript:initFirst();" onUnload='javascript:onUnload_Body();'>
<!-- <form name="f" method="POST" action="main.asp" target="main"> -->
<form name="f">

<center>
  <table border="0" cellspacing="1" cellpadding="2">

    <tr>
      <td bgcolor="#4080C0" colspan="2" nowrap><font color="#FFFFFF"><b>XPW[ꎞύX</b></font></td>
    </tr>

    <tr>
      <td nowrap colspan="2">&nbsp;</td>
    </tr>

    <tr>
      <td nowrap>@ύXO̓F</td>
      <td  align="left">
      <% Set obj = Session("jsch").SchFreq %>
      <% Response.Write obj.ExcDate %>
      </td>
    </tr>
    <tr>
      <td nowrap>@ԎF</td>
      <td align="left">
      <%
        If ((obj.FreqTimePage.Hour=0) And (obj.FreqTimePage.Minute = 0) And (obj.FreqTimePage.Second = 0)) Then
            Response.Write "Ȃ"
        Else
            If obj.FreqTimePage.EndType = 0 Then
                Response.Write "Ȃ"
            ElseIf obj.FreqTimePage.EndType = 1 Then
                Response.Write "񐔎w"
            ElseIf obj.FreqTimePage.EndType = 2 Then
                Response.Write "Ԏw"
            End If
        End If
      %>
      </td>
    </tr>

    <tr>
      <td nowrap colspan="2">&nbsp;</td>
    </tr>

    <tr>
      <td nowrap colspan="2">@<input type="radio" name="type" onClick="DateDisabled(true);"value="DATE_TRIGGER" checked>s<br>
        @<input type="radio" name="type" value="DATE_DELETE" onClick="DateDisabled(true);" <% If obj.ExcStatus = 1 Then Response.Write "disabled" %>><br>
        @<input type="radio" name="type" value="DATE_CHANGE" onClick="DateDisabled(false);">ύX
      </td>
    </tr>

    <tr>
      <td nowrap colspan="2" align="center">

        <table border="1" cellspacing="0" cellpadding="0" bgcolor="#eeeeee">
        <tr><td>

          <table border="0" cellspacing="0" cellpadding="2">
              <td>&nbsp;&nbsp;&nbsp; ݒ</td>
            <tr>
              <td nowrap>
                 &nbsp;&nbsp;&nbsp;
                 <SELECT Size=1 Name="nYear" onChange="ReMakeDays(document.f.nYear,document.f.nMonth,document.f.nDay);">
                 <SCRIPT Language="JavaScript"><!--
                     drawYearOptions();
                 //-->
                 </Script>
                 </Select>N
                 <SELECT Size=1 Name="nMonth" onChange="ReMakeDays(document.f.nYear,document.f.nMonth,document.f.nDay);">
                 <SCRIPT Language="JavaScript">
                 <!--
                     drawMonthOptions();
                 //-->
                 </Script>
                 </Select>
                 <SELECT Size=1 Name="nDay">
                 <SCRIPT Language="JavaScript">
                 <!--
                     drawDayOptions();
                 //-->
                 </Script>
                 </Select>
                </td>
            </tr>
            <tr>
              <td nowrap>
                 &nbsp;&nbsp;&nbsp;
                 <SELECT Size=1 Name="nHour">
                 <SCRIPT Language="JavaScript">
                 <!--
                     drawHourOptions();
                 //-->
                 </Script>
                 </Select>F
                 <SELECT Size=1 Name="nMinute">
                 <SCRIPT Language="JavaScript">
                 <!--
                     drawMinuteOptions();
                 //-->
                 </Script>
                 </Select>
              </td>
            </tr>
          </table>
          </td></tr>
          </table>
       </td>
    </tr>

    <tr>
      <td nowrap colspan="2">&nbsp;</td>
    </tr>

    <tr>
      <td nowrap colspan="2" bgcolor="#4080C0">
        <input type="submit" value="@n@j@" onClick="javascript:onClick_Ok();">&nbsp;
        <input type="button" value="LZ" onClick="top.close();">&nbsp;
        <input type="button" name="repeat" value="Ԏ" onclick="javascript:popUpRepeatProp();">&nbsp;
        <input type="button" value="w@@v" onClick="javascript:popUpHelp('../../help/jschedule/propTmpUpd.htm');">
            <input type="hidden" name="repeatHour">
            <input type="hidden" name="repeatMin">
            <input type="hidden" name="repeatSecond">
            <input type="hidden" name="repeatCount">
            <input type="hidden" name="repeatEndHour">
            <input type="hidden" name="repeatEndMin">
      </td>
    </tr>

  </table>
</center>

</form>

</body>

</html>
<%
    '*** IuWFNg̉ ***
    Set obj = Nothing
%>
