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




<script>

setTimeout(function(){
	
	$.parser.parse($('#fastCreateDiv'));
	$.parser.parse($('#request_fullSearch'));
	
},10);

</script>

<div class="musp"><fmt:message key="label.fullsearch.fullsearch" /></div>
<div id="request_fullSearch">


<table width="96%" border="0" align="center" style="margin-top:5px;margin-bottom:5px">
<tr>
<td>
<input type="radio" value="request" name="lf_request_fullSearch_type" checked><fmt:message key="title.mainTab.request" />
<input type="radio" value="problem" name="lf_request_fullSearch_type"><fmt:message key="title.mainTab.problem" />
<input type="radio" value="change" name="lf_request_fullSearch_type"><fmt:message key="title.mainTab.change" />
</td>
</tr>

<tr>
<td><input class="input" id="lf_request_fullSearchKeyWord"></td>
</tr>

<tr>
<td><a class="easyui-linkbutton" onclick="itsm.compass.fullSearch.setFullsearchValue('#lf_request_fullSearchKeyWord','lf_request_fullSearch_type')" style="border:#99bbe8 1px solid" plain="true" icon="icon-search"><fmt:message key="common.search" /></a></td>
</tr>
</table>




</div>





<div class="musp"><fmt:message key="title.request.requestCount" /></div>
<div style="padding:5px; line-height:22px">
<sec:authorize url="AllRquest_Res">
	<!-- 所有请求列表 -->
	<a style="cursor:pointer" onClick="javascript:showRequestIndex()"><fmt:message key="title.request.allRequest" /></a> 
	<span style="color: #F00" id="allRequest">Loading...</span>
	<br />
</sec:authorize>
<sec:authorize url="MyRequest_Res">
	<!-- 我提出的请求 -->
	<a style="cursor:pointer" onClick="javascript:itsm.request.requestStats.requestCountSearch('myProposedRequest')"><fmt:message key="title.request.myRequest" /></a> 
	<span style="color: #F00" id="myProposedRequest">Loading...</span><br />
</sec:authorize>
	
<sec:authorize url="MyGrRquest_Res">
	<!-- 我组提出的请求 -->
	<a style="cursor:pointer" onClick="javascript:itsm.request.requestStats.requestCountSearch('myGroupProposedRequest')"><fmt:message key="title.request.myGroupProposedRequest" /></a> 
	<span style="color: #F00" id="myGroupProposedRequest">Loading...</span>
	<br />
</sec:authorize>


<sec:authorize url="MyPeRquest_Res">
	<!-- 指派给我的请求 -->
	<a style="cursor:pointer" onClick="javascript:itsm.request.requestStats.requestCountSearch('assigneeToMyRequest')"><fmt:message key="title.request.assignToMeRequest" /></a> 
	<span style="color: #F00" id="assigneeToMyRequest">Loading...</span>
	<br />
</sec:authorize>

<sec:authorize url="MyPeRquest_Res">
	<!-- 指派给我们组的请求 -->
	<a style="cursor:pointer" onClick="javascript:itsm.request.requestStats.requestCountSearch('assigneeGroupRequest')"><fmt:message key="title.request.myGroupRequest" /></a> 
	<span style="color: #F00" id="assigneeGroupRequest">Loading...</span>
	<br />
</sec:authorize>


<sec:authorize url="MyOwRquest_Res">
	<!-- 我负责的请求 -->
	<a style="cursor:pointer" onClick="javascript:itsm.request.requestStats.requestCountSearch('myOwnerRequest')"><fmt:message key="title.request.myChargeRequest" /></a> 
	<span style="color: #F00" id="myOwnerRequest">Loading...</span>
	<br />
</sec:authorize>




<sec:authorize url="MyRequestTask_Res">
	<!-- 我的任务-->
	<a style="cursor:pointer" onClick="javascript:itsm.common.utility.tabUtility.addTab('<fmt:message key="title.myProcessTask" />','request/myRequestTask.jsp')"><fmt:message key="title.myProcessTask" /></a> 
	<span style="color: #F00" id="myRequestTask">Loading...</span>
	<br>
</sec:authorize>


<sec:authorize url="MyGroupRequestTask_Res">
	<!-- 我们组的任务-->
	<a style="cursor:pointer" onClick="javascript:itsm.common.utility.tabUtility.addTab('<fmt:message key="title.myGroupProcessTask" />','request/myGroupRequestTask.jsp')"><fmt:message key="title.myGroupProcessTask" /></a> 
	<span style="color: #F00" id="myGroupRequestTask">Loading...</span>
</sec:authorize>

</div>
<div class="musp"><fmt:message key="title.mainTab.request" /> - <fmt:message key="common.fastCreate" /></div>
<div id="fastCreateDiv">
<form>
<input type="hidden" name="requestDTO.technicianName" value="${loginUserName}"  />
<input type="hidden" name="requestDTO.createdByName" value="${loginUserName}"  />
<table width="96%" border="0" align="center" style="margin-top:5px">

	<tr>
		<td><fmt:message key="common.title" /></td>
	</tr>
	<tr>
		<td>
			<input name="requestDTO.etitle" id="fastCreateEtitle" class="easyui-validatebox input" required="true" validType="length[1,200]"/>
		</td>
	</tr>
	<tr><td><fmt:message key="common.content" /></td></tr>
	<tr>
		<td>
			<textarea  name="requestDTO.edesc" id="fastCreateEdesc" class="easyui-validatebox textarea" required="true" validType="length[5,200]"/></textarea>
		</td>
	</tr>
	<tr>
		<td>
			
			<a class="easyui-linkbutton" style="border:#99bbe8 1px solid" plain="true" icon="icon-save" onclick="fastCreateRequest()"><fmt:message key="common.save" /></a>
		</td>
	</tr>
</table>
</form>
</div>
