<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.text.SimpleDateFormat"%>
<%@ page import="java.util.Date" %>
<%@ page import="org.apache.struts2.ServletActionContext" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ page import="com.opensymphony.xwork2.ActionContext" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ include file="../language.jsp" %>


<script>
var queryString="${requestDetailDTO.etitle}";
</script>

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


<div class="loading" id="requestDetail_loading"><img src="../images/icons/loading.gif" /></div>
	
<div id="requestDetail_contentPanel" class="easyui-panel content" fit="true" border="none">

	<input type="hidden" id="requestDetailStatusNo" value="${requestDetailDTO.statusNo }" />
	<input type="hidden" id="requestDetails_requestNo" value="${requestDetailDTO.eno}"/>
	<input type="hidden" id="rquestDetailCreatedByEmail" value="${requestDetailDTO.createdByEmail}"/>
	<div class="easyui-layout" fit="true">
	<!-- 新的面板 start-->
	
	<div region="north"  border="false" class="panelTop">
		
		
		
		<div align="left">
		<s:if test="requestDetailDTO.closeTime!=null"></s:if>
           	<fmt:message key="label.request.requestAction" />&nbsp;:&nbsp;
           	<sec:authorize url="RequestApproval_Res">
           		<s:if test="requestDetailDTO.approvalState=='待审批'">
           			<a onclick="itsm.request.requestAction.openRequestActionWin('requestApproval_win')"><img alt="" src="../images/icons/status_invisible.gif">&nbsp;<fmt:message key="label.request.requestApproval" /></a>
           		</s:if>	
            </sec:authorize>	
            
           	<s:if test="requestDetailDTO.responsesTime==null">
           		<sec:authorize url="RequestDeal_Res">
           			<s:if test="requestDetailDTO.approvalState=='已审批' || requestDetailDTO.approvalState==null">
                		<a onclick="itsm.request.requestAction.openRequestActionWin('requestDeal_win')"><img alt="" src="../images/icons/navigate_right_10.gif"><fmt:message key="label.request.startRequestDeal" /></a>
               		</s:if>
               	</sec:authorize>
            </s:if>
            
            <s:elseif test="requestDetailDTO.closeTime==null">
            	<sec:authorize url="RequestDeal_Res">
               		<s:if test="requestDetailDTO.assigneeName==null">
           				<a onclick="itsm.request.requestAction.openRequestActionWin('requestGet_win')"><img alt="" src="../images/icons/navigate_right_10.gif">&nbsp;<fmt:message key="label.request.requestExtraction" /></a>
            		</s:if>
            	</sec:authorize>
            	<sec:authorize url="RequestDeal_Res">
            		<s:if test="requestDetailDTO.requestResolvedTime!=null">	
	            		<a onclick="itsm.request.requestAction.openRequestActionWin('requestReOpen_win')"><img alt="" src="../images/icons/navigate_right_10.gif">&nbsp;<fmt:message key="label.request.reStartRequest" /></a>
            		</s:if>
            	</sec:authorize>
               
               	<s:iterator value="outcomesSet" id="outcomes">
               		<sec:authorize url="RequestAssignTwo_Res">
						<s:if test="%{#outcomes=='指派二线'}">
							<a onclick="itsm.request.requestAction.openRequestActionWin('requestAssignTwo_win')"><img alt="" src="../images/icons/bullet_inprogress.gif">&nbsp;<fmt:message key="label.request.assignedToSecondlineTechnician" /></a>
						</s:if>
					</sec:authorize>
					<sec:authorize url="RequestAssignThree_Res">
						<s:if test="%{#outcomes=='指派三线'}">
							<a onclick="itsm.request.requestAction.openRequestActionWin('requestAssignThree_win')"><img alt="" src="../images/icons/bullet_inprogress.gif">&nbsp;<fmt:message key="label.request.assignedToThirdlineTechnician" /></a>
						</s:if>
					</sec:authorize>	
					<sec:authorize url="RequestAssignFour_Res">
						<s:if test="%{#outcomes=='指派四线'}">
							<a onclick="itsm.request.requestAction.openRequestActionWin('requestAssignFour_win')"><img alt="" src="../images/icons/bullet_inprogress.gif">&nbsp;<fmt:message key="label.request.assignedFourthlineEngineer" /></a>
						</s:if>
					</sec:authorize>	
					<sec:authorize url="RequestAssign_Res">
						<s:if test="%{#outcomes=='请求指派'}">
							<a onclick="itsm.request.requestAction.openRequestActionWin('requestAssign_win')"><img alt="" src="../images/icons/bullet_inprogress.gif">&nbsp;<fmt:message key="label.request.requestAssign" /></a>
						</s:if>
					</sec:authorize>	
				</s:iterator>
               	<!-- 已指派组-->
               	<sec:authorize url="RequestAgainAssign_Res">
	               	<s:if test="requestDetailDTO.assigneeGroupName!=null || requestDetailDTO.assigneeName!=null">
	               		<s:if test="requestDetailDTO.requestResolvedTime==null">
	               			<a onclick="itsm.request.requestAction.openRequestActionWin('requestAgainAssign_win')"><img alt="" src="../images/icons/bullet_inprogress.gif">&nbsp;<fmt:message key="label.request.requestAssignAgain" /></a>
	               		</s:if>	
	               	</s:if>
               	</sec:authorize>	
               	
               	<sec:authorize url="RequestDeal_Res">
	               	<s:if test="requestDetailDTO.assigneeGroupName!=null && requestDetailDTO.assigneeName!=null">
	            		<s:if test="requestDetailDTO.requestResolvedTime==null">
	            			<a onclick="itsm.request.requestAction.openRequestActionWin('requestBackGroup_win')"><img alt="" src="../images/icons/navigate_right_10.gif">&nbsp;<fmt:message key="label.request.requestBackToGroup" /></a>
	            		</s:if>	
	               	</s:if>
               	</sec:authorize>
               	
               	<sec:authorize url="RequestBack_Res">
		            <s:iterator value="outcomesSet" id="outcomes">
						<s:if test="%{#outcomes=='请求退回'}">
							<a onclick="itsm.request.requestAction.openRequestActionWin('requestBack_win')"><img alt="" src="../images/icons/navigate_right_10.gif">&nbsp;<fmt:message key="label.request.backToFirstLine" /></a>
						</s:if>
					</s:iterator>
	            </sec:authorize>
	            
	            <a onclick="itsm.request.requestAction.openRequestActionWin('requestDealRemark_win')"><img alt="" src="../images/icons/navigate_right_10.gif"><fmt:message key="label.request.processMark" /></a>
	            
	            <sec:authorize url="RequestDealComplete_Res">
		            <s:iterator value="outcomesSet" id="outcomes">
						<s:if test="%{#outcomes=='处理完成'}">
							<a onclick="itsm.request.requestAction.openRequestActionWin('requestDealComplete_win')"><img alt="" src="../images/icons/bullet_done.gif">&nbsp;<fmt:message key="label.request.processComplete" /></a>
						</s:if>
					</s:iterator>
				</sec:authorize>	
				<!-- 处理完成 -->
	            <s:if test="requestDetailDTO.requestResolvedTime==null">
	            	<sec:authorize url="RequestUpgradeApply_Res">
	            		<a onclick="itsm.request.requestAction.openRequestActionWin('requestUpgradeApply_win')"><img alt="" src="../images/icons/bullet_creme.gif">&nbsp;<fmt:message key="label.request.upgradeApplication" /></a>
	            	</sec:authorize>
	            	<sec:authorize url="RequestUpgrade_Res">	
	           	 		<a onclick="itsm.request.requestAction.openRequestActionWin('requestUpgrade_win')"><img alt="" src="../images/icons/bullet_creme.gif">&nbsp;<fmt:message key="label.request.requestUpdate" /></a>
	           	 	</sec:authorize>	
	           	</s:if> 	
	           
	           	<sec:authorize url="RequestClose_Res">
		            <s:iterator value="outcomesSet" id="outcomes">
						<s:if test="%{#outcomes=='请求关闭'}">
							<a onclick="itsm.request.requestAction.requestClose_win()"><img alt="" src="../images/icons/navigate_right_10.gif"><fmt:message key="label.request.requestClose" /></a>
						</s:if>
					</s:iterator>
				</sec:authorize>	
		   </s:elseif>
		   
		   <s:else>
		   		<sec:authorize url="RequestVisit_Res">
		       		<s:if test="requestDetailDTO.closeTime!=null">
		       			<s:if test="requestDetailDTO.visitRecord==null">
		           			<a onclick="itsm.request.requestAction.requestVisit_win()"><img alt="" src="../images/icons/navigate_right_10.gif"><fmt:message key="label.request.requestVisit" /></a>
		           		</s:if>	
		       		</s:if>
	       		</sec:authorize>	
	       </s:else>
	       &nbsp;|&nbsp;<a class="easyui-linkbutton" plain="true" id="request_email_reply" icon="icon-edit"><fmt:message key="label.email.reply" /></a>
	       &nbsp;|&nbsp;<a icon="icon-search" class="easyui-linkbutton" plain="true"  style="margin-right:10px;" onclick="trace('${requestDetailDTO.pid}')"><fmt:message key="label.request.processTracking" /></a>
	       &nbsp;|&nbsp;<a class="easyui-linkbutton" plain="true" id="request_detail_2problem" icon="icon-redo"><fmt:message key="label.problem.submitProblem" /></a>
		   &nbsp;|&nbsp;<a class="easyui-linkbutton" plain="true" id="submitChangeBtn_info" icon="icon-redo"><fmt:message key="title.change.submit" /></a>
		   &nbsp;|&nbsp;
		   <sec:authorize url="/pages/request!updateRequest.action">
			 <a class="easyui-linkbutton" plain="true" icon="icon-edit" id="requestDetails_edit_but"><fmt:message key="common.edit" /></a> 
		   </sec:authorize>
		   
		   
		    &nbsp;|&nbsp;<a id="searchSimilarRequest_btn" class="easyui-linkbutton" plain="true" icon="icon-search"><fmt:message key="label.fullsearch.searchRelatedItems" /></a>
		   
		   
		   
		   
		   
		   
		   
		   
		   
		</div>
	</div>
	<div region="west" id="requestDetails_west" split="true" title="<fmt:message key="common.basicInfo" />" style="width:450px">
		<div class="lineTableBgDiv">
		<table style="width:100%" class="lineTable" cellspacing="1">
				<tr>
					<td style="width:40%"><fmt:message key="common.id" /></td>
					<td style="width:60%">${requestDetailDTO.requestCode}
					<input type="hidden" id="requestCode" value="${requestDetailDTO.requestCode}" />
					</td>
					
				</tr>
				<tr>
					<td><fmt:message key="common.title" /></td>
					<td>${requestDetailDTO.etitle}</td>
				</tr>
				<tr>
					<td><fmt:message key="common.content" /></td>
					<td><div style="word-break:break-all">${requestDetailDTO.edesc}</div></td>
				</tr>
				<tr>
					<td><fmt:message key="common.state" /></td>
					<td>${requestDetailDTO.statusName}
					</td>
				</tr>	
				<tr>
					<td><fmt:message key="common.category" /></td>
					<td>${requestDetailDTO.requestCategoryName}</td>
				</tr>
				<tr>	
					<td><fmt:message key="label.request.form" /></td>
					<td>${requestDetailDTO.imodeName}</td>
				</tr>
				<tr>
					<td><fmt:message key="label.request.priority" /></td>
					<td>${requestDetailDTO.priorityName}</td>
				</tr>
				<tr>
					<td><fmt:message key="label.request.complexity" /></td>
					<td>${requestDetailDTO.levelName}</td>
				</tr>	
				<tr>
					<td><fmt:message key="label.request.effect" /></td>
					<td>${requestDetailDTO.effectRangeName}</td>
				</tr>
				<tr>	
					<td><fmt:message key="label.request.seriousness" /></td>
					<td>${requestDetailDTO.seriousnessName}</td>
				</tr>
				<tr>	
					<td><fmt:message key="label.request.requestUpdateTo" /></td>
					<td>${requestDetailDTO.ownerName}</td>
				</tr>
				
				<tr>
					<td><fmt:message key="label.request.slaReuqestTime" /></td>
					<td>${requestDetailDTO.maxResponsesTime}</td>
				</tr>
				<tr>
					<td><fmt:message key="label.request.slaCompleteTime" /></td>
					<td>${requestDetailDTO.maxCompletesTime}</td>
				</tr>
				<tr>
					<td><fmt:message key="common.cerateTime" /></td>
					<td><fmt:formatDate type="date" value="${requestDetailDTO.createdOn}"  pattern="yyyy-MM-dd HH:mm:ss" /></td>
				</tr>
				<tr>
					<td><fmt:message key="label.request.requestTime" /></td>
					<td><fmt:formatDate type="date" value="${requestDetailDTO.responsesTime}"  pattern="yyyy-MM-dd HH:mm:ss" /></td>
				</tr>
				<tr>
					<td><fmt:message key="label.request.completeTime" /></td>
					<td><fmt:formatDate type="date" value="${requestDetailDTO.closeTime}"  pattern="yyyy-MM-dd HH:mm:ss" /></td>
				</tr>
				
			
				<!--  
				<tr style="display: none">
					<td><fmt:message key="label.request.helpItems" /></td>
					<td>
						<input type="hidden" id="requestDetailDTO_keyWord" value="${requestDetailDTO.keyWord}" />
						<a href="javascript:void(0)" onclick="itsm.request.requestDetail.usefullKnowledge()" class="easyui-linkbutton" plain="true" icon="icon-search"><fmt:message key="label.request.findKnowledge" /></a><br/>
						<a href="javascript:void(0)" onclick="itsm.request.requestDetail.sameRequest()" class="easyui-linkbutton" plain="true" icon="icon-search"><fmt:message key="label.request.findTheSameRequest" /></a><br/>
					</td>
				</tr>
				-->
			</table>
			</div>
		</div>
		<div region="center" id="requestDetails_center" title="<fmt:message key="common.detailInfo" />" >
		
		<!-- 扩展信息 start -->
		<div class="easyui-tabs" id="requestDetailsTab" fit="true" border="false">
		
			<div title="<fmt:message key="config.extendedInfo"/>" style="overflow:hidden;">
					<div class="lineTableBgDiv" id="request_info_eavAttributet">
						<table style="width:100%" class="lineTable" cellspacing="1">
							
              			</table>
                	</div>
			</div>
		
			<div title="<fmt:message key="title.request.requesterInfo" />" style="overflow:hidden;" >
				<div class="lineTableBgDiv">
					<table style="width:100%" class="lineTable" cellspacing="1">
						<tr>
							<td style="width:15%"><fmt:message key="label.request.requestUser" /></td>
							<td style="width:85%">${requestDetailDTO.createdByName }</td>
						</tr>
						<tr>
							<td><fmt:message key="label.request.phone" /></td>
							<td>${requestDetailDTO.createdByPhone}</td>
						</tr>
					</table>
				 </div>
			</div>
			<div title="<fmt:message key="title.request.withCI" />">
				<div class="lineTableBgDiv">
						<table style="width:100%" class="lineTable" cellspacing="1">
						<tr>
							<td style="width:15%"><fmt:message key="title.request.withCI" /></td>
							<td style="width:85%"><a href="javascript:itsm.request.requestDetail.configureItemInfo(${requestDetailDTO.ciId})">${requestDetailDTO.ciName}</a></td>
						</tr>
					</table>
				</div>
			</div>
			
			<div title="<fmt:message key="common.attachment" />" style="padding:3px;">
					<div  style="border:#FFD2D2 1px dashed;padding:5px;line-height:22px">
						<div id="show_request_attachment"></div>
					</div>
					
			</div>
			
			
			<div title="<fmt:message key="title.request.assign" />" style="overflow:hidden;">
				 <div class="lineTableBgDiv">
						<table style="width:100%" class="lineTable" cellspacing="1">
						<tr>
							<td style="width:15%"><fmt:message key="label.request.assignToGroup" /></td>
							<td style="width:85%">${requestDetailDTO.assigneeGroupName}</td>
						</tr>
						<tr>
							<td class="td"><fmt:message key="label.request.assignToTechnician" /></td>
							<td class="td">${requestDetailDTO.assigneeName}</td>
						</tr>
					 </table>
				 </div>
			</div>
			
			<div title='<fmt:message key="title.request.task" />' style="padding:3px">
		 		
							<table id="requestEventTaskGrid"></table>
	    					<div id="requestEventTaskGridPager"></div>
			</div>
			
			<div title="<fmt:message key="title.request.timeDetail" />" style="padding:3px">
				
							<table id="requestEventCostGrid"></table>
							<div id="requestEventCostGridPager"></div>
					
        	</div>

			<div title="<fmt:message key="title.request.solutions" />">
			    <!-- 解决方案 start -->
				<div align="center" style="padding-top: 8px">
	
					<div class="lineTableBgDiv">
						<table style="width:100%" class="lineTable" cellspacing="1">
			
							<tr>
								<td>
									<div id="requestSolutionsDiv">
									<form>
									<textarea style="width:98%; height:150px;" name="requestDTO.solutions">${requestDetailDTO.solutions}</textarea>
									<input type="hidden" name="requestDTO.eno" value="${param.eno}" />
									</form>
									</div>
								</td>
							</tr>
			
						</table>
					</div>
					<div style="border-top: #99bbe8 1px solid; border-bottom: #99bbe8 1px solid; padding: 10px; background-color: #e4edfe; text-align: center; margin-bottom: 8px; margin-top: 8px">
						<a class="easyui-linkbutton" id="saveSolutionsBtn" icon="icon-save" style="margin-right: 15px"><fmt:message key="common.save" /></a> 
						<a class="easyui-linkbutton" id="saveToKnowledgeBtn" icon="icon-add" ><fmt:message key="label.request.saveAndAddToKnowledge" /></a>
					
					</div>
				</div>
				<!-- 解决方案 end  -->
			</div>
			
			<!-- 历史邮件 -->
       		<div title="<fmt:message key="title.request.emailHistory"/>" style="padding:2px; width: 100%;">         
                	<table id="emailHistoryGrid"></table>
					<div id="emailHistoryPager" ></div>
           </div>
           <!-- 回访记录 -->
           <s:if test="requestDetailDTO.visitRecord!=null">
        	<div title="<fmt:message key="setting.title.returnItem" />" style="padding: 10px">
	        	<div id="visitRecord_div">
	        		${ requestDetailDTO.visitRecord}
	        	</div>
        	</div>
        	</s:if>
           
           <!-- 操作历史 -->
           <div title="<fmt:message key="title.request.requestHistory" />">
           
           
				<div class="hisdiv">
					<table id="requestHistoryRecord" class="histable" style="width:100%" cellspacing="1">
						<thead>
							<tr>
							<th style="width:10%"><fmt:message key="label.steps" /></th>
							<th style="width:20%"><fmt:message key="label.request.requestAction" /></th>
							<th style="width:40%"><fmt:message key="label.details" /></th>
							<th style="width:10%"><fmt:message key="label.operator" /></th>
							<th style="width:20%"><fmt:message key="label.operateTime" /></th>
							</tr>
						</thead>
						<tbody></tbody>
					</table>
				</div>
        	</div>
        
    	</div>
		<!-- 扩展信息 end -->
		</div>
</div>
<!-- 新的面板 end-->


<!-- 选择配置项 -->
			<div id="requestDetail_ci_select_win" class="easyui-window"  closed="true" collapsible="false" minimizable="false" 
			    maximizable="false" modal="true" title="<fmt:message key="title.request.chooseCI" />" style="width:650px;height:350px;padding:5px;">
			    	<div class="easyui-layout" style="width:630px;height:300px;">
			    		<div region="west" split="true" title="<fmt:message key="title.request.CICategory" />" style="width:180px;padding:10px;">
			    			<div id="requestDetail_ci_select_tree"></div>
			    		</div>
			    		
			    		<div region="center" title="<fmt:message key="title.request.CI" />" style="width:400px;padding:4px;">
			    			<table id="requestDetail_ci_select_grid"></table>
			    			<div id="requestDetail_ci_select_pager"></div>
			    		</div>
			    	</div>
			</div>
			<div id="requestDetail_ci_select_Toolbar" style="display:none">
				<form>
				<input id="requestDetail_ci_select_toolbar_search" name="ciQueryDTO.ciname" />
				<a class="easyui-linkbutton" plain="true" icon="icon-search" onclick="selectQuery('requestDetail_ci_select_Toolbar','requestDetail_ci_select_grid')"><fmt:message key="common.search" /></a>
				</form>
			</div>



<!-- 公共值 -->
<div id="requestActionComm">
	<form>
		<input type="hidden" name="requestDTO.eno" value="${requestDetailDTO.eno }" />
		<input type="hidden" name="historyRecordDto.operator" value="${loginUserName}" />
		<input type="hidden" name="requestDTO.currentUser" value="${loginUserName}" />
		<input type="hidden" name="requestDTO.pid" value="${requestDetailDTO.pid}" />
	</form>
</div>


<!-- 开始请求处理-->
<div id="requestDeal_win" class="easyui-window" closed="true" modal="true"  title="<fmt:message key="label.request.startRequestDeal" />" minimizable="false" maximizable="false" collapsible="false" style="width:480px;height:auto">
	<form id="startRequestDeal_form">
		<div class="lineTableBgDiv">
			<table style="width:100%" class="lineTable" cellspacing="1">
			<tr>
				<td><fmt:message key="label.request.startRequestDealMark" />&nbsp;<span style="color:red">*</span></td>
				<td>
					<textarea rows="8" cols="45" name="historyRecordDto.logDetails" class="easyui-validatebox" validType="length[1,200]" required="true" id="requestDeal_value"></textarea>
				</td>
			</tr>
			<tr>
				<td><fmt:message key="label.is.request.action.notice" /></td>
				<td><input type="checkbox" value="true" id="startRequestDeal_isEmailNotice" /></td>
			</tr>
			<tr>
				<td colspan="2">
					<input type="hidden" name="historyRecordDto.logTitle" id="startRequestDeal_action" value="<fmt:message key="label.request.startRequestDeal" />" />
					<input type="hidden" name="requestDTO.optType" value="requestDeal" />
					<a class="easyui-linkbutton" plain="false" icon="icon-ok" onclick="itsm.request.requestAction.requestDeal_opt()"><fmt:message key="label.request.startProcess" /></a>
				</td>
			</tr>
			</table>
		</div>
	</form>
</div>


<!--请求提取-->
<div id="requestGet_win" class="easyui-window" closed="true" modal="true"  title="<fmt:message key="label.request.requestExtraction" />" minimizable="false" maximizable="false" collapsible="false" style="width:480px;height:auto">
	<form>
	
	<div class="lineTableBgDiv">
		<table style="width:100%" class="lineTable" cellspacing="1">
		<tr>
			<td><fmt:message key="label.request.requestExtractionMark" /></td>
			<td>
				<textarea class="easyui-validatebox input" required="true" rows="8" cols="45" name="historyRecordDto.logDetails" id="requestGet_value" class="easyui-validatebox" validType="length[1,200]" required="true"></textarea>
			</td>
		</tr>
		<tr>
			<td><fmt:message key="label.is.request.action.notice" /></td>
			<td><input type="checkbox" value="true" id="requestGet_isEmailNotice" /></td>
		</tr>
		<tr>
			<td colspan="2">
				<input type="hidden" name="historyRecordDto.logTitle" id="requestExtraction_action" value="<fmt:message key="label.request.requestExtraction" />" />
				<input type="hidden" name="requestDTO.optType" value="requestGet" />
				<a class="easyui-linkbutton" plain="false" icon="icon-ok" onclick="itsm.request.requestAction.requestGet_opt()"><fmt:message key="label.request.extract" /></a>
			</td>
		</tr>
	</table>
	</div>
	</form>
</div>

<!--请求重新开启-->
<div id="requestReOpen_win" class="easyui-window" closed="true" modal="true"  title="<fmt:message key="title.request.reStartRequest" />" minimizable="false" maximizable="false" collapsible="false" style="width:480px;height:auto">
	<form>
	
	<div class="lineTableBgDiv">
		<table style="width:100%" class="lineTable" cellspacing="1">
		<tr>
			<td><fmt:message key="label.request.reStartRequestCause" /></td>
			<td>
				<textarea name="historyRecordDto.logDetails" id="requestReOpen_value" class="easyui-validatebox input" required="true" style="height:80px"></textarea>
			</td>
		</tr>
		<tr>
			<td><fmt:message key="label.is.request.action.notice" /></td>
			<td><input type="checkbox" value="true" id="requestReOpen_isEmailNotice" /></td>
		</tr>
		<tr>
			<td colspan="2">
				<input type="hidden" name="historyRecordDto.logTitle"  id="reStartRequest_action" value="<fmt:message key="title.request.reStartRequest" />" />
				<input type="hidden" name="requestDTO.optType" value="requestReOpen" />
				<a class="easyui-linkbutton" plain="false" icon="icon-ok"  onclick="itsm.request.requestAction.requestReOpen_opt()"><fmt:message key="label.request.open" /></a>
			</td>
		</tr>
	</table>
	</div>
	</form>
</div>

<!--请求退回组-->
<div id="requestBackGroup_win" class="easyui-window" closed="true" modal="true"  title="<fmt:message key="label.request.requestBackToGroup" />" minimizable="false" maximizable="false" collapsible="false" style="width:480px;height:auto">
	<form>

	<div class="lineTableBgDiv">
		<table style="width:100%" class="lineTable" cellspacing="1">
		<tr>
			<td><fmt:message key="label.request.requestBackToGroupCause" /></td>
			<td>
				<textarea class="easyui-validatebox input" required="true" style="height:80px" name="historyRecordDto.logDetails" id="requestBackGroup_value"></textarea>
			</td>
		</tr>
		<tr>
			<td><fmt:message key="label.is.request.action.notice" /></td>
			<td><input type="checkbox" value="true" id="requestBackGroup_isEmailNotice" /></td>
		</tr>
		<tr>
			<td colspan="2">
				<input type="hidden" name="historyRecordDto.logTitle" id="requestBackToGroup_action" value="<fmt:message key="label.request.requestBackToGroup" />" />
				<input type="hidden" name="requestDTO.optType" value="requestBackGroup" />
				<a class="easyui-linkbutton" plain="false" icon="icon-ok" onclick="itsm.request.requestAction.requestBackGroup_opt()"><fmt:message key="label.request.back" /></a>
			</td>
		</tr>
	</table>
	</div>
	</form>
</div>

<!-- 请求指派 -->
<div id="requestAssign_win" class="easyui-window" closed="true" modal="true"  title="<fmt:message key="label.request.requestAssign" />" minimizable="false" maximizable="false" collapsible="false" style="width:480px;height:auto">
	<form>

	<div class="lineTableBgDiv">
		<table style="width:100%" class="lineTable" cellspacing="1">
		<tr>
			<td><fmt:message key="label.request.group" />&nbsp;<span style="color:red">*</span></td>
			<td>
			<input type="hidden" name="requestDTO.assigneeGroupNo" id="requestDetail_assigneeGroupNo" value="${requestDetailDTO.assigneeGroupNo}"/>
			<input style="width:80%" name="assigneeGroupName" id="requestDetail_assigneeGroupName" onclick="itsm.request.requestDetail.selectAssginGroup('#requestDetail_assigneeGroupNo','#requestDetail_assigneeGroupName')" readonly="readonly"  value="${requestDetailDTO.assigneeGroupName}"/>
			&nbsp;<a  onclick="cleanIdValue('requestDetail_assigneeGroupNo','requestDetail_assigneeGroupName')"><fmt:message key="label.request.clear" /></a>
			</td>
		</tr>
		<tr>
			<td><fmt:message key="label.request.technician" /> &nbsp;<span style="color:red">*</span></td>
			<td>
			<input type="hidden" name="requestDTO.assigneeNo" id="requestDetail_assigneeNo" value="${requestDetailDTO.assigneeNo}" />
			<input style="width:80%" name="assigneeName" id="requestDetail_assigneeName"  readonly="readonly" onclick="itsm.request.requestDetail.selectRequestUser_byOrgNo('#requestDetail_assigneeName','#requestDetail_assigneeNo')"  value="${requestDetailDTO.assigneeName}"/>
			&nbsp;<a onclick="cleanIdValue('requestDetail_assigneeName','requestDetail_assigneeNo','requestDetail_assigneeGroupNo')"><fmt:message key="label.request.clear" /></a>
			</td>
		</tr>
		<tr>
			<td><fmt:message key="label.request.assignMark" />&nbsp;<span style="color:red">*</span></td>
			<td>
				<textarea style="width:96%;height:80px" name="assignRemark" id="assignRemark"></textarea>
			</td>
		</tr>
		<tr>
			<td><fmt:message key="label.is.request.action.notice" /></td>
			<td><input type="checkbox" value="true" id="requestAssign_isEmailNotice" /></td>
		</tr>
		<tr>
			<td colspan="2">
				<input type="hidden" name="historyRecordDto.logTitle" id="requestAssign_action" value="<fmt:message key="label.request.requestAssign" />" />
				<input type="hidden" name="requestDTO.optType" value="requestAssgin" />
				<a class="easyui-linkbutton" plain="false" icon="icon-ok"  onclick="itsm.request.requestAction.requestAssign_opt()"><fmt:message key="title.request.assign" /></a>
			</td>
		</tr>
	</table>
	</div>
	</form>
</div>


<!-- 请求指派二线 -->
<div id="requestAssignTwo_win" class="easyui-window" closed="true" modal="true"  title="<fmt:message key="label.request.assignedToSecondlineTechnician" />" minimizable="false" maximizable="false" collapsible="false" style="width:480px;height:auto">
	<form>
	
	<div class="lineTableBgDiv">
		<table style="width:100%" class="lineTable" cellspacing="1">
		<tr>
			<td><fmt:message key="label.request.group" />&nbsp;<span style="color:red">*</span></td>
			<td>
			<input type="hidden" name="requestDTO.assigneeGroupNo" id="requestDetail_assigneeGroupNo_two" value="${requestDetailDTO.assigneeGroupNo}"/>
			<input style="width:80%"  name="assigneeGroupName" id="requestDetail_assigneeGroupName_two" onclick="itsm.request.requestDetail.selectAssginGroup('#requestDetail_assigneeGroupNo_two','#requestDetail_assigneeGroupName_two')" readonly="readonly"  value="${requestDetailDTO.assigneeGroupName}"/>
			&nbsp;<a  onclick="cleanIdValue('requestDetail_assigneeGroupNo_two','requestDetail_assigneeGroupName_two')"><fmt:message key="label.request.clear" /></a>
			</td>
		</tr>
		<tr>
			<td><fmt:message key="label.request.technician" />&nbsp;<span style="color:red">*</span></td>
			<td>
			<input type="hidden" name="requestDTO.assigneeNo" id="requestDetail_assigneeNo_two" value="${requestDetailDTO.assigneeNo}" />
			<input style="width:80%" name="assigneeName" id="requestDetail_assigneeName_two"  readonly="readonly" onclick="itsm.request.requestDetail.selectRequestUser_byOrgNo('#requestDetail_assigneeName_two','#requestDetail_assigneeNo_two')"  value="${requestDetailDTO.assigneeName}"/>
			&nbsp;<a  onclick="cleanIdValue('requestDetail_assigneeName_two','requestDetail_assigneeNo_two')"><fmt:message key="label.request.clear" /></a>
			</td>
		</tr>
		<tr>
			<td><fmt:message key="label.request.assignMark" />&nbsp;<span style="color:red">*</span></td>
			<td>
				<textarea rows="8" cols="45" name="assignRemark" id="assignRemark_two"></textarea>
			</td>
		</tr>
		<tr>
			<td><fmt:message key="label.is.request.action.notice" /></td>
			<td><input type="checkbox" value="true" id="requestAssignTwo_win_isEmailNotice" /></td>
		</tr>
		<tr>
			<td colspan="2">
				<input type="hidden" name="historyRecordDto.logTitle" id="requestAssignTwo_win_action" value="<fmt:message key="label.request.assignedToSecondlineTechnician" />" />
				<input type="hidden" name="requestDTO.optType" value="requestAssginTwo" />
				<a class="easyui-linkbutton" plain="false" icon="icon-ok" onclick="itsm.request.requestAction.requestAssign_opt('two','requestAssignTwo_win')"><fmt:message key="title.request.assign" /></a>
			</td>
		</tr>
	</table>
	</div>
	</form>
</div>


