42 lines
1.6 KiB
Plaintext
42 lines
1.6 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%>
|
|
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
|
|
/*
|
|
Author: zhulh 2017-04-19
|
|
Content: 示例详情页面
|
|
History Log:
|
|
*/
|
|
String sPrevUrl = CurPage.getParameter("PrevUrl");
|
|
if(sPrevUrl == null) sPrevUrl = "/Tenwa/Core/quartz/QrtzJobDetailList.jsp";
|
|
|
|
String sTempletNo = "QrtzJobDetailsInfo";//--模板号--
|
|
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
|
dwTemp.Style = "2";//freeform
|
|
dwTemp.genHTMLObjectWindow(CurPage.getParameter("job_name"));
|
|
|
|
String sButtons[][] = {
|
|
{"true","All","Button","保存","保存所有修改","addJob()","","","","btn_icon_save"},
|
|
{"true","All","Button","返回","返回列表","returnList()","","","","btn_icon_back"}
|
|
};
|
|
sButtonPosition = "south";
|
|
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
|
<script type="text/javascript">
|
|
function addJob(){
|
|
if(!iV_all('myiframe0'))return;
|
|
var param = "jobName="+getItemValue(0,getRow(0),"JOB_NAME")+",description="+getItemValue(0,getRow(0),"DESCRIPTION")
|
|
+ ",is_durable="+getItemValue(0,getRow(0),"IS_DURABLE")+",requestsRecovery="+getItemValue(0,getRow(0),"REQUESTS_RECOVERY")
|
|
+ ",className="+getItemValue(0,getRow(0),"JOB_CLASS_NAME");
|
|
var result = RunJavaMethodTrans("com.tenwa.quartz.QuartzServerImpl","saveOrUpdateJob",param);
|
|
if(result == "SUCCESS"){
|
|
alert("保存成功!");
|
|
}else if(result == "ERROR"){
|
|
alert("保存失败!");
|
|
}
|
|
returnList();
|
|
}
|
|
|
|
function returnList(){
|
|
parent.AsDialog.ClosePage();
|
|
}
|
|
</script>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%> |