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

<script src="../scripts/itsm/noticeRule/noticeRule.js?random=<%=new java.util.Date().getTime()%>"></script>



<div class="loading" id="noticeRule_loading"><img src="../images/icons/loading.gif" /></div>
<div id="noticeRule_panel" class="content"></div>

<div id="noticeRuleDiv" class="easyui-tabs" fit="true" >
	<div title="<fmt:message key="title.mainTab.request" />" style="padding: 5px;">
		<table width="100%" style="border:1px solid #CCC">
		
<!-- 1 -->	
        	<tr><td colspan="3"><strong><fmt:message key="setting.notitceRule.noticeRequester"/></strong></td></tr>
            <tr>
            	<td colspan="3">
            		<div id="notice_request_01">
            			<form>
            				
            				<input type="hidden" name="noticeRuleDTO.noticeRuleName" value="通知请求人自助登录消息" />
            				<input type="hidden" name="noticeRuleDTO.noticeRuleNo" value="notice_request_01" />
            				<input type="hidden" name="noticeRuleDTO.emailTemp" value="emailTemplates/notice_request_01.ftl" />
            				<table width="100%">
            					<tr>
            						<td width="40"><input type="checkbox" id="notice_request_01_check" value="true" name="noticeRuleDTO.useStatus" onclick="noticeRule_opt('notice_request_01')" /></td>
            						<td><fmt:message key="setting.notitceRule.noticeRequesterSelfLoginMessage"/></td>
            						<td align="right" style="padding-right: 20px;"><a href="#"></a></td>
            					</tr>
            				</table>
            			</form>
            		</div>
            	</td>
            </tr>
            
<!-- 2 -->          
            <tr>
            	<td colspan="3">
            		<div id="notice_request_02">
            			<form>
            				
            				<input type="hidden" name="noticeRuleDTO.noticeRuleName" value="接收到请求时通过电子邮件给予回复请求人" />
            				<input type="hidden" name="noticeRuleDTO.noticeRuleNo" value="notice_request_02" />
            				<input type="hidden" name="noticeRuleDTO.emailTemp" value="emailTemplates/notice_request_02.ftl" />
            				<table width="100%">
            					<tr>
            						<td width="40"><input type="checkbox" id="notice_request_02_check" value="true" name="noticeRuleDTO.useStatus" onclick="noticeRule_opt('notice_request_02')" /></td>
            						<td><fmt:message key="setting.notitceRule.acceptRequestAndNReplyRequesterByEmail"/></td>
            						<td align="right" style="padding-right: 20px;"><a href="#"></a></td>
            					</tr>
            				</table>
            			</form>
            		</div>
            	</td>
            </tr>
            
 <!-- 3 -->           
            <tr>
            	<td colspan="3">
            		<div id="notice_request_03">
            			<form>
            				
            				<input type="hidden" name="noticeRuleDTO.noticeRuleName" value="更新请求时通过邮件通知请求人" />
            				<input type="hidden" name="noticeRuleDTO.noticeRuleNo" value="notice_request_03" />
            				<input type="hidden" name="noticeRuleDTO.emailTemp" value="emailTemplates/notice_request_03.ftl" />
            				<table width="100%">
            					<tr>
            						<td width="40"><input type="checkbox" id="notice_request_03_check" value="true" name="noticeRuleDTO.useStatus" onclick="noticeRule_opt('notice_request_03')" /></td>
            						<td><fmt:message key="setting.notitceRule.updateRequestNoticeRequesterByEmail"/></td>
            						<td align="right" style="padding-right: 20px;"><a href="#"></a></td>
            					</tr>
            				</table>
            			</form>
            		</div>
            	</td>
            </tr>