<!-- 请求指派三线 -->
<div id="requestAssignThree_win" class="easyui-window" closed="true" modal="true"  title="<fmt:message key="label.request.assignedToThirdlineTechnician" />" minimizable="false" maximizable="false" collapsible="false" style="width:480px;height:auto">
	<form>

	<div class="lineTableBgDiv">
		<table style="width:100%" class="lineTable" cellspacing="1">
		<tr>
			<td><fmt:message key="label.request.group" />&nbsp;<span style="color:red">*</span></td>
			<td>
			<input type="hidden" name="requestDTO.assigneeGroupNo" id="requestDetail_assigneeGroupNo_three" value="${requestDetailDTO.assigneeGroupNo}"/>
			<input style="width:80%" name="assigneeGroupName" id="requestDetail_assigneeGroupName_three" onclick="itsm.request.requestDetail.selectAssginGroup('#requestDetail_assigneeGroupNo_three','#requestDetail_assigneeGroupName_three')" readonly="readonly"  value="${requestDetailDTO.assigneeGroupName}"/>
			&nbsp;<a  onclick="cleanIdValue('requestDetail_assigneeGroupNo_three','requestDetail_assigneeGroupName_three')"><fmt:message key="label.request.clear" /></a>
			</td>
		</tr>
		<tr>
			<td><fmt:message key="label.request.technician" />&nbsp;<span style="color:red">*</span></td>
			<td>
			<input type="hidden" name="requestDTO.assigneeNo" id="requestDetail_assigneeNo_three" value="${requestDetailDTO.assigneeNo}" />
			<input style="width:80%" name="assigneeName" id="requestDetail_assigneeName_three"  readonly="readonly" onclick="itsm.request.requestDetail.selectRequestUser_byOrgNo('#requestDetail_assigneeName_three','#requestDetail_assigneeNo_three')"  value="${requestDetailDTO.assigneeName}"/>
			&nbsp;<a  onclick="cleanIdValue('requestDetail_assigneeName_three','requestDetail_assigneeNo_three')"><fmt:message key="label.request.clear" /></a>
			</td>
		</tr>
		<tr>
			<td><fmt:message key="label.request.assignMark" />&nbsp;<span style="color:red">*</span></td>
			<td>
				<textarea rows="8" cols="45" name="assignRemark" id="assignRemark_three"></textarea>
			</td>
		</tr>
		<tr>
			<td><fmt:message key="label.is.request.action.notice" /></td>
			<td><input type="checkbox" value="true" id="requestAssignThree_win_isEmailNotice" /></td>
		</tr>
		<tr>
			<td colspan="2">
				<input type="hidden" name="historyRecordDto.logTitle" id="requestAssignThree_win_action" value="<fmt:message key="label.request.assignedToThirdlineTechnician" />" />
				<input type="hidden" name="requestDTO.optType" value="requestAssginThree" />
				<a class="easyui-linkbutton" plain="false" icon="icon-ok" onclick="itsm.request.requestAction.requestAssign_opt('three','requestAssignThree_win')"><fmt:message key="title.request.assign" /></a>
			</td>
		</tr>
	</table>
	</div>
	</form>
</div>



<!-- 请求指派四线 -->
<div id="requestAssignFour_win" class="easyui-window" closed="true" modal="true"  title="<fmt:message key="label.request.assignedFourthlineEngineer" />" minimizable="false" maximizable="false" collapsible="false" style="width:480px;height:auto">
	<form>

	<div class="lineTableBgDiv">
		<table style="width:100%" class="lineTable" cellspacing="1">
		<tr>
			<td><fmt:message key="label.request.group" />&nbsp;<span style="color:red">*</span></td>
			<td>
			<input type="hidden" name="requestDTO.assigneeGroupNo" id="requestDetail_assigneeGroupNo_four" value="${requestDetailDTO.assigneeGroupNo}"/>
			<input style="width:80%" name="assigneeGroupName" id="requestDetail_assigneeGroupName_four" onclick="itsm.request.requestDetail.selectAssginGroup('#requestDetail_assigneeGroupNo_four','#requestDetail_assigneeGroupName_four')" readonly="readonly"  value="${requestDetailDTO.assigneeGroupName}"/>
			&nbsp;<a  onclick="cleanIdValue('requestDetail_assigneeGroupNo_four','requestDetail_assigneeGroupName_four')"><fmt:message key="label.request.clear" /></a>
			</td>
		</tr>
		<tr>
			<td><fmt:message key="label.request.technician" />&nbsp;<span style="color:red">*</span></td>
			<td>
			<input type="hidden" name="requestDTO.assigneeNo" id="requestDetail_assigneeNo_four" value="${requestDetailDTO.assigneeNo}" />
			<input  style="width:80%" name="assigneeName" id="requestDetail_assigneeName_four"  readonly="readonly" onclick="itsm.request.requestDetail.selectRequestUser_byOrgNo('#requestDetail_assigneeName_four','#requestDetail_assigneeNo_four')"  value="${requestDetailDTO.assigneeName}"/>
			&nbsp;<a  onclick="cleanIdValue('requestDetail_assigneeName_four','requestDetail_assigneeNo_four')"><fmt:message key="label.request.clear" /></a>
			</td>
		</tr>
		<tr>
			<td><fmt:message key="label.request.assignMark" />&nbsp;<span style="color:red">*</span></td>
			<td>
				<textarea rows="8" cols="45" name="assignRemark" id="assignRemark_four"></textarea>
			</td>
		</tr>
		<tr>
			<td><fmt:message key="label.is.request.action.notice" /></td>
			<td><input type="checkbox" value="true" id="requestAssignFour_win_isEmailNotice" /></td>
		</tr>
		<tr>
			<td colspan="2">
				<input type="hidden" name="historyRecordDto.logTitle" id="requestAssignFour_win_action" value="<fmt:message key="label.request.assignedFourthlineEngineer" />" />
				<input type="hidden" name="requestDTO.optType" value="requestAssginFour" />
				<a class="easyui-linkbutton" plain="false" icon="icon-ok" onclick="itsm.request.requestAction.requestAssign_opt('four','requestAssignFour_win')"><fmt:message key="title.request.assign" /></a>
			</td>
		</tr>
	</table>
	</div>
	</form>
</div>





<!-- 请求再指派 -->
<div id="requestAgainAssign_win" class="easyui-window" closed="true" modal="true"  title="<fmt:message key="label.request.requestAssignAgain" /> " minimizable="false" maximizable="false" collapsible="false" style="width:480px;height:auto">
	<form>
	
	<div class="lineTableBgDiv">
		<table style="width:100%" class="lineTable" cellspacing="1">
		<tr>
			<td><fmt:message key="label.request.technician" />&nbsp;<span style="color:red">*</span></td>
			<td>
			<input type="hidden" name="requestDTO.assigneeNo" id="requestDetail_assigneeNo_Again" value="${requestDetailDTO.assigneeNo}" />
			&nbsp;<input style="width:80%" name="assigneeName" id="requestDetail_assigneeName_Again"  readonly="readonly" onclick="itsm.request.requestDetail.request_selectUser('#requestDetail_assigneeName_Again','#requestDetail_assigneeNo_Again')"  value="${requestDetailDTO.assigneeName}"/>
			<a  onclick="cleanIdValue('requestDetail_assigneeName_Again','requestDetail_assigneeNo_Again')"><fmt:message key="label.request.clear" /></a>
			</td>
		</tr>
		<tr>
			<td><fmt:message key="label.request.assignMark" />&nbsp;<span style="color:red">*</span></td>
			<td>
				<textarea rows="8" cols="45"  name="assignRemark" id="assignRemark_Again"></textarea>
			</td>
		</tr>
		<tr>
			<td><fmt:message key="label.is.request.action.notice" /></td>
			<td><input type="checkbox" value="true" id="requestAgainAssign_isEmailNotice" /></td>
		</tr>
		<tr>
			<td colspan="2">
				<input type="hidden" name="historyRecordDto.logTitle" id="requestAssignAgain_action" value="<fmt:message key="label.request.requestAssignAgain" />" />
				<input type="hidden" name="requestDTO.optType" value="requestAgainAssgin" />
				<a class="easyui-linkbutton" plain="false"  icon="icon-ok"  onclick="itsm.request.requestAction.requestAgainAssign_opt()"><fmt:message key="title.request.assign" /></a>
			</td>
		</tr>
	</table>
	</div>
	</form>
</div>




<!-- 请求退回-->
<div id="requestBack_win" class="easyui-window" closed="true" modal="true"  title="<fmt:message key="label.request.backToFirstLine" />" minimizable="false" maximizable="false" collapsible="false" style="width:480px;height:auto">
	<form id="requestBackForm">
		<div class="lineTableBgDiv">
		<table style="width:100%" class="lineTable" cellspacing="1">
		<tr>
			<td><fmt:message key="label.request.backToFirstLineCause" />&nbsp;<span style="color:red">*</span></td>
			<td>
				<textarea rows="8" cols="45" name="historyRecordDto.logDetails" id="requestBackReason_value" class="easyui-validatebox" validType="length[1,200]" required="true"></textarea>
			</td>
		</tr>
		<tr>
			<td><fmt:message key="label.is.request.action.notice" /></td>
			<td><input type="checkbox" value="true" id="requestBack_isEmailNotice" /></td>
		</tr>
		<tr>
			<td colspan="2">
				<input type="hidden" name="historyRecordDto.logTitle" id="backToFirstLine_action" value="<fmt:message key="label.request.backToFirstLine" />" />
				<input type="hidden" name="requestDTO.optType" value="requestBack" />
				<a class="easyui-linkbutton" icon="icon-ok"  plain="false" onclick="itsm.request.requestAction.requestBack_opt()"><fmt:message key="label.request.back" /></a>
			</td>
		</tr>
		
		
	</table>
	</div>
	</form>
</div>

<!-- 请求升级申请-->
<div id="requestUpgradeApply_win" class="easyui-window" closed="true" modal="true"  title="<fmt:message key="label.request.upgradeApplication" />" minimizable="false" maximizable="false" collapsible="false" style="width:480px;height:auto">
	<form>
	
	<div class="lineTableBgDiv">
		<table style="width:100%" class="lineTable" cellspacing="1">
		<tr>
			<td><fmt:message key="label.request.upgradeApplicationCause" />&nbsp;<span style="color:red">*</span></td>
			<td>
				<textarea rows="8" cols="45" name="historyRecordDto.logDetails" id="requestUpgradeApplyReason_value" class="easyui-validatebox" validType="length[1,200]" required="true"></textarea>
			</td>
		</tr>
		<tr>
			<td><fmt:message key="label.is.request.action.notice" /></td>
			<td><input type="checkbox" value="true" id="requestUpgradeApply_isEmailNotice" /></td>
		</tr>
		<tr>
			<td colspan="2">
				<input type="hidden" name="historyRecordDto.logTitle" id="upgradeApplication_action" value="<fmt:message key="label.request.upgradeApplication" />" />
				<input type="hidden" name="requestDTO.optType" value="requestUpgradeApply" />
				<a class="easyui-linkbutton" plain="false" icon="icon-ok" onclick="itsm.request.requestAction.requestUpgradeApply_opt()"><fmt:message key="label.request.apply" /></a>
			</td>
		</tr>
	</table>
	</div>
	</form>
</div>


<!-- 请求升级-->
<div id="requestUpgrade_win" class="easyui-window" closed="true" modal="true"  title="<fmt:message key="label.request.requestUpdate" />" minimizable="false" maximizable="false" collapsible="false" style="width:480px;height:auto">
	<form>
	
	<div class="lineTableBgDiv">
		<table style="width:100%" class="lineTable" cellspacing="1">
		<tr>
			<td><fmt:message key="label.request.requestUpdateTo" />&nbsp;<span style="color:red">*</span></td>
			<td>
				<input type="hidden" name="requestDTO.ownerNo" id="requestDetail_upgradeToNo" />
				<input style="width:96%" name="assigneeName" id="requestDetail_upgradeToName"  readonly="readonly" onclick="itsm.request.requestDetail.request_selectUser('#requestDetail_upgradeToName','#requestDetail_upgradeToNo')"/>
			</td>
		</tr>
		<tr>
			<td><fmt:message key="label.request.requestUpdateCause" /></td>
			<td>
				<textarea rows="8" cols="45" id="requestUpgradeReason" class="easyui-validatebox" validType="length[1,200]" required="true"></textarea>
			</td>
		</tr>
		<tr>
			<td><fmt:message key="label.is.request.action.notice" /></td>
			<td><input type="checkbox" value="true" id="requestUpgrade_isEmailNotice" /></td>
		</tr>
		<tr>
			<td colspan="2">
				<input type="hidden" name="historyRecordDto.logTitle" id="requestUpdate_action" value="<fmt:message key="label.request.requestUpdate" />" />
				<input type="hidden" name="requestDTO.optType" value="requestUpgrade" />
				<a class="easyui-linkbutton" plain="false" icon="icon-ok" onclick="itsm.request.requestAction.requestUpgrade_opt()"><fmt:message key="label.request.update" /></a>
			</td>
		</tr>
	</table>
	</div>
	</form>
</div>

<!-- 请求关闭-->
<div id="requestClose_win" class="easyui-window" closed="true" modal="true"  title="<fmt:message key="label.request.requestClose" />" minimizable="false" maximizable="false" collapsible="false" style="width:480px;height:auto">
	<form>
	
	<div class="lineTableBgDiv">
		<table style="width:100%" class="lineTable" cellspacing="1">

		<tr>
			<td style="width:20%"><fmt:message key="label.request.requestCloseTime" /></td>
			<td style="width:80%"><input name="requestDTO.closeTime" id="requestCloseTime" class="easyui-validatebox input" required="true"/></td>
		</tr>
		
		<tr>
			<td><fmt:message key="label.request.requestCloseCause" /></td>
			<td>
				<textarea rows="8" cols="45" name="historyRecordDto.logDetails" id="requestClose_value" class="easyui-validatebox input" validType="length[1,200]" required="true"></textarea>
			</td>
		</tr>
		<tr>
			<td>FRC</td>
			<td style="text-align:left"><input type="checkbox" name="requestDTO.isFCR" value="true"/></td>
		</tr>
		<tr>
			<td><fmt:message key="label.is.request.action.notice" /></td>
			<td><input type="checkbox" value="true" id="requestClose_isEmailNotice" /></td>
		</tr>
		<tr>
			<td colspan="2">
				<input type="hidden" name="historyRecordDto.logTitle" id="requestClose_action" value="<fmt:message key="label.request.requestClose" />" />
				<input type="hidden" name="requestDTO.optType" value="requestClose" />
				<a class="easyui-linkbutton" plain="false" icon="icon-ok" onclick="itsm.request.requestAction.requestClose_opt()"><fmt:message key="label.request.close" /></a>
			</td>
		</tr>
	</table>
	</div>
	</form>
</div>

<!-- 请求处理备注-->
<div id="requestDealRemark_win" class="easyui-window" closed="true" modal="true"  title="<fmt:message key="label.request.requestProcessMrak" />" minimizable="false" maximizable="false" collapsible="false" style="width:480px;height:auto">
	<form>
	
		<div class="lineTableBgDiv">
		<table style="width:100%" class="lineTable" cellspacing="1">
		<tr style="display:none;">
			<td><fmt:message key="label.request.requestState" /></td>
			<td>
				<select style="width:96%" name="requestDTO.remarkStatusNo" id="requestDealRemark_statusNo"></select>
			</td>
		</tr>
		<tr>
			<td><fmt:message key="label.request.requestRemarkDetail" />&nbsp;<span style="color:red">*</span></td>
			<td>
				<textarea rows="8" cols="45" name="historyRecordDto.logDetails" id="requestDealRemark_value" class="easyui-validatebox input" validType="length[1,200]" required="true"></textarea>
			</td>
		</tr>
		<tr>
			<td><fmt:message key="label.is.request.action.notice" /></td>
			<td><input type="checkbox" value="true" id="requestDealRemark_isEmailNotice" /></td>
		</tr>
		<tr>
			<td colspan="2">
				<input type="hidden" name="historyRecordDto.logTitle" id="requestProcessMrak_action" value="<fmt:message key="label.request.requestProcessMrak" />" />
				<input type="hidden" name="requestDTO.optType" value="requestDealRemark" />
				<a class="easyui-linkbutton" plain="false" icon="icon-ok" onclick="itsm.request.requestAction.requestDealRemark_opt()"><fmt:message key="label.request.add" /></a>
			</td>
		</tr>
	</table>
	</div>
	</form>
</div>

<!-- 请求处理完成-->
<div id="requestDealComplete_win" class="easyui-window" closed="true" modal="true"  title="<fmt:message key="label.request.processComplete" />" minimizable="false" maximizable="false" collapsible="false" style="width:480px;height:auto">
	<form>
	
	<div class="lineTableBgDiv">
		<table style="width:100%" class="lineTable" cellspacing="1">
		<tr>
			<td style="width:30%"><fmt:message key="label.request.processCompleteMark" />&nbsp;<span style="color:red">*</span></td>
			<td style="width:70%">
				<textarea rows="8" cols="45" name="historyRecordDto.logDetails" id="requestDealComplete_value" class="easyui-validatebox input" validType="length[1,200]" required="true"></textarea>
			</td>
		</tr>
		<tr>
			<td><fmt:message key="label.is.request.action.notice" /></td>
			<td><input type="checkbox" value="true" id="requestDealComplete_isEmailNotice" /></td>
		</tr>
		<tr>
			<td colspan="2">
				<input type="hidden" name="historyRecordDto.logTitle" id="processComplete_action" value="<fmt:message key="label.request.processComplete" />" />
				<input type="hidden" name="requestDTO.optType" value="requestDealComplete" />
				<a class="easyui-linkbutton" plain="false" icon="icon-ok" onclick="itsm.request.requestAction.requestDealComplete_opt()"><fmt:message key="common.submit" /></a>
			</td>
		</tr>
	</table>
	</div>
	</form>
