<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../language.jsp" %>


<script src="../scripts/itsm/noticeRule/noticeRuleManage.js?random=<%=new java.util.Date().getTime()%>"></script>
<script>
$(document).ready(function(){
	
	 $("#noticeRuleManage_loading").hide();
	 $("#noticeRuleManage_panel").show();
}); 
</script>

<div style="padding:10px" id="noticeRuleManage_loading"><img src="../images/icons/loading.gif" /></div>


<table id="noticeRuleList"></table>
<div id="noticeRulePager"></div>


<div id="noticeRuleToolbar" style="display:none">
	<a class="easyui-linkbutton" plain="true" icon="icon-add" onclick="addNoticeRule_win()">新增</a>
	<a class="easyui-linkbutton" plain="true" icon="icon-edit" onclick="editNoticeRule_win()">编辑</a>
	<a class="easyui-linkbutton" plain="true" icon="icon-cancel" onclick="deleteNoticeRule_opt()">删除</a>
</div>



<!--添加通知规则 -->
<div id=addNoticeRule_win class="easyui-window" closed="true" collapsible="false" minimizable="false" maximizable="false" 
	modal="true" title="新增通知规则" style="width:300px;height:200px;padding:10px;">
		<form>	
			<table>	
				<tr>
					<td>名称</td>
					<td><input name="noticeRuleDTO.noticeRuleName"/></td>
				</tr>
				<tr>
					<td>编码</td>
					<td><input name="noticeRuleDTO.noticeRuleNo" /></td>
				</tr>
				<tr>
				<td>状态</td>
				<td>
					<input type="radio" name="noticeRuleDTO.useStatus" id="roleState" value="true" checked="checked" />启用
					<input type="radio" name="noticeRuleDTO.useStatus" id="roleState1" value="false" />禁用
				</td>
				</tr>
				<tr>
					<td colspan="2">
						<br>
						<a class="easyui-linkbutton" plain="false" icon="icon-add" onclick="addNoticeRule_opt()" >添加</a>
					</td>
				</tr>
			</table>
		</form>
</div>



<!--编辑通知规则 -->
<div id=editNoticeRule_win class="easyui-window" closed="true" collapsible="false" minimizable="false" maximizable="false" 
	modal="true" title="编辑通知规则" style="width:300px;height:200px;padding:10px;">
		<form>	
			<input type="hidden" name="noticeRuleDTO.noticeRuleId" id="noticeRuleId"/>
			<table>	
				<tr>
					<td>名称</td>
					<td><input name="noticeRuleDTO.noticeRuleName" id="noticeRuleName"/></td>
				</tr>
				<tr>
					<td>编码</td>
					<td><input name="noticeRuleDTO.noticeRuleNo" id="noticeRuleNo"/></td>
				</tr>
				<tr>
				<td>状态</td>
				<td>
					<input type="radio" name="noticeRuleDTO.useStatus" id="noticeRuleState" value="true" checked="checked" />启用
					<input type="radio" name="noticeRuleDTO.useStatus" id="noticeRuleState1" value="false" />禁用
				</td>
				</tr>
				<tr>
					<td colspan="2">
						<br>
						<a class="easyui-linkbutton" plain="false" icon="icon-edit" onclick="editNoticeRule_opt()" >编辑</a>
					</td>
				</tr>
			</table>
		</form>
</div>