⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 doevaluate.jsp

📁 培训考试系统代码
💻 JSP
字号:
<%@ page contentType="text/html;charset=gb2312"%>

<%@ include file="/agt/public/jsp/top.jsp" %>





<%@ page import = "java.net.*"%>

<title>考评计算</title>

<script src="/public/scripts/cal.js"></script>


<form name="ExecForm" method="post" action="/ExecAction.do" >

<input type="hidden" name="operatorflag" value ="EVALUATE_DO">

  <table width="539" border="0" cellpadding="3" cellspacing="1" class="table-cs1">

    <tr>

      <td width="100" height="25" align="center" class="td-cs1">被考评人</td>

                        <td class="td-cs2"> 
                          <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr> 
                              <td width="58%"><input type="text" class="input2" name="staffIds"></td>
                              <td width="42%"><a href="javascript:;" onClick="window.showModalDialog('/GetStaff.do?opeType=<%=OperatorFlagCode.GET_STAFFNO%>',document.forms[0],'dialogWidth:480px; dialogHeight:420px; toolbar:no; status:no; location:no; scrolling:no; resize:no;');" onMouseOver="MM_swapImage('Image131','','/agt/public/images/choise_2.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="/agt/public/images/choise.gif" name="Image131" width="48" height="25" border="0" id="Image131"></a> 
                                </td>
                            </tr>
                          </table></td>



  </tr>

  <tr>

      <td width="100" height="25" align="center" class="td-cs1">被考评组</td>

                        <td class="td-cs2"> 
                          <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr> 
                              <td width="58%"><input type="text" class="input2" name="groupIds"> 
                               </td>
                              <td width="42%"><a href="javascript:;" onClick="window.showModalDialog('/GetStaff.do?opeType=<%=OperatorFlagCode.GET_GROUP%>',document.forms[0],'dialogWidth:480px; dialogHeight:420px; toolbar:no; status:no; location:no; scrolling:no; resize:no;');" onMouseOver="MM_swapImage('Image1311','','/agt/public/images/choise_2.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="/agt/public/images/choise.gif" name="Image1311" width="48" height="25" border="0" id="Image131"></a> 
                                </td>
                            </tr>
                          </table>
 	</td>

  </tr>

  <tr>

      <td width="100" height="25" align="center" class="td-cs1">考评规则*</td>

      <td class="td-cs2">

        <select name="ruleid" class="input3">

          <%

        SysDbConn aplcoms = null;

        aplcoms = SysConnPool.getInstance().getAplComs();

        aplcoms.preparedQuery("");

        SysResultSet rs =aplcoms.csCommonQuery("SQL_AGT_QueryRuleTitle","1","-1").getResultSet();



       if (rs != null)

       {

      for (int k = 0; k < rs.getMetaData().getRecordCount(); k++)

       {

         rs.setRecord(k);

    %>

       <option value=<%= rs.getString(0) %> > <%=  rs.getString(1) %>  </option>



      <%

        }

     }

    %>

  </select>

       </td>

  </tr>

  <tr>

      <td width="100" height="25" align="center" class="td-cs1">考评名称*</td>

      <td class="td-cs2">

        <input name="title" type="text" class="input2" size="30" maxlength=10>

      </td>

  </tr>

  <tr>

      <td width="100" height="25" align="center" class="td-cs1">考评种类*</td>

      <td class="td-cs2">

        <select name="evatypeid" class="input3" >

          <%

        aplcoms.preparedQuery("");

        SysResultSet rs2 =aplcoms.csCommonQuery("SQL_AGT_QueryEvatype","1","-1").getResultSet();



       if (rs2 != null)

       {

      for (int k = 0; k < rs2.getMetaData().getRecordCount(); k++)

       {

         rs2.setRecord(k);

    %>

       <option value=<%= rs2.getString(0)%> > <%=  rs2.getString(1) %>  </option>



      <%

        }

     }

          if(aplcoms != null)
          {
             aplcoms.close();
          }

    %>

  </select>