<!-- 4 -->            
             <tr>
            	<td colspan="3">
            		<div id="notice_request_10">
            			<form>
            				
            				<input type="hidden" name="noticeRuleDTO.noticeRuleName" value="当请求处理完成时通知请求人" />
            				<input type="hidden" name="noticeRuleDTO.noticeRuleNo" value="notice_request_10" />
            				<input type="hidden" name="noticeRuleDTO.emailTemp" value="emailTemplates/notice_request_10.ftl" />
            				<table width="100%">
            					<tr>
            						<td width="40"><input type="checkbox" id="notice_request_10_check" value="true" name="noticeRuleDTO.useStatus" onclick="noticeRule_opt('notice_request_10')" /></td>
            						<td><fmt:message key="setting.notitceRule.whenRequestCompleteNoticeRequester"/></td>
            						<td align="right" style="padding-right: 20px;"><a href="#"></a></td>
            					</tr>
            				</table>
            			</form>
            		</div>
            	</td>
            </tr>
            
 <!-- 5 -->           
            <tr>
            	<td colspan="3">
            		<div id="notice_request_04">
            			<form>
            				
            				<input type="hidden" name="noticeRuleDTO.noticeRuleName" value="关闭请求时向请求人发送电子邮件" />
            				<input type="hidden" name="noticeRuleDTO.noticeRuleNo" value="notice_request_04" />
            				<input type="hidden" name="noticeRuleDTO.emailTemp" value="emailTemplates/notice_request_04.ftl" />
            				<table width="100%">
            					<tr>
            						<td width="40"><input type="checkbox" id="notice_request_04_check" value="true" name="noticeRuleDTO.useStatus" onclick="noticeRule_opt('notice_request_04')" /></td>
            						<td><fmt:message key="setting.notitceRule.closeRequestNoticeRequesterByEmail"/></td>
            						<td align="right" style="padding-right: 20px;"><a href="#"></a></td>
            					</tr>
            				</table>
            			</form>
            		</div>
            	</td>
            </tr>

 <!--  请求升级时，要通知”升级到“的人  18 -->           
            <tr>
            	<td colspan="3">
            		<div id="notice_request_18">
            			<form>
            				
            				<input type="hidden" name="noticeRuleDTO.noticeRuleName" value="请求升级时，要通知”升级到“的人" />
            				<input type="hidden" name="noticeRuleDTO.noticeRuleNo" value="notice_request_18" />
            				<input type="hidden" name="noticeRuleDTO.emailTemp" value="emailTemplates/notice_request_18.ftl" />
            				<table width="100%">
            					<tr>
            						<td width="40"><input type="checkbox" id="notice_request_18_check" value="true" name="noticeRuleDTO.useStatus" onclick="noticeRule_opt('notice_request_18')" /></td>
            						<td><fmt:message key="title.upgradeToNoticeRule"/></td>
            						<td align="right" style="padding-right: 20px;"><a href="#"></a></td>
            					</tr>
            				</table>
            			</form>
            		</div>
            	</td>
            </tr>



        </table>
        <br />
        <table width="100%" style="border:1px solid #CCC">
        	<tr><td colspan="3"><strong><fmt:message key="setting.notitceRule.noticeTechnician"/></strong></td></tr>
 <!-- 6 -->       	
        	<tr>
            	<td colspan="3">
            		<div id="notice_request_05">
            			<form>
            				
            				<input type="hidden" name="noticeRuleDTO.noticeRuleName" value="创建新请求时通过电子邮件通知技术员" />
            				<input type="hidden" name="noticeRuleDTO.noticeRuleNo" value="notice_request_05" />
            				<input type="hidden" name="noticeRuleDTO.emailTemp" value="emailTemplates/notice_request_05.ftl" />
            				<table width="100%">
            					<tr>
            						<td width="40">
            						<input type="checkbox" id="notice_request_05_check" value="true" name="noticeRuleDTO.useStatus" onclick="noticeRule_opt('notice_request_05')" /></td>
            						<td><fmt:message key="setting.notitceRule.createRequestNoticeTechnicianByEmail"/></td>
            						<td align="right" style="padding-right: 20px;"><a href="#"></a></td>
            					</tr>
            					<tr>
            						<td width="40"></td>
            						<td><fmt:message key="label.request.theTechnician"/>：<input size="55" id="notice_request_05_technician"  name="noticeRuleDTO.technician" style="cursor:pointer" />
            						 <a class="easyui-linkbutton" plain="true" icon="icon-edit" onclick="javascript:selectNoticeUser('#notice_request_05_technician')"><fmt:message key="common.select" /></a>
            						 <a class="easyui-linkbutton" plain="true" icon="icon-save" onclick="noticeRule_opt('notice_request_05')"><fmt:message key="common.save" /></a>
            						
            						</td>
            					</tr>
            				</table>
            			</form>
            		</div>
            	</td>
            </tr>             
 <!-- 7 -->           
            <tr>
            	<td colspan="3">
            		<div id="notice_request_11">
            			<form>
            				
            				<input type="hidden" name="noticeRuleDTO.noticeRuleName" value="当请求处理完成时通知技术员" />
            				<input type="hidden" name="noticeRuleDTO.noticeRuleNo" value="notice_request_11" />
            				<input type="hidden" name="noticeRuleDTO.emailTemp" value="emailTemplates/notice_request_11.ftl" />
            				<table width="100%">
            					<tr>
            						<td width="40">
            						<input type="checkbox" id="notice_request_11_check" value="true" name="noticeRuleDTO.useStatus" onclick="noticeRule_opt('notice_request_11')" /></td>
            						<td><fmt:message key="setting.notitceRule.whenRequestCompleteNoticeTechnician"/></td>
            						<td align="right" style="padding-right: 20px;"><a href="#"></a></td>
            					</tr>
            					<tr>
            						<td width="40"></td>
            						<td><fmt:message key="label.request.theTechnician"/>：<input size="55" id="notice_request_11_technician"  name="noticeRuleDTO.technician" style="cursor:pointer" />
            						 <a class="easyui-linkbutton" plain="true" icon="icon-edit" onclick="selectNoticeUser('#notice_request_11_technician')"><fmt:message key="common.select" /></a>
            						 <a class="easyui-linkbutton" plain="true" icon="icon-save" onclick="noticeRule_opt('notice_request_11')"><fmt:message key="common.save" /></a>
            						
            						</td>
            					</tr>
            				</table>
            			</form>
            		</div>
            	</td>
            </tr>
			
            <tr><td colspan="3"><hr /></td></tr>
