<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ include file="../language.jsp" %>

<script> var _rulePackageNo = ${param.rulePackageNo};</script>
<script> var tag = '${param.tag}';</script>
<script src="../scripts/itsm/rules/ruleMain.js"></script>

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

<div id="ruleMain_content" style="padding:3px;display:none">


<table id="rulesGrid"></table>
<div id="rulesGridPager" ></div>
<div id="rulesGridToolbar" style="display: none">
<sec:authorize url="/pages/callBusinessRuleSet!save.action">
<a class="easyui-linkbutton" plain="true" icon="icon-add" id="rulesGrid_add" ><fmt:message key="common.add" /></a>
</sec:authorize>

<sec:authorize url="/pages/callBusinessRuleSet!merge.action">
<a class="easyui-linkbutton" plain="true" icon="icon-edit" id="rulesGrid_edit"><fmt:message key="common.edit" /></a> 
</sec:authorize>

<sec:authorize url="/pages/callBusinessRule!delete.action">
<a class="easyui-linkbutton" plain="true" icon="icon-cancel" id="rulesGrid_delete"><fmt:message key="common.delete" /></a> 
</sec:authorize>

<sec:authorize url="/pages/callBusinessRule!findRules.action">
<a class="easyui-linkbutton" plain="true" icon="icon-search" id="rulesGrid_search"><fmt:message key="common.search" /></a>
</sec:authorize>

</div>


<!-- 搜索 -->
<div id="searchRuleDiv"  class="easyui-window" closed="true" collapsible="false" minimizable="false" maximizable="false" title="<fmt:message key="title.rule.searchRule" />" style="width:400px;height:auto">
	<form>
   <div class="lineTableBgDiv">
		<table style="width:100%" class="lineTable" cellspacing="1">
        <tr>
            <td width="100px">
          <fmt:message key="label.rule.ruleName" />
            </td>
            <td>
           <input name="ruleQueryDTO.ruleName" id="ruleQueryDTO_ruleName" class="input" />
            </td>
        </tr>
       <tr>
            <td width="100px">
           <fmt:message key="label.rule.ruleDecription" />
            </td>
            <td>
           <input name="ruleQueryDTO.description" id="ruleQueryDTO_description" class="input" />
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <a id="rulesGrid_doSearch" class="easyui-linkbutton" icon="icon-search"><fmt:message key="common.search" /></a>
        </td>
        </tr>
    </table>
    </div>
    </form>
</div>









<!-- 选择服务机构 -->
<div id="ruleSelectServiceOrgDiv" title="<fmt:message key="title.rule.chooseServiceOrg" />" class="easyui-window"  closed="true" collapsible="false" minimizable="false" maximizable="false" modal="true" style="width:200px;height:280px; padding:10px; line-height:20px;" >
	
	
	<div id="ruleSelectServiceOrg"></div>
	
</div>












</div>