</td>

  </tr>

  <tr>

      <td width="100" height="25" align="center" class="td-cs1">考评起始时间*</td>

      <td class="td-cs2">

        <input name="begintime" type="text" class="input2" onClick="javascript:calDate(this);"  onKeypress="javascript:calDate(this);" size="20"

       readonly>

      </td>

  </tr>

  <tr>

      <td width="100" height="25" align="center" class="td-cs1">考评结束时间*</td>

      <td class="td-cs2">

        <input name="endtime" type="text" class="input2" onClick="javascript:calDate(this);"  onKeypress="javascript:calDate(this);" size="20"

      readonly>

      </td>

  </tr>

  <tr>

      <td width="100" height="25" align="center" class="td-cs1">考评说明</td>

      <td class="td-cs2">

        <textarea name="evadetail" cols="55" rows="5" class="remark"></textarea>

      </td>

  </tr>

</table>

                    <table width="539" height="30" border="0" cellpadding="0" cellspacing="0">
                      <tr> 
                        <td align="center"> <table width="424" height="30" border="0" cellpadding="0" cellspacing="0">
                            <tr> 
                              <td width="25%">&nbsp; </td>
                              <td width="25%">
                              <input name="count" type="image" onclick="Evaluate();return false;" src="/agt/public/images/count.gif" width="82" height="22" border="0" onmouseover="this.src='/agt/public/images/'+ this.name + '_2.gif';" onmouseout="this.src='/agt/public/images/'+ this.name + '.gif'">
							  </td>
                              <td><input name="reset" type="image" onclick="ExecForm.reset();return false;" src="/agt/public/images/reset.gif" width="82" height="22" border="0" onmouseover="this.src='/agt/public/images/'+ this.name + '_2.gif';" onmouseout="this.src='/agt/public/images/'+ this.name + '.gif'"> 
                              </td>
                            </tr>
                          </table></td>
                      </tr>
                    </table>
                    <p>&nbsp;</p>

</form>
<script src="/agt/public/js/my_functions.js" type="text/javascript"></script>

                  <script language="JavaScript" type="text/JavaScript">

function CheckAvailable()

{

 if ((document.ExecForm.staffIds.value =="")&&(document.ExecForm.groupIds.value ==""))

 {

    alert("请输入被考评人或组");

    document.ExecForm.staffIds.focus();

    return false;

 }

 else if (document.ExecForm.title.value =="")

 {

    alert("请输入考评名称");

    document.ExecForm.title.focus();

    return false;

 }

 else if (document.ExecForm.begintime.value =="")

 {

    alert("请输入考评起始时间");

    document.ExecForm.begintime.focus();

    return false;

 }

 else if (document.ExecForm.endtime.value =="")

 {

    alert("请输入考评结束时间");

    document.ExecForm.endtime.focus();

    return false;

 }

 else if (document.ExecForm.begintime.value >  document.ExecForm.endtime.value)

 {

    alert("起始时间不应该大于结束时间");

    document.ExecForm.endtime.focus();

    return false;

 }

 else if (document.ExecForm.evadetail.value.length > 25)

 {

    alert("详细内容应不多于25个字符,您的输入过长,请删减");

    document.ExecForm.evadetail.focus();

    return false;

 }

  else

  {
     var staffIds = document.ExecForm.staffIds;
     var checkStaffNoRs = CheckInputNo("<%=GetStaffAction.getStaffNoStr()%>",staffIds.value);
     if(checkStaffNoRs != "")
     {
         alert("所输入被考评人员中工号" + checkStaffNoRs + "不存在!");
         staffIds.focus();
         return false;
     } 
     var groupIds = document.ExecForm.groupIds;
     var checkGroupRs =  CheckInputNo("<%=GetStaffAction.getGroupStr()%>",groupIds.value);
     if(checkGroupRs != "")
     {
         alert("所输入被考评班组中组号" + checkGroupRs + "不存在!");
         groupIds.focus();
         return false;
     }
     else
     return true;
  }

}



function Evaluate()

{

    if (CheckAvailable())

    {

        document.ExecForm.submit();

        return true;

    }

    else

    {

        return false;

    }

}

</script>

<%@ include file="/agt/public/jsp/bot.jsp" %> 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -