GWY
2022-05-16 a9baff8a4508c1850e650f68831d857b953eace4
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
<apex:page id="Page" Controller="IENewOpportunityController" sidebar="true" showHeader="true" action="{!init}">
    <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
    <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
    <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
 
    <script>
    function saveJs() {
        blockme();
        saveBtn();
    }
 
    function saveYesJs() {
        blockme();
        saveBtnYes();
    }
 
    function saveNoJs() {
        blockme();
        saveBtnNo();
    }
 
    function cancelJs() {
        var baseUrl = '{!baseUrl}';
        var rtUrl = '{!rtUrl}';
        if (rtUrl == 'null' || rtUrl == '') {
            rtUrl = '{!conId}';
        }
        window.location.href = baseUrl + "/" + rtUrl;
    }
    </script>
 
    <apex:form id="mainForm">
        <apex:actionFunction action="{!saveBtn}" name="saveBtn" reRender="mainForm,message" oncomplete="unblockUI();"/>
        <apex:actionFunction action="{!saveBtnYes}" name="saveBtnYes" reRender="mainForm,message" oncomplete="unblockUI();"/>
        <apex:actionFunction action="{!saveBtnNo}" name="saveBtnNo" reRender="mainForm,message" oncomplete="unblockUI();"/>
 
        <apex:outputPanel id="message">
            <apex:messages styleClass="editListError"/>
        </apex:outputPanel>
 
        <input type="hidden" id="hasError" value="{!hasError}"/>
 
        <apex:pageBlock id="idSearchSetProduct" title="新建询价" tabStyle="Opportunity">
            <apex:pageBlockButtons location="top">
                <apex:commandButton style="width:50px" onclick="saveJs();" value="保存" rerender="dummy" rendered="{!IF(hasError == true, false, true)}"/>
                <apex:commandButton style="width:50px" onclick="cancelJs();" value="取消" rerender="dummy" rendered="{!IF(hasError == true, false, true)}"/>
                <apex:commandButton style="width:50px" onclick="saveYesJs();" value="是" rerender="dummy" rendered="{!IF(hasError == true, true, false)}"/>
                <apex:commandButton style="width:50px" onclick="saveNoJs();" value="否" rerender="dummy" rendered="{!IF(hasError == true, true, false)}"/>
            </apex:pageBlockButtons>
 
            <apex:pageBlockSection title="询价信息" columns="2">
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="询价名称" for="opp_Name"/>
                    <apex:inputField value="{!opp.Name}" id="opp_Name"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="产品分类" for="opp_ProductSegment"/>
                    <apex:inputField value="{!opp.ProductSegment__c}" id="opp_ProductSegment" required="true"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="客户名" for="opp_Account"/>
                    <apex:inputField value="{!opp.AccountId}" id="opp_Account" required="true"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="询价币种" for="opp_CurrencyIsoCode"/>
                    <apex:inputField value="{!opp.CurrencyIsoCode}" id="opp_CurrencyIsoCode"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="类型" for="opp_Type"/>
                    <apex:inputField value="{!opp.Type}" id="opp_Type"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="预算金额" for="opp_BudgetAmount"/>
                    <apex:inputField value="{!opp.BudgetAmount__c}" id="opp_BudgetAmount"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="整机/零件" for="opp_MachineParts"/>
                    <apex:inputField value="{!opp.Machine_Parts__c}" id="opp_MachineParts"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="金额" for="opp_Amount"/>
                    <apex:inputField value="{!opp.Amount}" id="opp_Amount"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="审批人" for="opp_DealerSelectOwner"/>
                    <apex:inputField value="{!opp.DealerSelectOwner__c}" id="opp_DealerSelectOwner" required="true"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="COMPO询价" for="compo_opp"/>
                    <apex:inputField value="{!opp.compo_opp__c}" id="compo_opp"/>
                </apex:pageBlockSectionItem>
            </apex:pageBlockSection>
 
            <apex:pageBlockSection title="结果信息" columns="2">
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="预定下单日期" for="opp_ExpectedOrderDate"/>
                    <apex:inputField value="{!opp.ExpectedOrderDate__c}" id="opp_ExpectedOrderDate"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="希望出货日期" for="opp_ExpectedDeliveryDate"/>
                    <apex:inputField value="{!opp.ExpectedDeliveryDate__c}" id="opp_ExpectedDeliveryDate"/>
                </apex:pageBlockSectionItem>
            </apex:pageBlockSection>
 
            <apex:pageBlockSection title="附加信息" columns="2">
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="潜在客户来源" for="opp_LeadSource"/>
                    <apex:inputField value="{!opp.CustomerSourceIE__c}" id="opp_LeadSource" required="true"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="内贸 / 外贸" for="opp_TradeType"/>
                    <apex:inputField value="{!opp.TradeType__c}" id="opp_TradeType" required="true"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    &nbsp;
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="销售方式" for="opp_SalesChannel"/>
                    <apex:inputField value="{!opp.SalesChannel__c}" id="opp_SalesChannel" required="true"/>
                </apex:pageBlockSectionItem>
            </apex:pageBlockSection>
 
            <apex:pageBlockSection title="竞争者信息" columns="2">
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="竞争产品1" for="opp_CompetitorProduct"/>
                    <apex:inputField value="{!opp.Competitor_Product__c}" id="opp_CompetitorProduct"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="竞争产品型号1" for="opp_CompetitorProductCode"/>
                    <apex:inputField value="{!opp.CompetitorProductCode__c}" id="opp_CompetitorProductCode"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="竞争产品2" for="opp_CompetitorProduct2"/>
                    <apex:inputField value="{!opp.Competitor_Product2__c}" id="opp_CompetitorProduct2"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="竞争产品型号2" for="opp_CompetitorProductCode2"/>
                    <apex:inputField value="{!opp.CompetitorProductCode2__c}" id="opp_CompetitorProductCode2"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="竞争产品3" for="opp_CompetitorProduct3"/>
                    <apex:inputField value="{!opp.Competitor_Product3__c}" id="opp_CompetitorProduct3"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="竞争产品型号3" for="opp_CompetitorProductCode3"/>
                    <apex:inputField value="{!opp.CompetitorProductCode3__c}" id="opp_CompetitorProductCode3"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="竞争产品4" for="opp_CompetitorProduct4"/>
                    <apex:inputField value="{!opp.Competitor_Product4__c}" id="opp_CompetitorProduct4"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="竞争产品型号4" for="opp_CompetitorProductCode4"/>
                    <apex:inputField value="{!opp.CompetitorProductCode4__c}" id="opp_CompetitorProductCode4"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="竞争产品5" for="opp_CompetitorProduct5"/>
                    <apex:inputField value="{!opp.Competitor_Product5__c}" id="opp_CompetitorProduct5"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="竞争产品型号5" for="opp_CompetitorProductCode5"/>
                    <apex:inputField value="{!opp.CompetitorProductCode5__c}" id="opp_CompetitorProductCode5"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="竞争产品6" for="opp_CompetitorProduct6"/>
                    <apex:inputField value="{!opp.Competitor_Product6__c}" id="opp_CompetitorProduct6"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="竞争产品型号6" for="opp_CompetitorProductCode6"/>
                    <apex:inputField value="{!opp.CompetitorProductCode6__c}" id="opp_CompetitorProductCode6"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="竞争产品7" for="opp_CompetitorProduct7"/>
                    <apex:inputField value="{!opp.Competitor_Product7__c}" id="opp_CompetitorProduct7"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="竞争产品型号7" for="opp_CompetitorProductCode7"/>
                    <apex:inputField value="{!opp.CompetitorProductCode7__c}" id="opp_CompetitorProductCode7"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="竞争产品8" for="opp_CompetitorProduct8"/>
                    <apex:inputField value="{!opp.Competitor_Product8__c}" id="opp_CompetitorProduct8"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="竞争产品型号8" for="opp_CompetitorProductCode8"/>
                    <apex:inputField value="{!opp.CompetitorProductCode8__c}" id="opp_CompetitorProductCode8"/>
                </apex:pageBlockSectionItem>
            </apex:pageBlockSection>
 
            <apex:pageBlockSection title="本订单购买产品是否含电脑" columns="2">
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="本订单购买产品是否含电脑?" for="Have_Computer"/>
                    <apex:inputField value="{!opp.Have_Computer__c}" id="Have_Computer"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="关联询价" for="Association_Opportunity"/>
                    <apex:inputField value="{!opp.Association_Opportunity__c}" id="Association_Opportunity"/>
                </apex:pageBlockSectionItem>
            </apex:pageBlockSection>
 
            <apex:pageBlockSection title="备注" columns="2">
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="备注" for="opp_Remark"/>
                    <apex:inputField value="{!opp.Remark__c}" id="opp_Remark" style="width: 75%;"/>
                </apex:pageBlockSectionItem>
            </apex:pageBlockSection>
 
        </apex:pageBlock>
    </apex:form>
 
</apex:page>