<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ include file="../language.jsp" %>
<script>
	var _cfgid='${param.id}';
	var _categoryType='${param.categoryType}';
	var cItemSave="0";
	var cItemsDel="0";
	var cItemUpdate="0";
</script>
<sec:authorize url="/pages/ci!cItemSave.action">
	<script>cItemSave="1";</script>
</sec:authorize>
<sec:authorize url="/pages/ci!cItemsDel.action">
	<script>cItemsDel="1";</script>
</sec:authorize>
<sec:authorize url="/pages/ci!cItemUpdate.action">
	<script>cItemUpdate="1";</script>
</sec:authorize>
<script src="../scripts/itsm/cm/configureItem.js?random=<%=new java.util.Date().getTime()%>"></script>

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


<div class="content" id="configureItem_content">

<table id="configureGrid" class="srcoll"></table>
<div id="ciPager" class="srcoll" style="text-align:center;"></div>
<div id="CIGridToolbar" style="display:none">
<sec:authorize url="/pages/ci!cItemSave.action">
<a class="easyui-linkbutton" plain="true" icon="icon-add" onclick="itsm.cm.configureItem.addConfigureItem()"><fmt:message key="common.add"/></a>
</sec:authorize>
<sec:authorize url="/pages/ci!cItemUpdate.action">
	<a class="easyui-linkbutton" plain="true" icon="icon-edit" onclick="itsm.cm.configureItem.editConfigureItem_toolbar_edit_aff()"><fmt:message key="common.edit"/></a> 
</sec:authorize>
<sec:authorize url="/pages/ci!cItemsDel.action">
	<a class="easyui-linkbutton" plain="true" icon="icon-cancel" onclick="itsm.cm.configureItem.configureItem_toolbar_delete_aff()"><fmt:message key="common.delete"/></a>
</sec:authorize>
<a class="easyui-linkbutton" plain="true" icon="icon-search" id="link_ci_search" onclick="itsm.cm.configureItem.searchConfigureItemWin()"><fmt:message key="common.search"/></a>

&nbsp;&nbsp; | <fmt:message key="label.dc.export"/>：
<select onchange="itsm.cm.configureItem.exportConfigureData()" id="exportConfigureData">
<option value="chooseExportType">--<fmt:message key="label.dc.chooseExportStyle"/>--</option>
<option value="view"><fmt:message key="label.dc.exportCurrentView"/></option>
</select>
</div>

<div id="configureItemclean"><form></form></div>

