<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="com.opensymphony.xwork2.ActionContext" %>        
<%@ include file="../language.jsp" %>    
<script src="../scripts/itsm/tools/task.js?random=<%=new java.util.Date().getTime()%>"></script>




<script type="text/javascript">

$(document).ready(function(){
	
	 $("#myTask_loading").hide();
	 $("#myTask_content").show();
}); 




</script>



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



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








<table id="taskGrid"></table>
<div id="taskPager"></div>


<div id="taslActFormatterDiv" style="display: none"><a href="javascript:itsm.tools.task.editTask_aff()" title="<fmt:message key="common.edit"/>"><img src="../images/icons/edit.gif" /></a>&nbsp;&nbsp;<a href="javascript:itsm.tools.task.deleteTask_aff()" title="<fmt:message key="common.delete"/>"><img src="../images/icons/delete.gif" /></a></div>
<div id="taskGridToolbar" style="display: none">
	<a class="easyui-linkbutton" plain="true" icon="icon-add" onClick="itsm.tools.task.addEditTask_win()"><fmt:message key="common.add"/></a>
	<a class="easyui-linkbutton" plain="true" icon="icon-edit" onClick="itsm.tools.task.editTask_aff()"><fmt:message key="common.edit"/></a>
	<a class="easyui-linkbutton" plain="true" icon="icon-cancel" onClick="itsm.tools.task.deleteTask_aff()"><fmt:message key="common.delete"/></a>
</div>



<!-- 任务添加编辑 -->
<div id="addOrEditTaskDiv" class="easyui-window" closed="true" collapsible="false" minimizable="false" maximizable="false" modal="true" title="<fmt:message key="title.task.addOrEditTask"/>" style="width:500px;height:auto">
<form id="myTaskForm">
	
	<div class="lineTableBgDiv">
		<table style="width:100%" class="lineTable" cellspacing="1">
		<tr>
			<td style="width:25%"><fmt:message key="common.title"/></td>
			<td style="width:75%">
				<input name="taskDto.title" id="taskTitle"  class="easyui-validatebox input" required="true" />
			</td>
		</tr>
		<tr>
			<td style="width:25%"><fmt:message key="lable.task.location"/></td>
			<td style="width:75%">
				<input name="taskDto.location" id="taskLocation" class="easyui-validatebox input" />
			</td>
		</tr>
		<tr>
			<td style="width:25%"><fmt:message key="label.request.taskDescription"/></td>
			<td style="width:75%">
				<textarea name="taskDto.introduction" id="taskIntroduction"  style="height:80px" class="easyui-validatebox input"></textarea>
			</td>
		</tr>
		<tr>
			<td><fmt:message key="title.task.taskStatus"/></td>
			<td>
				<input type="radio" name="taskDto.taskStatus" id="taskStatus" value="0" checked="checked" /><fmt:message key="title.newCreate" />
				<input type="radio" name="taskDto.taskStatus" id="taskStatus1" value="1" /><fmt:message key="title.task.processing"/>
				<input type="radio" name="taskDto.taskStatus" id="taskStatus2" value="2"/><fmt:message key="titie.complete"/>
			</td>
		</tr>
		<tr>
			<td><fmt:message key="label.orgSettings.startTime"/></td>
			<td>
				
				<input name="taskDto.startTime" class="easyui-datebox easyui-validatebox"  required="true" style="cursor:pointer;width:250px;"  id="taskStartTime"/>
			</td>
		</tr>
		<tr>
			<td><fmt:message key="label.orgSettings.endTime"/></td>
			<td>
				<input name="taskDto.endTime" id="taskEndTime" class="easyui-datebox easyui-validatebox" required="true" validType="DateComparison['taskStartTime']" style="cursor:pointer;width:250px;" />
			</td>
		</tr>
		<tr>
			<td><fmt:message key="label.orgSettings.allDay"/></td>
			<td>
				<input type="checkbox" name="taskDto.allDay" value="true" id="taskAllDay"  />
			</td>
		</tr>
	
		<tr>
			<td colspan="2">
			    <input type="hidden" name="taskDto.taskId" id="task_taskId" />
				<input type="hidden" id="task_owner" name="taskDto.owner" value="${loginUserName}"/>
				<a id="link_task_save_edit_ok" class="easyui-linkbutton" icon="icon-ok"><fmt:message key="common.save"/></a>
			</td>
		</tr>
	</table>
	</div>
</form>
</div>

</div>