<%@ 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" %>


<%
String keyWord="";
if(request.getParameter("keyWord")!=null){
	keyWord=new String(request.getParameter("keyWord").getBytes("iso8859-1"),"utf-8"); 
}
%>

<script>
var sec_editRequest="0";
var sec_deleteRequest="0";
var userName="${loginUserName}";
var keyWord="<%=keyWord%>";
var countQueryType='${param.countQueryType}'
var currentUser='${param.currentUser}'
var request_fullSearchFlag='${param.fullsearch}';
</script>
<script src="../scripts/itsm/request/requestMain.js?random=<%=new java.util.Date().getTime()%>"></script>


<sec:authorize url="/pages/request!updateRequest.action">
<script>sec_editRequest="1";</script>
</sec:authorize>
<sec:authorize url="/pages/request!deleteRequests.action">
<script>sec_deleteRequest="1";</script>
</sec:authorize>

<div class="loading" id="requestMain_loading"><img src="../images/icons/loading.gif" /></div>

<div class="content" id="requestMain_content">
   	<table id="requestGrid"></table>
    <div id="requestGridPager"></div>
    <div id="requestGridToolbar" style="display: none">
    <sec:authorize url="/pages/request!saveRequest.action">
	<a class="easyui-linkbutton" plain="true" icon="icon-add" id="addRequestBtn"><fmt:message key="common.add" /></a>
	</sec:authorize>
	<sec:authorize url="/pages/request!updateRequest.action">
	<a class="easyui-linkbutton" plain="true" icon="icon-edit" id="editRequestBtn"><fmt:message key="common.edit" /></a> 
	</sec:authorize>
	<sec:authorize url="/pages/request!deleteRequests.action">
	<a class="easyui-linkbutton" plain="true" icon="icon-cancel" id="deleteRequestBtn"><fmt:message key="common.delete" /></a> 
	</sec:authorize>
	<a class="easyui-linkbutton" plain="true" icon="icon-search"id="searchRequestBtn"><fmt:message key="common.search" /></a>

	
	&nbsp;&nbsp; | <fmt:message key="label.dc.export"/>：
	<select onchange="itsm.request.requestMain.exportRequestData()" id="exportData">
	<option value="chooseExportType">--<fmt:message key="label.dc.chooseExportStyle"/>--</option>
	<option value="view"><fmt:message key="label.dc.exportCurrentView"/></option>
	</select>



	&nbsp;|&nbsp;<a class="easyui-linkbutton" plain="true" id="request2problem" icon="icon-redo"><fmt:message key="label.problem.submitProblem" /></a>
	&nbsp;|&nbsp;<a class="easyui-linkbutton" plain="true" id="submitChangeBtn_list" icon="icon-redo"><fmt:message key="title.change.submit" /></a>
	

	</div>

<!-- 操作项html -->
<div id="requestGridFormatterDiv" style="display: none;"><a href="JavaScript:itsm.request.requestMain.requestDetails_aff()" title="<fmt:message key="common.detailInfo" />"><img src="../images/icons/pencil.png" border="0" /></a>&nbsp;&nbsp;<a href="javascript:itsm.request.requestMain.editRequest_aff()" title="<fmt:message key="common.edit" />"><img src="../images/icons/edit.gif" border="0"/></a>&nbsp;&nbsp;<a href="javascript:itsm.request.requestMain.deleteRequest_aff()" title="<fmt:message key="common.delete" />"><img src="../images/icons/delete.gif" border="0"/></a></div>	

<!-- 搜索请求 -->
<div id="searchRequestWindow" class="easyui-window" closed="true" collapsible="false" minimizable="false" maximizable="false" modal="false" title="<fmt:message key="title.request.searchRequest" />" style="width:380px; height:auto">
<form>
<input type="hidden" name="requestQueryDTO.countQueryType" id="request_countQueryType" />
<input type="hidden" name="requestQueryDTO.currentUser" id="request_currentUser" />
<div class="lineTableBgDiv">
  <table style="width:100%" class="lineTable" cellspacing="1">
	
	<tr>
		<td><fmt:message key="common.category" /></td>
		<td>
			<input type="hidden" id="searchRequest_ecategoryNo" name="requestQueryDTO.ecategoryNo" >
			<input id="searchRequest_ecategoryName" style="width: 75%" readonly >
			<a onclick="cleanIdValue('searchRequest_ecategoryNo','searchRequest_ecategoryName')"><fmt:message key="label.request.clear" /></a>
		</td>
	</tr>
	<tr>
		<td><fmt:message key="common.id" /></td>
		<td>
			<input id="searchRequest_requestCode" name="requestQueryDTO.requestCode" class="input">
		</td>
	</tr>
	
	<tr>
		<td><fmt:message key="common.title" /></td>
		<td>
			<input name="requestQueryDTO.etitle" class="input" />
		</td>
	</tr>
	<tr>
		<td><fmt:message key="common.state" /></td>
		<td>
			<select id="searchRequest_statusNo" name="requestQueryDTO.statusNo" class="input">
			<option value=""></option>
			</select>
		</td>
	</tr>
	<tr>
	  	<td><fmt:message key="label.dateRange" /></td>
	  	<td>
	  		<input id="request_search_startTime"  name="requestQueryDTO.startTime" class="easyui-datebox"  style="width:80px"/>&nbsp;<fmt:message key="setting.label.to" />
	         &nbsp;<input id="request_search_endTime" name="requestQueryDTO.endTime" class="easyui-datebox easyui-validatebox"  style="width:80px" validType="DateComparison['request_search_startTime']"/>
	  		</td>
	 </tr>
	<tr>
		<td colspan="2">
			<input type="hidden" name="requestQueryDTO.keyWord" id="requestQueryDTO_keyWord">
			<a id="doSearchRequestBtn" class="easyui-linkbutton" icon="icon-search" style="margin-top: 8px;"><fmt:message key="common.search" /></a>
		</td>
	</tr>
</table>
</div>
</form>
</div>

<div style="display: none;" id="exportRequestWindow">
   <form action="request!exportRequest.action" method="post">
     <table>
     <tr>
		<td>
			<input id="exportRq_requestCode" name="requestQueryDTO.requestCode" class="input">
			<input id="exportRq_statusNo" name="requestQueryDTO.statusNo" class="input">
			<input id="exportRq_etitle" name="requestQueryDTO.etitle" class="input">
			<input id="exportRq_ecategoryNo" name="requestQueryDTO.ecategoryNo" class="input">
			
			
			<input id="exportRq_sidx" name="sidx" class="input">
			<input id="exportRq_sord" name="sord" class="input">
			<input id="exportRq_page" name="page" class="input">
			<input id="exportRq_rows" name="rows" class="input">
		</td>
	</tr>
     </table>
   </form>
</div>


<!-- 请求分类 -->
			<div id="search_request_select_category_window" class="easyui-window"  closed="true" collapsible="false" minimizable="false" maximizable="false" modal="true" title="<fmt:message key="title.request.chooseRequestCategory" />" style="width:200px;height:400px;padding:2px;">
				<div id="search_request_select_category_tree"></div>
			</div>

</div>	






