<!--#include file="../../include/jschedule/schevent.asp"-->
<%
'jschedule/schevent/propJob.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
    Set obj = Session("jsch").SchEvtData.MainJobPage
%>

<html>

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

<title>JMSS</title>
<link rel="stylesheet" type="text/css" href="../../include/jmss.css">
<script src="../../include/functions.js"></script>
<script src="../../include/jschedule/strfunc.js"></script>
<!-- ///////////////////////// client script section ////////////////////////// -->
<script language="JavaScript">
<!--
var QueWin = null;
window.onerror = null;

function onUnload_Body(){
    if (QueWin != null){
        QueWin.close();
        QueWin = null;
    }
}

function InitTextBoxValue(){
    with(document.propform){
        if (!!document.all){
            Title.value = unescape('<%=GetEscStrIE(obj.Title)%>');
            Path.value = unescape('<%=GetEscStrIE(obj.Path)%>');
            Param.value = unescape('<%=GetEscStrIE(obj.Param)%>');
            Dir.value = unescape('<%=GetEscStrIE(obj.Dir)%>');
            Queue.value = unescape('<%=GetEscStrIE(obj.Queue)%>');
            OutFile.value = unescape('<%=GetEscStrIE(obj.OutFile)%>');
            TimeoutHour.value = unescape('<%=GetEscStrIE(obj.TimeoutHour)%>');
            TimeoutMinute.value = unescape('<%=GetEscStrIE(obj.TimeoutMinute)%>');
            <%
                If Session("nEditMode")=0 Then
                    'Qƃ[h̏ꍇA䂵Ȃ
                    Response.Write "return;" & vbCrLf
                Else
                    Response.Write "DisabledOutFile(!OutFlags.checked);" & vbCrLf
                End If
            %>
        }else{
            Title.value = unescape('<%=GetEscStrNC(obj.Title)%>');
            Path.value = unescape('<%=GetEscStrNC(obj.Path)%>');
            Param.value = unescape('<%=GetEscStrNC(obj.Param)%>');
            Dir.value = unescape('<%=GetEscStrNC(obj.Dir)%>');
            Queue.value = unescape('<%=GetEscStrNC(obj.Queue)%>');
            OutFile.value = unescape('<%=GetEscStrNC(obj.OutFile)%>');
            TimeoutHour.value = unescape('<%=GetEscStrNC(obj.TimeoutHour)%>');
            TimeoutMinute.value = unescape('<%=GetEscStrNC(obj.TimeoutMinute)%>');
        }
    }
}

function DisabledOutFile(bFlag){
    var obj;
    if (!!document.all){
        obj=document.propform;
        obj.OutFile.disabled=bFlag;
        obj.OutType[0].disabled=bFlag;
        obj.OutType[1].disabled=bFlag;
    }
    return;
}

function onBlur_Path(){
    with (document.propform){
        if (Title.value == "" && Path.value != ""){
            Title.value = getTitleFromPath(Path.value);
        }
    }
}

function onClick_Queue(){

    <% If Session("nEditMode") <> 1 Then Response.Write "return;" %>

    var x=(screen.width -300)/2;
    var y=(screen.height-200)/2;
    QueWin = window.open('../propJobQueRef.asp', 'QueWin', 'resizable=0,width=300,height=200,left=' + x + ',top=' + y);
    if (QueWin != null){
        QueWin.opener = self;
    }
}

//-->
</script>
</head>

<!-- ////////////////////////////// main section ////////////////////////////// -->
<body class='dialog' onLoad="InitTextBoxValue();" onUnload="javascript:onUnload_Body();">
<%
If Session("nEditMode") = 0 Then
    Response.Write "<form name='propform'>"
Else
    Response.Write "<form name='propform' method='post' action='propSubmit.asp' target='_self'>"
End If
%>
<!-- Hidden Parameters -->
  <input type="hidden" name="nTabIndex" value="0">
  <input type="hidden" name="nNextTabIndex" value="0">

  <table border="0" cellspacing="1" cellpadding="2">
    <tr>
      <td>Ɩ</td>
      <td><input type="TEXT" name="Title" size="40" maxlength="32" onBlur="this.value=cutOverLenStr(this.value,32);" <%=szMode%>></td>
    </tr>
    <tr>
      <td>Wu</td>
      <td><input type="TEXT" name="Path" size="40" maxlength="255" onBlur="this.value=cutOverLenStr(this.value,255);onBlur_Path();" <%=szMode%>></td>
    </tr>
    <tr>
      <td>p[^</td>
      <td><input type="TEXT" name="Param" size="40" maxlength="255" onBlur="this.value=cutOverLenStr(this.value,255);" <%=szMode%>></td>
    </tr>
    <tr>
      <td>sfBNg</td>
      <td><input type="TEXT" name="Dir" size="40" maxlength="255" onBlur="this.value=cutOverLenStr(this.value,255);" <%=szMode%>></td>
    </tr>
    <tr>
      <td>WuL[</td>
      <td>
        <input type="TEXT" name="Queue" size="20" maxlength="15" onBlur="this.value=cutOverLenStr(this.value,15);" <%=szMode%>>
        <input type="button" name="btnQueue" value="Q..." onClick="onClick_Queue();" <%=szMode%>>
      </td>
    </tr>
    <tr>
      <td>D揇</td>
      <td><select name="Priority" size="1" <%=szMode%>>
          <option value="0" <% If obj.Priority = 0 Then Response.Write "selected"%>>REALTIME
          <option value="1" <% If obj.Priority = 1 Then Response.Write "selected"%>>HIGH
          <option value="2" <% If (obj.Priority <> 0) And (obj.Priority <> 1) And (obj.Priority <> 3) Then Response.Write "selected"%>>NORMAL
          <option value="3" <% If obj.Priority = 3 Then Response.Write "selected"%>>IDLE
        </select></td>
    </tr>
    <tr>
      <td colspan="2">
      <input type="checkbox" name="OutFlags" value="1" onClick="DisabledOutFile(!this.checked);" <% If obj.OutFlags = 1 Then Response.Write "checked"%> <%=szMode%>>Wo͂̊Ď
      </td>
    </tr>
    <tr>
      <td align="right">Wo̓t@C</td>
      <td><input type="text" name="OutFile" size="40" maxlength="255" onBlur="this.value=cutOverLenStr(this.value,255);" <%=szMode%>></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><input type="radio" name="OutType" value="1" <% If obj.OutType <> 0 Then Response.Write "checked"%> <%=szMode%>>㏑
          <input type="radio" name="OutType" value="0" <% If obj.OutType =  0 Then Response.Write "checked"%> <%=szMode%>>ǉ
      </td>
    </tr>
    <tr>
      <td>soߎԃ^CAEg
      <td><input type="text" name="TimeoutHour"   size="4" maxlength="4" onBlur="this.value=txtNumJustify(this.value,0,1000);" <%=szMode%>>
          <input type="text" name="TimeoutMinute" size="2" maxlength="2" onBlur="this.value=txtNumJustify(this.value,0,59);" <%=szMode%>>
      </td>
    </tr>
  </table>
</form>
</body>

</html>

<%
    '*** IuWFNg ***
    Set obj = Nothing
%>
