<apex:page id="Page" Controller="NewSearchProductController" sidebar="false" showHeader="false" action="{!init}">
|
<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.connection20)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.apex20)}"/>
|
<script>
|
function returnBefore(id,code,eccode,description){
|
/*window.opener.productReturnJS(id,code,eccode,description);
|
window.close();*/
|
window.opener.j$(escapeVfId("Page:formInfo:RepairPartInfo:j_id42:j_id46:ITEM")).val(code);
|
window.opener.j$(escapeVfId("Product")).val(id);
|
window.opener.j$(escapeVfId("PART_NUMBER")).val(eccode);
|
window.opener.j$(escapeVfId("DESCRIPTION")).val(description);
|
}
|
</script>
|
<apex:form id="data">
|
<input type="hidden" id="BaseUrl" value="{!BaseUrl}" />
|
<div style="width: 100%;height: 270px;">
|
<table width="100%">
|
<colgroup>
|
<col width="33%"></col>
|
<col width="33%"></col>
|
<col width="33%"></col>
|
</colgroup>
|
<tr>
|
<td>
|
<apex:selectList id="type" value="{!ConditionType}" size="1">
|
<apex:selectOption itemLabel="产品名称" itemValue="name"></apex:selectOption>
|
<apex:selectOption itemLabel="产品代码" itemValue="code"></apex:selectOption>
|
<apex:selectOption itemLabel="EC代码" itemValue="eccode"></apex:selectOption>
|
</apex:selectList>
|
</td>
|
<td>
|
<apex:inputText value="{!ByCondition}"></apex:inputText>
|
</td>
|
<td>
|
<apex:commandButton action="{!doSearch}" onclick="blockme();" reRender="data" oncomplete="unblockUI();" value="查询"></apex:commandButton>
|
</td>
|
</tr>
|
<tr>
|
<th>产品名称</th>
|
<th>产品代码</th>
|
<th>EC代码</th>
|
</tr>
|
</table>
|
<div style="width: 100%;height: 100%;overflow:auto;">
|
<table width="100%">
|
<colgroup>
|
<col width="33%"></col>
|
<col width="33%"></col>
|
<col width="33%"></col>
|
</colgroup>
|
<apex:repeat value="{!dataList}" var="line" id="result">
|
<tr>
|
<td><apex:outputLink value="javascript:void(0)" onclick="returnBefore('{!line.id}','{!line.code}','{!line.eccode}','{!line.description}')">{!line.name}</apex:outputLink></td>
|
<td><apex:outputLink value="javascript:void(0)" onclick="returnBefore('{!line.id}','{!line.code}','{!line.eccode}','{!line.description}')">{!line.code}</apex:outputLink></td>
|
<td><apex:outputLink value="javascript:void(0)" onclick="returnBefore('{!line.id}','{!line.code}','{!line.eccode}','{!line.description}')">{!line.eccode}</apex:outputLink></td>
|
</tr>
|
</apex:repeat>
|
</table>
|
</div>
|
</div>
|
</apex:form>
|
</apex:page>
|