高章伟
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
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
<apex:page standardController="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="assetNumberKey" value="{!$ObjectType.Inventory_Detail__c.fields.Internal_Asset_number__c.label}" />
                    </td>
                    <td width="10%">
                      <apex:inputText id="assetNumberKey" value="{!assetNumberKey}"  />
                    </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}"  rendered="{!angecylookrole}" />
                      <apex:inputText disabled="true" rendered="{!!angecylookrole}" />
                    </td>
                </tr>
            </table>
            <table class="myTable" style="margin: 10px auto;">
                <tr>
                    <td style="width:6%; 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="bpBodyFushupin" value="主体/附属品" />
                    </td>
                    <td style="width:8%;}">
                        <apex:selectList value="{!bpBodyFushupin}" size="1" id="bpBodyFushupinOps">
                            <apex:selectOptions value="{!bpBodyFushupinOps}"/>
                        </apex:selectList>
                    </td>
                    <td style="width:8%; text-align: right;">
                      <apex:outputLabel for="ifInternalAsset" value="是否固定资产" />
                    </td>
                    <td style="width:6%;">
                      <apex:selectList value="{!ifInternalAsset}" size="1" id="ifInternalAsset">
                        <apex:selectOptions value="{!ifInternalAssetOps}"/>
                      </apex:selectList>
                    </td>
                    <td style="width:8%; text-align: right;">
                        <apex:outputLabel for="bieChanPinFenLei" value="{!$ObjectType.Inventory_Detail__c.fields.Product_category__c.label}" />
                    </td>
                    <td style="width:8%;">
                        <apex:selectList value="{!bieChanPinFenLei}" size="1" id="bieChanPinFenLei">
                            <apex:selectOptions value="{!bieChanPinFenLeiOps}"/>
                        </apex:selectList>
                    </td>
                    <td style="width:6%; text-align: right;">
                        <apex:outputLabel for="bieBeiPinFenLei" value="{!$ObjectType.Inventory_Detail__c.fields.Equipment_Type__c.label}" />
                    </td>
                    <td style="width:6%;">
                        <apex:selectList value="{!bieBeiPinFenLei}" size="1" id="bieBeiPinFenLei">
                            <apex:selectOptions value="{!bieBeiPinFenLeiOps}"/>
                        </apex:selectList>
                    </td>
                    <td style="width:6%; text-align: right;">
                        <apex:outputLabel for="bieManageType" value="{!$ObjectType.Inventory_Detail__c.fields.Manage_type__c.label}" />
                    </td>
                    <td style="width:6%;">
                        <apex:selectList value="{!bieManageType}" size="1" id="bpAssetLocationOps">
                            <apex:selectOptions value="{!bieManageTypeOps}"/>
                        </apex:selectList>
                    </td>
                    <td style="width:6%; text-align: right;">盘点状态</td>
                    <td style="width:6%;">
                        <apex:selectList value="{!assetStatus}" id="assetStatusId" size="1">
                            <apex:selectOptions value="{!assetStatusOptionList}"/>
                        </apex:selectList>
                    </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>