<div id="configureItemFrmBarDiv" style="display: none;"><a href="javascript:itsm.cm.configureItem.showConfigureItem__edit_aff()" title="<fmt:message key="common.detailInfo" />"><img src="../images/icons/pencil.png" border="0" /></a>&nbsp;&nbsp;<a href="javascript:itsm.cm.configureItem.editConfigureItem_toolbar_edit_aff()" title="<fmt:message key="common.edit" />"><img src="../images/icons/edit.gif" border="0"/></a>&nbsp;&nbsp;<a href="javascript:itsm.cm.configureItem.configureItem_toolbar_delete_aff()" title="<fmt:message key="common.delete" />"><img src="../images/icons/delete.gif" border="0"/></a></div>	
		
	<!-- 配置项搜索 -->
	<div id="configureSearchWin" class="easyui-window" closed="true" 
	 	collapsible="false" minimizable="false" maximizable="false" modal="false" title="<fmt:message key="common.search"/>" 
	 	style="width: 600px; height: 350px; padding: 10px;">
		<form id="configureSearchForm" action="ci!exportConfigure.action" method="post">
		<table width="100%">
	        <tr>
	            <td><fmt:message key="ci.ci"/><fmt:message key="common.category"/></td>
				<td>
			  		<input type="hidden" name="ciQueryDTO.categoryNo" id="ci_s_categoryNo" />
			  		<input name="ciQueryDTO.categoryName" id="ci_s_categoryName"  readonly="true" onclick="itsm.cm.ciCategoryTree.configureItemTree('search_ciCategoryTreeDiv','search_ciCategoryTreeTree','ci_s_categoryNo','ci_s_categoryName')" />
			   		<a onclick="itsm.cm.ciCategoryTree.cleanSelect('search_ciCategoryTreeDiv','ci_s_categoryNo','ci_s_categoryName')" style="cursor: pointer;"><fmt:message key="common.cleanNull"/></a>
	              </td>
	              <td><fmt:message key="common.no"/></td>
	              <td>
	                <input name="ciQueryDTO.cino" id="s_cino" />
	              </td>
	          </tr>
	          <tr>
	              <td><fmt:message key="label.name"/></td>
	              <td>
	              	<input name="ciQueryDTO.ciname" id="s_ciname" />
	              </td>
	              <td><fmt:message key="ci.productType"/></td>
	              <td>
	              	<input name="ciQueryDTO.model" id="s_model" />
	              </td>        
	          </tr>
	          <tr>
	              <td><fmt:message key="ci.serialNumber"/></td>
	              <td>
	              	<input name="ciQueryDTO.serialNumber" id="s_serialNumber"/>
	              </td>
	              <td><fmt:message key="ci.barcode"/></td>
	              <td>
	             	    <input name="ciQueryDTO.barcode" id="s_barcode"/>
	              </td>
	          </tr>
	          <tr>
	              <td><fmt:message key="ci.purchaseDate"/></td>
	              <td>
	               <input name="ciQueryDTO.buyDate" id="s_buyDate" class="easyui-datebox" />
	              </td>
	              <td><fmt:message key="ci.arrivalDate"/></td>
	              <td>
	               <input name="ciQueryDTO.arrivalDate" id="s_arrivalDate" class="easyui-datebox"/>
	              </td>
	          </tr>
	          <tr>
	              <td><fmt:message key="ci.purchaseNo"/></td>
	              <td>
	             	 	<input name="ciQueryDTO.poNo" id="s_poNo"/>
	              </td>
	              <td><fmt:message key="ci.warningDate"/></td>
	              <td>
	                <input name="ciQueryDTO.warningDate" id="s_warningDate" class="easyui-datebox"/>
	              </td>
	          </tr>
	          <tr>
	              <td><fmt:message key="common.status"/></td>
	              <td>
	              	<select id="ci_s_statusAdd" name="ciQueryDTO.statusId"><option value="0"></option></select>
	              </td>
	              <td><fmt:message key="ci.brands"/></td>
	              <td>
	              	<select id="ci_s_brandAdd" name="ciQueryDTO.brandId"><option value="0"></option></select>                                  
	              </td>
	          </tr>
	          <tr>
	              <td><fmt:message key="label.supplier"/></td>
	              <td>
	              	<select id="ci_s_providerAdd" name="ciQueryDTO.providerId" ><option value="0"></option></select>              
	              </td>
	              <td><fmt:message key="ci.location"/></td>
	              <td>
	              	<select id="ci_s_locAdd" name="ciQueryDTO.locId"><option value="0"></option></select>                
	              </td>
	          </tr>
	          <tr>
	              <td><fmt:message key="ci.lifeCycle"/></td>
	              <td>
	              	<input name="ciQueryDTO.lifeCycle" id="s_lifeCycle" class="easyui-numberbox" min="0"/>
	              </td>
	              <td><fmt:message key="ci.warrantyDate"/></td>
	              <td>
	              	<input name="ciQueryDTO.warranty" id="s_warranty" class="easyui-numberbox" min="0"/>
	              </td>
	          </tr>
	          <tr>
	              <td><fmt:message key="ci.use"/></td>
	              <td>
	              <input name="ciQueryDTO.userName" id="search_useName"/>
	              </td>
	              <td><fmt:message key="ci.owner"/></td>
	              <td>
	              <input name="ciQueryDTO.owner" id="search_owner"/>
	              </td>  
	          </tr>
	          <tr>
	          	<td colspan="4" align="center">
	          		<br>
	          		<a class="easyui-linkbutton" plain="false" icon="icon-search" onclick="itsm.cm.configureItem.assyCISearch()"><fmt:message key="common.search"/></a> 
	          	    <input id="exportConf_sidx" name="sidx" class="input" style="display: none;">
				    <input id="exportConf_sord" name="sord" class="input" style="display: none;">
				    <input id="exportConf_page" name="page" class="input" style="display: none;">
				    <input id="exportConf_rows" name="rows" class="input" style="display: none;">
	          	</td>
	          </tr>
	        </table>
		</form>
	</div>
	 
	<div id="search_ciCategoryTreeDiv" class="easyui-window"  closed="true" collapsible="false" minimizable="false" 
	  maximizable="false" modal="true" title="<fmt:message key="title.request.CICategory"/>" style="width:300px;height:320px;padding:5px;">
		<div>
			<div id="search_ciCategoryTreeTree" style="width:165px;height:95%;"></div>
		</div>
	</div>
	
</div>