<%@ 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 src="../scripts/itsm/security/adUser.js?random=<%=new java.util.Date().getTime()%>"></script>



<sec:authorize url="/pages/customer!findByCompany.action">
<script>showSelectCustomers();</script>
</sec:authorize>

<sec:authorize url="/pages/supplier!findByCompany.action">
<script>showSelectSupplierGrid();</script>
</sec:authorize>






<!-- 数据列表 -->
<div >
    <div style="overflow:hidden;padding:3px;" >
    <table id="adGrid"></table>
    <div id="adPager"></div>
    
    
    <div id="adGridToolbar" style="display:none">
	
	&nbsp;LDAP：
	<select id="ldap" onchange="LDAPList(this.value)">
		
	</select> 
	<a class="easyui-linkbutton"  plain="true" icon="icon-assign"  id="link_user_import"><fmt:message key="common.import" /></a> 
	
	</div> 
    
    
    
    </div> 
</div>

<!--用户导入-->


<div id="userImport" title='<fmt:message key="common.import" />' class="easyui-window" icon="icon-assign" closed="true" 
collapsible="false" minimizable="false" maximizable="false" modal="true"  style="width:400px;height:350px;display: none;">
	<div style="margin: 5px;">
		<div>
			<fmt:message key="label.orgSettings.orgName" />:
			<input type="hidden" name="orgNoAdUser" id="orgNoAdUser" readonly="readonly" /> 
			<input  name="orgNameAdUser" id="orgNameAdUser"  onclick="adImportOrgTree_win()" /> 
		</div>
		<br>
		<div style="background-color:#F1F8FE;"><fmt:message key="title.user.userRole" /></div>
		<div id="roleSet">
			<table width="100%"></table>
		</div>
		<br>
		<div style="background-color:#F1F8FE;"><fmt:message key="label.user.userState" />：
			<input type="radio" name="userState"  value="true" checked="checked" /><fmt:message key="common.enable" />
			<input type="radio" name="userState"  value="false" /><fmt:message key="common.disable" />
		</div>
		<div>
			<br>
			<br>
			<a class="easyui-linkbutton" plain=false" icon="icon-save" id="link_user_import1"><fmt:message key="common.import" /></a> 
			<a class="easyui-linkbutton" plain="false" icon="icon-no" id="link_user_cancel"><fmt:message key="common.cancel" /></a>
		</div>
	</div>
</div>
<div id="searchAdUser">
	<form>
		<input type="hidden" name="queryDto.ldapId" id="ldapId1"  />
	</form>
</div>



<!-- AD导入机构树-->
<div id="adImportOrgTree" class="easyui-window"  closed="true" collapsible="false" minimizable="false" maximizable="false" modal="true" title='<fmt:message key="title.user.selectOrg" />' style="width:345px;height:400px;padding:5px">
    
    
    
    
    <div class="easyui-layout" style="width:325px;height:355px;">
		
		<div region="west" split="true" style="width:300px;">
		 <div id="adImportOrgTreeDiv"></div>
		</div>

		<div region="center" border="false">
		<div id="adImportSelectOrg" class="easyui-tabs" fit="true" style="width:300px; height:200; display: none" >
			<div title='<fmt:message key="title.user.selectCustomer" />'>
				<div style="width:100%;padding-top:3px" align="center">
				<table id="adImprotOrgTree_CustomerGrid"></table>
				<div id="adImprotOrgTree_CustomerGridPager"></div>
				</div>
			</div>
			<div title="<fmt:message key="title.user.selectSupplier" />">
			<div style="width:100%;padding-top:3px" align="center">
				<table id="adImprotOrgTree_SupplierGrid"></table>
				<div id="adImprotOrgTree_SupplierPager"></div>
			</div>
			
			</div>

		
		</div>
		
		</div>
		
	</div>
    
    
   
    
</div>







<!-- 搜索客户 -->
<div id="adImprotOrgTree_searchCustomerGrid" class="easyui-window" closed="true" collapsible="false" minimizable="false" maximizable="false" modal="false" title="搜索客户" style="width: 400px; height: 230px; padding: 10px; line-height: 20px;display: none;">

<form style="margin:0px">

<table style="width: 96%;" align="center">

	<tr>
		<td style="height: 32px">
		<div><fmt:message key="label.user.selectCustomerName" /></div>
		</td>
		<td><input id="adImprotSsearchCustomer_orgName" name="queryDto.orgName"
			style="width: 100%" /></td>
	</tr>

	
	<tr>
		<td style="height: 32px"><fmt:message key="label.user.selectOrgPhone" /></td>
		<td><input id="adImprotSearchCustomer_officePhone" name="queryDto.officePhone"
			style="width: 100%" /></td>
	</tr>

	<tr>
		<td style="height: 32px"><fmt:message key="label.user.selectOrgMail" /></td>
		<td><input id="adImprotSearchCustomer_email" name="queryDto.email"
			style="width: 100%" /></td>
	</tr>

	<tr>
		<td style="height: 32px"><fmt:message key="label.user.selectOrgMail" /></td>
		<td><input id="adImprotSearchCustomer_address" name="queryDto.address"
			style="width: 100%" /></td>
	</tr>
	
	<tr>
		<td style="height: 32px" colspan="2">
		
		<input type="hidden" name="queryDto.companyNo" id="searchSelectCustomerGrid_companyNo">
		<a id="adImprotSearchCustomerBtn_OK" class="easyui-linkbutton" icon="icon-search" onclick="showSelectCustomers_doSearch()"><fmt:message key="common.search" /></a>
		
		</td>
		
	</tr>
	
	
	
</table>



</form>
</div>






<!-- 搜索供应商 -->
<div id="adImprotOrgTree_searchSelectSupplierGrid" class="easyui-window" closed="true" collapsible="false" minimizable="false" maximizable="false" modal="false" title="搜索供应商" style="width: 400px; height: 230px; padding: 10px; line-height: 20px;display: none;">

<form style="margin:0px">

<table style="width: 96%;" align="center">

 
	<tr>
		<td style="height: 32px">
		<div>供应商名</div>
		</td>
		<td>
		<input name="queryDto.orgName" style="width:100%" value=""/>
		</td>
	</tr>

	
	<tr>
		<td style="height: 32px">机构电话</td>
		<td>
		<input name="queryDto.officePhone" style="width:100%" value="" />
		</td>
	</tr>

	<tr>
		<td style="height: 32px">联系邮件</td>
		<td>
		<input name="queryDto.email" style="width:100%" value="" />
		</td>
	</tr>

	<tr>
		<td style="height: 32px">机构地址</td>
		<td>
		<input name="queryDto.address" style="width:100%" value=""/>
		</td>
	</tr>
	
	<tr>
		<td style="height: 32px" colspan="2">
		
		<input type="hidden" name="queryDto.companyNo" id="searchSelectSupplierGrid_companyNo">
		<a id="adImprotSearchSupplierBtn_OK" class="easyui-linkbutton" icon="icon-search" onclick="showSelectSupplierGrid_doSearch()">搜索</a>
		
		</td>
		
	</tr>
</table>

</form>
</div>