<!-- 8 -->            
            <tr>
            	<td colspan="3">
            		<div id="notice_request_06">
            			<form>
            				
            				<input type="hidden" name="noticeRuleDTO.noticeRuleName" value="指派请求时通过电子邮件通知技术员" />
            				<input type="hidden" name="noticeRuleDTO.noticeRuleNo" value="notice_request_06" />
            				<input type="hidden" name="noticeRuleDTO.emailTemp" value="emailTemplates/notice_request_06.ftl" />
            				<table width="100%">
            					<tr>
            						<td width="40"><input type="checkbox" id="notice_request_06_check" value="true" name="noticeRuleDTO.useStatus" onclick="noticeRule_opt('notice_request_06')" /></td>
            						<td><fmt:message key="setting.notitceRule.assignedRequestNoticeTechnicianByEmail"/></td>
            						<td align="right" style="padding-right: 20px;"><a href="#"></a></td>
            					</tr>
            				</table>
            			</form>
            		</div>
            	</td>
            </tr>
<!-- 9 -->
			<tr>
            	<td colspan="3">
            		<div id="notice_request_09">
            			<form>
            				
            				<input type="hidden" name="noticeRuleDTO.noticeRuleName" value="当请求添加到工作组时邮件通知组中的技术员" />
            				<input type="hidden" name="noticeRuleDTO.noticeRuleNo" value="notice_request_09" />
            				<input type="hidden" name="noticeRuleDTO.emailTemp" value="emailTemplates/notice_request_09.ftl" />
            				<table width="100%">
            					<tr>
            						<td width="40"><input type="checkbox" id="notice_request_09_check" value="true" name="noticeRuleDTO.useStatus" onclick="noticeRule_opt('notice_request_09')" /></td>
            						<td><fmt:message key="setting.notitceRule.assignedRequestToWorkTeamNoticeTechnicianByEmail"/></td>
            						<td align="right" style="padding-right: 20px;"><a href="#"></a></td>
            					</tr>
            				</table>
            			</form>
            		</div>
            	</td>
            </tr>