</div>


<!-- 请求审批 -->
<div id="requestApproval_win" class="easyui-window" closed="true" modal="true"  title="<fmt:message key="label.request.requestApproval" /> " minimizable="false" maximizable="false" collapsible="false" style="width:480px;height:auto">
	<form>
	<div class="lineTableBgDiv">
		<table style="width:100%" class="lineTable" cellspacing="1">
		<tr>
			<td style="width:30%"><fmt:message key="label.request.requestApprovalMark" />&nbsp;<span style="color:red">*</span></td>
			<td style="width:70%">
				<textarea rows="8" cols="45" name="historyRecordDto.logDetails" id="requestApprovalRemark" class="easyui-validatebox input" validType="length[1,200]" ></textarea>
			</td>
		</tr>
		<tr>
			<td><fmt:message key="label.is.request.action.notice" /></td>
			<td><input type="checkbox" value="true" id="requestApproval_isEmailNotice" /></td>
		</tr>
		<tr>
			<td colspan="2">
				<input type="hidden" name="historyRecordDto.logTitle" id="requestApproval_action" value="<fmt:message key="label.request.requestApproval" /> " />
				<input type="hidden" name="requestDTO.optType" value="requestApproval" />
				<input type="hidden" name="requestDTO.taskId" value="${taskId}" />
				<a class="easyui-linkbutton" plain="false" icon="icon-ok" onclick="itsm.request.requestAction.requestApproval_opt('同意')"><fmt:message key="label.request.requestApprovalAgree" /></a>
				<a class="easyui-linkbutton" plain="false" icon="icon-undo" onclick="itsm.request.requestAction.requestApproval_opt('不同意')"><fmt:message key="label.request.requestApprovalDisagree" /></a>
			</td>
		</tr>
		</table>
	</div>
	</form>
	
</div>





<!-- 请求回访-->
<div id="requestVisit_win" class="easyui-window" closed="true" modal="true"  title="<fmt:message key="label.request.requestVisit" />" minimizable="false" maximizable="false" collapsible="false" style="width:500px;height:auto">
<form>
	<input type="hidden" name="historyRecordDto.logTitle" value="<fmt:message key="label.request.requestVisit" />" />
	<input type="hidden" name="requestDTO.optType" value="requestVisit" />
	<input type="hidden" name="requestDTO.visitRecord" id="request_visitRecord"/>
	
	
	<div class="lineTableBgDiv">
		<table style="width:100%" id="requestVisit_table" class="lineTable" cellspacing="1"></table>
	</div>
	
	<div style="padding:8px">
	
			<a class="easyui-linkbutton" plain="false" icon="icon-ok" onclick="itsm.request.requestAction.requestVisit_opt()" ><fmt:message key="label.request.requestVisitSaveResult" /></a>
	</div>


</form>
</div>

