高章伟
2022-03-18 4bfe21c4b5ddc089ae5a95f4b10f6cff148b690d
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<apex:page Controller="searchContractController" sidebar="false" showHeader="false" action="{!init}" >
    <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
    <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
    <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
    <script>
    function setProductOne(name) {
        window.opener.j$(escapeVfId("allPage:allForm:allBlock:searchBlock:OEC")).val(name);
        //top.window.opener.calPriceAll(window.opener.document);
        top.window.close();
    }
    </script>
    <apex:outputPanel id="all">
        <apex:outputPanel id="message1">
            <apex:messages styleClass="editListError"/>
        </apex:outputPanel>
        <apex:form id="mainForm">
            <apex:pageBlock id="idSearchSetProduct" title="合同检索">
                <table width="850" border="0" style="background-color:#DCDCDC">
                    <colgroup>
                        <col width="12" />
                        <col width="20" />
                        <col width="20" />
                        <col width="200" />
                        <col width="20" />
                        <col width="428" />
                    </colgroup>
                    <tr>
                        <td>&nbsp;</td>
                        <th>{!$Label.Search_Condition}</th>
                        <td>&nbsp;</td>
                        <th>合同号码</th>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td><apex:inputText id="searchName" value="{!SearchName}" style="width:200px" required="false"/></td>
                        <td><apex:commandButton value="{!$Label.Search}" action="{!serContact}" style="width:100px" /></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td style="border-bottom: 1px solid #888;" colspan="15">&nbsp;</td>
                    </tr>
                </table>
                <table width="850" border="0" style="background-color:#DCDCDC">
                    <tr>
                        <td width="12">&nbsp;</td>
                        <th valign="top">{!$Label.Search_Result}</th>
                        <td width="20">&nbsp;</td>
                        <td>
                            <table border="0">
                                <tr>
                                    <td>
                                    <div id="iframelike" style="width:700px">
                                    <apex:pageBlockTable id="idRezultVisitor" value="{!at}" var="c" border="1" columns="5" columnsWidth="200px,150px,150px,100px,100px">
                                        <apex:column >
                                            <apex:facet name="header">合同号码</apex:facet>
                                            <apex:outputLink id="contactName" value="{!c.Name}" onclick="setProductOne('{!c.Name}');return false;">{!c.Name}</apex:outputLink>
                                        </apex:column>
                                        <apex:column >
                                            <apex:facet name="header">省份</apex:facet>
                                            <apex:outputField id="State_Master" value="{!c.State_Master__r.Name}" />
                                        </apex:column>
                                        <apex:column >
                                            <apex:facet name="header">{!$ObjectType.Account.fields.Sales_Section__c.Label}</apex:facet>
                                            <apex:outputField id="Alternative" value="{!c.Sales_Section__c}" />
                                        </apex:column>
                                        <apex:column >
                                            <apex:facet name="header">{!$ObjectType.Account.fields.Contract_Decide_Start_Date__c.Label}</apex:facet>
                                            <apex:outputField id="Contract_Decide_Start_Date__c" value="{!c.Contract_Decide_Start_Date__c}" />
                                        </apex:column>
                                        <apex:column >
                                            <apex:facet name="header">{!$ObjectType.Account.fields.Contract_Decide_End_Date__c.Label}</apex:facet>
                                            <apex:outputField id="Contract_Decide_End_Date__c" value="{!c.Contract_Decide_End_Date__c}" />
                                        </apex:column>
                                        <!--<apex:column style="text-align:right;">
                                            <apex:facet name="header">{!$Label.ListPrice_Out}</apex:facet>
                                            <apex:outputField id="Foreign_Trade_List_US__c" value="{!c.pbe.Product2.Foreign_Trade_List_US__c}" />
                                        </apex:column>
                                        <apex:column style="text-align:right;">
                                            <apex:facet name="header">{!$Label.Specifications}</apex:facet>
                                            <apex:outputField id="Specifications" value="{!c.pbe.Product2.Packing_list_manual__c}" />
                                        </apex:column>-->
                                    </apex:pageBlockTable>
                                    </div>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </apex:pageBlock>
        </apex:form>
    </apex:outputPanel>
</apex:page>