<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="com.opensymphony.xwork2.ActionContext" %>
<%@ include file="../language.jsp" %>

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

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

<div id="editProblem_content" class="easyui-panel content" border="none" fit="true">
	
	
	<div class="easyui-layout" fit="true">
		<div region="north" border="false" class="panelTop">
			<a id="problemEdit_edit_but" class="easyui-linkbutton" plain="true" icon="icon-save" style="margin-right:15px"><fmt:message key="common.save" /></a>
			<a class="easyui-linkbutton" plain="true" icon="icon-undo" style="margin-right:10px" onclick="itsm.problem.problemEdit.returnProblemList()"><fmt:message key="common.returnToList" /></a>
		</div>

		<div  region="west" split="true" title="<fmt:message key="common.basicInfo" />" style="width:400px;">
				
			<div class="lineTableBgDiv">
				<form id="problem_basicInfo_form">
				<table style="width:100%" class="lineTable" cellspacing="1">
				<tr>
					<td style="width:40%"><fmt:message key="common.title" /></td>
					<td style="width:60%" >
					<input type="hidden" name="problemDTO.eno" id="edit_problemEno">
					<input type="hidden" name="problemDTO.problemNo" id="edit_problemNo">
					<input id="problem_edit_etitle" name="problemDTO.etitle" class="easyui-validatebox input" validType="length[1,200]" required="true" /></td>
				</tr>
				<tr>
					<td><fmt:message key="common.content" /></td>
					<td>
					<textarea id="problem_edit_edesc" name="problemDTO.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="problemDTO.categoryNo" id="problem_edit_categoryNo" />
							<input id="problem_edit_categoryName" value="${detailDTO.categoryName}" onclick="itsm.problem.problemEdit.selectEditProblemCategory()" class="choose" readonly/>
					</td>
				</tr>
				
				<!--  
				<tr>
					<td><fmt:message key="common.state" /></td>
					<td>
						<select id="problem_edit_status" name="problemDTO.statusNo" class="input"></select>
					</td>
				</tr>
				-->
				
				<tr>
					<td><fmt:message key="label.request.priority" /></td>
					<td>
						<select id="problem_edit_priority" name="problemDTO.priorityNo" class="input"></select>
					</td>
				</tr>
			
				<tr>
					<td><fmt:message key="label.request.effect" /></td>
					<td>
						<select id="problem_edit_effectRange" name="problemDTO.effectRangeNo" class="input"></select>
					</td>
				</tr>
				<tr>	
					<td><fmt:message key="label.request.seriousness" /></td>
					<td>
						<select id="problem_edit_seriousness" name="problemDTO.seriousnessNo" class="input"></select>
					</td>
				</tr>
				
				<tr>	
					<td><fmt:message key="label.problem.overdueTime" /></td>
					<td>
						<input id="problem_edit_overdueTime" name="problemDTO.overdueTime" class="easyui-datebox choose" readonly>
						
						<input type="hidden" name="problemDTO.createdByName" value="${loginUserName}">
						
					</td>
				</tr>

			</table>
			
			</form>
			</div>
		</div>
		
		<!-- 扩展信息 start -->
		<div region="center" title="<fmt:message key="common.detailInfo" />">
		
		
		
			<div class="easyui-tabs" fit="true" border="false">
			
				<div title='<fmt:message key="common.attachment" />'>
				
					<form id="problem_detail_form">
					
					<div class="lineTableBgDiv" id="edit_problem_attachments" >
								<input type="hidden" name="problemDTO.attachmentsStr" id="edit_problem_attachments_str"/>
								<table width="100%" cellspacing="1" class="lineTable">
									<tr>
										<td> 
											<input type="file"  name="filedata" id="edit_problem_attachments_file">
											<div style="height:5px"></div>
											 <a class="easyui-linkbutton" icon="icon-ok" href="javascript:$('#edit_problem_attachments_file').uploadifyUpload()" ><fmt:message key="label.attachment.upload" /></a>
	
										</td>
									</tr>
									
									<tr>
										<td>
											<div style="padding-top:3px">
											  <div id="show_edit_problem_attachment"></div>
								              <div id="edit_problem_attachments_successList" style="line-height:25px;color:#555"></div>
								              <table id="show_problem_attachment"></table>
								            
								            </div>
								              
										</td>
									</tr>
								</table>
						</div>
					
					</form>
				
				
				
				</div>
				
				
				<!--  
				<div title="问题指派">
				
					<form id="edit_problem_assign_form">
					<div class="lineTableBgDiv">
						<table style="width:100%" class="lineTable" cellspacing="1">
						
						<tr>
						<td style="width:30%">问题指派组</td>
						<td style="width:70%">
							<input id="problem_edit_orgName" name="problemDTO.assigneeGroupName" class="choose" onclick="itsm.problem.problemEdit.problem_edit_selectAssginGroup()" readonly/>
						</td>
						</tr>
						
						<tr>
						<td>指派技术员</td>
						<td>
						<input type="hidden" name="problemDTO.assignNo" id="problem_edit_technicianNo" value="${detailDTO. assignNo}"/>
						<input  id="problem_edit_technicianName" name="problemDTO.assignName" value="${detailDTO.assignName}" class="choose" onclick="itsm.problem.problemEdit.selectEditTechnician()" readonly/>
						</td>
						</tr>
						</table>
					</div>
					</form>
				
				</div>
				-->
				
				
				
				<div title='<fmt:message key="label.request.withAssets" />'>

				<div  class="lineTableBgDiv">
						<form id="edit_problem_relatedCIShow">
						<table class="lineTable" width="100%" cellspacing="1">
						
							<thead>
							<tr>
								<td colspan="5">
									<a id="editProblem_edit_ref_ci_btn" class="easyui-linkbutton" plain="true" icon="icon-add"><fmt:message key="common.add" /></a>
								</td>
							</tr>
							<tr height="20px">
								<td align="center"><fmt:message key="lable.ci.assetNo" /></td>
								<td align="center"><fmt:message key="label.name"/></td>
								<td align="center"><fmt:message key="common.category" /></td>
								<td align="center"><fmt:message key="common.state" /></td>
								<td align="center"><fmt:message key="ci.operateItems" /></td>
							</tr>
							</thead>
							<tbody></tbody>
						</table>
						</form>
					</div>
				</div>
				
				<div title='<fmt:message key="change.effectService" />'>
					
							<form id="edit_problem_relatedService">

								<div class="hisdiv">
									<table class="histable" id="problemEditEffectServiceShow" 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>
								</div>
							</form>
				</div>
			
			
			</div>
			
			
			
		</div>	
		<!-- 扩展信息 end -->

	</div>
	
	
	
</div>