<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="com.opensymphony.xwork2.ActionContext" %>    
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>   
<%@ include file="../language.jsp" %>

<script>
var eno='${param.eno}';
</script>
<script src="../scripts/itsm/change/changeEdit.js?random=<%=new java.util.Date().getTime()%>"></script>

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

<div id="changeEdit_panel" class="easyui-panel content" fit="true" border="none">

	<div class="easyui-layout" id="changeEditDiv"  style="height: 650px;">
	
		<div region="north" border="false" class="panelTop">
			<a id="changeAdd_edit_but" class="easyui-linkbutton" icon="icon-save" plain="true"><fmt:message key="common.save"/></a>
			<a class="easyui-linkbutton" plain="true" icon="icon-undo" style="margin-right:10px" onclick="itsm.change.changeEdit.returnChangeList()"><fmt:message key="common.returnToList" /></a>
		</div>
	
	
		<div region="west" split="true" title="<fmt:message key="common.basicInfo"/>"  style="width:400px">
			<form>
				<input type="hidden" name="changeDTO.eno" id="edit_changeEno">
				<input type="hidden" name="changeDTO.creator" id="edit_creator" value="${loginUserName}">
				<input type="hidden" name="changeDTO.statusNo" id="edit_statusNo">
				<div class="lineTableBgDiv">
					<table style="width:100%" class="lineTable" cellspacing="1">
					<tr>
						<td style="width:40%"><fmt:message key="change.changeNo" /></td>
						<td style="width:60%"><input name="changeDTO.changeNo" id="edit_changeNo" class="input" readonly="readonly" /></td>
					</tr>
					<tr>
						<td><fmt:message key="common.title" />&nbsp;<span style="color:red">*</span></td>
						<td><input name="changeDTO.etitle" id="edit_changeTitle" class="easyui-validatebox input" required="true" /></td>
					</tr>
					<tr>
						<td><fmt:message key="label.user.description" />&nbsp;<span style="color:red">*</span></td>
						<td>
						<textarea name="changeDTO.edesc" id="edit_changeDesc" class="easyui-validatebox textarea" required="true" ></textarea>
						</td>
					</tr>
					<tr>
						<td><fmt:message key="title.change.assigneGroup" /></td>
						<td>
							<input type="hidden" id="change_edit_orgNo" name="changeDTO.orgNo"/>
							<input id="change_edit_orgName" name="changeDTO.orgName" class="choose" onclick="itsm.change.changeEdit.change_edit_selectAssginGroup()" readonly/>
						</td>
					</tr>
					<tr>
						<td><fmt:message key="title.change.assigneeTechnician" /></td>
						<td>
							<input type="hidden" name="changeDTO.technicianNo" id="change_edit_technicianNo" value="${detailDTO.technicianNo}"/>
							<input  id="change_edit_technicianName" name="changeDTO.techniciaName" value="${detailDTO.technicianName}" class="choose" onclick="itsm.change.changeEdit.selectEditTechnician()" readonly/>
						</td>
					</tr>
					<tr>	
						<td><fmt:message key="common.category" /></td>
						<td>
							<input type="hidden" name="changeDTO.categoryNo" id="change_edit_categoryNo" />
							<input id="change_edit_categoryName" value="${detailDTO.categoryName}" onclick="itsm.change.changeEdit.selectEditChangeCategory()" class="choose" readonly/>
						</td>
					</tr>
					<tr>
						<td><fmt:message key="label.request.priority" /></td>
						<td>
							<select id="change_edit_priority" name="changeDTO.priorityNo" class="input">
							</select>
						</td>
					</tr>
					
					<tr>
						<td><fmt:message key="label.request.effect" /></td>
						<td>
							<select id="change_edit_effectRange" name="changeDTO.effectRangeNo" class="input">
							</select>
						</td>
					</tr>
					<tr>	
						<td><fmt:message key="label.request.seriousness" /></td>
						<td>
							<select id="change_edit_seriousness" name="changeDTO.seriousnessNo"  class="input">
							</select>
						</td>
					</tr>
					<tr>	
						<td><fmt:message key="lable.scheduledStartTime" /></td>
						<td>
							<input name="changeDTO.planStartTime" id="change_edit_planStartTime"  class="easyui-datebox input" />
						</td>
					</tr>
					
					<tr>	
						<td><fmt:message key="lable.scheduledEndTime" /></td>
						<td>
							<input name="changeDTO.planEndTime" id="change_edit_planEndTime" class="easyui-datebox easyui-validatebox input"  validType="DateComparison['change_edit_planStartTime']" />
						</td>
					</tr>
					<tr><td colspan="2">&nbsp;<br><br><br><br><br></td></tr>
				</table>
				</div>
			</form>
		</div>
		<div region="center" title="<fmt:message key="common.detailInfo"/>">
			<div class="easyui-tabs" fit="true" border="false">
				<div title="<fmt:message key="ci.relatedCI" />" style="overflow:hidden;padding: 2px;">
					<div id="changeEditRelatedCIShow"  class="hisdiv">
					<form>
						<table class=histable width="100%" cellspacing="1">
							<thead>
							<tr>
								<td colspan="5" style="text-align: left;">
									<a id="editchange_add_ref_ci_btn" class="easyui-linkbutton" plain="true" icon="icon-add"><fmt:message key="common.add" /></a>
								</td>
							</tr>
							<tr height="20px">
								<th align="center"><fmt:message key="lable.ci.assetNo" /></th>
								<th align="center"><fmt:message key="label.name"/></th>
								<th align="center"><fmt:message key="common.category" /></th>
								<th align="center"><fmt:message key="common.state" /></th>
								<th align="center"><fmt:message key="ci.operateItems" /></th>
							</tr>
							</thead>
							<tbody></tbody>
							
						</table>
						</form>
					</div>
				</div>
				<div title="<fmt:message key="change.effectService" />" style="overflow:hidden;padding:3px;">
					<div id="changeEditEffectServiceShow" class="hisdiv">
						<form>
							<table class="histable" id="add_problem_serviceDirectory" style="width:100%" cellspacing="1">
								<thead>
									<tr>
									<th style="width:10%"><fmt:message key="common.select" /></th>
									<th style="width:90%"><fmt:message key="setting.serviceDirectory" /></th>
									</tr>
								</thead>
								<tbody></tbody>
							</table>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
	
	
	
	<!-- 变更分类 -->
	<div id="change_edit_category_select_win" class="easyui-window"  closed="true" collapsible="false" minimizable="false" 
		maximizable="false" modal="true" title="<fmt:message key="change.changeCategory" />" style="width:320px;height:300px;padding:2px;">
		<div id="editChangeCategoryTree"></div>
	</div>
	
	
	
	<!-- 选择组 -->
	<div id="changeAssginGroup_edit_win" class="easyui-window" closed="true" modal="true"  title="<fmt:message key="title.request.chooseGroup" />" minimizable="false" maximizable="false" collapsible="false" style="width:420px;height:400px;padding:5px;">
	<div id="change_edit_assginGroupTree"></div>
	</div>

</div>