<!-- 选择组 -->
<div id="requestAssginGroup_win" class="easyui-window" closed="true" modal="true"  title="<fmt:message key="title.request.chooseGroup" />" minimizable="false" maximizable="false" collapsible="false" style="width:480px;height:400px;padding:5px;">
<div id="assginGroupTree"></div>
</div>


	<!-- 任务start -->	
	<div id="requestEventTaskActFormatterDiv" style="display: none"><a href="javascript:itsm.request.requestTask.editEventTask()" title="<fmt:message key="common.edit"/>"><img src="../images/icons/edit.gif" /></a>&nbsp;&nbsp;<a href="javascript:itsm.request.requestTask.deleteEventTask()" title="<fmt:message key="common.delete"/>"><img src="../images/icons/delete.gif" /></a></div>
	<div id="requestEventTaskGridToolbar" style="display: none">
		<sec:authorize url="/pages/taskAndCost!addrequestTask.action">
			<a class="easyui-linkbutton" plain="true" icon="icon-add" onClick="itsm.request.requestTask.addEventTask()"><fmt:message key="common.add"/></a>
		</sec:authorize>	
		<sec:authorize url="/pages/taskAndCost!editrequestTask.action">
			<a class="easyui-linkbutton" plain="true" icon="icon-edit" onClick="itsm.request.requestTask.editEventTask()"><fmt:message key="common.edit"/></a>
		</sec:authorize>	
		<sec:authorize url="/pages/taskAndCost!deleterequestTask.action">
			<a class="easyui-linkbutton" plain="true" icon="icon-cancel" onClick="itsm.request.requestTask.deleteEventTask()"><fmt:message key="common.delete"/></a>
		</sec:authorize>	
	</div>
	<!-- 任务添加编辑 -->
	<div id="requestAddOrEditEventTaskDiv" class="easyui-window" closed="true" collapsible="false" minimizable="false"
	 maximizable="false" modal="true" title="<fmt:message key="common.add" />/<fmt:message key="common.edit" />" style="width:450px;height:380px;padding: 5px;">
	<form id="requestAddOrEditEventTaskForm">
		<input type="hidden" name="eventTaskDTO.taskId" id="request_taskId" />
		<input type="hidden" name="eventTaskDTO.eno" value="${requestDetailDTO.eno}"/>
		<input type="hidden" name="eventTaskDTO.eventType" value="itsm.request" />
		<table width="100%">
			<tr>
				<td style="width:28%"><fmt:message key="common.title"/></td>
				<td style="width:72%">
					<input name="eventTaskDTO.title" id="request_taskTitle"  class="easyui-validatebox input" required="true" />
				</td>
			</tr>
			<tr>
				<td><fmt:message key="lable.task.location"/></td>
				<td>
					<input name="eventTaskDTO.location" id="request_taskLocation" class="easyui-validatebox input" />
				</td>
			</tr>
			<tr>
				<td><fmt:message key="label.user.description" /></td>
				<td>
					<textarea rows="3" cols="50" name="eventTaskDTO.introduction" id="request_taskDescription" class="easyui-validatebox input" ></textarea>
				</td>
			</tr>
			<tr>
				<td><fmt:message key="common.state" /></td>
				<td>
					<input type="radio" name="eventTaskDTO.taskStatus" id="request_taskStatus" value="0" checked="checked" /><fmt:message key="title.newCreate" />
					<input type="radio" name="eventTaskDTO.taskStatus" id="request_taskStatus1" value="1"/><fmt:message key="title.processing" />
					<input type="radio" name="eventTaskDTO.taskStatus" id="request_taskStatus2" value="2"/><fmt:message key="titie.complete" />
				</td>
			</tr>
			<tr>
				<td><fmt:message key="label.orgSettings.startTime" /></td>
				<td>
					<input name="eventTaskDTO.startTime" id="request_taskStartTime" class="easyui-datebox input" required="true" readonly/>
				</td>
			</tr>
			<tr>
				<td><fmt:message key="label.orgSettings.endTime" /></td>
				<td>
					<input name="eventTaskDTO.endTime" id="request_taskEndTime" class="easyui-datebox easyui-validatebox input" required="true" validType="DateComparison['request_taskStartTime']" readonly/>
				</td>
			</tr>
			<tr>
				<td><fmt:message key="task.allDay" /></td>
				<td>
					<input type="checkbox" name="eventTaskDTO.allDay" value="true" id="request_taskAllDay" />
				</td>
			</tr>
			<tr>
				<td><fmt:message key="task.ownerName" /></td>
				<td>
					<input type="hidden" id="request_taskOwner"  />
					<input id="request_taskOwnerName"  name="eventTaskDTO.owner"  class="easyui-validatebox input" required="true" onclick="itsm.security.userUtil.selectUser('#request_taskOwnerName','#request_taskOwner')" readonly="readonly" />
				</td>
			</tr>
			<tr>
				<td colspan="2">
					<br>
					<a  class="easyui-linkbutton" icon="icon-ok" onclick="itsm.request.requestTask.saveEventTask()"><fmt:message key="common.save" /></a>
				</td>
			</tr>
		</table>
	</form>
	</div>
	<!-- 任务end -->

	<!-- 成本start -->	
	<div id="requestEventCostActFormatterDiv" style="display: none"><a href="javascript:itsm.request.requestEventCost.editEventCost()" title="<fmt:message key="common.edit"/></a>"><img src="../images/icons/edit.gif" /></a>&nbsp;&nbsp;<a href="javascript:itsm.request.requestEventCost.deleteEventCost()" title="<fmt:message key="common.delete"/></a>"><img src="../images/icons/delete.gif" /></a></div>
	<div id="requestEventCostGridToolbar" style="display: none">
		<sec:authorize url="/pages/taskAndCostaddRequestWorkDetails.action">
			<a class="easyui-linkbutton" plain="true" icon="icon-add" onClick="itsm.request.requestEventCost.addEventCost()"><fmt:message key="common.add"/></a>
		</sec:authorize>
		<sec:authorize url="/pages/taskAndCosteditRequestWorkDetails.action">	
			<a class="easyui-linkbutton" plain="true" icon="icon-edit" onClick="itsm.request.requestEventCost.editEventCost()"><fmt:message key="common.edit"/></a>
		</sec:authorize>
		<sec:authorize url="/pages/taskAndCostdeleteRequestWorkDetails.action">	
			<a class="easyui-linkbutton" plain="true" icon="icon-cancel" onClick="itsm.request.requestEventCost.deleteEventCost()"><fmt:message key="common.delete"/></a>
		</sec:authorize>	
	</div>
	<div id="requestAddOrEditEventCostDiv" class="easyui-window" closed="true" collapsible="false" minimizable="false"
	 maximizable="false" modal="true" title="<fmt:message key="common.add" />/<fmt:message key="common.edit" />" style="width:500px;height:auto;padding: 5px;">
	<form id="requestAddOrEditEventCostForm">
		<input type="hidden" name="costDTO.progressId" id="request_progressId" />
		<input type="hidden" name="costDTO.eno" value="${requestDetailDTO.eno}" />
		<input type="hidden" name="costDTO.eventType" value="itsm.request"/>
		<table width="100%">
			<tr>
				<tr>
				<td><fmt:message key="label.request.theTechnician" />&nbsp;<span style="color:red">*</span></td>
				<td>
					<input id="request_costUserName" style="width: 80%" onclick="itsm.security.userUtil.selectUser('#request_costUserName','#request_costUserId','#request_perHourFees')"  class="easyui-validatebox" required="true" readonly="readonly"/>
					<input type="hidden" name="costDTO.userId" id="request_costUserId"  /></td>
			</tr>

			<tr>
				<td><fmt:message key="title.executeTime" /></td>
				<td><input name="costDTO.opertionTime"  style="width: 80%"id="request_opertionTime" class="easyui-datebox"/></td>
			</tr>
			<tr>
				<td><fmt:message key="title.spendTime" /></td>
				<td>
					<input name="costDTO.useTime" style="width: 80%" id="request_useTime" onKeyUp="calcTechnicianCost('request_skillFees','request_useTime','request_perHourFees','request_othersFees','request_totalFees')" value="0" class="easyui-numberbox" />
					(<fmt:message key="label.sla.hour" />)
				</td>
			</tr>
			<!--  -->
			<tr>
				<td><fmt:message key="titie.technicianPerHourCost" /></td>
				<td><input name="costDTO.perHourFees" style="width: 80%" id="request_perHourFees" readonly="readonly" value="0"/>
				(<span id="request_perHourFees_currency"></span>)</td>
			</tr>
			
			<tr>
				<td><fmt:message key="titie.technicianCost" /></td>
				<td><input name="costDTO.skillFees" style="width: 80%" id="request_skillFees" value="0" class="easyui-numberbox"  onKeyUp="calcTechnicianTotalCost('request_totalFees','request_skillFees','request_perHourFees')"/>
				(<span id="request_skillFees_currency"></span>)
				</td>
			</tr>
			<tr>
				<td><fmt:message key="title.otherCost" /></td>
				<td><input name="costDTO.othersFees" style="width: 80%" id="request_othersFees" value="0" class="easyui-numberbox"   onKeyUp="calcTechnicianTotalCost('request_totalFees','request_skillFees','request_othersFees')"/>
				(<span id="request_othersFees_currency"></span>)
				</td>
			</tr>
			
			<tr>
				<td><fmt:message key="title.totalCost" /></td>
				<td><input name="costDTO.totalFees" style="width: 80%" id="request_totalFees" value="0"  readonly="readonly"/>
				(<span id="request_totalFees_currency"></span>)
				</td>
			</tr>
			
			<tr>
				<td><fmt:message key="label.user.description" /></td>
				<td>
					<textarea rows="3" style="width: 80%"  name="costDTO.description" id="request_description"></textarea>
				</td>
			</tr>
			<tr>
				<td><fmt:message key="title.change.belongsStage" /></td>
				<td>
					<input name="costDTO.stage" style="width: 80%" id="request_stage" />
				</td>
			</tr>
			<tr>
				<td><fmt:message key="title.change.result" /></td>
				<td>
					<input type="radio" name="costDTO.status" id="request_costStatus" value="1" checked="checked"/><fmt:message key="title.processing" />
					<input type="radio" name="costDTO.status" id="request_costStatus1" value="2" /><fmt:message key="titie.complete" />
				</td>
			</tr>
			<tr>
				<td><fmt:message key="title.request.task" /></td>
				<td>
					<input type="hidden" name="costDTO.taskId" id="request_costTaskId">
					<input style="width: 80%" name="wdDTO.eventTask" id="request_costEventTaskTitle" onclick="itsm.request.requestEventCost.selectRelatedEventTask()" readonly="readonly" />
				</td>
			</tr>
			<tr>
				<td colspan="2">
					<br>
					<a class="easyui-linkbutton" icon="icon-ok"  onclick="itsm.request.requestEventCost.saveEventCost()"><fmt:message key="common.save"/></a>
				</td>
			</tr>
		</table>
	</form>
	</div>
	<!-- 成本end -->
	
	<!-- 任务选择 -->
	<div id="request_relatedEventTaskGrid_win" class="easyui-window" closed="true" modal="true"  title="<fmt:message key="title.change.selectRelatedTask" />" minimizable="false" maximizable="false" collapsible="false" style="width:520px;height:380px;padding: 0px;">
		<table id="request_relatedEventTaskGrid"></table>
   		<div id="request_relatedEventTaskGridPager"></div>
	</div>
	
	<div id="emailNoticeInfoDiv" style="display: none;">
		<form id="emailNoticeInfoForm">
			<table cellspacing="0">
				<tr>
					<td>
						<input name="emailTemplatesDTO.entityType" value="itsm.request">
						<input name="emailTemplatesDTO.eno" value="${requestDetailDTO.eno}">
						<input name="emailTemplatesDTO.eventCode" value="${requestDetailDTO.requestCode}">
						<input name="emailTemplatesDTO.tempDir" value="/emailTemplates/requestActionEmailNotice.ftl">
						<input name="loginName" value="${requestDetailDTO.createdByName}">
					</td>
				</tr>
			</table>
		</form>
	</div>
	
	<!-- 邮件回复 -->
	<div id="rquestActionEmailReply"  class="easyui-window"  closed="true" collapsible="false" minimizable="false" maximizable="false" modal="true" title="<fmt:message key="tool.mail.addEmail"/>" style="width:650px;height:auto">
	<form id="rquestActionEmailReplyForm">
	
		<div class="lineTableBgDiv">
			<table style="width:100%" class="lineTable" cellspacing="1">
		    	<tr>
		            <td><fmt:message key="tool.mail.receiveAddress"/></td>
		            <td><input  id="requestEmailReplyUser" name="emailDto.receiveAddress" class="easyui-validatebox"  required="true" style="width:96%" />
		            	<br><br><span><fmt:message key="label.email.address.format" /></span>
		            </td>
		        </tr>
		     	
		        <tr>
		            <td><fmt:message key="tool.mail.emailTitle"/></td>
		             <td><input id="requestEmailReplyTitle" name="emailDto.subject" required="true"  style="width:96%" /></td>
		        </tr>
		        
		          <tr>
		            <td><fmt:message key="tool.mail.emailContent"/></td>
		             <td><textarea id="content" name="emailDto.content" style="width:96%;height:180px" ></textarea>
		           </td>
		        </tr>
		       
		          <tr style="display: none">
		            <td><fmt:message key="tool.mail.remark"/></td>
		            <td><input id="remarks" style="width:96%" /></td>
		        </tr>
		        
		         <tr style="display: none">
		            <td><fmt:message key="tool.mail.emialDescription"/></td>
		            <td><input id="description" name="emailDto.description" style="width:96%" /></td>
		        </tr>
		        <tr>
		            <td colspan="2" style="padding-top:8px;">
		                 <a class="easyui-linkbutton" icon="icon-ok" id="rquestActionEmailReply_send"><fmt:message key="tool.mail.confirmSend"/></a>
		        </td>
		        </tr>
		    </table>
	    </div>
	    </form>
	</div>
	
	
</div>