liuyn
2024-03-11 a87f1c3df03078814ee97ad0c8ac200a232419e9
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
<apex:page controller="RepairRenewalController" showHeader="false" sidebar="false" action="{!init}" title="维修续借" lightningStylesheets="true">
<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
<apex:stylesheet value="{!URLFOR($Resource.StyleUtilCss)}"/><!-- 20230525 ljh lightning  -->
<apex:includeScript value="{!URLFOR($Resource.SelectFieldJs)}"/>
    <style>
        .bPageBlock .detailList .labelCol {
            width: 7%;
        }
        .bPageBlock .detailList .dataCol {
            width: 20%;
        }
        body .bPageBlock .detailList .labelCol{
            width: 7% !important;
        }
        body .bPageBlock .detailList .labelCol select{
            min-width: 50px !important;
        }
        body .detailList .dataCol select{
            min-width: 80px;
        }
        body .detailList .dataCol input[type="text"]{
            min-width: 160px;
        }
    </style>
    <apex:form id="allForm">
        <!-- <apex:pageBlock title="" id="allBlock" rendered="true"> -->
        <apex:outputPanel id="message">
            <apex:pageMessages />
        </apex:outputPanel>
        <apex:outputPanel id="pageallPanel">
        <apex:pageBlock id="searchBlock" tabStyle="Report">
            <apex:pageBlockSection title="维修续借" id="mainSection" columns="3" collapsible="false" >
                <apex:outputField value="{!raObj.Routine_Check_Person__c}" />
                <apex:inputField value="{!raObj.Routine_Check_Status__c}" />
                <apex:outputField value="{!raObj.Routine_Check_Day__c}" />
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="新修理单" />
                    <!-- <apex:inputField value="{!raObj.Repair__c}" id="newRepair"/> -->
                    <apex:inputField style="width:180px;" id="newRepair"  value="{!raObj.Repair__c}"   onChange="" />
                </apex:pageBlockSectionItem>
            </apex:pageBlockSection>
 
            <apex:pageBlockSection columns="3">
                <apex:pageBlockSectionItem />
                <apex:pageBlockSectionItem >
                    <apex:commandButton value="续借" action="{!doRenewal}" onclick="blockme();" rerender="allForm" oncomplete="unblockUI();" />
                    <apex:commandButton value="取消" onclick="javascript:window.opener=null;window.open('','_self');window.close();"/>
                </apex:pageBlockSectionItem>
                <!-- <apex:pageBlockSectionItem >
                    <apex:commandButton value="取消" onclick="window.close()"/>
                </apex:pageBlockSectionItem> -->    
            </apex:pageBlockSection>
        </apex:pageBlock>
        </apex:outputPanel>
    </apex:form>
    <script type="text/javascript">
    //标准控件弹出页面修改 start
        //查询参数列表
        let SelectFieldParamList=[
            {
                //原apex:inputField的id值,需要在页面上获取
                inputFieldId : 'j_id0:allForm:searchBlock:mainSection:j_id36:newRepair',
                //查找字段所在对象
                ObjectType : 'Rental_Apply__c',
                //查找字段的api名称
                QueryFieldApiName : 'Repair__c',
                //查找字段的查找对象
                SelectObj : 'Repair__c',
                //搜索时使用的字段
                SelectFld : 'Name',
 
                setVal :'{!raObj.Hospital_ID__c}',
 
            },
        ]
 
        //初始化
        resetOpenPage(SelectFieldParamList);
         function unblockUI(){
            j$("#sbArea").fadeOut(500, function(){
                j$("#sbArea").remove();
            });
            resetOpenPage(SelectFieldParamList);
        }
    </script>
</apex:page>