<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>   
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ include file="../language.jsp" %>
<script>
var change_fullSearchFlag='${param.fullsearch}';
</script>
<script src="../scripts/itsm/change/change.js?random=<%=new java.util.Date().getTime()%>"></script>



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

	<!-- 变更列表 -->
	<table id="changeGrid"></table>
	<div id="changePager"></div>
	
	<!-- 工具 -->
	<div id="changeGridToolbar" style="display:none">
		<sec:authorize url="/pages/change!saveChange.action">
			<a class="easyui-linkbutton" plain="true" icon="icon-add" id="change_add_but"><fmt:message key="common.add"/></a>
		</sec:authorize>
		<sec:authorize url="/pages/change!editChangeBaseInfo.action">
			<a class="easyui-linkbutton" plain="true" icon="icon-edit" id="change_edit_but"><fmt:message key="common.edit"/></a>
		</sec:authorize>
		<sec:authorize url="/pages/change!deleteChange.action">
			<a class="easyui-linkbutton" plain="true" icon="icon-cancel" id="change_delete_but"><fmt:message key="common.delete"/></a>
		</sec:authorize>
		
		<a class="easyui-linkbutton" plain="true" icon="icon-search" id="change_search_but"><fmt:message key="common.search"/></a>
		 &nbsp;&nbsp; | <fmt:message key="common.state" />：<select id="changeStatusQuery"  onchange="itsm.change.change.getChangeByChangeStatus(this.value)"></select>
	   
	    &nbsp;&nbsp; | <fmt:message key="label.dc.export"/>：
		<select onchange="itsm.change.change.exportChangeData()" id="exportChangeData">
		<option value="chooseExportType">--<fmt:message key="label.dc.chooseExportStyle"/>--</option>
		<option value="view"><fmt:message key="label.dc.exportCurrentView"/></option>
		</select>
	</div>
	<!-- 狀態搜索表單 -->
	<div id="statusSearchForm" ><form><input type="hidden" name="queryDTO.statusNo" id="statusSearchId"/></form></div>
	<!-- 操作项 -->
	<div id="changeActFormatterDiv" style="display: none;"><a href="JavaScript:itsm.change.change.changeDetails_aff()" title="<fmt:message key="common.detailInfo" />"><img src="../images/icons/pencil.png" border="0" /></a>&nbsp;&nbsp;<a href="javascript:itsm.change.change.change_edit_aff()" title="<fmt:message key="common.edit" />"><img src="../images/icons/edit.gif" border="0"/></a>&nbsp;&nbsp;<a href="javascript:itsm.change.change.change_delete_aff()" title="<fmt:message key="common.delete" />"><img src="../images/icons/delete.gif" border="0"/></a></div>	
	
	<!-- 搜索 -->
	<div id="change_search_win" class="easyui-window" closed="true" collapsible="false" minimizable="false" maximizable="false" modal="false" title="<fmt:message key="common.search" />" style="width: 400px; height:auto;">
		<form>
			<div class="lineTableBgDiv" >
       			<table style="width:100%" class="lineTable" cellspacing="1">
       			<tr>
					<td><fmt:message key="common.category" /></td>
					<td>
					<input type="hidden" id="searchChange_categoryNo" name="queryDTO.categoryNo" >
					<input id="searchChange_categoryName" style="width: 75%" readonly >
					<a onclick="cleanIdValue('searchChange_categoryNo','searchChange_categoryName')"><fmt:message key="label.request.clear" /></a>
					</td>
				</tr>
				<tr>
					<td><fmt:message key="common.no" /></td>
					<td>
						<input name="queryDTO.changeNo" class="input" /> 
					</td>
				</tr>
				<tr>
					<td><fmt:message key="common.title" /></td>
					<td>
						<input name="queryDTO.changeTitle" class="input" />
					</td>
				</tr>
				<tr>
					<td><fmt:message key="common.state" /></td>
					<td>
						<select id="change_search_state" name="queryDTO.statusNo" class="input">
						</select>
					</td>
				</tr>
				<tr>
					<td><fmt:message key="label.request.priority" /></td>
					<td>
						<select id="change_search_priority" name="queryDTO.priorityNo" class="input">
						</select>
					</td>
				</tr>
				<tr>
	  				<td><fmt:message key="label.dateRange" /></td>
	  				<td>
	  					<input id="change_search_startTime"  name="queryDTO.startTime" class="easyui-datebox"  style="width:80px"/>&nbsp;<fmt:message key="setting.label.to" />
	        			&nbsp;<input id="change_search_endTime" name="queryDTO.endTime" class="easyui-datebox easyui-validatebox"  style="width:80px" validType="DateComparison['change_search_startTime']"/>
	  				</td>
	 			</tr>
				<tr>
					<td colspan="2">
						<a id="doSearchChangeBut" class="easyui-linkbutton" icon="icon-search" ><fmt:message key="common.search" /></a>
					</td>
				</tr>
			</table>
			</div>
		</form>
	</div>
	
	
	<div style="display: none;" id="exportChangeWindow">
	   <form action="change!exportChange.action" method="post">
	     <table>
	     <tr>
			<td>
				<input id="exportChange_changeNo" name="queryDTO.changeNo" class="input">
				<input id="exportChange_changeTitle" name="queryDTO.changeTitle" class="input">
				<input id="exportChange_statusName" name="queryDTO.statusName" class="input">
				<input id="exportChange_priorityName" name="queryDTO.priorityName" class="input">
				
				<input id="exportChange_sidx" name="sidx" class="input">
				<input id="exportChange_sord" name="sord" class="input">
				<input id="exportChange_page" name="page" class="input">
				<input id="exportChange_rows" name="rows" class="input">
			</td>
		</tr>
	     </table>
	   </form>
    </div>
	
</div>