<!-- 10  -->	
            <tr>
            	<td colspan="3">
            		<div id="notice_request_07">
            			<form>
            				
            				<input type="hidden" name="noticeRuleDTO.noticeRuleName" value="当请求被用户重新打开时邮件通知技术员" />
            				<input type="hidden" name="noticeRuleDTO.noticeRuleNo" value="notice_request_07" />
            				<input type="hidden" name="noticeRuleDTO.emailTemp" value="emailTemplates/notice_request_07.ftl" />
            				<table width="100%">
            					<tr>
            						<td width="40"><input type="checkbox" id="notice_request_07_check" value="true" name="noticeRuleDTO.useStatus" onclick="noticeRule_opt('notice_request_07')" /></td>
            						<td><fmt:message key="setting.notitceRule.whenRequestRe-openByUserNoticeTechnicianByEmail"/></td>
            						<td align="right" style="padding-right: 20px;"><a href="#"></a></td>
            					</tr>
            					<tr><td width="40"></td><td><fmt:message key="label.request.theTechnician"/>：
								     <input size="55" id="notice_request_07_technician" name="noticeRuleDTO.technician" style="cursor:pointer" />
								     <a class="easyui-linkbutton" plain="true" icon="icon-edit" onclick="selectNoticeUser('#notice_request_07_technician')"><fmt:message key="common.select" /></a>
									 <a class="easyui-linkbutton" plain="true" icon="icon-save" onclick="noticeRule_opt('notice_request_07')"><fmt:message key="common.save" /></a>
								</td><td></td></tr> 
            				</table>
            			</form>
            		</div>
            	</td>
            </tr>
<!-- 11 -->
            <tr><td colspan="3"><hr /></td></tr>
            <tr>
            	<td colspan="3">
            		<div id="notice_request_08">
            			<form>
            				
            				<input type="hidden" name="noticeRuleDTO.noticeRuleName" value="当请求关闭时发送邮件到以下技术员" />
            				<input type="hidden" name="noticeRuleDTO.noticeRuleNo" value="notice_request_08" />
            				<input type="hidden" name="noticeRuleDTO.emailTemp" value="emailTemplates/notice_request_08.ftl" />
            				<table width="100%">
            					<tr>
            						<td width="40"><input type="checkbox" id="notice_request_08_check" value="true" name="noticeRuleDTO.useStatus" onclick="noticeRule_opt('notice_request_08')" /></td>
            						<td><fmt:message key="setting.notitceRule.whenRequestCloseNoticeTheFollowingTechnicianBySendEmail"/></td>
            						<td align="right" style="padding-right: 20px;"><a href="#"></a></td>
            					</tr>
            					<tr><td width="40"></td><td><fmt:message key="label.request.theTechnician"/>：
								     <input size="55" id="notice_request_08_technician" name="noticeRuleDTO.technician" style="cursor:pointer" />
								     <a class="easyui-linkbutton" plain="true" icon="icon-edit" onclick="selectNoticeUser('#notice_request_08_technician')"><fmt:message key="common.select" /></a>
									 <a class="easyui-linkbutton" plain="true" icon="icon-save" onclick="noticeRule_opt('notice_request_08')"><fmt:message key="common.save" /></a>
								</td><td></td></tr>  
            				</table>
            			</form>
            		</div>
            	</td>
            </tr>
        </table>
	</div>
	<!-- 变更start -->
	<div title="<fmt:message key="title.mainTab.change" />" style="padding: 5px;">
		<table width="100%" style="border:1px solid #CCC">
			<tr><td colspan="3"><strong><fmt:message key="setting.notitceRule.noticeTechnician"/></strong></td></tr>
<!-- 12 -->
			<tr>
				<td colspan="3">
					<div id="notice_change_12">
            			<form>
            				
            				<input type="hidden" name="noticeRuleDTO.noticeRuleName" value="变更被指派时通知技术员" />
            				<input type="hidden" name="noticeRuleDTO.noticeRuleNo" value="notice_change_12" />
            				<input type="hidden" name="noticeRuleDTO.emailTemp" value="emailTemplates/notice_change_12.ftl" />
            				<table width="100%">
            					<tr>
            						<td width="40"><input type="checkbox" id="notice_change_12_check" value="true" name="noticeRuleDTO.useStatus" onclick="noticeRule_opt('notice_change_12')" /></td>
            						<td><fmt:message key="lable.change.noticeAssignTechnicians" /></td>
            						<td align="right" style="padding-right: 20px;"><a href="#"></a></td>
            					</tr>
            				</table>
            			</form>
            		</div>
				</td>
			</tr>
