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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
<apex:page standardController="Opportunity" extensions="OpportunityAAdvancedController" showHeader="false" sidebar="false" id="allPage" action="{!init}" title="高端产品">
<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
<script>
// 保存
function saveJs() {
    blockme();
    saveLine();
}
//刷新询价页面
function refreshPage(){
    var baseUrl = j$(escapeVfId("baseUrl")).value();
    window.parent.location.href = baseUrl + '/{!URLENCODE(opp.id)}';
}
 
function systemChange(){
    /*var OppSystemId = 'allPage:allForm:allBlock:j_id9:OppSystem:OppSystem:OppSystem';
    var oldSystem = j$(escapeVfId("oldSystem")).value();
    
    var newSystem = document.getElementById(OppSystemId).value;
    
    if (newSystem != oldSystem) {
        alert('此处不可修改System的值');
        document.getElementById(OppSystemId).value = oldSystem;
    }*/
    blockme();
    updat();
}
</script>
<apex:form id="allForm">
 
        <apex:actionFunction name="saveLine" action="{!saveLine}" rerender="allBlock,message" onComplete="unblockUI();refreshPage();">
        </apex:actionFunction>
         <apex:actionFunction name="updat" action="{!init}" rerender="allPanel" oncomplete="unblockUI()"></apex:actionFunction>
 
        <input type="hidden" id="baseUrl" value="{!baseUrl}"/>
       
        <apex:outputPanel id="allPanel">
            <apex:pageBlock id="allBlock">
                <apex:pageBlockButtons location="top">
                    <apex:commandButton onclick="saveJs();" value="保存高端产品" rerender="dummy" disabled=""/>
                        <apex:outputPanel id="message">
                            <apex:messages />
                        </apex:outputPanel>
                </apex:pageBlockButtons>
 
                <apex:outputPanel layout="none" id="OppSystem">
                    <!-- <apex:pageBlockSection title="System" columns="2" rendered="true" >
 
                        <apex:pageBlockSectionItem id="OppSystem" >
                            <apex:outputLabel value="System" for="OppSystem"/>
                            <apex:variable var="v" value="" id="OppSystem">
                                <apex:inputField onchange="systemChange()" value="{!opp.OppSystem__c}" id="OppSystem" style="width: 300px" />
                            </apex:variable>
                        </apex:pageBlockSectionItem>
                    </apex:pageBlockSection> -->
 
                    <apex:pageBlockSection title="FV3000" columns="2" rendered="{!FV3000Flag}">
 
                        <apex:pageBlockSectionItem >
                            <apex:outputLabel value="Scanner" for="la_Type" />
                            <apex:inputField value="{!opp.Scanner_FV3000__c}" id="FV3000_Scanner" style="width: 300px"/>
                        </apex:pageBlockSectionItem>
                        <apex:pageBlockSectionItem >
                            <apex:outputLabel value="Detector" for="la_Type"/>
                            <apex:inputField value="{!opp.Detector_FV3000__c}" id="FV3000_Detector" style="width: 300px"/>
                        </apex:pageBlockSectionItem>
                        <apex:pageBlockSectionItem >
                            <apex:outputLabel value="Laser" for="la_Type"/>
                            <apex:inputField value="{!opp.Laser_FV3000__c}" id="FV3000_Laser" style="width: 300px" />
                        </apex:pageBlockSectionItem>
                        <apex:pageBlockSectionItem >
                            <apex:outputLabel value="Frame" for="la_Type"/>
                            <apex:inputField value="{!opp.Frame_FV3000__c}" id="FV3000_Frame" style="width: 300px"/>
                        </apex:pageBlockSectionItem>
                        <apex:pageBlockSectionItem >
                            <apex:outputLabel value="Software" for="la_Type"/>
                            <apex:inputField value="{!opp.Software_FV3000__c}" id="FV3000_Software" style="width: 300px"/>
                        </apex:pageBlockSectionItem>
                        <apex:pageBlockSectionItem >
                            <apex:outputLabel value="Customization" for="la_Type"/>
                            <apex:inputField value="{!opp.Customization_FV3000__c}" id="FV3000_Customization" style="width: 300px"/>
                        </apex:pageBlockSectionItem>
                        <apex:pageBlockSectionItem >
                            <apex:outputLabel value="Remark" for="FV3000_Remark"/>
                            
                           <apex:inputField value="{!opp.Remark_FV3000__c}" id="FV3000_Remark" style="width: 294px"/>
                           
                        </apex:pageBlockSectionItem>
                      
                    </apex:pageBlockSection>
                </apex:outputPanel>
 
                <apex:outputPanel layout="none" >
                    <apex:pageBlockSection title="FVMPE-RS" columns="2" rendered="{!FVMPERSFlag}">
 
                        <apex:pageBlockSectionItem >
                            <apex:outputLabel value="IR laser" for="Loaner_Ser__c"/>
                            <apex:inputField value="{!opp.IR_laser_FVMPE_RS__c}" id="FVMPERS_OppIRlaser" style="width: 300px"/>
                        </apex:pageBlockSectionItem>
                        <apex:pageBlockSectionItem >
                            <apex:outputLabel value="Detector" for="Loaner_Ser__c"/>
                            <apex:inputField value="{!opp.detector_FVMPE_RS__c}" id="FVMPERS_Detector" style="width: 300px"/>
                        </apex:pageBlockSectionItem>
                        <apex:pageBlockSectionItem >
                            <apex:outputLabel value="SIM" for="Loaner_Ser__c"/>
                            <apex:inputField value="{!opp.SIM_FVMPE_RS__c}" id="FVMPERS_SIM" style="width: 300px"/>
                        </apex:pageBlockSectionItem>
                        <apex:pageBlockSectionItem >
                            <apex:outputLabel value="Frame" for="Loaner_Ser__c"/>
                            <apex:inputField value="{!opp.Frame_FVMPE_RS__c}" id="FVMPERS_Frame" style="width: 300px"/>
                        </apex:pageBlockSectionItem>
                        <apex:pageBlockSectionItem >
                            <apex:outputLabel value="Software" for="Loaner_Ser__c"/>
                            <apex:inputField value="{!opp.Software_FVMPE_RS__c}" id="FVMPERS_Software" style="width: 300px"/>
                        </apex:pageBlockSectionItem>
                        <apex:pageBlockSectionItem >
                            <apex:outputLabel value="AC objective" for="Loaner_Ser__c"/>
                            <apex:inputField value="{!opp.AC_objective_FVMPE_RS__c}" id="FVMPERS_ACobjective" style="width: 300px"/>
                        </apex:pageBlockSectionItem>
                        <apex:pageBlockSectionItem >
                            <apex:outputLabel value="Customization" for="Loaner_Ser__c"/>
                            <apex:inputField value="{!opp.Customization_FVMPE_RS__c}" id="FVMPERS_Customization" style="width: 300px"/>
                        </apex:pageBlockSectionItem>
                        <apex:pageBlockSectionItem >
                            <apex:outputLabel value="Remark" for="Loaner_Ser__c"/>
                            <apex:inputField value="{!opp.Remark_FVMPE_RS__c}" id="FVMPERS_Remark" style="width: 294px"/>
                        </apex:pageBlockSectionItem>
                      
                    </apex:pageBlockSection>
                </apex:outputPanel>
 
                <apex:outputPanel layout="none" >
                    <apex:pageBlockSection title="SPIN" columns="2" rendered="{!SPINFlag}">
                        <apex:pageBlockSectionItem >
                            <apex:outputLabel value="Scanner" for="la_Type"/>
                            <apex:inputField value="{!opp.Scanner_SPIN__c}" id="SPIN_Scanner" style="width: 300px"/>
                        </apex:pageBlockSectionItem>
                        <apex:pageBlockSectionItem >
                            <apex:outputLabel value="Laser" for="Loaner_Ser__c"/>
                            <apex:inputField value="{!opp.Laser_SPIN__c}" id="SPIN_Laser" style="width: 300px"/>
                        </apex:pageBlockSectionItem>
                        <apex:pageBlockSectionItem >
                            <apex:outputLabel value="Camera" for="Loaner_Ser__c"/>
                            <apex:inputField value="{!opp.Camera_SPIN__c}" id="SPIN_Camera" style="width: 300px"/>
                        </apex:pageBlockSectionItem>
                        <apex:pageBlockSectionItem >
                            <apex:outputLabel value="Software" for="Loaner_Ser__c"/>
                            <apex:inputField value="{!opp.Software_SPIN__c}" id="SPIN_Software" style="width: 300px"/>
                        </apex:pageBlockSectionItem>
                        <apex:pageBlockSectionItem >
                            <apex:outputLabel value="Upgrade" for="Loaner_Ser__c"/>
                            <apex:inputField value="{!opp.Upgrade_SPIN__c}" id="SPIN_Upgrade" style="width: 300px"/>
                        </apex:pageBlockSectionItem>
                        <apex:pageBlockSectionItem >
                            <apex:outputLabel value="Remark" for="Loaner_Ser__c"/>
                            <apex:inputField value="{!opp.Remark_SPIN__c}" id="SPIN_Remark" style="width: 294px" />
                        </apex:pageBlockSectionItem>
                      
                    </apex:pageBlockSection>
                </apex:outputPanel>
 
                <apex:outputPanel layout="none" >
                    <apex:pageBlockSection title="VS200" columns="2" rendered="{!VS200Flag}">
 
                        <apex:pageBlockSectionItem >
                            <apex:outputLabel value="Observation Set" for="la_Name"/>
                            <apex:inputField value="{!opp.Observation_Set_VS200__c}" id="VS200_ObservationSet" style="width: 300px"/>
                        </apex:pageBlockSectionItem> 
                        <apex:pageBlockSectionItem >
                            <apex:outputLabel value="Loader" for="la_Type"/>
                            <apex:inputField value="{!opp.Loader_VS200__c}" id="VS200_Loader" style="width: 300px"/>
                        </apex:pageBlockSectionItem>
                        <apex:pageBlockSectionItem >
                            <apex:outputLabel value="FL Camera" for="la_Type"/>
                            <apex:inputField value="{!opp.FL_Camera_VS200__c}" id="VS200_FLCamera" style="width: 300px"/>
                        </apex:pageBlockSectionItem>
                        <apex:pageBlockSectionItem >
                            <apex:outputLabel value="Software" for="la_Type"/>
                            <apex:inputField value="{!opp.Software_VS200__c}" id="VS200_Software" style="width: 300px"/>
                        </apex:pageBlockSectionItem>
                        <apex:pageBlockSectionItem >
                            <apex:outputLabel value="Upgrade" for="la_Type"/>
                            <apex:inputField value="{!opp.Upgrade_VS200__c}" id="VS200_Upgrade" style="width: 300px"/>
                        </apex:pageBlockSectionItem>
                       
                      
                    </apex:pageBlockSection>
                </apex:outputPanel>
 
                 <apex:outputPanel layout="none" >
                    <apex:pageBlockSection title="Phaseview" columns="2" rendered="{!PhaseviewFlag}">
 
                        <apex:pageBlockSectionItem >
                            <apex:outputLabel value="Light sheet illuminator" for="la_Name"/>
                            <apex:inputField value="{!opp.Light_sheet_illuminator_Phaseview__c}" id="Light_sheet_illuminator_Phaseview" style="width: 300px"/>
                        </apex:pageBlockSectionItem> 
                        <apex:pageBlockSectionItem >
                            <apex:outputLabel value="Laser" for="la_Type"/>
                            <apex:inputField value="{!opp.Laser_Phaseview__c}" id="Laser_Phaseview" style="width: 300px"/>
                        </apex:pageBlockSectionItem>
                        <apex:pageBlockSectionItem >
                            <apex:outputLabel value="Camera" for="la_Type"/>
                            <apex:inputField value="{!opp.Camera_Phaseview__c}" id="Camera_Phaseview" style="width: 300px"/>
                        </apex:pageBlockSectionItem>
                       
                      
                    </apex:pageBlockSection>
                </apex:outputPanel>
 
                <apex:pageBlockSection title="其他" columns="2" rendered="true" >
 
                        <apex:pageBlockSectionItem id="Party" >
                            <apex:outputLabel value="3rd party Product" for="Party"/>
                            <apex:variable var="v" value="" id="Party">
                                <apex:inputField value="{!opp.OppPartyProduct__c}" id="Party" style="width: 300px"/>
                            </apex:variable>
                        </apex:pageBlockSectionItem>
                        <apex:pageBlockSectionItem id="Description" >
                            <apex:outputLabel value="其他说明 Ohters" for="Description"/>
                            <apex:variable var="v" value="" id="Description">
                                <apex:inputField value="{!opp.OppOtherDescription__c}" id="Description" style="width: 300px"/>
                            </apex:variable>
                        </apex:pageBlockSectionItem>
                </apex:pageBlockSection>
            </apex:pageBlock>
        </apex:outputPanel>
 
</apex:form>
</apex:page>