<%@ 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 pnos="${param.pnos}";//关联问题
var enos="${param.enos}";//关联请求
</script>

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

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

<div id="changeAdd_panel" class="easyui-panel content" border="none" fit="true">
	
	<div class="easyui-layout" id="changeAddDiv" fit="true">
	
	
		<div region="north" border="false" class="panelTop">
			<a id="changeAdd_save_but" class="easyui-linkbutton" icon="icon-save" plain="true"><fmt:message key="common.save"/></a>
		</div>
		
		
	
		<div region="west" split="true" title="<fmt:message key="common.basicInfo"/>" style="width:400px">
			<form>
				<input type="hidden" name="changeDTO.creator"  value="${loginUserName}"/>
				
				
				<div class="lineTableBgDiv">
					<table style="width:100%" class="lineTable" cellspacing="1">
					<tr>
						<td style="width:40%"><fmt:message key="common.title" />&nbsp;<span style="color:red">*</span></td>
						<td style="width:60%"><input name="changeDTO.etitle" id="add_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>
						
						<div id="relatedReuqestAndProblem_hidden"></div>
		
						<textarea  name="changeDTO.edesc" id="add_changeDesc"  class="easyui-validatebox textarea" required="true"></textarea>
						</td>
					</tr>
					<tr>
						<td><fmt:message key="title.change.assigneGroup" /></td>
						<td>
							<input name="changeDTO.orgNo" id="change_add_assigneGroupNo" type="hidden">
							<input id="change_add_assigneGroupName" class="choose" onclick="itsm.change.changeAdd.change_selectAssginGroup('#change_add_assigneGroupNo','#change_add_assigneGroupName')" readonly/>
						</td>
					</tr>
					<tr>
						<td><fmt:message key="title.change.assigneeTechnician" /></td>
						<td>
							<input type="hidden" name="changeDTO.technicianNo" id="change_add_technicianNo"/>
							<input  id="change_add_technicianName" name="changeDTO.technicianName" class="choose" onclick="itsm.change.changeAdd.selectTheTechnician()" readonly/>
						</td>
					</tr>
					<tr>	
						<td><fmt:message key="common.category" /></td>
						<td>
							<input type="hidden" name="changeDTO.categoryNo" id="change_add_categoryNo" />
							<input id="change_add_categoryName" class="choose" onclick="itsm.change.changeAdd.selectChangeCategory()" readonly/>
						</td>
					</tr>
					<tr>
						<td><fmt:message key="label.request.priority" /></td>
						<td>
							<select id="change_add_priority" name="changeDTO.priorityNo" class="input">
							</select>
						</td>
					</tr>
					
					<tr>
						<td><fmt:message key="label.request.effect" /></td>
						<td>
							<select id="change_add_effectRange" name="changeDTO.effectRangeNo" class="input">
							</select>
						</td>
					</tr>
					<tr>	
						<td><fmt:message key="label.request.seriousness" /></td>
						<td>
							<select id="change_add_seriousness" name="changeDTO.seriousnessNo" class="input">
							</select>
						</td>
					</tr>
					<tr>	
						<td><fmt:message key="lable.scheduledStartTime" /></td>
						<td>							
							<input name="changeDTO.planStartTime" id="change_add_planStartTime"  class="easyui-datebox input" />
						</td>
					</tr>
					
					<tr>	
						<td><fmt:message key="lable.scheduledEndTime" /></td>
						<td>
							<input name="changeDTO.planEndTime" id="change_add_planEndTime" class="easyui-datebox easyui-validatebox"  validType="DateComparison['change_add_planStartTime']"  style="width:96%;"/>
						</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" />" fit="true" style="padding: 2px;">
					<div id="changeRelatedCIShow"  class="hisdiv">
						<form>
						<table class="histable" width="100%" cellspacing="1">
							<thead>
							<tr>
								<td colspan="5" style="text-align: left;">
									<a id="addchange_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="changeEffectServiceShow" class="hisdiv">
						<form>
							<table class="histable" 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>

<!-- 变更分类 -->
<div id="change_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="addChangeCategoryTree"></div>
</div>

<!-- 选择组 -->
<div id="changeAssginGroup_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_assginGroupTree"></div>
</div>