2024-08-14 15:17:51 +08:00

116 lines
3.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ page contentType="text/html;charset=UTF-8"%>
<%@page import="com.blueland.bpm.engine.config.model.*" %>
<%@ include file="/commons/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ include file="/commons/meta.jsp"%>
<base href="<%=basePath%>"/>
<title>消息提醒配置新增</title>
<script type="text/javascript">
function saveMsgRemind(){
//整理数据
$.ajax({
type : "POST",
url : "${ctx}/msgRemind/saveMsgRemind.do",
data : $('#myform').serialize(),
success : function(resp) {
alert(resp);
art.dialog.opener.location.reload();
//art.dialog.close();
}
});
}
$(function(){
$("#isReceiveSms").click(
function(){
$("#noRimind").removeAttr("checked");
$("#isReceiveSmsValue").val('Y');
$("#isReceiveTodo").val('Y');
}
);
$("#isReceiveMail").click(
function(){
$("#noRimind").removeAttr("checked");
$("#isReceiveMailValue").val('Y');
$("#isReceiveTodo").val('Y');
}
);
$("#noRimind").click(
function(){
$("#isReceiveSms").removeAttr("checked");
$("#isReceiveMail").removeAttr("checked");
$("#isReceiveMailValue").val('N');
$("#isReceiveSmsValue").val('N');
$("#isReceiveTodo").val('N');
}
);
})
</script>
</head>
<body style="font-size: 13px;">
<form action="${ctx}/msgRemind/save.do" method="post" id="myform">
<!-- 是否接收短信提醒 -->
<input type="hidden" name="isReceiveSms" id="isReceiveSmsValue" value="N"/>
<!-- 是否接收邮件提醒-->
<input type="hidden" name="isReceiveMail" id="isReceiveMailValue" value="N"/>
<!-- 是否接收待阅 -->
<input type="hidden" name="isReceiveReader" id="isReceiveReader" value="N"/>
<!-- 是否接收待办 -->
<input type="hidden" name="isReceiveTodo" id="isReceiveTodo" value="N"/>
<div class="main-container" id="main-container">
<div class="panel panel-primary">
<div class="panel-body">
<table class='table table-bordered' border="0" cellspacing="0" cellpadding="0" id="myTable">
<!-- 存放表单的区域 -->
<tr>
<th>
提醒所属系统<font color="red">*</font>
</th>
<td>
<select name="remindAppId" id="remindAppId">
<c:forEach var="app" items="${apps}">
<option value="${app.appId}">${app.appName}</option>
</c:forEach>
</select>
</td>
</tr>
<tr>
<th>
是否接收提醒:
</th>
<td>
<input type="checkbox" id="noRimind" checked="checked"/>不提醒&nbsp;&nbsp;
<input type="checkbox" id="isReceiveSms"/>短信提醒&nbsp;&nbsp;
<input type="checkbox" id="isReceiveMail"/>邮件提醒
</td>
</tr>
</table>
</div>
<div class="col-md-offset-1 col-md-9" style="text-align: center;">
<button type="button" class="btn btn-sm btn-primary"
id="submitButton" onclick="saveMsgRemind();" >
保存
<i class="ace-icon fa fa-save bigger-110"></i>
</button>
<button type="button" class="btn btn-sm btn-primary"
onclick="art.dialog.close();">
关闭
<i class="ace-icon fa fa-times bigger-110"></i>
</button>
</div>
</div>
</div>
</form>
<jsp:include page="../../pages/procDefMgr/procDefTree.jsp" flush="false" />
</body>
</html>