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
66
67
68
69
70
71
72
73
74
75
<apex:page id="Page" Controller="TradeCustomerManagerSearchOppController" 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)}"/>
 
    <style type="text/css">
        
    </style>
    <script>
        function returnTradeCustomerManager(code,oppId){
            
            window.opener.refreshPage(code,oppId); 
            window.close();
        }
        function doSearchJS(){
            var byName = j$(escapeVfId("byName")).value();
            var byCode = j$(escapeVfId("byCode")).value();
            doSearchA(byName,byCode);
        }
    </script>
    <apex:form id="data">
         <apex:actionFunction action="{!doSearch}" name="doSearchA">
             <apex:param assignTo="{!byName}" name="byName" value=""></apex:param>
             <apex:param assignTo="{!byCode}" name="byCode" value=""></apex:param>
         </apex:actionFunction>
         <!-- <apex:actionFunction></apex:actionFunction> -->
         <div style="width: 100%;height: 500px;">
             <!-- 询价名称:<input id="byName" value="{!byName}"></input>
             询价编号:<input id="byCode" value="{!byCode}"></input>
                     <apex:commandButton value="查询" onclick="doSearchJS()"></apex:commandButton> -->
             <table width="100%">
                 <colgroup>
                    <col width="20%"/>
                    <col width="20%"/>
                    <col width="20%"/>
                    <col width="20%"/>
                    <col width="20%"/>
                </colgroup>
               <tr>
                     <td colspan="2">询价名称:<apex:inputText id="byName" value="{!byName}"></apex:inputText></td>
                     <td colspan="2">询价编号:<apex:inputText id="byCode" value="{!byCode}"></apex:inputText></td>
                     <td><apex:commandButton onclick="blockme();" value="查询" action="{!doSearch}" reRender="data" oncomplete="unblockUI();"></apex:commandButton>&nbsp;
                     <apex:commandButton onclick="returnTradeCustomerManager('','')" value="删除已选询价" reRender="data" oncomplete="unblockUI();"></apex:commandButton></td>
                 </tr>
                 <tr>
                     <th colspan="2">询价名</th>
                     <th>询价编号</th>
                     <th>客户</th>
                     <th>贸易管理客户分类</th>
                 </tr>
             </table>
             <div style="width: 100%;height: 100%;overflow:auto;">
                 <table width="100%">
                     <colgroup>
                        <col width="20%"/>
                        <col width="20%"/>
                        <col width="20%"/>
                        <col width="20%"/>
                        <col width="20%"/>
                    </colgroup>
                     <apex:repeat value="{!oppList}" var="line" id="oppData">
                         <tr>
                             <td colspan="2"><apex:outputLink value="javascript:void(0)" onclick="returnTradeCustomerManager('{!line.InquiryNumber__c}','{!line.Id}')">{!line.Name}</apex:outputLink></td>
                             <td><apex:outputLink value="javascript:void(0)" onclick="returnTradeCustomerManager('{!line.InquiryNumber__c}','{!line.Id}')">{!line.InquiryNumber__c}</apex:outputLink></td>
                             <td>{!line.Account.Name}</td>
                             <td>{!line.customerType__c}</td>
                         </tr>
                     </apex:repeat>
                 </table>
             </div>
         </div>
     </apex:form>
</apex:page>