高章伟
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
98
99
100
101
102
103
104
105
106
107
108
109
110
<apex:page standardController="Consum_Inventory_Detail__c" extensions="InventoryReportDetailController" showHeader="true" sidebar="false" id="allPage" action="{!init}">
<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
    <style>
        table {
            /*width: 100%;
            margin: 10px;*/
            table-layout: fixed;
            border-collapse: collapse;
        }
        .labelStyle {
            padding: 5px;
            border: 1px solid black;
        }
        table.list .col_Inventory_Remarks__c { width: 400px; }
        /*.myTable {
            width: 100%;
        }*/
    </style>
    <apex:form id="allForm">
        <apex:actionFunction name="searchOpp" action="{!searchOpp}" rerender="allForm" oncomplete="unblockUI();" />
        <apex:actionFunction name="saveAndSearch" action="{!save}" rerender="allPanel" oncomplete="unblockUI();">
            <apex:param name="firstParam" assignTo="{!saveType}" value="" />
        </apex:actionFunction>
        <apex:outputPanel id="pageallPanel">
            <apex:pageBlock id="searchBlock" tabStyle="Report">
                <apex:pageBlockSection title="耗材盘点表明细画面">
                    <apex:outputField value="{!parentObj.Name}"/>
                    <apex:outputField value="{!parentObj.Internal_asset_location__c}"/>
                    <apex:outputField value="{!parentObj.Inventory_Start_Date__c}"/>
                    <apex:outputField value="{!parentObj.Inventory_Status__c}"/>
                    <apex:outputField value="{!parentObj.InventoryPIC__c}"/>
                </apex:pageBlockSection>
            </apex:pageBlock>
            <table>
                <tr>
                    <td width="4%" style="text-align: right;">关键字</td>
                    <td width="8%">
                        <apex:inputText value="{!keyword}" />
                    </td>
                    <td width="3%" style="text-align: right;">
                        <apex:commandButton value="检索" onclick=" searchOppJs(); return false;"/>
                    </td>
                    <td width="3%">
                        <apex:commandButton action="{!save}" value="保存" onclick="blockme();" rerender="allForm" oncomplete="unblockUI();" />
                    </td>
                    <td width="10%" style="text-align: right;">
                        <apex:outputLabel for="modelNo" value="{!$ObjectType.Inventory_Detail__c.fields.Fixture_Model_No__c.label}"/>
                    </td>
                    <td width="10%">
                      <apex:inputText id="modelNo" value="{!modelNo}" />
                    </td>
                    <td width="10%" style="text-align: right;">
                      <apex:outputLabel for="serialNo" value="{!$ObjectType.Inventory_Detail__c.fields.SerialNumber__c.label}" />
                    </td>
                    <td width="10%">
                      <apex:inputText id="serialNo" value="{!serialNo}" />
                    </td>
                    <td width="10%" style="text-align: right;">
                      <apex:outputLabel for="whLocation" value="{!$ObjectType.Inventory_Detail__c.fields.WH_Location__c.label}" />
                    </td>
                    <td width="10%">
                      <apex:inputText id="whLocation" value="{!whLocation}"  />
                    </td>
                </tr>
            </table>
            <table class="myTable" style="margin: 10px auto;">
                <tr>
                    <td style="width:8%; text-align: right;">
                        <apex:outputLabel for="bpPankuiYing" value="盘亏/盘盈"/>
                    </td>
                    <td style="width:8%;">
                        <apex:selectList value="{!bpPankuiYing}" size="1" id="bpPankuiYingOps">
                            <apex:selectOptions value="{!bpPankuiYingOps}"/>
                        </apex:selectList>
                    </td>
                    <td style="width:8%; text-align: right;">
                        <apex:outputLabel for="bieBeiPinFenLei" value="{!$ObjectType.Inventory_Detail__c.fields.Equipment_Type__c.label}" />
                    </td>
                    <td style="width:8%;">
                        <apex:selectList value="{!bieBeiPinFenLei}" size="1" id="bieBeiPinFenLei">
                            <apex:selectOptions value="{!bieBeiPinFenLeiOps}"/>
                        </apex:selectList>
                    </td>
                    <td style="width:8%; text-align: right;">盘点状态</td>
                    <td style="width:8%;">
                        <apex:selectList value="{!assetStatus}" id="assetStatusId" size="1">
                            <apex:selectOptions value="{!assetStatusOptionList}"/>
                        </apex:selectList>
                    </td>
                    <td style="width:10%;text-align: right">消耗品有效期至</td>
                    <td style="width:1%;">
                        <apex:selectList value="{!compareOperator}" id="compareOperatorOps" size="1">
                            <apex:selectOptions value="{!CompareOperatorOps}"/>
                        </apex:selectList>
                    </td>
                    <td style="width:5%;">
                        <apex:inputField id="consumGuaranteenDate" value="{!sampleCiDetail.Consumable_Guaranteen_end__c}"/>
                    </td>
                </tr>
            </table>
        </apex:outputPanel>
        <apex:outputPanel id="message">
            <apex:pageMessages />
        </apex:outputPanel>
        <apex:outputText style="margin: 10px;" value="{!invDetailResultRemark}" />
        <c:RelationListPagingCmp id="cmpid" pgController="{!this}" hasCheckbox="false" isRadio="false" noSort="false"/>
    </apex:form>
</apex:page>