<!-- 13 -->			
			<tr>
				<td colspan="3">
					<div id="notice_change_13">
            			<form>
            				
            				<input type="hidden" name="noticeRuleDTO.noticeRuleName" value="变更有任何审批动作时通知CAB" />
            				<input type="hidden" name="noticeRuleDTO.noticeRuleNo" value="notice_change_13" />
            				<input type="hidden" name="noticeRuleDTO.emailTemp" value="emailTemplates/notice_change_13.ftl" />
            				<table width="100%">
            					<tr>
            						<td width="40"><input type="checkbox" id="notice_change_13_check" value="true" name="noticeRuleDTO.useStatus" onclick="noticeRule_opt('notice_change_13')" /></td>
            						<td><fmt:message key="lable.change.noticeCAB" /></td>
            						<td align="right" style="padding-right: 20px;"><a href="#"></a></td>
            					</tr>
            				</table>
            			</form>
            		</div>
				</td>
			</tr>
<!-- 14 -->			
			<tr><td colspan="3"><hr /></td></tr>
            <tr>
            	<td colspan="3">
            		<div id="notice_change_14">
            			<form>
            			
            				<input type="hidden" name="noticeRuleDTO.noticeRuleName" value="新的变更创建时通知以下技术员" />
            				<input type="hidden" name="noticeRuleDTO.noticeRuleNo" value="notice_change_14" />
            				<input type="hidden" name="noticeRuleDTO.emailTemp" value="emailTemplates/notice_change_13.ftl" />
            				<table width="100%">
            					<tr>
            						<td width="40"><input type="checkbox" id="notice_change_14_check" value="true" name="noticeRuleDTO.useStatus" onclick="noticeRule_opt('notice_change_14')" /></td>
            						<td><fmt:message key="lable.change.newChangeNoticeTechnicians" /></td>
            						<td align="right" style="padding-right: 20px;"><a href="#"></a></td>
            					</tr>
            					<tr><td width="40"></td><td><fmt:message key="label.request.theTechnician"/>：
								     <input size="55" id="notice_change_14_technician" name="noticeRuleDTO.technician" style="cursor:pointer" />
								     <a class="easyui-linkbutton" plain="true" icon="icon-edit" onclick="selectNoticeUser('#notice_change_14_technician')"><fmt:message key="common.select" /></a>
									 <a class="easyui-linkbutton" plain="true" icon="icon-save" onclick="noticeRule_opt('notice_change_14')"><fmt:message key="common.save" /></a>
								</td><td></td></tr>  
            				</table>
            			</form>
            		</div>
            	</td>
            </tr>
			<tr><td colspan="3"><hr /></td></tr>
