buli
2022-05-09 0953b3b5fcf19c627c6479a6b86648df653c40db
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<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>