<%@ 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/request/requestAdd.js?random=<%=new java.util.Date().getTime()%>"></script>


<div class="loading" id="addRequest_loading"><img src="../images/icons/loading.gif" /></div>
	<!-- 新的面板 start-->
	<div id="addRequestDiv" class="content" >
	<form id="addRequestForm">
	<input type="hidden" name="requestDTO.technicianName" value="${loginUserName}"  />
	<div class="easyui-layout" fit="true">
		<div region="north" border="false" class="panelTop">
			<a id="saveRequestBtn" class="easyui-linkbutton" plain="true" icon="icon-save" style="margin-right:15px"><fmt:message key="common.save" /></a>
		</div>
		
		
		<div  region="west" split="true" title="<fmt:message key="common.basicInfo" />" style="width:400px;">
		
			<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="requestDTO.etitle" id="request_etitle" value="${requestDTO.etitle}" class="easyui-validatebox input" validType="length[1,200]" required="true" /></td>
				</tr>

				<tr>
					<td><fmt:message key="common.content" />&nbsp;<span style="color:red">*</span></td>
					<td>
					<textarea name="requestDTO.edesc" id="request_edesc" class="easyui-validatebox textarea" validType="length[5,200]" required="true"></textarea>
					</td>
				</tr>
				<tr>	
					<td><fmt:message key="common.category" /></td>
					<td>
						<input type="hidden" name="requestDTO.requestCategoryNo" id="addRequestCategoryNo" />
						<input name="requestDTO.requestCategoryName"  id="addRequestCategoryName"  class="choose" onclick="itsm.request.addRequest.selectRequestCategory()" readonly/>
						
						<div id="add_request_select_category_panel" class="easyui-panel" closed="true"  style="position:absolute;float:left;width:auto;height:320px;overflow:auto">
						</div>
						
						
					</td>
				</tr>
				<tr>	
					<td><fmt:message key="label.request.form" /></td>
					<td>
					<select id="request_imode" name="requestDTO.imodeNo" class="input"></select>
					</td>
				</tr>
				<tr>
					<td><fmt:message key="label.request.priority" /></td>
					<td>
						<select id="request_priority" name="requestDTO.priorityNo" class="input"></select>
					</td>
				</tr>
				<tr>
					<td><fmt:message key="label.request.complexity" /></td>
					<td>
					<select id="request_level" name="requestDTO.levelNo" class="input"></select>
					</td>
				</tr>
				<tr>
					<td><fmt:message key="label.request.effect" /></td>
					<td>
						<select id="request_effectRange" name="requestDTO.effectRangeNo" class="input"></select>
					</td>
				</tr>
				<tr>	
					<td><fmt:message key="label.request.seriousness" /></td>
					<td>
						<select id="request_seriousness" name="requestDTO.seriousnessNo" class="input"></select>
					</td>
				</tr>

			</table>
			
			</div>
			
			
			
		</div>
		
		<!-- 扩展信息 start -->
		<div region="center" title="<fmt:message key="common.detailInfo" />" style="background:#eee;">
			<div class="easyui-tabs" fit="true" border="false">
			
				<div title="<fmt:message key="config.extendedInfo"/>" style="overflow:hidden;">
					<div class="lineTableBgDiv" id="request_add_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%" class="td"><fmt:message key="label.request.requestUser" />&nbsp;<span style="color:red">*</span></td>
								<td style="width:85%" class="td">
								<input  id="selectCreator"  name="requestDTO.createdByName" value="${loginUserName}"  type="text" style="width:98%;color:#555;cursor:pointer" />
								<input  id="addRequestUserId" type="hidden" name="requestDTO.createdByNo" style="width:98%;color:#555;" /></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%" class="td"><fmt:message key="label.request.withAssets" /></td>
								<td>
									<input class="choose" id="add_request_ref_ciname" />
									<input  id="add_request_ref_ciid" type="hidden" name="requestDTO.ciId" />
								</td>
							</tr>
						</table>
					</div>
				</div>
			
				<div title="<fmt:message key="common.attachment" />" style="padding:3px;">
					<div class="lineTableBgDiv" id="add_request_attachment_div" >
							<input type="hidden" name="requestDTO.attachmentStr" id="add_request_attachmentStr"/>
							<table width="100%" cellspacing="1" class="lineTable">
								<tr>
									<td> 
										<input type="file"  name="filedata" id="add_request_file">
										<div style="height:5px"></div>
										
										
										 <a class="easyui-linkbutton" icon="icon-ok" href="javascript:$('#add_request_file').uploadifyUpload()" ><fmt:message key="label.attachment.upload" /></a>

									</td>
								</tr>
								<tr>
									<td>
										<div style="padding-top:3px">
							              <div id="add_request_success_attachment" style="line-height:25px;color:#555"></div>
							            </div>
									</td>
								</tr>
							</table>
					</div>
				</div>
			</div>
		</div>	
		<!-- 扩展信息 end -->

	</div>

	</form>
	
</div>