<!-- 15 -->			
			<tr>
            	<td colspan="3">
            		<div id="notice_change_15">
            			<form>
            				
            				<input type="hidden" name="noticeRuleDTO.noticeRuleName" value="变更被批准或拒绝时通知以下技术员" />
            				<input type="hidden" name="noticeRuleDTO.noticeRuleNo" value="notice_change_15" />
            				<input type="hidden" name="noticeRuleDTO.emailTemp" value="emailTemplates/notice_change_15.ftl" />
            				<table width="100%">
            					<tr>
            						<td width="40"><input type="checkbox" id="notice_change_15_check" value="true" name="noticeRuleDTO.useStatus" onclick="noticeRule_opt('notice_change_15')" /></td>
            						<td><fmt:message key="lable.change.approvalNoticeTechnicians" /></td>
            						<td align="right" style="padding-right: 20px;"><a href="#"></a></td>
            					</tr>
            					<tr><td width="40"></td><td><fmt:message key="label.request.theTechnician"/>：
								     <input size="55" id="notice_change_15_technician" name="noticeRuleDTO.technician" style="cursor:pointer" />
								     <a class="easyui-linkbutton" plain="true" icon="icon-edit" onclick="selectNoticeUser('#notice_change_15_technician')"><fmt:message key="common.select" /></a>
									 <a class="easyui-linkbutton" plain="true" icon="icon-save" onclick="noticeRule_opt('notice_change_15')"><fmt:message key="common.save" /></a>
								</td><td></td></tr>  
            				</table>
            			</form>
            		</div>
            	</td>
            </tr>
 
 <!-- 16 -->
            
            <tr><td colspan="3"><hr /></td></tr>
            <tr>
            	<td colspan="3">
            		<div id="notice_change_16">
            			<form>
            				
            				<input type="hidden" name="noticeRuleDTO.noticeRuleName" value="变更被关闭时通知以下技术员" />
            				<input type="hidden" name="noticeRuleDTO.noticeRuleNo" value="notice_change_16" />
            				<input type="hidden" name="noticeRuleDTO.emailTemp" value="emailTemplates/notice_change_16.ftl" />
            				<table width="100%">
            					<tr>
            						<td width="40"><input type="checkbox" id="notice_change_16_check" value="true" name="noticeRuleDTO.useStatus" onclick="noticeRule_opt('notice_change_16')" /></td>
            						<td><fmt:message key="lable.change.changeCloseNoticeTechnicians" /></td>
            						<td align="right" style="padding-right: 20px;"><a href="#"></a></td>
            					</tr>
            					<tr><td width="40"></td><td><fmt:message key="label.request.theTechnician"/>：
								     <input size="55" id="notice_change_16_technician" name="noticeRuleDTO.technician" style="cursor:pointer" />
								     <a class="easyui-linkbutton" plain="true" icon="icon-edit" onclick="selectNoticeUser('#notice_change_16_technician')"><fmt:message key="common.select" /></a>
									 <a class="easyui-linkbutton" plain="true" icon="icon-save" onclick="noticeRule_opt('notice_change_16')"><fmt:message key="common.save" /></a>
								</td><td></td></tr>  
            				</table>
            			</form>
            		</div>
            	</td>
            </tr>
<!-- 17  -->            
            <tr><td colspan="3"><hr /></td></tr>
            <tr>
            	<td colspan="3">
            		<div id="notice_change_17">
            			<form>
            				
            				<input type="hidden" name="noticeRuleDTO.noticeRuleName" value="变更被关闭时通知CMDB" />
            				<input type="hidden" name="noticeRuleDTO.noticeRuleNo" value="notice_change_17" />
            				<input type="hidden" name="noticeRuleDTO.emailTemp" value="emailTemplates/notice_change_17.ftl" />
            				<table width="100%">
            					<tr>
            						<td width="40"><input type="checkbox" id="notice_change_17_check" value="true" name="noticeRuleDTO.useStatus" onclick="noticeRule_opt('notice_change_17')" /></td>
            						<td><fmt:message key="lable.change.changeCloseNoticeCMDB" /></td>
            						<td align="right" style="padding-right: 20px;"><a href="#"></a></td>
            					</tr>
            					<tr><td width="40"></td><td><fmt:message key="label.request.theTechnician"/>：
								     <input size="55" id="notice_change_17_technician" name="noticeRuleDTO.technician" style="cursor:pointer" />
								     <a class="easyui-linkbutton" plain="true" icon="icon-edit" onclick="selectNoticeUser('#notice_change_17_technician')"><fmt:message key="common.select" /></a>
									 <a class="easyui-linkbutton" plain="true" icon="icon-save" onclick="noticeRule_opt('notice_change_17')"><fmt:message key="common.save" /></a>
								</td><td></td></tr>  
            				</table>
            			</form>
            		</div>
            	</td>
            </tr>
            
			
		</table>
		
	</div>
	<!-- 变更 end-->
</div> 	


<!-- 选择用户窗口 -->
<div id="noticeRule_select_user_win" class="easyui-window"  closed="true" collapsible="false" minimizable="false" maximizable="false" modal="true" title="<fmt:message key="tool.im.selectUser" />" style="width:750px;height:450px;padding:5px">
    <div class="easyui-layout" style="width:725px;height:400px;">
			<div region="west" split="true" style="width:200px;">
			 	<div id="noticeRule_selectOrgTree"></div>
			</div>
			<div region="center" border="false">
				<table id="noticeRule_selectUserGrid"></table>
				<div id="noticeRule_selectUserGridPager"></div>
			</div>
	</div>
</div>

