1
chenjingwu
2024-05-24 ab5a982874f88556b72e02177fa88dedc2d56fe8
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
<!-- <apex:page controller="AccessoryAddController" showHeader="false" sidebar="false" id="allPage" action="{!init}"> -->
    <apex:page controller="AccessoryAddController" showHeader="false" sidebar="false" id="allPage" action="{!init}" lightningStylesheets = "true">
        <head>
        <title>附属品追加</title>
        <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
        <apex:stylesheet value="{!URLFOR($Resource.AccessoryAddCss)}"/>
        <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
        <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
        <apex:includeScript value="{!URLFOR($Resource.RelationListPagingCmpJS)}"/>
        
        <!-- 20230426 zq add style -->
        <style>
            body .bPageBlock .detailList .labelCol {
                width: auto;
            }
            body input.btn {
                padding: 2px 3px;
                margin-left: 55px;
            }
        </style>
        <script type="text/javascript">
        var heightAjustment = 120;
        var widthAjustment = 30;
        
        </script>
        </head>
            <apex:form id="allForm">
                <apex:outputPanel id="pageallPanel">
                    <apex:pageBlock id="searchBlock" tabStyle="Report">
                        <apex:pageBlockSection title="附属品追加">
                            <apex:outputField value="{!parentObj.Rental_Apply__r.Name}"/>
                            <apex:outputField value="{!parentObj.Rental_Apply__r.Demo_purpose1__c}"/>
                            <apex:outputField value="{!parentObj.Rental_Apply__r.Owner.Name}"/>
                            <apex:outputField value="{!parentObj.Rental_Apply__r.demo_purpose2__c}"/>
                            <apex:outputField value="{!parentObj.Rental_Apply__r.Salesdept__c}"/>
                            <apex:outputField value="{!parentObj.Rental_Apply__r.Product_category__c}"/>
                            <apex:outputField value="{!parentObj.Rental_Apply__r.WorkPlace__c}"/>
                            <apex:outputField value="{!parentObj.Rental_Apply__r.Equipment_Type_F__c}"/>
                            <apex:outputField value="{!parentObj.Rental_Apply__r.Internal_asset_location_F__c}" />
                            <apex:outputText />
                            <apex:outputField value="{!parentObj.Rental_Apply__r.Request_shipping_day__c}"/>
                            <apex:outputField value="{!parentObj.Rental_Apply__r.Request_return_day__c}"/>
                            <apex:outputField value="{!parentObj.Fixture_Set__r.Fixture_Set_Body_Model_No__c}"/>
                            <apex:outputField value="{!parentObj.Irreplaceable_flag__c}"/>
                            <apex:outputField value="{!parentObj.Fu_Shu_Pin_Fen_Pei_Jia__c}"/>
                            <apex:outputText />
                            <apex:outputField value="{!parentObj.Rental_Start_Date__c}"/>
                            <apex:outputField value="{!parentObj.Rental_End_Date__c}"/>
        
                            <apex:pageBlockSectionItem >
                                <apex:outputPanel >
                                    <apex:outputText value="关键字" style="width:50px"/>
                                    <apex:inputText value="{!keyword}" style="width:200px;margin-left: 50px;"/>
                                </apex:outputPanel>
                                <apex:commandButton value="检索" action="{!searchOpp}" onclick="blockme();" rerender="allForm" oncomplete="unblockUI();" />
                            </apex:pageBlockSectionItem>
                        </apex:pageBlockSection>
                         <table>
                            <tr>
                                <td width="20px"/>
                                <!--20230426 zq <td width="200px"> -->
                                <td width="220px">
                                  <apex:outputLabel for="bieCunFangDi" value="备品存放地" />
                                  <!-- <apex:outputText value="{!bieCunFangDi}"/> -->
                                  <apex:selectList value="{!bieCunFangDi}" size="1" style="margin-left: 20px; width:110px" id="bieCunFangDi">
                                    <apex:selectOptions value="{!bieCunFangDiOps}"/>
                                    <!-- #OLY_OCM-659 备品存放地 选项变化时,本部 选项值随之发生变化 -->
                                    <apex:actionSupport event="onchange" reRender="bieBenBu"/>
                                  </apex:selectList>
                                </td>
                                <td width="10px"></td>
                                <!-- #OLY_OCM-654 因为MA本部和产品培训本部还是需要检索条件,所以需要别本部的检索条件 Start -->
                                <td width="180px">
                                  <apex:outputLabel for="bieBenBu" value="本部" />
                                  <apex:selectList value="{!bieBenBu}" size="1" style="margin-left: 20px; width:110px" id="bieBenBu">
                                    <apex:selectOptions value="{!bieBenBuOps}"/>
                                  </apex:selectList>
                                </td>
                                <!-- #OLY_OCM-654 因为MA本部和产品培训本部还是需要检索条件,所以需要别本部的检索条件 End -->
                            </tr>
                        </table>
                        <apex:pageBlockButtons location="bottom">
                            <apex:commandButton style="float:left;" action="{!save}" onclick="blockme();" value="保存" rerender="allForm" oncomplete="unblockUI();" />
                            <apex:commandButton style="float:right;" action="{!cancel}" value="返回" rerender="allForm"/>
                        </apex:pageBlockButtons>
                        <div style="clear:both;"></div>
        
                        <apex:outputPanel id="message">
                            <apex:pageMessages />
                        </apex:outputPanel>
                    </apex:pageBlock>
                    <c:RelationListPagingCmp id="cmpid" pgController="{!this}" hasCheckbox="true" isRadio="true" />
                </apex:outputPanel>
            </apex:form>
        </apex:page>