<apex:page id="Page" controller="LostByCompany" action="{!search}" sidebar="false" showHeader="false" >
|
<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
|
<script>
|
function setProductOne(i,lineNo){
|
debugger
|
var result_name = j$(escapeVfId("Page:mainForm:j_id10:"+ i +":result_name")).text();
|
|
// window.opener.j$(escapeVfId("allPage:allForm:allBlock:EditPage:LostBrands:"+lineNo+":LostBrand:productTable:0:LostBrandName_1")).val(result_name);
|
var queryCopy = '{!queryCopy}';
|
if(!queryCopy || queryCopy!=result_name){
|
window.opener.j$(escapeVfId("allPage:allForm:allBlock:EditPage:LostBrands:"+lineNo+":LostBrand:BrandContent:Lost_By_CompanyOut:Lost_By_Company")).val(result_name);
|
window.opener.j$(escapeVfId("allPage:allForm:allBlock:EditPage:LostBrands:"+lineNo+":LostBrand:BrandContent:AgencyMannualOut1:Lost_By_Company_Hidden")).val(result_name);
|
window.opener.setLostTotalAmount();
|
window.opener.setBrandName(lineNo);
|
}
|
top.window.close();
|
}
|
function searchOneJs(){
|
debugger
|
var SearchName = j$(escapeVfId("Page:mainForm:searchName")).val();
|
searchOne(SearchName);
|
}
|
</script>
|
<apex:form id="mainForm">
|
<apex:actionFunction name="searchOne" action="{!searchOne}" oncomplete="unblockUI();" rerender="allForm">
|
<apex:param assignTo="{!SearchName}" name="SearchName" value="" />
|
</apex:actionFunction>
|
<table width="330" border="0" style="background-color:#DCDCDC">
|
<tr>
|
<td><apex:inputText id="searchName" value="{!SearchName}" style="width:200px" required="false"/></td>
|
<td><apex:commandButton value="{!$Label.Search}" onclick="searchOneJs()" action="{!searchOne}" style="width:100px" /></td>
|
</tr>
|
</table>
|
<table width="330" border="1" cellspacing="0" >
|
<apex:repeat value="{!results}" var="result" >
|
<tr>
|
<td>
|
<!-- <span class="result_name">{!result}</span><br/><span class="result_id" style="display:none">{!result}</span><br/> -->
|
<apex:outputLink id="result_name" value="{!result.retvalue}" onclick="setProductOne('{!result.idx}','{!lineNo}');return false;">{!result.retvalue}</apex:outputLink>
|
</td>
|
</tr>
|
</apex:repeat>
|
</table>
|
|
</apex:form>
|
|
</apex:page>
|