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

📄 schedulejob.jsp

📁 Sequoia ERP是一个真正的企业级开源ERP解决方案。它提供的模块包括:电子商务应用(e-commerce), POS系统(point of sales),知识管理,存货与仓库管理
💻 JSP
字号:
<%-- *  Description: None *  Copyright (c) 2002 The Open For Business Project - www.ofbiz.org * *  Permission is hereby granted, free of charge, to any person obtaining a  *  copy of this software and associated documentation files (the "Software"),  *  to deal in the Software without restriction, including without limitation  *  the rights to use, copy, modify, merge, publish, distribute, sublicense,  *  and/or sell copies of the Software, and to permit persons to whom the  *  Software is furnished to do so, subject to the following conditions: * *  The above copyright notice and this permission notice shall be included  *  in all copies or substantial portions of the Software. * *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  *  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF  *  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  *  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY  *  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT  *  OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR  *  THE USE OR OTHER DEALINGS IN THE SOFTWARE. * *@author     Andy Zeneski  *@version    $Rev: 6426 $ *@since      2.0--%><%@ page import="java.util.*" %><%@ page import="org.ofbiz.security.*, org.ofbiz.entity.*" %><%@ page import="org.ofbiz.base.util.*, org.ofbiz.webapp.pseudotag.*" %><%@ page import="org.ofbiz.service.*, org.ofbiz.service.config.*, org.ofbiz.service.calendar.*" %><%@ taglib uri="ofbizTags" prefix="ofbiz" %><jsp:useBean id="security" type="org.ofbiz.security.Security" scope="request" /><jsp:useBean id="delegator" type="org.ofbiz.entity.GenericDelegator" scope="request" /><jsp:useBean id="dispatcher" type="org.ofbiz.service.LocalDispatcher" scope="request" /><%if(security.hasPermission("WEBTOOLS_VIEW", session)) {%><%	String serviceName = request.getParameter("SERVICE_NAME");    String poolName = ServiceConfigUtil.getSendPool();%><% if (serviceName == null) { %>  <div class="head2">Schedule A Job</div>  <div class="tabletext">Step 1: Service & Recurrence Information</div>  <br/>  <FORM name="scheduleForm" method='POST' action='<ofbiz:url>/scheduleJob</ofbiz:url>'>    <table border='0'>      <tr>        <td align="right"><div class="tabletext">Service:</div></td>        <td><input type="text" class="inputBox" size="20" name="SERVICE_NAME" value="<%=(serviceName != null ? serviceName : "")%>"></td>      </tr>            <tr>        <td align="right"><div class="tabletext">Pool Name:</div></td>        <td><input type="text" class="inputBox" size="20" name="POOL_NAME" value="<%=poolName%>"></td>      </tr>            <tr>        <td align="right"><div class="tabletext">Start Date/Time:</div></td>        <td>          <input type="text" class="inputBox" size="25" name="SERVICE_TIME">          <a href="javascript:call_cal(document.scheduleForm.SERVICE_TIME, null);"><img src='/images/cal.gif' width='16' height='16' border='0' alt='Click here For Calendar'></a>        </td>      </tr>          <tr>        <td align="right"><div class="tabletext">Finish Date/Time:</div></td>        <td>          <input type="text" class="inputBox" size="25" name="SERVICE_END_TIME">          <a href="javascript:call_cal(document.scheduleForm.SERVICE_END_TIME, null);"><img src='/images/cal.gif' width='16' height='16' border='0' alt='Click here For Calendar'></a>        </td>      </tr>         <tr>        <td align="right"><div class="tabletext">Frequency:</div></td>        <td>          <select class="selectBox" name="SERVICE_FREQUENCY">                <option value="<%=RecurrenceRule.DAILY%>">None</option>                                                                                <option value="<%=RecurrenceRule.YEARLY%>">Yearly</option>            <option value="<%=RecurrenceRule.MONTHLY%>">Monthly</option>            <option value="<%=RecurrenceRule.WEEKLY%>">Weekly</option>            <option value="<%=RecurrenceRule.DAILY%>">Daily</option>            <option value="<%=RecurrenceRule.HOURLY%>">Hourly</option>            <option value="<%=RecurrenceRule.MINUTELY%>">Minutely</option>            <option value="<%=RecurrenceRule.SECONDLY%>">Secondly</option>        </td>      </tr>      <tr>        <td align="right"><div class="tabletext">Interval:</div></td>        <td><input type="text" class="inputBox" size="6" name="SERVICE_INTERVAL">&nbsp;<span class='tabletext'>(for use with frequency)</span></td>      </tr>      <tr>        <td align="right"><div class="tabletext">Count:</div></td>        <td><input type="text" class="inputBox" size="6" name="SERVICE_COUNT" value="1">&nbsp;<span class="tabletext">(number of time the job will run; use -1 for no limit i.e. forever)</span></td>      </tr>      <tr>        <td align="right"><div class="tabletext">Max Retry:</div></td>        <td><input type="text" class="inputBox" size="6" name="SERVICE_MAXRETRY" value="">&nbsp;<span class="tabletext">(number of time the job will retry on error; use -1 for no limit or leave empty for service default)</span></td>      </tr>      <tr>        <td colspan="2">&nbsp;</td>      </tr>      <tr>        <td colspan="2" align="center"><input type="submit" class="smallSubmit" value="Submit"></td>      </tr>    </table>  </FORM><%} else {%>  <div class="head2">Schedule A Job</div>  <div class="tabletext">Step 2: Service Parameters</div>  <br/>  <FORM name="scheduleForm" method='POST' action='<ofbiz:url>/scheduleService</ofbiz:url>'>    <%   		Enumeration e = request.getParameterNames();  		  		while (e.hasMoreElements()) {  			String paramName = (String) e.nextElement();  			String paramValue = request.getParameter(paramName);    %>	<input type='hidden' name='<%=paramName%>' value='<%=paramValue%>'>	<%  } %>		<%		DispatchContext dctx = dispatcher.getDispatchContext();		ModelService model = dctx.getModelService(serviceName);	%>    <table border='0'>      <%      	Iterator pi = model.getInParamNames().iterator();      	while (pi.hasNext()) {      		ModelParam par = model.getParam((String)pi.next());      		if (par.internal) continue;      %>      <tr>        <td align="right"><div class="tabletext"><%=par.name%> (<%=par.type%>)</div></td>        <td>          <input type="text" class="inputBox" size="20" name="<%=par.name%>">          <span class="tabletext"><%if(!par.optional){%>(required)<%}else{%>(optional)<%}%>        </td>      </tr>      <%}%>      <tr>        <td colspan="2">&nbsp;</td>      </tr>      <tr>        <td colspan="2" align="center"><input type="submit" class="smallSubmit" value="Submit"></td>      </tr>          </table>  </FORM>	<%}%>	<%}else{%>  <hr>  <div>You do not have permission to use this page.</div><%}%>		

⌨️ 快捷键说明

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